Hello @loris.teq, @bw908 and @edwaugh !
Thank you for your patience!
After an intense and fruitful Embedded World (the best one I attended so far :D), I managed to test Wake-On-Lan on Torizon OS and Verdin iMX8MP.
TL;DR: it just worked.
See below for more details.
Hardware and Software details:
torizon@verdin-imx8mp-15010575:~$ sudo tdx-info
Software summary
------------------------------------------------------------
Bootloader: U-Boot
Kernel version: 6.6.54-7.1.0-g3493ccd66900 #1-Torizon SMP PREEMPT Tue Dec 17 21:04:41 UTC 2024
Kernel command line: root=LABEL=otaroot rootfstype=ext4 quiet logo.nologo vt.global_cursor_default=0 plymouth.ignore-serial-consoles splash fbcon=map:3 ostree=/ostree/boot.1/torizon/500611918e07c8fe1cf9b3cc8f76327936d80d93ad461d3fe0da9c30624ff84b/0
Distro name: NAME="Torizon OS"
Distro version: VERSION_ID=7.1.0-build.4
Distro variant: VARIANT="Docker"
Hostname: verdin-imx8mp-15010575
------------------------------------------------------------
Hardware info
------------------------------------------------------------
HW model: Toradex Verdin iMX8M Plus on Verdin Development Board
Toradex version: 0065 V1.1A
Serial number: 15010575
Processor arch: aarch64
------------------------------------------------------------
- Yavia V1.0A carrier board
- Wired Ethernet
- USB-C for access to the debug port (so I can run some commands and see kernel’s messages)
- My Ubuntu 22.04 PC to send the Wake-On-Lan package to the module
- This is connected to the same network as the module via wired Ethernet. But connecting it via Wi-Fi to the same network should work just the same.
Test procedure
I just used the same PDF I shared previously. Exact steps:
- Flash the module with Torizon OS 7.1.0
- Get the module’s MAC address:
ip link ip link show ethernet0(let’s call it<verdin-mac>) - Configure Wake-On-Lan:
sudo ethtool -s ethernet0 wol g - Put the module to sleep:
echo s2idle | sudo tee /sys/power/mem_sleep; echo mem | sudo tee /sys/power/state - Trigger the Wake-On-Lan package from another machine:
sudo etherwake -i <pc-network-interface-name> <verdin-mac> - Module wakes up
For reference, check the dmesg below:
WOL enabled ----------> [ 490.122913] stmmac: wakeup enable
put module to sleep --> [ 699.040975] PM: suspend entry (s2idle)
[ 699.041740] Filesystems sync: 0.000 seconds
[ 699.043186] Freezing user space processes
[ 699.044794] Freezing user space processes completed (elapsed 0.001 seconds)
[ 699.044811] OOM killer disabled.
[ 699.044815] Freezing remaining freezable tasks
[ 699.046046] Freezing remaining freezable tasks completed (elapsed 0.001 seconds)
[ 699.046053] printk: Suspending console(s) (use no_console_suspend to debug)
[ 699.210873] imx-dwmac 30bf0000.ethernet ethernet0: FPE workqueue stop
[ 699.512660] caam 30900000.crypto: registering rng-caam
[ 699.520548] imx-dwmac 30bf0000.ethernet ethernet0: Link is Down
[ 699.520715] imx-dwmac 30bf0000.ethernet ethernet0: No Safety Features support found
[ 699.520736] imx-dwmac 30bf0000.ethernet ethernet0: IEEE 1588-2008 Advanced Timestamp supported
[ 699.521772] imx-dwmac 30bf0000.ethernet ethernet0: FPE workqueue start
[ 699.522393] usb-conn-gpio 38100000.usb:connector: repeated role: device
[ 699.522670] imx-dwmac 30bf0000.ethernet ethernet0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 699.522850] xhci-hcd xhci-hcd.1.auto: xHC error in resume, USBSTS 0x411, Reinit
[ 699.522859] usb usb1: root hub lost power or was reset
[ 699.522864] usb usb2: root hub lost power or was reset
[ 699.868991] usb 1-1: reset high-speed USB device number 2 using xhci-hcd
WOL package sent -----> [ 700.221935] OOM killer enabled.
[ 700.221945] Restarting tasks ... done.
[ 700.223637] random: crng reseeded on system resumption
[ 700.223901] PM: suspend exit
Could you please test like this? Do you get a different outcome?
Best regards,