Welcome! Log In Create A New Profile

Advanced

ZyXEL NSA325 booting problem

Posted by purportex 
purportex
ZyXEL NSA325 booting problem
July 10, 2016 05:30PM
I have a serial cable and trying to boot from USB because of impossible
to boot from NAND after flashed uboot.2016.05-tld-1.nsa325.bodhi.tar
USB was formatted as ext4 with boot flag and rootfs label, then just copied
a content from Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2

U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:48:40 -0700)
ZyXEL NSA325 2-Bay Power Media Server

SoC: Kirkwood 88F6282_A1
DRAM: 512 MiB
WARNING: Caches not enabled
NAND: 128 MiB
*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Net: egiga0
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot: 0
starting USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found

Partition Map for USB device 0 -- Partition Type: DOS

Part Start Sector Num Sectors UUID Type
1 2048 122912768 000dc84e-01 83 Boot
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **
3154896 bytes read in 311 ms (9.7 MiB/s)
7179935 bytes read in 501 ms (13.7 MiB/s)
## Booting kernel from Legacy Image at 00800000 ...
Image Name: Linux-4.4.0-kirkwood-tld-1
Created: 2016-02-19 5:55:25 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3154832 Bytes = 3 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
Image Name: initramfs-4.4.0-kirkwood-tld-1
Created: 2016-02-19 7:33:04 UTC
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 7179871 Bytes = 6.8 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Loading Kernel Image ... OK
Using machid 0x118f from environment

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

Error: unrecognized/unsupported machine ID (r1 = 0x0000118f).

Available machine support:

ID (hex) NAME
ffffffff Generic DT based system
ffffffff Marvell Kirkwood (Flattened Device Tree)

Please check your kernel config and/or bootloader.



Edited 1 time(s). Last edit at 07/11/2016 12:09AM by bodhi.
ZyXEL NSA325 booting problem
July 10, 2016 11:36PM
Sounds like you need to set the appropriate dtb file.



Edited 1 time(s). Last edit at 07/11/2016 12:09AM by bodhi.
Re: ZyXEL NSA325 booting problem
July 11, 2016 12:24AM
purportex,

1. You did not flash the default envs image, that's why your envs has error

Quote

*** Warning - bad CRC, using default environment

2. And that caused u-boot to use its internal settings, which does not have the DTB location.

Solution:

See here for a similar booting problem and solution:
http://forum.doozan.com/read.php?3,27907,28505#msg-28505

Quote

Yes this is the problem with missing u-boot env to boot with the device tree DTB.

1. You have missed this section and did not flash the default envs image:

Quote

8. Flashing default u-boot envs image:
............
. A special section (B. Flashing default u-boot envs image) about flashing default u-boot envs is included at the end of this installation procedure. Please follow the instruction in this section B to perform this step before continuing with step 9.

So that was why the DTB was not setup properly.

2. To fix this, go a head and download the env image tarball:

Quote

a. Download the default u-boot envs at Dropbox:

uboot.2014.07-tld-3.environment.bodhi.tar
md5
8d53c30918510e0f1ea89d889a3f6f8e

This tarball includes 2 files:

uboot.2014.07-tld-3.environment.img (the default envs image to be flashed)
uboot.2014.07-tld-3.environment (the content of the default envs in text format)


3. Boot with your rootfs into Debian, create a uEnv.txt file (if you can't boot then mount this rootfs on another Linux box and create this file):

cd /boot
cp -a uboot.2014.07-tld-3.environment uEnv.txt

4. Edit the uEnv.txt to adjust the DTB name

Quote

dtb_file='/boot/dts/kirkwood-nsa310.dtb'

Also adjust other envs if you like to do so now. But just the DTB and the rootfs label env in this default image, will get it boot into Debian.

5. Then sync and reboot

This uEnv.txt will be in effect during boot only. So after booting into Debian, flash the default env image using the instruction in section B.


In your case, use the uboot.2016.05-tld-1.environment file, and copy it to uEnv.txt. Adjust it to use kirkwood-nsa325.dtb.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
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: