Hi guys,
I'm trying to use this NIC Broadcom BCM5719 - http://h18004.www1.hp.com/products/servers/networking/331T/ but FreeBSD doesn't seem to recognize it. I found a source for this bge module http://code.metager.de/source/xref/freebsd/sys/dev/bge/ and tried to compile one, but it's giving me a lot of errors.
What can I do to have this NIC working on this version of FreeBSD? On 8.3, it's working, but I can't use it.
I'm trying to use this NIC Broadcom BCM5719 - http://h18004.www1.hp.com/products/servers/networking/331T/ but FreeBSD doesn't seem to recognize it. I found a source for this bge module http://code.metager.de/source/xref/freebsd/sys/dev/bge/ and tried to compile one, but it's giving me a lot of errors.
Code:
make
Warning: Object directory not changed from original /usr/src/sys/modules/bge
awk -f @/tools/makeobjops.awk @/dev/mii/miibus_if.m -h
awk -f @/tools/miidevs2h.awk @/dev/mii/miidevs
awk -f @/tools/makeobjops.awk @/kern/device_if.m -h
awk -f @/tools/makeobjops.awk @/kern/bus_if.m -h
awk -f @/tools/makeobjops.awk @/dev/pci/pci_if.m -h
cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -nostdinc -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -fno-omit-frame-pointer -mcmodel=kernel -mno-red-zone -mfpmath=387 -mno-sse -mno-sse2 -mno-sse3 -mno-mmx -mno-3dnow -msoft-float -fno-asynchronous-unwind-tables -ffreestanding -fstack-protector -std=iso9899:1999 -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c if_bge.c
if_bge.c: In function 'bge_miibus_statchg':
if_bge.c:931: error: 'IFM_ETH_TXPAUSE' undeclared (first use in this function)
if_bge.c:931: error: (Each undeclared identifier is reported only once
if_bge.c:931: error: for each function it appears in.)
if_bge.c:936: error: 'IFM_ETH_RXPAUSE' undeclared (first use in this function)
if_bge.c: In function 'bge_sig_pre_reset':
if_bge.c:1312: error: 'BGE_SOFTWARE_GENCOMM' undeclared (first use in this function)
if_bge.c:1312: error: 'BGE_MAGIC_NUMBER' undeclared (first use in this function)
if_bge.c: In function 'bge_stop_fw':
if_bge.c:1365: error: 'BGE_SOFTWARE_GENCOMM_FW' undeclared (first use in this function)
if_bge.c:1365: error: 'BGE_FW_PAUSE' undeclared (first use in this function)
if_bge.c:1366: error: 'BGE_CPU_EVENT' undeclared (first use in this function)
if_bge.c: In function 'bge_chipinit':
if_bge.c:1501: error: 'BGE_DMA_SWAP_OPTIONS' undeclared (first use in this function)
if_bge.c: In function 'bge_dma_alloc':
if_bge.c:2551: error: 'BGE_DMA_BNDRY' undeclared (first use in this function)
if_bge.c: In function 'bge_attach':
if_bge.c:2931: error: 'BGE_MISCCFG_BOARD_ID' undeclared (first use in this function)
if_bge.c:2938: error: 'BMSR_DEFCAPMASK' undeclared (first use in this function)
cc1: warnings being treated as errors
if_bge.c:2991: warning: implicit declaration of function 'pci_find_cap'
if_bge.c:2991: warning: nested extern declaration of 'pci_find_cap'
if_bge.c:3076: error: 'BGE_SOFTWARE_GENCOMM_SIG' undeclared (first use in this function)
if_bge.c:3077: error: 'BGE_MAGIC_NUMBER' undeclared (first use in this function)
if_bge.c:3078: error: 'BGE_SOFTWARE_GENCOMM_NICCFG' undeclared (first use in this function)
if_bge.c:3236: warning: implicit declaration of function 'mii_attach'
if_bge.c:3236: warning: nested extern declaration of 'mii_attach'
if_bge.c:3237: error: 'MII_OFFSET_ANY' undeclared (first use in this function)
if_bge.c: In function 'bge_reset':
if_bge.c:3430: error: 'BGE_SOFTWARE_GENCOMM' undeclared (first use in this function)
if_bge.c:3430: error: 'BGE_MAGIC_NUMBER' undeclared (first use in this function)
if_bge.c:3584: error: 'BGE_DMA_SWAP_OPTIONS' undeclared (first use in this function)
if_bge.c: In function 'bge_asf_driver_up':
if_bge.c:4095: error: 'BGE_SOFTWARE_GENCOMM_FW' undeclared (first use in this function)
if_bge.c:4096: error: 'BGE_FW_DRV_ALIVE' undeclared (first use in this function)
if_bge.c:4097: error: 'BGE_SOFTWARE_GENNCOMM_FW_LEN' undeclared (first use in this function)
if_bge.c:4098: error: 'BGE_SOFTWARE_GENNCOMM_FW_DATA' undeclared (first use in this function)
if_bge.c:4099: error: 'BGE_CPU_EVENT' undeclared (first use in this function)
if_bge.c: In function 'bge_ifmedia_upd_locked':
if_bge.c:4959: warning: implicit declaration of function 'PHY_RESET'
if_bge.c:4959: warning: nested extern declaration of 'PHY_RESET'
if_bge.c: In function 'bge_add_sysctl_stats_regs':
if_bge.c:5698: warning: implicit declaration of function 'SYSCTL_ADD_UQUAD'
if_bge.c:5698: warning: nested extern declaration of 'SYSCTL_ADD_UQUAD'
*** Error code 1
Stop in /usr/src/sys/modules/bge.