Welcome! Log In Create A New Profile

Advanced

Problem booting Debian-4.9.0-mvebu-tld-12 with 2 hdd's

Posted by heiko 
Problem booting Debian-4.9.0-mvebu-tld-12 with 2 hdd's
August 13, 2017 07:57AM
Hello bodhi,

first thanks for your very good job!
I was able first to boot with USB and after some problems to boot with hdd in the first slot.

My problem is, now when I bring a second hdd in the second slot, the system stops booting.
What changes i have to make that I can boot from first hdd when there is a hdd in the second slot.

The output from fw_printenv attached in the file fw_printenv.

Greetings heiko
Attachments:
open | download - fw_printenv (5.3 KB)
Re: Problem booting Debian-4.9.0-mvebu-tld-12 with 2 hdd's
August 13, 2017 04:04PM
Hi heiko,

> I was able first to boot with USB and after some p
> roblems to boot with hdd in the first slot.

Cool!

>
> My problem is, now when I bring a second hdd in th
> e second slot, the system stops booting.
> What changes i have to make that I can boot from f
> irst hdd when there is a hdd in the second slot.

Yes, this behavior is expected to happen when you have multiple HDDs. The envs I have posted are simple, that was a first iteration for the installation. I planned to revise it to make it robust as the envs that I had for the Kirkwood boxes uboots.

In the mean time, take a look at this post: U-Boot - Booting process in multiple drives configuration for information only. See section A.2.

If you decide to try it, don't do it with fw_setenv in Debian shell, only try this with setenv in serial console. And please post what you about to try so I can double check (We don't want the box the reverse back to stock booting envs when error occurs during testing).

I will post a quick instruction based on your current envs.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Problem booting Debian-4.9.0-mvebu-tld-12 with 2 hdd's
August 13, 2017 11:33PM
@heiko,

Do you have serial console?

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Problem booting Debian-4.9.0-mvebu-tld-12 with 2 hdd's
August 14, 2017 01:44AM
Hello bodhi,

thanks for the fast replay.

I have no serial console yet, but I plan to use it.
I'm very busy at moment, so I can only look for the serial console and the system at weekend's.

In mean time I use the system with one hdd.

Again thank for your good job!

heiko
Re: Problem booting Debian-4.9.0-mvebu-tld-12 with 2 hdd's
August 22, 2017 01:38PM
Hello bodhi,

after some truble with x86-64 kwboot at the weekend on my old atom eee pc, the x86-64 kwboot is running with my 64bit Manjaro os on my newer notebook.
So serial console is running.

heiko
Re: Problem booting Debian-4.9.0-mvebu-tld-12 with 2 hdd's
August 22, 2017 04:03PM
heiko,

I'll working on the new scan script. Will post it soon in a couple days.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Problem booting Debian-4.9.0-mvebu-tld-12 with 2 hdd's
August 25, 2017 01:19AM
heiko,

I'm going to post new instruction for the NAS326 installation.

Here is what you can do to help verifying the new envs. These have been tested on my system with one HDD and one USB drive attached.

1. Make surre that only one of theHDD has the rootfs on it, and it is labeled as rootfs. Just a reminder here, you have done it already while creating the roots on HDD.

Basically, you can have as many HDD drives and USB drives plugged in as you want, as long as there is only on disk that has the system installed in it.

2. Power up, intererrupt serial console, and execute the followiing commands to set envs (copy/paste each line to the prompt):

setenv sata_init 'mw.l f1018100 20420000; mw.l f1018140 003ca800; sleep 3; scsi init'
setenv usb_init 'mw.l f1018100 20420000; mw.l f1018140 003E8800; sleep 3; usb start'
setenv dtb_file '/boot/dts/armada-380-zyxel-nas326.dtb'
setenv disks '0 1 2 3'
setenv devices 'usb scsi'
setenv load_dtb 'echo loading DTB $dtb_file ...; ext2load $bootdev $device $load_dtb_addr $dtb_file'
setenv load_initrd 'echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd'
setenv load_image 'echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/zImage'
setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial'
setenv scan_disk 'echo running scan_disk ...; scan_done=0; setenv scan_usb "run usb_init";  setenv scan_scsi "run sata_init"; 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 ext2load $dev $disknum:1 $load_image_addr /boot/zImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done'
setenv bootcmd_exec 'run scan_disk; echo Booting from $bootdev $device ...; setenv fdt_skip_update yes; if run load_image; then if run load_dtb; then if run load_initrd; then run set_bootargs; bootz $load_image_addr $load_initrd_addr $load_dtb_addr; fi; fi; fi'
setenv bootcmd_custom 'if run bootcmd_exec; then; else if run bootcmd_stock_1; then; else run bootcmd_stock_2; reset; fi; fi'

And then list the envs, and boot.

printenv
boot

Please post the entire serial console log here.

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 08/25/2017 01:23AM by bodhi.
Re: Problem booting Debian-4.9.0-mvebu-tld-12 with 2 hdd's
August 30, 2017 02:07PM
hello bodhi,


I will try it on weekend and post the results.

heiko
Re: Problem booting Debian-4.9.0-mvebu-tld-12 with 2 hdd's
September 03, 2017 02:39PM
Hello bodhi,

OK some problems.

After I boot with serial console
serenv brings error -/bin/sh: setenv: not found
fw_setenv is working I'm not sure if this is OK, but I was able with fw_ in front of setenv to set the parameters from your post.

Then I boot the system and I have following problems

The system every time boots now (it doesn't matter if one hdd is in or two) in the original zyxel os.

I attached the boot messages I'm not an expert so please check where the problem is.

Thanks heiko



Edited 1 time(s). Last edit at 09/03/2017 03:36PM by heiko.
Attachments:
open | download - boot (41.4 KB)
open | download - fw_printenv_1 (6.7 KB)
open | download - printenv (231 bytes)
Re: Problem booting Debian-4.9.0-mvebu-tld-12 with 2 hdd's
September 03, 2017 06:43PM
heiko,

> OK some problems.
>
> After I boot with serial console
> serenv brings error -/bin/sh: setenv: not found

You've used the wrong tool to connect serial console, so you did not see the count down!

And the setenv commands are for u-boot console. fw_setenv command is for Linux shell.

------

This is the right way. Using the latest kwboot binary that I uploaded.
./kwboot -t -B 115200 /dev/ttyUSB3 -d

When you see this boot activity:
Sending debug message. Please reboot the target...|
[Type Ctrl-\ + c to quit]
M - 1.73
Booting from NAND flash

General initialization - Version: 1.0.0
Detected Device ID 6810
High speed PHY - Version: 2.0

Init RD NAS topology board SerDes lanes topology details:
 | Lane #  | Speed |  Type       |
 --------------------------------
 |   0    |  06   |  SATA0	|
 |   1    |  05   |  USB3 HOST0	|
 |   2    |  06   |  SATA1	|
 |   5    |  05   |  USB3 HOST1	|
 --------------------------------
High speed PHY - Ended Successfully
DDR3 Training Sequence - Ver TIP-1.26.0
mvSysEnvGetTopologyUpdateInfo: TWSI Read failed
DDR3 Training Sequence - Switching XBAR Window to FastPath Window 
DDR3 Training Sequence - Ended Successfully
Not detected suspend to RAM indication
BootROM: Image checksum verification PASSED

 __   __                      _ _
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ V /  __/ | |
|_|  |_|\__,_|_|    \_/ \___|_|_|
         _   _     ____              _
        | | | |   | __ )  ___   ___ | |_ 
        | | | |___|  _ \ / _ \ / _ \| __| 
        | |_| |___| |_) | (_) | (_) | |_ 
         \___/    |____/ \___/ \___/ \__| 
 ** LOADER **


U-Boot 2013.01-svn48797 (Jan 18 2016 - 03:10:12) Marvell version: 2014_T3.0p6

Board: RD-NAS-88F6820-DDR3
SoC:   MV88F6810 Rev A0
       running 1 CPUs
CPU:   ARM Cortex A9 MPCore (Rev 1) LE
       CPU 0
       CPU    @ 1332 [MHz]
       L2     @ 666 [MHz]
       TClock @ 200 [MHz]
       DDR    @ 666 [MHz]
       DDR 32 Bit Width, FastPath Memory Access, DLB Enabled, ECC Disabled
DRAM:  512 MiB

Map:   Code:			0x1fed0000:0x1ff95e28
       BSS:			0x1ffef2b4
       Stack:			0x1f9cff20
       Heap:			0x1f9d0000:0x1fed0000
       U-Boot Environment:	0x00200000:0x00280000 (NAND)

NAND:  256 MiB
MMC:   mv_sdh: 0
*** Booting kernel from kernel 1 @0x00000000; run bootcmd_custom;  ***
USB2.0 0: Host Mode
USB3.0 0: Host Mode
USB3.0 1: Host Mode
Board configuration detected:
Net:   
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   RGMII   |     0x01     |
egiga0 [PRIME]
Hit any key to stop autoboot:  0

Interrupt countdown and enter all the setenv commands.

setenv sata_init 'mw.l f1018100 20420000; mw.l f1018140 003ca800; sleep 3; scsi init'
setenv usb_init 'mw.l f1018100 20420000; mw.l f1018140 003E8800; sleep 3; usb start'
setenv dtb_file '/boot/dts/armada-380-zyxel-nas326.dtb'
setenv disks '0 1 2 3'
setenv devices 'usb scsi'
setenv load_dtb 'echo loading DTB $dtb_file ...; ext2load $bootdev $device $load_dtb_addr $dtb_file'
setenv load_initrd 'echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd'
setenv load_image 'echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/zImage'
setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial'
setenv scan_disk 'echo running scan_disk ...; scan_done=0; setenv scan_usb "run usb_init";  setenv scan_scsi "run sata_init"; 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 ext2load $dev $disknum:1 $load_image_addr /boot/zImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done'
setenv bootcmd_exec 'run scan_disk; echo Booting from $bootdev $device ...; setenv fdt_skip_update yes; if run load_image; then if run load_dtb; then if run load_initrd; then run set_bootargs; bootz $load_image_addr $load_initrd_addr $load_dtb_addr; fi; fi; fi'
setenv bootcmd_custom 'if run bootcmd_exec; then; else if run bootcmd_stock_1; then; else run bootcmd_stock_2; reset; fi; fi'

And then before running boot, print out the evns

printenv
boot

If it does not boot into the HDD rootfs, we'll look at the serial console log and figure out.

Please post the entire serial console log (from kwboot command to the last thing you see in the termnal) here in code tags (don't attach files). It is much easier to see everything and troubleshoot here in if it is in code tags.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Problem booting Debian-4.9.0-mvebu-tld-12 with 2 hdd's
September 04, 2017 11:42AM
hello bodhi

./kwboot -t -B 115200 /dev/ttyUSB3 -d

bring error

sage: kwboot -b <image> [ -p ] [ -t ] [-B <baud> ] <TTY>

  -b <image>: boot <image>
  -p: patch <image> to type 0x69 (uart boot)

  -t: mini terminal

  -B <baud>: set baud rate

without -d it works

I dont see the countdown mayby I'm to fast but I can Interrupt
I can set all setenv without a error
then I boot but system boot in zyxcel os

the serial console log below

Marvell>> 
Marvell>> printenv
CASset=max
CONTRY_TYPE=FF
FEATURE_BIT=00
MALLOC_len=5
MODEL_ID=B303
MPmode=SMP
PRODUCT_NAME=STG-328
VENDOR_NAME=MitraStar Technology Corp.
autoload=no
baudrate=115200
boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxe net_img net_scr
bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=armada-nand:2m(u-boot),2m(env),2m(config),15m(kernel1),110m(rootfs1),15m(kernel2),-(rootfs2) earlyprintk=serial
bootargs_dflt=$console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel
bootargs_end=:10.4.50.254:255.255.255.0:Armada38x:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=nand read 0x2000000 0x08700000 0xF00000 && bootz 0x2000000
bootcmd_auto=stage_boot $boot_order
bootcmd_custom=if run bootcmd_exec; then; else if run bootcmd_stock_1; then; else run bootcmd_stock_2; reset; fi; fi
bootcmd_custom_sata=if run sata_bootcmd; then; else if run bootcmd_stock_1; then; else run bootcmd_stock_2; reset; fi; fi
bootcmd_exec=run scan_disk; echo Booting from $bootdev $device ...; setenv fdt_skip_update yes; if run load_image; then if run load_dtb; then if run load_initrd; then run set_bootargs; bootz $load_image_addr $load_initrd_addr $load_dtb_addr; fi; fi; fi
bootcmd_fdt=tftpboot 0x2000000 $image_name;tftpboot $fdtaddr $fdtfile;setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_boot=tftpboot 0x2000000 $image_name; setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_edit=tftpboot $fdtaddr $fdtfile; fdt addr $fdtaddr; setenv bootcmd $bootcmd_fdt_boot
bootcmd_lgcy=tftpboot 0x2000000 $image_name; setenv bootargs $bootargs_dflt; bootm 0x2000000;
bootcmd_stock_1=run set_bootargs_stock; echo Booting from NAND kernel 1 ...; nand read 0x2000000 0x00E00000 0xF00000 && bootz 0x2000000
bootcmd_stock_2=run set_bootargs_stock; echo Booting from NAND kernel 2 ...; nand read 0x2000000 0x08700000 0xF00000 && bootz 0x2000000
bootdelay=3
cacheShare=no
change_boot_part=0
console=console=ttyS0,115200
core_checksum_1=e9b3248e8c69ec9ef52a8698d0835aae
core_checksum_2=2773b03df8b32c243f8b84dcefa79efb
curr_bootfrom=2
device_partition=0:1
devices=usb scsi
disaMvPnp=no
disks=0 1 2 3
dtb_file=/boot/dts/armada-380-zyxel-nas326.dtb
eeeEnable=no
enaClockGating=no
enaCpuStream=no
enaFPU=yes
enaMonExt=no
enaWrAllo=no
eth1addr=00:50:43:38:32:25
eth1mtu=1500
eth2addr=00:50:43:38:a6:25
eth2mtu=1500
eth3addr=00:50:43:32:a6:38
eth3mtu=1500
ethact=egiga0
ethaddr=58:8B:F3:DB:DD:3E
ethmtu=1500
ethprime=egiga0
fdt_addr=2040000
fdt_skip_update=yes
fdtaddr=0x1000000
fdtfile=armada-38x-modular.dtb
filesize=0x6e8f80
fwversion_1=V5.21(AAZF.0)
fwversion_2=V5.21(AAZF.1)
ide_path=/
image_name=uImage
img_checksum_1=db4be927b09d7ea9a1284d2e6f330db5
img_checksum_2=5356a1c083dfd6bc8c74bfd231aa15a6
initrd_name=uInitrd
ipaddr=10.4.50.170
kernel_addr=${kernel_addr_1}
kernel_addr_1=0x00000000; run bootcmd_custom; 
kernel_addr_2=0x08700000
kernel_addr_r=2080000
kernel_mtd_1=3
kernel_mtd_2=5
lcd0_enable=0
lcd0_params=640x480-16@60
lcd_panel=0
load_dtb=echo loading DTB $dtb_file ...; ext2load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1000000
load_image=echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/zImage
load_image_addr=0x02000000
load_initrd=echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x2900000
loadaddr=0x02000000
loads_echo=0
modelid_1=B303
modelid_2=B303
mtdids=nand0=armada-nand
mtdparts=mtdparts=armada-nand:2m(u-boot),2m(env),2m(config),15m(kernel1),110m(rootfs1),15m(kernel2),-(rootfs2)
mvNetConfig=mv_net_config=4,(00:50:43:11:11:11,0:1:2:3),mtu=1500
mv_pon_addr=00:50:43:25:a6:38
nandEcc=nfcConfig=4bitecc
netbsd_en=no
netmask=255.255.255.0
netretry=no
next_bootfrom=2
pcieTune=no
pexMode=RC
pxe_files_load=:default.arm-armadaxp-db:default.arm-armadaxp:default.arm
pxefile_addr_r=3100000
ramdisk_addr_r=2880000
revision_1=50967
revision_2=50984
romfile_checksum_1=4EE9
romfile_checksum_2=A762
rootpath=/srv/nfs/
sata_bootcmd=echo Booting from SATA ...; setenv fdt_skip_update yes; run sata_init; ext2load scsi 0:1 $load_image_addr /boot/zImage; ext2load scsi 0:1 $load_dtb_addr /boot/dts/armada-380-zyxel-nas326.dtb; ext2load scsi 0:1 $load_initrd_addr /boot/uInitrd; run sata_set_bootargs; bootz $load_image_addr $load_initrd_addr $load_dtb_addr
sata_delay_reset=0
sata_dma_mode=yes
sata_init=mw.l f1018100 20420000; mw.l f1018140 003ca800; sleep 3; scsi init
sata_set_bootargs=setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "run usb_init";  setenv scan_scsi "run sata_init"; 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 ext2load $dev $disknum:1 $load_image_addr /boot/zImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
script_addr_r=3000000
script_name=boot.scr
scsidevs=0
serial_number=S150Y46042395
serverip=10.4.50.38
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial
set_bootargs_stock=setenv bootargs "console=ttyS0,115200 ubi.mtd=4,2048 rootfstype=ubifs root=ubi0:rootfs1 rw rootdelay=2"
standalone=fsload 0x2000000 $image_name;setenv bootargs $console $nandEcc $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm 0x2000000;
stderr=serial
stdin=serial
stdout=serial
sysimg_mtd_1=4
sysimg_mtd_2=6
usb0Mode=host
usbActive=0
usbType=2
usb_bootcmd=echo Booting from USB ...; setenv fdt_skip_update yes; run usb_init; ext2load usb 0:1 $load_image_addr /boot/zImage; ext2load usb 0:1 $load_dtb_addr /boot/dts/armada-380-zyxel-nas326.dtb; ext2load usb 0:1 $load_initrd_addr /boot/uInitrd; run usb_set_bootargs; bootz $load_image_addr $load_initrd_addr $load_dtb_addr
usb_init=mw.l f1018100 20420000; mw.l f1018140 003E8800; sleep 3; usb start
usb_set_bootargs=setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81
zld_checksum_1=b44f1fe16e53092068270b337dee223c
zld_checksum_2=102d2dc16f397df0dddc4f1ad6380e52

Environment size: 7079/524284 bytes
Marvell>> ls
Scanning JFFS2 FS:  done.
Marvell>> setenv sata_init 'mw.l f1018100 20420000; mw.l f1018140 003ca800; sleep 3; scsi init'
Marvell>> setenv usb_init 'mw.l f1018100 20420000; mw.l f1018140 003E8800; sleep 3; usb start'
Marvell>> setenv dtb_file '/boot/dts/armada-380-zyxel-nas326.dtb'
Marvell>> setenv disks '0 1 2 3'
Marvell>> setenv devices 'usb scsi'
Marvell>> setenv load_dtb 'echo loading DTB $dtb_file ...; ext2load $bootdev $device $load_dtb_addr $dtb_file'
Marvell>> setenv load_initrd 'echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd'
Marvell>> setenv load_image 'echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/zImage'
Marvell>> setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial'
Marvell>> setenv scan_disk 'echo running scan_disk ...; scan_done=0; setenv scan_usb "run usb_init";  setenv scan_scsi "run sata_init"; 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 ext2load $dev $disknum:1 $load_image_addr /boot/zImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done'
Marvell>> setenv bootcmd_exec 'run scan_disk; echo Booting from $bootdev $device ...; setenv fdt_skip_update yes; if run load_image; then if run load_dtb; then if run load_initrd; then run set_bootargs; bootz $load_image_addr $load_initrd_addr $load_dtb_addr; fi; fi; fi'
Marvell>> setenv bootcmd_custom 'if run bootcmd_exec; then; else if run bootcmd_stock_1; then; else run bootcmd_stock_2; reset; fi; fi'
Marvell>> printenv
CASset=max
CONTRY_TYPE=FF
FEATURE_BIT=00
MALLOC_len=5
MODEL_ID=B303
MPmode=SMP
PRODUCT_NAME=STG-328
VENDOR_NAME=MitraStar Technology Corp.
autoload=no
baudrate=115200
boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxe net_img net_scr
bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=armada-nand:2m(u-boot),2m(env),2m(config),15m(kernel1),110m(rootfs1),15m(kernel2),-(rootfs2) earlyprintk=serial
bootargs_dflt=$console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel
bootargs_end=:10.4.50.254:255.255.255.0:Armada38x:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=nand read 0x2000000 0x08700000 0xF00000 && bootz 0x2000000
bootcmd_auto=stage_boot $boot_order
bootcmd_custom=if run bootcmd_exec; then; else if run bootcmd_stock_1; then; else run bootcmd_stock_2; reset; fi; fi
bootcmd_custom_sata=if run sata_bootcmd; then; else if run bootcmd_stock_1; then; else run bootcmd_stock_2; reset; fi; fi
bootcmd_exec=run scan_disk; echo Booting from $bootdev $device ...; setenv fdt_skip_update yes; if run load_image; then if run load_dtb; then if run load_initrd; then run set_bootargs; bootz $load_image_addr $load_initrd_addr $load_dtb_addr; fi; fi; fi
bootcmd_fdt=tftpboot 0x2000000 $image_name;tftpboot $fdtaddr $fdtfile;setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_boot=tftpboot 0x2000000 $image_name; setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_edit=tftpboot $fdtaddr $fdtfile; fdt addr $fdtaddr; setenv bootcmd $bootcmd_fdt_boot
bootcmd_lgcy=tftpboot 0x2000000 $image_name; setenv bootargs $bootargs_dflt; bootm 0x2000000;
bootcmd_stock_1=run set_bootargs_stock; echo Booting from NAND kernel 1 ...; nand read 0x2000000 0x00E00000 0xF00000 && bootz 0x2000000
bootcmd_stock_2=run set_bootargs_stock; echo Booting from NAND kernel 2 ...; nand read 0x2000000 0x08700000 0xF00000 && bootz 0x2000000
bootdelay=3
cacheShare=no
change_boot_part=0
console=console=ttyS0,115200
core_checksum_1=e9b3248e8c69ec9ef52a8698d0835aae
core_checksum_2=2773b03df8b32c243f8b84dcefa79efb
curr_bootfrom=2
device_partition=0:1
devices=usb scsi
disaMvPnp=no
disks=0 1 2 3
dtb_file=/boot/dts/armada-380-zyxel-nas326.dtb
eeeEnable=no
enaClockGating=no
enaCpuStream=no
enaFPU=yes
enaMonExt=no
enaWrAllo=no
eth1addr=00:50:43:38:32:25
eth1mtu=1500
eth2addr=00:50:43:38:a6:25
eth2mtu=1500
eth3addr=00:50:43:32:a6:38
eth3mtu=1500
ethact=egiga0
ethaddr=58:8B:F3:DB:DD:3E
ethmtu=1500
ethprime=egiga0
fdt_addr=2040000
fdt_skip_update=yes
fdtaddr=0x1000000
fdtfile=armada-38x-modular.dtb
filesize=0x6e8f80
fwversion_1=V5.21(AAZF.0)
fwversion_2=V5.21(AAZF.1)
ide_path=/
image_name=uImage
img_checksum_1=db4be927b09d7ea9a1284d2e6f330db5
img_checksum_2=5356a1c083dfd6bc8c74bfd231aa15a6
initrd_name=uInitrd
ipaddr=10.4.50.170
kernel_addr=${kernel_addr_1}
kernel_addr_1=0x00000000; run bootcmd_custom; 
kernel_addr_2=0x08700000
kernel_addr_r=2080000
kernel_mtd_1=3
kernel_mtd_2=5
lcd0_enable=0
lcd0_params=640x480-16@60
lcd_panel=0
load_dtb=echo loading DTB $dtb_file ...; ext2load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1000000
load_image=echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/zImage
load_image_addr=0x02000000
load_initrd=echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x2900000
loadaddr=0x02000000
loads_echo=0
modelid_1=B303
modelid_2=B303
mtddevname=u-boot
mtddevnum=0
mtdids=nand0=armada-nand
mtdparts=mtdparts=armada-nand:2m(u-boot),2m(env),2m(config),15m(kernel1),110m(rootfs1),15m(kernel2),-(rootfs2)
mvNetConfig=mv_net_config=4,(00:50:43:11:11:11,0:1:2:3),mtu=1500
mv_pon_addr=00:50:43:25:a6:38
nandEcc=nfcConfig=4bitecc
netbsd_en=no
netmask=255.255.255.0
netretry=no
next_bootfrom=2
partition=nand0,0
pcieTune=no
pexMode=RC
pxe_files_load=:default.arm-armadaxp-db:default.arm-armadaxp:default.arm
pxefile_addr_r=3100000
ramdisk_addr_r=2880000
revision_1=50967
revision_2=50984
romfile_checksum_1=4EE9
romfile_checksum_2=A762
rootpath=/srv/nfs/
sata_bootcmd=echo Booting from SATA ...; setenv fdt_skip_update yes; run sata_init; ext2load scsi 0:1 $load_image_addr /boot/zImage; ext2load scsi 0:1 $load_dtb_addr /boot/dts/armada-380-zyxel-nas326.dtb; ext2load scsi 0:1 $load_initrd_addr /boot/uInitrd; run sata_set_bootargs; bootz $load_image_addr $load_initrd_addr $load_dtb_addr
sata_delay_reset=0
sata_dma_mode=yes
sata_init=mw.l f1018100 20420000; mw.l f1018140 003ca800; sleep 3; scsi init
sata_set_bootargs=setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "run usb_init";  setenv scan_scsi "run sata_init"; 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 ext2load $dev $disknum:1 $load_image_addr /boot/zImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
script_addr_r=3000000
script_name=boot.scr
scsidevs=0
serial_number=S150Y46042395
serverip=10.4.50.38
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial
set_bootargs_stock=setenv bootargs "console=ttyS0,115200 ubi.mtd=4,2048 rootfstype=ubifs root=ubi0:rootfs1 rw rootdelay=2"
standalone=fsload 0x2000000 $image_name;setenv bootargs $console $nandEcc $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm 0x2000000;
stderr=serial
stdin=serial
stdout=serial
sysimg_mtd_1=4
sysimg_mtd_2=6
usb0Mode=host
usbActive=0
usbType=2
usb_bootcmd=echo Booting from USB ...; setenv fdt_skip_update yes; run usb_init; ext2load usb 0:1 $load_image_addr /boot/zImage; ext2load usb 0:1 $load_dtb_addr /boot/dts/armada-380-zyxel-nas326.dtb; ext2load usb 0:1 $load_initrd_addr /boot/uInitrd; run usb_set_bootargs; bootz $load_image_addr $load_initrd_addr $load_dtb_addr
usb_init=mw.l f1018100 20420000; mw.l f1018140 003E8800; sleep 3; usb start
usb_set_bootargs=setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81
zld_checksum_1=b44f1fe16e53092068270b337dee223c
zld_checksum_2=102d2dc16f397df0dddc4f1ad6380e52

Environment size: 7133/524284 bytes
Marvell>> boot

NAND read: device 0 offset 0x8700000, size 0xf00000
 15728640 bytes read: OK
*  kernel: cmdline image address = 0x02000000

Starting kernel ...

Power on HDD1 ...
Power on HDD2 ...
Power on USB ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x0
Linux version 3.10.39 (root@SDD2SVR2) (gcc version 4.8.5 20150209 (prerelease) (crosstool-NG 1.21.0) ) #1 Fri May 26 16:47:54 CST 2017
CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: Marvell Armada 380/381/382/385/388 (Device Tree), model: Marvell Armada 380 STG-328
bootconsole [earlycon0] enabled
Memory policy: ECC disabled, Data cache writealloc
CPU: All CPU(s) started in SVC mode.
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=armada-nand:2m(u-boot),2m(env),2m(config),15m(kernel1),110m(rootfs1),15m(kernel2),-(rootfs2) earlyprintk=serial
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 512MB = 512MB total
Memory: 504456k/504456k available, 19832k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xe0800000 - 0xfff00000   ( 503 MB)
    lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .text : 0xc0008000 - 0xc081c8a8   (8275 kB)
      .init : 0xc081d000 - 0xc0e3cd5c   (6272 kB)
      .data : 0xc0e3e000 - 0xc0e950e0   ( 349 kB)
       .bss : 0xc0e950e0 - 0xc0ee2c70   ( 311 kB)
NR_IRQS:16 nr_irqs:16 16

  LSP version: linux-3.10.39-2014_T3.0p7

sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 171798ms
L310 cache controller enabled
l2x0: 16 ways, CACHE_ID 0x410054c9, AUX_CTRL 0x16070000, Cache size: 1048576 B
Console: colour dummy device 80x30
Calibrating delay loop... 1332.01 BogoMIPS (lpj=6660096)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0xc063c590 - 0xc063c5e8
mvebu-pmsu: Initializing Power Management Service Unit
Initializing CPU Reset module
devtmpfs: initialized
mvebu-soc-id: MVEBU SoC ID=0x6810, Rev=0x4
xor: measuring software checksum speed
   arm4regs  :  2368.000 MB/sec
   8regs     :  1458.800 MB/sec
   32regs    :  1408.000 MB/sec
xor: using function: arm4regs (2368.000 MB/sec)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
irq: Cannot allocate irq_descs @ IRQ194, assuming pre-allocated
irq: Cannot allocate irq_descs @ IRQ226, assuming pre-allocated
bio: create slab <bio-0> at 0
raid6: int32x1    203 MB/s
raid6: int32x2    270 MB/s
raid6: int32x4    283 MB/s
raid6: int32x8    323 MB/s
raid6: using algorithm int32x8 (323 MB/s)
raid6: using intx1 recovery algorithm
gpio-ms: gpio_dev = fe00000 (M: 254, m: 0)
[kernel] gpio_request for GPIO[24] failed with error number: -517
[kernel] gpio_request for GPIO[31] failed with error number: -517
[kernel] gpio_request for GPIO[44] failed with error number: -517
mvebu-pcie pcie-controller.3: PCIe0.0: link down
mvebu-pcie pcie-controller.3: PCIe1.0: link down
mvebu-pcie pcie-controller.3: PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe8000000]
pci_bus 0000:00: root bus resource [bus 00-ff]
PCI: bus0: Fast back to back transfers disabled
pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
PCI: bus1: Fast back to back transfers enabled
PCI: bus2: Fast back to back transfers enabled
pci 0000:00:01.0: PCI bridge to [bus 01]
pci 0000:00:02.0: PCI bridge to [bus 02]
PCI: enabling device 0000:00:01.0 (0140 -> 0143)
PCI: enabling device 0000:00:02.0 (0140 -> 0143)
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[kernel] gpio_request for GPIO[46] failed with error number: -517
[kernel] gpio_request for GPIO[49] failed with error number: -517
[kernel] gpio_request for GPIO[39] failed with error number: -517
PTP clock support registered
cfg80211: Calling CRDA to update world regulatory domain
Switching to clocksource armada_370_xp_clocksource
NET: Registered protocol family 2
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP: reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
NFS: Registering the id_resolver key type
Key type id_resolver registered
[kernel] gpio_request for GPIO[46] failed with error number: -517
Key type id_legacy registered
[kernel] gpio_request for GPIO[49] failed with error number: -517
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[kernel] gpio_request for GPIO[39] failed with error number: -517
fuse init (API version 7.22)
bio: create slab <bio-1> at 1
Btrfs loaded
msgmni has been set to 985
async_tx: api initialized (async)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
****** turn off all LEDs that turned on in u-boot ******
****** blink SYS LED ******
mv_xor f1060800.xor: Marvell shared XOR driver
mv_xor f1060800.xor: Marvell XOR: ( xor cpy intr )
mv_xor f1060800.xor: freeing 1 in use descriptors!
mv_xor f1060800.xor: Marvell XOR: ( crc32c )
mv_xor f1060900.xor: Marvell shared XOR driver
mv_xor f1060900.xor: Marvell XOR: ( xor cpy intr )
mv_xor f1060900.xor: freeing 1 in use descriptors!
mv_xor f1060900.xor: Marvell XOR: ( crc32c )
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 44) is a 16550A
console [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
brd: module loaded
loop: module loaded
ahci_mv f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
ahci_mv f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
scsi0 : ahci_mv_platform
scsi1 : ahci_mv_platform
ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 58
ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 58
armada-nand f10d0000.nand: Initialize HAL based NFC in 8bit mode with DMA Disabled using BCH 4bit ECC
NAND device: Manufacturer ID: 0xc2, Chip ID: 0xda (Macronix NAND 256MiB 3,3V 8-bit), 256MiB, page size: 2048, OOB size: 64
Bad block table found at page 131008, version 0x01
Bad block table found at page 130944, version 0x01
7 cmdlinepart partitions found on MTD device armada-nand
Creating 7 MTD partitions on "armada-nand":
0x000000000000-0x000000200000 : "u-boot"
0x000000200000-0x000000400000 : "env"
0x000000400000-0x000000600000 : "config"
0x000000600000-0x000001500000 : "kernel1"
0x000001500000-0x000008300000 : "rootfs1"
0x000008300000-0x000009200000 : "kernel2"
0x000009200000-0x000010000000 : "rootfs2"
m25p80 spi0.0: unrecognized JEDEC id ffffff
SoC: model = 0x6810, revision = 0x4
  o 3 Giga ports supported
  o SKB recycle supported for SWF (Disabled)
  o NETA acceleration mode 1
  o RX Queue support: 8 Queues * 256 Descriptors
  o TX Queue support: 8 Queues * 532 Descriptors
  o GSO supported
  o GRO supported
  o Receive checksum offload supported
  o Transmit checksum offload supported
  o Driver ERROR statistics enabled
  o Driver INFO statistics enabled
  o Driver DEBUG statistics enabled

port #0: is_sgmii=0, is_rgmii=1, phy_addr=1
  o Loading network interface(s) for port #0: cpu_mask=0x1, tx_csum_limit=9800

  o Port 0 is connected to Linux netdevice
    o eth0, ifindex = 2, GbE port = 0
	giga p=0: mtu=1500, mac=00:50:43:02:02:01 (platform)

libphy: orion_mdio_bus: probed
e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
e1000: Copyright (c) 1999-2006 Intel Corporation.
e1000e: Intel(R) PRO/1000 Network Driver - 2.3.2-k
e1000e: Copyright(c) 1999 - 2013 Intel Corporation.
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
ehci-orion: EHCI orion driver
orion-ehci f1058000.usb: EHCI Host Controller
orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
orion-ehci f1058000.usb: irq 50, io mem 0xf1058000
orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: EHCI Host Controller
usb usb1: Manufacturer: Linux 3.10.39 ehci_hcd
usb usb1: SerialNumber: f1058000.usb
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
xhci-hcd f10f0000.usb3: xHCI Host Controller
xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
xhci-hcd f10f0000.usb3: irq 48, io mem 0xf10f0000
usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: xHCI Host Controller
usb usb2: Manufacturer: Linux 3.10.39 xhci-hcd
usb usb2: SerialNumber: f10f0000.usb3
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
xhci-hcd f10f0000.usb3: xHCI Host Controller
xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb3: Product: xHCI Host Controller
usb usb3: Manufacturer: Linux 3.10.39 xhci-hcd
usb usb3: SerialNumber: f10f0000.usb3
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 1 port detected
xhci-hcd f10f8000.usb3: xHCI Host Controller
xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
xhci-hcd f10f8000.usb3: irq 49, io mem 0xf10f8000
usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb4: Product: xHCI Host Controller
usb usb4: Manufacturer: Linux 3.10.39 xhci-hcd
usb usb4: SerialNumber: f10f8000.usb3
ata2: SATA link down (SStatus 0 SControl 300)
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 1 port detected
xhci-hcd f10f8000.usb3: xHCI Host Controller
xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb5: Product: xHCI Host Controller
usb usb5: Manufacturer: Linux 3.10.39 xhci-hcd
usb usb5: SerialNumber: f10f8000.usb3
hub 5-0:1.0: USB hub found
hub 5-0:1.0: 1 port detected
usbcore: registered new interface driver usblp
usbcore: registered new interface driver usb-storage
mousedev: PS/2 mouse device common for all mice
mvebu-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
i2c /dev entries driver
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
device-mapper: ioctl: 4.24.0-ioctl (2013-01-15) initialised: dm-devel@redhat.com
dm_crypt using the OCF package.
cpuidle: using governor ladder
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
mmc0: SDHCI controller on f10d8000.sdhci [f10d8000.sdhci] using ADMA
sdhci-pltfm: SDHCI platform and OF driver helper
armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: Total CESA HW channels supported 2
armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: CESA feature: int_coalescing(1)
armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources threshold 0x2, threshold_time 0xff
mvCesaInit: channels=2, session=640, queue=256
armada-cesa-ocf f109d000.crypto: cesa_ocf_probe: CESA driver operate in ocf(0) mode
cesadev_init(c0836b3c)
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
TCP: cubic registered
NET: Registered protocol family 10
sit: IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
8021q: 802.1Q VLAN Support v1.8
Key type dns_resolver registered
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
mvebu-rtc f10a3800.rtc: setting system clock to 2017-09-05 01:52:31 UTC (1504576351)
ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata1.00: ATA-8: WDC WD10EARS-00Y5B1, 80.00A80, max UDMA/133
ata1.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
ata1.00: configured for UDMA/133
scsi 0:0:0:0: Direct-Access     ATA      WDC WD10EARS-00Y 80.0 PQ: 0 ANSI: 5
******** sd_probe: turn_off LED_HDD1 ********
******** sd_probe: turn_on LED_HDD1 WHITE********
sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sda: sda1
sd 0:0:0:0: [sda] Attached SCSI disk
Freeing unused kernel memory: 6268K (c081d000 - c0e3c000)
hotplug1110add:[/devices/soc.0/internal-regs.1/f10a8000.sata/ata1/host0/target0:0:0/0:0:0:0/block/sda][sda]Mass Storage device
+ ECHO=/bin/echo
+ RM=/bin/rm
+ IFCONFIG=/sbin/ifconfig
+ IP=/bin/ip
+ MOUNT=/bin/mount
+ MKDIR=/bin/mkdir
+ RMDIR=/bin/rmdir
+ CAT=/bin/cat
+ MDEV=/sbin/mdev
+ SETTING_PATH=/etc/settings
+ [ -f /etc/settings/firmware_info_path ]
+ cat /etc/settings/firmware_info_path
+ BASE_PATH=/firmware
+ BASE_PATH=/firmware
+ NAND_PATH=/firmware/mnt/nand
+ DISK_PATH=/firmware/mnt/sysdisk
+ INFO_PATH=/firmware/mnt/info
+ MRD_MAC=/firmware/sbin/mrd_mac
+ INFO_PRINTENV=/firmware/sbin/info_printenv
+ INFO_SETENV=/firmware/sbin/info_setenv
+ IMG_PATH=/ram_bin
+ USB_PATH=/mnt/partnerkey
+ awk -F= {print $2}
+ /firmware/sbin/info_printenv curr_bootfrom
+ CURR_BOOTFROM=2
+ awk -F= {print $2}
+ /firmware/sbin/info_printenv next_bootfrom
+ NEXT_BOOTFROM=2
+ [ 2 != 2 ]
+ /bin/echo -e \033[031m*** Stage 1: Setup system and device drivers ***\033[0m
*** Stage 1: Setup system and device drivers ***
+ setLED SYS WHITE BLINK
Fail to open gpio device
+ /bin/mount -t proc /proc /proc
+ /bin/mount -t sysfs /sys /sys
+ /bin/mount -t usbfs none /proc/bus/usb
mount: mount point /proc/bus/usb does not exist
+ /bin/mount -t devpts devpts /dev/pts
+ awk {print $1}
+ grep gpio
+ cat /proc/devices
+ mknod -m 644 /dev/gpio c 254 0
+ awk -F= {print $2}
+ /firmware/sbin/info_printenv fwversion_2
+ FWVERSION=V5.21(AAZF.1)
+ awk -F= {print $2}
+ /firmware/sbin/info_printenv revision_2
+ REVISION=50984
+ awk -F= {print $2}
+ /firmware/sbin/info_printenv modelid_2
+ MODELID=B303
+ awk -F= {print $2}
+ /firmware/sbin/info_printenv core_checksum_2
+ CORE_CHECKSUM=2773b03df8b32c243f8b84dcefa79efb
+ awk -F= {print $2}
+ /firmware/sbin/info_printenv zld_checksum_2
+ ZLD_CHECKSUM=102d2dc16f397df0dddc4f1ad6380e52
+ awk -F= {print $2}
+ /firmware/sbin/info_printenv romfile_checksum_2
+ ROMFILE_CHECKSUM=A762
+ awk -F= {print $2}
+ /firmware/sbin/info_printenv img_checksum_2
+ IMG_CHECKSUM=5356a1c083dfd6bc8c74bfd231aa15a6
+ [ ! -d /firmware/mnt/info ]
+ /bin/mkdir -p /firmware/mnt/info
+ echo V5.21(AAZF.1)
+ echo 50984
+ echo B303
+ echo 2773b03df8b32c243f8b84dcefa79efb
+ echo 102d2dc16f397df0dddc4f1ad6380e52
+ echo A762
+ echo 5356a1c083dfd6bc8c74bfd231aa15a6
+ echo /sbin/mdev
+ /sbin/mdev -s
+ /bin/echo 32769 42768
+ /bin/echo 8192
+ /bin/echo 100
+ /bin/echo 5
+ /bin/echo 10
+ /bin/echo 512 87380 2048000
+ /bin/echo 512 65536 2048000
+ /bin/echo 524288
+ /bin/echo 524288
+ /sbin/ifconfig eth0 down
+ /firmware/sbin/mrd_mac eth0
+ /sbin/ifconfig eeth0: mac address changed
th0 hw ether 58:8B:F3:DB:DD:3E
+ /bin/ip link set dev eth0 name egiga0
+ /sbin/ifconfig egiga0 up
bmPoolId = 0 has unknown buf_size
pool #0: pkt_size=1536, buf_size=1600 - 4096 of 4096 buffers added
egiga0: started
IPv6: ADDRCONF(NETDEV_UP): egiga0: link is not ready
+ /sbin/ifconfig lo add 127.0.0.1 netmask 255.0.0.0
+ /sbin/ifconfig lo up
+ /sbin/ethtool -K egiga0 gso on
+ /sbin/ethtool -s egiga0 advertise 0x2f
Cannot set new settings: Invalid argument
+ /sbin/ethtool -s egiga0 autoneg on
Cannot set new settings: Invalid argument
  not setting autoneg
+ /sbin/rtcAccess show
+ rtc_time1=2017-09-05 01:52:43
+ sleep 1
+ /sbin/rtcAccess show
+ rtc_time2=2017-09-05 01:52:45
+ [ 2017-09-05 01:52:43 = 2017-09-05 01:52:45 ]
+ awk -F- {print $1}
+ echo 2017-09-05 01:52:43
+ year1=2017
+ awk -F- {print $1}
+ echo 2017-09-05 01:52:45
+ year2=2017
+ awk -F- {print $1}
+ /sbin/rtcAccess show
+ year3=2017
+ [ 2017 != 2017 ]
+ /sbin/rtcAccess rtctosys
+ echo 2
+ echo 80
+ /linuxrc
+ . /etc/profile
+ SETTING_PATH=/etc/settings
+ [ -f /etc/settings/firmware_info_path ]
+ cat /etc/settings/firmware_info_path
+ BASE_PATH=/firmware
+ PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/firmware/sbin:/usr/local/zy-pkgs/bin:/firmware/htp
+ export PATH
+ LD_LIBRARY_PATH=/lib:/usr/lib:/usr/lib/private
+ export LD_LIBRARY_PATH
+ ECHO=/bin/echo
+ CAT=/bin/cat
+ RM=/bin/rm
+ MOUNT=/bin/mount
+ UMOUNT=/bin/umount
+ IP=/bin/ip
+ IFCONFIG=/sbin/ifconfig
+ SED=/bin/sed
+ MKDIR=/bin/mkdir
+ RMDIR=/bin/rmdir
+ AWK=/bin/awk
+ MD5SUM=/sbin/md5sum
+ REBOOT=/sbin/reboot
+ BUZZERC=/sbin/buzzerc
+ LN=/bin/ln
+ INSMOD=/sbin/insmod
+ RMMOD=/sbin/rmmod
+ LSMOD=/sbin/lsmod
+ DEPMOD=/sbin/depmod
+ NAND_PATH=/firmware/mnt/nand
+ DISK_PATH=/firmware/mnt/sysdisk
+ INFO_PATH=/firmware/mnt/info
+ HTP_PATH=/firmware/htp
+ IMG_PATH=/ram_bin
+ USB_PATH=/mnt/partnerkey
+ [ -f /etc/settings/config_on_nand_path ]
+ cat /etc/settings/config_on_nand_path
+ CONF_PATH=/etc/zyxel
+ CONFIG_MTD_NUM=2
+ CONFIG_MTD=/dev/mtd2
+ CONFIG_MTD_BLOCK=/dev/mtdblock2
+ GET_MAC_MCU=/sbin/get_mac_mcu.sh
+ WRITE_MAC_MCU=/sbin/write_mac_mcu.sh
+ INFO_PRINTENV=/firmware/sbin/info_printenv
+ INFO_SETENV=/firmware/sbin/info_setenv
+ MRD_MAC=/firmware/sbin/mrd_mac
+ MRD_MODEL=/firmware/sbin/mrd_model
+ NAND_FS_TYPE=ubifs
+ awk -F= {print $2}
+ /firmware/sbin/info_printenv curr_bootfrom
+ CURR_BOOTFROM=2
+ [ 2 = 1 ]
+ IMG_MTD=6
+ NEW_ROOT=
+ SYSINIT_PASSWD=$1$$4eHwTd8s1.UjO3wA36fmX1
+ SYSINIT_PATH=/mnt/sysinit
+ /firmware/sbin/mrd_model -p
+ MODEL_ID=B303
+ RAM_BOOT_ABLE=YES
+ echo 1
+ rescan_lost_scsi_device
+ wc -l
+ ls /sys/class/scsi_host
+ hostNum=2
+ cut -c 5
+ ls /sys/class/scsi_host
+ hostIdLst=0
1
+ hddId=2
+ cat /proc/hdd2_detect
cat: can't open '/proc/hdd2_detect': No such file or directory
+ [  == 1 ]
+ hddId=1
+ cat /proc/hdd1_detect
cat: can't open '/proc/hdd1_detect': No such file or directory
+ [  == 1 ]
+ /bin/echo -e \033[031m*** Stage 2: Prepare the root file system ***\033[0m
*** Stage 2: Prepare the root file system ***
+ /bin/echo -e \033[033mMount system partition...\033[0m
Mount system partition...
+ /bin/mkdir -p /firmware/mnt/nand
+ ls -l /dev/ubi_ctrl
crw-rw----    1 root     root       10,  59 Sep  5 01:52 /dev/ubi_ctrl
+ [ ! -e /dev/ubi_ctrl ]
+ check_and_run_usbkey
+ USB_CHECK_FILE=/mnt/partnerkey/nas3xx_check_file
+ grep sd
+ ls /sys/block/
+ any_usb=sda
+ /bin/echo sda
sda
+ [ -n sda ]
+ /bin/mkdir /mnt/partnerkey
+ /bin/echo checking sda
checking sda
+ grep -c ?
+ grep ^/dev/sda
+ fdisk -l /dev/sda
+ qmark_num=0
+ grep ^/dev/sda
+ fdisk -l /dev/sda
+ partition_num=/dev/sda1  *     2048 1953523711 1953521664 931.5G 83 Linux
+ [ 0 == 4 ]
+ [ /dev/sda1  *     2048 1953523711 1953521664 931.5G 83 Linux ==  ]
+ sed -n 1p
+ awk {print $1}
+ grep ^/dev/sda
+ fdisk -l /dev/sda
+ mnt_point=/dev/sda1
+ /bin/echo Trying to mount /dev/sda1
Trying to mount /dev/sda1
+ /bin/mount -o iocharset=utf8,shortname=mixed /dev/sda1 /mnt/partnerkey
EXT4-fs (sda1): Unrecognized mount option "iocharset=utf8" or missing value
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
       missing codepage or helper program, or other error

       In some cases usefuUBI: attaching mtd6 to ubi6
l info is found in syslog - try
       dmesg | tail or so.
+ grep /mnt/partnerkey
+ /bin/cat /proc/mounts
+ mount_SUC=
+ [  !=  ]
+ /bin/echo Fail to mount /dev/sda1
Fail to mount /dev/sda1
+ /bin/rmdir /mnt/partnerkey
+ ls -l /dev/ubi_ctrl
crw-rw----    1 root     root       10,  59 Sep  5 01:52 /dev/ubi_ctrl
+ ubidetach -d 0
ubidetach: error!: cannot remove ubi0
           error 22 (Invalid argument)
+ ubiattach -m 6 -d 6
UBI: scanning is finished
UBI: attached mtd6 (name "rootfs2", size 110 MiB) to ubi6
UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
UBI: good PEBs: 872, bad PEBs: 8, corrupted PEBs: 0
UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
UBI: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 3452188652
UBI: available PEBs: 32, total reserved PEBs: 840, PEBs reserved for bad PEB handling: 32
UBI: background thread "ubi_bgt6d" started, PID 1338
UBI device number 6, total 872 LEBs (110723072 bytes, 105.6 MiB), available 32 LEBs (4063232 bytes, 3.9 MiB), LEB size 126976 bytes (124.0 KiB)
+ ls -l /dev/ubi6 /dev/ubi6_0 /dev/ubi_ctrl
crw-rw----    1 root     root      249,   0 Sep  5 01:52 /dev/ubi6
crw-rw----    1 root     root      249,   1 Sep  5 01:52 /dev/ubi6_0
crw-rw----    1 root     root       10,  59 Sep  5 01:52 /dev/ubi_ctrl
+ [ ! -e /dev/ubi6 ]
+ ls -l /dev/ubi6 /dev/ubi6_0 /dev/ubi_ctrl
crw-rw----    1 root     root      249,   0 Sep  5 01:52 /dev/ubi6
crw-rw----    1 root     root      249,   1 Sep  5 01:52 UBIFS: mounted UBI device 6, volume 0, name "ubi_rootfs2", R/O mode
/dev/ubi6_0
crwUBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
-rw----    1 rooUBIFS: FS size: 100691968 bytes (96 MiB, 793 LEBs), journal size 5079040 bytes (4 MiB, 40 LEBs)
t     root      UBIFS: reserved for root: 4755930 bytes (4644 KiB)
 10,  59 Sep  5 UBIFS: media format: w4/r0 (latest is w4/r0), UUID BC7D1F8A-CB46-4006-85B8-29548DDE9947, small LPT model
01:52 /dev/ubi_ctrl
+ mount -t ubifs -o ro ubi6:ubi_rootfs2 /firmware/mnt/nand
+ [ ! -e /firmware/mnt/nand/sysdisk.img.gz ]
+ cat /proc/htp_pin
cat: can't open '/proc/htp_pin': No such file or directory
+ HTP_PIN=
+ [ == 1 ]
sh: 1: unknown operand
+ /bin/storage_asm_mntfw_swap.sh /firmware/mnt/sysdisk
can not found fw raid uuid
can not found swap raid uuid
/sbin/mdadm --grow /dev/md0 --raid-devices=2 --force
mdadm: /dev/md0 is not an active md array - aborting
/sbin/mdadm --grow /dev/md1 --raid-devices=2 --force
mdadm: /dev/md1 is not an active md array - aborting
storage_asm_mntfw_swap.sh can not swap on /dev/md1
+ Flag_HD_Exists=1
+ echo 1
1
+ [ 1 == 0 ]
+ echo WARNING: No valid partition on HDD or no HDD plugged!
WARNING: No valid partition on HDD or no HDD plugged!
+ [ YES == YES ]
+ BOOTDEV=RAM
+ export BOOTDEV
+ [ RAM == RAM ]
+ echo WARNING: No valid partition on HDD or no HDD plugged
WARNING: No valid partition on HDD or no HDD plugged
+ echo Boot from RAM disk
Boot from RAM disk
+ /bin/mkdir -p /firmware/mnt/sysdisk
+ /bin/mount -t ramfs none /firmware/mnt/sysdisk
+ gzip -cd /firmware/mnt/nand/sysdisk.img.gz
+ [ 0 -ne 0 ]
+ grep change_boot_part
+ /firmware/sbin/info_printenv
+ IS_CHANGE_BOOT_PART_EXIST=change_boot_part=0
+ [ change_boot_part=0 !=  ]
+ awk -F= {print $2}
+ /firmware/sbin/info_printenv change_boot_part
+ CHANGE_BOOT_PART=0
+ [ 0 == 1 ]
+ /bin/mount -o remount,ro /firmware/mnt/sysdisk
+ [ -e /firmware/mnt/sysdiskEXT4-fs (loop0): mounting ext2 file system using the ext4 subsystem
/mount.sda1.rw.fEXT4-fs (loop0): mounted filesystem without journal. Opts: (null)
lag ]
+ [ -f /firmware/mnt/sysdisk/sysdisk.img ]
+ echo -e \033[033mMount system disk image ...\033[0m
Mount system disk image ...
+ /bin/mkdir -p /ram_bin
+ /bin/mount -t ext2 -o loop,ro /firmware/mnt/sysdisk/sysdisk.img /ram_bin
+ [ 0 -ne 0 ]
+ /bin/mount --bind /ram_bin/usr /usr
+ /bin/mount --bind /ram_bin/lib/security /lib/security
+ /bin/mount --bind /ram_bin/lib/modules /lib/modules
+ /bin/mount --bind /ram_bin/lib/locale /lib/locale
+ cp -a /ram_bin/bin/lld2d /ram_bin/bin/sg_mapUBI: attaching mtd2 to ubi2
 /bin/
+ cp -a /ram_bin/sbin/DAV_httpd /ram_bin/sbin/controlSSHUBI: scanning is finished
.sh /ram_bin/sbin/dosfsck /ram_bin/sbin/exfatfscUBI warning: print_rsvd_warning: cannot reserve enough PEBs for bad PEB handling, reserved 12, need 40
k /ram_bin/sbin/fsck.fat /ram_biUBI: attached mtd2 (name "config", size 2 MiB) to ubi2
n/sbin/fsck.hfs UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
/ram_bin/sbin/ipUBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
notify /ram_bin/UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
sbin/ipnotify_exUBI: good PEBs: 16, bad PEBs: 0, corrupted PEBs: 0
ec.sh /ram_bin/sUBI: user volume: 0, internal volumes: 1, max. volumes count: 128
bin/makekey /ramUBI: max/mean erase counter: 1/1, WL threshold: 4096, image sequence number: 3429425135
_bin/sbin/makepwUBI: available PEBs: 0, total reserved PEBs: 16, PEBs reserved for bad PEB handling: 12
d /ram_bin/sbin/UBI: background thread "ubi_bgt2d" started, PID 1436
mdir /ram_bin/sbin/mkdosfs /ram_bin/sbin/mkexfatfs /ram_bin/sbinUBIFS error (pid 1438): ubifs_mount: cannot open "ubi2:ubi_config", error -19
/mkfs.fat /ram_bin/sbin/monitord /ram_bin/sbin/mount.exfat-fuse /ram_bin/sbin/mount.fuse /ram_bin/sbin/mtools /ram_bin/sbin/sftp-server /ram_bin/sbin/ssh /ram_bin/sbin/ssh-keygUBI: detaching mtd2 from ubi2
en /ram_bin/sbinUBI: mtd2 is detached from ubi2
/sshd /ram_bin/sbin/target.init /ram_bin/sbin/targetcli /ram_bin/sbin/targetcli-ng /ram_bin/sbin/usbzync /ram_bin/sbin/usbzync.sh /ram_bin/sbin/usbzync_rm_rf.sh /sbin/
+ /bin/mkdir /tmp/tmpfs
+ /bin/mount -t tmpfs /dev/ram0 /tmp/tmpfs -o size=5m
+ /bin/mkdir /tmp/tmpfs/usr_etc
+ /bin/cp -a /usr/local/etc/mt-daapd /usr/local/etc/mt-daapd.conf /tmp/tmpfs/usr_etc
+ /bin/mount --bind /tmp/tmpfs/usr_etc /usr/local/etc
+ /bin/mkdir /tmp/tmpfs/usr_var
+ /bin/mount --bind /tmp/tmpfs/usr_var /usr/local/var
mount: mount point /usr/local/var does not exist
+ /bin/mkdir -p /tmp/zyxel
+ cp -a /etc/zyxel/BackupPlanner /etc/zyxel/conf /etc/zyxel/dservice.disable /etc/zyxel/hd-idle.conf /etc/zyxel/pkg_conf /etc/zyxel/storage /etc/zyxel/webdav /etc/zyxel/zyfw /tmp/zyxel
+ ubiattach -m 2 -d 2
UBI device number 2, total 16 LEBs (2031616 bytes, 1.9 MiB), available 0 LEBs (0 bytes), LEB size 126976 bytes (124.0 KiB)
+ ls -l /dev/ubi2 /dev/ubi6 /dev/ubi6_0 /dev/ubi_ctrl
crw-rw----    1 root     root      248,   0 Sep  5 01:52 /dev/ubi2
crw-rw----    1 root     root      249,   0 Sep  5 01:52 /dev/ubi6
crw-rw----    1 root     root      249,   1 Sep  5 01:52 /dev/ubi6_0
crw-rw----    1 root     root       10,  59 Sep  5 01:52 /dev/ubi_ctrl
+ [ ! -e /dev/ubi2 ]
+ /bin/mount -t ubifs ubi2:ubi_config /etc/zyxel
mount: unknown filesystem type 'ubifs'
+ [ 32 != 0 ]
+ /bin/echo mount /etc/zyxel failed
mount /etc/zyxel failed
+ prepare_config_partition
+ [ /etc/zyxel !=  ]
+ echo --- remove all files in /etc/zyxel
--- remove all files in /etc/zyxel
+ rm -rf /etc/zyxel/BackupPlanner /etc/zyxel/conf /etc/zyxel/dservice.disable /etc/zyxel/hd-idle.conf /etc/zyxel/pkg_conf /etc/zyxel/storage /etc/zyxel/webdav /etc/zyxel/zyfw
+ echo --- umount /etc/zyxel
--- umount /etc/zyxel
+ umount /etc/zyxel
umount: /etc/zyxel: not mounted
+ echo --- remove "ubi_config" volume
--- remove "ubi_config" volume
+ ubirmvol /dev/ubi2 -N ubi_config
ubirmvol: error!: cannot find UBI volume "ubi_config"
          error 2 (No such file or directory)
+ echo --- detach ubi2 from /dev/mtd2
--- detach ubi2 from /dev/mtd2
+ ubidetach -m 2
+ sleep 1
+ [ 0 == 0 ]
+ echo --- flash_erase /dev/mtd2 0 0
--- flash_erase /dev/mtd2 0 0
+ flash_erase /dev/mtd2 0 0
ErasUBI: attaching mtd2 to ubi2complete 
ing 128 Kibyte @ 20000 --  6 % cUBI: scanning is finished
ErasingUBI: empty MTD device detected
Erasing 128 Kibyte @ a0000 -- 31UBI warning: print_rsvd_warning: cannot reserve enough PEBs for bad PEB handling, reserved 12, need 40
Erasing 128 Kibyte UBI: attached mtd2 (name "config", size 2 MiB) to ubi2
@ c0000 -- 37 % UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
ErasinUBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
g 128 Kibyte @ eUBI: VID header offset: 2048 (aligned 2048), data offset: 4096
0000 -- 43 % comUBI: good PEBs: 16, bad PEBs: 0, corrupted PEBs: 0
Erasing 1UBI: user volume: 0, internal volumes: 1, max. volumes count: 128
28 Kibyte @ 1000UBI: max/mean erase counter: 0/0, WL threshold: 4096, image sequence number: 155612257
00 -- 50 % complUBI: available PEBs: 0, total reserved PEBs: 16, PEBs reserved for bad PEB handling: 12
Erasing 128UBI: background thread "ubi_bgt2d" started, PID 1455
Erasing 128 Kibyte @ 140000 -UBIFS error (pid 1457): ubifs_mount: cannot open "ubi2:ubi_config", error -19
Erasing 128 Kibyte @ 1e0000 -- 100 % complete 
+ echo --- mount /etc/zyxel back
--- mount /etc/zyxel back
+ ubiattach -m 2 -d 2
UBI device number 2, total 16 LEBs (2031616 bytes, 1.9 MiB), available 0 LEBs (0 bytes), LEB size 126976 bytes (124.0 KiB)
+ ubimkvol /dev/ubi2 -N ubi_config -m
ubimkvol: error!: UBI device does not have free logical eraseblocks
+ /bin/mount -t ubifs ubi2:ubi_config /etc/zyxel
mount: unknown filesystem type 'ubifs'
+ /bin/cp -af /tmp/NTFS driver 2.1.30 [Flags: R/O MODULE].
zyxel /etc/
+ rm -rf /tmp/zyxel
+ [ -f /etc/zyxel/zyconf.tgz ]tntfs: module license 'Commercial. For support email ntfs-support@tuxera.com.' taints kernel.

+ /bin/chmod 7Disabling lock debugging due to kernel taint
77 /etc/zyxel
+ /ram_bin/etc/inTuxera NTFS driver 3015.1.29 [Flags: R/W MODULE].
it.d/rcS2
Start rcS2 of ZyXEL style
*** Stage 3: Start services on HDD ***
PPP generic driver version 2.4.2
PPP MPPE Compression module registered
PPP Deflate Compression module registered
NET: Registered protocol family 24
PPP BSD Compression module registered
HTP finished, reUBI error: ubi_attach_mtd_dev: mtd2 is already attached to ubi2
-mount /etc/zyxel
ubiattach: erUBIFS error (pid 1500): ubifs_mount: cannot open "ubi2:ubi_config", error -19
ror!: cannot attach mtd2
           error 17 (File exists)
mount: unknown filesystem type 'ubifs'
Press ENTER to continue...
Starting zylogd...
 zylog starts.
Starting uamd...
Starting WSGI server...
CherryPy Checker:
The Application mounted at '' has an empty config.

[05/Sep/2017:01:53:02]  [network_common.py.pre](check_link_status)(278): the interface bond0 is down or unusable
[05/Sep/2017:01:53:04]  [network_common.py.pre](check_link_status)(278): the interface bond0 is down or unusable
[05/Sep/2017:01:53:04]  [network_main_model_back.py.pre](ipv6_dhcp_static_setting_apply)(229): The interface bond0 is down!
[05/Sep/2017:01:53:04]  [network_common.py.pre](check_link_status)(278): the interface egiga1 is down or unusable
[05/Sep/2017:01:53:06]  [network_common.py.pre](check_link_status)(278): the interface egiga1 is down or unusable
[05/Sep/2017:01:53:06]  [network_main_model_back.py.pre](ipv6_dhcp_static_setting_apply)(229): The interface egiga1 is down!
[05/Sep/2017:01:53:08]  [network_main_model_back.py.pre](ipv6_dhcp_static_setting_apply)(229): The interface egiga0 is down!
[05/Sep/2017:01:53:09]  [network_main_model_front.py.pre](apache_config_setting)(627): There is no statement '#WebService Start#' in httpd_zld.conf. keep going...
killall: pure-ftpd: no process killed
no printer device detected.

Usage:
 umount [-hV]
 umount -a [options]
 umount [options] <source> | <directory>

Options:
 -a, --all               unmount all filesystems
 -A, --all-targets       unmount all mountpoints for the given device in the
                           current namespace
 -c, --no-canonicalize   don't canonicalize paths
 -d, --detach-loop       if mounted loop device, also free this loop device
     --fake              dry run; skip the umount(2) syscall
 -f, --force             force unmount (in case of an unreachable NFS system)
 -i, --internal-only     don't call the umount.<type> helpers
 -n, --no-mtab           don't write to /etc/mtab
 -l, --lazy              detach the filesystem now, clean up things later
 -O, --test-opts <list>  limit the set of filesystems (use with -a)
 -R, --recursive         recursively unmount a target with all its children
 -r, --read-only         in case unmounting fails, try to remount read-only
 -t, --types <list>      limit the set of filesystem types
 -v, --verbose           say what is being done

 -h, --help     display this help and exit
 -V, --version  output version information and exit

For more details see umount(8).

Usage:
 umount [-hV]
 umount -a [options]
 umount [options] <source> | <directory>

Options:
 -a, --all               unmount all filesystems
 -A, --all-targets       unmount all mountpoints for the given device in the
                           current namespace
 -c, --no-canonicalize   don't canonicalize paths
 -d, --detach-loop       if mounted loop device, also free this loop device
     --fake              dry run; skip the umount(2) syscall
 -f, --force             force unmount (in case of an unreachable NFS system)
 -i, --internal-only     don't call the umount.<type> helpers
 -n, --no-mtab           don't write to /etc/mtab
 -l, --lazy              detach the filesystem now, clean up things later
 -O, --test-opts <list>  limit the set of filesystems (use with -a)
 -R, --recursive         recursively unmount a target with all its children
 -r, --read-only         in case unmounting fails, try to remount read-only
 -t, --types <list>      limit the set of filesystem types
 -v, --verbose           say what is being done

 -h, --help     display this help and exit
 -V, --version  output version information and exit

For more details see umount(8).
BusyBox v1.19.4 (2017-05-26 16:39:12 CST) multi-call binary.

Usage: rmdir [OPTIONS] DIRECTORY...

No more ZySH daemon and client...
argv[0]=/usr/sbin/zylog_config
argv[1]=mail
argv[2]=1
argv[3]=subject
argv[4]=NAS326 Log Report
mail server'1' subject:NAS326 Log Report
argv[0]=/usr/sbin/zylog_config
argv[1]=mail
argv[2]=1
argv[3]=schedule
argv[4]=hourly
mail server '1' schedule is : hourly 
Starting "/etc/init.d/zypkg_controller.sh".
Starting to set up zy-pkgs environment ...
-> No volume exists now. zy-pkgs will not work.
Starting smbd...
Starting nmbd...
Starting NSU Agent...
Starting AFP... avahi-daemon netatalk.
There is no usable system volume! Do nothing...
GMT offset=28800s
setting system time zone to tz_minuteswest=-480
killall: hd-idle: no process killed
schedule_controller is already running now.
setLED COPY OFF
led_state_map_addr = 400
setLED USB OFF
led_state_map_addr = 300
Starting app_wd...
Update zypkg list
There is no sysvol "/i-data/.system"
===> Generate zysync server config ...
     ===> Generating volume list ...
     ===> Generating zysync config file ...
rm: can't remove '/tmp/zysync_modules': No such file or directory
===> Starting zysync server ...
[INFO]: Starting server mode ... 

Done
===> Generating stunnel server config file ...
===> Starting stunnel server ...
[.] stunnel 5.02 on arm-unknown-linux-gnu platform
[.] Compiled/running with OpenSSL 1.0.2h  3 May 2016
[.] Threading:FORK Sockets:POLL,IPv6 SSL:FIPS
[ ] errno: (*__errno_location ())
[.] Reading configuration from file /etc/stunneld.conf
[.] FIPS mode disabled
[ ] Compression disabled
[ ] Snagged 64 random bytes from //.rnd
[ ] Wrote 1024 new random bytes to //.rnd
[ ] PRNG seeded successfully
[ ] Initializing service [szysync]
[ ] Loading cert from file: /etc/zyxel/BackupPlanner/zysync/zysync.cert
[ ] Loading key from file: /etc/zyxel/BackupPlanner/zysync/zysync.key
[:] Insecure file permissions on /etc/zyxel/BackupPlanner/zysync/zysync.key
[ ] Private key check succeeded
[ ] DH initialization
[ ] Could not load DH parameters from /etc/zyxel/BackupPlanner/zysync/zysync.cert
[ ] Using hardcoded DH parameters
[ ] DH initialized with 2048-bit key
[ ] ECDH initialization
[ ] ECDH initialized with curve prime256v1
[ ] SSL options set: 0x01000004
[.] Configuration successful
[ ] Service [szysync] (FD=6) bound to 0.0.0.0:9527
[!] Cannot open log file: /i-data/.system/stunneld.log
[ ] Closing service [szysync]
[ ] Service [szysync] closed (FD=6)
[ ] Sessions cached before flush: 0
[ ] Sessions cached after flush: 0
[ ] Service [szysync] closed
Done
[ ok ] The Linux SCSI Target is already stopped
[warn] Creating missing directory /var/target/pr ... (warning).
[warn] Creating missing directory /var/target/alua ... (warning).
[info] The Linux SCSI Target looks properly installed.
[warn] The configfs filesystem was not mounted, consider adding it to fstab ... (warning).
Rounding down aligned max_sectors from 4294967295 to 4294967288
[info] Loaded core module target_core_file.
[warn] Core module target_core_mod already loaded ... (warning).
[info] Loaded fabric module iscsi_target_mod.
[warn] Startup config /etc/target/scsi_target.lio is empty, skipping ... (warning).
[ ok ] Started The Linux SCSI Target
2017/09/05 09:53:21 [ipnotify] : execute ipnotify STARTUP
[ipnotify_exec.sh]: ******** run ipnotify_exec.sh STARTUP********
[05/Sep/2017:09:53:22]  [network_common.py.pre](check_link_status)(278): the interface bond0 is down or unusable
[05/Sep/2017:09:53:22]  [network_common.py.pre](check_link_status)(278): the interface bond1 is down or unusable
[05/Sep/2017:09:53:22]  [network_common.py.pre](check_link_status)(278): the interface egiga1 is down or unusable
the interface egiga0 is down or unusable
[05/Sep/2017:09:53:22]  [network_common.py.pre](check_link_status)(278): the interface bond0 is down or unusable
[05/Sep/2017:09:53:22]  [network_common.py.pre](check_link_status)(278): the interface bond1 is down or unusable
[05/Sep/2017:09:53:22]  [network_common.py.pre](check_link_status)(278): the interface egiga1 is down or unusable
[05/Sep/2017:09:53:22]  [network_common.py.pre](check_link_status)(278): the interface bond0 is down or unusable
[05/Sep/2017:09:53:22]  [network_common.py.pre](check_link_status)(278): the interface bond1 is down or unusable
[05/Sep/2017:09:53:22]  [network_common.py.pre](check_link_status)(278): the interface egiga1 is down or unusable
Device "egiga1" does not exist.
killall: httpd: no process killed
killall: httpd: no process killed
----------------------------------------------
admin
/i-data/sysvol/admin doesn't exist. Skip it.
----------------------------------------------
music
/i-data/sysvol/music doesn't exist. Skip it.
----------------------------------------------
photo
/i-data/sysvol/photo doesn't exist. Skip it.
----------------------------------------------
video
/i-data/sysvol/video doesn't exist. Skip it.
===> Stopping crond ...
===> Starting crond ...
 core_checksum : 2773b03df8b32c243f8b84dcefa79efb
 fwversion : V5.21(AAZF.1)
 img_checksum : 5356a1c083dfd6bc8c74bfd231aa15a6
 modelid : B303
 revision : 50984
 romfile_checksum : A762
 zld_checksum : 102d2dc16f397df0dddc4f1ad6380e52
OK
led_state_map_addr = 6

Please press Enter to activate this console. httpd[3015]: [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
httpd[3015]: [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
httpd[3015]: [warn] RSA server certificate CommonName (CN) `NAS326' does NOT match server name!?
httpd[3015]: [error] mod_auth_zyxel: initialized.
httpd[3048]: [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
httpd[3048]: [warn] RSA server certificate CommonName (CN) `NAS326' does NOT match server name!?
httpd[3048]: [error] mod_auth_zyxel: initialized.


heiko
Re: Problem booting Debian-4.9.0-mvebu-tld-12 with 2 hdd's
September 04, 2017 05:14PM
heiko,

Attached in this post is the latest kwboot. Run this version the same way you tried, with -d

http://forum.doozan.com/read.php?2,34103,34722#msg-34722

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Problem booting Debian-4.9.0-mvebu-tld-12 with 2 hdd's
September 04, 2017 07:41PM
heiko,

I can see why it booted in to stock. Your envs currently forced it boot stock kernel 2.

So boot with kwboot:
./kwboot -t -B 115200 /dev/ttyUSB3 -d


Interrupt serial console at count down, and

setenv change_boot_part 1
setenv next_bootfrom 1
boot

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Problem booting Debian-4.9.0-mvebu-tld-12 with 2 hdd's
September 05, 2017 04:12PM
Hello bodhi,
thanks for your help !!

Now i was able to use the right kwboot.
I use it with my raspi.

I see the counter as you told me an interrupt the boot process.

I renew the settings and set the to commands at the end.

setenv change_boot_part 1
setenv next_bootfrom 1

I boot the system but it boots into zyxcel os again

Not detected suspend to RAM indication
BootROM: Image checksum verification PASSED

 __   __                      _ _
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ V /  __/ | |
|_|  |_|\__,_|_|    \_/ \___|_|_|
         _   _     ____              _
        | | | |   | __ )  ___   ___ | |_ 
        | | | |___|  _ \ / _ \ / _ \| __| 
        | |_| |___| |_) | (_) | (_) | |_ 
         \___/    |____/ \___/ \___/ \__| 
 ** LOADER **


U-Boot 2013.01-svn48023 (Oct 13 2015 - 09:25:56) Marvell version: 2014_T3.0p6

Board: RD-NAS-88F6820-DDR3
SoC:   MV88F6810 Rev A0
       running 1 CPUs
CPU:   ARM Cortex A9 MPCore (Rev 1) LE
       CPU 0
       CPU    @ 1332 [MHz]
       L2     @ 666 [MHz]
       TClock @ 250 [MHz]
       DDR    @ 666 [MHz]
       DDR 32 Bit Width, FastPath Memory Access, DLB Enabled, ECC Disabled
DRAM:  512 MiB

Map:   Code:			0x1fed0000:0x1ff95d60
       BSS:			0x1ffef2b4
       Stack:			0x1f9cff20
       Heap:			0x1f9d0000:0x1fed0000
       U-Boot Environment:	0x00200000:0x00280000 (NAND)

NAND:  256 MiB
MMC:   mv_sdh: 0
*** Booting kernel from kernel 2 @0x08700000 ***
USB2.0 0: Host Mode
USB3.0 0: Host Mode
USB3.0 1: Host Mode
Board configuration detected:
Net:   
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   RGMII   |     0x01     |
egiga0 [PRIME]
Hit any key to stop autoboot:  0 

NAND read: device 0 offset 0x8700000, size 0xf00000
 15728640 bytes read: OK
*  kernel: cmdline image address = 0x02000000

Starting kernel ...

Power on HDD1 ...
Power on HDD2 ...
Power on USB ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x0
Linux version 3.10.39 (root@SDD2SVR2) (gcc version 4.8.5 20150209 (prerelease) (crosstool-NG 1.21.0) ) #1 Fri May 26 16:47:54 CST 2017
CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: Marvell Armada 380/381/382/385/388 (Device Tree), model: Marvell Armada 380 STG-328
bootconsole [earlycon0] enabled
Memory policy: ECC disabled, Data cache writealloc
CPU: All CPU(s) started in SVC mode.
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=armada-nand:2m(u-boot),2m(env),2m(config),15m(kernel1),110m(rootfs1),15m(kernel2),-(rootfs2) earlyprintk=serial
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 512MB = 512MB total
Memory: 504456k/504456k available, 19832k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xe0800000 - 0xfff00000   ( 503 MB)
    lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .text : 0xc0008000 - 0xc081c8a8   (8275 kB)
      .init : 0xc081d000 - 0xc0e3cd5c   (6272 kB)
      .data : 0xc0e3e000 - 0xc0e950e0   ( 349 kB)
       .bss : 0xc0e950e0 - 0xc0ee2c70   ( 311 kB)
NR_IRQS:16 nr_irqs:16 16

  LSP version: linux-3.10.39-2014_T3.0p7

sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 171798ms
L310 cache controller enabled
l2x0: 16 ways, CACHE_ID 0x410054c9, AUX_CTRL 0x16070000, Cache size: 1048576 B
Console: colour dummy device 80x30
Calibrating delay loop... 1332.01 BogoMIPS (lpj=6660096)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0xc063c590 - 0xc063c5e8
mvebu-pmsu: Initializing Power Management Service Unit
Initializing CPU Reset module
devtmpfs: initialized
mvebu-soc-id: MVEBU SoC ID=0x6810, Rev=0x4
xor: measuring software checksum speed
   arm4regs  :  2368.000 MB/sec
   8regs     :  1458.800 MB/sec
   32regs    :  1408.000 MB/sec
xor: using function: arm4regs (2368.000 MB/sec)
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
irq: Cannot allocate irq_descs @ IRQ194, assuming pre-allocated
irq: Cannot allocate irq_descs @ IRQ226, assuming pre-allocated
bio: create slab <bio-0> at 0
raid6: int32x1    203 MB/s
raid6: int32x2    270 MB/s
raid6: int32x4    283 MB/s
raid6: int32x8    323 MB/s
raid6: using algorithm int32x8 (323 MB/s)
raid6: using intx1 recovery algorithm
gpio-ms: gpio_dev = fe00000 (M: 254, m: 0)
[kernel] gpio_request for GPIO[24] failed with error number: -517
[kernel] gpio_request for GPIO[31] failed with error number: -517
[kernel] gpio_request for GPIO[44] failed with error number: -517
mvebu-pcie pcie-controller.3: PCIe0.0: link down
mvebu-pcie pcie-controller.3: PCIe1.0: link down
mvebu-pcie pcie-controller.3: PCI host bridge to bus 0000:00
pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe8000000]
pci_bus 0000:00: root bus resource [bus 00-ff]
PCI: bus0: Fast back to back transfers disabled
pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
PCI: bus1: Fast back to back transfers enabled
PCI: bus2: Fast back to back transfers enabled
pci 0000:00:01.0: PCI bridge to [bus 01]
pci 0000:00:02.0: PCI bridge to [bus 02]
PCI: enabling device 0000:00:01.0 (0140 -> 0143)
PCI: enabling device 0000:00:02.0 (0140 -> 0143)
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[kernel] gpio_request for GPIO[46] failed with error number: -517
[kernel] gpio_request for GPIO[49] failed with error number: -517
[kernel] gpio_request for GPIO[39] failed with error number: -517
PTP clock support registered
cfg80211: Calling CRDA to update world regulatory domain
Switching to clocksource armada_370_xp_clocksource
NET: Registered protocol family 2
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP: reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
NFS: Registering the id_resolver key type
Key type id_resolver registered
[kernel] gpio_request for GPIO[46] failed with error number: -517
Key type id_legacy registered
[kernel] gpio_request for GPIO[49] failed with error number: -517
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[kernel] gpio_request for GPIO[39] failed with error number: -517
fuse init (API version 7.22)
bio: create slab <bio-1> at 1
Btrfs loaded
msgmni has been set to 985
async_tx: api initialized (async)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
****** turn off all LEDs that turned on in u-boot ******
****** blink SYS LED ******
mv_xor f1060800.xor: Marvell shared XOR driver
mv_xor f1060800.xor: Marvell XOR: ( xor cpy intr )
mv_xor f1060800.xor: freeing 1 in use descriptors!
mv_xor f1060800.xor: Marvell XOR: ( crc32c )
mv_xor f1060900.xor: Marvell shared XOR driver
mv_xor f1060900.xor: Marvell XOR: ( xor cpy intr )
mv_xor f1060900.xor: freeing 1 in use descriptors!
mv_xor f1060900.xor: Marvell XOR: ( crc32c )
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 44) is a 16550A
console [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
brd: module loaded
loop: module loaded
ahci_mv f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
ahci_mv f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
scsi0 : ahci_mv_platform
scsi1 : ahci_mv_platform
ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 58
ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 58
armada-nand f10d0000.nand: Initialize HAL based NFC in 8bit mode with DMA Disabled using BCH 4bit ECC
NAND device: Manufacturer ID: 0xc2, Chip ID: 0xda (Macronix NAND 256MiB 3,3V 8-bit), 256MiB, page size: 2048, OOB size: 64
Bad block table found at page 131008, version 0x01
Bad block table found at page 130944, version 0x01
7 cmdlinepart partitions found on MTD device armada-nand
Creating 7 MTD partitions on "armada-nand":
0x000000000000-0x000000200000 : "u-boot"
0x000000200000-0x000000400000 : "env"
0x000000400000-0x000000600000 : "config"
0x000000600000-0x000001500000 : "kernel1"
0x000001500000-0x000008300000 : "rootfs1"
0x000008300000-0x000009200000 : "kernel2"
0x000009200000-0x000010000000 : "rootfs2"
m25p80 spi0.0: unrecognized JEDEC id ffffff
SoC: model = 0x6810, revision = 0x4
  o 3 Giga ports supported
  o SKB recycle supported for SWF (Disabled)
  o NETA acceleration mode 1
  o RX Queue support: 8 Queues * 256 Descriptors
  o TX Queue support: 8 Queues * 532 Descriptors
  o GSO supported
  o GRO supported
  o Receive checksum offload supported
  o Transmit checksum offload supported
  o Driver ERROR statistics enabled
  o Driver INFO statistics enabled
  o Driver DEBUG statistics enabled

port #0: is_sgmii=0, is_rgmii=1, phy_addr=1
  o Loading network interface(s) for port #0: cpu_mask=0x1, tx_csum_limit=9800

  o Port 0 is connected to Linux netdevice
    o eth0, ifindex = 2, GbE port = 0
	giga p=0: mtu=1500, mac=00:50:43:02:02:01 (platform)

libphy: orion_mdio_bus: probed
e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
e1000: Copyright (c) 1999-2006 Intel Corporation.
e1000e: Intel(R) PRO/1000 Network Driver - 2.3.2-k
e1000e: Copyright(c) 1999 - 2013 Intel Corporation.
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
ehci-orion: EHCI orion driver
orion-ehci f1058000.usb: EHCI Host Controller
orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
orion-ehci f1058000.usb: irq 50, io mem 0xf1058000
orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: EHCI Host Controller
usb usb1: Manufacturer: Linux 3.10.39 ehci_hcd
usb usb1: SerialNumber: f1058000.usb
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
xhci-hcd f10f0000.usb3: xHCI Host Controller
xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
xhci-hcd f10f0000.usb3: irq 48, io mem 0xf10f0000
usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb2: Product: xHCI Host Controller
usb usb2: Manufacturer: Linux 3.10.39 xhci-hcd
usb usb2: SerialNumber: f10f0000.usb3
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
xhci-hcd f10f0000.usb3: xHCI Host Controller
xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb3: Product: xHCI Host Controller
usb usb3: Manufacturer: Linux 3.10.39 xhci-hcd
usb usb3: SerialNumber: f10f0000.usb3
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 1 port detected
xhci-hcd f10f8000.usb3: xHCI Host Controller
xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
xhci-hcd f10f8000.usb3: irq 49, io mem 0xf10f8000
usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb4: Product: xHCI Host Controller
usb usb4: Manufacturer: Linux 3.10.39 xhci-hcd
usb usb4: SerialNumber: f10f8000.usb3
ata2: SATA link down (SStatus 0 SControl 300)
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 1 port detected
xhci-hcd f10f8000.usb3: xHCI Host Controller
xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb5: Product: xHCI Host Controller
usb usb5: Manufacturer: Linux 3.10.39 xhci-hcd
usb usb5: SerialNumber: f10f8000.usb3
hub 5-0:1.0: USB hub found
hub 5-0:1.0: 1 port detected
usbcore: registered new interface driver usblp
usbcore: registered new interface driver usb-storage
mousedev: PS/2 mouse device common for all mice
mvebu-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
i2c /dev entries driver
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
device-mapper: ioctl: 4.24.0-ioctl (2013-01-15) initialised: dm-devel@redhat.com
dm_crypt using the OCF package.
cpuidle: using governor ladder
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
mmc0: SDHCI controller on f10d8000.sdhci [f10d8000.sdhci] using ADMA
sdhci-pltfm: SDHCI platform and OF driver helper
armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: Total CESA HW channels supported 2
armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: CESA feature: int_coalescing(1)
armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources threshold 0x2, threshold_time 0xff
mvCesaInit: channels=2, session=640, queue=256
armada-cesa-ocf f109d000.crypto: cesa_ocf_probe: CESA driver operate in ocf(0) mode
cesadev_init(c0836b3c)
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
TCP: cubic registered
NET: Registered protocol family 10
sit: IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
8021q: 802.1Q VLAN Support v1.8
Key type dns_resolver registered
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
mvebu-rtc f10a3800.rtc: setting system clock to 2017-09-06 11:19:06 UTC (1504696746)
ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata1.00: ATA-8: WDC WD10EARS-00Y5B1, 80.00A80, max UDMA/133
ata1.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
ata1.00: configured for UDMA/133
scsi 0:0:0:0: Direct-Access     ATA      WDC WD10EARS-00Y 80.0 PQ: 0 ANSI: 5
******** sd_probe: turn_off LED_HDD1 ********
******** sd_probe: turn_on LED_HDD1 WHITE********
sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
 sda: sda1
sd 0:0:0:0: [sda] Attached SCSI disk
Freeing unused kernel memory: 6268K (c081d000 - c0e3c000)
hotplug1110add:[/devices/soc.0/internal-regs.1/f10a8000.sata/ata1/host0/target0:0:0/0:0:0:0/block/sda][sda]Mass Storage device
+ ECHO=/bin/echo
+ RM=/bin/rm
+ IFCONFIG=/sbin/ifconfig
+ IP=/bin/ip
+ MOUNT=/bin/mount
+ MKDIR=/bin/mkdir
+ RMDIR=/bin/rmdir
+ CAT=/bin/cat
+ MDEV=/sbin/mdev
+ SETTING_PATH=/etc/settings
+ [ -f /etc/settings/firmware_info_path ]
+ cat /etc/settings/firmware_info_path
+ BASE_PATH=/firmware
+ BASE_PATH=/firmware
+ NAND_PATH=/firmware/mnt/nand
+ DISK_PATH=/firmware/mnt/sysdisk
+ INFO_PATH=/firmware/mnt/info
+ MRD_MAC=/firmware/sbin/mrd_mac
+ INFO_PRINTENV=/firmware/sbin/info_printenv
+ INFO_SETENV=/firmware/sbin/info_setenv
+ IMG_PATH=/ram_bin
+ USB_PATH=/mnt/partnerkey
+ awk -F= {print $2}
+ /firmware/sbin/info_printenv curr_bootfrom
+ CURR_BOOTFROM=2
+ awk -F= {print $2}
+ /firmware/sbin/info_printenv next_bootfrom
+ NEXT_BOOTFROM=2
+ [ 2 != 2 ]
+ /bin/echo -e \033[031m*** Stage 1: Setup system and device drivers ***\033[0m
*** Stage 1: Setup system and device drivers ***
+ setLED SYS WHITE BLINK
Fail to open gpio device
+ /bin/mount -t proc /proc /proc
+ /bin/mount -t sysfs /sys /sys
+ /bin/mount -t usbfs none /proc/bus/usb
mount: mount point /proc/bus/usb does not exist
+ /bin/mount -t devpts devpts /dev/pts
+ awk {print $1}
+ grep gpio
+ cat /proc/devices
+ mknod -m 644 /dev/gpio c 254 0
+ awk -F= {print $2}
+ /firmware/sbin/info_printenv fwversion_2
+ FWVERSION=V5.21(AAZF.1)
+ awk -F= {print $2}
+ /firmware/sbin/info_printenv revision_2
+ REVISION=50984
+ awk -F= {print $2}
+ /firmware/sbin/info_printenv modelid_2
+ MODELID=B303
+ awk -F= {print $2}
+ /firmware/sbin/info_printenv core_checksum_2
+ CORE_CHECKSUM=2773b03df8b32c243f8b84dcefa79efb
+ awk -F= {print $2}
+ /firmware/sbin/info_printenv zld_checksum_2
+ ZLD_CHECKSUM=102d2dc16f397df0dddc4f1ad6380e52
+ awk -F= {print $2}
+ /firmware/sbin/info_printenv romfile_checksum_2
+ ROMFILE_CHECKSUM=A762
+ awk -F= {print $2}
+ /firmware/sbin/info_printenv img_checksum_2
+ IMG_CHECKSUM=5356a1c083dfd6bc8c74bfd231aa15a6
+ [ ! -d /firmware/mnt/info ]
+ /bin/mkdir -p /firmware/mnt/info
+ echo V5.21(AAZF.1)
+ echo 50984
+ echo B303
+ echo 2773b03df8b32c243f8b84dcefa79efb
+ echo 102d2dc16f397df0dddc4f1ad6380e52
+ echo A762
+ echo 5356a1c083dfd6bc8c74bfd231aa15a6
+ echo /sbin/mdev
+ /sbin/mdev -s
+ /bin/echo 32769 42768
+ /bin/echo 8192
+ /bin/echo 100
+ /bin/echo 5
+ /bin/echo 10
+ /bin/echo 512 87380 2048000
+ /bin/echo 512 65536 2048000
+ /bin/echo 524288
+ /bin/echo 524288
+ /sbin/ifconfig eth0 down
+ /firmware/sbin/mrd_mac eth0
+ /sbin/ifconfig eeth0: mac address changed
th0 hw ether 58:8B:F3:DB:DD:3E
+ /bin/ip link set dev eth0 name egiga0
+ /sbin/ifconfig egiga0bmPoolId = 0 has unknown buf_size
pool #0: pkt_size=1536, buf_size=1600 - 4096 of 4096 buffers added
 up
egiga0: started
IPv6: ADDRCONF(NETDEV_UP): egiga0: link is not ready
+ /sbin/ifconfig lo add 127.0.0.1 netmask 255.0.0.0
+ /sbin/ifconfig lo up
+ /sbin/ethtool -K egiga0 gso on
+ /sbin/ethtool -s egiga0 advertise 0x2f
Cannot set new settings: Invalid argument
+ /sbin/ethtool -s egiga0 autoneg on
Cannot set new settings: Invalid argument
  not setting autoneg
+ /sbin/rtcAccess show
+ rtc_time1=2017-09-06 11:19:18
+ sleep 1
+ /sbin/rtcAccess show
+ rtc_time2=2017-09-06 11:19:19
+ [ 2017-09-06 11:19:18 = 2017-09-06 11:19:19 ]
+ awk -F- {print $1}
+ echo 2017-09-06 11:19:18
+ year1=2017
+ awk -F- {print $1}
+ echo 2017-09-06 11:19:19
+ year2=2017
+ awk -F- {print $1}
+ /sbin/rtcAccess show
+ year3=2017
+ [ 2017 != 2017 ]
+ /sbin/rtcAccess rtctosys
+ echo 2
+ echo 80
+ /linuxrc
+ . /etc/profile
+ SETTING_PATH=/etc/settings
+ [ -f /etc/settings/firmware_info_path ]
+ cat /etc/settings/firmware_info_path
+ BASE_PATH=/firmware
+ PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/firmware/sbin:/usr/local/zy-pkgs/bin:/firmware/htp
+ export PATH
+ LD_LIBRARY_PATH=/lib:/usr/lib:/usr/lib/private
+ export LD_LIBRARY_PATH
+ ECHO=/bin/echo
+ CAT=/bin/cat
+ RM=/bin/rm
+ MOUNT=/bin/mount
+ UMOUNT=/bin/umount
+ IP=/bin/ip
+ IFCONFIG=/sbin/ifconfig
+ SED=/bin/sed
+ MKDIR=/bin/mkdir
+ RMDIR=/bin/rmdir
+ AWK=/bin/awk
+ MD5SUM=/sbin/md5sum
+ REBOOT=/sbin/reboot
+ BUZZERC=/sbin/buzzerc
+ LN=/bin/ln
+ INSMOD=/sbin/insmod
+ RMMOD=/sbin/rmmod
+ LSMOD=/sbin/lsmod
+ DEPMOD=/sbin/depmod
+ NAND_PATH=/firmware/mnt/nand
+ DISK_PATH=/firmware/mnt/sysdisk
+ INFO_PATH=/firmware/mnt/info
+ HTP_PATH=/firmware/htp
+ IMG_PATH=/ram_bin
+ USB_PATH=/mnt/partnerkey
+ [ -f /etc/settings/config_on_nand_path ]
+ cat /etc/settings/config_on_nand_path
+ CONF_PATH=/etc/zyxel
+ CONFIG_MTD_NUM=2
+ CONFIG_MTD=/dev/mtd2
+ CONFIG_MTD_BLOCK=/dev/mtdblock2
+ GET_MAC_MCU=/sbin/get_mac_mcu.sh
+ WRITE_MAC_MCU=/sbin/write_mac_mcu.sh
+ INFO_PRINTENV=/firmware/sbin/info_printenv
+ INFO_SETENV=/firmware/sbin/info_setenv
+ MRD_MAC=/firmware/sbin/mrd_mac
+ MRD_MODEL=/firmware/sbin/mrd_model
+ NAND_FS_TYPE=ubifs
+ awk -F= {print $2}
+ /firmware/sbin/info_printenv curr_bootfrom
+ CURR_BOOTFROM=2
+ [ 2 = 1 ]
+ IMG_MTD=6
+ NEW_ROOT=
+ SYSINIT_PASSWD=$1$$4eHwTd8s1.UjO3wA36fmX1
+ SYSINIT_PATH=/mnt/sysinit
+ /firmware/sbin/mrd_model -p
+ MODEL_ID=B303
+ RAM_BOOT_ABLE=YES
+ echo 1
+ rescan_lost_scsi_device
+ wc -l
+ ls /sys/class/scsi_host
+ hostNum=2
+ cut -c 5
+ ls /sys/class/scsi_host
+ hostIdLst=0
1
+ hddId=2
+ cat /proc/hdd2_detect
cat: can't open '/proc/hdd2_detect': No such file or directory
+ [  == 1 ]
+ hddId=1
+ cat /proc/hdd1_detect
cat: can't open '/proc/hdd1_detect': No such file or directory
+ [  == 1 ]
+ /bin/echo -e \033[031m*** Stage 2: Prepare the root file system ***\033[0m
*** Stage 2: Prepare the root file system ***
+ /bin/echo -e \033[033mMount system partition...\033[0m
Mount system partition...
+ /bin/mkdir -p /firmware/mnt/nand
+ ls -l /dev/ubi_ctrl
crw-rw----    1 root     root       10,  59 Sep  6 11:19 /dev/ubi_ctrl
+ [ ! -e /dev/ubi_ctrl ]
+ check_and_run_usbkey
+ USB_CHECK_FILE=/mnt/pEXT4-fs (sda1): Unrecognized mount option "iocharset=utf8" or missing value
artnerkey/nas3xx_check_file
+ grep sd
+ ls /sys/block/
+ any_usb=sda
+ /bin/echo sda
sda
+ [ -n sda ]
+ /bin/mkdir /mnt/partnerkey
+ /biUBI: attaching mtd6 to ubi6
n/echo checking sda
checking sda
+ grep -c ?
+ grep ^/dev/sda
+ fdisk -l /dev/sda
+ qmark_num=0
+ grep ^/dev/sda
+ fdisk -l /dev/sda
+ partition_num=/dev/sda1  *     2048 1953523711 1953521664 931.5G 83 Linux
+ [ 0 == 4 ]
+ [ /dev/sda1  *     2048 1953523711 1953521664 931.5G 83 Linux ==  ]
+ sed -n 1p
+ awk {print $1}
+ grep ^/dev/sda
+ fdisk -l /dev/sda
+ mnt_point=/dev/sda1
+ /bin/echo Trying to mount /dev/sda1
Trying to mount /dev/sda1
+ /bin/mount -o iocharset=utf8,shortname=mixed /dev/sda1 /mnt/partnerkey
mount: wrong fs type, bad option, bad superblock on /dev/sda1,
       missing codepage or helper program, or other error

       In some cases useful info is found in syslog - try
       dmesg | tail or so.
+ grep /mnt/partnerkey
+ /bin/cat /proc/mounts
+ mount_SUC=
+ [  !=  ]
+ /bin/echo Fail to mount /dev/sda1
Fail to mount /dev/sda1
+ /bin/rmdir /mnt/partnerkey
+ ls -l /dev/ubi_ctrl
crw-rw----    1 root     root       10,  59 Sep  6 11:19 /dev/ubi_ctrl
+ ubidetach -d 0
ubidetach: error!: cannot remove ubi0
           error 22 (Invalid argument)
+ ubiattach -m 6 -d 6
UBI: scanning is finished
UBI: attached mtd6 (name "rootfs2", size 110 MiB) to ubi6
UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
UBI: good PEBs: 872, bad PEBs: 8, corrupted PEBs: 0
UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
UBI: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 3452188652
UBI: available PEBs: 32, total reserved PEBs: 840, PEBs reserved for bad PEB handling: 32
UBI: background thread "ubi_bgt6d" started, PID 1337
UBI device number 6, total 872 LEBs (110723072 bytes, 105.6 MiB), available 32 LEBs (4063232 bytes, 3.9 MiB), LEB size 126976 bytes (124.0 KiB)
+ ls -l /dev/ubi6 /dev/ubi6_0 /dev/ubi_ctrl
crw-rw----    1 root     root      249,   0 Sep  6 11:19 /dev/ubi6
crw-rw----    1 root     root      249,   1 Sep  6 11:19 /dev/ubi6_0
crw-rw----    1 root     root       10,  59 Sep  6 11:19 /dev/ubi_ctrl
+ [ ! -e /dev/ubi6 ]
+ ls -l /dev/ubi6 /dev/ubi6_0 /dev/ubi_ctrl
crw-rw----    1 root     root      249,   0 Sep  6 11:19 /dev/ubi6
crw-rw----    1 root     root      249,   1 Sep  6 11:19 UBIFS: mounted UBI device 6, volume 0, name "ubi_rootfs2", R/O mode
/dev/ubi6_0
crwUBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
-rw----    1 rooUBIFS: FS size: 100691968 bytes (96 MiB, 793 LEBs), journal size 5079040 bytes (4 MiB, 40 LEBs)
t     root      UBIFS: reserved for root: 4755930 bytes (4644 KiB)
 10,  59 Sep  6 UBIFS: media format: w4/r0 (latest is w4/r0), UUID BC7D1F8A-CB46-4006-85B8-29548DDE9947, small LPT model
11:19 /dev/ubi_ctrl
+ mount -t ubifs -o ro ubi6:ubi_rootfs2 /firmware/mnt/nand
+ [ ! -e /firmware/mnt/nand/sysdisk.img.gz ]
+ cat /proc/htp_pin
cat: can't open '/proc/htp_pin': No such file or directory
+ HTP_PIN=
+ [ == 1 ]
sh: 1: unknown operand
+ /bin/storage_asm_mntfw_swap.sh /firmware/mnt/sysdisk
can not found fw raid uuid
can not found swap raid uuid
/sbin/mdadm --grow /dev/md0 --raid-devices=2 --force
mdadm: /dev/md0 is not an active md array - aborting
/sbin/mdadm --grow /dev/md1 --raid-devices=2 --force
mdadm: /dev/md1 is not an active md array - aborting
storage_asm_mntfw_swap.sh can not swap on /dev/md1
+ Flag_HD_Exists=1
+ echo 1
1
+ [ 1 == 0 ]
+ echo WARNING: No valid partition on HDD or no HDD plugged!
WARNING: No valid partition on HDD or no HDD plugged!
+ [ YES == YES ]
+ BOOTDEV=RAM
+ export BOOTDEV
+ [ RAM == RAM ]
+ echo WARNING: No valid partition on HDD or no HDD plugged
WARNING: No valid partition on HDD or no HDD plugged
+ echo Boot from RAM disk
Boot from RAM disk
+ /bin/mkdir -p /firmware/mnt/sysdisk
+ /bin/mount -t ramfs none /firmware/mnt/sysdisk
+ gzip -cd /firmware/mnt/nand/sysdisk.img.gz
+ [ 0 -ne 0 ]
+ grep change_boot_part
+ /firmware/sbin/info_printenv
+ IS_CHANGE_BOOT_PART_EXIST=change_boot_part=0
+ [ change_boot_part=0 !=  ]
+ awk -F= {print $2}
+ /firmware/sbin/info_printenv change_boot_part
+ CHANGE_BOOT_PART=0
+ [ 0 == 1 ]
+ /bin/mount -o remount,ro /firmware/mnt/sysdisk
+ [ -e /firmware/mnt/sysdiskEXT4-fs (loop0): mounting ext2 file system using the ext4 subsystem
/mount.sda1.rw.fEXT4-fs (loop0): mounted filesystem without journal. Opts: (null)
lag ]
+ [ -f /firmware/mnt/sysdisk/sysdisk.img ]
+ echo -e \033[033mMount system disk image ...\033[0m
Mount system disk image ...
+ /bin/mkdir -p /ram_bin
+ /bin/mount -t ext2 -o loop,ro /firmware/mnt/sysdisk/sysdisk.img /ram_bin
+ [ 0 -ne 0 ]
+ /bin/mount --bind /ram_bin/usr /usr
+ /bin/mount --bind /ram_bin/lib/security /lib/security
+ /bin/mount --bind /ram_bin/lib/modules /lib/modules
+ /bin/mount --bind /ram_bin/lib/locale /lib/locale
+ cp -a /ram_bin/bin/lld2d /ram_bin/bin/sg_mapUBI: attaching mtd2 to ubi2
 /bin/
+ cp -a /ram_bin/sbin/DAV_httpd /ram_bin/sbin/controlSSHUBI: scanning is finished
.sh /ram_bin/sbin/dosfsck /ram_bin/sbin/exfatfscUBI warning: print_rsvd_warning: cannot reserve enough PEBs for bad PEB handling, reserved 12, need 40
k /ram_bin/sbin/fsck.fat /ram_biUBI: attached mtd2 (name "config", size 2 MiB) to ubi2
n/sbin/fsck.hfs UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
/ram_bin/sbin/ipUBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
notify /ram_bin/UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
sbin/ipnotify_exUBI: good PEBs: 16, bad PEBs: 0, corrupted PEBs: 0
ec.sh /ram_bin/sUBI: user volume: 0, internal volumes: 1, max. volumes count: 128
bin/makekey /ramUBI: max/mean erase counter: 1/1, WL threshold: 4096, image sequence number: 2612544605
_bin/sbin/makepwUBI: available PEBs: 0, total reserved PEBs: 16, PEBs reserved for bad PEB handling: 12
d /ram_bin/sbin/UBI: background thread "ubi_bgt2d" started, PID 1435
mdir /ram_bin/sbin/mkdosfs /ram_bin/sbin/mkexfatfs /ram_bin/sbinUBIFS error (pid 1437): ubifs_mount: cannot open "ubi2:ubi_config", error -19
/mkfs.fat /ram_bin/sbin/monitord /ram_bin/sbin/mount.exfat-fuse /ram_bin/sbin/mount.fuse /ram_bin/sbin/mtools /ram_bin/sbin/sftp-server /ram_bin/sbin/ssh /ram_bin/sbin/ssh-keygUBI: detaching mtd2 from ubi2
en /ram_bin/sbinUBI: mtd2 is detached from ubi2
/sshd /ram_bin/sbin/target.init /ram_bin/sbin/targetcli /ram_bin/sbin/targetcli-ng /ram_bin/sbin/usbzync /ram_bin/sbin/usbzync.sh /ram_bin/sbin/usbzync_rm_rf.sh /sbin/
+ /bin/mkdir /tmp/tmpfs
+ /bin/mount -t tmpfs /dev/ram0 /tmp/tmpfs -o size=5m
+ /bin/mkdir /tmp/tmpfs/usr_etc
+ /bin/cp -a /usr/local/etc/mt-daapd /usr/local/etc/mt-daapd.conf /tmp/tmpfs/usr_etc
+ /bin/mount --bind /tmp/tmpfs/usr_etc /usr/local/etc
+ /bin/mkdir /tmp/tmpfs/usr_var
+ /bin/mount --bind /tmp/tmpfs/usr_var /usr/local/var
mount: mount point /usr/local/var does not exist
+ /bin/mkdir -p /tmp/zyxel
+ cp -a /etc/zyxel/BackupPlanner /etc/zyxel/conf /etc/zyxel/dservice.disable /etc/zyxel/hd-idle.conf /etc/zyxel/pkg_conf /etc/zyxel/storage /etc/zyxel/webdav /etc/zyxel/zyfw /tmp/zyxel
+ ubiattach -m 2 -d 2
UBI device number 2, total 16 LEBs (2031616 bytes, 1.9 MiB), available 0 LEBs (0 bytes), LEB size 126976 bytes (124.0 KiB)
+ ls -l /dev/ubi2 /dev/ubi6 /dev/ubi6_0 /dev/ubi_ctrl
crw-rw----    1 root     root      248,   0 Sep  6 11:19 /dev/ubi2
crw-rw----    1 root     root      249,   0 Sep  6 11:19 /dev/ubi6
crw-rw----    1 root     root      249,   1 Sep  6 11:19 /dev/ubi6_0
crw-rw----    1 root     root       10,  59 Sep  6 11:19 /dev/ubi_ctrl
+ [ ! -e /dev/ubi2 ]
+ /bin/mount -t ubifs ubi2:ubi_config /etc/zyxel
mount: unknown filesystem type 'ubifs'
+ [ 32 != 0 ]
+ /bin/echo mount /etc/zyxel failed
mount /etc/zyxel failed
+ prepare_config_partition
+ [ /etc/zyxel !=  ]
+ echo --- remove all files in /etc/zyxel
--- remove all files in /etc/zyxel
+ rm -rf /etc/zyxel/BackupPlanner /etc/zyxel/conf /etc/zyxel/dservice.disable /etc/zyxel/hd-idle.conf /etc/zyxel/pkg_conf /etc/zyxel/storage /etc/zyxel/webdav /etc/zyxel/zyfw
+ echo --- umount /etc/zyxel
--- umount /etc/zyxel
+ umount /etc/zyxel
umount: /etc/zyxel: not mounted
+ echo --- remove "ubi_config" volume
--- remove "ubi_config" volume
+ ubirmvol /dev/ubi2 -N ubi_config
ubirmvol: error!: cannot find UBI volume "ubi_config"
          error 2 (No such file or directory)
+ echo --- detach ubi2 from /dev/mtd2
--- detach ubi2 from /dev/mtd2
+ ubidetach -m 2
+ sleep 1
+ [ 0 == 0 ]
+ echo --- flash_erase /dev/mtd2 0 0
--- flash_erase /dev/mtd2 0 0
+ flash_erase /dev/mtd2 0 0
ErasUBI: attaching mtd2 to ubi2complete 
ing 128 Kibyte @ 20000 --  6 % cUBI: scanning is finished
ErasingUBI: empty MTD device detected
Erasing 128 Kibyte @ a0000 -- 31UBI warning: print_rsvd_warning: cannot reserve enough PEBs for bad PEB handling, reserved 12, need 40
Erasing 128 Kibyte UBI: attached mtd2 (name "config", size 2 MiB) to ubi2
@ c0000 -- 37 % UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
ErasinUBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
g 128 Kibyte @ eUBI: VID header offset: 2048 (aligned 2048), data offset: 4096
0000 -- 43 % comUBI: good PEBs: 16, bad PEBs: 0, corrupted PEBs: 0
Erasing 1UBI: user volume: 0, internal volumes: 1, max. volumes count: 128
28 Kibyte @ 1000UBI: max/mean erase counter: 0/0, WL threshold: 4096, image sequence number: 1414135477
00 -- 50 % complUBI: available PEBs: 0, total reserved PEBs: 16, PEBs reserved for bad PEB handling: 12
Erasing 128UBI: background thread "ubi_bgt2d" started, PID 1454
Erasing 128 Kibyte @ 140000 -UBIFS error (pid 1456): ubifs_mount: cannot open "ubi2:ubi_config", error -19
Erasing 128 Kibyte @ 1e0000 -- 100 % complete 
+ echo --- mount /etc/zyxel back
--- mount /etc/zyxel back
+ ubiattach -m 2 -d 2
UBI device number 2, total 16 LEBs (2031616 bytes, 1.9 MiB), available 0 LEBs (0 bytes), LEB size 126976 bytes (124.0 KiB)
+ ubimkvol /dev/ubi2 -N ubi_config -m
ubimkvol: error!: UBI device does not have free logical eraseblocks
+ /bin/mount -t ubifs ubi2:ubi_config /etc/zyxel
mount: unknown filesystem type 'ubifs'
+ /bin/cp -af /tmp/NTFS driver 2.1.30 [Flags: R/O MODULE].
zyxel /etc/
+ rm -rf /tmp/zyxel
+ [ -f /etc/zyxel/zyconf.tgz ]tntfs: module license 'Commercial. For support email ntfs-support@tuxera.com.' taints kernel.

+ /bin/chmod 7Disabling lock debugging due to kernel taint
77 /etc/zyxel
+ /ram_bin/etc/inTuxera NTFS driver 3015.1.29 [Flags: R/W MODULE].
it.d/rcS2
Start rcS2 of ZyXEL style
*** Stage 3: Start services on HDD ***
PPP generic driver version 2.4.2
PPP MPPE Compression module registered
PPP Deflate Compression module registered
NET: Registered protocol family 24
PPP BSD Compression module registered
HTP finished, reUBI error: ubi_attach_mtd_dev: mtd2 is already attached to ubi2
-mount /etc/zyxel
ubiattach: erUBIFS error (pid 1499): ubifs_mount: cannot open "ubi2:ubi_config", error -19
ror!: cannot attach mtd2
           error 17 (File exists)
mount: unknown filesystem type 'ubifs'
Press ENTER to continue...
Starting zylogd...
 zylog starts.
Starting uamd...
Starting WSGI server...
CherryPy Checker:
The Application mounted at '' has an empty config.

[06/Sep/2017:11:19:35]  [network_common.py.pre](check_link_status)(278): the interface bond0 is down or unusable
[06/Sep/2017:11:19:37]  [network_common.py.pre](check_link_status)(278): the interface bond0 is down or unusable
[06/Sep/2017:11:19:37]  [network_main_model_back.py.pre](ipv6_dhcp_static_setting_apply)(229): The interface bond0 is down!
[06/Sep/2017:11:19:37]  [network_common.py.pre](check_link_status)(278): the interface egiga1 is down or unusable
[06/Sep/2017:11:19:40]  [network_common.py.pre](check_link_status)(278): the interface egiga1 is down or unusable
[06/Sep/2017:11:19:40]  [network_main_model_back.py.pre](ipv6_dhcp_static_setting_apply)(229): The interface egiga1 is down!
[06/Sep/2017:11:19:42]  [network_main_model_back.py.pre](ipv6_dhcp_static_setting_apply)(229): The interface egiga0 is down!
[06/Sep/2017:11:19:43]  [network_main_model_front.py.pre](apache_config_setting)(627): There is no statement '#WebService Start#' in httpd_zld.conf. keep going...
killall: pure-ftpd: no process killed
no printer device detected.

Usage:
 umount [-hV]
 umount -a [options]
 umount [options] <source> | <directory>

Options:
 -a, --all               unmount all filesystems
 -A, --all-targets       unmount all mountpoints for the given device in the
                           current namespace
 -c, --no-canonicalize   don't canonicalize paths
 -d, --detach-loop       if mounted loop device, also free this loop device
     --fake              dry run; skip the umount(2) syscall
 -f, --force             force unmount (in case of an unreachable NFS system)
 -i, --internal-only     don't call the umount.<type> helpers
 -n, --no-mtab           don't write to /etc/mtab
 -l, --lazy              detach the filesystem now, clean up things later
 -O, --test-opts <list>  limit the set of filesystems (use with -a)
 -R, --recursive         recursively unmount a target with all its children
 -r, --read-only         in case unmounting fails, try to remount read-only
 -t, --types <list>      limit the set of filesystem types
 -v, --verbose           say what is being done

 -h, --help     display this help and exit
 -V, --version  output version information and exit

For more details see umount(8).

Usage:
 umount [-hV]
 umount -a [options]
 umount [options] <source> | <directory>

Options:
 -a, --all               unmount all filesystems
 -A, --all-targets       unmount all mountpoints for the given device in the
                           current namespace
 -c, --no-canonicalize   don't canonicalize paths
 -d, --detach-loop       if mounted loop device, also free this loop device
     --fake              dry run; skip the umount(2) syscall
 -f, --force             force unmount (in case of an unreachable NFS system)
 -i, --internal-only     don't call the umount.<type> helpers
 -n, --no-mtab           don't write to /etc/mtab
 -l, --lazy              detach the filesystem now, clean up things later
 -O, --test-opts <list>  limit the set of filesystems (use with -a)
 -R, --recursive         recursively unmount a target with all its children
 -r, --read-only         in case unmounting fails, try to remount read-only
 -t, --types <list>      limit the set of filesystem types
 -v, --verbose           say what is being done

 -h, --help     display this help and exit
 -V, --version  output version information and exit

For more details see umount(8).
BusyBox v1.19.4 (2017-05-26 16:39:12 CST) multi-call binary.

Usage: rmdir [OPTIONS] DIRECTORY...

No more ZySH daemon and client...
argv[0]=/usr/sbin/zylog_config
argv[1]=mail
argv[2]=1
argv[3]=subject
argv[4]=NAS326 Log Report
mail server'1' subject:NAS326 Log Report
argv[0]=/usr/sbin/zylog_config
argv[1]=mail
argv[2]=1
argv[3]=schedule
argv[4]=hourly
mail server '1' schedule is : hourly 
Starting "/etc/init.d/zypkg_controller.sh".
Starting to set up zy-pkgs environment ...
-> No volume exists now. zy-pkgs will not work.
Starting smbd...
Starting nmbd...
Starting NSU Agent...
Starting AFP... avahi-daemon netatalk.
There is no usable system volume! Do nothing...
GMT offset=28800s
setting system time zone to tz_minuteswest=-480
killall: hd-idle: no process killed
schedule_controller is already running now.
setLED COPY OFF
led_state_map_addr = 400
setLED USB OFF
led_state_map_addr = 300
Starting app_wd...
Update zypkg list
There is no sysvol "/i-data/.system"
===> Generate zysync server config ...
     ===> Generating volume list ...
     ===> Generating zysync config file ...
rm: can't remove '/tmp/zysync_modules': No such file or directory
===> Starting zysync server ...
[INFO]: Starting server mode ... 

Done
===> Generating stunnel server config file ...
===> Starting stunnel server ...
[.] stunnel 5.02 on arm-unknown-linux-gnu platform
[.] Compiled/running with OpenSSL 1.0.2h  3 May 2016
[.] Threading:FORK Sockets:POLL,IPv6 SSL:FIPS
[ ] errno: (*__errno_location ())
[.] Reading configuration from file /etc/stunneld.conf
[.] FIPS mode disabled
[ ] Compression disabled
[ ] Snagged 64 random bytes from //.rnd
[ ] Wrote 1024 new random bytes to //.rnd
[ ] PRNG seeded successfully
[ ] Initializing service [szysync]
[ ] Loading cert from file: /etc/zyxel/BackupPlanner/zysync/zysync.cert
[ ] Loading key from file: /etc/zyxel/BackupPlanner/zysync/zysync.key
[:] Insecure file permissions on /etc/zyxel/BackupPlanner/zysync/zysync.key
[ ] Private key check succeeded
[ ] DH initialization
[ ] Could not load DH parameters from /etc/zyxel/BackupPlanner/zysync/zysync.cert
[ ] Using hardcoded DH parameters
[ ] DH initialized with 2048-bit key
[ ] ECDH initialization
[ ] ECDH initialized with curve prime256v1
[ ] SSL options set: 0x01000004
[.] Configuration successful
[ ] Service [szysync] (FD=6) bound to 0.0.0.0:9527
[!] Cannot open log file: /i-data/.system/stunneld.log
[ ] Closing service [szysync]
[ ] Service [szysync] closed (FD=6)
[ ] Sessions cached before flush: 0
[ ] Sessions cached after flush: 0
[ ] Service [szysync] closed
Done
[ ok ] The Linux SCSI Target is already stopped
[warn] Creating missing directory /var/target/pr ... (warning).
[warn] Creating missing directory /var/target/alua ... (warning).
[info] The Linux SCSI Target looks properly installed.
[warn] The configfs filesystem was not mounted, consider adding it to fstab ... (warning).
Rounding down aligned max_sectors from 4294967295 to 4294967288
[info] Loaded core module target_core_file.
[warn] Core module target_core_mod already loaded ... (warning).
[info] Loaded fabric module iscsi_target_mod.
[warn] Startup config /etc/target/scsi_target.lio is empty, skipping ... (warning).
[ ok ] Started The Linux SCSI Target
2017/09/06 19:19:55 [ipnotify] : execute ipnotify STARTUP
[ipnotify_exec.sh]: ******** run ipnotify_exec.sh STARTUP********
[06/Sep/2017:19:19:55]  [network_common.py.pre](check_link_status)(278): the interface bond0 is down or unusable
[06/Sep/2017:19:19:55]  [network_common.py.pre](check_link_status)(278): the interface bond1 is down or unusable
[06/Sep/2017:19:19:55]  [network_common.py.pre](check_link_status)(278): the interface egiga1 is down or unusable
the interface egiga0 is down or unusable
[06/Sep/2017:19:19:55]  [network_common.py.pre](check_link_status)(278): the interface bond0 is down or unusable
[06/Sep/2017:19:19:55]  [network_common.py.pre](check_link_status)(278): the interface bond1 is down or unusable
[06/Sep/2017:19:19:55]  [network_common.py.pre](check_link_status)(278): the interface egiga1 is down or unusable
[06/Sep/2017:19:19:56]  [network_common.py.pre](check_link_status)(278): the interface bond0 is down or unusable
[06/Sep/2017:19:19:56]  [network_common.py.pre](check_link_status)(278): the interface bond1 is down or unusable
[06/Sep/2017:19:19:56]  [network_common.py.pre](check_link_status)(278): the interface egiga1 is down or unusable
Device "egiga1" does not exist.
killall: httpd: no process killed
killall: httpd: no process killed
----------------------------------------------
admin
/i-data/sysvol/admin doesn't exist. Skip it.
----------------------------------------------
music
/i-data/sysvol/music doesn't exist. Skip it.
----------------------------------------------
photo
/i-data/sysvol/photo doesn't exist. Skip it.
----------------------------------------------
video
/i-data/sysvol/video doesn't exist. Skip it.
===> Stopping crond ...
===> Starting crond ...
httpd[3007]: [warn] Init: Session Cache is not configured [hint: SSLSessionCache]
httpd[3007]: [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
httpd[3007]: [warn] RSA server certificate CommonName (CN) `NAS326' does NOT match server name!?
httpd[3007]: [error] mod_auth_zyxel: initialized.
 core_checksum : 2773b03df8b32c243f8b84dcefa79efb
 fwversion : V5.21(AAZF.1)
 img_checksum : 5356a1c083dfd6bc8c74bfd231aa15a6
 modelid : B303
 revision : 50984
 romfile_checksum : A762
 zld_checksum : 102d2dc16f397df0dddc4f1ad6380e52
OK
led_state_map_addr = 6

Please press Enter to activate this console. httpd[3023]: [warn] RSA server certificate is a CA certificate (BasicConstraints: CA == TRUE !?)
httpd[3023]: [warn] RSA server certificate CommonName (CN) `NAS326' does NOT match server name!?
httpd[3023]: [error] mod_auth_zyxel: initialized.

Re: Problem booting Debian-4.9.0-mvebu-tld-12 with 2 hdd's
September 05, 2017 10:52PM
Hi heiko,

kwboot again, interrupt serial console at countdown, and

setenv curr_bootfrom 1
setenv next_bootfrom 1
printenv
boot


Please post the serial console log from the kwboot command until the Debian prompt . If it boots into stock OS then you don't need to post anything after this:

Quote

> Linux version 3.10.39 (root@SDD2SVR2) (gcc version
> 4.8.5 20150209 (prerelease) (crosstool-NG 1.21.0)
> ) #1 Fri May 26 16:47:54 CST 2017
> CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7)
> , cr=10c53c7d
> CPU: PIPT / VIPT nonaliasing data cache, VIPT alia
> sing instruction cache
> Machine: Marvell Armada 380/381/382/385/388 (Devic
> e Tree), model: Marvell Armada 380 STG-328

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Problem booting Debian-4.9.0-mvebu-tld-12 with 2 hdd's
September 08, 2017 02:13PM
Hi Bodhi

I try it with your settings but without luck ;-)

System boot in stock os with default setting.

I test after booting to set up a new password for the stock os and reboot. After reboot the system boot again in stock os but again with default settings (standard password 1234) it seems that the system did not restore my settings and boots every time from 2.

The system boot also without hdd's not from usb.

thanks for your help !!




Sending debug message. Please reboot the target.../
[Type Ctrl-\ + c to quit]
M - 1.73
Booting from NAND flash

General initialization - Version: 1.0.0
Detected Device ID 6810
High speed PHY - Version: 2.0

Init RD NAS topology board SerDes lanes topology details:
 | Lane #  | Speed |  Type       |
 --------------------------------
 |   0    |  06   |  SATA0	|
 |   1    |  05   |  USB3 HOST0	|
 |   2    |  06   |  SATA1	|
 |   5    |  05   |  USB3 HOST1	|
 --------------------------------
High speed PHY - Ended Successfully
DDR3 Training Sequence - Ver TIP-1.26.0
mvSysEnvGetTopologyUpdateInfo: TWSI Read failed
DDR3 Training Sequence - Switching XBAR Window to FastPath Window 
DDR3 Training Sequence - Ended Successfully
Not detected suspend to RAM indication
BootROM: Image checksum verification PASSED

 __   __                      _ _
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ V /  __/ | |
|_|  |_|\__,_|_|    \_/ \___|_|_|
         _   _     ____              _
        | | | |   | __ )  ___   ___ | |_ 
        | | | |___|  _ \ / _ \ / _ \| __| 
        | |_| |___| |_) | (_) | (_) | |_ 
         \___/    |____/ \___/ \___/ \__| 
 ** LOADER **


U-Boot 2013.01-svn48023 (Oct 13 2015 - 09:25:56) Marvell version: 2014_T3.0p6

Board: RD-NAS-88F6820-DDR3
SoC:   MV88F6810 Rev A0
       running 1 CPUs
CPU:   ARM Cortex A9 MPCore (Rev 1) LE
       CPU 0
       CPU    @ 1332 [MHz]
       L2     @ 666 [MHz]
       TClock @ 250 [MHz]
       DDR    @ 666 [MHz]
       DDR 32 Bit Width, FastPath Memory Access, DLB Enabled, ECC Disabled
DRAM:  512 MiB

Map:   Code:			0x1fed0000:0x1ff95d60
       BSS:			0x1ffef2b4
       Stack:			0x1f9cff20
       Heap:			0x1f9d0000:0x1fed0000
       U-Boot Environment:	0x00200000:0x00280000 (NAND)

NAND:  256 MiB
MMC:   mv_sdh: 0
*** Booting kernel from kernel 2 @0x08700000 ***
USB2.0 0: Host Mode
USB3.0 0: Host Mode
USB3.0 1: Host Mode
Board configuration detected:
Net:   
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   RGMII   |     0x01     |
egiga0 [PRIME]
Hit any key to stop autoboot:  0 

NAND read: device 0 offset 0x8700000, size 0xf00000
 15728640 bytes read: OK
*  kernel: cmdline image address = 0x02000000

Starting kernel ...

Power on HDD1 ...
Power on HDD2 ...
Power on USB ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x0
Linux version 3.10.39 (root@SDD2SVR2) (gcc version 4.8.5 20150209 (prerelease) (crosstool-NG 1.21.0) ) #1 Fri May 26 16:47:54 CST 2017
CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: Marvell Armada 380/381/382/385/388 (Device Tree), model: Marvell Armada 380 STG-328
bootconsole [earlycon0] enabled
Memory policy: ECC disabled, Data cache writealloc
CPU: All CPU(s) started in SVC mode.
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=armada-nand:2m(u-boot),2m(env),2m(config),15m(kernel1),110m(rootfs1),15m(kernel2),-(rootfs2) earlyprintk=serial
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 512MB = 512MB total
Memory: 504456k/504456k available, 19832k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xe0800000 - 0xfff00000   ( 503 MB)
    lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .text : 0xc0008000 - 0xc081c8a8   (8275 kB)
      .init : 0xc081d000 - 0xc0e3cd5c   (6272 kB)
      .data : 0xc0e3e000 - 0xc0e950e0   ( 349 kB)
       .bss : 0xc0e950e0 - 0xc0ee2c70   ( 311 kB)
NR_IRQS:16 nr_irqs:16 16

  LSP version: linux-3.10.39-2014_T3.0p7


Sending debug message. Please reboot the target.../
[Type Ctrl-\ + c to quit]
M - 1.73
Booting from NAND flash

General initialization - Version: 1.0.0
Detected Device ID 6810
High speed PHY - Version: 2.0

Init RD NAS topology board SerDes lanes topology details:
 | Lane #  | Speed |  Type       |
 --------------------------------
 |   0    |  06   |  SATA0	|
 |   1    |  05   |  USB3 HOST0	|
 |   2    |  06   |  SATA1	|
 |   5    |  05   |  USB3 HOST1	|
 --------------------------------
High speed PHY - Ended Successfully
DDR3 Training Sequence - Ver TIP-1.26.0
mvSysEnvGetTopologyUpdateInfo: TWSI Read failed
DDR3 Training Sequence - Switching XBAR Window to FastPath Window 
DDR3 Training Sequence - Ended Successfully
Not detected suspend to RAM indication
BootROM: Image checksum verification PASSED

 __   __                      _ _
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ V /  __/ | |
|_|  |_|\__,_|_|    \_/ \___|_|_|
         _   _     ____              _
        | | | |   | __ )  ___   ___ | |_ 
        | | | |___|  _ \ / _ \ / _ \| __| 
        | |_| |___| |_) | (_) | (_) | |_ 
         \___/    |____/ \___/ \___/ \__| 
 ** LOADER **


U-Boot 2013.01-svn48023 (Oct 13 2015 - 09:25:56) Marvell version: 2014_T3.0p6

Board: RD-NAS-88F6820-DDR3
SoC:   MV88F6810 Rev A0
       running 1 CPUs
CPU:   ARM Cortex A9 MPCore (Rev 1) LE
       CPU 0
       CPU    @ 1332 [MHz]
       L2     @ 666 [MHz]
       TClock @ 250 [MHz]
       DDR    @ 666 [MHz]
       DDR 32 Bit Width, FastPath Memory Access, DLB Enabled, ECC Disabled
DRAM:  512 MiB

Map:   Code:			0x1fed0000:0x1ff95d60
       BSS:			0x1ffef2b4
       Stack:			0x1f9cff20
       Heap:			0x1f9d0000:0x1fed0000
       U-Boot Environment:	0x00200000:0x00280000 (NAND)

NAND:  256 MiB
MMC:   mv_sdh: 0
*** Booting kernel from kernel 2 @0x08700000 ***
USB2.0 0: Host Mode
USB3.0 0: Host Mode
USB3.0 1: Host Mode
Board configuration detected:
Net:   
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   RGMII   |     0x01     |
egiga0 [PRIME]
Hit any key to stop autoboot:  0 
Marvell>> printenv
CASset=max
CONTRY_TYPE=FF
FEATURE_BIT=00
MALLOC_len=5
MODEL_ID=B303
MPmode=SMP
PRODUCT_NAME=STG-328
VENDOR_NAME=MitraStar Technology Corp.
autoload=no
baudrate=115200
boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxe net_img net_scr
bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=armada-nand:2m(u-boot),2m(env),2m(config),15m(kernel1),110m(rootfs1),15m(kernel2),-(rootfs2) earlyprintk=serial
bootargs_dflt=$console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel
bootargs_end=:10.4.50.254:255.255.255.0:Armada38x:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=nand read 0x2000000 0x08700000 0xF00000 && bootz 0x2000000
bootcmd_auto=stage_boot $boot_order
bootcmd_custom=if run bootcmd_exec; then; else if run bootcmd_stock_1; then; else run bootcmd_stock_2; reset; fi; fi
bootcmd_custom_sata=if run sata_bootcmd; then; else if run bootcmd_stock_1; then; else run bootcmd_stock_2; reset; fi; fi
bootcmd_exec=run scan_disk; echo Booting from $bootdev $device ...; setenv fdt_skip_update yes; if run load_image; then if run load_dtb; then if run load_initrd; then run set_bootargs; bootz $load_image_addr $load_initrd_addr $load_dtb_addr; fi; fi; fi
bootcmd_fdt=tftpboot 0x2000000 $image_name;tftpboot $fdtaddr $fdtfile;setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_boot=tftpboot 0x2000000 $image_name; setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_edit=tftpboot $fdtaddr $fdtfile; fdt addr $fdtaddr; setenv bootcmd $bootcmd_fdt_boot
bootcmd_lgcy=tftpboot 0x2000000 $image_name; setenv bootargs $bootargs_dflt; bootm 0x2000000;
bootcmd_stock_1=run set_bootargs_stock; echo Booting from NAND kernel 1 ...; nand read 0x2000000 0x00E00000 0xF00000 && bootz 0x2000000
bootcmd_stock_2=run set_bootargs_stock; echo Booting from NAND kernel 2 ...; nand read 0x2000000 0x08700000 0xF00000 && bootz 0x2000000
bootdelay=3
cacheShare=no
change_boot_part=0
console=console=ttyS0,115200
core_checksum_1=e9b3248e8c69ec9ef52a8698d0835aae
core_checksum_2=2773b03df8b32c243f8b84dcefa79efb
curr_bootfrom=2
device_partition=0:1
devices=usb scsi
disaMvPnp=no
disks=0 1 2 3
dtb_file=/boot/dts/armada-380-zyxel-nas326.dtb
eeeEnable=no
enaClockGating=no
enaCpuStream=no
enaFPU=yes
enaMonExt=no
enaWrAllo=no
eth1addr=00:50:43:38:32:25
eth1mtu=1500
eth2addr=00:50:43:38:a6:25
eth2mtu=1500
eth3addr=00:50:43:32:a6:38
eth3mtu=1500
ethact=egiga0
ethaddr=58:8B:F3:DB:DD:3E
ethmtu=1500
ethprime=egiga0
fdt_addr=2040000
fdt_skip_update=yes
fdtaddr=0x1000000
fdtfile=armada-38x-modular.dtb
filesize=0x6e8f80
fwversion_1=V5.21(AAZF.0)
fwversion_2=V5.21(AAZF.1)
ide_path=/
image_name=uImage
img_checksum_1=db4be927b09d7ea9a1284d2e6f330db5
img_checksum_2=5356a1c083dfd6bc8c74bfd231aa15a6
initrd_name=uInitrd
ipaddr=10.4.50.170
kernel_addr=${kernel_addr_1}
kernel_addr_1=0x00000000; run bootcmd_custom; 
kernel_addr_2=0x08700000
kernel_addr_r=2080000
kernel_mtd_1=3
kernel_mtd_2=5
lcd0_enable=0
lcd0_params=640x480-16@60
lcd_panel=0
load_dtb=echo loading DTB $dtb_file ...; ext2load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1000000
load_image=echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/zImage
load_image_addr=0x02000000
load_initrd=echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x2900000
loadaddr=0x02000000
loads_echo=0
modelid_1=B303
modelid_2=B303
mtdids=nand0=armada-nand
mtdparts=mtdparts=armada-nand:2m(u-boot),2m(env),2m(config),15m(kernel1),110m(rootfs1),15m(kernel2),-(rootfs2)
mvNetConfig=mv_net_config=4,(00:50:43:11:11:11,0:1:2:3),mtu=1500
mv_pon_addr=00:50:43:25:a6:38
nandEcc=nfcConfig=4bitecc
netbsd_en=no
netmask=255.255.255.0
netretry=no
next_bootfrom=2
pcieTune=no
pexMode=RC
pxe_files_load=:default.arm-armadaxp-db:default.arm-armadaxp:default.arm
pxefile_addr_r=3100000
ramdisk_addr_r=2880000
revision_1=50967
revision_2=50984
romfile_checksum_1=4EE9
romfile_checksum_2=A762
rootpath=/srv/nfs/
sata_bootcmd=echo Booting from SATA ...; setenv fdt_skip_update yes; run sata_init; ext2load scsi 0:1 $load_image_addr /boot/zImage; ext2load scsi 0:1 $load_dtb_addr /boot/dts/armada-380-zyxel-nas326.dtb; ext2load scsi 0:1 $load_initrd_addr /boot/uInitrd; run sata_set_bootargs; bootz $load_image_addr $load_initrd_addr $load_dtb_addr
sata_delay_reset=0
sata_dma_mode=yes
sata_init=mw.l f1018100 20420000; mw.l f1018140 003ca800; sleep 3; scsi init
sata_set_bootargs=setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "run usb_init";  setenv scan_scsi "run sata_init"; 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 ext2load $dev $disknum:1 $load_image_addr /boot/zImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
script_addr_r=3000000
script_name=boot.scr
scsidevs=0
serial_number=S150Y46042395
serverip=10.4.50.38
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial
set_bootargs_stock=setenv bootargs "console=ttyS0,115200 ubi.mtd=4,2048 rootfstype=ubifs root=ubi0:rootfs1 rw rootdelay=2"
standalone=fsload 0x2000000 $image_name;setenv bootargs $console $nandEcc $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm 0x2000000;
stderr=serial
stdin=serial
stdout=serial
sysimg_mtd_1=4
sysimg_mtd_2=6
usb0Mode=host
usbActive=0
usbType=2
usb_bootcmd=echo Booting from USB ...; setenv fdt_skip_update yes; run usb_init; ext2load usb 0:1 $load_image_addr /boot/zImage; ext2load usb 0:1 $load_dtb_addr /boot/dts/armada-380-zyxel-nas326.dtb; ext2load usb 0:1 $load_initrd_addr /boot/uInitrd; run usb_set_bootargs; bootz $load_image_addr $load_initrd_addr $load_dtb_addr
usb_init=mw.l f1018100 20420000; mw.l f1018140 003E8800; sleep 3; usb start
usb_set_bootargs=setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81
zld_checksum_1=b44f1fe16e53092068270b337dee223c
zld_checksum_2=102d2dc16f397df0dddc4f1ad6380e52

Environment size: 7079/524284 bytes
Marvell>> 

Re: Problem booting Debian-4.9.0-mvebu-tld-12 with 2 hdd's
September 08, 2017 03:10PM
heiko,

You are not setting the envs correctly. I did not see any setenv commands executed in your log. Let's do it a little differently this time.

--------------

Here is the countdown, where the envs must be set

Hit any key to stop autoboot:  0

Interrupt serial console at this point. And you will see the prompt:
Marvell>>

At the prompt, enter these evns
setenv curr_bootfrom 1
setenv next_bootfrom 1
setenv change_boot_part 1

This time we are going to save the envs
saveenv
And then print them out
printenv

And then reset the box to see it boot automatically

reset

Note that when you do a reset like this in serial console, you need to exit kwboot (\-c), and recall the command and execute it again.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Problem booting Debian-4.9.0-mvebu-tld-12 with 2 hdd's
September 09, 2017 07:21AM
Hello bodhi,
perfect job !
That was the point now system boot first hdd and Debian is running.

Thank you very much!!

pi@raspberrypi:~ $ cd Downloads/
pi@raspberrypi:~/Downloads $ sudo ./kwboot -t -B 115200 /dev/ttyUSB0 -d
Sending debug message. Please reboot the target...|
[Type Ctrl-\ + c to quit]
M - 1.73
Booting from NAND flash

General initialization - Version: 1.0.0
Detected Device ID 6810
High speed PHY - Version: 2.0

Init RD NAS topology board SerDes lanes topology details:
 | Lane #  | Speed |  Type       |
 --------------------------------
 |   0    |  06   |  SATA0	|
 |   1    |  05   |  USB3 HOST0	|
 |   2    |  06   |  SATA1	|
 |   5    |  05   |  USB3 HOST1	|
 --------------------------------
High speed PHY - Ended Successfully
DDR3 Training Sequence - Ver TIP-1.26.0
mvSysEnvGetTopologyUpdateInfo: TWSI Read failed
DDR3 Training Sequence - Switching XBAR Window to FastPath Window 
DDR3 Training Sequence - Ended Successfully
Not detected suspend to RAM indication
BootROM: Image checksum verification PASSED

 __   __                      _ _
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ V /  __/ | |
|_|  |_|\__,_|_|    \_/ \___|_|_|
         _   _     ____              _
        | | | |   | __ )  ___   ___ | |_ 
        | | | |___|  _ \ / _ \ / _ \| __| 
        | |_| |___| |_) | (_) | (_) | |_ 
         \___/    |____/ \___/ \___/ \__| 
 ** LOADER **


U-Boot 2013.01-svn48023 (Oct 13 2015 - 09:25:56) Marvell version: 2014_T3.0p6

Board: RD-NAS-88F6820-DDR3
SoC:   MV88F6810 Rev A0
       running 1 CPUs
CPU:   ARM Cortex A9 MPCore (Rev 1) LE
       CPU 0
       CPU    @ 1332 [MHz]
       L2     @ 666 [MHz]
       TClock @ 250 [MHz]
       DDR    @ 666 [MHz]
       DDR 32 Bit Width, FastPath Memory Access, DLB Enabled, ECC Disabled
DRAM:  512 MiB

Map:   Code:			0x1fed0000:0x1ff95d60
       BSS:			0x1ffef2b4
       Stack:			0x1f9cff20
       Heap:			0x1f9d0000:0x1fed0000
       U-Boot Environment:	0x00200000:0x00280000 (NAND)

NAND:  256 MiB
MMC:   mv_sdh: 0
*** Booting kernel from kernel 2 @0x08700000 ***
USB2.0 0: Host Mode
USB3.0 0: Host Mode
USB3.0 1: Host Mode
Board configuration detected:
Net:   
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   RGMII   |     0x01     |
egiga0 [PRIME]
Hit any key to stop autoboot:  0 
Marvell>> setenv curr_bootfrom 1
Marvell>> setenv next_bootfrom 1
Marvell>> setenv change_boot_part 1
Marvell>> saveenv
Saving Environment to NAND...
Erasing Nand...
Writing to Nand... done
Marvell>> printenv
CASset=max
CONTRY_TYPE=FF
FEATURE_BIT=00
MALLOC_len=5
MODEL_ID=B303
MPmode=SMP
PRODUCT_NAME=STG-328
VENDOR_NAME=MitraStar Technology Corp.
autoload=no
baudrate=115200
boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxe net_img net_scr
bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=armada-nand:2m(u-boot),2m(env),2m(config),15m(kernel1),110m(rootfs1),15m(kernel2),-(rootfs2) earlyprintk=serial
bootargs_dflt=$console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel
bootargs_end=:10.4.50.254:255.255.255.0:Armada38x:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=nand read 0x2000000 0x08700000 0xF00000 && bootz 0x2000000
bootcmd_auto=stage_boot $boot_order
bootcmd_custom=if run bootcmd_exec; then; else if run bootcmd_stock_1; then; else run bootcmd_stock_2; reset; fi; fi
bootcmd_custom_sata=if run sata_bootcmd; then; else if run bootcmd_stock_1; then; else run bootcmd_stock_2; reset; fi; fi
bootcmd_exec=run scan_disk; echo Booting from $bootdev $device ...; setenv fdt_skip_update yes; if run load_image; then if run load_dtb; then if run load_initrd; then run set_bootargs; bootz $load_image_addr $load_initrd_addr $load_dtb_addr; fi; fi; fi
bootcmd_fdt=tftpboot 0x2000000 $image_name;tftpboot $fdtaddr $fdtfile;setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_boot=tftpboot 0x2000000 $image_name; setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_edit=tftpboot $fdtaddr $fdtfile; fdt addr $fdtaddr; setenv bootcmd $bootcmd_fdt_boot
bootcmd_lgcy=tftpboot 0x2000000 $image_name; setenv bootargs $bootargs_dflt; bootm 0x2000000;
bootcmd_stock_1=run set_bootargs_stock; echo Booting from NAND kernel 1 ...; nand read 0x2000000 0x00E00000 0xF00000 && bootz 0x2000000
bootcmd_stock_2=run set_bootargs_stock; echo Booting from NAND kernel 2 ...; nand read 0x2000000 0x08700000 0xF00000 && bootz 0x2000000
bootdelay=3
cacheShare=no
change_boot_part=1
console=console=ttyS0,115200
core_checksum_1=e9b3248e8c69ec9ef52a8698d0835aae
core_checksum_2=2773b03df8b32c243f8b84dcefa79efb
curr_bootfrom=1
device_partition=0:1
devices=usb scsi
disaMvPnp=no
disks=0 1 2 3
dtb_file=/boot/dts/armada-380-zyxel-nas326.dtb
eeeEnable=no
enaClockGating=no
enaCpuStream=no
enaFPU=yes
enaMonExt=no
enaWrAllo=no
eth1addr=00:50:43:38:32:25
eth1mtu=1500
eth2addr=00:50:43:38:a6:25
eth2mtu=1500
eth3addr=00:50:43:32:a6:38
eth3mtu=1500
ethact=egiga0
ethaddr=58:8B:F3:DB:DD:3E
ethmtu=1500
ethprime=egiga0
fdt_addr=2040000
fdt_skip_update=yes
fdtaddr=0x1000000
fdtfile=armada-38x-modular.dtb
filesize=0x6e8f80
fwversion_1=V5.21(AAZF.0)
fwversion_2=V5.21(AAZF.1)
ide_path=/
image_name=uImage
img_checksum_1=db4be927b09d7ea9a1284d2e6f330db5
img_checksum_2=5356a1c083dfd6bc8c74bfd231aa15a6
initrd_name=uInitrd
ipaddr=10.4.50.170
kernel_addr=${kernel_addr_1}
kernel_addr_1=0x00000000; run bootcmd_custom; 
kernel_addr_2=0x08700000
kernel_addr_r=2080000
kernel_mtd_1=3
kernel_mtd_2=5
lcd0_enable=0
lcd0_params=640x480-16@60
lcd_panel=0
load_dtb=echo loading DTB $dtb_file ...; ext2load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1000000
load_image=echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/zImage
load_image_addr=0x02000000
load_initrd=echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x2900000
loadaddr=0x02000000
loads_echo=0
modelid_1=B303
modelid_2=B303
mtdids=nand0=armada-nand
mtdparts=mtdparts=armada-nand:2m(u-boot),2m(env),2m(config),15m(kernel1),110m(rootfs1),15m(kernel2),-(rootfs2)
mvNetConfig=mv_net_config=4,(00:50:43:11:11:11,0:1:2:3),mtu=1500
mv_pon_addr=00:50:43:25:a6:38
nandEcc=nfcConfig=4bitecc
netbsd_en=no
netmask=255.255.255.0
netretry=no
next_bootfrom=1
pcieTune=no
pexMode=RC
pxe_files_load=:default.arm-armadaxp-db:default.arm-armadaxp:default.arm
pxefile_addr_r=3100000
ramdisk_addr_r=2880000
revision_1=50967
revision_2=50984
romfile_checksum_1=4EE9
romfile_checksum_2=A762
rootpath=/srv/nfs/
sata_bootcmd=echo Booting from SATA ...; setenv fdt_skip_update yes; run sata_init; ext2load scsi 0:1 $load_image_addr /boot/zImage; ext2load scsi 0:1 $load_dtb_addr /boot/dts/armada-380-zyxel-nas326.dtb; ext2load scsi 0:1 $load_initrd_addr /boot/uInitrd; run sata_set_bootargs; bootz $load_image_addr $load_initrd_addr $load_dtb_addr
sata_delay_reset=0
sata_dma_mode=yes
sata_init=mw.l f1018100 20420000; mw.l f1018140 003ca800; sleep 3; scsi init
sata_set_bootargs=setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "run usb_init";  setenv scan_scsi "run sata_init"; 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 ext2load $dev $disknum:1 $load_image_addr /boot/zImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
script_addr_r=3000000
script_name=boot.scr
scsidevs=0
serial_number=S150Y46042395
serverip=10.4.50.38
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial
set_bootargs_stock=setenv bootargs "console=ttyS0,115200 ubi.mtd=4,2048 rootfstype=ubifs root=ubi0:rootfs1 rw rootdelay=2"
standalone=fsload 0x2000000 $image_name;setenv bootargs $console $nandEcc $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm 0x2000000;
stderr=serial
stdin=serial
stdout=serial
sysimg_mtd_1=4
sysimg_mtd_2=6
usb0Mode=host
usbActive=0
usbType=2
usb_bootcmd=echo Booting from USB ...; setenv fdt_skip_update yes; run usb_init; ext2load usb 0:1 $load_image_addr /boot/zImage; ext2load usb 0:1 $load_dtb_addr /boot/dts/armada-380-zyxel-nas326.dtb; ext2load usb 0:1 $load_initrd_addr /boot/uInitrd; run usb_set_bootargs; bootz $load_image_addr $load_initrd_addr $load_dtb_addr
usb_init=mw.l f1018100 20420000; mw.l f1018140 003E8800; sleep 3; usb start
usb_set_bootargs=setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81
zld_checksum_1=b44f1fe16e53092068270b337dee223c
zld_checksum_2=102d2dc16f397df0dddc4f1ad6380e52

Environment size: 7079/524284 bytes
Marvell>> reset
resetting ...
terminal: Input/output error
pi@raspberrypi:~/Downloads $ sudo ./kwboot -t -B 115200 /dev/ttyUSB0 -d
/dev/ttyUSB0: No such file or directory
pi@raspberrypi:~/Downloads $ sudo ./kwboot -t -B 115200 /dev/ttyUSB0 -d
/dev/ttyUSB0: No such file or directory
pi@raspberrypi:~/Downloads $ sudo ./kwboot -t -B 115200 /dev/ttyUSB0 -d
Sending debug message. Please reboot the target.../
[Type Ctrl-\ + c to quit]
ound 1 device(s).
device scsi 0:1
1 bytes read in 84 ms (0 Bytes/s)
Found bootable drive on scsi 0
Booting from scsi 0:1 ...
loading Image ...
3904400 bytes read in 109 ms (34.2 MiB/s)
loading DTB /boot/dts/armada-380-zyxel-nas326.dtb ...
18234 bytes read in 138 ms (128.9 KiB/s)
loading uInitrd ...
6210503 bytes read in 213 ms (27.8 MiB/s)
*  kernel: cmdline image address = 0x02000000
## Loading init Ramdisk from Legacy Image at 02900000 ...
   Image Name:   initramfs-4.9.0-mvebu-tld-12
   Created:      2017-02-03  23:57:32 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6210439 Bytes = 5.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x01000000
   Loading Ramdisk to 1f3e2000, end 1f9ce387 ... OK
   Loading Device Tree to 00ff8000, end 00fff739 ... OK

   Skipping Device Tree update ('fdt_skip_update' = yes)

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.0-mvebu-tld-12 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #2 SMP PREEMPT Wed Feb 1 02:31:29 PST 2017
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt:Machine model: Zyxel NAS326
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 15 pages/cpu @dfbd9000 s30796 r8192 d22452 u61440
[    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 mtdparts=armada-nand:2m(u-boot),2m(env),2m(config),15m(kernel1),110m(rootfs1),15m(kernel2),-(rootfs2) earlyprintk=serial
[    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: 500168K/524288K available (8192K kernel code, 690K rwdata, 2052K rodata, 1024K init, 386K bss, 24120K reserved, 0K cma-reserved, 0K highmem)
[    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]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0daca28   ( 691 kB)
[    0.000000]        .bss : 0xc0daca28 - 0xc0e0d4f8   ( 387 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	Build-time adjustment of leaf fanout to 32.
[    0.000000] 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=1
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] mvebu_mbus: [Firmware Warn]: deprecated mbus-mvebu Device Tree, suspend/resume will not work
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000000] Switching to timer-based delay loop, resolution 40ns
[    0.000004] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.007883] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.019118] Console: colour dummy device 80x30
[    0.023632] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.034040] pid_max: default: 32768 minimum: 301
[    0.038800] Security Framework initialized
[    0.042998] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.049672] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.057238] CPU: Testing write buffer coherency: ok
[    0.062319] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.068061] Setting up static identity map for 0x100000 - 0x100058
[    0.074382] mvebu-soc-id: MVEBU SoC ID=0x6810, Rev=0x4
[    0.079659] mvebu-pmsu: Initializing Power Management Service Unit
[    0.203631] Brought up 1 CPUs
[    0.206671] SMP: Total of 1 processors activated (50.00 BogoMIPS).
[    0.212906] CPU: All CPU(s) started in SVC mode.
[    0.218072] devtmpfs: initialized
[    0.233696] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.241636] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.251599] prandom: seed boundary self test passed
[    0.258618] prandom: 100 self tests passed
[    0.262779] pinctrl core: initialized pinctrl subsystem
[    0.268789] NET: Registered protocol family 16
[    0.274082] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.303611] cpuidle: using governor ladder
[    0.333504] cpuidle: using governor menu
[    0.337581] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.345641] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.351645] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.359792] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.464533] vgaarb: loaded
[    0.467472] SCSI subsystem initialized
[    0.473816] usbcore: registered new interface driver usbfs
[    0.479690] usbcore: registered new interface driver hub
[    0.485173] usbcore: registered new device driver usb
[    0.490639] media: Linux media interface: v0.10
[    0.495488] Linux video capture interface: v2.00
[    0.501308] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.537475] VFS: Disk quotas dquot_6.6.0
[    0.541574] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.558652] NET: Registered protocol family 2
[    0.563893] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.571015] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.577580] TCP: Hash tables configured (established 4096 bind 4096)
[    0.584379] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.590278] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.596720] NET: Registered protocol family 1
[    0.621427] RPC: Registered named UNIX socket transport module.
[    0.627404] RPC: Registered udp transport module.
[    0.632202] RPC: Registered tcp transport module.
[    0.636967] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.643601] Unpacking initramfs...
[    0.889118] Freeing initrd memory: 6068K (df3e2000 - df9cf000)
[    0.895186] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.901948] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.911138] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.917664] audit: initializing netlink subsys (disabled)
[    0.923182] audit: type=2000 audit(0.910:1): initialized
[    0.929000] Initialise system trusted keyrings
[    0.943863] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.950416] zbud: loaded
[    0.963609] NFS: Registering the id_resolver key type
[    0.968729] Key type id_resolver registered
[    0.973009] Key type id_legacy registered
[    0.977090] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.983859] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.990409] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.997832] orangefs_debugfs_init: called with debug mask: :none: :0:
[    1.004493] orangefs_init: module version upstream loaded
[    1.012490] Key type asymmetric registered
[    1.016653] Asymmetric key parser 'x509' registered
[    1.021714] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    1.029160] io scheduler noop registered
[    1.033292] io scheduler deadline registered
[    1.037642] io scheduler cfq registered (default)
[    1.043377] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.052286] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    1.059218] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.065940] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.072899] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.078868] PCI: bus0: Fast back to back transfers disabled
[    1.084604] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.092750] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.100920] PCI: bus1: Fast back to back transfers enabled
[    1.106680] PCI: bus2: Fast back to back transfers enabled
[    1.112332] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.117362] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.122926] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.181817] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.189428] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.251805] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.325801] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.334440] console [ttyS0] disabled
[    1.358592] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 15625000) is a 16550A
[    1.367779] console [ttyS0] enabled
[    1.367779] console [ttyS0] enabled
[    1.374879] bootconsole [earlycon0] disabled
[    1.374879] bootconsole [earlycon0] disabled
[    1.384556] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.393880] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    1.413760] scsi host0: ahci-mvebu
[    1.427590] scsi host1: ahci-mvebu
[    1.431263] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 41
[    1.439293] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 41
[    1.447858] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.455789] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xda
[    1.462194] nand: Macronix MX30LF2G18AC
[    1.466115] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.473753] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.480919] Bad block table found at page 131008, version 0x01
[    1.487254] Bad block table found at page 130944, version 0x01
[    1.493460] 7 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.499568] Creating 7 MTD partitions on "pxa3xx_nand-0":
[    1.505013] 0x000000000000-0x000000200000 : "U-Boot"
[    1.520854] 0x000000200000-0x000000400000 : "U-Boot env"
[    1.537106] 0x000000400000-0x000000e00000 : "Config"
[    1.553006] 0x000000e00000-0x000001d00000 : "Kernel-1"
[    1.569080] 0x000001d00000-0x000008700000 : "RootFS-1"
[    1.585595] 0x000008700000-0x000009600000 : "Kernel-2"
[    1.601748] 0x000009600000-0x000010000000 : "RootFS-2"
[    1.619424] libphy: Fixed MDIO Bus: probed
[    1.624792] libphy: mdio_driver_register: mv88e6085
[    1.630306] libphy: orion_mdio_bus: probed
[    1.639058] mvneta f1070000.ethernet eth0: Using random mac address 16:ce:f5:f5:56:6a
[    1.648009] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.654742] ehci-pci: EHCI PCI platform driver
[    1.659275] ehci-orion: EHCI orion driver
[    1.663572] orion-ehci f1058000.usb: EHCI Host Controller
[    1.668999] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.677547] orion-ehci f1058000.usb: irq 37, io mem 0xf1058000
[    1.711317] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.717390] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.724226] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.731491] usb usb1: Product: EHCI Host Controller
[    1.736381] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 ehci_hcd
[    1.742859] usb usb1: SerialNumber: f1058000.usb
[    1.747939] hub 1-0:1.0: USB hub found
[    1.751818] hub 1-0:1.0: 1 port detected
[    1.756325] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.761780] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.769376] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.777990] xhci-hcd f10f0000.usb3: irq 44, io mem 0xf10f0000
[    1.783917] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.790745] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.798020] usb usb2: Product: xHCI Host Controller
[    1.802930] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.809403] usb usb2: SerialNumber: f10f0000.usb3
[    1.814546] hub 2-0:1.0: USB hub found
[    1.818408] hub 2-0:1.0: 1 port detected
[    1.822568] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.827900] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.835476] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.843701] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.850507] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.857773] usb usb3: Product: xHCI Host Controller
[    1.863430] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.869888] usb usb3: SerialNumber: f10f0000.usb3
[    1.875021] hub 3-0:1.0: USB hub found
[    1.878864] hub 3-0:1.0: 1 port detected
[    1.883090] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.888428] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.896031] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.904655] xhci-hcd f10f8000.usb3: irq 45, io mem 0xf10f8000
[    1.910505] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    1.917336] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.924597] usb usb4: Product: xHCI Host Controller
[    1.929487] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.936010] usb usb4: SerialNumber: f10f8000.usb3
[    1.941131] hub 4-0:1.0: USB hub found
[    1.945004] hub 4-0:1.0: 1 port detected
[    1.949137] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.954499] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    1.962026] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    1.968321] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.976554] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    1.983384] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    1.989620] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.996894] ata1.00: ATA-8: WDC WD10EARS-00Y5B1, 80.00A80, max UDMA/133
[    1.996899] ata1.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    2.003664] ata2.00: ATA-8: WDC WD10EARS-00Y5B1, 80.00A80, max UDMA/133
[    2.003668] ata2.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    2.010505] ata1.00: configured for UDMA/133
[    2.024116] ata2.00: configured for UDMA/133
[    2.028647] scsi 0:0:0:0: Direct-Access     ATA      WDC WD10EARS-00Y 0A80 PQ: 0 ANSI: 5
[    2.041126] usb usb5: Product: xHCI Host Controller
[    2.046039] usb usb5: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    2.052603] usb usb5: SerialNumber: f10f8000.usb3
[    2.057731] hub 5-0:1.0: USB hub found
[    2.061611] hub 5-0:1.0: 1 port detected
[    2.065916] usbcore: registered new interface driver usblp
[    2.071634] usbcore: registered new interface driver usb-storage
[    2.077929] mousedev: PS/2 mouse device common for all mice
[    2.084137] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[    2.084268] sd 0:0:0:0: [sda] Write Protect is off
[    2.084328] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.098210]  sda: sda1
[    2.098776] scsi 1:0:0:0: Direct-Access     ATA      WDC WD10EARS-00Y 0A80 PQ: 0 ANSI: 5
[    2.099117] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    2.124911] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    2.133019] sd 1:0:0:0: [sdb] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[    2.133148] sd 1:0:0:0: [sdb] Write Protect is off
[    2.133208] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.156525] i2c /dev entries driver
[    2.172408] orion_wdt: Initial timeout 171 sec
[    2.180314] marvell-cesa f1090000.crypto: CESA device successfully registered
[    2.188092]  sdb: sdb1
[    2.191284] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[    2.196824] hidraw: raw HID events driver (C) Jiri Kosina
[    2.202909] usbcore: registered new interface driver usbhid
[    2.208497] usbhid: USB HID core driver
[    2.212659] drop_monitor: Initializing network drop monitor service
[    2.218970] Netfilter messages via NETLINK v0.30.
[    2.223819] ip_set: protocol 6
[    2.227065] NET: Registered protocol family 10
[    2.242168] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.249104] NET: Registered protocol family 17
[    2.253913] 8021q: 802.1Q VLAN Support v1.8
[    2.258132] Key type dns_resolver registered
[    2.262577] ThumbEE CPU extension supported.
[    2.266863] Registering SWP/SWPB emulation handler
[    2.272161] registered taskstats version 1
[    2.276270] Loading compiled-in X.509 certificates
[    2.281100] zswap: loaded using pool lzo/zbud
[    2.334803] Key type big_key registered
[    2.342307] Key type encrypted registered
[    2.347569] v5.0-sata0: supplied by pwr_en_sata0
[    2.352467] v12.0-sata0: supplied by pwr_en_sata0
[    2.357446] v5.0-sata1: supplied by pwr_en_sata1
[    2.362253] v12.0-sata1: supplied by pwr_en_sata1
[    2.367694] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[    2.374923] armada38x-rtc f10a3800.rtc: setting system clock to 2017-09-09 13:13:46 UTC (1504962826)
[    2.384343] v5.0-sata0: disabling
[    2.387666] v12.0-sata0: disabling
[    2.391076] v5.0-sata1: disabling
[    2.394430] v12.0-sata1: disabling
[    2.398879] Freeing unused kernel memory: 1024K (c0c00000 - c0d00000)
Loading, please wait...
[    2.451977] systemd-udevd[1341]: starting version 215
[    2.458010] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.585528] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    2.610083] sd 1:0:0:0: Attached scsi generic sg1 type 0
[    2.758264] random: fast init done
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.25.2
fsck: error 2 (No such file or directory) while executing fsck.ext2 for /dev/sda1
fsck exited with status code 8
done.
Warning: File system check failed but did not detect errors
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[   20.156651] systemd-udevd[1540]: starting version 215
. ok 
[ ok ] Synthesizing the initial hotplug events...done.
[ ok ] Waiting for /dev to be fully populated...done.
[ ok ] Activating swap...done.
[   21.682887] EXT2-fs (sda1): warning: mounting unchecked fs, running e2fsck is recommended
[ ok ] Activating lvm and md swap...done.
[....] Checking file systems...fsck from util-linux 2.25.2
done.
[ ok ] Cleaning up temporary files... /tmp.
[ ok ] Mounting local filesystems...done.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables ...done.
[   23.457658] random: crng init done
[   23.881408] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   24.891334] mvneta f1070000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   24.899202] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/58:8b:f3:db:dd:3e
Sending on   LPF/eth0/58:8b:f3:db:dd:3e
Sending on   Socket/fallback
DHCPREQUEST on eth0 to 255.255.255.255 port 67
^[[A


DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 16
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
No DHCPOFFERS received.
Trying recorded lease 192.168.178.24
PING 192.168.178.1 (192.168.178.1) 56(84) bytes of data.

--- 192.168.178.1 ping statistics ---
1 packets transmitted, 0 received, +1 errors, 100% packet loss, time 0ms

bound: immediate renewal.
DHCPREQUEST on eth0 to 192.168.178.1 port 67
send_packet: Network is unreachable
send_packet: please consult README file regarding broadcast address.
dhclient.c:2243: Failed to send 300 byte long packet over fallback interface.
done.
[ ok ] Starting rpcbind daemon....
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2435 (syslogd)
. ok 
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting periodic command scheduler: cron.
[ ok ] Starting system message bus: dbus.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2434 (klogd)
. ok 
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Starting MariaDB database server: mysqld ..

Debian GNU/Linux 8 debian ttyS0

debian login: 

Re: Problem booting Debian-4.9.0-mvebu-tld-12 with 2 hdd's
September 09, 2017 04:12PM
heiko,

> Hello bodhi,
> perfect job !
> That was the point now system boot first hdd and D
> ebian is running.
>

Cool!

Could you shutdown completely, and power up again to test this scenario. Please post serial console log again. I would like to see how the box boots with the 2 HDDs being initialized.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Problem booting Debian-4.9.0-mvebu-tld-12 with 2 hdd's
September 11, 2017 03:03PM
hi bodhi,

my hdd's are over 5 years old and I think I have to renew them, I had some problems with it.
I have to format the rootfs disk and install your last version Debian-4.12.4-mvebu-tld-1-rootfs-bodhi.tar.bz2 (23 Aug 2017)

Then I boot the box with booth hdd's, and the system boots debian.

serial console log

If you need more information, please let my know.

heiko


pi@raspberrypi:~ $ cd Downloads/
pi@raspberrypi:~/Downloads $ sudo ./kwboot -t -B 115200 /dev/ttyUSB0 -d
Sending debug message. Please reboot the target...-
[Type Ctrl-\ + c to quit]
M - 1.73
Booting from NAND flash

General initialization - Version: 1.0.0
Detected Device ID 6810
High speed PHY - Version: 2.0

Init RD NAS topology board SerDes lanes topology details:
 | Lane #  | Speed |  Type       |
 --------------------------------
 |   0    |  06   |  SATA0	|
 |   1    |  05   |  USB3 HOST0	|
 |   2    |  06   |  SATA1	|
 |   5    |  05   |  USB3 HOST1	|
 --------------------------------
High speed PHY - Ended Successfully
DDR3 Training Sequence - Ver TIP-1.26.0
mvSysEnvGetTopologyUpdateInfo: TWSI Read failed
DDR3 Training Sequence - Switching XBAR Window to FastPath Window 
DDR3 Training Sequence - Ended Successfully
Not detected suspend to RAM indication
BootROM: Image checksum verification PASSED

 __   __                      _ _
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ V /  __/ | |
|_|  |_|\__,_|_|    \_/ \___|_|_|
         _   _     ____              _
        | | | |   | __ )  ___   ___ | |_ 
        | | | |___|  _ \ / _ \ / _ \| __| 
        | |_| |___| |_) | (_) | (_) | |_ 
         \___/    |____/ \___/ \___/ \__| 
 ** LOADER **


U-Boot 2013.01-svn48023 (Oct 13 2015 - 09:25:56) Marvell version: 2014_T3.0p6

Board: RD-NAS-88F6820-DDR3
SoC:   MV88F6810 Rev A0
       running 1 CPUs
CPU:   ARM Cortex A9 MPCore (Rev 1) LE
       CPU 0
       CPU    @ 1332 [MHz]
       L2     @ 666 [MHz]
       TClock @ 250 [MHz]
       DDR    @ 666 [MHz]
       DDR 32 Bit Width, FastPath Memory Access, DLB Enabled, ECC Disabled
DRAM:  512 MiB

Map:   Code:			0x1fed0000:0x1ff95d60
       BSS:			0x1ffef2b4
       Stack:			0x1f9cff20
       Heap:			0x1f9d0000:0x1fed0000
       U-Boot Environment:	0x00200000:0x00280000 (NAND)

NAND:  256 MiB
MMC:   mv_sdh: 0
*** Booting kernel from kernel 1 @0x00000000; run bootcmd_custom;  ***
USB2.0 0: Host Mode
USB3.0 0: Host Mode
USB3.0 1: Host Mode
Board configuration detected:
Net:   
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   RGMII   |     0x01     |
egiga0 [PRIME]
Hit any key to stop autoboot:  0 

NAND read: device 0 whole chip
Attempt to read outside the flash area
 0 bytes read: ERROR
running scan_disk ...
Scan device usb
(Re)start USB...
USB0:   Port (usbActive) : 0	Interface (usbType = 2) : USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
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 scsi
AHCI init for unit0
Target spinup took 0 ms.
Target spinup took 0 ms.

Error: SCSI Controller(s) 1B4B:9215 1B4B:9235 not found
scanning bus for devices...
  Device 0: (0:0) Vendor: ATA Prod.:  Rev: 
            Type: Hard Disk
            Capacity: not available
timeout exit!
Found 1 device(s).
device scsi 0:1
1 bytes read in 109 ms (0 Bytes/s)
Found bootable drive on scsi 0
Booting from scsi 0:1 ...
loading Image ...
4021296 bytes read in 145 ms (26.4 MiB/s)
loading DTB /boot/dts/armada-380-zyxel-nas326.dtb ...
18589 bytes read in 127 ms (142.6 KiB/s)
loading uInitrd ...
7070236 bytes read in 204 ms (33.1 MiB/s)
*  kernel: cmdline image address = 0x02000000
## Loading init Ramdisk from Legacy Image at 02900000 ...
   Image Name:   initramfs-4.12.4-mvebu-tld-1
   Created:      2017-08-22  11:10:43 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7070172 Bytes = 6.7 MiB
   Load Address: 00000000
   Entry Point:  00000000
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x01000000
   Loading Ramdisk to 1f310000, end 1f9ce1dc ... OK
   Loading Device Tree to 00ff8000, end 00fff89c ... OK

   Skipping Device Tree update ('fdt_skip_update' = yes)

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.4-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #1 SMP PREEMPT Sat Jul 29 21:56:37 PDT 2017
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Zyxel NAS326
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 17 pages/cpu @dfbd7000 s40460 r8192 d20980 u69632
[    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 mtdparts=armada-nand:2m(u-boot),2m(env),2m(config),15m(kernel1),110m(rootfs1),15m(kernel2),-(rootfs2) earlyprintk=serial
[    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: 499324K/524288K available (8192K kernel code, 712K rwdata, 2080K rodata, 1024K init, 331K bss, 24964K reserved, 0K cma-reserved, 0K highmem)
[    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]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0db2308   ( 713 kB)
[    0.000000]        .bss : 0xc0db9a84 - 0xc0e0ca58   ( 332 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000000] Switching to timer-based delay loop, resolution 40ns
[    0.000004] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.007883] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.019126] Console: colour dummy device 80x30
[    0.023641] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.034034] pid_max: default: 32768 minimum: 301
[    0.038788] Security Framework initialized
[    0.042986] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.049661] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.057160] CPU: Testing write buffer coherency: ok
[    0.062235] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.103753] Setting up static identity map for 0x100000 - 0x100060
[    0.110069] mvebu-soc-id: MVEBU SoC ID=0x6810, Rev=0x4
[    0.115374] mvebu-pmsu: Initializing Power Management Service Unit
[    0.173660] smp: Bringing up secondary CPUs ...
[    0.178256] smp: Brought up 1 node, 1 CPU
[    0.182331] SMP: Total of 1 processors activated (50.00 BogoMIPS).
[    0.188579] CPU: All CPU(s) started in SVC mode.
[    0.193723] devtmpfs: initialized
[    0.203730] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.211631] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.221552] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.227888] prandom: seed boundary self test passed
[    0.234869] prandom: 100 self tests passed
[    0.239030] pinctrl core: initialized pinctrl subsystem
[    0.244999] NET: Registered protocol family 16
[    0.250057] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.263606] cpuidle: using governor ladder
[    0.267785] cpuidle: using governor menu
[    0.271877] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.279951] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.286066] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.294229] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.374659] vgaarb: loaded
[    0.377684] SCSI subsystem initialized
[    0.383892] usbcore: registered new interface driver usbfs
[    0.389758] usbcore: registered new interface driver hub
[    0.395234] usbcore: registered new device driver usb
[    0.400741] media: Linux media interface: v0.10
[    0.405621] Linux video capture interface: v2.00
[    0.411436] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.459049] VFS: Disk quotas dquot_6.6.0
[    0.463119] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.479644] NET: Registered protocol family 2
[    0.484901] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.492060] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.498589] TCP: Hash tables configured (established 4096 bind 4096)
[    0.505430] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.511329] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.517798] NET: Registered protocol family 1
[    0.542536] RPC: Registered named UNIX socket transport module.
[    0.548512] RPC: Registered udp transport module.
[    0.553309] RPC: Registered tcp transport module.
[    0.558075] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.564688] Unpacking initramfs...
[    0.842139] Freeing initrd memory: 6908K
[    0.846229] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.853018] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.862206] audit: initializing netlink subsys (disabled)
[    0.868025] audit: type=2000 audit(0.846:1): state=initialized audit_enabled=0 res=1
[    0.876280] Initialise system trusted keyrings
[    0.876306] Key type blacklist registered
[    0.876410] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.876469] zbud: loaded
[    0.904972] NFS: Registering the id_resolver key type
[    0.910090] Key type id_resolver registered
[    0.914379] Key type id_legacy registered
[    0.918461] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.925230] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.931764] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.939162] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.945845] orangefs_init: module version upstream loaded
[    0.954129] Key type asymmetric registered
[    0.958292] Asymmetric key parser 'x509' registered
[    0.963346] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.970791] io scheduler noop registered
[    0.974854] io scheduler deadline registered
[    0.979219] io scheduler cfq registered (default)
[    0.985057] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.993929] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    1.000861] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.007587] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.014545] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.020466] PCI: bus0: Fast back to back transfers disabled
[    1.026289] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.034376] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.042592] PCI: bus1: Fast back to back transfers enabled
[    1.048307] PCI: bus2: Fast back to back transfers enabled
[    1.053926] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.058956] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.064532] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.131932] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy sg intr )
[    1.139803] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.201919] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy sg intr )
[    1.273153] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.281400] console [ttyS0] disabled
[    1.306025] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 22, base_baud = 15625000) is a 16550A
[    1.315144] console [ttyS0] enabled
[    1.315144] console [ttyS0] enabled
[    1.322243] bootconsole [earlycon0] disabled
[    1.322243] bootconsole [earlycon0] disabled
[    1.331930] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.341004] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    1.361018] scsi host0: ahci-mvebu
[    1.374854] scsi host1: ahci-mvebu
[    1.378519] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 41
[    1.386549] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 41
[    1.395129] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.403061] nand: device found, Manufacturer ID: 0xc2, Chip ID: 0xda
[    1.409431] nand: Macronix MX30LF2G18AC
[    1.413379] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.420997] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.428187] Bad block table found at page 131008, version 0x01
[    1.434519] Bad block table found at page 130944, version 0x01
[    1.440639] 7 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.446776] Creating 7 MTD partitions on "pxa3xx_nand-0":
[    1.452213] 0x000000000000-0x000000200000 : "U-Boot"
[    1.468053] 0x000000200000-0x000000400000 : "U-Boot env"
[    1.484284] 0x000000400000-0x000000e00000 : "Config"
[    1.500086] 0x000000e00000-0x000001d00000 : "Kernel-1"
[    1.516151] 0x000001d00000-0x000008700000 : "RootFS-1"
[    1.532614] 0x000008700000-0x000009600000 : "Kernel-2"
[    1.548660] 0x000009600000-0x000010000000 : "RootFS-2"
[    1.566606] libphy: Fixed MDIO Bus: probed
[    1.572382] libphy: orion_mdio_bus: probed
[    1.580810] mvneta f1070000.ethernet eth0: Using random mac address 52:90:b2:fb:88:e8
[    1.590100] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.596887] ehci-pci: EHCI PCI platform driver
[    1.601571] ehci-orion: EHCI orion driver
[    1.605716] orion-ehci f1058000.usb: EHCI Host Controller
[    1.611143] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    1.618940] orion-ehci f1058000.usb: irq 37, io mem 0xf1058000
[    1.651450] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    1.657523] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.664368] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.671632] usb usb1: Product: EHCI Host Controller
[    1.676523] usb usb1: Manufacturer: Linux 4.12.4-mvebu-tld-1 ehci_hcd
[    1.683002] usb usb1: SerialNumber: f1058000.usb
[    1.688015] hub 1-0:1.0: USB hub found
[    1.691903] hub 1-0:1.0: 1 port detected
[    1.696389] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.701842] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.709439] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.718049] xhci-hcd f10f0000.usb3: irq 44, io mem 0xf10f0000
[    1.723971] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    1.730796] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.738080] usb usb2: Product: xHCI Host Controller
[    1.742998] usb usb2: Manufacturer: Linux 4.12.4-mvebu-tld-1 xhci-hcd
[    1.749476] usb usb2: SerialNumber: f10f0000.usb3
[    1.754580] hub 2-0:1.0: USB hub found
[    1.758440] hub 2-0:1.0: 1 port detected
[    1.762576] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.767909] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    1.775483] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.783709] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    1.790515] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.797779] usb usb3: Product: xHCI Host Controller
[    1.802825] usb usb3: Manufacturer: Linux 4.12.4-mvebu-tld-1 xhci-hcd
[    1.809282] usb usb3: SerialNumber: f10f0000.usb3
[    1.814377] hub 3-0:1.0: USB hub found
[    1.818218] hub 3-0:1.0: 1 port detected
[    1.822444] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.827781] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.835377] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.843996] xhci-hcd f10f8000.usb3: irq 45, io mem 0xf10f8000
[    1.849839] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002
[    1.856671] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.863931] usb usb4: Product: xHCI Host Controller
[    1.868821] usb usb4: Manufacturer: Linux 4.12.4-mvebu-tld-1 xhci-hcd
[    1.875341] usb usb4: SerialNumber: f10f8000.usb3
[    1.880434] hub 4-0:1.0: USB hub found
[    1.884307] hub 4-0:1.0: 1 port detected
[    1.888417] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.893778] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    1.901332] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.909533] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003
[    1.916371] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    1.922655] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    1.928888] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.936216] usb usb5: Product: xHCI Host Controller
[    1.941107] usb usb5: Manufacturer: Linux 4.12.4-mvebu-tld-1 xhci-hcd
[    1.947592] ata1.00: ATA-8: WDC WD10EARS-00Y5B1, 80.00A80, max UDMA/133
[    1.947596] ata1.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    1.947619] ata2.00: ATA-8: WDC WD10EARS-00Y5B1, 80.00A80, max UDMA/133
[    1.947623] ata2.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    1.967789] ata1.00: configured for UDMA/133
[    1.967816] ata2.00: configured for UDMA/133
[    1.983305] usb usb5: SerialNumber: f10f8000.usb3
[    1.988261] scsi 0:0:0:0: Direct-Access     ATA      WDC WD10EARS-00Y 0A80 PQ: 0 ANSI: 5
[    1.989024] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[    1.989057] sd 0:0:0:0: [sda] Write Protect is off
[    1.989116] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.006121]  sda: sda1
[    2.006881] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    2.011937] scsi 1:0:0:0: Direct-Access     ATA      WDC WD10EARS-00Y 0A80 PQ: 0 ANSI: 5
[    2.012649] sd 1:0:0:0: [sdb] 1953525168 512-byte logical blocks: (1.00 TB/932 GiB)
[    2.012681] sd 1:0:0:0: [sdb] Write Protect is off
[    2.012739] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.061153] hub 5-0:1.0: USB hub found
[    2.065034] hub 5-0:1.0: 1 port detected
[    2.069330] usbcore: registered new interface driver usblp
[    2.075111] usbcore: registered new interface driver usb-storage
[    2.081377] mousedev: PS/2 mouse device common for all mice
[    2.087528]  sdb: sdb1
[    2.090595] sd 1:0:0:0: [sdb] Attached SCSI removable disk
[    2.096761] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    2.104878] i2c /dev entries driver
[    2.119981] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[    2.132752] orion_wdt: Initial timeout 171 sec
[    2.140529] marvell-cesa f1090000.crypto: CESA device successfully registered
[    2.148067] hidraw: raw HID events driver (C) Jiri Kosina
[    2.154058] usbcore: registered new interface driver usbhid
[    2.159645] usbhid: USB HID core driver
[    2.163851] drop_monitor: Initializing network drop monitor service
[    2.170168] Netfilter messages via NETLINK v0.30.
[    2.175116] ip_set: protocol 6
[    2.178372] NET: Registered protocol family 10
[    2.193437] Segment Routing with IPv6
[    2.197148] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.204120] NET: Registered protocol family 17
[    2.208608] 8021q: 802.1Q VLAN Support v1.8
[    2.213016] Key type dns_resolver registered
[    2.217396] ThumbEE CPU extension supported.
[    2.221711] Registering SWP/SWPB emulation handler
[    2.226978] registered taskstats version 1
[    2.231085] Loading compiled-in X.509 certificates
[    2.236079] zswap: loaded using pool lzo/zbud
[    2.292315] Key type big_key registered
[    2.299686] Key type encrypted registered
[    2.305174] v5.0-sata0: supplied by pwr_en_sata0
[    2.309834] v12.0-sata0: supplied by pwr_en_sata0
[    2.315560] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[    2.322799] armada38x-rtc f10a3800.rtc: setting system clock to 2017-09-11 20:20:14 UTC (1505161214)
[    2.332249] v5.0-sata1: supplied by pwr_en_sata1
[    2.336920] v12.0-sata1: supplied by pwr_en_sata1
[    2.341738] v5.0-sata0: disabling
[    2.345062] v12.0-sata0: disabling
[    2.348471] v5.0-sata1: disabling
[    2.351843] v12.0-sata1: disabling
[    2.356262] Freeing unused kernel memory: 1024K
Loading, please wait...
starting version 232
[    2.411335] random: udevadm: uninitialized urandom read (16 bytes read)
[    2.419485] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.419736] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.419788] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.444516] random: udevadm: uninitialized urandom read (16 bytes read)
[    2.451189] random: udevadm: uninitialized urandom read (16 bytes read)
[    2.458269] random: udevadm: uninitialized urandom read (16 bytes read)
[    2.465186] random: udevadm: uninitialized urandom read (16 bytes read)
[    2.472120] random: udevadm: uninitialized urandom read (16 bytes read)
[    2.478987] random: udevadm: uninitialized urandom read (16 bytes read)
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Warning: fsck not present, so sk[   13.430680] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
ipping root file system
[   13.447400] random: fast init done
[   13.487535] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Setting hostname to 'debian'...done.
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
. ok 
[ ok ] Synthesizing the initial hotplug events...done.
[....] Waiting for /dev to be fully populated...[   16.369012] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   16.406857] sd 1:0:0:0: Attached scsi generic sg1 type 0
done.
[ ok ] Activating swap:.
[   17.473939] EXT4-fs (sda1): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.29.2
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sda1 
e2fsck 1.43.4 (31-Jan-2017)
rootfs: clean, 22020/61054976 files, 4320801/244190208 blocks
. ok 
[   19.256523] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[ ok ] Will now activate lvm and md swap:done.
[info] Will now check all file systems.
fsck from util-linux 2.29.2
Checking all file systems.
LABEL=rootfs is mounted
[ ok ] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable..
[   19.804260] random: crng init done
[ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done.
[ ok .
[ ok ] Will now mount local filesystems:.
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables...done.
[ ok ] Initializing random number generator...done.
[   21.203295] m88e1318_get_wol: phy_id = 0x1410dd1 OK
[   21.208323] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/58:8b:f3:db:dd:3e
Sending on   LPF/eth0/58:8b:f3:db:dd:3e
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
[   25.381894] mvneta f1070000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   25.389936] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
DHCPREQUEST of 192.168.178.43 on eth0 to 255.255.255.255 port 67
DHCPOFFER of 192.168.178.43 from 192.168.178.1
DHCPACK of 192.168.178.43 from 192.168.178.1
invoke-rc.d: could not determine current runlevel
bound to 192.168.178.43 -- renewal in 410047 seconds.
done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2600 (syslogd)
. ok 
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting periodic command scheduler: cron.
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2601 (klogd)
. ok 
[ ok ] Starting NTP server: ntpd.
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 9 debian ttyS0

debian login: 

Re: Problem booting Debian-4.9.0-mvebu-tld-12 with 2 hdd's
September 11, 2017 06:17PM
heiko,

It looks good!

One more test if you have time. Shutdown, swap the HDDs (one was in slot 1 now inserted in slot 2, and vice versa). Power up.

(See if now the selected SCSI device will be number 1)

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Problem booting Debian-4.9.0-mvebu-tld-12 with 2 hdd's
September 13, 2017 11:13AM
hello bodhi,

when I test with rootfs in second slot system is not booting.

pi@raspberrypi:~ $ cd Downloads/
pi@raspberrypi:~/Downloads $ sudo ./kwboot -t -B 115200 /dev/ttyUSB0 -d
Sending debug message. Please reboot the target...|
[Type Ctrl-\ + c to quit]
M - 1.73
Booting from NAND flash

General initialization - Version: 1.0.0
Detected Device ID 6810
High speed PHY - Version: 2.0

Init RD NAS topology board SerDes lanes topology details:
 | Lane #  | Speed |  Type       |
 --------------------------------
 |   0    |  06   |  SATA0	|
 |   1    |  05   |  USB3 HOST0	|
 |   2    |  06   |  SATA1	|
 |   5    |  05   |  USB3 HOST1	|
 --------------------------------
High speed PHY - Ended Successfully
DDR3 Training Sequence - Ver TIP-1.26.0
mvSysEnvGetTopologyUpdateInfo: TWSI Read failed
DDR3 Training Sequence - Switching XBAR Window to FastPath Window 
DDR3 Training Sequence - Ended Successfully
Not detected suspend to RAM indication
BootROM: Image checksum verification PASSED

 __   __                      _ _
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ V /  __/ | |
|_|  |_|\__,_|_|    \_/ \___|_|_|
         _   _     ____              _
        | | | |   | __ )  ___   ___ | |_ 
        | | | |___|  _ \ / _ \ / _ \| __| 
        | |_| |___| |_) | (_) | (_) | |_ 
         \___/    |____/ \___/ \___/ \__| 
 ** LOADER **


U-Boot 2013.01-svn48023 (Oct 13 2015 - 09:25:56) Marvell version: 2014_T3.0p6

Board: RD-NAS-88F6820-DDR3
SoC:   MV88F6810 Rev A0
       running 1 CPUs
CPU:   ARM Cortex A9 MPCore (Rev 1) LE
       CPU 0
       CPU    @ 1332 [MHz]
       L2     @ 666 [MHz]
       TClock @ 250 [MHz]
       DDR    @ 666 [MHz]
       DDR 32 Bit Width, FastPath Memory Access, DLB Enabled, ECC Disabled
DRAM:  512 MiB

Map:   Code:			0x1fed0000:0x1ff95d60
       BSS:			0x1ffef2b4
       Stack:			0x1f9cff20
       Heap:			0x1f9d0000:0x1fed0000
       U-Boot Environment:	0x00200000:0x00280000 (NAND)

NAND:  256 MiB
MMC:   mv_sdh: 0
*** Booting kernel from kernel 1 @0x00000000; run bootcmd_custom;  ***
USB2.0 0: Host Mode
USB3.0 0: Host Mode
USB3.0 1: Host Mode
Board configuration detected:
Net:   
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   RGMII   |     0x01     |
egiga0 [PRIME]
Hit any key to stop autoboot:  0 

NAND read: device 0 whole chip
Attempt to read outside the flash area
 0 bytes read: ERROR
running scan_disk ...
Scan device usb
(Re)start USB...
USB0:   Port (usbActive) : 0	Interface (usbType = 2) : USB EHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
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 scsi
AHCI init for unit0
Target spinup took 0 ms.
Target spinup took 0 ms.

Error: SCSI Controller(s) 1B4B:9215 1B4B:9235 not found
scanning bus for devices...

heiko
Re: Problem booting Debian-4.9.0-mvebu-tld-12 with 2 hdd's
September 13, 2017 05:27PM
heiko,

Error: SCSI Controller(s) 1B4B:9215 1B4B:9235 not found
scanning bus for devices...


Did it hang here? was there any other output after this?

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Problem booting Debian-4.9.0-mvebu-tld-12 with 2 hdd's
September 14, 2017 01:59PM
hi,

yes it hangs and no other output, i wait for aprox 5min and then i restart with the rootfs in first slot and everything was ok,
Re: Problem booting Debian-4.9.0-mvebu-tld-12 with 2 hdd's
September 14, 2017 11:14PM
heiko,

> yes it hangs and no other output, i wait for aprox
> 5min and then i restart with the rootfs in first
> slot and everything was ok,

Ah, sorry. That's right. Looking back to the envs closely, I've only initialized the 1st slot in stock u-boot :) So the 2nd slot will only work while the kernel is booting.

Let's make it a requirement that the rootfs must be in the 1stslot for now. When I have time, I'll look into the u-boot initialization command for the 2nd slot.

Thanks for testing, good job :)

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Problem booting Debian-4.9.0-mvebu-tld-12 with 2 hdd's
September 16, 2017 03:16AM
hello bodhi,

no problem when I can test something for you let me know.

heiko



Edited 1 time(s). Last edit at 09/17/2017 05:05AM by heiko.
Re: Problem booting Debian-4.9.0-mvebu-tld-12 with 2 hdd's
September 18, 2017 01:52PM
hello bodhi,

every time when I reboot the box (from ssh) it stops booting and both led from the hdd are on.
Serial adapter is unplugged.
I can boot in debian os again when i conect the serial adaper and start kwboot.

Do you have an idea what I can do ?

heiko
Re: Problem booting Debian-4.9.0-mvebu-tld-12 with 2 hdd's
September 18, 2017 05:54PM
heiko,

When you kwboot, do you just let it boot or do you have to interrupt it?

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Problem booting Debian-4.9.0-mvebu-tld-12 with 2 hdd's
September 19, 2017 02:40PM
hello bodhi,

i just let it boot no interupt.

heiko
Re: Problem booting Debian-4.9.0-mvebu-tld-12 with 2 hdd's
October 01, 2017 10:26AM
hello bodhi,

can i do something to fix the problem ?

heiko
Author:

Your Email:


Subject:


Spam prevention:
Please, solve the mathematical question and enter the answer in the input field below. This is for blocking bots that try to post this form automatically.
Question: how much is 21 plus 6?
Message: