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



Edited 1 time(s). Last edit at 08/05/2017 08:22PM by bodhi.
I do not see where the variable $bootdev is defined in your environment settings. I would start there..............
Re: ZyXEL NSA325 booting problem with 2016.05 U-Boot Kirkwood
August 05, 2017 08:35PM
Alec,

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 **

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 **

Your HDD was not good.

Quote

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.

You need to redo this. The first partition in this HDD was not recognized as Ext2/Ext3/Ext4 type. You could boot with the USB rootfs and examine the HDD partition with fdisk, and try mounting it too.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: ZyXEL NSA325 booting problem with 2016.05 U-Boot Kirkwood
August 05, 2017 08:54PM
If you want to confirm in serial console if the partition really has problem or not:

Interrupt serial console and

ide reset
ext2ls ide 0:1 /boot

The start sector looks wrong


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 **

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



Edited 1 time(s). Last edit at 08/05/2017 09:03PM by bodhi.
Dear bodhi and Dojo,
great great thanks. It works yet :)))) . I added ide to bootdev and also prepared the hdd new (deleted/formated/copied and do fdisk).
I would like to compare the transfer speed (smb) between debian omv and stock firmware, this why I would like to boot the stock. It is possible? Like bootcmd "run to_stock" or have I to do this way ? "http://zyxel.nas-central.org/wiki/Restoring_Firmware";

Thanks
Alec
Re: ZyXEL NSA325 booting problem with 2016.05 U-Boot Kirkwood
August 06, 2017 04:27PM
Dojo & Alec,

> I added ide to bootdev

You dont need to add bootdev. It's assigned automatically in the scan script.

Quote

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

Alec,

> I would like to compare the transfer speed (smb) b
> etween debian omv and stock firmware

Look in the Wiki thread to see how to measure performance:

Quote

Benchmarks

Pogo ProV3 vs Pogo E02
Another Pogo Pro V3 benchmarks
Network performance - SAMBA - NFS (various protocols)
Pogo Pro V3 Network NFS benchmarks
Kirkwood vs OXNAS network performance (with flow control)
Kirkwood vs OXNAS network performance (flow control turned off )
OXNAS vs OXNAS network performance (flow control turned off)

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



Edited 1 time(s). Last edit at 08/06/2017 04:29PM by bodhi.
Dear bodhi,
I'm trying over a week to boot Debian (Debian jessi 4.4.0 / Kernel 4.12.1) from a HGST (Toshiba) 4TB HDD. Booting from USB and HDD 160GB (Hitachi) works well. My bootenv is still the same as above posted. I tried ext2/ext3/ext4 also tried GPT / hybrid mbr and many more, but alsway stuck here:
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
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: TOSHIBA HDWQ140  Firm: FJ1M Ser#: 275EK042FPBE
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 3815447.8 MB = 3726.0 GB (7814037168 x 512)
Unknown command 'mmc' - try 'help'

no USB devices available

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

GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
part_print_efi: *** ERROR: Invalid GPT ***
part_print_efi: ***        Using Backup GPT ***
Part    Start LBA       End LBA         Name
        Attributes
        Type GUID
        Partition GUID
  1     0x00000800      0x1d1c0be8e     ""
        attrs:  0x0000000000000000
        type:   0fc63daf-8483-4772-8e79-3d69d8477de4
        guid:   4acfd172-37b4-4de7-9733-2b76862ca79a
loading envs from ide 0 ...
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
part_get_info_efi: *** ERROR: Invalid GPT ***
part_get_info_efi: ***        Using Backup GPT ***
57 bytes read in 26 ms (2 KiB/s)
importing envs ...
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: TOSHIBA HDWQ140  Firm: FJ1M Ser#: 275EK042FPBE
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 3815447.8 MB = 3726.0 GB (7814037168 x 512)
device ide 0:1
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
part_get_info_efi: *** ERROR: Invalid GPT ***
part_get_info_efi: ***        Using Backup GPT ***
1 bytes read in 25 ms (0 Bytes/s)
Found bootable drive on ide 0
loading uImage ...
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
part_get_info_efi: *** ERROR: Invalid GPT ***
part_get_info_efi: ***        Using Backup GPT ***
3821592 bytes read in 602 ms (6.1 MiB/s)
loading uInitrd ...
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
part_get_info_efi: *** ERROR: Invalid GPT ***
part_get_info_efi: ***        Using Backup GPT ***
9367966 bytes read in 1438 ms (6.2 MiB/s)
loading DTB /boot/dts/kirkwood-nsa325.dtb ...
GUID Partition Table Header signature is wrong: 0x0 != 0x5452415020494645
part_get_info_efi: *** ERROR: Invalid GPT ***
part_get_info_efi: ***        Using Backup GPT ***
14548 bytes read in 47 ms (301.8 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2017-08-22   7:34:46 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3821528 Bytes = 3.6 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-4.12.1-kirkwood-tld-1
   Created:      2017-08-22   7:35:12 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9367902 Bytes = 8.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 1f223000, end 1fb1215e ... OK
   Loading Device Tree to 1f21c000, end 1f2228d3 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: ZyXEL NSA325
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 orion_nand
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 497180K/524288K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 27108K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0db3274   ( 717 kB)
[    0.000000]        .bss : 0xc0db9b9c - 0xc0e01e60   ( 289 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000006] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000036] Switching to timer-based delay loop, resolution 5ns
[    0.000420] Console: colour dummy device 80x30
[    0.000448] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000466] pid_max: default: 32768 minimum: 301
[    0.000628] Security Framework initialized
[    0.000726] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000743] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001451] CPU: Testing write buffer coherency: ok
[    0.002321] Setting up static identity map for 0x100000 - 0x100058
[    0.002557] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.005184] devtmpfs: initialized
[    0.009333] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.009356] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.009676] prandom: seed boundary self test passed
[    0.012534] prandom: 100 self tests passed
[    0.012550] pinctrl core: initialized pinctrl subsystem
[    0.013528] NET: Registered protocol family 16
[    0.013872] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.015241] cpuidle: using governor ladder
[    0.015300] cpuidle: using governor menu
[    0.015657] Feroceon L2: Enabling L2
[    0.015695] Feroceon L2: Cache support initialised.
[    0.015995] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.020222] No ATAGs?
[    0.027458] vgaarb: loaded
[    0.027710] SCSI subsystem initialized
[    0.028090] usbcore: registered new interface driver usbfs
[    0.028140] usbcore: registered new interface driver hub
[    0.028181] usbcore: registered new device driver usb
[    0.028949] clocksource: Switched to clocksource orion_clocksource
[    0.098011] VFS: Disk quotas dquot_6.6.0
[    0.098085] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.106262] NET: Registered protocol family 2
[    0.106867] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.106923] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.106975] TCP: Hash tables configured (established 4096 bind 4096)
[    0.107043] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.107065] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.107210] NET: Registered protocol family 1
[    0.107558] RPC: Registered named UNIX socket transport module.
[    0.107568] RPC: Registered udp transport module.
[    0.107574] RPC: Registered tcp transport module.
[    0.107579] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.107772] Unpacking initramfs...
[    0.726789] Freeing initrd memory: 9152K
[    0.726901] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.727612] audit: initializing netlink subsys (disabled)
[    0.727980] Initialise system trusted keyrings
[    0.728026] Key type blacklist registered
[    0.728103] audit: type=2000 audit(0.718:1): state=initialized audit_enabled=0 res=1
[    0.728183] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.728239] zbud: loaded
[    0.729068] NFS: Registering the id_resolver key type
[    0.729091] Key type id_resolver registered
[    0.729097] Key type id_legacy registered
[    0.729117] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.729125] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.729290] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.729444] fuse init (API version 7.26)
[    0.729739] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.729905] orangefs_init: module version upstream loaded
[    0.729913] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.558955] random: fast init done
[    5.089307] Key type asymmetric registered
[    5.089322] Asymmetric key parser 'x509' registered
[    5.089378] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    5.089387] io scheduler noop registered
[    5.089393] io scheduler deadline registered
[    5.089465] io scheduler cfq registered (default)
[    5.090452] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    5.091929] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00
[    5.091947] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    5.091957] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    5.091968] pci_bus 0000:00: root bus resource [bus 00-ff]
[    5.092224] PCI: bus0: Fast back to back transfers disabled
[    5.092243] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    5.119024] PCI: bus1: Fast back to back transfers disabled
[    5.119192] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    5.119208] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
[    5.119229] pci 0000:00:01.0: PCI bridge to [bus 01]
[    5.119242] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    5.119316] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    5.119394] pci 0000:01:00.0: enabling device (0140 -> 0142)
[    5.119825] mv_xor f1060800.xor: Marvell shared XOR driver
[    5.179528] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    5.179717] mv_xor f1060900.xor: Marvell shared XOR driver
[    5.239510] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    5.239899] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    5.240991] console [ttyS0] disabled
[    5.241048] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    5.919925] console [ttyS0] enabled
[    5.929963] loop: module loaded
[    5.933608] sata_mv f1080000.sata: slots 32 ports 2
[    5.940679] scsi host0: sata_mv
[    5.944187] scsi host1: sata_mv
[    5.947542] ata1: SATA max UDMA/133 irq 32
[    5.951706] ata2: SATA max UDMA/133 irq 32
[    5.956461] nand: device found, Manufacturer ID: 0x92, Chip ID: 0xf1
[    5.962927] nand: Eon NAND 128MiB 3,3V 8-bit
[    5.967219] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    5.974848] Scanning device for bad blocks
[    5.983796] Bad eraseblock 100 at 0x000000c80000
[    5.993216] Bad eraseblock 200 at 0x000001900000
[    6.037184] 9 ofpart partitions found on MTD device orion_nand
[    6.043055] Creating 9 MTD partitions on "orion_nand":
[    6.048223] 0x000000000000-0x000000100000 : "uboot"
[    6.054191] 0x000000100000-0x000000180000 : "uboot_env"
[    6.060515] 0x000000180000-0x000000200000 : "key_store"
[    6.066705] 0x000000200000-0x000000280000 : "info"
[    6.072405] 0x000000280000-0x000000c80000 : "etc"
[    6.078043] 0x000000c80000-0x000001680000 : "kernel_1"
[    6.084197] 0x000001680000-0x000004640000 : "rootfs1"
[    6.090589] 0x000004640000-0x000005040000 : "kernel_2"
[    6.096776] 0x000005040000-0x000008000000 : "rootfs2"
[    6.104017] libphy: Fixed MDIO Bus: probed
[    6.108723] libphy: orion_mdio_bus: probed
[    6.117317] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    6.219389] mv643xx_eth: Set the PHY to fix link down
[    6.219988] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 52:3b:20:9c:11:51
[    6.233948] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.240556] ehci-pci: EHCI PCI platform driver
[    6.245067] ehci-orion: EHCI orion driver
[    6.249297] orion-ehci f1050000.ehci: EHCI Host Controller
[    6.254852] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    6.262701] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    6.288969] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    6.295257] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    6.302101] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.309374] usb usb1: Product: EHCI Host Controller
[    6.314267] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    6.321013] usb usb1: SerialNumber: f1050000.ehci
[    6.326247] hub 1-0:1.0: USB hub found
[    6.330090] hub 1-0:1.0: 1 port detected
[    6.334502] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    6.339817] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    6.347558] xhci_hcd 0000:01:00.0: hcc params 0x014042cb hci version 0x96 quirks 0x00000004
[    6.356184] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    6.363026] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.370290] usb usb2: Product: xHCI Host Controller
[    6.375185] usb usb2: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[    6.381931] usb usb2: SerialNumber: 0000:01:00.0
[    6.387071] hub 2-0:1.0: USB hub found
[    6.390911] hub 2-0:1.0: 2 ports detected
[    6.395338] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    6.400641] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[    6.408146] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    6.416412] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    6.423252] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.430519] usb usb3: Product: xHCI Host Controller
[    6.435414] usb usb3: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[    6.442234] usb usb3: SerialNumber: 0000:01:00.0
[    6.447378] hub 3-0:1.0: USB hub found
[    6.451222] hub 3-0:1.0: 2 ports detected
[    6.455848] usbcore: registered new interface driver usb-storage
[    6.461934] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    6.468875] mousedev: PS/2 mouse device common for all mice
[    6.474888] i2c /dev entries driver
[    6.483455] rtc rtc0: invalid alarm value: 2017-9-12 33:0:0
[    6.489250] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0
[    6.498789] hidraw: raw HID events driver (C) Jiri Kosina
[    6.504730] drop_monitor: Initializing network drop monitor service
[    6.511511] NET: Registered protocol family 17
[    6.516044] Key type dns_resolver registered
[    6.520946] registered taskstats version 1
[    6.525064] Loading compiled-in X.509 certificates
[    6.529947] zswap: loaded using pool lzo/zbud
[    6.543544] Key type big_key registered
[    6.555874] Key type encrypted registered
[    6.562597] rtc-pcf8563 0-0051: setting system clock to 2017-08-23 08:28:23 UTC (1503476903)
[    6.629029] ata1.00: ATA-8: TOSHIBA HDWQ140, FJ1M, max UDMA/100
[    6.634982] ata1.00: 7814037168 sectors, multi 16: LBA48 NCQ (depth 31/32)
[    6.648607] ata1.00: configured for UDMA/100
[    6.663414] scsi 0:0:0:0: Direct-Access     ATA      TOSHIBA HDWQ140  FJ1M PQ: 0 ANSI: 5
[    6.672412] sd 0:0:0:0: [sda] 7814037168 512-byte logical blocks: (4.00 TB/3.64 TiB)
[    6.680668] sd 0:0:0:0: [sda] Write Protect is off
[    6.685600] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    6.694734] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    6.890579] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    6.897325] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    6.904534] usb 1-1: Product: USB2.0 Hub
[    6.909925] sd 0:0:0:0: [sda] Attached SCSI disk
[    6.915246] hub 1-1:1.0: USB hub found
[    6.919454] hub 1-1:1.0: 4 ports detected
[    7.009592] ata2: SATA link down (SStatus 0 SControl F300)
[    7.028134] Freeing unused kernel memory: 1024K
Loading, please wait...
[    7.099722] systemd-udevd[126]: starting version 215
[    7.294033] sd 0:0:0:0: Attached scsi generic sg0 type 0
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... Begin: Assembling all MD arrays ... [   17.587502] __nand_correct_data: uncorrectable ECC error
[   17.592898] __nand_correct_data: uncorrectable ECC error
[   17.598238] blk_update_request: I/O error, dev mtdblock5, sector 0
[   17.604916] __nand_correct_data: uncorrectable ECC error
[   17.610285] __nand_correct_data: uncorrectable ECC error
[   17.615625] blk_update_request: I/O error, dev mtdblock5, sector 0
[   17.622057] __nand_correct_data: uncorrectable ECC error
[   17.627393] __nand_correct_data: uncorrectable ECC error
[   17.632744] blk_update_request: I/O error, dev mtdblock5, sector 0
mdadm: No arrays found in config file or automatically
Failure: failed to assemble all arrays.
done.
[   17.690279] device-mapper: uevent: version 1.0.3
[   17.696524] device-mapper: ioctl: 4.35.0-ioctl (2016-06-23) initialised: dm-devel@redhat.com
done.
Begin: Running /scripts/local-premount ... [   17.899502] raid6: int32x1  gen()   113 MB/s
[   18.069191] raid6: int32x1  xor()    74 MB/s
[   18.239202] raid6: int32x2  gen()   158 MB/s
[   18.408986] raid6: int32x2  xor()   104 MB/s
[   18.579145] raid6: int32x4  gen()   163 MB/s
[   18.749009] raid6: int32x4  xor()   115 MB/s
[   18.918965] raid6: int32x8  gen()   156 MB/s
[   19.089027] raid6: int32x8  xor()   105 MB/s
[   19.093313] raid6: using algorithm int32x4 gen() 163 MB/s
[   19.098727] raid6: .... xor() 115 MB/s, rmw enabled
[   19.103636] raid6: using intx1 recovery algorithm
[   19.109968] xor: measuring software checksum speed
[   19.208982]    arm4regs  :  1453.200 MB/sec
[   19.308997]    8regs     :   872.400 MB/sec
[   19.408976]    32regs    :  1207.600 MB/sec
[   19.413181] xor: using function: arm4regs (1453.200 MB/sec)
[   19.462406] Btrfs loaded, crc32c=crc32c-generic
Scanning for Btrfs filesystems
[   19.614389] __nand_correct_data: uncorrectable ECC error
[   19.619793] __nand_correct_data: uncorrectable ECC error
[   19.625132] blk_update_request: I/O error, dev mtdblock5, sector 0
[   19.631586] __nand_correct_data: uncorrectable ECC error
[   19.636917] __nand_correct_data: uncorrectable ECC error
[   19.642304] blk_update_request: I/O error, dev mtdblock5, sector 0
[   19.648510] Buffer I/O error on dev mtdblock5, logical block 0, async page read
done.
Begin: Waiting for root file system ... Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
done.
Gave up waiting for root device.  Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
   - Check root= (did the system wait for the right device?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT!  /dev/disk/by-label/rootfs does not exist.  Dropping to a shell!
modprobe: module i8042 not found in modules.dep
[   50.726910] uhci_hcd: USB Universal Host Controller Interface driver
[   50.742454] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[   50.758560] usbcore: registered new interface driver usbhid
[   50.764317] usbhid: USB HID core driver


BusyBox v1.22.1 (Debian 1:1.22.0-9+deb8u1) built-in shell (ash)
Enter 'help' for a list of built-in commands.

/bin/sh: can't access tty; job control turned off
(initramfs) [  169.528996] random: crng init done

Thank you
Re: ZyXEL NSA325 booting problem with 2016.05 U-Boot Kirkwood
August 23, 2017 02:42PM
Alec,

> GUID Partition Table Header signature is wrong: 0x
> 0 != 0x5452415020494645
> part_get_info_efi: *** ERROR: Invalid GPT ***
> part_get_info_efi: *** Using Backup GPT ***

I would try to fix this error first, before worrying about the rest.

How did you you create the GPT disk partition, on Mac/Linux/Windows and using which program? Have you tried to create it using Linux command line tools?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Dear bodhi,
I used gparted on VM Linux (Ubuntu) machine and also MiniPartition Tool on Windows 10. Conncected with USB to Sata adapter.
I will additional try now KDE Partition Manager. I have no idea how to use command line tools, but I will google and try it also. Have you a suggestion for a partition program?

Thanks
Re: ZyXEL NSA325 booting problem with 2016.05 U-Boot Kirkwood
August 23, 2017 04:29PM
Alec Wrote:
-------------------------------------------------------
> Dear bodhi,
> I used gparted on VM Linux (Ubuntu) machine and al
> so MiniPartition Tool on Windows 10. Conncected wi
> th USB to Sata adapter.
> I will additional try now KDE Partition Manager. I
> have no idea how to use command line tools, but I
> will google and try it also. Have you a suggestio
> n for a partition program?
>
> Thanks

Use command line: parted (same as using GUI gparted). Remove all partitions and create a new GPT partition table, and then create anew partition. Basically you want to wipe the disk clean first.

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



Edited 1 time(s). Last edit at 08/23/2017 05:19PM 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: