Welcome! Log In Create A New Profile

Advanced

NSA310 Installation Problems

Posted by chad 
chad
NSA310 Installation Problems
March 08, 2017 07:08PM
Greetings,

I am trying to get Debian on a Zyxel NSA310. I have flashed u-boot to 2016.05 but haven't had success in getting this to boot off of a USB flash drive. Below is my POST and printenv.

Any help is appreciated!


U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:59:20 -0700)
ZyXEL NSA310 1-Bay Power Media Server


SoC:   Kirkwood 88F6281_A1
DRAM:  256 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
PHY reset timed out
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            2040832         1bfa0115-01     83
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **
3302440 bytes read in 623 ms (5.1 MiB/s)
7414190 bytes read in 1032 ms (6.9 MiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.10.0-kirkwood-tld-1
   Created:      2017-03-09   1:48:04 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3302376 Bytes = 3.1 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.10.0-kirkwood-tld-1
   Created:      2017-03-09   1:48:36 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7414126 Bytes = 7.1 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

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

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.


NSA310> printenv
arcNumber=4022
baudrate=115200
bootcmd=run bootcmd_uenv; run bootcmd_usb; usb stop; run bootcmd_sata; reset
bootcmd_sata=run sata_init; run set_bootargs_sata; run sata_boot
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootcmd_usb=run usb_init; run set_bootargs_usb; run usb_boot
bootdelay=10
console=ttyS0,115200
device=0:1
ethact=egiga0
ethaddr=b6:d0:5e:0f:a1:17
led_error=orange blinking
led_exit=green off
led_init=green blinking
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:0x100000(uboot),0x80000(stock_uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)
partition=nand0,2
rootdelay=10
rootfstype=ext2
sata_boot=mw 0x800000 0 1; run sata_load_uimage; if run sata_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
sata_init=ide reset
sata_load_uimage=ext2load ide $device 0x800000 /boot/uImage
sata_load_uinitrd=ext2load ide $device 0x1100000 /boot/uInitrd
sata_root=/dev/sda1
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=usb_rootfs rootdelay=10 $mtdparts $custom_params
set_bootargs_sata=setenv bootargs console=$console root=$sata_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
stderr=serial
stdin=serial
stdout=serial
uenv_import=echo importing envs ...; env import -t 0x810000
uenv_load=ide reset; setenv uenv_loaded 0; for devtype in ide; do for disknum in 0; do run uenv_read_disk; done; done
uenv_loaded=0
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 0x810000 /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if $devtype part $disknum; then run uenv_read; fi
usb_boot=mw 0x800000 0 1; run usb_load_uimage; if run usb_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
usb_init=usb start
usb_load_uimage=ext2load usb $device 0x800000 /boot/uImage
usb_load_uinitrd=ext2load usb $device 0x1100000 /boot/uInitrd
usb_root=/dev/sda1
Re: NSA310 Installation Problems
March 08, 2017 07:31PM
Hi chad,

You have flashed 2016.05 uboot image. But you did not flash the default 2016.05 envs image for it.

Let me find the post where I have written instruction for exactly this problem.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: NSA310 Installation Problems
March 08, 2017 07:40PM
Here is the instruction:

http://forum.doozan.com/read.php?3,29362,29390#msg-29390

You need to adjust the env dtb_file to the DTB file name for NSA310.

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

There are 3 variations of the NSA310 so later you will want to select the right one. But the basic DTB should get it booting.

NOTE: you dont need to use kwboot. Just use serial console like you already did above.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner



Edited 1 time(s). Last edit at 03/08/2017 07:42PM by bodhi.
chad
Re: NSA310 Installation Problems
March 08, 2017 07:49PM
Hi bodhi,

Thanks for the lightning fast response. I have set that env but the result is the same:

NSA310> printenv
arcNumber=4022
baudrate=115200
bootcmd=run bootcmd_uenv; run bootcmd_usb; usb stop; run bootcmd_sata; reset
bootcmd_sata=run sata_init; run set_bootargs_sata; run sata_boot
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootcmd_usb=run usb_init; run set_bootargs_usb; run usb_boot
bootdelay=10
console=ttyS0,115200
device=0:1
dtb_file=/boot/dts/kirkwood-nsa310.dtb
ethact=egiga0
ethaddr=b6:d0:5e:0f:a1:17
led_error=orange blinking
led_exit=green off
led_init=green blinking
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:0x100000(uboot),0x80000(stock_uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)
partition=nand0,2
rootdelay=10
rootfstype=ext2
sata_boot=mw 0x800000 0 1; run sata_load_uimage; if run sata_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
sata_init=ide reset
sata_load_uimage=ext2load ide $device 0x800000 /boot/uImage
sata_load_uinitrd=ext2load ide $device 0x1100000 /boot/uInitrd
sata_root=/dev/sda1
set_bootargs_sata=setenv bootargs console=$console root=$sata_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
stderr=serial
stdin=serial
stdout=serial
uenv_import=echo importing envs ...; env import -t 0x810000
uenv_load=usb start; setenv uenv_loaded 0; for devtype in usb; do for disknum in 0; do run uenv_read_disk; done; done
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 0x810000 /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if $devtype part $disknum; then run uenv_read; fi
usb_boot=mw 0x800000 0 1; run usb_load_uimage; if run usb_load_uinitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
usb_init=usb start
usb_load_uimage=ext2load usb $device 0x800000 /boot/uImage
usb_load_uinitrd=ext2load usb $device 0x1100000 /boot/uInitrd
usb_root=/dev/sda1

Environment size: 2113/131068 bytes



NSA310> boot

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 2040832 1bfa0115-01 83
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **
3302440 bytes read in 622 ms (5.1 MiB/s)
7414190 bytes read in 1031 ms (6.9 MiB/s)
## Booting kernel from Legacy Image at 00800000 ...
Image Name: Linux-4.10.0-kirkwood-tld-1
Created: 2017-03-09 1:48:04 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3302376 Bytes = 3.1 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
Image Name: initramfs-4.10.0-kirkwood-tld-1
Created: 2017-03-09 1:48:36 UTC
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 7414126 Bytes = 7.1 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Loading Kernel Image ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

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

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.
Re: NSA310 Installation Problems
March 08, 2017 10:14PM
chad,

You need to do the whole procedure like I posted above.

Quote

Here is the instruction:

http://forum.doozan.com/read.php?3,29362,29390#msg-29390

And while doing that, since the procedure use the GoFlexNet DTB (that's the only thing you need to do differently than what's in that procdure).

Quote

You need to adjust the env dtb_file to the DTB file name for NSA310.

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

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
chad
Re: NSA310 Installation Problems
March 09, 2017 04:29PM
bodhi,

Thanks!!! It boots in to debian. I have tried both dtb files with seemingly similar results. The only odd thing I am noticing is that the ethernet MAC is being set to 00:00:00:00:00:30 over what is being set in the env vars. Any ideas there?
Re: NSA310 Installation Problems
March 09, 2017 06:24PM
chad Wrote:
-------------------------------------------------------
> bodhi,
>
> Thanks!!! It boots in to debian. I have tried bot
> h dtb files with seemingly similar results. The o
> nly odd thing I am noticing is that the ethernet M
> AC is being set to 00:00:00:00:00:30 over what is
> being set in the env vars. Any ideas there?

Hi chad,

Upgrade the kernel to 4.10-kirkwood-tld-1. And then in Debian, set the ethaddr to the real one:

fw_setenv ethaddr xxxxxxx


see if it takes. I've changed the DTS to allow this in Linux to make it a little easier.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner



Edited 1 time(s). Last edit at 03/10/2017 05:00AM by bodhi.
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: