*New 12.1 series Release:
2020-04-17: XigmaNAS 12.1.0.4.7542 - released

*New 11.3 series Release:
2020-04-16: XigmaNAS 11.3.0.4.7538 - released!


We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

patch for bge network driver to enable wake on lan

Compile and development by yourself!
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
hcb
NewUser
NewUser
Posts: 7
Joined: 21 Mar 2013 11:30
Status: Offline

patch for bge network driver to enable wake on lan

#1

Post by hcb »

Hello,

a patch to enable wake-on-lan (with magic packet) in the bge network driver. I saw you have a place for custom kernel patches. Maybe you can add it there. Wrote this for a HP ProLiant MicroServer N40L machine with a

bge0: <HP NC107i PCIe Gigabit Server Adapter, ASIC rev. 0x5784100> mem 0xfe9f0000-0xfe9fffff irq 18 at device 0.0 on pci2

Thanks for this great project!

Kind regards,
Christian.
You do not have the required permissions to view the files attached to this post.

User avatar
ChriZathens
Forum Moderator
Forum Moderator
Posts: 797
Joined: 23 Jun 2012 09:14
Location: Athens, Greece
Contact:
Status: Offline

Re: patch for bge network driver to enable wake on lan

#2

Post by ChriZathens »

Thanks a lot for this!
My backup NAS is a N40L ...
I hope the developers can apply this patch in future versions...
My Nas
  1. Case: Fractal Design Define R2
  2. M/B: Supermicro x9scl-f
  3. CPU: Intel Celeron G1620
  4. RAM: 16GB DDR3 ECC (2 x Kingston KVR1333D3E9S/8G)
  5. PSU: Chieftec 850w 80+ modular
  6. Storage: 8x2TB HDDs in a RaidZ2 array ~ 10.1 TB usable disk space
  7. O/S: XigmaNAS 11.2.0.4.6625 -amd64 embedded
  8. Extra H/W: Dell Perc H310 SAS controller, crosflashed to LSI 9211-8i IT mode, 8GB Innodisk D150SV SATADOM for O/S

Backup Nas: U-NAS NSC-400, Gigabyte MB10-DS4 (4x4TB Seagate Exos disks in RaidZ configuration - 32GB RAM)

Maggie
NewUser
NewUser
Posts: 3
Joined: 23 Mar 2013 17:55
Status: Offline

Re: patch for bge network driver to enable wake on lan

#3

Post by Maggie »

Hello
I am a beginner for nas4free and I have the problem with the patch.
Can you please tell me where and how to start the patch?

Maggie

hcb
NewUser
NewUser
Posts: 7
Joined: 21 Mar 2013 11:30
Status: Offline

Re: patch for bge network driver to enable wake on lan

#4

Post by hcb »

Hello Maggie,

you would need to build a new kernel with the patch applied:
http://wiki.nas4free.org/doku.php?id=do ... om_scratch

You can get the kernel i am using from http://ge.tt/4m8JOGd/v/0 It has the patch applied.
SHA256 (kernel.gz) = 680b6166a8d4cbbdc44d9557cb9e58cbd47849d61a3030f6e01d358a19d8ca1a

Make a backup of your nas4free configuration before trying this! Make sure that you can restore nas4free if anything goes wrong.

To install save kernel.gz on share on your nas. Login with ssh and execute:
umount /cf
mount -o rw /cf
cp /mnt/*REPLACE WITH YOUR PATH*/kernel.gz /cf/boot/kernel/kernel.gz


Christian.

Maggie
NewUser
NewUser
Posts: 3
Joined: 23 Mar 2013 17:55
Status: Offline

Re: patch for bge network driver to enable wake on lan

#5

Post by Maggie »

hi christian,
thanks for your help. I put the kernel.gz in the root. I logon via WINSCP as root User.
But the first attempt to umount /cf get the error: umount /cf: not a file system root directory.

Maggie

User avatar
alexey123
Moderator
Moderator
Posts: 1560
Joined: 19 Aug 2012 08:22
Location: Israel, Karmiel
Contact:
Status: Offline

Re: patch for bge network driver to enable wake on lan

#6

Post by alexey123 »

Maggie wrote: But the first attempt to umount /cf get the error: umount /cf: not a file system root directory.

Maggie
May be you have full install? In this case just backup original kernel and replace old into compilled
Home12.1.0.4 - Ingva (revision 7091)/ x64-embedded on AMD A8-7600 Radeon R7 A88XM-PLUS/ 16G RAM / UPS Ippon Back Power Pro 600
Lab 12.1.0.4 - Ingva (revision 7091) /x64-embedded on Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz / H61M-DS2 / 4G RAM / UPS Ippon Back Power Pro 600

Maggie
NewUser
NewUser
Posts: 3
Joined: 23 Mar 2013 17:55
Status: Offline

Re: patch for bge network driver to enable wake on lan

#7

Post by Maggie »

yes i have the full x64 installation and with your tip it was very easy, and it works.
many thanks
Maggie

User avatar
zoon01
Developer
Developer
Posts: 794
Joined: 20 Jun 2012 21:06
Location: Netherlands
Contact:
Status: Offline

Re: patch for bge network driver to enable wake on lan

#8

Post by zoon01 »

Good job!

I will add the gbe network driver patch to fix wol in the kernel of NAS4Free by default


Update:
Done at rev. 666
No need to mod afterwards in the next version of NAS4Free.

Regards,
zoon01
System specs: XigmaNAS 11.2.0.4 -embedded on Samsung 860 EVO 256GB and Supermicro X10SL7-F w / Bios v3.2, IPMI v.03.86 / CPU E3-1241 v3 @ 3.50GHz - 32GB Crucial DDR3L 1600mhz ECC 1.35v , LSI 2308 on PH20.00.07.00 IT mode, Storage: 5x Western Digital Red (WD30EFRX) raidz

Development system is same system in virtualbox.

vinyrj.21
NewUser
NewUser
Posts: 1
Joined: 11 Jul 2013 02:37
Status: Offline

Re: patch for bge network driver to enable wake on lan

#9

Post by vinyrj.21 »

Hi, I have the last version on my microserver N36L, and the WOL wont work...can anybody help me ???? thanksss

pozz
Starter
Starter
Posts: 41
Joined: 03 May 2013 23:46
Status: Offline

Re: patch for bge network driver to enable wake on lan

#10

Post by pozz »

Nothing to do. I have HP Microserver N40L. This is the output of ifconfig -m command:

Code: Select all

$ ifconfig -m
bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
	options=c219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC,VLAN_HWTSO,LINKSTATE>
	capabilities=c219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC,VLAN_HWTSO,LINKSTATE>
	ether 00:9c:02:97:56:10
	inet 192.168.178.2 netmask 0xffffff00 broadcast 192.168.178.255
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
	media: Ethernet autoselect (100baseTX <full-duplex>)
	status: active
	supported media:
		media autoselect mediaopt flowcontrol
		media autoselect
		media 1000baseT mediaopt full-duplex,master
		media 1000baseT mediaopt full-duplex
		media 1000baseT mediaopt master
		media 1000baseT
		media 100baseTX mediaopt full-duplex
		media 100baseTX
		media 10baseT/UTP mediaopt full-duplex
		media 10baseT/UTP
ipfw0: flags=8801<UP,SIMPLEX,MULTICAST> metric 0 mtu 65536
	nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL>
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> metric 0 mtu 16384
	options=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
	capabilities=600003<RXCSUM,TXCSUM,RXCSUM_IPV6,TXCSUM_IPV6>
	inet6 ::1 prefixlen 128 
	inet6 fe80::1%lo0 prefixlen 64 scopeid 0x9 
	inet 127.0.0.1 netmask 0xff000000 
	nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
So it seems WOL feature is present on bge interface.

I'm using NAS4Free 9.1.0.1 (804) and I set WOL_MAGIC in Network->LAN Management->Wake On LAN option.
I also enabled WOL in BIOS.

I have tried to wake HP Microserver from FritzBox web page (it's my router, it has a page to wake a computer from LAN) and with mc-wol.exe program without success. NAS4Free box stays off after shutdown.

Any suggestions?

pozz
Starter
Starter
Posts: 41
Joined: 03 May 2013 23:46
Status: Offline

Re: patch for bge network driver to enable wake on lan

#11

Post by pozz »

I'm not a FreeBSD expert. Do I have to apply the bge patch manually with the new NAS4Free version or is it already applied?

User avatar
zoon01
Developer
Developer
Posts: 794
Joined: 20 Jun 2012 21:06
Location: Netherlands
Contact:
Status: Offline

Re: patch for bge network driver to enable wake on lan

#12

Post by zoon01 »

pozz wrote:I'm not a FreeBSD expert. Do I have to apply the bge patch manually with the new NAS4Free version or is it already applied?

It's already applied.

Regards,
zoon01
System specs: XigmaNAS 11.2.0.4 -embedded on Samsung 860 EVO 256GB and Supermicro X10SL7-F w / Bios v3.2, IPMI v.03.86 / CPU E3-1241 v3 @ 3.50GHz - 32GB Crucial DDR3L 1600mhz ECC 1.35v , LSI 2308 on PH20.00.07.00 IT mode, Storage: 5x Western Digital Red (WD30EFRX) raidz

Development system is same system in virtualbox.

pozz
Starter
Starter
Posts: 41
Joined: 03 May 2013 23:46
Status: Offline

Re: patch for bge network driver to enable wake on lan

#13

Post by pozz »

I have just tried the new 9.2.0.1.943 release. It has a completely different bge driver, but the wol feature doesn't work yet on my HP microserver :-(

Post Reply

Return to “Development & Developers”