Welcome! Log In Create A New Profile

Advanced

Booting to stock Zyxel NSA3xx with 2015.10-tld1 U-Boot Kirkwood

Posted by sebr 
Booting to stock Zyxel NSA3xx with 2015.10-tld1 U-Boot Kirkwood
February 04, 2016 04:56PM
Recently I have flashed bodhi's latest uBoot on a Zyxel NSA310. I havent flashed new envs and booting debian from USB worked flawless. But unfortunately I cannot boot back to stock OS in flash anymore!
After tweaking the envs in uBoot it picked up the kernel image but then stalls without any further progress after:
Starting kernel ...

Uncompressing Linux................................................................................................................................................................................................................................................................................ done, booting the kernel.

If I restore my backup of stock-mtd0 I am able to boot the stock OS from flash. But of course this is not the best solution as keep rewriting uBoot is very risky. On some older threads regarding the Dockstar I have seen other people facing the same issues - not being able to boot to stock OS with new uBoot - and there was no other way than restoring mtd0.
Is there some progress with that or has anybody managed to boot back to stock OS with the latest uBoot from bodhi?
For reference, these are the stock envs:
bootargs=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
bootcmd=nand read.e 0x2000000 $(kernel_addr) 0xA00000; bootm 0x2000000
bootdelay=2
baudrate=115200
loads_echo=0
eth1addr=00:19:CB:00:51:82
ipaddr=10.4.50.165
serverip=10.4.50.5
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
nandEcc=1bit
kernel_addr=480000
MODEL_ID=A203
PRODUCT_NAME=NSA-310
FEATURE_BIT=00
CONTRY_TYPE=FF
VENDOR_NAME=ZyXEL Communications Corp.
run_diag=yes
ethaddr=CC:5D:4E:CA:02:64
Re: Booting to stock Zyxel NSA3xx with 2015.10-tld1 U-Boot Kirkwood
February 06, 2016 03:02AM
Hello,

same problem here.

After I flashed the current uboot on my NSA325, I'm not able to boot into the stock firmware.
Booting with flash drive to debian works without any problems.

The kernel ist loaded from nand to memory, but the system freeze after booting.

Can someone help me, to find out the correct parameters?
I have attached the screenlog with more details.


mtdparts=mtdparts=orion_nand:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)
partition=nand0,6

bootcmd=run bootcmd_uenv; run bootcmd_usb; run bootcmd_stock; reset
bootcmd_stock=run set_bootargs_stock; if nand read.e 0x02000000 0x00c80000 0xA00000; then bootm 0x02000000; else reset; fi
set_bootargs_stock=setenv bootargs console=$console root=/dev/nfs rw init=/init rootpath=/srv/ubuntu nandEcc=1bit rootdelay=$rootdelay rootfstype=ext2 $mtdparts mainlineLinux=no

NSA325> mtdparts

device nand0 <orion_nand>, # parts = 9
#: name size offset mask_flags
0: uboot 0x00100000 0x00000000 0
1: uboot_env 0x00080000 0x00100000 0
2: key_store 0x00080000 0x00180000 0
3: info 0x00080000 0x00200000 0
4: etc 0x00a00000 0x00280000 0
5: kernel_1 0x00a00000 0x00c80000 0
6: rootfs1 0x02fc0000 0x01680000 0
7: kernel_2 0x00a00000 0x04640000 0
8: rootfs2 0x02fc0000 0x05040000 0

active partition: nand0,6 - (rootfs1) 0x02fc0000 @ 0x01680000

U-Boot 2015.10-tld-1 (Nov 06 2015 - 16:09:38 -0800)
ZyXEL NSA325 2-Bay Power Media Server

SoC: Kirkwood 88F6282_A1
DRAM: 512 MiB (ECC not enabled)
WARNING: Caches not enabled
NAND: 128 MiB
In: serial
Out: serial
Err: serial
Net: egiga0
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot: 5  4  3  2  1  0
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
scanning usb for storage devices... 0 Storage Device(s) found

Reset IDE: Bus 0: OK Bus 1: not available
Device 0: Model: WDC WD30EFRX-68EUZN0
Type: Hard Disk
Supports 48-bit addressing
Capacity: 2861588.4 MB = 2794.5 GB (5860533168 x 512)

no USB devices available

Partition Map for IDE device 0 -- Partition Type: EFI

Part Start LBA End LBA Name
Attributes
Type GUID
Partition GUID
1 0x00000800 0x000f3fff "mitraswap"
attrs: 0x0000000000000000
type: 0657fd6d-a4ab-43c4-84e5-0933c84b4f4f
guid: 9dfa02ee-fa4c-4c9e-a357-d14fff0d442f
2 0x000f4000 0x15d509fff "eexxtt44"
attrs: 0x0000000000000000
type: ebd0a0a2-b9e5-4433-87c0-68b6b72699c7
guid: 301f1786-4fd9-4f9a-8fec-e120925c812d
loading envs from ide 0 ...
** File not found /boot/uEnv.txt **
** Bad device usb 0 **
** Bad device usb 0 **
Wrong Image Format for bootm command
Error occured, error code = 112
ERROR: can't get kernel image!

NAND read: device 0 offset 0xc80000, size 0xa00000
Skipping bad block 0x00c80000
10485760 bytes read: OK
## Booting kernel from Legacy Image at 02000000 ...
Image Name: Linux-2.6.31.8
Created: 2015-11-09 8:37:06 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 5796468 Bytes = 5.5 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
Loading Kernel Image ... OK

Starting kernel ...

Uncompressing Linux................................................................................................................................................................................................................................................................................ done, booting the kernel.
Attachments:
open | download - screenlog.0_freeze_stock.txt (6.9 KB)
Re: Booting to stock Zyxel NSA3xx with 2015.10-tld1 U-Boot Kirkwood
February 06, 2016 02:55PM
I need stock boot to...
Re: Booting to stock Zyxel NSA3xx with 2015.10-tld1 U-Boot Kirkwood
May 18, 2016 08:55AM
I know that it isn't booting to stock, but kirkwoods are supported by openWRT, it can be flashed on NAND and is better than its original firmware by 3-4 orders of magnitude.
here http://forum.doozan.com/read.php?8,25874 we talk about it and a more advanced system (UBIFS file system instead of stadnard openwrt image), but you can probably live well with standard instructions from openwrt pages too.
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: