Welcome! Log In Create A New Profile

Advanced

U-Boot for Zyxel NSA-325v2 kwboot didn't help

Posted by kofec 
U-Boot for Zyxel NSA-325v2 kwboot didn't help
November 29, 2019 10:18AM
Hi,
There is no stock uboot or doesn't start. I don't know history of this hardware.
Is it hardware issue or I can try something else:
/kwboot-tool# kwboot -t -B 115200 /dev/ttyUSB0 -b uboot.2017.07-tld-1.nsa325.mtd0.kwb -p 
Sending boot message. Please reboot the target...\
Sending boot image...
  0 % [......................................................................]
  1 % [......................................................................]
  3 % [......................................................................]
 95 % [......................................................................]
 97 % [......................................................................]
 99 % [....................................]
[Type Ctrl-\ + c to quit]


I have second nsa325v2 and it is working fine. Does it mean that this is hardware issue ? Is there any thing else I can try ?



Edited 1 time(s). Last edit at 11/29/2019 10:33AM by kofec.
Re: U-Boot for Zyxel NSA-325v2 kwboot didn't help
November 29, 2019 05:10PM
kofec,

> Does it mean that this is hardware issue ? Is
> there any thing else I can try ?

Unfortunately, it might be hardware problem. Some NSA325 (very few) has this behavior that it is just stuck at this point.

If you let it boot without kwboot and just run serial console, then what is the behavior?


=====

You could try to run a newer version of kwboot to see if it helps showing more info.

Quote
https://forum.doozan.com/read.php?3,12381
To download ARM kwboot binary for UART booting at Dropbox

kwboot-2016.05.tar
md5:
76977c5a61544a5707dfa17ae832a3ad
sha256:
25ee4fa8a94372d2d398cac4704e9ee3ca87585c29e72e18323209b7f163209d

kwboot (this is an older version)
md5:
0efd011bdb244436e432a8de33e639a1

If you've already tried the above versions and it did not help, you can run the current kwboot in your Debian rootfs. It is likely a newer version than the one I uploaded above.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: U-Boot for Zyxel NSA-325v2 kwboot didn't help
November 29, 2019 06:34PM
> If you let it boot without kwboot and just run serial console, then what is the behavior?

Nothing. Even single character

> kwboot-2016.05.tar

After unpack:
./kwboot
bash: ./kwboot: cannot execute binary file: Exec format error
I used both version of kwboot (from your website and provided with system) and the same result(first post).

Current behavior is power led (blue) turn on fir 31 seconds turn off for 1 second and again turn on for 31 seconds and again again ...



Edited 1 time(s). Last edit at 11/29/2019 06:35PM by kofec.
Re: U-Boot for Zyxel NSA-325v2 kwboot didn't help
November 29, 2019 10:00PM
kofec,

> Current behavior is power led (blue) turn on fir
> 31 seconds turn off for 1 second and again turn on
> for 31 seconds and again again ...

That's actually a bit of a good clue! this box has a HW watchdog that kicks in every 30 seconds. If it were silent than I would say only installing JTAG would be able to unbrick it.

Is this behavior the same whether you boot with stock u-boot, and boot with kwboot? In my u-boot build, which you loaded with kwboot, the watchdog is killed right away upon starting, so it would be really strange if watchdog is still alive.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: U-Boot for Zyxel NSA-325v2 kwboot didn't help
November 30, 2019 04:17AM
You are right. We I load your uboot the Power LED is not blinking after 30 seconds. Also fan is control (RPM is changing). On ethernet I don't see any packet (wireshark) but the physical link is up.
Re: U-Boot for Zyxel NSA-325v2 kwboot didn't help
November 30, 2019 05:54PM
kofec,

It think it is likely a bad RAM chip.

The fact that the watchdog was killed during kwboot, told me that the BootROM has done all the necessary preparation to run u-boot. And then u-boot image loading was successful, so it about or starting to run u-boot image, but u-boot crashed too early for us to see the u-boot banner.

If you don't want to have to install JTAG and consider this is a brick for now, then put this box on the shelves until I have time to figure out how to verify this is a HW problem (I can't promise if or when I can do it).

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: U-Boot for Zyxel NSA-325v2 kwboot didn't help
December 02, 2019 03:13AM
Thanks a lot for you help. I also suspect RAM module but I was surprised that u-boot image loading was successful - As I understand it was loaded to RAM. If we tried all known simple methods to recover this device I going to sell it - I will describe all our findings. Maybe someone needs the case or have tools and knowledge to replace RAM module. So thanks again for you help.
Re: U-Boot for Zyxel NSA-325v2 kwboot didn't help
December 02, 2019 04:05AM
kofec,

> Thanks a lot for you help. I also suspect RAM
> module but I was surprised that u-boot image
> loading was successful - As I understand it was
> loaded to RAM.

Right. However, when u-boot starts, there will be more memory relocation and heap space allocated,..... So I'm guessing that when the crash occurred.

> If we tried all known simple
> methods to recover this device I going to sell it
> - I will describe all our findings. Maybe someone
> needs the case or have tools and knowledge to
> replace RAM module. So thanks again for you help.

I did rebuild a Pogo V4 u-boot with DEBUG to run a test to see if we can see some more info. But it did not print out much (in fact there is only one extra line) before the version banner. So it is not a good sign that we can see a whole lot with the rebuild of NSA325. But until that is confirmed with the NSA325 image, there is still some slim hope.

The complicate method is to install a JTAG header and then run OpenOCD like in this thread:
https://forum.doozan.com/read.php?3,21789

At the moment we don't have the configuration file for NSA325 to run JTAG. So that would make the JTAG solution even more time consuming.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: U-Boot for Zyxel NSA-325v2 kwboot didn't help
December 04, 2019 11:11PM
kofec,

Here is the NSA325 u-boot rebuilt with full DEBUG on. Hope it will tell more about what's going on. Please try kwboot with this version.

-bodhi
===========================
Forum Wiki
bodhi's corner
Attachments:
open | download - uboot.2017.07-tld-1.nsa325.debug.mtd0.kwb (640 KB)
Re: U-Boot for Zyxel NSA-325v2 kwboot didn't help
December 05, 2019 12:40AM
Thanks, I will try today when back home
Re: U-Boot for Zyxel NSA-325v2 kwboot didn't help
December 05, 2019 12:16PM
It is strange but still nothing:

nsa325/kwboot-tool# ./kwboot -t -B 115200 /dev/ttyUSB0 -b ../uboot.2017.07-tld-1.nsa325.debug.mtd0.kwb -p
Sending boot message. Please reboot the target...-
Sending boot image...
  0 % [......................................................................]
  1 % [......................................................................]
  2 % [......................................................................]
  4 % [......................................................................]
............
 97 % [......................................................................]
 98 % [......................................................................]
 99 % [..........]
[Type Ctrl-\ + c to quit]

Re: U-Boot for Zyxel NSA-325v2 kwboot didn't help
December 05, 2019 06:03PM
kofec,

As I've suspected, the crash/hang might have occured too early.

In the normal case, there at least one debug print statement that should output an initcall() before the banner.

So basically, I don't see we can try any more simple methods to figure out.

More investigation will be complicated (i.e. add debug printf, using JTAG).

-bodhi
===========================
Forum Wiki
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: