Subject: Re: Dell Optiplex 745
To: Mark Davies <mark@mcs.vuw.ac.nz>
From: Brandon Lee <brandon@xcodes.net>
List: current-users
Date: 08/04/2007 13:57:07
On 8/4/07, Mark Davies <mark@mcs.vuw.ac.nz> wrote:
> On Friday 03 August 2007, Phil Nelson wrote:
> >   I've recently had a bunch of 745s appear on which I want NetBSD
> > to work.  The Broadcom BCM5754 network was recognized but not
> > configured.   I added the extra lines to sys/dev/if_bge.c to
> > recognize that card as supported by the bge driver.   I didn't add
> > anything to the quirks area so I'm not sure I got the generic
> > quirks set up properly.
> >
> >   In any case, I get the following at configure time.
> >
> > bge0 at pci2 dev 0 function 0: Broadcom BCM5754 10/100/1000
> > Ethernet bge0: interrupting at ioapic0 pin 16 (irq 11)
> > bge0: firmware handshake timed out, val = 4b657654
> > bge0: unknown ASIC (0xb002), Ethernet address 00:1a:a0:4d:f5:2e
>         [...]
> > So it appears to be doing something.  I'd really like to get this
> > working if someone can help me get the proper clue, I should be
> > able to do some debugging.
>
> After poking at our 745's off and on all year (see occasional previous
> threads on current-users and tech-net) I finally got the BCM5754
> working yesterday, thanks to a recent fix to the OpenBSD version of
> the driver.
>
> Patches are attached below.  Will commit over the weekend unless
> someone finds a problem.
>
> > p.s.  This machine needed to have the on-board audio turned off so
> > the boot wouldn't hang between the cd0 and the boot device lines
> > below.  Then turned on, the audio appears as azalia0.  I didn't
> > break to the debugger yet, but that is on my list to do at some
> > point. Also this was running GENERIC.MP with all of the pci audio
> > except azalia commented out.
>
> Yes disabling azalia _or_ disabling ehci gets a system that doesn't
> hang so its presumably some interaction between the two - I suspect
> its more likely to be ehci thats at fault.  Would be nice to get that
> sorted.
>
> cheers
> mark
>
>

Hi Mark,

Had try to patch it against the current kernel 4.99.26 and got the below error:
#   compile  GENERIC.MP/brgphy.o
/usr/src/obj/tooldir.NetBSD-4.99.26-i386/bin/i386--netbsdelf-gcc
-ffreestanding -fno-zero-initialized-in-bss -march=i486
-mtune=pentiumpro -O2 -Werror -Wall -Wno-main -Wno-format-zero-length
-Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wswitch
-Wshadow -Wcast-qual -Wwrite-strings -Wno-sign-compare
-Wno-pointer-sign -Wno-attributes -Wextra -Wno-unused-parameter
-fno-strict-aliasing -Di386 -I. -I/usr/src/sys/contrib/dev/ath/netbsd
-I/usr/src/sys/../common/include -I/usr/src/sys/arch -I/usr/src/sys
-nostdinc -DLKM -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT
-I/usr/src/sys/lib/libkern/../../../common/lib/libc/quad
-I/usr/src/sys/lib/libkern/../../../common/lib/libc/string
-I/usr/src/sys/lib/libkern/../../../common/lib/libc/arch/i386/string
-I/usr/src/sys/dist/ipf -c /usr/src/sys/dev/mii/brgphy.c
/usr/src/sys/dev/mii/brgphy.c:184: error: 'MII_OUI_BROADCOM2'
undeclared here (not in a function)
/usr/src/sys/dev/mii/brgphy.c:184: error:
'MII_MODEL_BROADCOM2_BCM5754' undeclared here (not in a function)
/usr/src/sys/dev/mii/brgphy.c:185: error: 'MII_STR_BROADCOM2_BCM5754'
undeclared here (not in a function)
cc1: warnings being treated as errors
/usr/src/sys/dev/mii/brgphy.c:185: warning: missing initializer
/usr/src/sys/dev/mii/brgphy.c:185: warning: (near initialization for
'brgphys[12].mpd_oui')

*** Failed target:  brgphy.o
*** Failed command: echo '# ' "compile GENERIC.MP/brgphy.o"; echo
/usr/src/obj/tooldir.NetBSD-4.99.26-i386/bin/i386--netbsdelf-gcc
-ffreestanding -fno-zero-initialized-in-bss -march=i486
-mtune=pentiumpro -O2 -Werror -Wall -Wno-main -Wno-format-zero-length
-Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wswitch
-Wshadow -Wcast-qual -Wwrite-strings -Wno-sign-compare
-Wno-pointer-sign -Wno-attributes -Wextra -Wno-unused-parameter
-fno-strict-aliasing -Di386 -I. -I/usr/src/sys/contrib/dev/ath/netbsd
-I/usr/src/sys/../common/include -I/usr/src/sys/arch -I/usr/src/sys
-nostdinc -DLKM -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT
-I/usr/src/sys/lib/libkern/../../../common/lib/libc/quad
-I/usr/src/sys/lib/libkern/../../../common/lib/libc/string
-I/usr/src/sys/lib/libkern/../../../common/lib/libc/arch/i386/string
-I/usr/src/sys/dist/ipf -c /usr/src/sys/dev/mii/brgphy.c;
/usr/src/obj/tooldir.NetBSD-4.99.26-i386/bin/i386--netbsdelf-gcc
-ffreestanding -fno-zero-initialized-in-bss -march=i486
-mtune=pentiumpro -O2 -Werror -Wall -Wno-main -Wno-format-zero-length
-Wpointer-arith -Wmissing-prototypes -Wstrict-prototypes -Wswitch
-Wshadow -Wcast-qual -Wwrite-strings -Wno-sign-compare
-Wno-pointer-sign -Wno-attributes -Wextra -Wno-unused-parameter
-fno-strict-aliasing -Di386 -I. -I/usr/src/sys/contrib/dev/ath/netbsd
-I/usr/src/sys/../common/include -I/usr/src/sys/arch -I/usr/src/sys
-nostdinc -DLKM -DMAXUSERS=32 -D_KERNEL -D_KERNEL_OPT
-I/usr/src/sys/lib/libkern/../../../common/lib/libc/quad
-I/usr/src/sys/lib/libkern/../../../common/lib/libc/string
-I/usr/src/sys/lib/libkern/../../../common/lib/libc/arch/i386/string
-I/usr/src/sys/dist/ipf -c /usr/src/sys/dev/mii/brgphy.c
*** Error code 1

Stop.
nbmake: stopped in /usr/obj/sys/arch/i386/compile/GENERIC.MP

ERROR: Failed to make all in /usr/src/sys/arch/i386/compile/obj/GENERIC.MP
*** BUILD ABORTED ***


-- 
./Brandon