Wake on lan in mx6 sabresd board

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Wake on lan in mx6 sabresd board

5,302 Views
shaojun_wang
NXP Employee
NXP Employee

WOL_INT pin of AR8031 is connected to gpio 1_28 in Mx6 sabresd board, Mx6 can be waked up by this pin.

0001-support-wake-on-lan-through-gpio.patch is the patch to support the WOL feature. In this patch, mac address is written to AR8031 Wake-on-LAN Internal Address register, gpio 1_28 wakeup irq is enabled, AR8031 is set to sleep/isolate state when system suspend.

After suspend, Mx6 can be wakeup by magic package.

 

The step to verify WOL function is

  1. After bootup kernel, get the mac address by ifconfig command. For example, the address is 00-04-9F-02-68-D8.
  2. Suspend the system: echo mem > /sys/power/state.
  3. Send magic package from ubuntu PC: sudo wakeonlan 00:04:9F:02:68:D8
  4. If want to wake from Windows PC, please install WOLSetup15.zip.

Original Attachment has been moved to: WOLSetup15.zip

Original Attachment has been moved to: 0001-support-wake-on-lan-through-gpio.patch.txt.zip

Labels (3)
Tags (3)
0 Kudos
3 Replies

1,217 Views
marcocavallini
Contributor V

Hi,

the patch above is buggy.

The IRQ management setup in drivers/net/fec.c has a typo.

gpio_direction_input(pdata->gpio_irq);

must be

gpio_direction_input(pdata->wol_irq);

Regards,

--

Marco Cavallini | KOAN sas | Bergamo - Italia

embedded and real-time software engineering

Phone:+39-035-255.235 - Fax:+39-178-22.39.748

0 Kudos

1,217 Views
shaojun_wang
NXP Employee
NXP Employee

Have updated, thank you.

0 Kudos

1,217 Views
marcocavallini
Contributor V

BTW, I am performing a echo mem > /sys/power/state, the board IMX6DLSABRESD goes to sleep.

Unfortunaltely when I send wakeonlan 1E:ED:19:27:1A:B3 from my PC it doesn't wake up.

Do I need somethig more or special command before sleep ?

These are the PHY registers

WOL write MAC Address: 1e:ed:19:27:1a:b3

WOL read 1 = 1EED

WOL read 2 = 1927

WOL read 3 = 1AB3

--

Marco Cavallini | KOAN sas | Bergamo - Italia

embedded and real-time software engineering

Phone:+39-035-255.235 - Fax:+39-178-22.39.748

0 Kudos