Welcome! Log In Create A New Profile

Advanced

Problem with NSA310S

Posted by yast 
Problem with NSA310S
April 03, 2016 04:44PM
Hi,
I was trying to install u-boot using this guide: http://forum.doozan.com/read.php?3,12381. Everything was fine until I rebooted the device. Suddenly the upper LED started to blinking in red colour and it was the end. I cannot log in via telnet/ssh.

Is there any way to fix that?

http://i.imgur.com/YyHGfiD.jpg
Re: Problem with NSA310S
April 03, 2016 05:18PM
yast Wrote:
-------------------------------------------------------
> Hi,
> I was trying to install u-boot using this guide:
> http://forum.doozan.com/read.php?3,12381.
> Everything was fine until I rebooted the device.
> Suddenly the upper LED started to blinking in red
> colour and it was the end. I cannot log in via
> telnet/ssh.
>
> Is there any way to fix that?
>
> http://i.imgur.com/YyHGfiD.jpg

Do you have a log of what you did during installation? serial console log?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Problem with NSA310S
April 03, 2016 05:26PM
grab a USB-TTL (or UART) adapter, (like this http://www.instructables.com/id/Usb-to-SerialTTL-adapter/ there are tons of them selling for cheap on ebay or similar, the windows driver has to be downloaded from the chip manufacturer usually) connect it to the box's serial debug port (see here for your device) http://zyxel.nas-central.org/wiki/Serial_port_%28NSA310s%29

And then you can see what the uboot is saying on the serial console when you power on the device, change settings to get it to boot, and even load a new uboot over the serial connection in case you managed to brick the box (see here http://forum.doozan.com/read.php?3,7852,7852 ).



Edited 1 time(s). Last edit at 04/03/2016 05:26PM by bobafetthotmail.
Re: Problem with NSA310S
April 03, 2016 05:30PM
bobafetthotmail,

It is flashing red so it is highy likely recoverable without serial console. Yes, but it is certainly easier with one, though.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Problem with NSA310S
April 03, 2016 06:59PM
bodhi
bobafetthotmail

Well I dont have a log file. Or maybe there is a way to check the terminal history in linux?(I'm using terminator and arch linux distro)
Will the pl2303hx uart be good?
Re: Problem with NSA310S
April 03, 2016 07:21PM
yast Wrote:
-------------------------------------------------------
> bodhi
> bobafetthotmail
>
> Well I dont have a log file. Or maybe there is a
> way to check the terminal history in linux?(I'm
> using terminator and arch linux distro)

cat /root/.bash_history


> Will the pl2303hx uart be good?

http://forum.doozan.com/read.php?8,13263

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Problem with NSA310S
April 04, 2016 05:35AM
> It is flashing red so it is highy likely recoverable without serial console. Yes, but it is certainly easier with one, though.

Maybe netconsole, if it is setup correctly. I always tend to go for the surest way to fix things tho, too many times I wasted hours for nothing.

Besides, I've seen he disassembled his NAS already in the pics he posted, that means something. :)
Re: Problem with NSA310S
April 06, 2016 06:27AM
bodhi
bobafetthotmail

ok, I finally got this uart chip.
I found somewhere on the Internet that the scheme for connecting this thing is as follows:

+----+----+----+ +----+
|3.3V| TX | RX | | GND|
+----+----+----+ +----+
Source: http://forum.nas-central.org/viewtopic.php?f=249&t=16733

So I plugged it like that:
http://imgur.com/a/meS28

Am I right?
Re: Problem with NSA310S
April 06, 2016 01:04PM
bodhi
bobafetthotmail

ok, I read that I should connect TX and RX inversely.
I've got this output now:
http://imgur.com/YWFvVoO
What should I do now?
Re: Problem with NSA310S
April 06, 2016 02:33PM
yast Wrote:
-------------------------------------------------------
> bodhi
> bobafetthotmail
>
> ok, I read that I should connect TX and RX
> inversely.
> I've got this output now:
> http://imgur.com/YWFvVoO
> What should I do now?

So your u-boot image was written sucessfully. You probably missed the step of flashing u-boot default envs image, or the steps about setting them further).

Try again. Monitor the serial console, let it boot all the way, don't interrupt it. Copy the entire serial log (from the u-boot banner to the last line when it stopped) and post here (or pastebin it).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Problem with NSA310S
April 06, 2016 03:12PM
bodhi Wrote:
-------------------------------------------------------
> yast Wrote:
> --------------------------------------------------
> -----
> > bodhi
> > bobafetthotmail
> >
> > ok, I read that I should connect TX and RX
> > inversely.
> > I've got this output now:
> > http://imgur.com/YWFvVoO
> > What should I do now?
>
> So your u-boot image was written sucessfully. You
> probably missed the step of flashing u-boot
> default envs image, or the steps about setting
> them further).
>
> Try again. Monitor the serial console, let it boot
> all the way, don't interrupt it. Copy the entire
> serial log (from the u-boot banner to the last
> line when it stopped) and post here (or pastebin
> it).

This is all:
http://pastebin.com/LTPySixG
Well at this point I dont know what to do.
I have a pendrive with Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2 which was working before I updated uboot. Is there a way to boot it? Or should I try flashing from the serial console?

EDIT1: My pendrive is visible: http://pastebin.com/WxXAbiZg Is there a way to boot it?



Edited 1 time(s). Last edit at 04/06/2016 03:16PM by yast.
Re: Problem with NSA310S
April 06, 2016 11:33PM
yast,

Follow instruction in this thread 1st post and create a new 4.4.0 rootfs using USB:
http://forum.doozan.com/read.php?2,12096

Quote

Updated 20 Feb 2016:

This Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2 is to keep in sync with kernel Linux-4.4.0-kirkwood-tld-1.


Boot with it. If there is problem booting, capture entire serial conosole log and post here.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Problem with NSA310S
April 07, 2016 07:17AM
bodhi Wrote:
-------------------------------------------------------
> yast,
>
> Follow instruction in this thread 1st post and
> create a new 4.4.0 rootfs using USB:
> http://forum.doozan.com/read.php?2,12096
>
>
Quote

Updated 20 Feb 2016:
>
> This
> Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2
> is to keep in sync with kernel
> Linux-4.4.0-kirkwood-tld-1.
>
>
> Boot with it. If there is problem booting, capture
> entire serial conosole log and post here.

I changed environment variables using "setenv" in serial console

Now debian is booting but it is getting kernel panic:

http://pastebin.com/SM9enwus

The LED is blinking green now.

EDIT1: http://pastebin.com/CuB61VUw My environment variables



Edited 1 time(s). Last edit at 04/07/2016 07:23AM by yast.
Re: Problem with NSA310S
April 07, 2016 01:12PM
yast,

Same problem and solution here:

http://forum.doozan.com/read.php?3,27359,27457#msg-27457

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Problem with NSA310S
April 07, 2016 01:39PM
bodhi,

wow, you are awesome!
It is booting right now.
I'll tell you if something is wrong.

thank you very much :)
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: