Did you know LQ has a Linux Hardware Compatibility List?
Go Back > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Fedora This forum is for the discussion of the Fedora Project.


LinkBack Search this Thread
Old 12-21-2012, 09:48 AM   #1
LQ Newbie
Registered: Oct 2007
Posts: 25

Rep: Reputation: 2
custom kernel not booting

I've got a dell xps 13z laptop with a new fedora 17 install. The cypress trackpad doesn't have a driver, so tapping and gestures dont work and I can't control the backlight. So, I downloaded the 3.7.0 kernel sauce from the gnu site and applied patches from an arch linux package which has proper drivers and modifications to make it work. Recompiled the kernel just fine and installed it. I haven't done a kernel compile with patches like this before, and I think I forgot a step.

After copying the vmlinuz file to /boot and running dracut on it, then grub2-mkconfig -o /boot/grub2/grub.cfg, it made me an initramfs image and updated the config grub config.

I rebooted and tried to load the new kernel (3.7.0-ARCH, apparently). It doesn't work.

I get an error:

dracut Warning: Unable to process initqueue

dracut Warning: Unable to process initqueue
dracut Warning: /dev/disk/by-uuid/c94ab3c5-c58a-4bb8-b9d0-aac835c00402 does not exist

Dropping to debug shell.
I tried changing the commandline to the kernel supplying root=LABEL=root instead of the uuid, and it tells me that it doesn't exist. Same thing happens when I change it to root=/dev/sda2. e2label shows that /dev/sda2 is labelled as root.

Just noticed that while in the dracut debug shell, /dev/sda doesn't exist, neither does /dev/by-label or /dev/by-uuid.

Any ideas what I missed?

Last edited by bocochoco; 12-21-2012 at 09:58 AM.
Old 12-21-2012, 10:20 AM   #2
Senior Member
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Slackware
Posts: 4,137

Rep: Reputation: 622Reputation: 622Reputation: 622Reputation: 622Reputation: 622Reputation: 622
Does the uuid the error message shows as 'does not exit' actually exist? Run blkid or ls /dev/disk/by-uuid.
What does fdisk show? Does sda exist?
Old 12-21-2012, 10:32 AM   #3
LQ Newbie
Registered: Oct 2007
Posts: 25

Original Poster
Rep: Reputation: 2
Yup, the device exists.

# blkid /dev/sda2
/dev/sda2: LABEL="root" UUID="c94ab3c5-c58a-4bb8-b9d0-aac835c00402" TYPE="ext4"

fdisk shows that /dev/sda has partitions. This information gathered from a different (working) kernel.

It looks like a symlink to udevd in the initramfs isn't pointing to the right location. I can't seem to edit the image though. It's not gzip'd and it wont let me mount it. tells me invalid fs type.

[root@umbreon boot]# lsinitrd initramfs-3.7.0-ARCH.img | grep udevd
lrwxrwxrwx   1 root     root           17 Dec 21 11:31 usr/sbin/udevd -> ../lib/udev/udevd
-rwxr-xr-x   1 root     root       165976 May 31  2012 usr/lib/udev/udevd
[root@umbreon boot]# lsinitrd initramfs-3.6.10-2.fc17.x86_64.img | grep udevd
lrwxrwxrwx   1 root     root           19 Dec 20 14:11 usr/sbin/udevd -> /usr/lib/udev/udevd
-rwxr-xr-x   1 root     root       165976 May 31  2012 usr/lib/udev/udevd
edit: Modified the initramfs image, changing that link. Same results.

edit 2: I went back and looked at my .config file and I noticed that I didn't compile in ext2 or ext3 support and ext4 was enabled as a module. I'm recompiling with them built in rather than a module. Hopefully this fixes it. :/

Last edited by bocochoco; 12-21-2012 at 11:22 AM.
Old 12-21-2012, 12:51 PM   #4
LQ Newbie
Registered: Oct 2007
Posts: 25

Original Poster
Rep: Reputation: 2
Dell XPS 13z

Rebuilding the kernel with the correct config worked perfectly.

I had a hard time getting the patches for the kernel in the first place. Took a bit of searching, so I hope this might help someone else. Here's how I got all the hardware to work. This is for a Dell Studio XPS 13z.

Download this stuff: (these are kernel patches that the dell hws team applied to a kernel for ubuntu). Download the tarball This is kernel 3.7.

extract your tarballs to somewhere (In my case, /home/quyzi/Downloads)
cd into the directory of the linux kernel code
cd /home/quyzi/Downloads/linux-3.7/
export srcdir = /home/quyzi/Downloads/linux-mainline-dell
  patch -p1 -i "${srcdir}/fuse-ntfs-fix.patch"
  patch -p1 -i "${srcdir}/cypress49ca49a.patch"
  patch -p1 -i "${srcdir}/cypressc70c867.patch"
  patch -p1 -i "${srcdir}/cypress271d736.patch"
  patch -p1 -i "${srcdir}/cypressd29a837.patch"
  patch -p1 -i "${srcdir}/cypressce1b702.patch"
  patch -p1 -i "${srcdir}/cypress2abd2a6.patch"
  patch -p1 -i "${srcdir}/cypress25a9bac.patch"
  patch -p1 -i "${srcdir}/cypressecbe652.patch"
  patch -p1 -i "${srcdir}/cypress1c6c152.patch"
  patch -p1 -i "${srcdir}/cypress756f8ce.patch"
  patch -p1 -i "${srcdir}/cypressdfeb9e1.patch"
  patch -p1 -i "${srcdir}/cypressfba5b9a.patch"
  patch -p1 -i "${srcdir}/cypress-3.7-mt-init.patch"
  patch -p1 -i "${srcdir}/revert-pch-backlight-registers.patch"
  patch -p1 -i "${srcdir}/change-default-console-loglevel.patch"
Now you need to configure the kernel properly and compile. Then install
make menuconfig 
make modules_install
cp arch/x86_64/bzImage /boot/vmlinuz-3.7.0-custom 
chmod ugo+x /boot/vmlinuz-3.7.0-custom
I needed an initramfs image, so I had dracut build one. Then make a new grub config to boot using the new kernel.
dracut /boot/initramfs-3.7.0-custom.img 3.7.0-custom
grub2-mkconfig -o /boot/grub2/grub.cfg


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems booting custom kernel smartacus Linux - General 2 02-09-2011 11:07 PM
Custom kernel not booting... marsques Linux - General 3 10-08-2010 02:47 PM
kernel panic while booting custom compiled 2.6.24 kernel on RHEL 4 AS samkraju Red Hat 4 02-10-2008 12:55 AM
Booting a 2.6.12 Custom Kernel in Debian pfizur Linux - Kernel 4 07-26-2006 07:39 PM
How do I make sure Im booting onto my custom kernel? Kramer Linux - General 10 10-21-2003 12:43 PM

All times are GMT -5. The time now is 08:11 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration