Switch on Wake on LAN

User avatar
odroid
Site Admin
Posts: 32121
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 119 times
Been thanked: 292 times
Contact:

Re: Switch on Wake on LAN

Unread post by odroid » Tue Aug 20, 2019 5:27 pm

ok. we will try it.,

dbod
Posts: 73
Joined: Fri Apr 26, 2019 10:03 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: Switch on Wake on LAN

Unread post by dbod » Tue Aug 20, 2019 7:39 pm

Thanks!

But this is only prio 2 for me. More urgent is the fact that after one of the recent updates (I cannot say which exactly) the system became instable. Under higher load it crashes every now and then. Before it was rock solid. I guess you guys are already working on this.

User avatar
tobetter
Posts: 3902
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 38 times
Been thanked: 154 times
Contact:

Re: Switch on Wake on LAN

Unread post by tobetter » Tue Aug 20, 2019 7:41 pm

dbod wrote:
Tue Aug 20, 2019 7:39 pm
Thanks!

But this is only prio 2 for me. More urgent is the fact that after one of the recent updates (I cannot say which exactly) the system became instable. Under higher load it crashes every now and then. Before it was rock solid. I guess you guys are already working on this.
Could you replace with the new version of U-boot?
https://github.com/hardkernel/u-boot/re ... droidn2-57

dbod
Posts: 73
Joined: Fri Apr 26, 2019 10:03 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: Switch on Wake on LAN

Unread post by dbod » Tue Aug 20, 2019 7:50 pm

That's what I call quick help. But what exactly shall I do with it? I unpacked the archive and had a look at the shell script included. At the end it says "eject" which is something that I do not want to do to my emmc card on my running system :-) Or did I get something wrong? There is tons of hours I spent on setting up my machine and I do not want to endanger that.

User avatar
tobetter
Posts: 3902
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 38 times
Been thanked: 154 times
Contact:

Re: Switch on Wake on LAN

Unread post by tobetter » Tue Aug 20, 2019 7:59 pm

dbod wrote:That's what I call quick help. But what exactly shall I do with it? I unpacked the archive and had a look at the shell script included. At the end it says "eject" which is something that I do not want to do to my emmc card on my running system :-) Or did I get something wrong? There is tons of hours I spent on setting up my machine and I do not want to endanger that.
What command did you try with the script?
If you have run it on your N2, then U-boot must be reflashed with the script.

"Tapatalk wishes you to have fun with ODROID"


dbod
Posts: 73
Joined: Fri Apr 26, 2019 10:03 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: Switch on Wake on LAN

Unread post by dbod » Tue Aug 20, 2019 8:09 pm

I did not run it. I just had a look at it.

And for now I concluded that I should not run it on a running and working system.

Or should I?

User avatar
tobetter
Posts: 3902
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 38 times
Been thanked: 154 times
Contact:

Re: Switch on Wake on LAN

Unread post by tobetter » Tue Aug 20, 2019 8:10 pm

dbod wrote:I did not run it. I just had a look at it.

And for now I concluded that I should not run it on a running and working system.

Or should I?
It would be safe to flash your eMMC on the Linux desktop for sure.

"Tapatalk wishes you to have fun with ODROID"


User avatar
mad_ady
Posts: 6529
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 163 times
Been thanked: 125 times
Contact:

Re: Switch on Wake on LAN

Unread post by mad_ady » Tue Aug 20, 2019 8:10 pm

The eject command doesn't work on fixed media anyway. It will simply complain that the emmc is not ejectable. Or comment out the call to eject

dbod
Posts: 73
Joined: Fri Apr 26, 2019 10:03 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: Switch on Wake on LAN

Unread post by dbod » Tue Aug 20, 2019 8:14 pm

Okay. I just was not sure what would happen.

But what is the parameter that I am supposed to call the script with? /dev/mmcblk-whatever?

User avatar
tobetter
Posts: 3902
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 38 times
Been thanked: 154 times
Contact:

Re: Switch on Wake on LAN

Unread post by tobetter » Tue Aug 20, 2019 8:15 pm

dbod wrote:Okay. I just was not sure what would happen.

But what is the parameter that I am supposed to call the script with? /dev/mmcblk-whatever?
/dev/mmcblk0

"Tapatalk wishes you to have fun with ODROID"


dbod
Posts: 73
Joined: Fri Apr 26, 2019 10:03 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: Switch on Wake on LAN

Unread post by dbod » Tue Aug 20, 2019 8:22 pm

Done. Rebooted. Let's see what happens.

dbod
Posts: 73
Joined: Fri Apr 26, 2019 10:03 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: Switch on Wake on LAN

Unread post by dbod » Tue Aug 20, 2019 8:47 pm

FYI: System seems to be stable again! I ran several jobs and a "make -j 6" on opencv in parallel and there was no crash or anything.

Thanks

User avatar
mad_ady
Posts: 6529
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 163 times
Been thanked: 125 times
Contact:

Re: Switch on Wake on LAN

Unread post by mad_ady » Tue Aug 20, 2019 8:51 pm

Have you disabled the memory limit via kernel bootargs?

User avatar
tobetter
Posts: 3902
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 38 times
Been thanked: 154 times
Contact:

Re: Switch on Wake on LAN

Unread post by tobetter » Tue Aug 20, 2019 9:01 pm

mad_ady wrote:Have you disabled the memory limit via kernel bootargs?
The new U-boot surrender to allocate extra 128MB, so max memory size back to 3.8GB.

"Tapatalk wishes you to have fun with ODROID"


dbod
Posts: 73
Joined: Fri Apr 26, 2019 10:03 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: Switch on Wake on LAN

Unread post by dbod » Tue Aug 20, 2019 9:24 pm

Honestly I don't get what you want to tell me :-)

@mad_ady: no (Should I?)

@tobetter: Do you mean that if I had done that (wich I did not, see above) I could then go back to default settings?

I guess you are referring to other discussions that I was not part of.

User avatar
odroid
Site Admin
Posts: 32121
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 119 times
Been thanked: 292 times
Contact:

Re: Switch on Wake on LAN

Unread post by odroid » Wed Aug 21, 2019 10:44 am

Did you add enable_wol=1 in the bootargs string of boot.ini file as explained in the WiKi page?
https://wiki.odroid.com/odroid-n2/appli ... ake-on-lan

You can check it with "cat /proc/cmdline" output.

BTW, we've reverted the recent free-mem patch.
So just run "apt update && apt upgrade && reboot".

dbod
Posts: 73
Joined: Fri Apr 26, 2019 10:03 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: Switch on Wake on LAN

Unread post by dbod » Wed Aug 21, 2019 5:06 pm

> Did you add enable_wol=1 in the bootargs string of boot.ini file as explained in the WiKi page?

Yes.

> So just run "apt update && apt upgrade && reboot".

I have not yet seen any kernel or u-boot related update in the last hours.

User avatar
odroid
Site Admin
Posts: 32121
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 119 times
Been thanked: 292 times
Contact:

Re: Switch on Wake on LAN

Unread post by odroid » Wed Aug 21, 2019 5:16 pm

It was released around 30 hours ago.

Try a reinstalling command.

Code: Select all

root@odroid:/media/boot# sudo apt install --reinstall u-boot                         
Reading package lists... Done                                                   
Building dependency tree                                                        
Reading state information... Done                                               
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.   
Need to get 481 kB of archives.                                                 
After this operation, 0 B of additional disk space will be used.                
Get:1 http://deb.odroid.in/n2 bionic/main arm64 u-boot arm64 20190820-921e8f4-6]
Fetched 481 kB in 2s (317 kB/s)                                                 
(Reading database ... 178070 files and directories currently installed.)        
Preparing to unpack .../u-boot_20190820-921e8f4-6_arm64.deb ...
Unpacking u-boot (20190820-921e8f4-6) over (20190820-921e8f4-6) ...
Setting up u-boot (20190820-921e8f4-6) ...
1669+1 records in
1669+1 records out
854896 bytes (855 kB, 835 KiB) copied, 0.0759129 s, 11.3 MB/s

dbod
Posts: 73
Joined: Fri Apr 26, 2019 10:03 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: Switch on Wake on LAN

Unread post by dbod » Wed Aug 21, 2019 8:28 pm

Okay. I don't know why this update was not installed in the first place.

User avatar
tobetter
Posts: 3902
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 38 times
Been thanked: 154 times
Contact:

Re: Switch on Wake on LAN

Unread post by tobetter » Wed Aug 21, 2019 8:29 pm

dbod wrote:I understand that I need to set "enable_wol=1" in the kernel command line in order to activate WOL.

I found a boot.ini in /usr/share/bootini and added the flag there and ran the bootini-persistence.pl script which is located in that directory. The script reported no problems.

All the things I did were based on assumptions :-)

But after a reboot looking at /proc/cmdline the flag did not show up and no WOL was activated.

Which of my assumptions are wrong?

Thanks in advance
You should change "/media/boot/boot.ini" .

"Tapatalk wishes you to have fun with ODROID"


dbod
Posts: 73
Joined: Fri Apr 26, 2019 10:03 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: Switch on Wake on LAN

Unread post by dbod » Thu Aug 22, 2019 2:40 am

Yes. That's what I did. I changed it in /media/boot/boot.ini.

(The first posting that you cited had that misunderstanding on my side.)

User avatar
odroid
Site Admin
Posts: 32121
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 119 times
Been thanked: 292 times
Contact:

Re: Switch on Wake on LAN

Unread post by odroid » Tue Aug 27, 2019 10:19 am

@dbod,

We tested WoL function on our latest Ubuntu minimal and Mate images.
They worked fine once we modified the boot.ini file.

Do you still have the issue?

dbod
Posts: 73
Joined: Fri Apr 26, 2019 10:03 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: Switch on Wake on LAN

Unread post by dbod » Tue Aug 27, 2019 6:14 pm

Hmmmm... How exactly did you shutdown the N2?

User avatar
odroid
Site Admin
Posts: 32121
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 119 times
Been thanked: 292 times
Contact:

Re: Switch on Wake on LAN

Unread post by odroid » Tue Aug 27, 2019 6:25 pm

As described in the Wiki page.

1. Added "enable_wol=1" in the kernel argument by editing /media/boot/boot.ini file
2. reboot
3. Ran systemctl suspend
4. Issued "wakeonlan + mac address" from a Linux PC.
5. N2 waked up.

dbod
Posts: 73
Joined: Fri Apr 26, 2019 10:03 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: Switch on Wake on LAN

Unread post by dbod » Tue Aug 27, 2019 7:38 pm

Node. Does not work for me. Tried to send the WOL package from another machine as well as from my router.

I will give up for now and wait for some indefinite time hoping it will suddenly work :-)

dbod
Posts: 73
Joined: Fri Apr 26, 2019 10:03 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: Switch on Wake on LAN

Unread post by dbod » Wed Aug 28, 2019 12:00 am

One more thing maybe:

ethtool shows that by default wol is off:

Code: Select all

odroid ~ ❯❯❯ sudo ethtool eth0
Settings for eth0:
        Supported ports: [ TP MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Supported pause frame use: No
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Advertised pause frame use: No
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                             100baseT/Half 100baseT/Full
                                             1000baseT/Full
        Link partner advertised pause frame use: Symmetric
        Link partner advertised auto-negotiation: Yes
        Link partner advertised FEC modes: Not reported
        Speed: 1000Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 0
        Transceiver: external
        Auto-negotiation: on
        Supports Wake-on: ug
        Wake-on: d
        Current message level: 0x0000003f (63)
                               drv probe link timer ifdown ifup
        Link detected: yes
"d" means "disabled".

What does that show for you on the systems where it works?

User avatar
tobetter
Posts: 3902
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 38 times
Been thanked: 154 times
Contact:

Re: Switch on Wake on LAN

Unread post by tobetter » Wed Aug 28, 2019 12:23 am

dbod wrote:
Wed Aug 28, 2019 12:00 am
One more thing maybe:

ethtool shows that by default wol is off:

Code: Select all

odroid ~ ❯❯❯ sudo ethtool eth0
Settings for eth0:
        Supported ports: [ TP MII ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Supported pause frame use: No
        Supports auto-negotiation: Yes
        Supported FEC modes: Not reported
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Advertised pause frame use: No
        Advertised auto-negotiation: Yes
        Advertised FEC modes: Not reported
        Link partner advertised link modes:  10baseT/Half 10baseT/Full
                                             100baseT/Half 100baseT/Full
                                             1000baseT/Full
        Link partner advertised pause frame use: Symmetric
        Link partner advertised auto-negotiation: Yes
        Link partner advertised FEC modes: Not reported
        Speed: 1000Mb/s
        Duplex: Full
        Port: MII
        PHYAD: 0
        Transceiver: external
        Auto-negotiation: on
        Supports Wake-on: ug
        Wake-on: d
        Current message level: 0x0000003f (63)
                               drv probe link timer ifdown ifup
        Link detected: yes
"d" means "disabled".

What does that show for you on the systems where it works?
What do you have with this command cat /proc/cmdline?

dbod
Posts: 73
Joined: Fri Apr 26, 2019 10:03 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 4 times
Been thanked: 1 time
Contact:

Re: Switch on Wake on LAN

Unread post by dbod » Wed Aug 28, 2019 12:36 am

Code: Select all

odroid ~ ❯❯❯ cat /proc/cmdline                                                                                       ✘ 130 
root=UUID=e139ce78-9841-40fe-8823-96a304a09859 rootwait rw console=ttyS0,115200n8  no_console_suspend fsck.repair=yes net.ifnames=0 elevator=noop hdmimode=2160p60hz cvbsmode=576cvbs max_freq_a53=1896 max_freq_a73=1800 maxcpus=6 voutmode=hdmi  disablehpd=false cvbscable= overscan=100  monitor_onoff=false usb-xhci.tablesize=2 logo=osd0,loaded enable_wol=1
enable_wol=1 is included.

But another question first: Is that the "current" cmdline as it would be if the system is pristine (except for the enable_wol itself)?

I had not seen the

Code: Select all

usb-xhci.tablesize=2 logo=osd0,loaded
entries before.

User avatar
mad_ady
Posts: 6529
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 163 times
Been thanked: 125 times
Contact:

Re: Switch on Wake on LAN

Unread post by mad_ady » Wed Aug 28, 2019 12:45 am

boot.ini has been updated recently, so they're normal.

Post Reply

Return to “General Topics”

Who is online

Users browsing this forum: xabolcs and 2 guests