Welcome! Log In Create A New Profile

Advanced

Zyxel NAS326 - Debian / Boot from USB?

Posted by Kirsch 
Re: Zyxel NAS326 - Debian / Boot from USB?
April 14, 2017 02:06AM
Hi.

The answer to first 3 questions is yes.
I think my LED's are all white? :-)
Re: Zyxel NAS326 - Debian / Boot from USB?
April 14, 2017 02:30AM
nielsek Wrote:
-------------------------------------------------------
> Hi.
>
> The answer to first 3 questions is yes.
> I think my LED's are all white? :-)

The 3rd question is

Quote

3. Which command did you use to power down? "poweroff" or "shutdown -h now" ?

So yes to "poweroff" ?

And Ethernet LED is white, did it light up white or not light up at all?

... About other info, can you post it?

Quote

dmesg
ethtool eth0
ifconfig -a
cat /etc/init.d/halt
cat /etc/init.d/reboot

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Zyxel NAS326 - Debian / Boot from USB?
April 14, 2017 02:44AM
yes, "poweroff" was used.
Attached first outputs, will let you know late.r
Attachments:
open | download - dmesg.txt (30.7 KB)
open | download - ethtool.txt (928 bytes)
open | download - ifconfig.txt (2.1 KB)
Re: Zyxel NAS326 - Debian / Boot from USB?
April 14, 2017 03:47AM
nielsek,

> yes, "poweroff" was used.

What do you see in dmesg when you power off?

On one terminal, connect serial console, and on 2nd terminal
poweroff
This way you would capture everything that the kernel does during power off.

One thing that I have not figured out is how turn on the ethernet LED light correctly, so I need all the info I can get from a different box to compare with mine. The fact that you did not see the amber or green ethernet LED is a puzzle!

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Zyxel NAS326 - Debian / Boot from USB?
April 14, 2017 04:27AM
Strange, but WOL does not work for me anymore. It worked for the first time, but not anymore.
Re: Zyxel NAS326 - Debian / Boot from USB?
April 14, 2017 04:23PM
nielsek Wrote:
-------------------------------------------------------
> Strange, but WOL does not work for me anymore. It
> worked for the first time, but not anymore.


Strange indeed. But that's anoher good hint. Thanks nielsek.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Zyxel NAS326 - Debian / Boot from USB?
April 14, 2017 04:40PM
nielsek,

At the moment, I think the MAC address stored in the NIC itself is the problem (or one of the problems) with WOL.

I think it is time for me to seriously look at how to make stock u-boot deal with the DTB correctly.

Stock u-boot can deal with DTB, but its code was an pretty old version so I had to force it not to pass it to the kernel.

Or I need to start building new u-boot for it.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner



Edited 2 time(s). Last edit at 04/14/2017 04:44PM by bodhi.
Re: Zyxel NAS326 - Debian / Boot from USB?
April 16, 2017 06:05AM
Quote
bodhi
At the moment, I think the MAC address stored in the NIC itself is the problem (or one of the problems) with WOL.
I was thinking the same. There's no way how to find out what is the address and test then?
Re: Zyxel NAS326 - Debian / Boot from USB?
April 16, 2017 04:19PM
nielsek Wrote:
-------------------------------------------------------
>
Quote
bodhi
> At the moment, I think the MAC address stored in t
> he NIC itself is the problem (or one of the proble
> ms) with WOL.
>
> I was thinking the same. There's no way how to fi
> nd out what is the address and test then?

There are several MAC addresses defined in u-boot env. Perhaps one of them is the one stored in the NIC. I recall there is one of the Zyxel boxes (can't remember which) that can only WOL by using the Marvell MAC address (the NIC chip is Marvell), but not by the Zyxel MAC address.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: Zyxel NAS326 - Debian / Boot from USB?
April 17, 2017 08:26AM
bodhi Wrote:
-------------------------------------------------------
> @everybody,
>
> I need someone to test the new kernel WOL patches
> in 4.10.9-mvebu-tld-1 on your box. Please try:
>
>
> ethtool -s eth0 wol g
>


ethtool -s eth0 wol g
Cannot set new wake-on-lan settings: Operation not supported
  not setting wol

but this new kernel and patch fixes another issue:

Someone has to replace his NAS326 because the NAND gets corrupt ant it doesn't boot anymore..
The replacement from ZyXEL has issues when using the rootfs (kernel 4.9).
The ethernet device is coming up but DHCP timeouts (as seen on NSA310s / NSA320s).
Setting up the network staticly changes nothing.
rebooting directly from ZyXEL OS to Debian .. same thing ..
"cold" boot .. same thing ...

He tried the new uploaded kernel and now it's working as it should.
Re: Zyxel NAS326 - Debian / Boot from USB?
April 17, 2017 04:22PM
pengu,

>
> ethtool -s eth0 wol g
> Cannot set new wake-on-lan settings: Operation not
> supported
> not setting wol

That meant you have not applied all the patches. Have you tried running kernel 4.10.9-mvebu-tld-1?

> but this new kernel and patch fixes another issue:
>
> He tried the new uploaded kernel and now it's work
> ing as it should.

Cool! but his ethernet problem might have been the lack of /etc/network/interfaces hwaddress.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: