Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

kerlnel build

Status
Not open for further replies.

sonun

IS-IT--Management
Dec 26, 2001
384
US
I dont know why, but I am getting some error messages at the end of any kernel I try to build. I can boot in to it, but I am not sure if I can ignore the warning message.

make -C misc modules_install
make[2]: Entering directory `/usr/src/linux-2.4.7-10/drivers/misc'
make[2]: Nothing to be done for `modules_install'.
make[2]: Leaving directory `/usr/src/linux-2.4.7-10/drivers/misc'
make -C net modules_install
make[2]: Entering directory `/usr/src/linux-2.4.7-10/drivers/net'
mkdir -p /lib/modules/2.4.7-10custom/kernel/drivers/net/
cp dummy.o /lib/modules/2.4.7-10custom/kernel/drivers/net/
cp: cannot stat `dummy.o': No such file or directory
make[2]: *** [_modinst__] Error 1
make[2]: Leaving directory `/usr/src/linux-2.4.7-10/drivers/net'
make[1]: *** [_modinst_net] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.7-10/drivers'
make: *** [_modinst_drivers] Error 2

Thanks.
 
ok, the only problem I get is that it does not bring up the interface eth0 and hence cannot connect to the internt and some applications. Thats the only problem I have when I boot into the kernel built.
Thanks.
 
Sounds like you haven't included the right modules for your nic.
Here is how I compile a new kernel.

make clean; make menuconfig; make dep; make bzImage; make modules; make modules_install

!!TIP!!: After running make menuconfig, it's a good idea to add something to the EXTRAVERSION parameter in top of the Makefile. (e.g. "EXTRAVERSION = rev2"). This will prevent you from deleteting previously installed modules from other compiles of the same kernelversion when running 'make moudles_install'.

-Katamann
 
I am sorry, so what does rev2 refer to here ???

In my origial source (which has no problems with the NIC), the top of the makefile showed the following params.

VRESION=2
PATCHLEVEL=4
SUBLEVEL=7
EXTRAVERSION = -10custom


In the kernel I built, the top of the Makefile also showed

VRESION=2
PATCHLEVEL=4
SUBLEVEL=7
EXTRAVERSION = -10custom

(all I wanted to do was enable scsi tape drive support, generic scsi, probe all lun's support under scsi support as the kernel had to be enabled for all these. This kernel was connected to a autloader which required that I enable these options in the kernel. I tried makiing it modular, hard coding it, but with the same rsult. This kernel will also be connected to raid arrays andhence I will have to enable that option too sometime in the kernel. But thats after I get over this problem of enabling scsi support.

Please advise.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top