SOLVED WOL on HP Microservers

festo_

Cadet
Joined
Dec 6, 2022
Messages
1
I decided to give this a go today, quickly realised that TrueNAS doesn't come with the tools required to compile the driver, so I installed FreeBSD 13.0 in a VirtualBox and compiled the driver there.

Copied it back to the NAS /boot/kernel and added the Tunable, and it is working on my N40L with TrueNAS 13.0.

Compiled driver attached.
Many thanks nzchris for your work!
I can confirm that your if_bge.ko file is the only file that works perfectly on HP Microserver N40L with the last version of truenas (TrueNAS-13.0-U3.1).

After copying the file on /boot/kernel and add the tunetable now from ifconfig -m bge0 I see all WOL features and the wake on lan feature works like a charm.

I'm new to FreeBSD environment, can you try explaining me how did yo do to compile this driver? Also in case of truenas version upgrade.

Many Thanks!
Marco
 

nzchris

Cadet
Joined
May 30, 2022
Messages
3
Many thanks nzchris for your work!
I can confirm that your if_bge.ko file is the only file that works perfectly on HP Microserver N40L with the last version of truenas (TrueNAS-13.0-U3.1).

After copying the file on /boot/kernel and add the tunetable now from ifconfig -m bge0 I see all WOL features and the wake on lan feature works like a charm.

I'm new to FreeBSD environment, can you try explaining me how did yo do to compile this driver? Also in case of truenas version upgrade.

Many Thanks!
Marco
Hi festo_,

It's been a while so I don't remember all the steps, just remember spending a while trying to get my USB stick to work inside VirtualBox FreeBSD.

I did however take some notes, here you go:

I installed FreeBSD inside VirtualBox to set up a temporary environment to compile the driver.

My notes say that I downloaded the source, I think this may already come with the FreeBSD installation depending on which one you go for.
Instructions for getting source code:

Code:
cd /tmp
fetch http://ftp.freebsd.org/pub/FreeBSD/releases/amd64/13.0-RELEASE/src.txz
cd /usr/src
tar xJvf /tmp/src.txz


Then I basically just followed the original instructions to patch the driver:

Code:
cd /tmp
fetch https://github.com/NamTaf/if_bge_wol/raw/master/if_bge.c.patch
# follow the instructions here to patch driver: https://github.com/NamTaf/if_bge_wol


And finally copied the patched driver from the FreeBSD to my TrueNAS and did the Tunable.
WOL has been working well ever since.
 
Top