Mattpl
NSA 310 Uboot install problem form USB
February 24, 2021 03:13PM
Hi! I have problem with install ubott on my nsa310. I have prepare 2 usb disc (fat32), download
uboot.2017.07-tld-1.nsa310.bodhi.tar and uboot.2016.05-tld-1.environment.bodhi.tar
unpack and copy on my usb drive (rename to friendly names). Now connect via serial port, stop autoboot and run comand
restart usb - find 1 mass storage devie
then fatload usb 0 0x0 0x800000 uboot.kwb

and I have error
** Unable to read "uboot.kwb" from usb 0:1 **

firemware 4.7
U-Boot 1.1.4 (Feb 22 2011 - 10:31:35) Marvell version: 3.4.19

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
PRODUCT_NAME=NSA-310
FEATURE_BIT=00
CONTRY_TYPE=FF
VENDOR_NAME=ZyXEL Communications Corp.
run_diag=yes
ethaddr=50:67:F0:69:C0:DA
MODEL_ID=A203
console=100000
=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x7f00000@0x100000(root)
CASset=min
ethprime=egiga1
bootargs_root=root=/dev/nfs rw
bootargs_end=:::orion:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
ethmtu=1500
eth1mtu=1500
mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
MALLOC_len=3
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
stdin=serial
stdout=serial
stderr=serial
nandEnvBase=100000
mainlineLinux=no
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
disaMvPnp=no
hddPowerCtrl=no
enaAutoRecovery=yes
kernel_addr=0x4640000
pcieTune=no
ethact=egiga1

Environment size: 1586/131068 bytes
Mattok
Re: NSA 310 Uboot install problem form USB
February 24, 2021 04:37PM
OK I have resolve it :)
run:
fatload usb 0 0x1000000 uboot.kwb
Mattpl
Re: NSA 310 Uboot install problem form USB
February 24, 2021 05:11PM
OK, another problem not working LED in front panel (hdd and usb) and led on network card (lan connected)
Re: NSA 310 Uboot install problem form USB
February 24, 2021 06:21PM
Mattpl m

> OK, another problem not working LED in front panel
> (hdd and usb) and led on network card (lan
> connected)

See example in the rootfs /etc/rc.local (I mentioned this in the rootfs release notes).

And check your system what names that you should use:

ls -l /sys/class/leds

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Mattpl
Re: NSA 310 Uboot install problem form USB
February 25, 2021 01:12AM
/class/leds
lrwxrwxrwx  1 root root 0 Feb 24 23:09 nsa310:green:copy -> ../../devices/platform/gpio-leds/leds/nsa310:green:copy
lrwxrwxrwx  1 root root 0 Feb 24 23:09 nsa310:green:esata -> ../../devices/platform/gpio-leds/leds/nsa310:green:esata
lrwxrwxrwx  1 root root 0 Feb 24 23:09 nsa310:green:hdd -> ../../devices/platform/gpio-leds/leds/nsa310:green:hdd
lrwxrwxrwx  1 root root 0 Feb 24 23:09 nsa310:green:sys -> ../../devices/platform/gpio-leds/leds/nsa310:green:sys
lrwxrwxrwx  1 root root 0 Feb 24 23:09 nsa310:green:usb -> ../../devices/platform/gpio-leds/leds/nsa310:green:usb
lrwxrwxrwx  1 root root 0 Feb 24 23:09 nsa310:red:copy -> ../../devices/platform/gpio-leds/leds/nsa310:red:copy
lrwxrwxrwx  1 root root 0 Feb 24 23:09 nsa310:red:esata -> ../../devices/platform/gpio-leds/leds/nsa310:red:esata
lrwxrwxrwx  1 root root 0 Feb 24 23:09 nsa310:red:hdd -> ../../devices/platform/gpio-leds/leds/nsa310:red:hdd
lrwxrwxrwx  1 root root 0 Feb 24 23:09 nsa310:red:sys -> ../../devices/platform/gpio-leds/leds/nsa310:red:sys
lrwxrwxrwx  1 root root 0 Feb 24 23:09 nsa310:red:usb -> ../../devices/platform/gpio-leds/leds/nsa310:red:usb
. nsa310:green:esata nsa310:green:usb nsa310:red:hdd
.. nsa310:green:hdd nsa310:red:copy nsa310:red:sys
nsa310:green:copy nsa310:green:sys nsa310:red:esata nsa310:red:usb

Matt
Re: NSA 310 Uboot install problem form USB
February 25, 2021 01:21AM
When send message to triger usb green led
echo default-on > /sys/class/leds/nsa310:green:usb/trigger
led is on
Re: NSA 310 Uboot install problem form USB
February 25, 2021 03:51PM
So use examples in the /etc/rc.local. And write several echo statements, and place them in rc.local after you've verified that it works.

For example,

To make the USB green LED blink when there is disk access:
echo usb-host > /sys/class/leds/nsa310:green:usb/trigger

Turn system LED on in /etc/rc.local (this is when the Debian has finished booting)
echo default-on > /sys/class/leds/nsa310:green:sys/trigger

To make the HDD green LED blink when there is disk access:
echo ide-disk1  > /sys/class/leds/nsa310:green:hdd/trigger

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 02/25/2021 04:08PM 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: