On Sun, 26 Jan 2025 02:51:04 -0600
natepod...@gmail.com wrote:

> Apple Airport card with the BCM4306 chip.
When I last tried to bring up bwi(4) on a BCM4306, it didn't panic but
I never got a working connection.  I have BCM4306 cards in 2 macppc
machines, but I don't use them.  I instead use either a rum(4) usb
wireless or the gem(4) Ethernet wire.

Your trace says,
| --- trap (type 0x0) ---
| bwi_mac_init(f10b47f0) at bwi_mac_init+0x540

I find bwi_mac_init+0x540 by running "objdump -dlr bwi.o|less" in my
macppc kernel build.  It's line 5f40:
| 00005a00 <bwi_mac_init>:
| ...
| /sys/dev/ic/bwi.c:1226
|     5f34:       80 7d 5b 10     lwz     r3,23312(r29)
|     5f38:       7c 69 03 a6     mtctr   r3
|     5f3c:       7f a3 eb 78     mr      r3,r29
|     5f40:       4e 80 04 21     bctrl

     (5f40 is bwi_mac_init+0x540 calculated by
      perl -E 'printf "%x\n", 0x5a00 + 0x540')

bwi.c:1226 calls sc->sc_init_rx_ring(sc); I suspect that
sc->sc_init_rx_ring is a NULL pointer, so the driver wrongly called
NULL(sc) which shows as trap type 0x0.

Fixing bwi(4), so I can use both of my BCM4306 cards, is on my
wishlist, but I don't know when I might attempt it.
--gkoehler

Reply via email to