NSA 325 v2 reset to stock

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

NSA 325 v2 reset to stock

Postby robinei » Mon Jun 23, 2014 6:00 pm

Is there a way to reset to stock without serial?

I think I may have fried my serial by connecting the Vcc pin when I first began.
In any case the serial has never worked for me.
If I did fry it, that was while I was still running stock, so I know that the unit still
worked fine apart from that.

(Someone at http://zyxel.nas-central.org/wiki/Serial_port_(NSA325) probably ought
to edit the article, to warn against connecting Vcc, which seems to be suggested
by the diagram there)

I hoped that installing Arch would let me see the serial output, but it didn't and the
device is probably bricked now for me. When first booting the USB stick there was lots
of LED and HDD activity, and I didn't reboot until long after it had ended.

But unfortunately when I boot it now, it does not reach the point where it requests an
IP from my router at least, so I have no way of finding out what's going on.

I tried editing usb_key_func.sh.2 on the USB stick to practically only contain:
$this->bbcode_second_pass_code('', '
#!/bin/sh

fw_setenv arcNumber 4495
fw_setenv mainlineLinux yes
fw_setenv bootargs_stock 'console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=/dev/nfs rw init=/init'
fw_setenv bootargs_linux 'console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=/dev/sda2 rw rootwait loglevel=8'
fw_setenv bootcmd_linux 'setenv bootargs $(bootargs_linux); ide reset; ext2load ide 0:1 $(loadaddr) /uImage; bootm $(loadaddr)'
fw_setenv bootcmd_stock 'setenv bootargs $(bootargs_stock); nand read.e $(loadaddr) $(kernel_addr) 0xA00000; bootm $(loadadr)'
fw_setenv to_stock "setenv mainlineLinux no; setenv bootcmd \'run bootcmd_stock\'; saveenv; reset"
fw_setenv to_linux "setenv mainlineLinux yes; setenv bootcmd \'run bootcmd_linux\'; saveenv; reset"

fw_setenv bootcmd 'run to_stock'
sync
reboot
')

...and then booting with it in a backside USB port.
That didn't work. Is there some other way?
robinei
 
Posts: 2
Joined: Mon Jun 23, 2014 5:41 pm

Re: NSA 325 v2 reset to stock

Postby WarheadsSE » Mon Jun 23, 2014 7:16 pm

Yes, ssh to the device, and use fw_setenv to set bootcmd to "run to_stock"

The USB drive trick won't run on Arch
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: NSA 325 v2 reset to stock

Postby robinei » Mon Jun 23, 2014 7:22 pm

The problem is that it doesn't seem to reach the point where it is network accessible.
(it never shows up in the list of attached devices on the router, and the IP it used to have is unreachable)

So I was hoping I could make it run the to_stock command from a script on a USB stick,
similar to how Linux is installed in the first place
robinei
 
Posts: 2
Joined: Mon Jun 23, 2014 5:41 pm


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 14 guests