--- Andrew Robinson <[EMAIL PROTECTED]> wrote:
> I tried to build a kernel as an exercise on how to
> build a kernel. The 
> process seemed to work. However, when I booted with
> my new kernel, no 
> modules loaded, including some insignificant ones
> like networking. I'm 
> hoping someone can give me some insight on what I
> did wrong.
> 
> The tutorial I was using was the Red Hat Linux 7.3
> Bible. Here are the steps:
> 
> 1. Install kernel source code. I noticed that during
> the initial up2date 
> upgrades, the kernel changed from whatever came on
> the CDs to 
> linux-2.4.18-24.7.x. I downloaded the source rpm for
> that kernel from Red 
> Hat and installed it. Because I did not want to
> screw up anything that was 
> working, I made a copy of the source directory,
> named 
> /usr/src/linux-2.4.18-24.7.tst1.x and moved the link
> from linux-2.4 to that 
> directory.
> 
> 2. I made a boot disk to get myself out of trouble
> if needed:
> mkbootdisk --device /dev/fd0 2.4.18-24.7.x
> 
> 3. Various make steps for the kernel. I looked
> around in xconfig, but I did 
> not change anything:
> make mrproper
> make xconfig
> make dep
> make clean
> make bzImage
> 
> 4. Make steps for the modules. It seemed like the
> messages returned in 
> these two steps indicated that things were up to
> date and make did not need 
> to do much (if anything):
> make modules
> make modules_install
> 
> 5. My computer has no SCSI adapter so I skipped the
> mkinitrd step.
> 
> 6. I copied the bzImage file into /boot with an
> appropriate vmlinuz name, 
> careful not to overwrite the existing kernel. I
> copied the existing entry 
> in the grub.conf file with the appropriate name
> change. Then I rebooted.
> 
> As stated above, the PC booted with the new kernel
> and I was able to log 
> in, seemingly normally. However, I had no network
> and dmesg had strange 
> mumblings about modules. The lsmod command returned
> nothing. Am I correct 
> in assuming that my mistake happened somewhere
> around step 4? What should I 
> have done?

 I too, am having trouble re-building the kernel.
 I think what you've done is to use the xconfig
 defaults, not the config that was used to build
 the initial "vmlinuz" and associated modules.

 Look in /boot and find the config file there,
 something like "config-2.4.18-3" and use
 xconfig to load and save it ... on releases
 of RH earlier than 7.3 this worked well with
 the procedure you outline above.

 On 7.3 and 8.0 I get perhaps 50% thru compiling
 bzImage and get compile errors ...

make[1]: Entering directory
`/usr/src/linux-2.4.18-14/arch/i386/kernel'
gcc -D__KERNEL__ -I/usr/src/linux-2.4.18-14/include
-Wall -Wstrict-prototypes -Wno-trigraphs -O2
-fno-strict-aliasing -fno-common -fomit-frame-pointer
-pipe -mpreferred-stack-boundary=2 -march=i686  
-nostdinc -I
/usr/lib/gcc-lib/i386-redhat-linux/3.2/include
-DKBUILD_BASENAME=apic  -c -o apic.o apic.c
apic.c: In function `get_maxlvt':
apic.c:44: warning: implicit declaration of function
`apic_read'
apic.c: In function `clear_local_APIC':
apic.c:64: warning: implicit declaration of function
`apic_write_around'
apic.c:94: warning: implicit declaration of function
`apic_write'

===================================================

 I'm guessing the header files are not quite current
 but I haven't had time to continue investigation.


=====
There are only 10 kinds of people in the world.
 Those who understand binary and those who don't.

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to