CArmstrong
08-16-2004, 04:44 AM
Morning. I'm experiencing an odd problem.. my kernel compile goes great, but when I go to mkinitrd I notice that most of the modules haven't been compiled. I'm using my old config, so many of the same modules should be compiled with the new kernel that were compiled in the last one. I've made the bzImage, modules and modules_install with no errors.
Have I forgotten something? Thanks.
Unknown_User
08-16-2004, 05:19 AM
Chris, what kernel are you compiling, what version of mkinitrd have you got?
Regards
DislexiK
CArmstrong
08-16-2004, 05:30 AM
Morning dislexik. I'm trying to compile 2.4.27 from a stock Fedora core 1 kernel: 2.4.22-1.2115.nptl.
My mkinitrd is version 3.5.14. Thanks!
CArmstrong
08-16-2004, 05:51 AM
If it's any help, I tried a compile of the latest 2.6 tree:
Kernel: arch/i386/boot/bzImage is ready
sh /home/custom/linux-2.6.8.1/arch/i386/boot/install.sh 2.6.8.1 arch/i386/boot/bzImage System.map ""
WARNING: Couldn't open directory /lib/modules/2.6.8.1: No such file or directory
FATAL: Could not open /lib/modules/2.6.8.1/modules.dep.temp for writing: No such file or directory
/lib/modules/2.6.8.1 is not a directory.
mkinitrd failed
make[1]: *** [install] Error 1
make: *** [install] Error 2
So I made /lib/modules/2.6.8.1 and tried again:
[root@localhost linux-2.6.8.1]# make install
make[1]: `arch/i386/kernel/asm-offsets.s' is up to date.
CHK include/linux/compile.h
Kernel: arch/i386/boot/bzImage is ready
sh /home/custom/linux-2.6.8.1/arch/i386/boot/install.sh 2.6.8.1 arch/i386/boot/bzImage System.map ""
No module ata_piix found for kernel 2.6.8.1, aborting.
mkinitrd failed
make[1]: *** [install] Error 1
make: *** [install] Error 2
FYI:
[root@localhost 2.6.8.1]# ls -l /lib/modules/2.6.8.1/
total 24
-rw-r--r-- 1 root root 45 Aug 17 04:47 modules.alias
-rw-r--r-- 1 root root 69 Aug 17 04:47 modules.ccwmap
-rw-r--r-- 1 root root 0 Aug 17 04:47 modules.dep
-rw-r--r-- 1 root root 73 Aug 17 04:47 modules.ieee1394map
-rw-r--r-- 1 root root 99 Aug 17 04:47 modules.pcimap
-rw-r--r-- 1 root root 49 Aug 17 04:47 modules.symbols
-rw-r--r-- 1 root root 189 Aug 17 04:47 modules.usbmap
I'm really at a loss.. I've been trying things for hours. Thanks everyone!
MattF
08-16-2004, 06:19 AM
What is your hardware? You may not need libata (ata_piix), Fedora installs seem to add it to /etc/modules.conf and /etc/modprobe.conf when it's not needed, and hence mkinitrd fails on new kernels. For 3ware cards its not needed, and the latest kernels have a lot of SATA support already there.
Unknown_User
08-16-2004, 06:24 AM
With 2.6 kernels you need the latest module-init-tools in order to compile modules and install them correctly :)
I am not too sure on the 2.4.27 topic sorry
Regards
DislexiK
CArmstrong
08-16-2004, 06:28 AM
Originally posted by MattF
What is your hardware? You may not need libata (ata_piix), Fedora installs seem to add it to /etc/modules.conf and /etc/modprobe.conf when it's not needed, and hence mkinitrd fails on new kernels. For 3ware cards its not needed, and the latest kernels have a lot of SATA support already there.
My hardware: Intel P4 2.8GHz, 2gb RAM, 2 x 80GB drives
[root@localhost root]# lspci
00:00.0 Host bridge: Intel Corp. 82865G/PE/P DRAM Controller/Host-Hub Interface (rev 02)
00:02.0 VGA compatible controller: Intel Corp. 82865G Integrated Graphics Device (rev 02)
00:1d.0 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #1 (rev 02)
00:1d.1 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #2 (rev 02)
00:1d.2 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #3 (rev 02)
00:1d.3 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB UHCI #4 (rev 02)
00:1d.7 USB Controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) USB2 EHCI Controller (rev 02)
00:1e.0 PCI bridge: Intel Corp. 82801BA/CA/DB/EB/ER Hub interface to PCI Bridge (rev c2)
00:1f.0 ISA bridge: Intel Corp. 82801EB/ER (ICH5/ICH5R) LPC Bridge (rev 02)
00:1f.1 IDE interface: Intel Corp. 82801EB/ER (ICH5/ICH5R) Ultra ATA 100 Storage Controller (rev 02)
00:1f.2 IDE interface: Intel Corp. 82801EB (ICH5) Serial ATA 150 Storage Controller (rev 02)
00:1f.3 SMBus: Intel Corp. 82801EB/ER (ICH5/ICH5R) SMBus Controller (rev 02)
00:1f.5 Multimedia audio controller: Intel Corp. 82801EB/ER (ICH5/ICH5R) AC'97 Audio Controller (rev 02)
01:00.0 Ethernet controller: Intel Corp. 82540EM Gigabit Ethernet Controller (rev 02)
I appreciate any help Matt.. not sure if I need libata from this :confused:
CArmstrong
08-16-2004, 06:42 AM
Too late to edit, but more info:
[root@localhost etc]# cat modules.conf
alias scsi_hostadapter ata_piix
alias sound-slot-0 i810_audio
post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&1 || :
pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 || :
alias usb-controller usb-uhci
alias usb-controller1 ehci-hcd
alias eth0 e1000
choon
08-16-2004, 06:48 AM
I think you need ata_piix...
00:1f.2 IDE interface: Intel Corp. 82801EB (ICH5) Serial ATA 150 Storage Controller (rev 02)
What does lsmod shows you?
Slidey
08-16-2004, 07:47 AM
did you make modules; make modules_install ?
CArmstrong
08-16-2004, 03:15 PM
Yes slidey I did, thanks.
[root@s2 root]# lsmod
Module Size Used by Not tainted
loop 12472 0 (autoclean)
parport_pc 19076 1 (autoclean)
lp 9060 0 (autoclean)
parport 37056 1 (autoclean) [parport_pc lp]
autofs 13364 0 (autoclean) (unused)
e1000 71616 1
ipt_REJECT 4344 1 (autoclean)
ipt_state 1080 2 (autoclean)
ip_conntrack 29256 1 (autoclean) [ipt_state]
iptable_filter 2444 1 (autoclean)
ip_tables 15776 3 [ipt_REJECT ipt_state iptable_filter]
floppy 58012 0 (autoclean)
sg 36492 0 (autoclean) (unused)
microcode 4700 0 (autoclean)
keybdev 2976 0 (unused)
mousedev 5556 0 (unused)
hid 24708 0 (unused)
input 5888 0 [keybdev mousedev hid]
ehci-hcd 20264 0 (unused)
usb-uhci 26380 0 (unused)
usbcore 79168 1 [hid ehci-hcd usb-uhci]
ext3 71300 2
jbd 52084 2 [ext3]
ata_piix 3908 0 (unused)
libata 27716 0 [ata_piix]
sd_mod 13708 0 (unused)
scsi_mod 108104 3 [sg ata_piix libata sd_mod]