Compiling network-driver of AOpen-EZ65 (bcm5700) for c't-VDR (debian linux) with the 'Broadcom Corporation NetXtreme BCM5705 Gigabit Ethernet (rev 3)' chip
  1. 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).
  2. Disable vdr after logon with /etc/init.d/vdr stop
  3. apt-get update
  4. apt-get install dpkg-dev gcc g++ libc6-dev make patch debhelper
  5. apt-get install wget
  6. 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/
  7. apt-get update
  8. apt-get install kernel-source-2.4.21
  9. apt-get install kernel-headers-2.4.21
  10. Extract the two kernel archives in /usr/src/ (where the are located)
  11. Change directory to the kernel source cd /usr/src/kernel-source-2.4.21-i586-cdv
  12. Edit the Makefile's "EXTRAVERSION=" definition to match your kernel's name, for c't VDR use EXTRAVERSION = -i586-cdv
  13. In /usr/src do ln -s /usr/src/kernel-source-2.4.21-i586-cdv linux
  14. Change to /usr/src/kernel-source-2.4.21-i586-cdv
  15. Copy the config file from /boot to .config in the kernel source dir cp /boot/config-2.4.21-i586-cdv .config
  16. Configure the kernel source make oldconfig;make dep
  17. Get the network drivers from broadcom with wget http://www.broadcom.com/docs/driver_download/570x/linux-7.1.22.zip and extract them.
  18. 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.
  19. make and you should hopefully get a bcm5700.o.
  20. gzip -c bcm5700.4 > bcm5700.4.gz and transfer bcm5700.4.gz and bcm5700.o to your destination system
  21. 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 .
  22. insmod bcm5700
  23. depmod -a
  24. add bcm5700 to /etc/modules
  25. add alias eth0 bcm5700 to /etc/modules.conf
  26. add
    auto eth0
    iface eth0 inet dhcp
    to /etc/network/interfaces

 

Here some precompiled modules:Use uname -r to determine your kernel-version