Quantcast
Channel: Linux Device Hacking
Viewing all articles
Browse latest Browse all 3247

ZyXEL NSA325 booting problem with 2016.05 U-Boot Kirkwood (3 replies)

$
0
0
Dear bodhi,
can you take a minute and look at my printenv. Since few days I am trying to boot my NSA325 (Debian 4.4.0 (Jessie) , Kernel 4.12.1 , latest u-boot) from hdd-sata instead USB but It didnt work. Booting from usb works fine. My test HDD is 160GB ext3 single partition labeld rootfs with working files from my usb-stick. I added also devices=mmc usb ide to uEnv.txt but without success.

Here my envirements:

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
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
MV88E1318 PHY initialized on egiga0
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.178.41 is not alive
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.178.41 is not alive
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.178.41 is not alive
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.178.41 is not alive
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.178.41 is not alive
Hit any key to stop autoboot:  0
NSA325> printenv
arcNumber=4495
bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 orion_nand
bootcmd=run bootcmd_uenv; sleep 3; run scan_disk; run set_bootargs; run bootcmd_exec; run bootcmd_pogo; reset
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi; sleep 3
bootdelay=10
device=ide
devices=mmc usb ide
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-nsa325.dtb
ethact=egiga0
ethaddr=52:3b:20:9c:11:51
fileaddr=810000
filesize=4d
if_netconsole=ping $serverip
init=/bin/systemd
init_ide=ide reset
init_mmc=mmc rescan
init_usb=usb start
ipaddr=192.168.178.63
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=orion_nand
nc_ready=0
partition=nand0,2
preboot=run preboot_nc
preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
scan_ide=ide reset
scan_mmc=mmc rescan
scan_usb=usb start
serverip=192.168.178.41
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_loaded=1
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_ready_retry=15

Environment size: 3266/131068 bytes

My logs:

SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
MV88E1318 PHY initialized on egiga0
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.178.41 is not alive
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.178.41 is not alive
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.178.41 is not alive
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.178.41 is not alive
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 192.168.178.41 is not alive
Hit any key to stop autoboot:  0
Unknown command 'mmc' - try 'help'
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: Hitachi HTS541616J9SA00  Firm: SB4OC70P Ser#: SB2441SJCZ941E
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 152627.8 MB = 149.0 GB (312581808 x 512)
Unknown command 'mmc' - try 'help'

no USB devices available

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

Part    Start Sector    Num Sectors     UUID            Type
  1     256             512000          17ae7992-01     83 Boot
loading envs from ide 0 ...
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
running scan_disk ...
Scan device mmc
Unknown command 'mmc' - try 'help'
device mmc 0:1
** Bad device mmc 0 **
device mmc 1:1
** Bad device mmc 1 **
device mmc 2:1
** Bad device mmc 2 **
device mmc 3:1
** Bad device mmc 3 **
Scan device usb
device usb 0:1
** Bad device usb 0 **
device usb 1:1
** Bad device usb 1 **
device usb 2:1
** Bad device usb 2 **
device usb 3:1
** Bad device usb 3 **
Scan device ide

Reset IDE: Bus 0: OK Bus 1: not available
  Device 0: Model: Hitachi HTS541616J9SA00  Firm: SB4OC70P Ser#: SB2441SJCZ941E
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 152627.8 MB = 149.0 GB (312581808 x 512)
device ide 0:1
Failed to mount ext2 filesystem...
** Unrecognized filesystem type **
device ide 1:1
** Bad device ide 1 **
device ide 2:1
** Bad device ide 2 **
device ide 3:1
** Bad device ide 3 **
loading uImage ...
** Bad device usb 0x800000 **
loading uInitrd ...
** Bad device usb 0x1100000 **
loading DTB /boot/dts/kirkwood-nsa325.dtb ...
** Bad device usb 0x1c00000 **
Wrong Image Format for bootm command
Error occured, error code = 112
ERROR: can't get kernel image!
## Error: "bootcmd_pogo" not defined
resetting ...

Thank you

Viewing all articles
Browse latest Browse all 3247

Trending Articles