You are not logged in.
Pages: 1
Hi,
I want to use Arch to mess with the source of linux 3.2.7. Unfortunately, I cannot even get the regular 3.2.7 kernel to boot.
I basically followed the guide at:
https://wiki.archlinux.org/index.php/Ke … raditional
I downloaded the source, did make mrproper, make menuconfig, make all and make modules_install. I copied arch/x86/bzImage to /boot as well as System.map and created a cpio ramdisk using mkinitcpio using
mkinitcpio -g /boot/initramfs-test.img -k 3.2.7-test
In the end my /boot contained:
initramfs-test.img
vmlinuz-test
System.map-test
I tried booting with Syslinux, GRUB and GRUB2 modifying the options for all of them appropriately.
For Syslinux and GRUB if use a UUID in the root field for their respective config files I get the error that the root device cannot be found during boot. If I use root=/dev/sda4 (which is my root partition, checked it using stat /dev/sda4) I successfully mount the root partition but get an error that /sbin/init does not exist. That's weird since /sbin/init is there. I believe both of these errors have something to do with ramdisk but not sure what.
With GRUB2 booting just freezes at "Loading init ramdisk".
I read a ton on these errors online and tried all kinds of stuff and could not get it to work. Any help will be greatly appreciated!
Thanks
Offline
Start with lsinitcpio, to see what your initramfs image provides.
It's good that you've given a wiki link as a reference, but please remember that "I did make menuconfig" is not exactly the same for everyone, so it's difficult to pinpoint a solution.
One minor question - why 3.2.7? The current stable release is 3.2.10.
Offline
Thanks tomk and sorry for the ambiguous post.
I actually managed to get it finally running, I basically screwed up my .config file. This was not obvious to me at all (total noob at compiling kernels). I just used my current arch config file instead of messing with menuconfig myself and it worked. I still don't know why it works, so if you could point me to a source of enlightenment I would appreciate that. Right now compilation time is atrocious even with the -j option for make.
Regarding your question, I want to screw around with the latest pax patch and add some hooks of my own to security.h which is why I need 3.2.7.
Thanks again
Offline
Pages: 1