LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-27-2005, 01:47 PM   #1
ilyushin
LQ Newbie
 
Registered: Jun 2005
Location: India
Distribution: Fedora
Posts: 9

Rep: Reputation: 0
Compiling kernel 2.4 in FC4


Hi all,

I have both FC1(2.4.22-1.2115.nptl) and FC4(2.6.11-1.1369_FC4) installed in my system. The reason I keep FC1 is because my PCTel HSP56 micromodem currently works only with the 2.4 kernel. Therefore I cannot access the internet from FC4. I use the GRUB bootloader of FC1 to boot both FC1 and FC3.

Now I thought about trying to compile the 2.4 kernel for FC4. In that way, I might be able to boot FC4 using the 2.4 kernel, install the modem driver and access the internet. Therefore, I copied and extracted kernel-source rpm (kernel-source-2.4.22-1.2115.nptl.i386.rpm) from FC1 installation CD. I gave "make xconfig" and enabled the SCSI CDROM driver (as 2.4 kernel reportedly needs this to burn CDs) and gave "make dep" and "make clean". Then I gave the "make bzImage" command. After compiling for some time, it showed me the following error:

arch/i386/kernel/kernel.o(.text.init+0x5328): In function `acpi_parse_lapic':
acpi.c: undefined reference to `acpi_table_print_madt_entry'
arch/i386/kernel/kernel.o(.text.init+0x5398): In function `acpi_parse_lapic_nmi':
acpi.c: undefined reference to `acpi_table_print_madt_entry'
arch/i386/kernel/kernel.o(.text.init+0x548f): In function `acpi_boot_init':
: undefined reference to `acpi_table_init'
arch/i386/kernel/kernel.o(.text.init+0x54a7): In function `acpi_boot_init':
: undefined reference to `acpi_table_parse'
arch/i386/kernel/kernel.o(.text.init+0x54d2): In function `acpi_boot_init':
: undefined reference to `acpi_table_parse_madt'
arch/i386/kernel/kernel.o(.text.init+0x5507): In function `acpi_boot_init':
: undefined reference to `acpi_table_parse_madt'
arch/i386/kernel/kernel.o(.text.init+0x5525): In function `acpi_boot_init':
: undefined reference to `acpi_table_parse_madt'
make[1]: *** [kallsyms] Error 1
make[1]: Leaving directory `/usr/src/linux-2.4.22-1.2115.nptl'
make: *** [vmlinux] Error 2

What could be the reason for this? Can somebody shed a light on this?
Or, is there any way in which I can use the precompiled kernel image of FC1 for FC4 also? I tried copying the vmlinuz-*.img, initrd-*.img and System.map* from FC1's boot folder to FC3's boot folder and gave the GRUB entry thus:

title Fedora Core 1 (2.4.22-1.2115.nptl)
root (hd0,7)
kernel /vmlinuz-2.4.22-1.2115.nptl ro root=LABEL=/1 hdc=ide-scsi rhgb
initrd /initrd-2.4.22-1.2115.nptl.img

title Fedora Core 4 (2.6.11-1.1369_FC4)
root (hd0,10)
kernel /vmlinuz-2.6.11-1.1369_FC4 ro root=/dev/hda13
initrd /initrd-2.6.11-1.1369_FC4.img

title Fedora Core 4 (2.4.22-1.2115.nptl)
root (hd0,10)
kernel /vmlinuz-2.4.22-1.2115.nptl ro root=/dev/hda13 hdc=ide-scsi
initrd /initrd-2.4.22-1.2115.nptl.img

title DOS/Windows
rootnoverify (hd0,0)
chainloader +1

But on booting with this option, I got the following error:

kjournald starting. Commit interval 5 seconds
EXT3-fs:mounted filesystem with ordered data mode.
pivotroot: pivot_root(/sysroot, sysroot/initrd) failed:2
umount /initrd/proc failed:2
Freeing unused kernel memory: 136K freed
kernel panic: No init found. Try passing init= option to kernel.

Is there something else I can do with this 'initrd' problem?

Maybe this method is ridiculous. I am still much of a Linux newbie and this is the first time that I have attempted to compile the kernel. And I want to succeed in this. :-))

Any little help is most welcome.

Thanks,
Ilyushin

Last edited by ilyushin; 07-27-2005 at 01:48 PM.
 
Old 07-28-2005, 07:21 AM   #2
biophysics
Member
 
Registered: Jan 2002
Location: Germany
Distribution: Kubuntu
Posts: 444

Rep: Reputation: 30
May be you can better download the kernel source from ftp.in.kernel.org get your 2.4-version.

Boot into your 2.4 kernel and copy the **existing** config-2.4.--- from your /boot directory.

type
#> cd /usr/src/linux-2.4---
#> cp /boot/config-2.4---- .config
#> make oldconfig

Repeat the kernel compile process.
 
Old 07-28-2005, 08:34 AM   #3
ilyushin
LQ Newbie
 
Registered: Jun 2005
Location: India
Distribution: Fedora
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks. That's what I did just now. But a new problem has cropped up. I downloaded 2.4.22 kernel from kernel.org and the make oldconfig, make dep, make clean and make modules went without a glitch. However, in "make modules_install", it complained that it needed an older depmod.old version. I symlinked depmod to depmod.old. Thus "make modules_install" was also completed.

Now came the problem. When I gave "/sbin/mkinitrd -v /boot/initrd-2.4.22.img 2.4.22" the output was this:

Creating old-style initrd
Looking for deps of module ide-disk
Looking for deps of module ext3
Using modules: ./kernel/fs/ext3/ext3.o
/tmp/initrd.img.JG3788: Permission denied

Each time I gave this command, a new "initrd.img.XXX" file was being created in /tmp. But permission was being denied for something. Why is this so, given that I am root?

Any ideas??

Thanks.
Ilyushin
 
Old 07-28-2005, 11:23 AM   #4
TheOracle
Member
 
Registered: Nov 2004
Posts: 87

Rep: Reputation: 15
Get XEN virtual machine then you can run both...
Hope this helps
 
Old 07-29-2005, 07:47 AM   #5
biophysics
Member
 
Registered: Jan 2002
Location: Germany
Distribution: Kubuntu
Posts: 444

Rep: Reputation: 30
Quote:
Originally posted by ilyushin
Thanks. That's what I did just now. But a new problem has cropped up. I downloaded 2.4.22 kernel from kernel.org and the make oldconfig, make dep, make clean and make modules went without a glitch. However, in "make modules_install", it complained that it needed an older depmod.old version. I symlinked depmod to depmod.old. Thus "make modules_install" was also completed.

Now came the problem. When I gave "/sbin/mkinitrd -v /boot/initrd-2.4.22.img 2.4.22" the output was this:

Creating old-style initrd
Looking for deps of module ide-disk
Looking for deps of module ext3
Using modules: ./kernel/fs/ext3/ext3.o
/tmp/initrd.img.JG3788: Permission denied

Each time I gave this command, a new "initrd.img.XXX" file was being created in /tmp. But permission was being denied for something. Why is this so, given that I am root?

Any ideas??

Thanks.
Ilyushin

Check the syntax of mkinitrd:

mkinitrd -b /boot -k <kernelname> -i <initrd-name>
 
Old 07-30-2005, 10:57 AM   #6
helmut_hed
Member
 
Registered: Jul 2003
Location: San Francisco, CA, USA
Distribution: Kubuntu Hardy
Posts: 103

Rep: Reputation: 15
Support for PCTel modems (probably including yours) under the 2.6 kernel was released within the last week. Hopefully this will mean you don't have to do all this work to get 2.4 compiled...

http://linmodems.technion.ac.il/pcte...x/welcome.html

(2.6 support is in pctel-0.9.7-9-rht-4.tar.gz)

Regards,
Jeff
 
Old 07-31-2005, 01:10 AM   #7
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 52
you need old module utilities for the old kernel
lets see when we were making the transition we had the old modutils installed and the new module-init-utils had a script that you ran once after they were installed to set up so both 2.4 and 2.6 kernels could work.

i guess you have to try to set that up like that
 
Old 08-09-2005, 02:30 AM   #8
ilyushin
LQ Newbie
 
Registered: Jun 2005
Location: India
Distribution: Fedora
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks. I downloaded the new pctel driver for 2.6 kernel. Still trying to get it working... but am confident that it'll work sooner or later. It's a lot better than trying to get the 2.4 kernel working...

Thanks everyone. :-)
 
  


Reply


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Compiling ns2 on FC4 sita Linux - Software 0 11-04-2005 02:25 PM
compiling problem qmailmrtg on FC4 planetdar420 Fedora 1 10-28-2005 04:51 AM
Problem Compiling C code on FC4 BBPS Programming 4 09-30-2005 11:23 AM
Error compiling kernel 2.6.12.4 in FC4 ilyushin Linux - Newbie 1 08-17-2005 01:23 PM
Compiling libmpeg3 on FC4 PPC duvalgo Linux - Software 7 08-03-2005 05:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:22 PM.

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