You are not logged in.

#1 2010-01-02 21:15:10

sultanoswing
Member
Registered: 2008-07-23
Posts: 314

[solved] custom 2.6.32 package - no mkinitcpio happening

I've been rolling custom kernels for a year or so without major problems using the abs kernel26 [core] package.

Noticing kernel 2.6.32.2-2 has come out, I used and modded the pkgbuild as usual, using the default supplied config, except for a few usual changes (processor to Athlon64 and cutting out the chaff of other hardware etc).

Problem: when I pacman -U the resultant kernel26-custom-2.6.32.2-2-i686.pkg.tar.gz package it simply 'installs', without

Running command: /sbin/mkinitcpio -k 2.6.32-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26.img

and thus isn't generating the required img, ramdisk etc.

Whaddup with that?

Last edited by sultanoswing (2010-01-04 03:38:36)


6.5.3.arch1-1(x86_64) w/Gnome 44.4
Arch on: ASUS Pro-PRIME x470, AMD 5800X3D, AMD 6800XT, 32GB, | Intel NUC 7i5RYK | ASUS ux303ua | Surface Laptop

Offline

#2 2010-01-02 22:35:55

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,356

Re: [solved] custom 2.6.32 package - no mkinitcpio happening

your kernel26-custom.install file handles that.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#3 2010-01-02 23:22:25

sultanoswing
Member
Registered: 2008-07-23
Posts: 314

Re: [solved] custom 2.6.32 package - no mkinitcpio happening

ngoonee wrote:

your kernel26-custom.install file handles that.

Never had to mess with or create that file before, previously relying on the included kernel26.install file. I did try adding "KERNEL_NAME=kernel26-custom" (as I've set it in PKGBUILD) to the kernel26.install file, since the NAME variable was blank. Will see what happens this compile.

[EDIT] Curious. The compiled kernel26-custom tar.gz file is only 368 bytes. Methinks the kernel26 [core] compile package is b0rked.

Last edited by sultanoswing (2010-01-03 02:53:01)


6.5.3.arch1-1(x86_64) w/Gnome 44.4
Arch on: ASUS Pro-PRIME x470, AMD 5800X3D, AMD 6800XT, 32GB, | Intel NUC 7i5RYK | ASUS ux303ua | Surface Laptop

Offline

#4 2010-01-03 07:03:07

hungerfish
Member
Registered: 2009-09-13
Posts: 254

Re: [solved] custom 2.6.32 package - no mkinitcpio happening

Hmm, this maybe have nothing todo with the packaging.
I've been trying to build my custom kernel ,2.6.32-2, and I am also unable to build the initcpio file.
This is vanilla , from kernel.org !

I just compile my kernel 'normal-way', so I do

make && make modules_install

After that I do

mkinitcpio -k 2.6.32-MYKERN2 -g /boot/mykern2.img

This gives my a very small file

-rw-r--r-- 1 root root 239K Jan  3 08:05 mykern2.img
The output is
:: Begin build
:: Parsing hook [base]
:: Parsing hook [udev]
:: Parsing hook [autodetect]
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
error opening alias file: No such file or directory
find: `/lib/modules/2.6.32-MYKERN2': No such file or directory
find: `/lib/modules/2.6.32-MYKERN2': No such file or directory
:: Parsing hook [pata]
:: Parsing hook [scsi]
:: Parsing hook [sata]
:: Parsing hook [filesystems]
:: Parsing hook [keymap]
:: Generating image '/boot/mykern2.img'...lzma: Adjusted LZMA1 dictionary size from 64 MiB to 35 MiB to not exceed the memory usage limit of 401 MiB
SUCCESS

With just 2.6.32 I did not have this problem.

Last edited by hungerfish (2010-01-03 07:03:49)


Beetles and bacteria are vastly more successful than humans in terms of survival.

Offline

#5 2010-01-03 07:23:28

sultanoswing
Member
Registered: 2008-07-23
Posts: 314

Re: [solved] custom 2.6.32 package - no mkinitcpio happening

Good to see I'm not the only one (you understand smile )

If someone more knowledgeable chimes in, perhaps we're looking at a regression that ought to be filed.


6.5.3.arch1-1(x86_64) w/Gnome 44.4
Arch on: ASUS Pro-PRIME x470, AMD 5800X3D, AMD 6800XT, 32GB, | Intel NUC 7i5RYK | ASUS ux303ua | Surface Laptop

Offline

#6 2010-01-03 09:29:46

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,356

Re: [solved] custom 2.6.32 package - no mkinitcpio happening

methinks the both of you are doing something wrong, sorry to say. Compiling custom kernels is something done by quite a number of people, its not a dark corner of the distro. What PKGBUILD are you using?


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#7 2010-01-03 09:41:39

sultanoswing
Member
Registered: 2008-07-23
Posts: 314

Re: [solved] custom 2.6.32 package - no mkinitcpio happening

ngoonee wrote:

methinks the both of you are doing something wrong, sorry to say. Compiling custom kernels is something done by quite a number of people, its not a dark corner of the distro. What PKGBUILD are you using?

Well something's changed since 2.6.31, and it's nothing I've done (I think!).

I'm using all the files (PKGBUILD, config, config.x86_64, kernel26.install, kernel26.preset) straight from a freshly synced ABS: /var/abs/core/kernel26

Other than uncommenting out a couple of lines in PKGBUILD to set the custom kernel name:

# $Id: PKGBUILD 61813 2009-12-26 08:43:16Z tpowa $
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
# Maintainer: Thomas Baechler <thomas@archlinux.org>
pkgbase="kernel26"
# pkgname=('kernel26' 'kernel26-firmware' 'kernel26-headers') # Build stock -ARCH kernel
pkgname=kernel26-custom       # Build kernel with a different name
_kernelname=${pkgname#kernel26}
_basekernel=2.6.32
pkgver=${_basekernel}.2
pkgrel=2

and uncommenting make menuconfig:

  #make menuconfig # CLI menu for configuration

and changing a few fairly standard options via menuconfig such as processor type, I haven't done anything radically complicated or anything I haven't done with multiple previous successful builds. Curious!

Last edited by sultanoswing (2010-01-03 09:43:13)


6.5.3.arch1-1(x86_64) w/Gnome 44.4
Arch on: ASUS Pro-PRIME x470, AMD 5800X3D, AMD 6800XT, 32GB, | Intel NUC 7i5RYK | ASUS ux303ua | Surface Laptop

Offline

#8 2010-01-03 11:07:00

ngoonee
Forum Fellow
From: Between Thailand and Singapore
Registered: 2009-03-17
Posts: 7,356

Re: [solved] custom 2.6.32 package - no mkinitcpio happening

The change since 2.6.31 is the splitting of our kernel26 package into 3. I have not played with that PKGBUILD, since my custom kernels all still follow the old way. Shouldn't the kernel26.install file be renamed to kernel26-custom.install, since you're building the kernel26-custom package? Check in the ./pkg directory after your makepkg, it should show you the contents of a kernel (boot, etc, lib directories) and a ./pkg/.INSTALL file which actually handles the mkinitcpio.


Allan-Volunteer on the (topic being discussed) mailn lists. You never get the people who matters attention on the forums.
jasonwryan-Installing Arch is a measure of your literacy. Maintaining Arch is a measure of your diligence. Contributing to Arch is a measure of your competence.
Griemak-Bleeding edge, not bleeding flat. Edge denotes falls will occur from time to time. Bring your own parachute.

Offline

#9 2010-01-03 14:53:23

hungerfish
Member
Registered: 2009-09-13
Posts: 254

Re: [solved] custom 2.6.32 package - no mkinitcpio happening

As mentioned above, I'm using the kernel from kernel.org.
It builds and boots fine, just initcpio file is garbled, so mkinitcpio is doing something wrong, or messing up, I don't know.
It worked fine for 2.6.32 , just not for 2.6.32-2.

I know that there was some testing/changing going on in that area, due to problems related to early-KMS  and the radeon module, as its firmware wasn't handled correctly. Maybe some script got jacked up in the process. Also I'm using mkinitcpio from testing.

Last edited by hungerfish (2010-01-03 15:00:36)


Beetles and bacteria are vastly more successful than humans in terms of survival.

Offline

#10 2010-01-03 20:50:32

sultanoswing
Member
Registered: 2008-07-23
Posts: 314

Re: [solved] custom 2.6.32 package - no mkinitcpio happening

Well I'm out of ideas. I'll be interested to see if anyone else is able to sucessfully compile a custom kernel using the ABS method from the 2.6.32.2-2 kernel26 [core] PKGBUILD to confirm or refute this potential bug.

I hope it gets fixed soon, whatever the issue is.

Last edited by sultanoswing (2010-01-03 21:21:47)


6.5.3.arch1-1(x86_64) w/Gnome 44.4
Arch on: ASUS Pro-PRIME x470, AMD 5800X3D, AMD 6800XT, 32GB, | Intel NUC 7i5RYK | ASUS ux303ua | Surface Laptop

Offline

#11 2010-01-04 00:23:13

owain
Member
Registered: 2009-08-24
Posts: 251

Re: [solved] custom 2.6.32 package - no mkinitcpio happening

sultanoswing wrote:

Well I'm out of ideas. I'll be interested to see if anyone else is able to sucessfully compile a custom kernel using the ABS method from the 2.6.32.2-2 kernel26 [core] PKGBUILD to confirm or refute this potential bug.

I've had success with dblue's solution here, and join them in wanting to know if this was the 'right' way to do it.

Offline

#12 2010-01-04 03:40:25

sultanoswing
Member
Registered: 2008-07-23
Posts: 314

Re: [solved] custom 2.6.32 package - no mkinitcpio happening

owain wrote:
sultanoswing wrote:

Well I'm out of ideas. I'll be interested to see if anyone else is able to sucessfully compile a custom kernel using the ABS method from the 2.6.32.2-2 kernel26 [core] PKGBUILD to confirm or refute this potential bug.

I've had success with dblue's solution here, and join them in wanting to know if this was the 'right' way to do it.

Yeah that worked, many thanks. It's a little bit of extra editing, but logical enough.

I've marked this as solved, but I still think the official kernel26 PKGBUILD needs a tweak to reflect the changes made.


6.5.3.arch1-1(x86_64) w/Gnome 44.4
Arch on: ASUS Pro-PRIME x470, AMD 5800X3D, AMD 6800XT, 32GB, | Intel NUC 7i5RYK | ASUS ux303ua | Surface Laptop

Offline

#13 2010-01-24 00:07:35

tuxfusion
Member
Registered: 2007-12-31
Posts: 98

Re: [solved] custom 2.6.32 package - no mkinitcpio happening

Thx for investigating !
imho , the wiki needs an update to reflect this "spliting".
http://wiki.archlinux.org/index.php/Cus … n_with_ABS

Offline

Board footer

Powered by FluxBB