Compiling network-driver of AOpen-EZ65 (bcm5700) for c't-VDR (debian
linux) with the 'Broadcom Corporation NetXtreme BCM5705 Gigabit Ethernet (rev
3)' chip
- I used MS Virtual PC and installed the c't VDR distribution there (VMWare
won't work, cos c't VDR doesn't support scsi disks).
- Disable vdr after logon with /etc/init.d/vdr stop
- apt-get update
- apt-get install dpkg-dev gcc g++ libc6-dev make patch
debhelper
- apt-get install wget
- Edit /etc/apt/sources.list and add
# Debian-Quellen fuer c't-VDR
deb-src http://heise.de/ct/ftp/projekte/vdr/debian source/
deb http://heise.de/ct/ftp/projekte/vdr/debian binary/
- apt-get update
- apt-get install kernel-source-2.4.21
- apt-get install kernel-headers-2.4.21
- Extract the two kernel archives in /usr/src/ (where
the are located)
- Change directory to the kernel source cd /usr/src/kernel-source-2.4.21-i586-cdv
- Edit the Makefile's "EXTRAVERSION=" definition to match your kernel's name,
for c't VDR use EXTRAVERSION = -i586-cdv
- In /usr/src do ln -s
/usr/src/kernel-source-2.4.21-i586-cdv linux
- Change to /usr/src/kernel-source-2.4.21-i586-cdv
- Copy the config file from /boot to .config in the kernel source dir cp
/boot/config-2.4.21-i586-cdv .config
- Configure the kernel source make oldconfig;make dep
- Get the network drivers from broadcom with wget http://www.broadcom.com/docs/driver_download/570x/linux-7.1.22.zip
and extract them.
- Go to the src dir of the driver and change
the following line in the Makefile, from
CFLAGS=-DMODULE -D__KERNEL__ -DDBG=0 -DT3_JUMBO_RCV_RCB_ENTRY_COUNT=256
-DNICE_SUPPORT -DPCIX_TARGET_WORKAROUND=1 -DINCLUDE_TBI_SUPPORT -DINCLUDE_5701_AX_FIX=1
-Wall -Wstrict-prototypes -O6 -I$(LINUX)/include to
CFLAGS=-DMODULE -D__KERNEL__ -DDBG=0 -DT3_JUMBO_RCV_RCB_ENTRY_COUNT=256
-DNICE_SUPPORT -DPCIX_TARGET_WORKAROUND=1 -DINCLUDE_TBI_SUPPORT -DINCLUDE_5701_AX_FIX=1
-Wall -Wstrict-prototypes -O6 -I/usr/src/kernel-source-2.4.21-i586-cdv/include.
- make and you should hopefully get a bcm5700.o.
- gzip -c bcm5700.4 > bcm5700.4.gz and transfer
bcm5700.4.gz and bcm5700.o to your destination
system
- cp bcm5700.4.gz /usr/share/man/man4/ and cp
bcm5700.o /lib/modules/2.4.21-i586-cdv/kernel/drivers/net/on your destination
system .
- insmod bcm5700
- depmod -a
- add bcm5700 to /etc/modules
- add alias eth0 bcm5700 to /etc/modules.conf
- add
auto eth0
iface eth0 inet dhcp
to /etc/network/interfaces
Here some precompiled modules:Use uname
-r to determine your kernel-version
- For kernel 2.4.21-i586-cdv:2.4.21-i586-cdv.zip
cp bcm5700.4.gz /usr/share/man/man4/ and
cp bcm5700.o /lib/modules/2.4.21-i586-cdv/kernel/drivers/net/on
your destination system .
- For kernel 2.4.24-ctvdr-2:2.4.24-ctvdr-2.zip
cp bcm5700.4.gz /usr/share/man/man4/ and cp
bcm5700.o /lib/modules/2.4.24-ctvdr-2/kernel/drivers/net/on your
destination system .