Click to See Complete Forum and Search --> : Kernel Compile Error "No rule to make target.." ....Please HELP


LittleGreenGecko
05-03-2002, 01:50 PM
I need help to troubleshoot this error when running the following command:

cd /usr/src/linux/

make dep

.....Verbose output as we all know.

make: *** No rule to make target 'bzImage'. Stop.

I don't really know why its doing this....

could anyone please point me in the right direction?

NOTE: I am using an pent 600+ proc with standard hardware, including a Netgear 311 nic. ps.... what is the kernel option for this type of nic card?


Thanks Alot in advance for the assistance.

[ 03 May 2002: Message edited by: LittleGreenGecko ]

Taizong
05-03-2002, 04:06 PM
1. First edit the file /usr/src/linux-2.4/Makefile, specifically the line EXTRAVERSION= , place what you want the new image to be named.

2. Next make your present working directory /usr/src/linux

3. Copy kernel.config to .config (make mrproper), and then copy configs/kernel-<current version>.config to .configs

4. type: make oldconfig

5. Choose your desired method of kernel configuration, I would suggest: make menuconfig

6. When it's over, next type: make dep bzImage

7. Then you want to make the modules by typing: make modules

8. Copy your bzImage to /boot/vmlinuz-<version>

9. type: make modules_install

10. copy System.map to /boot/System.map-<version>

11. Execte /sbin/new-kernel-pkg

Lastly, edit your grub or lilo config to show your new kernel image. Scream "booyaa!!", put some rap music (preferably Ludacris's 'Saturday') on full blast and brace for a kernel panic - joke ;)