You are not logged in.

#1 2009-11-22 21:26:57

shawleigh17
Member
Registered: 2009-11-22
Posts: 1

Cannot boot new Kernel

Hello, I am very new to linux, and I am trying to add a syscall to the Kernel (for a school project). I have followed the arch wiki, but I am not sure what I am doing wrong.
I changed all of the files and recompiled, the I added the kernel to the bootloader list, but I get the error:
"modprobe: FATAL: Could not load /lib/modules/2.6.30.5-revision1/modules.dep: No such file or directory."

I added my new kernel to the bootloader configuration file and it looks like this:

# (0) Arch Linux
title Arch Linux [/boot/vmlinuz26]
root (hd0,0)
kernel /vmlinuz26 root=/dev/disk/by-uuid/... ro
initrd /kernel26.img

# (1) Arch Linux
title Arch Linux Fallback
root (hd0,0)
kernel /vmlinuz26 root=/dev/disk/by-uuid/... ro
initrd /kernel26-fallback.img

# (2) Arch Linux new Kernel
title Arch Linux New Kernel [/boot/vmlinuz-2.6.30.5-revision1]
root (hd0,0)
kernel /vmlinuz-2.6.30.5-revision1 root=/dev/sda3 ro
initrd /kernel26-revision1.img

I have System.map-2.6.30.5-revision1, vmlinuz-2.6.30.5-revision1, and kernel26-revision1.img in my /boot directory.

When I look in my /lib/modules directory, I see 2.6.30-ARCH, so am I missing something in the modules directory?

I've tried recompiling the kernel several times, now, and I keep coming up with the same problem. Any suggestions would be greatly appreciated.

Offline

#2 2009-11-24 09:32:57

buddabrod
Member
From: Germany
Registered: 2007-02-25
Posts: 220

Re: Cannot boot new Kernel

You need to do a "make modules install" after building the custom kernel or did you use a PKGBUILD?

If you used a PKGBUILD, then you did something wrong there. As a quick and really dirty fix you can just cd into the src dir of the kernel and do the already mentioned "make modules install" and then all the stuff needed will be copied to /lib/modules.
After removing the kernel you need to remember to remove that stuff again.

Last edited by buddabrod (2009-11-24 09:34:53)

Offline

Board footer

Powered by FluxBB