You are not logged in.

#1 2012-03-25 15:10:29

ClementL
Member
Registered: 2012-03-24
Posts: 5

Custom kernel 3.3 won't boot

Hello everybody,

my wireless USB adapter wasn't supported by the Linux kernel by default, so I had to customize one. I downloaded the newest kernel (3.3.0), added the correct driver using menuconfig and compiled it. I followed the instuction given on the wiki.

I wasn't sure how to configure this into burg, so I copied the first entry:

menuentry 'Arch GNU/Linux, with Linux linux' --class arch --class gnu-linux --class gnu --class os --group group_main {
	savedefault
	insmod ext2
	set root='(hd0,1)'
	search --no-floppy --fs-uuid --set 4e5d16a9-9c8e-4622-8686-c2f46be043d0
	echo	'Loading Linux linux ...'
	linux	/vmlinuz-linux root=/dev/disk/by-uuid/e8beb042-98df-4d3a-89c4-89a8b1cecee5 ro  quiet splash
	echo	'Loading initial ramdisk ...'
	initrd	/initramfs-linux.img
}

and changed it to this:

menuentry 'Arch Linux 3.3.0' --class arch --class gnu-linux --class gnu --class os --group group_main {
	savedefault
	insmod ext2
	set root='(hd0,1)'
	search --no-floppy --fs-uuid --set 4e5d16a9-9c8e-4622-8686-c2f46be043d0
	echo	'Loading Linux linux ...'
	linux	/vmlinuz-linux3.3 root=/dev/disk/by-uuid/e8beb042-98df-4d3a-89c4-89a8b1cecee5 ro  quiet splash
	echo	'Loading initial ramdisk ...'
	initrd	/initramfs-linux3.3.img
}

The problem is that I get the error my root device can't be found when booting. I also tried /dev/sda* and by-label, but i doesn't seem to work. Am I doing something wrong?

Last edited by ClementL (2012-03-25 15:11:13)

Offline

#2 2012-03-25 16:12:43

bohoomil
Banned
Registered: 2010-09-04
Posts: 2,377
Website

Re: Custom kernel 3.3 won't boot

Did you build a package or compile your kernel using a traditional approach? As the base for your customization try using this package for example.

Last edited by bohoomil (2012-03-25 16:16:42)


:: Registered Linux User No. 223384

:: github
:: infinality-bundle+fonts: good looking fonts made easy

Offline

#3 2012-03-25 16:31:25

Gcool
Member
Registered: 2011-08-16
Posts: 1,456

Re: Custom kernel 3.3 won't boot

What filesystem are you running on your root partition? Make sure you've compiled in support for that specific filesystem in your custom kernel.


Burninate!

Offline

#4 2012-03-25 19:55:45

ClementL
Member
Registered: 2012-03-24
Posts: 5

Re: Custom kernel 3.3 won't boot

bohoomil wrote:

Did you build a package or compile your kernel using a traditional approach? As the base for your customization try using this package for example.

I indeed did compile using the traditional method. I tried the method you suggested, but i don't know how to customize that one. Now it just compiles for an eternity to abort in the middle of the process because there is not enough storage space.

Gcool wrote:

What filesystem are you running on your root partition? Make sure you've compiled in support for that specific filesystem in your custom kernel.

Yes, I made sure there is support for Ext2 and Ext4.

Last edited by ClementL (2012-03-25 19:56:10)

Offline

#5 2012-03-25 20:10:13

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: Custom kernel 3.3 won't boot

ClementL wrote:

I indeed did compile using the traditional method

How did you create the initrd ?? (initramfs-linux3.3.img)


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#6 2012-03-25 20:23:43

ClementL
Member
Registered: 2012-03-24
Posts: 5

Re: Custom kernel 3.3 won't boot

Using this command:

mkinitcpio -k 3.3.0 -g /boot/initramfs-linux3.3.img

Last edited by ClementL (2012-03-25 20:24:01)

Offline

#7 2012-03-25 20:46:16

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: Custom kernel 3.3 won't boot

Okay, you seem to be on top of things.  Never-the-less, I have to ask:  after you built the kernel, did you do a make modules_install  ?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#8 2012-03-25 20:54:26

ClementL
Member
Registered: 2012-03-24
Posts: 5

Re: Custom kernel 3.3 won't boot

ewaller wrote:

Okay, you seem to be on top of things.  Never-the-less, I have to ask:  after you built the kernel, did you do a make modules_install  ?

Yes I did. I followed the instructions on this page.

Offline

Board footer

Powered by FluxBB