I think the problem with committing this directly to FreeNAS git is that the change is untested on anything else than Microservers. The bge driver supports big family of Broadcom chips. The patch adds the functionality to all of them -- it does not check the device/chip id or the asic revision. So, while it works for you (as it seems it was originally written for the Microserver Broadcom chip) it may break the driver for other users.I never contributed in github before. Maybe I will try when I have times to test how to include the patch in Freenas source.
I think the problem with committing this directly to FreeNAS git is that the change is untested on anything else than Microservers. The bge driver supports big family of Broadcom chips. The patch adds the functionality to all of them -- it does not check the device/chip id or the asic revision. So, while it works for you (as it seems it was originally written for the Microserver Broadcom chip) it may break the driver for other users.
As far as I can read the patch code, I don't think it can break the driver for other users. Moreover, tt's the same patch integrated officially by Nas4Free, and no one blames it so far.
Hmm...for some reason it worked only once?! I can see that bge0 has the WOL option enabled but I cannot wake the server upPatch is working here with Freenas 9.2.1 x64 on Microserver N54L
THX!
Hello, I have a solution to resolve this issue.
With embedded version :
Connect with ssh to your freenas with root account.
toggle file system to write: mount -w /
edit file /conf/base/etc/rc.shutdown: and comment line #/sbin/ifconfig -l | /usr/bin/xargs -n 1 -J % /sbin/ifconfig % down
toogle file system te read-only mount -r /
reboot.
After restart, when you shutdown your server, the lan interface power continue to be on.
Wake on lan running well.
I have trying this, and it's OK on my freeness server with em0 nic.
(Excuse my poor english).
/sbin/shutdown -p now
Just tried to patch the 9.2.1: http://vannhi.fr/freenas/index.php
Not tested though.
I never contributed in github before. Maybe I will try when I have times to test how to include the patch in Freenas source.
For the adventurous :)
Patch for 9.2.1 is working here with Freenas 9.2.1.1 x64 on Microserver N54L
THX vannhi!
and same goes for 9.2.1.2
FreeNAS follows the drivers that are available with the matching FreeBSD version. So FreeNAS 9.2.0 and 9.2.1.x follows FreeBSD 9.2. Now if you have a problem with that driver and put in a ticket they will often (but not always) deviate and go with something newer from the manufacturer.
There is no way to add your own drivers. The bottom line is that all of the kernel drivers must be compiled with FreeNAS with only a very small number of exceptions. So unless you also plan to recompile FreeNAS' installs for yourself you are stuck with either putting in a ticket for the developers or just accepting that your driver will match whatever FreeBSD version we are working with.
You can be fairly sure that hacked drivers won't last long in FreeNAS though, which is why WOL is one of those pipe dreams with regards to FreeNAS.