How to use unofficial bge driver patch ?

I'm trying to enable wake-on-lan on my HP microserver gen 10, with 2 bge NICs. This forum post suggests that wol is unsupported in bge(4), which I can confirm on my machine :
Code:
root@nas:~ # ifconfig bge0 | grep options
    options=c019b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE>
    nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
root@nas:~ # ifconfig bge0 wol
root@nas:~ # ifconfig bge0 | grep options
    options=c019b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,VLAN_HWTSO,LINKSTATE>
    nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>

The post also references a bugtracker entry, which includes a tentative patch to implement wol. I don't really understand what is preventing the patch from being merged, but I would like to try it. However, I can't seem to make it work properly. Being a FreeBSD newbie, this is what I understand :
- I can have the driver built into the kernel, or dynamically loaded
- the patch I apply must match my system's version (e.g. 14.1-RELEASE, or 14.1-STABLE).

I tried the built-in option first, and the resulting kernel wouldn't boot. The stack trace clearly incriminates if_bge, but I could'nt retrieve any useful info beyond this. To build my kernel, I used the GENERIC configuration, following instructions of the handbook (Configuring the FreeBSD Kernel), after applying the patch for 14-STABLE on top of stable/14.

Since the first attempt failed, I tried the dynamic loading option next. I'm not sure I did this right, because the only bit of official documentation I found about this is the device driver tutorial of the arch-handbook, which doesn't tell me how to load my module at boot time, or even where I can find it when it is built. However, an old version of the patch comes with step-by-step instructions, so I followed these. Anyway, the end result was the same : kernel panic at boot.

Finally, I also tried both methods on 14.0-RELEASE (there is no patch for 14.1-RELEASE) with similar results.

Assuming the patch is correct, what did I miss when trying to use it ?
 
Back
Top