Updated August 15, 2003
Created August 15, 2003


Autogenerated Site Map
Search this Site!:
Search this site powered by FreeFind

I was able to get a driver (bcm5700-2.2.30-1.src.rpm) to build under the kernel-BOOT for RHL AS 2.1 QU2 as follows:

At first I was able to install the smp kernel, boot to it, run the
rpmbuild --rebuild bcm5700-2.2.30-1.src.rpm
and it built just fine and installed just fine with
rpm -hUv --force /usr/src/redhat/RPMS/i386/bcm5700-2.2.30-1.i386.rpm

(The --force is required because it conflicts with an existing bcm5700 driver
in the stock kernel, --force is normal and expected)

Then after install do service network restart to use the driver (/etc/modules.conf was already modified to secify the bcm5700 driver)

I did the same thing for the UP kernel, install the UP kernel, reboot to it, rebuild the bcm5700 rpm as above, then install it, and the UP bcm5700 worked just as well.

This process failed when I attempted to build the bcm5700 driver for the BOOT kernel. It was still building for UP I think. It wouldn't insmod because it was not built for the BOOT kernel.

I modified /boot/kernel.h as follows, redid the build, install it (rpm -hUv --force), then it worked just fine (service network restart) -- no complaints about mismatch.


I bolded the entries/lines I changed:
/* This file is automatically generated at boot time. */
#define __BOOT_KERNEL_BOOT 1
#ifndef __BOOT_KERNEL_H_
#define __BOOT_KERNEL_H_

/* Kernel type i686 */

#ifndef __MODULE_KERNEL_i686
#define __MODULE_KERNEL_i686 0
#endif

#ifndef __BOOT_KERNEL_ENTERPRISE
#define __BOOT_KERNEL_ENTERPRISE 0
#endif

#ifndef __BOOT_KERNEL_SMP
#define __BOOT_KERNEL_SMP 0
#endif

#ifndef __BOOT_KERNEL_UP
#define __BOOT_KERNEL_UP 0
#endif

#endif

Search this Site!:
Search this site powered by FreeFind

Homepage: http://www.cpqlinux.com
Site Map: http://www.cpqlinux.com/sitemap.html