Welcome! Log In Create A New Profile

Advanced

ix2-200 boots USB but not HDD

Posted by damnit_ 
ix2-200 boots USB but not HDD
February 06, 2020 12:36PM
My ix2-200 running stock is setup per Nobiscuit but I'm not able to boot from internal flash and disk. Works fine with USB boot to disk. When I flashed my uImage and uInitrd files to nand there was a bad block, not sure if that's the cause or how to resolve but here's the pertinent info:

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: RD-88F6281A LE

U-Boot 1.1.4 (Sep  8 2009 - 09:31:54) Marvell version: 3.4.14

Mapower version: 2.0 (32MB) (2009/09/08)

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CEE60

Soc: 88F6281 A0 (DDR2)
CPU running @ 1000Mhz L2 running @ 333Mhz
SysClock = 333Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB
DRAM Total size 256MB  16bit width
Flash:  0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:32 MB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled

Module 0 is RGMII
Module 1 is TDM

USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0, egiga1 [PRIME]
Fan lookup table initialized.

Current remote temperature: 40
Current fan speed: 0

Hit any key to stop autoboot:  0
Marvell>> usb start
(Re)start USB...
USB:   scanning bus for devices... 3 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
Marvell>> setenv bootargs_console 'console=ttyS0,115200 mtdparts=orion_nand:0x300000@0x100000(uImage),0x1000000@0x540000(uInitrd) root=/dev/mapper/debian--vg-root rootdelay=10'
Marvell>> setenv bootargs $(bootargs_console)
Marvell>> ext2load usb 0:1 0x00800000 /uImage-new
....
.
......
............
.........................
...................................................
....................................................................................................

2076928 bytes read
Marvell>> ext2load usb 0:1 0x01100000 /uInitrd-new
....
.
......
............
.........................
...................................................
......................................................................................................
.................................................................................................................................................................................................................
....................................................................................................................................................................................................................................................................................................................................................................................................................
....
..................................................................................................................................................................................................................................................................................................

11411979 bytes read
Marvell>> bootm 0x00800000 0x01100000
## Booting image at 00800000 ...
   Image Name:   Linux-3.16.0-6
   Created:      2020-02-06  12:34:50 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2076864 Bytes =  2 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 01100000 ...
   Image Name:   initramfs
   Created:      2020-02-06  12:37:39 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    11411915 Bytes = 10.9 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.16.0-6-kirkwood (debian-kernel@lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 Debian 3.16.56-1+deb8u1 (2018-05-08)
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Marvell RD-88F6281 Reference Board
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,115200 mtdparts=orion_nand:0x300000@0x100000(uImage),0x1000000@0x540000(uInitrd) root=/dev/mapper/debian--vg-root rootdelay=10
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 242372K/262144K available (3919K kernel code, 361K rwdata, 1444K rodata, 278K init, 289K bss, 19772K reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
[    0.000000]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc05451c4   (5365 kB)
[    0.000000]       .init : 0xc0546000 - 0xc058b8dc   ( 279 kB)
[    0.000000]       .data : 0xc058c000 - 0xc05e6720   ( 362 kB)
[    0.000000]        .bss : 0xc05e6720 - 0xc062eb54   ( 290 kB)
[    0.000000] NR_IRQS:114
[    0.000015] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474836475ns
[   15.650214] Console: colour dummy device 80x30
[   15.650245] Calibrating delay loop... 989.18 BogoMIPS (lpj=1978368)
[   15.673949] pid_max: default: 32768 minimum: 301
[   15.674077] Security Framework initialized
[   15.674133] Yama: disabled by default; enable with sysctl kernel.yama.*
[   15.674226] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[   15.674247] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[   15.675208] Initializing cgroup subsys memory
[   15.675259] Initializing cgroup subsys devices
[   15.675324] Initializing cgroup subsys freezer
[   15.675357] Initializing cgroup subsys net_cls
[   15.675413] Initializing cgroup subsys blkio
[   15.675458] Initializing cgroup subsys perf_event
[   15.675486] Initializing cgroup subsys net_prio
[   15.675591] CPU: Testing write buffer coherency: ok
[   15.675707] ftrace: allocating 16386 entries in 33 pages
[   15.704432] Setting up static identity map for 0x3b4f90 - 0x3b4fe8
[   15.708526] devtmpfs: initialized
[   15.711599] futex hash table entries: 256 (order: -1, 3072 bytes)
[   15.712262] pinctrl core: initialized pinctrl subsystem
[   15.712840] regulator-dummy: no parameters
[   15.713401] NET: Registered protocol family 16
[   15.713860] DMA: preallocated 256 KiB pool for atomic coherent allocations
[   15.715381] cpuidle: using governor ladder
[   15.715412] cpuidle: using governor menu
[   15.715519] Kirkwood: MV88F6281-A0, TCLK=200000000.
[   15.715543] Feroceon L2: Enabling L2
[   15.715585] Feroceon L2: Cache support initialised.
[   15.718085] Kirkwood PCIe port 0: link down
[   15.718097] PCI: bus0 uses PCIe port 0
[   15.718370] PCI host bridge to bus 0000:00
[   15.718393] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[   15.718407] pci_bus 0000:00: root bus resource [io  0x1000-0xffff]
[   15.718420] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[   15.718820] PCI: bus0: Fast back to back transfers disabled
[   15.724247] Switched to clocksource orion_clocksource
[   15.750873] NET: Registered protocol family 2
[   15.752066] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[   15.752110] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[   15.752145] TCP: Hash tables configured (established 2048 bind 2048)
[   15.752215] TCP: reno registered
[   15.752230] UDP hash table entries: 256 (order: 0, 4096 bytes)
[   15.752295] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[   15.752519] NET: Registered protocol family 1
[   15.752887] Unpacking initramfs...
[   16.941298] Freeing initrd memory: 11140K (c1101000 - c1be2000)
[   16.942957] audit: initializing netlink subsys (disabled)
[   16.943043] audit: type=2000 audit(1.284:1): initialized
[   16.944052] zbud: loaded
[   16.944383] VFS: Disk quotas dquot_6.5.2
[   16.944444] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[   16.944576] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[   16.944839] msgmni has been set to 495
[   16.947202] alg: No test for stdrng (krng)
[   16.947341] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[   16.947576] io scheduler noop registered
[   16.947762] io scheduler cfq registered (default)
[   16.948533] mv_xor mv_xor.0: Marvell shared XOR driver
[   16.968377] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[   16.988373] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[   16.988594] mv_xor mv_xor.1: Marvell shared XOR driver
[   17.008372] mv_xor mv_xor.1: Marvell XOR: ( xor cpy )
[   17.028372] mv_xor mv_xor.1: Marvell XOR: ( xor cpy )
[   17.028902] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   17.030113] console [ttyS0] disabled
[   17.050122] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33, base_baud = 12500000) is a 16550A
[   17.572518] console [ttyS0] enabled
[   17.577734] nand: device found, Manufacturer ID: 0xad, Chip ID: 0x75
[   17.584149] nand: Hynix NAND 32MiB 3,3V 8-bit
[   17.588541] nand: 32MiB, SLC, page size: 512, OOB size: 16
[   17.594074] Scanning device for bad blocks
[   17.696104] Bad eraseblock 895 at 0x000000dfc000
[   17.780170] Bad eraseblock 1622 at 0x000001958000
[   17.831375] 2 cmdlinepart partitions found on MTD device orion_nand
[   17.837688] Creating 2 MTD partitions on "orion_nand":
[   17.842878] 0x000000100000-0x000000400000 : "uImage"
[   17.849359] 0x000000540000-0x000001540000 : "uInitrd"
[   17.856684] mousedev: PS/2 mouse device common for all mice
[   17.862893] rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
[   17.868907] i2c /dev entries driver
[   17.872886] ledtrig-cpu: registered to indicate activity on CPUs
[   17.879277] TCP: cubic registered
[   17.882638] NET: Registered protocol family 17
[   17.888009] registered taskstats version 1
[   17.893506] rtc-mv rtc-mv: setting system clock to 2020-02-06 18:11:47 UTC (1581012707)
[   17.903579] Freeing unused kernel memory: 276K (c0546000 - c058b000)
Loading, please wait...
[   17.992106] systemd-udevd[47]: starting version 215
[   18.006887] random: systemd-udevd: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[   18.093199] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   18.137384] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address aa:00:00:00:00:01
[   18.171351] usbcore: registered new interface driver usbfs
[   18.201439] usbcore: registered new interface driver hub
[   18.219461] SCSI subsystem initialized
[   18.242684] usbcore: registered new device driver usb
[   18.265972] libphy: orion_mdio_bus: probed
[   18.282701] mvsdio mvsdio: no pins associated
[   18.288596] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   18.331674] ehci-orion: EHCI orion driver
[   19.428137] mv643xx_eth_port mv643xx_eth_port.1 eth1: port 0 with MAC address 00:50:43:dd:0d:04
[   19.459632] sata_mv sata_mv.0: cannot get optional clkdev
[   19.474700] sata_mv sata_mv.0: slots 32 ports 2
[   19.485206] scsi0 : sata_mv
[   19.489077] scsi1 : sata_mv
[   19.492714] ata1: SATA max UDMA/133 irq 21
[   19.496855] ata2: SATA max UDMA/133 irq 21
[   19.501289] orion-ehci orion-ehci.0: EHCI Host Controller
[   19.508014] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[   19.515912] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[   19.532273] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[   19.538466] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   19.545317] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   19.552595] usb usb1: Product: EHCI Host Controller
[   19.557511] usb usb1: Manufacturer: Linux 3.16.0-6-kirkwood ehci_hcd
[   19.563909] usb usb1: SerialNumber: orion-ehci.0
[   19.570073] hub 1-0:1.0: USB hub found
[   19.573911] hub 1-0:1.0: 1 port detected
[   19.888283] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   19.980293] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   20.000321] ata1.00: ATA-8: ST2000DM001-9YN164, CC4C, max UDMA/133
[   20.006555] ata1.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   20.032809] usb 1-1: New USB device found, idVendor=058f, idProduct=6254
[   20.039578] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[   20.051855] hub 1-1:1.0: USB hub found
[   20.055859] hub 1-1:1.0: 4 ports detected
[   20.276342] ata1.00: configured for UDMA/133
[   20.281095] scsi 0:0:0:0: Direct-Access     ATA      ST2000DM001-9YN1 CC4C PQ: 0 ANSI: 5
[   20.344282] usb 1-1.1: new high-speed USB device number 3 using orion-ehci
[   20.458685] usb 1-1.1: New USB device found, idVendor=154b, idProduct=005b
[   20.465623] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   20.472995] usb 1-1.1: Product: USB 2.0 FD
[   20.477130] usb 1-1.1: Manufacturer: PNY Technologies
[   20.482221] usb 1-1.1: SerialNumber: AD1CHD1200000071
[   20.499387] usb-storage 1-1.1:1.0: USB Mass Storage device detected
[   20.506132] scsi2 : usb-storage 1-1.1:1.0
[   20.512244] usbcore: registered new interface driver usb-storage
[   20.768294] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   20.788323] ata2.00: ATA-8: ST2000DM001-9YN164, CC4C, max UDMA/133
[   20.794551] ata2.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   21.072326] ata2.00: configured for UDMA/133
[   21.077083] scsi 1:0:0:0: Direct-Access     ATA      ST2000DM001-9YN1 CC4C PQ: 0 ANSI: 5
[   21.112652] sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[   21.120475] sd 0:0:0:0: [sda] 4096-byte physical blocks
[   21.126477] sd 1:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[   21.134294] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[   21.140962] sd 0:0:0:0: [sda] Write Protect is off
[   21.146120] sd 1:0:0:0: [sdb] Write Protect is off
[   21.151098] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   21.160351] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   21.192630]  sda: sda1
[   21.197041] sd 0:0:0:0: [sda] Attached SCSI disk
[   21.272077]  sdb: sdb1
[   21.276455] sd 1:0:0:0: [sdb] Attached SCSI disk
[   21.287191] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   21.293108] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   21.747052] scsi 2:0:0:0: Direct-Access     PNY      USB 2.0 FD       1100 PQ: 0 ANSI: 4
[   21.761494] sd 2:0:0:0: [sdc] 15814656 512-byte logical blocks: (8.09 GB/7.54 GiB)
[   21.773423] sd 2:0:0:0: Attached scsi generic sg2 type 0
[   21.781401] sd 2:0:0:0: [sdc] Write Protect is off
[   21.787089] sd 2:0:0:0: [sdc] No Caching mode page found
[   21.792460] sd 2:0:0:0: [sdc] Assuming drive cache: write through
[   21.804740]  sdc: sdc1
[   21.817625] sd 2:0:0:0: [sdc] Attached SCSI removable disk
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... Begin: Assembling all MD arrays ... [   31.719841] random: nonblocking pool is initialized
[   31.730698] md: md0 stopped.
[   31.749502] md: bind<sdb1>
[   31.759358] md: bind<sda1>
[   31.780750] md: raid1 personality registered for level 1
[   31.787359] md/raid1:md0: active with 2 out of 2 mirrors
[   31.793070] created bitmap (15 pages) for device md0
[   31.803830] md0: bitmap initialized from disk: read 1 pages, set 0 of 29807 bits
[   31.872371] md0: detected capacity change from 0 to 2000263577600
[   31.892449]  md0: p1 p2 < p5 >
mdadm: /dev/md/0 has been started with 2 drives.
Success: assembled all arrays.
done.
[   32.137537] device-mapper: uevent: version 1.0.3
[   32.144452] device-mapper: ioctl: 4.27.0-ioctl (2013-10-30) initialised: dm-devel@redhat.com
done.
Begin: Running /scripts/local-premount ... [   32.713935] PM: Starting manual resume from disk
done.
Begin: Will now check root file system ... fsck from util-linux 2.25.2
[/sbin/fsck.ext4 (1) -- /dev/mapper/debian--vg-root] fsck.ext4 -a -C0 /dev/mapper/debian--vg-root
/dev/mapper/debian--vg-root: clean, 33576/122028032 files, 7902544/488095744 blocks
done.
[   34.229726] EXT4-fs (dm-0): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
[   34.740323] systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
[   34.754061] systemd[1]: Detected architecture 'arm'.

Welcome to Debian GNU/Linux 8 (jessie)!

[   34.901342] systemd[1]: Inserted module 'autofs4'
[   34.955833] NET: Registered protocol family 10
[   34.961732] systemd[1]: Inserted module 'ipv6'
[   34.973842] systemd[1]: Set hostname to <debian>.
[   35.587984] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
[   35.607070] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
[   35.615275] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[   35.623038] systemd[1]: Expecting device dev-ttyS0.device...
         Expecting device dev-ttyS0.device...
[   35.640473] systemd[1]: Starting Remote File Systems (Pre).
[  OK  ] Reached target Remote File Systems (Pre).
[   35.656413] systemd[1]: Reached target Remote File Systems (Pre).
[   35.662793] systemd[1]: Starting Arbitrary Executable File Formats File System Automount Point.
[  OK  ] Set up automount Arbitrary Executable File Formats F...utomount Point.
[   35.684426] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[   35.694054] systemd[1]: Starting Dispatch Password Requests to Console Directory Watch.
[   35.702413] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[   35.710546] systemd[1]: Starting Paths.
[  OK  ] Reached target Paths.
[   35.724414] systemd[1]: Reached target Paths.
[   35.728962] systemd[1]: Expecting device dev-mapper-debian\x2d\x2dvg\x2dswap_1.device...
         Expecting device dev-mapper-debian\x2d\x2dvg\x2dswap_1.device...
[   35.748449] systemd[1]: Expecting device dev-disk-by\x2duuid-c0abad6a\x2d44f2\x2d4ff6\x2d875e\x2db1af51953e5b.device...
         Expecting device dev-disk-by\x2duuid-c0abad6a\x2d44f...53e5b.device...
[   35.772431] systemd[1]: Starting Root Slice.
[  OK  ] Created slice Root Slice.
[   35.784409] systemd[1]: Created slice Root Slice.
[   35.789283] systemd[1]: Starting User and Session Slice.
[  OK  ] Created slice User and Session Slice.
[   35.804414] systemd[1]: Created slice User and Session Slice.
[   35.810328] systemd[1]: Starting Delayed Shutdown Socket.
[  OK  ] Listening on Delayed Shutdown Socket.
[   35.824417] systemd[1]: Listening on Delayed Shutdown Socket.
[   35.830333] systemd[1]: Starting /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[   35.848414] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[   35.855551] systemd[1]: Starting Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[   35.872412] systemd[1]: Listening on Journal Socket (/dev/log).
[   35.878507] systemd[1]: Starting LVM2 metadata daemon socket.
[  OK  ] Listening on LVM2 metadata daemon socket.
[   35.896409] systemd[1]: Listening on LVM2 metadata daemon socket.
[   35.902673] systemd[1]: Starting Device-mapper event daemon FIFOs.
[  OK  ] Listening on Device-mapper event daemon FIFOs.
[   35.920410] systemd[1]: Listening on Device-mapper event daemon FIFOs.
[   35.927140] systemd[1]: Starting udev Control Socket.
[  OK  ] Listening on udev Control Socket.
[   35.944411] systemd[1]: Listening on udev Control Socket.
[   35.950012] systemd[1]: Starting udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
[   35.964411] systemd[1]: Listening on udev Kernel Socket.
[   35.969918] systemd[1]: Starting Journal Socket.
[  OK  ] Listening on Journal Socket.
[   35.984414] systemd[1]: Listening on Journal Socket.
[   35.989642] systemd[1]: Starting System Slice.
[  OK  ] Created slice System Slice.
[   36.004417] systemd[1]: Created slice System Slice.
[   36.009529] systemd[1]: Started File System Check on Root Device.
[   36.015767] systemd[1]: Starting system-systemd\x2dfsck.slice.
[  OK  ] Created slice system-systemd\x2dfsck.slice.
[   36.032419] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[   36.038860] systemd[1]: Starting system-getty.slice.
[  OK  ] Created slice system-getty.slice.
[   36.056414] systemd[1]: Created slice system-getty.slice.
[   36.061981] systemd[1]: Starting system-serial\x2dgetty.slice.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[   36.080414] systemd[1]: Created slice system-serial\x2dgetty.slice.
[   36.086946] systemd[1]: Starting Increase datagram queue length...
         Starting Increase datagram queue length...
[   36.193221] systemd[1]: Starting Load Kernel Modules...
         Starting Load Kernel Modules...
[   36.212866] systemd[1]: Starting Create list of required static device nodes for the current kernel...
         Starting Create list of required static device nodes...rrent kernel...
[   36.258167] systemd[1]: Mounting Debug File System...
         Mounting Debug File System...
[   36.370844] systemd[1]: Started Set Up Additional Binary Formats.
[   36.377229] systemd[1]: Mounted Huge Pages File System.
[   36.382643] systemd[1]: Starting udev Coldplug all Devices...
         Starting udev Coldplug all Devices...
[   36.399871] systemd[1]: Mounting POSIX Message Queue File System...
         Mounting POSIX Message Queue File System...
[   36.423657] systemd[1]: Starting Remount Root and Kernel File Systems...
         Starting Remount Root and Kernel File Systems...
[   36.459825] systemd[1]: Starting Slices.
[  OK  ] Reached target Slices.
[   36.484524] systemd[1]: Reached target Slices.
[  OK  ] Mounted POSIX Message Queue File System.
[   36.507482] systemd[1]: Mounted POSIX Message Queue File System.
[  OK  ] Mounted Debug File System.
[   36.541619] systemd[1]: Mounted Debug File System.
[  OK  ] Started Increase datagram queue length.
[   36.560434] systemd[1]: Started Increase datagram queue length.
[  OK  ] Started Load Kernel Modules.
[   36.576416] systemd[1]: Started Load Kernel Modules.
[  OK  ] Started Create list of required static device nodes ...current kernel.
[   36.597313] systemd[1]: Started Create list of required static device nodes for the current kernel.
[   36.646483] EXT4-fs (dm-0): re-mounted. Opts: errors=remount-ro
[  OK  ] Started Remount Root and Kernel File Systems.
[   36.700491] systemd[1]: Started Remount Root and Kernel File Systems.
[  OK  ] Started udev Coldplug all Devices.
[   36.744447] systemd[1]: Started udev Coldplug all Devices.
[   36.895844] systemd[1]: Starting udev Wait for Complete Device Initialization...
         Starting udev Wait for Complete Device Initialization...
[   36.955547] systemd[1]: Started Various fixups to make systemd work better on Debian.
[   36.964188] systemd[1]: Starting Load/Save Random Seed...
         Starting Load/Save Random Seed...
[   36.984559] systemd[1]: Starting Create Static Device Nodes in /dev...
         Starting Create Static Device Nodes in /dev...
[   37.008177] systemd[1]: Starting Apply Kernel Variables...
         Starting Apply Kernel Variables...
[   37.042352] systemd[1]: Mounted Configuration File System.
[   37.055569] systemd[1]: Mounted FUSE Control File System.
[   37.061374] systemd[1]: Starting Syslog Socket.
[  OK  ] Listening on Syslog Socket.
[   37.084500] systemd[1]: Listening on Syslog Socket.
[   37.091298] systemd[1]: Starting Journal Service...
         Starting Journal Service...
[  OK  ] Started Journal Service.
[   37.124648] systemd[1]: Started Journal Service.
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started Create Static Device Nodes in /dev.
         Starting udev Kernel Device Manager...
[  OK  ] Reached target Local File Systems (Pre).
[  OK  [   37.382636] systemd-udevd[190]: starting version 215
] Started udev Kernel Device Manager.
         Starting LSB: MD array assembly...
[  OK  ] Started udev Wait for Complete Device Initialization.
         Starting Activation of LVM2 logical volumes...
         Starting Copy rules generated while the root was ro...
[  OK  ] Started Copy rules generated while the root was ro.
[  OK  ] Started LSB: MD array assembly.
[   38.068534] MV-CESA:Could not register sha1 driver
[   38.073646] MV-CESA:Could not register hmac-sha1 driver
[  OK  ] Found device /dev/ttyS0.
[  OK  ] Started Activation of LVM2 logical volumes.
[  OK  ] Created slice system-ifup.slice.
[  OK  ] Reached target Encrypted Volumes.
         Starting Activation of LVM2 logical volumes...
[  OK  ] Found device /dev/mapper/debian--vg-swap_1.
         Activating swap /dev/mapper/debian--vg-swap_1...
         Starting MD array monitor...
[  OK  ] Started MD array monitor.
[   39.246414] Adding 741372k swap on /dev/mapper/debian--vg-swap_1.  Priority:-1 extents:1 across:741372k FS
[  OK  ] Found device /dev/disk/by-uuid/c0abad6a-44f2-4ff6-875e-b1af51953e5b.
[  OK  ] Activated swap /dev/mapper/debian--vg-swap_1.
[  OK  ] Started Activation of LVM2 logical volumes.
         Starting Monitoring of LVM2 mirrors, snapshots etc. ...ress polling...
[  OK  ] Reached target Swap.
         Starting File System Check on /dev/disk/by-uuid/c0ab...b1af51953e5b...
[  OK  ] Started Monitoring of LVM2 mirrors, snapshots etc. u...ogress polling.
[   24.097248] systemd-fsck[250]: /dev/md0p1: clean, 19/62248 files, 38109/248976 blocks
[  OK  ] Started File System Check on /dev/disk/by-uuid/c0aba...e-b1af51953e5b.
         Mounting /boot...
[   39.859363] EXT4-fs (md0p1): mounting ext2 file system using the ext4 subsystem
[   40.020911] EXT4-fs (md0p1): mounted filesystem without journal. Opts: (null)
[  OK  ] Mounted /boot.
[  OK  ] Reached target Local File Systems.
         Starting Create Volatile Files and Directories...
[  OK  ] Reached target Remote File Systems.
         Starting Trigger Flushing of Journal to Persistent Storage...
         Starting LSB: Raise network interfaces....
[   40.178847] systemd-journald[188]: Received request to flush runtime journal from PID 1
[  OK  ] Started Trigger Flushing of Journal to Persistent Storage.
[  OK  ] Started Create Volatile Files and Directories.
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[   41.742959] mv643xx_eth_port mv643xx_eth_port.1 eth1: link down
[   41.750276] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[  OK  ] Started LSB: Raise network interfaces..
         Starting ifup for eth1...
[  OK  ] Started ifup for eth1.
[  OK  ] Reached target Network.
[  OK  ] Reached target Network is Online.
         Starting LSB: RPC portmapper replacement...
[  OK  ] Started LSB: RPC portmapper replacement.
[  OK  ] Reached target RPC Port Mapper.
         Starting LSB: NFS support files common to client and server...
[   42.989617] RPC: Registered named UNIX socket transport module.
[   42.995621] RPC: Registered udp transport module.
[   43.000363] RPC: Registered tcp transport module.
[   43.005103] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   43.033226] FS-Cache: Loaded
[   43.081250] FS-Cache: Netfs 'nfs' registered for caching
[   43.168966] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[  OK  ] Started LSB: NFS support files common to client and server.
[  OK  ] Reached target System Initialization.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Timers.
[  OK  ] Reached target Basic System.
         Starting Regular background program processing daemon...
[  OK  ] Started Regular background program processing daemon.
         Starting Deferred execution scheduler...
[  OK  ] Started Deferred execution scheduler.
         Starting OpenBSD Secure Shell server...
         Starting /etc/rc.local Compatibility...
         Starting Login Service...
         Starting LSB: exim Mail Transport Agent...
         Starting D-Bus System Message Bus...
[  OK  ] Started D-Bus System Message Bus.
         Starting System Logging Service...
         Starting Permit User Sessions...
[  OK  ] Started OpenBSD Secure Shell server.
[  OK  ] Started /etc/rc.local Compatibility.
[  OK  ] Started Permit User Sessions.
[   44.113643] mv643xx_eth_port mv643xx_eth_port.1 eth1: link up, 1000 Mb/s, full duplex, flow control disabled
[   44.123748] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
[  OK  ] Started System Logging Service.
[  OK  ] Started Login Service.
         Starting Getty on tty1...
[  OK  ] Started Getty on tty1.
         Starting Serial Getty on ttyS0...
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started LSB: exim Mail Transport Agent.
[  OK  ] Reached target Multi-User System.
[  OK  ] Reached target Graphical Interface.
         Starting Update UTMP about System Runlevel Changes...
[  OK  ] Started Update UTMP about System Runlevel Changes.

Debian GNU/Linux 8 debian ttyS0

debian login: root
Password:
Last login: Thu Feb  6 10:15:30 EST 2020 on ttyS0
Linux debian 3.16.0-6-kirkwood #1 Debian 3.16.56-1+deb8u1 (2018-05-08) armv5tel

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@debian:~#

Marvell>> printenv
baudrate=115200
loads_echo=0
ipaddr=10.4.50.165
serverip=10.4.50.5
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
console=console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x1f00000@0x100000(root)
CASset=min
MALLOC_len=1
ethprime=egiga1
bootargs_root=root=/dev/nfs rw
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
ethmtu=1500
eth1addr=00:50:43:dd:0d:04
eth1mtu=1500
mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
FanHysteresis=2
FanTempStart=58
uboot_start=0x0
uboot_size=0xc0000
env_start=0xa0000
env_size=0x20000
kernel_start=0x100000
kernel_size=0x300000
initrd_start=0x540000
initrd_size=0x300000
flash_load=run make_boot_args load1 load2 boot
load1=nand read.e 0x2000000 $(kernel_start) $(kernel_size)
load2=nand read.e 0x4500000 $(initrd_start) $(initrd_size)
boot=bootm 0x2000000 0x4500000
make_boot_args=setenv bootargs console=ttyS0,115200 mtdparts=nand_mtd:;setenv bootargs $(bootargs)$(uboot_size)@$(uboot_start)(uboot),;setenv bootargs $(bootargs)$(env_size)@$(env_start)(env),;setenv bootargs $(bootargs)$(kernel_size)@$(kernel_start)(zImage),;setenv bootargs $(bootargs)$(initrd_size)@$(initrd_start)(initrd),;setenv bootargs $(bootargs)128m@0x0(flash);
iomega=123
ethaddr=AA:00:00:00:00:01
arcNumber=1682
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:0x100000@0x000000(uboot)ro,0x20000@0xA0000(uboot_env),0x300000@0x100000(uImage),0x1000000@0x540000(uInitrd)
bootcmd=setenv bootargs $(bootargs_console); nand read 0x800000 uImage; nand read 0x1100000 uInitrd; bootm 0x00800000 0x01100000
bootargs_console=console=ttyS0,115200 mtdparts=orion_nand:0x30000@0x100000(uImage),0x1000000@0x540000(uInitrd) root=/dev/mapper/debian--vg-root rootdelay=10
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=yes
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
bootdelay=3
disaMvPnp=no
hddPowerCtrl=no
enaAutoRecovery=yes
ethact=egiga1

Environment size: 2344/16380 bytes
Marvell>> boot

NAND read: device 0 offset 0x100000, size 0x300000
 3145728 bytes read: OK

NAND read: device 0 offset 0x540000, size 0x1000000
 16777216 bytes read: ERROR
## Booting image at 00800000 ...
   Image Name:   Linux-3.16.0-6
   Created:      2020-02-06  12:34:50 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2076864 Bytes =  2 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 01100000 ...
   Image Name:   initramfs
   Created:      2020-02-06  12:37:39 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    11411915 Bytes = 10.9 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... Bad Data CRC
Re: ix2-200 boots USB but not HDD
February 06, 2020 04:19PM
@damnit_,

[   17.696104] Bad eraseblock 895 at 0x000000dfc000

Bad block at ~14M location.

And you tried to load uInird at 5.25 MB, and uInitrd size is 10.9 MB

NAND read: device 0 offset 0x540000, size 0x1000000
 16777216 bytes read: ERROR

So there must have been error when you flashed uInitrd to NAND? how did you flash it? in stock OS, stock u-boot, or in Debian? what were the command and its output?


====

Let's get some info. Power up, interrupt serial console and

mtdparts
See what the output looks like.

And then

setenv mtdids 'nand0=nand_mtd'
mtdparts

Please post serial console log here.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: ix2-200 boots USB but not HDD
February 06, 2020 04:21PM
About booting with HDD, plug in the HDD (any HDD that has some data in it).

Power up, interrupt serial console and,

ide reset
ide part
And please post serial console log here.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: ix2-200 boots USB but not HDD
February 06, 2020 07:02PM
Well now I have a new wrinkle. I did not experience the nandwrite error for mtd0 the first time around which appears now. I did see the mtd1 bad block but assumed it was maybe from the factory. These uImage and uInitrd were from mkimage in fresh Debian and are the ones that boot fine as cp'd to USB.

cd /boot
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs -d initrd.img-3.16.0-6-kirkwood uInitrd
mkimage -A arm -O linux -T kernel  -C none -a 0x00008000 -e 0x00008000 -n Linux-3.16.0-6 -d vmlinuz-3.16.0-6-kirkwood uImage
mount /dev/sdb1 /mnt
cp uImage /mnt/uImage-new
cp uInitrd /mnt/uInitrd-new


First the u-boot info requested
Marvell>> mtdparts

device nand0 <orion_nand>, # parts = 4
 #: name                        size            offset          mask_flags
 0: uboot               0x00100000      0x00000000      1
 1: uboot_env           0x00020000      0x000a0000      0
 2: uImage              0x00300000      0x00100000      0
 3: uInitrd             0x01000000      0x00540000      0

active partition: nand0,0 - (uboot) 0x00100000 @ 0x00000000

defaults:
mtdids  : <NULL>
mtdparts: <NULL>
Marvell>> setenv mtdids 'nand0=nand_mtd'
Marvell>> mtdparts
invalid mtd device 'orion_nand'

Here's the steps performed in Debian to rewrite the nand (writing to mtd0 went 100% the first time around)
root@debian:~# ls -al /boot
total 28204
drwxr-xr-x  3 root root     1024 Feb  6 07:37 .
drwxr-xr-x 21 root root     4096 Feb  6 07:48 ..
-rw-r--r--  1 root root   135770 May  8  2018 config-3.16.0-6-kirkwood
lrwxrwxrwx  1 root root       28 Feb  5 14:53 initrd.img -> initrd.img-3.16.0-6-kirkwood
-rw-r--r--  1 root root 11411915 Feb  6 07:26 initrd.img-3.16.0-6-kirkwood
drwx------  2 root root    12288 Feb  5 14:29 lost+found
-rw-r--r--  1 root root  1626183 May  8  2018 System.map-3.16.0-6-kirkwood
-rw-r--r--  1 root root  2076928 Feb  6 07:34 uImage
-rw-r--r--  1 root root 11411979 Feb  6 07:37 uInitrd
lrwxrwxrwx  1 root root       25 Feb  5 14:53 vmlinuz -> vmlinuz-3.16.0-6-kirkwood
-rw-r--r--  1 root root  2076864 May  8  2018 vmlinuz-3.16.0-6-kirkwood
root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00030000 00004000 "uImage"
mtd1: 01000000 00004000 "uInitrd"
root@debian:~# flash_erase /dev/mtd0 0 0
Erasing 16 Kibyte @ 2c000 -- 100 % complete
root@debian:~# flash_erase /dev/mtd1 0 0
Erasing 16 Kibyte @ 8b8000 -- 54 % complete flash_erase: Skipping bad block at 008bc000
Erasing 16 Kibyte @ ffc000 -- 100 % complete
root@debian:~# nandwrite -p /dev/mtd0 /boot/uImage
Image 2076928 bytes, NAND page 512 bytes, OOB area 16 bytes, device size 196608 bytes
nandwrite: error!: Input file does not fit into device
           error 0 (Success)
nandwrite: error!: Data was only partially written due to error
           error 0 (Success)
root@debian:~# nandwrite -p /dev/mtd1 /boot/uInitrd
Writing data to block 0 at offset 0x0
Writing data to block 1 at offset 0x4000
Writing data to block 2 at offset 0x8000
Writing data to block 3 at offset 0xc000
Writing data to block 4 at offset 0x10000
Writing data to block 5 at offset 0x14000
Writing data to block 6 at offset 0x18000
Writing data to block 7 at offset 0x1c000
Writing data to block 8 at offset 0x20000
Writing data to block 9 at offset 0x24000
Writing data to block 10 at offset 0x28000
Writing data to block 11 at offset 0x2c000
Writing data to block 12 at offset 0x30000
Writing data to block 13 at offset 0x34000
Writing data to block 14 at offset 0x38000
Writing data to block 15 at offset 0x3c000
Writing data to block 16 at offset 0x40000
Writing data to block 17 at offset 0x44000
Writing data to block 18 at offset 0x48000
Writing data to block 19 at offset 0x4c000
Writing data to block 20 at offset 0x50000
Writing data to block 21 at offset 0x54000
Writing data to block 22 at offset 0x58000
Writing data to block 23 at offset 0x5c000
Writing data to block 24 at offset 0x60000
Writing data to block 25 at offset 0x64000
Writing data to block 26 at offset 0x68000
Writing data to block 27 at offset 0x6c000
Writing data to block 28 at offset 0x70000
Writing data to block 29 at offset 0x74000
Writing data to block 30 at offset 0x78000
Writing data to block 31 at offset 0x7c000
Writing data to block 32 at offset 0x80000
Writing data to block 33 at offset 0x84000
Writing data to block 34 at offset 0x88000
Writing data to block 35 at offset 0x8c000
Writing data to block 36 at offset 0x90000
Writing data to block 37 at offset 0x94000
Writing data to block 38 at offset 0x98000
Writing data to block 39 at offset 0x9c000
Writing data to block 40 at offset 0xa0000
Writing data to block 41 at offset 0xa4000
Writing data to block 42 at offset 0xa8000
Writing data to block 43 at offset 0xac000
Writing data to block 44 at offset 0xb0000
Writing data to block 45 at offset 0xb4000
Writing data to block 46 at offset 0xb8000
Writing data to block 47 at offset 0xbc000
Writing data to block 48 at offset 0xc0000
Writing data to block 49 at offset 0xc4000
Writing data to block 50 at offset 0xc8000
Writing data to block 51 at offset 0xcc000
Writing data to block 52 at offset 0xd0000
Writing data to block 53 at offset 0xd4000
Writing data to block 54 at offset 0xd8000
Writing data to block 55 at offset 0xdc000
Writing data to block 56 at offset 0xe0000
Writing data to block 57 at offset 0xe4000
Writing data to block 58 at offset 0xe8000
Writing data to block 59 at offset 0xec000
Writing data to block 60 at offset 0xf0000
Writing data to block 61 at offset 0xf4000
Writing data to block 62 at offset 0xf8000
Writing data to block 63 at offset 0xfc000
Writing data to block 64 at offset 0x100000
Writing data to block 65 at offset 0x104000
Writing data to block 66 at offset 0x108000
Writing data to block 67 at offset 0x10c000
Writing data to block 68 at offset 0x110000
Writing data to block 69 at offset 0x114000
Writing data to block 70 at offset 0x118000
Writing data to block 71 at offset 0x11c000
Writing data to block 72 at offset 0x120000
Writing data to block 73 at offset 0x124000
Writing data to block 74 at offset 0x128000
Writing data to block 75 at offset 0x12c000
Writing data to block 76 at offset 0x130000
Writing data to block 77 at offset 0x134000
Writing data to block 78 at offset 0x138000
Writing data to block 79 at offset 0x13c000
Writing data to block 80 at offset 0x140000
Writing data to block 81 at offset 0x144000
Writing data to block 82 at offset 0x148000
Writing data to block 83 at offset 0x14c000
Writing data to block 84 at offset 0x150000
Writing data to block 85 at offset 0x154000
Writing data to block 86 at offset 0x158000
Writing data to block 87 at offset 0x15c000
Writing data to block 88 at offset 0x160000
Writing data to block 89 at offset 0x164000
Writing data to block 90 at offset 0x168000
Writing data to block 91 at offset 0x16c000
Writing data to block 92 at offset 0x170000
Writing data to block 93 at offset 0x174000
Writing data to block 94 at offset 0x178000
Writing data to block 95 at offset 0x17c000
Writing data to block 96 at offset 0x180000
Writing data to block 97 at offset 0x184000
Writing data to block 98 at offset 0x188000
Writing data to block 99 at offset 0x18c000
Writing data to block 100 at offset 0x190000
Writing data to block 101 at offset 0x194000
Writing data to block 102 at offset 0x198000
Writing data to block 103 at offset 0x19c000
Writing data to block 104 at offset 0x1a0000
Writing data to block 105 at offset 0x1a4000
Writing data to block 106 at offset 0x1a8000
Writing data to block 107 at offset 0x1ac000
Writing data to block 108 at offset 0x1b0000
Writing data to block 109 at offset 0x1b4000
Writing data to block 110 at offset 0x1b8000
Writing data to block 111 at offset 0x1bc000
Writing data to block 112 at offset 0x1c0000
Writing data to block 113 at offset 0x1c4000
Writing data to block 114 at offset 0x1c8000
Writing data to block 115 at offset 0x1cc000
Writing data to block 116 at offset 0x1d0000
Writing data to block 117 at offset 0x1d4000
Writing data to block 118 at offset 0x1d8000
Writing data to block 119 at offset 0x1dc000
Writing data to block 120 at offset 0x1e0000
Writing data to block 121 at offset 0x1e4000
Writing data to block 122 at offset 0x1e8000
Writing data to block 123 at offset 0x1ec000
Writing data to block 124 at offset 0x1f0000
Writing data to block 125 at offset 0x1f4000
Writing data to block 126 at offset 0x1f8000
Writing data to block 127 at offset 0x1fc000
Writing data to block 128 at offset 0x200000
Writing data to block 129 at offset 0x204000
Writing data to block 130 at offset 0x208000
Writing data to block 131 at offset 0x20c000
Writing data to block 132 at offset 0x210000
Writing data to block 133 at offset 0x214000
Writing data to block 134 at offset 0x218000
Writing data to block 135 at offset 0x21c000
Writing data to block 136 at offset 0x220000
Writing data to block 137 at offset 0x224000
Writing data to block 138 at offset 0x228000
Writing data to block 139 at offset 0x22c000
Writing data to block 140 at offset 0x230000
Writing data to block 141 at offset 0x234000
Writing data to block 142 at offset 0x238000
Writing data to block 143 at offset 0x23c000
Writing data to block 144 at offset 0x240000
Writing data to block 145 at offset 0x244000
Writing data to block 146 at offset 0x248000
Writing data to block 147 at offset 0x24c000
Writing data to block 148 at offset 0x250000
Writing data to block 149 at offset 0x254000
Writing data to block 150 at offset 0x258000
Writing data to block 151 at offset 0x25c000
Writing data to block 152 at offset 0x260000
Writing data to block 153 at offset 0x264000
Writing data to block 154 at offset 0x268000
Writing data to block 155 at offset 0x26c000
Writing data to block 156 at offset 0x270000
Writing data to block 157 at offset 0x274000
Writing data to block 158 at offset 0x278000
Writing data to block 159 at offset 0x27c000
Writing data to block 160 at offset 0x280000
Writing data to block 161 at offset 0x284000
Writing data to block 162 at offset 0x288000
Writing data to block 163 at offset 0x28c000
Writing data to block 164 at offset 0x290000
Writing data to block 165 at offset 0x294000
Writing data to block 166 at offset 0x298000
Writing data to block 167 at offset 0x29c000
Writing data to block 168 at offset 0x2a0000
Writing data to block 169 at offset 0x2a4000
Writing data to block 170 at offset 0x2a8000
Writing data to block 171 at offset 0x2ac000
Writing data to block 172 at offset 0x2b0000
Writing data to block 173 at offset 0x2b4000
Writing data to block 174 at offset 0x2b8000
Writing data to block 175 at offset 0x2bc000
Writing data to block 176 at offset 0x2c0000
Writing data to block 177 at offset 0x2c4000
Writing data to block 178 at offset 0x2c8000
Writing data to block 179 at offset 0x2cc000
Writing data to block 180 at offset 0x2d0000
Writing data to block 181 at offset 0x2d4000
Writing data to block 182 at offset 0x2d8000
Writing data to block 183 at offset 0x2dc000
Writing data to block 184 at offset 0x2e0000
Writing data to block 185 at offset 0x2e4000
Writing data to block 186 at offset 0x2e8000
Writing data to block 187 at offset 0x2ec000
Writing data to block 188 at offset 0x2f0000
Writing data to block 189 at offset 0x2f4000
Writing data to block 190 at offset 0x2f8000
Writing data to block 191 at offset 0x2fc000
Writing data to block 192 at offset 0x300000
Writing data to block 193 at offset 0x304000
Writing data to block 194 at offset 0x308000
Writing data to block 195 at offset 0x30c000
Writing data to block 196 at offset 0x310000
Writing data to block 197 at offset 0x314000
Writing data to block 198 at offset 0x318000
Writing data to block 199 at offset 0x31c000
Writing data to block 200 at offset 0x320000
Writing data to block 201 at offset 0x324000
Writing data to block 202 at offset 0x328000
Writing data to block 203 at offset 0x32c000
Writing data to block 204 at offset 0x330000
Writing data to block 205 at offset 0x334000
Writing data to block 206 at offset 0x338000
Writing data to block 207 at offset 0x33c000
Writing data to block 208 at offset 0x340000
Writing data to block 209 at offset 0x344000
Writing data to block 210 at offset 0x348000
Writing data to block 211 at offset 0x34c000
Writing data to block 212 at offset 0x350000
Writing data to block 213 at offset 0x354000
Writing data to block 214 at offset 0x358000
Writing data to block 215 at offset 0x35c000
Writing data to block 216 at offset 0x360000
Writing data to block 217 at offset 0x364000
Writing data to block 218 at offset 0x368000
Writing data to block 219 at offset 0x36c000
Writing data to block 220 at offset 0x370000
Writing data to block 221 at offset 0x374000
Writing data to block 222 at offset 0x378000
Writing data to block 223 at offset 0x37c000
Writing data to block 224 at offset 0x380000
Writing data to block 225 at offset 0x384000
Writing data to block 226 at offset 0x388000
Writing data to block 227 at offset 0x38c000
Writing data to block 228 at offset 0x390000
Writing data to block 229 at offset 0x394000
Writing data to block 230 at offset 0x398000
Writing data to block 231 at offset 0x39c000
Writing data to block 232 at offset 0x3a0000
Writing data to block 233 at offset 0x3a4000
Writing data to block 234 at offset 0x3a8000
Writing data to block 235 at offset 0x3ac000
Writing data to block 236 at offset 0x3b0000
Writing data to block 237 at offset 0x3b4000
Writing data to block 238 at offset 0x3b8000
Writing data to block 239 at offset 0x3bc000
Writing data to block 240 at offset 0x3c0000
Writing data to block 241 at offset 0x3c4000
Writing data to block 242 at offset 0x3c8000
Writing data to block 243 at offset 0x3cc000
Writing data to block 244 at offset 0x3d0000
Writing data to block 245 at offset 0x3d4000
Writing data to block 246 at offset 0x3d8000
Writing data to block 247 at offset 0x3dc000
Writing data to block 248 at offset 0x3e0000
Writing data to block 249 at offset 0x3e4000
Writing data to block 250 at offset 0x3e8000
Writing data to block 251 at offset 0x3ec000
Writing data to block 252 at offset 0x3f0000
Writing data to block 253 at offset 0x3f4000
Writing data to block 254 at offset 0x3f8000
Writing data to block 255 at offset 0x3fc000
Writing data to block 256 at offset 0x400000
Writing data to block 257 at offset 0x404000
Writing data to block 258 at offset 0x408000
Writing data to block 259 at offset 0x40c000
Writing data to block 260 at offset 0x410000
Writing data to block 261 at offset 0x414000
Writing data to block 262 at offset 0x418000
Writing data to block 263 at offset 0x41c000
Writing data to block 264 at offset 0x420000
Writing data to block 265 at offset 0x424000
Writing data to block 266 at offset 0x428000
Writing data to block 267 at offset 0x42c000
Writing data to block 268 at offset 0x430000
Writing data to block 269 at offset 0x434000
Writing data to block 270 at offset 0x438000
Writing data to block 271 at offset 0x43c000
Writing data to block 272 at offset 0x440000
Writing data to block 273 at offset 0x444000
Writing data to block 274 at offset 0x448000
Writing data to block 275 at offset 0x44c000
Writing data to block 276 at offset 0x450000
Writing data to block 277 at offset 0x454000
Writing data to block 278 at offset 0x458000
Writing data to block 279 at offset 0x45c000
Writing data to block 280 at offset 0x460000
Writing data to block 281 at offset 0x464000
Writing data to block 282 at offset 0x468000
Writing data to block 283 at offset 0x46c000
Writing data to block 284 at offset 0x470000
Writing data to block 285 at offset 0x474000
Writing data to block 286 at offset 0x478000
Writing data to block 287 at offset 0x47c000
Writing data to block 288 at offset 0x480000
Writing data to block 289 at offset 0x484000
Writing data to block 290 at offset 0x488000
Writing data to block 291 at offset 0x48c000
Writing data to block 292 at offset 0x490000
Writing data to block 293 at offset 0x494000
Writing data to block 294 at offset 0x498000
Writing data to block 295 at offset 0x49c000
Writing data to block 296 at offset 0x4a0000
Writing data to block 297 at offset 0x4a4000
Writing data to block 298 at offset 0x4a8000
Writing data to block 299 at offset 0x4ac000
Writing data to block 300 at offset 0x4b0000
Writing data to block 301 at offset 0x4b4000
Writing data to block 302 at offset 0x4b8000
Writing data to block 303 at offset 0x4bc000
Writing data to block 304 at offset 0x4c0000
Writing data to block 305 at offset 0x4c4000
Writing data to block 306 at offset 0x4c8000
Writing data to block 307 at offset 0x4cc000
Writing data to block 308 at offset 0x4d0000
Writing data to block 309 at offset 0x4d4000
Writing data to block 310 at offset 0x4d8000
Writing data to block 311 at offset 0x4dc000
Writing data to block 312 at offset 0x4e0000
Writing data to block 313 at offset 0x4e4000
Writing data to block 314 at offset 0x4e8000
Writing data to block 315 at offset 0x4ec000
Writing data to block 316 at offset 0x4f0000
Writing data to block 317 at offset 0x4f4000
Writing data to block 318 at offset 0x4f8000
Writing data to block 319 at offset 0x4fc000
Writing data to block 320 at offset 0x500000
Writing data to block 321 at offset 0x504000
Writing data to block 322 at offset 0x508000
Writing data to block 323 at offset 0x50c000
Writing data to block 324 at offset 0x510000
Writing data to block 325 at offset 0x514000
Writing data to block 326 at offset 0x518000
Writing data to block 327 at offset 0x51c000
Writing data to block 328 at offset 0x520000
Writing data to block 329 at offset 0x524000
Writing data to block 330 at offset 0x528000
Writing data to block 331 at offset 0x52c000
Writing data to block 332 at offset 0x530000
Writing data to block 333 at offset 0x534000
Writing data to block 334 at offset 0x538000
Writing data to block 335 at offset 0x53c000
Writing data to block 336 at offset 0x540000
Writing data to block 337 at offset 0x544000
Writing data to block 338 at offset 0x548000
Writing data to block 339 at offset 0x54c000
Writing data to block 340 at offset 0x550000
Writing data to block 341 at offset 0x554000
Writing data to block 342 at offset 0x558000
Writing data to block 343 at offset 0x55c000
Writing data to block 344 at offset 0x560000
Writing data to block 345 at offset 0x564000
Writing data to block 346 at offset 0x568000
Writing data to block 347 at offset 0x56c000
Writing data to block 348 at offset 0x570000
Writing data to block 349 at offset 0x574000
Writing data to block 350 at offset 0x578000
Writing data to block 351 at offset 0x57c000
Writing data to block 352 at offset 0x580000
Writing data to block 353 at offset 0x584000
Writing data to block 354 at offset 0x588000
Writing data to block 355 at offset 0x58c000
Writing data to block 356 at offset 0x590000
Writing data to block 357 at offset 0x594000
Writing data to block 358 at offset 0x598000
Writing data to block 359 at offset 0x59c000
Writing data to block 360 at offset 0x5a0000
Writing data to block 361 at offset 0x5a4000
Writing data to block 362 at offset 0x5a8000
Writing data to block 363 at offset 0x5ac000
Writing data to block 364 at offset 0x5b0000
Writing data to block 365 at offset 0x5b4000
Writing data to block 366 at offset 0x5b8000
Writing data to block 367 at offset 0x5bc000
Writing data to block 368 at offset 0x5c0000
Writing data to block 369 at offset 0x5c4000
Writing data to block 370 at offset 0x5c8000
Writing data to block 371 at offset 0x5cc000
Writing data to block 372 at offset 0x5d0000
Writing data to block 373 at offset 0x5d4000
Writing data to block 374 at offset 0x5d8000
Writing data to block 375 at offset 0x5dc000
Writing data to block 376 at offset 0x5e0000
Writing data to block 377 at offset 0x5e4000
Writing data to block 378 at offset 0x5e8000
Writing data to block 379 at offset 0x5ec000
Writing data to block 380 at offset 0x5f0000
Writing data to block 381 at offset 0x5f4000
Writing data to block 382 at offset 0x5f8000
Writing data to block 383 at offset 0x5fc000
Writing data to block 384 at offset 0x600000
Writing data to block 385 at offset 0x604000
Writing data to block 386 at offset 0x608000
Writing data to block 387 at offset 0x60c000
Writing data to block 388 at offset 0x610000
Writing data to block 389 at offset 0x614000
Writing data to block 390 at offset 0x618000
Writing data to block 391 at offset 0x61c000
Writing data to block 392 at offset 0x620000
Writing data to block 393 at offset 0x624000
Writing data to block 394 at offset 0x628000
Writing data to block 395 at offset 0x62c000
Writing data to block 396 at offset 0x630000
Writing data to block 397 at offset 0x634000
Writing data to block 398 at offset 0x638000
Writing data to block 399 at offset 0x63c000
Writing data to block 400 at offset 0x640000
Writing data to block 401 at offset 0x644000
Writing data to block 402 at offset 0x648000
Writing data to block 403 at offset 0x64c000
Writing data to block 404 at offset 0x650000
Writing data to block 405 at offset 0x654000
Writing data to block 406 at offset 0x658000
Writing data to block 407 at offset 0x65c000
Writing data to block 408 at offset 0x660000
Writing data to block 409 at offset 0x664000
Writing data to block 410 at offset 0x668000
Writing data to block 411 at offset 0x66c000
Writing data to block 412 at offset 0x670000
Writing data to block 413 at offset 0x674000
Writing data to block 414 at offset 0x678000
Writing data to block 415 at offset 0x67c000
Writing data to block 416 at offset 0x680000
Writing data to block 417 at offset 0x684000
Writing data to block 418 at offset 0x688000
Writing data to block 419 at offset 0x68c000
Writing data to block 420 at offset 0x690000
Writing data to block 421 at offset 0x694000
Writing data to block 422 at offset 0x698000
Writing data to block 423 at offset 0x69c000
Writing data to block 424 at offset 0x6a0000
Writing data to block 425 at offset 0x6a4000
Writing data to block 426 at offset 0x6a8000
Writing data to block 427 at offset 0x6ac000
Writing data to block 428 at offset 0x6b0000
Writing data to block 429 at offset 0x6b4000
Writing data to block 430 at offset 0x6b8000
Writing data to block 431 at offset 0x6bc000
Writing data to block 432 at offset 0x6c0000
Writing data to block 433 at offset 0x6c4000
Writing data to block 434 at offset 0x6c8000
Writing data to block 435 at offset 0x6cc000
Writing data to block 436 at offset 0x6d0000
Writing data to block 437 at offset 0x6d4000
Writing data to block 438 at offset 0x6d8000
Writing data to block 439 at offset 0x6dc000
Writing data to block 440 at offset 0x6e0000
Writing data to block 441 at offset 0x6e4000
Writing data to block 442 at offset 0x6e8000
Writing data to block 443 at offset 0x6ec000
Writing data to block 444 at offset 0x6f0000
Writing data to block 445 at offset 0x6f4000
Writing data to block 446 at offset 0x6f8000
Writing data to block 447 at offset 0x6fc000
Writing data to block 448 at offset 0x700000
Writing data to block 449 at offset 0x704000
Writing data to block 450 at offset 0x708000
Writing data to block 451 at offset 0x70c000
Writing data to block 452 at offset 0x710000
Writing data to block 453 at offset 0x714000
Writing data to block 454 at offset 0x718000
Writing data to block 455 at offset 0x71c000
Writing data to block 456 at offset 0x720000
Writing data to block 457 at offset 0x724000
Writing data to block 458 at offset 0x728000
Writing data to block 459 at offset 0x72c000
Writing data to block 460 at offset 0x730000
Writing data to block 461 at offset 0x734000
Writing data to block 462 at offset 0x738000
Writing data to block 463 at offset 0x73c000
Writing data to block 464 at offset 0x740000
Writing data to block 465 at offset 0x744000
Writing data to block 466 at offset 0x748000
Writing data to block 467 at offset 0x74c000
Writing data to block 468 at offset 0x750000
Writing data to block 469 at offset 0x754000
Writing data to block 470 at offset 0x758000
Writing data to block 471 at offset 0x75c000
Writing data to block 472 at offset 0x760000
Writing data to block 473 at offset 0x764000
Writing data to block 474 at offset 0x768000
Writing data to block 475 at offset 0x76c000
Writing data to block 476 at offset 0x770000
Writing data to block 477 at offset 0x774000
Writing data to block 478 at offset 0x778000
Writing data to block 479 at offset 0x77c000
Writing data to block 480 at offset 0x780000
Writing data to block 481 at offset 0x784000
Writing data to block 482 at offset 0x788000
Writing data to block 483 at offset 0x78c000
Writing data to block 484 at offset 0x790000
Writing data to block 485 at offset 0x794000
Writing data to block 486 at offset 0x798000
Writing data to block 487 at offset 0x79c000
Writing data to block 488 at offset 0x7a0000
Writing data to block 489 at offset 0x7a4000
Writing data to block 490 at offset 0x7a8000
Writing data to block 491 at offset 0x7ac000
Writing data to block 492 at offset 0x7b0000
Writing data to block 493 at offset 0x7b4000
Writing data to block 494 at offset 0x7b8000
Writing data to block 495 at offset 0x7bc000
Writing data to block 496 at offset 0x7c0000
Writing data to block 497 at offset 0x7c4000
Writing data to block 498 at offset 0x7c8000
Writing data to block 499 at offset 0x7cc000
Writing data to block 500 at offset 0x7d0000
Writing data to block 501 at offset 0x7d4000
Writing data to block 502 at offset 0x7d8000
Writing data to block 503 at offset 0x7dc000
Writing data to block 504 at offset 0x7e0000
Writing data to block 505 at offset 0x7e4000
Writing data to block 506 at offset 0x7e8000
Writing data to block 507 at offset 0x7ec000
Writing data to block 508 at offset 0x7f0000
Writing data to block 509 at offset 0x7f4000
Writing data to block 510 at offset 0x7f8000
Writing data to block 511 at offset 0x7fc000
Writing data to block 512 at offset 0x800000
Writing data to block 513 at offset 0x804000
Writing data to block 514 at offset 0x808000
Writing data to block 515 at offset 0x80c000
Writing data to block 516 at offset 0x810000
Writing data to block 517 at offset 0x814000
Writing data to block 518 at offset 0x818000
Writing data to block 519 at offset 0x81c000
Writing data to block 520 at offset 0x820000
Writing data to block 521 at offset 0x824000
Writing data to block 522 at offset 0x828000
Writing data to block 523 at offset 0x82c000
Writing data to block 524 at offset 0x830000
Writing data to block 525 at offset 0x834000
Writing data to block 526 at offset 0x838000
Writing data to block 527 at offset 0x83c000
Writing data to block 528 at offset 0x840000
Writing data to block 529 at offset 0x844000
Writing data to block 530 at offset 0x848000
Writing data to block 531 at offset 0x84c000
Writing data to block 532 at offset 0x850000
Writing data to block 533 at offset 0x854000
Writing data to block 534 at offset 0x858000
Writing data to block 535 at offset 0x85c000
Writing data to block 536 at offset 0x860000
Writing data to block 537 at offset 0x864000
Writing data to block 538 at offset 0x868000
Writing data to block 539 at offset 0x86c000
Writing data to block 540 at offset 0x870000
Writing data to block 541 at offset 0x874000
Writing data to block 542 at offset 0x878000
Writing data to block 543 at offset 0x87c000
Writing data to block 544 at offset 0x880000
Writing data to block 545 at offset 0x884000
Writing data to block 546 at offset 0x888000
Writing data to block 547 at offset 0x88c000
Writing data to block 548 at offset 0x890000
Writing data to block 549 at offset 0x894000
Writing data to block 550 at offset 0x898000
Writing data to block 551 at offset 0x89c000
Writing data to block 552 at offset 0x8a0000
Writing data to block 553 at offset 0x8a4000
Writing data to block 554 at offset 0x8a8000
Writing data to block 555 at offset 0x8ac000
Writing data to block 556 at offset 0x8b0000
Writing data to block 557 at offset 0x8b4000
Writing data to block 558 at offset 0x8b8000
Writing data to block 559 at offset 0x8bc000
Bad block at 8bc000, 1 block(s) from 8bc000 will be skipped
Writing data to block 560 at offset 0x8c0000
Writing data to block 561 at offset 0x8c4000
Writing data to block 562 at offset 0x8c8000
Writing data to block 563 at offset 0x8cc000
Writing data to block 564 at offset 0x8d0000
Writing data to block 565 at offset 0x8d4000
Writing data to block 566 at offset 0x8d8000
Writing data to block 567 at offset 0x8dc000
Writing data to block 568 at offset 0x8e0000
Writing data to block 569 at offset 0x8e4000
Writing data to block 570 at offset 0x8e8000
Writing data to block 571 at offset 0x8ec000
Writing data to block 572 at offset 0x8f0000
Writing data to block 573 at offset 0x8f4000
Writing data to block 574 at offset 0x8f8000
Writing data to block 575 at offset 0x8fc000
Writing data to block 576 at offset 0x900000
Writing data to block 577 at offset 0x904000
Writing data to block 578 at offset 0x908000
Writing data to block 579 at offset 0x90c000
Writing data to block 580 at offset 0x910000
Writing data to block 581 at offset 0x914000
Writing data to block 582 at offset 0x918000
Writing data to block 583 at offset 0x91c000
Writing data to block 584 at offset 0x920000
Writing data to block 585 at offset 0x924000
Writing data to block 586 at offset 0x928000
Writing data to block 587 at offset 0x92c000
Writing data to block 588 at offset 0x930000
Writing data to block 589 at offset 0x934000
Writing data to block 590 at offset 0x938000
Writing data to block 591 at offset 0x93c000
Writing data to block 592 at offset 0x940000
Writing data to block 593 at offset 0x944000
Writing data to block 594 at offset 0x948000
Writing data to block 595 at offset 0x94c000
Writing data to block 596 at offset 0x950000
Writing data to block 597 at offset 0x954000
Writing data to block 598 at offset 0x958000
Writing data to block 599 at offset 0x95c000
Writing data to block 600 at offset 0x960000
Writing data to block 601 at offset 0x964000
Writing data to block 602 at offset 0x968000
Writing data to block 603 at offset 0x96c000
Writing data to block 604 at offset 0x970000
Writing data to block 605 at offset 0x974000
Writing data to block 606 at offset 0x978000
Writing data to block 607 at offset 0x97c000
Writing data to block 608 at offset 0x980000
Writing data to block 609 at offset 0x984000
Writing data to block 610 at offset 0x988000
Writing data to block 611 at offset 0x98c000
Writing data to block 612 at offset 0x990000
Writing data to block 613 at offset 0x994000
Writing data to block 614 at offset 0x998000
Writing data to block 615 at offset 0x99c000
Writing data to block 616 at offset 0x9a0000
Writing data to block 617 at offset 0x9a4000
Writing data to block 618 at offset 0x9a8000
Writing data to block 619 at offset 0x9ac000
Writing data to block 620 at offset 0x9b0000
Writing data to block 621 at offset 0x9b4000
Writing data to block 622 at offset 0x9b8000
Writing data to block 623 at offset 0x9bc000
Writing data to block 624 at offset 0x9c0000
Writing data to block 625 at offset 0x9c4000
Writing data to block 626 at offset 0x9c8000
Writing data to block 627 at offset 0x9cc000
Writing data to block 628 at offset 0x9d0000
Writing data to block 629 at offset 0x9d4000
Writing data to block 630 at offset 0x9d8000
Writing data to block 631 at offset 0x9dc000
Writing data to block 632 at offset 0x9e0000
Writing data to block 633 at offset 0x9e4000
Writing data to block 634 at offset 0x9e8000
Writing data to block 635 at offset 0x9ec000
Writing data to block 636 at offset 0x9f0000
Writing data to block 637 at offset 0x9f4000
Writing data to block 638 at offset 0x9f8000
Writing data to block 639 at offset 0x9fc000
Writing data to block 640 at offset 0xa00000
Writing data to block 641 at offset 0xa04000
Writing data to block 642 at offset 0xa08000
Writing data to block 643 at offset 0xa0c000
Writing data to block 644 at offset 0xa10000
Writing data to block 645 at offset 0xa14000
Writing data to block 646 at offset 0xa18000
Writing data to block 647 at offset 0xa1c000
Writing data to block 648 at offset 0xa20000
Writing data to block 649 at offset 0xa24000
Writing data to block 650 at offset 0xa28000
Writing data to block 651 at offset 0xa2c000
Writing data to block 652 at offset 0xa30000
Writing data to block 653 at offset 0xa34000
Writing data to block 654 at offset 0xa38000
Writing data to block 655 at offset 0xa3c000
Writing data to block 656 at offset 0xa40000
Writing data to block 657 at offset 0xa44000
Writing data to block 658 at offset 0xa48000
Writing data to block 659 at offset 0xa4c000
Writing data to block 660 at offset 0xa50000
Writing data to block 661 at offset 0xa54000
Writing data to block 662 at offset 0xa58000
Writing data to block 663 at offset 0xa5c000
Writing data to block 664 at offset 0xa60000
Writing data to block 665 at offset 0xa64000
Writing data to block 666 at offset 0xa68000
Writing data to block 667 at offset 0xa6c000
Writing data to block 668 at offset 0xa70000
Writing data to block 669 at offset 0xa74000
Writing data to block 670 at offset 0xa78000
Writing data to block 671 at offset 0xa7c000
Writing data to block 672 at offset 0xa80000
Writing data to block 673 at offset 0xa84000
Writing data to block 674 at offset 0xa88000
Writing data to block 675 at offset 0xa8c000
Writing data to block 676 at offset 0xa90000
Writing data to block 677 at offset 0xa94000
Writing data to block 678 at offset 0xa98000
Writing data to block 679 at offset 0xa9c000
Writing data to block 680 at offset 0xaa0000
Writing data to block 681 at offset 0xaa4000
Writing data to block 682 at offset 0xaa8000
Writing data to block 683 at offset 0xaac000
Writing data to block 684 at offset 0xab0000
Writing data to block 685 at offset 0xab4000
Writing data to block 686 at offset 0xab8000
Writing data to block 687 at offset 0xabc000
Writing data to block 688 at offset 0xac0000
Writing data to block 689 at offset 0xac4000
Writing data to block 690 at offset 0xac8000
Writing data to block 691 at offset 0xacc000
Writing data to block 692 at offset 0xad0000
Writing data to block 693 at offset 0xad4000
Writing data to block 694 at offset 0xad8000
Writing data to block 695 at offset 0xadc000
Writing data to block 696 at offset 0xae0000
Writing data to block 697 at offset 0xae4000
root@debian:~#
Re: ix2-200 boots USB but not HDD
February 06, 2020 10:46PM
@damnit_,

It is all messed up :) you should slow down a little bit and make sure that it boots OK with correct mtds.

root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00030000 00004000 "uImage"
mtd1: 01000000 00004000 "uInitrd"

The above is apparently not good. What you want to see is 4 mtds, 0 to 3. As u-boot showed:

Marvell>> mtdparts

device nand0 <orion_nand>, # parts = 4
 #: name                        size            offset          mask_flags
 0: uboot               0x00100000      0x00000000      1
 1: uboot_env           0x00020000      0x000a0000      0
 2: uImage              0x00300000      0x00100000      0
 3: uInitrd             0x01000000      0x00540000      0

And it was correct in u-boot:
mtdparts=mtdparts=orion_nand:0x100000@0x000000(uboot)ro,0x20000@0xA0000(uboot_env),0x300000@0x100000(uImage),0x1000000@0x540000(uInitrd)

1. Don't redefine it. It got confused real quick when mtd0 is not where u-boot is. Use the definition from u-boot env mtdparts above.

2. The size of uImage is wrong in Debian

u-boot uImage mtd2 size is 0x00300000 (3MB)

Debian uImage mtd0 is 0x00030000 (192K)

You've missing a 0. That was the flashing error about.


=====


So boot USB again using the existing mtdparts.

mtdparts=mtdparts=orion_nand:0x100000@0x000000(uboot)ro,0x20000@0xA0000(uboot_env),0x300000@0x100000(uImage),0x1000000@0x540000(uInitrd)

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



Edited 1 time(s). Last edit at 02/06/2020 10:48PM by bodhi.
Re: ix2-200 boots USB but not HDD
February 07, 2020 10:24AM
OK thank you! With corrected mtdparts argument Debian now shows as it should.

root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00100000 00004000 "uboot"
mtd1: 00020000 00004000 "uboot_env"
mtd2: 00300000 00004000 "uImage"
mtd3: 01000000 00004000 "uInitrd"

I proceed with flash_erase and nandwrite to /dev/mtd2 and /dev/mtd3 respectively, but I still must be missing a step somewhere to make this work. Is mtdids= set correctly? Originally you had said
setenv mtdids 'nand0=nand_mtd'

Here's what I see in u-boot

Marvell>> mtdparts
mtdparts variable not set, see 'help mtdparts'
no partitions defined

defaults:
mtdids  : <NULL>
mtdparts: <NULL>
Marvell>> setenv mtdids 'nand0=orion_nand'
Marvell>> mtdparts
mtdparts variable not set, see 'help mtdparts'
no partitions defined

defaults:
mtdids  : <NULL>
mtdparts: <NULL>
Marvell>> setenv mtdparts 'mtdparts=orion_nand:0x100000@0x000000(uboot)ro,0x20000@0xA0000(uboot_env),0x300000@0x100000(uImage),0x1000000@0x540000(uInitrd)'
Marvell>> mtdparts

device nand0 <orion_nand>, # parts = 4
 #: name                        size            offset          mask_flags
 0: uboot               0x00100000      0x00000000      1
 1: uboot_env           0x00020000      0x000a0000      0
 2: uImage              0x00300000      0x00100000      0
 3: uInitrd             0x01000000      0x00540000      0

active partition: nand0,0 - (uboot) 0x00100000 @ 0x00000000

defaults:
mtdids  : <NULL>
mtdparts: <NULL>
Marvell>> setenv bootargs_console 'console=ttyS0,115200 mtdparts=orion_nand:0x100000@0x000000(uboot)ro,0x20000@0xA0000(uboot_env),0x300000@0x100000(uImage),0x1000000@0x540000(uInitrd) root=/dev/mapper/debian--vg-root rootdelay=10'
Marvell>> setenv bootcmd 'setenv bootargs $(bootargs_console); nand read 0x800000 uImage; nand read 0x1100000 uInitrd; bootm 0x00800000 0x01100000'
Marvell>> saveenv
Saving Environment to NAND...
Erasing Nand...Writing to Nand... done
Marvell>> reset

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: RD-88F6281A LE

U-Boot 1.1.4 (Sep  8 2009 - 09:31:54) Marvell version: 3.4.14

Mapower version: 2.0 (32MB) (2009/09/08)

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CEE60

Soc: 88F6281 A0 (DDR2)
CPU running @ 1000Mhz L2 running @ 333Mhz
SysClock = 333Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB
DRAM Total size 256MB  16bit width
Flash:  0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:32 MB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled

Module 0 is RGMII
Module 1 is TDM

USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0, egiga1 [PRIME]
Fan lookup table initialized.

Current remote temperature: 40
Current fan speed: 0

Hit any key to stop autoboot:  0

NAND read: device 0 offset 0x100000, size 0x300000
 3145728 bytes read: OK

NAND read: device 0 offset 0x540000, size 0x1000000
 16777216 bytes read: ERROR
## Booting image at 00800000 ...
   Image Name:   Linux-3.16.0-6
   Created:      2020-02-07   1:10:55 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2076864 Bytes =  2 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 01100000 ...
   Image Name:   initramfs
   Created:      2020-02-07   1:10:29 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    11411915 Bytes = 10.9 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... Bad Data CRC

Marvell>> printenv
baudrate=115200
loads_echo=0
ipaddr=10.4.50.165
serverip=10.4.50.5
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
console=console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x1f00000@0x100000(root)
CASset=min
MALLOC_len=1
ethprime=egiga1
bootargs_root=root=/dev/nfs rw
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
ethmtu=1500
eth1addr=00:50:43:dd:0d:04
eth1mtu=1500
mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
FanHysteresis=2
FanTempStart=58
uboot_start=0x0
uboot_size=0xc0000
env_start=0xa0000
env_size=0x20000
kernel_start=0x100000
kernel_size=0x300000
initrd_start=0x540000
initrd_size=0x300000
flash_load=run make_boot_args load1 load2 boot
load1=nand read.e 0x2000000 $(kernel_start) $(kernel_size)
load2=nand read.e 0x4500000 $(initrd_start) $(initrd_size)
boot=bootm 0x2000000 0x4500000
make_boot_args=setenv bootargs console=ttyS0,115200 mtdparts=nand_mtd:;setenv bootargs $(bootargs)$(uboot_size)@$(uboot_start)(uboot),;setenv bootargs $(bootargs)$(env_size)@$(env_start)(env),;setenv bootargs $(bootargs)$(kernel_size)@$(kernel_start)(zImage),;setenv bootargs $(bootargs)$(initrd_size)@$(initrd_start)(initrd),;setenv bootargs $(bootargs)128m@0x0(flash);
iomega=123
ethaddr=AA:00:00:00:00:01
arcNumber=1682
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:0x100000@0x000000(uboot)ro,0x20000@0xA0000(uboot_env),0x300000@0x100000(uImage),0x1000000@0x540000(uInitrd)
bootargs_console=console=ttyS0,115200 mtdparts=orion_nand:0x100000@0x000000(uboot)ro,0x20000@0xA0000(uboot_env),0x300000@0x100000(uImage),0x1000000@0x540000(uInitrd) root=/dev/mapper/debian--vg-root rootdelay=10
bootcmd=setenv bootargs $(bootargs_console); nand read 0x800000 uImage; nand read 0x1100000 uInitrd; bootm 0x00800000 0x01100000
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=yes
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
bootdelay=3
disaMvPnp=no
hddPowerCtrl=no
enaAutoRecovery=yes
ethact=egiga1
partition=nand0,0
mtddevnum=0
mtddevname=uboot

Environment size: 2446/16380 bytes



Edited 3 time(s). Last edit at 02/07/2020 10:36AM by damnit_.
Re: ix2-200 boots USB but not HDD
February 07, 2020 03:32PM
Quote

Originally you had said
setenv mtdids 'nand0=nand_mtd'

Ignore the above mtdids test. orion_nand was correct.


==========

After booting into Debian on USB, log in as root.

dmesg
cat /proc/mtd

and then proceed to flash uInitrd.

flash_erase ...
nandwrite ...

And then post the entire log here.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: ix2-200 boots USB but not HDD
February 07, 2020 05:12PM
@bodhi thanks so much for your prompt help, I should have posted those details with my last.

Could that bad block be messing up my checksum??

root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00100000 00004000 "uboot"
mtd1: 00020000 00004000 "uboot_env"
mtd2: 00300000 00004000 "uImage"
mtd3: 01000000 00004000 "uInitrd"
root@debian:~# clear

root@debian:~# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.16.0-6-kirkwood (debian-kernel@lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 Debian 3.16.56-1+deb8u1 (2018-05-08)
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Marvell RD-88F6281 Reference Board
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 65536
[    0.000000] free_area_init_node: node 0, pgdat c05d9348, node_mem_map cfdf9000
[    0.000000]   DMA zone: 512 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 65536 pages, LIFO batch:15
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,115200 mtdparts=orion_nand:0x100000@0x000000(uboot)ro,0x20000@0xA0000(uboot_env),0x300000@0x100000(uImage),0x1000000@0x540000(uInitrd) root=/dev/mapper/debian--vg-root rootdelay=10
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 242372K/262144K available (3919K kernel code, 361K rwdata, 1444K rodata, 278K init, 289K bss, 19772K reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
    vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
    lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .text : 0xc0008000 - 0xc05451c4   (5365 kB)
      .init : 0xc0546000 - 0xc058b8dc   ( 279 kB)
      .data : 0xc058c000 - 0xc05e6720   ( 362 kB)
       .bss : 0xc05e6720 - 0xc062eb54   ( 290 kB)
[    0.000000] NR_IRQS:114
[    0.000014] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474836475ns
[    2.586472] Console: colour dummy device 80x30
[    2.586504] Calibrating delay loop... 989.18 BogoMIPS (lpj=1978368)
[    2.610207] pid_max: default: 32768 minimum: 301
[    2.610333] Security Framework initialized
[    2.610390] Yama: disabled by default; enable with sysctl kernel.yama.*
[    2.610483] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    2.610504] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    2.611464] Initializing cgroup subsys memory
[    2.611515] Initializing cgroup subsys devices
[    2.611580] Initializing cgroup subsys freezer
[    2.611612] Initializing cgroup subsys net_cls
[    2.611667] Initializing cgroup subsys blkio
[    2.611711] Initializing cgroup subsys perf_event
[    2.611737] Initializing cgroup subsys net_prio
[    2.611846] CPU: Testing write buffer coherency: ok
[    2.611962] ftrace: allocating 16386 entries in 33 pages
[    2.640680] Setting up static identity map for 0x3b4f90 - 0x3b4fe8
[    2.644780] devtmpfs: initialized
[    2.647861] futex hash table entries: 256 (order: -1, 3072 bytes)
[    2.648522] pinctrl core: initialized pinctrl subsystem
[    2.649096] regulator-dummy: no parameters
[    2.649660] NET: Registered protocol family 16
[    2.650121] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    2.651639] cpuidle: using governor ladder
[    2.651669] cpuidle: using governor menu
[    2.651778] Kirkwood: MV88F6281-A0, TCLK=200000000.
[    2.651803] Feroceon L2: Enabling L2
[    2.651845] Feroceon L2: Cache support initialised.
[    2.652669] initial MPP regs: 21111111 00003311 33331100 33003333 00000533 00000000 00000000
[    2.652694]   final MPP regs: 21111111 00003311 33331100 33003333 00000533 00000000 00000000
[    2.654349] Kirkwood PCIe port 0: link down
[    2.654361] PCI: bus0 uses PCIe port 0
[    2.654636] PCI host bridge to bus 0000:00
[    2.654659] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    2.654673] pci_bus 0000:00: root bus resource [io  0x1000-0xffff]
[    2.654686] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    2.654721] pci 0000:00:00.0: [11ab:6281] type 00 class 0x058000
[    2.654752] pci 0000:00:00.0: reg 0x10: [mem 0xf1000000-0xf10fffff 64bit pref]
[    2.654771] pci 0000:00:00.0: reg 0x18: [mem 0x00000000-0x0fffffff]
[    2.654826] pci 0000:00:00.0: supports D1 D2
[    2.655081] PCI: bus0: Fast back to back transfers disabled
[    2.655100] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[    2.660515] Switched to clocksource orion_clocksource
[    2.687127] NET: Registered protocol family 2
[    2.688326] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    2.688370] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    2.688406] TCP: Hash tables configured (established 2048 bind 2048)
[    2.688478] TCP: reno registered
[    2.688493] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    2.688558] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    2.688786] NET: Registered protocol family 1
[    2.688868] PCI: CLS 32 bytes, default 32
[    2.689150] Unpacking initramfs...
[    3.877614] Freeing initrd memory: 11140K (c1101000 - c1be2000)
[    3.879272] audit: initializing netlink subsys (disabled)
[    3.879359] audit: type=2000 audit(1.284:1): initialized
[    3.880363] zbud: loaded
[    3.880691] VFS: Disk quotas dquot_6.5.2
[    3.880751] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    3.880884] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    3.881143] msgmni has been set to 495
[    3.883500] alg: No test for stdrng (krng)
[    3.883639] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    3.883876] io scheduler noop registered
[    3.884061] io scheduler cfq registered (default)
[    3.884835] mv_xor mv_xor.0: Marvell shared XOR driver
[    3.904645] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[    3.924640] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[    3.924859] mv_xor mv_xor.1: Marvell shared XOR driver
[    3.944640] mv_xor mv_xor.1: Marvell XOR: ( xor cpy )
[    3.964640] mv_xor mv_xor.1: Marvell XOR: ( xor cpy )
[    3.965166] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    3.966376] console [ttyS0] disabled
[    3.986385] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33, base_baud = 12500000) is a 16550A
[    4.513510] console [ttyS0] enabled
[    4.518707] nand: device found, Manufacturer ID: 0xad, Chip ID: 0x75
[    4.525118] nand: Hynix NAND 32MiB 3,3V 8-bit
[    4.529505] nand: 32MiB, SLC, page size: 512, OOB size: 16
[    4.535032] Scanning device for bad blocks
[    4.637074] Bad eraseblock 895 at 0x000000dfc000
[    4.721143] Bad eraseblock 1622 at 0x000001958000
[    4.772363] 4 cmdlinepart partitions found on MTD device orion_nand
[    4.778673] Creating 4 MTD partitions on "orion_nand":
[    4.783862] 0x000000000000-0x000000100000 : "uboot"
[    4.790221] 0x0000000a0000-0x0000000c0000 : "uboot_env"
[    4.796930] 0x000000100000-0x000000400000 : "uImage"
[    4.803349] 0x000000540000-0x000001540000 : "uInitrd"
[    4.810505] mousedev: PS/2 mouse device common for all mice
[    4.816719] rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
[    4.822727] i2c /dev entries driver
[    4.826702] ledtrig-cpu: registered to indicate activity on CPUs
[    4.833093] TCP: cubic registered
[    4.836435] NET: Registered protocol family 17
[    4.841785] registered taskstats version 1
[    4.847269] rtc-mv rtc-mv: setting system clock to 2020-02-07 16:30:07 UTC (1581093007)
[    4.856079] PM: Hibernation image not present or could not be loaded.
[    4.857381] Freeing unused kernel memory: 276K (c0546000 - c058b000)
[    4.946038] systemd-udevd[47]: starting version 215
[    4.959150] random: systemd-udevd: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[    5.050675] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    5.129958] usbcore: registered new interface driver usbfs
[    5.169232] usbcore: registered new interface driver hub
[    5.177377] libphy: orion_mdio_bus: probed
[    5.189485] mvsdio mvsdio: no pins associated
[    5.199284] SCSI subsystem initialized
[    5.213727] usbcore: registered new device driver usb
[    5.245586] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address aa:00:00:00:00:01
[    5.267700] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.292057] libata version 3.00 loaded.
[    5.307231] ehci-orion: EHCI orion driver
[    6.377883] mv643xx_eth_port mv643xx_eth_port.1 eth1: port 0 with MAC address 00:50:43:dd:0d:04
[    6.412362] sata_mv sata_mv.0: version 1.28
[    6.412451] sata_mv sata_mv.0: cannot get optional clkdev
[    6.426968] sata_mv sata_mv.0: slots 32 ports 2
[    6.458335] scsi0 : sata_mv
[    6.462260] scsi1 : sata_mv
[    6.465929] ata1: SATA max UDMA/133 irq 21
[    6.470078] ata2: SATA max UDMA/133 irq 21
[    6.474538] orion-ehci orion-ehci.0: EHCI Host Controller
[    6.481266] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[    6.489114] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[    6.504933] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[    6.511129] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    6.517976] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.525248] usb usb1: Product: EHCI Host Controller
[    6.530165] usb usb1: Manufacturer: Linux 3.16.0-6-kirkwood ehci_hcd
[    6.536566] usb usb1: SerialNumber: orion-ehci.0
[    6.542701] hub 1-0:1.0: USB hub found
[    6.546541] hub 1-0:1.0: 1 port detected
[    6.860550] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    6.948566] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    6.968587] ata1.00: ATA-8: ST2000DM001-9YN164, CC4C, max UDMA/133
[    6.974819] ata1.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    7.001007] usb 1-1: New USB device found, idVendor=058f, idProduct=6254
[    7.007775] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[    7.020043] hub 1-1:1.0: USB hub found
[    7.024041] hub 1-1:1.0: 4 ports detected
[    7.228618] ata1.00: configured for UDMA/133
[    7.233384] scsi 0:0:0:0: Direct-Access     ATA      ST2000DM001-9YN1 CC4C PQ: 0 ANSI: 5
[    7.328547] usb 1-1.1: new high-speed USB device number 3 using orion-ehci
[    7.442884] usb 1-1.1: New USB device found, idVendor=154b, idProduct=005b
[    7.449824] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    7.457198] usb 1-1.1: Product: USB 2.0 FD
[    7.461331] usb 1-1.1: Manufacturer: PNY Technologies
[    7.466422] usb 1-1.1: SerialNumber: AD1CHD1200000071
[    7.483601] usb-storage 1-1.1:1.0: USB Mass Storage device detected
[    7.490360] scsi2 : usb-storage 1-1.1:1.0
[    7.496406] usbcore: registered new interface driver usb-storage
[    7.728561] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    7.748593] ata2.00: ATA-8: ST2000DM001-9YN164, CC4C, max UDMA/133
[    7.754829] ata2.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    8.016595] ata2.00: configured for UDMA/133
[    8.021364] scsi 1:0:0:0: Direct-Access     ATA      ST2000DM001-9YN1 CC4C PQ: 0 ANSI: 5
[    8.057226] sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[    8.065051] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    8.071060] sd 1:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[    8.078870] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[    8.085515] sd 0:0:0:0: [sda] Write Protect is off
[    8.090365] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    8.090667] sd 1:0:0:0: [sdb] Write Protect is off
[    8.095509] sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[    8.095648] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    8.104888] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    8.121343]  sda: sda1
[    8.125775] sd 0:0:0:0: [sda] Attached SCSI disk
[    8.230667]  sdb: sdb1
[    8.235041] sd 1:0:0:0: [sdb] Attached SCSI disk
[    8.245858] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    8.251750] sd 1:0:0:0: Attached scsi generic sg1 type 0
[    8.732752] scsi 2:0:0:0: Direct-Access     PNY      USB 2.0 FD       1100 PQ: 0 ANSI: 4
[    8.747202] sd 2:0:0:0: [sdc] 15814656 512-byte logical blocks: (8.09 GB/7.54 GiB)
[    8.759067] sd 2:0:0:0: Attached scsi generic sg2 type 0
[    8.766997] sd 2:0:0:0: [sdc] Write Protect is off
[    8.771864] sd 2:0:0:0: [sdc] Mode Sense: 43 00 00 00
[    8.772668] sd 2:0:0:0: [sdc] No Caching mode page found
[    8.778036] sd 2:0:0:0: [sdc] Assuming drive cache: write through
[    8.790318]  sdc: sdc1
[    8.803199] sd 2:0:0:0: [sdc] Attached SCSI removable disk
[   18.662912] random: nonblocking pool is initialized
[   18.674202] md: md0 stopped.
[   18.696788] md: bind<sdb1>
[   18.706087] md: bind<sda1>
[   18.726800] md: raid1 personality registered for level 1
[   18.741755] md/raid1:md0: active with 2 out of 2 mirrors
[   18.747505] created bitmap (15 pages) for device md0
[   18.758367] md0: bitmap initialized from disk: read 1 pages, set 0 of 29807 bits
[   18.804703] md0: detected capacity change from 0 to 2000263577600
[   18.821184]  md0: p1 p2 < p5 >
[   19.091126] device-mapper: uevent: version 1.0.3
[   19.098100] device-mapper: ioctl: 4.27.0-ioctl (2013-10-30) initialised: dm-devel@redhat.com
[   19.697722] PM: Starting manual resume from disk
[   19.702406] PM: Hibernation image partition 252:1 present
[   19.702417] PM: Looking for hibernation image.
[   19.711231] PM: Image not found (code -22)
[   19.711245] PM: Hibernation image not present or could not be loaded.
[   21.189835] EXT4-fs (dm-0): mounted filesystem with ordered data mode. Opts: (null)
[   21.841761] systemd[1]: systemd 215 running in system mode. (+PAM +AUDIT +SELINUX +IMA +SYSVINIT +LIBCRYPTSETUP +GCRYPT +ACL +XZ -SECCOMP -APPARMOR)
[   21.855517] systemd[1]: Detected architecture 'arm'.
[   21.996740] systemd[1]: Inserted module 'autofs4'
[   22.042695] NET: Registered protocol family 10
[   22.048632] systemd[1]: Inserted module 'ipv6'
[   22.060870] systemd[1]: Set hostname to <debian>.
[   22.663859] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
[   22.682967] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
[   22.691149] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[   22.698914] systemd[1]: Expecting device dev-ttyS0.device...
[   22.712742] systemd[1]: Starting Remote File Systems (Pre).
[   22.728680] systemd[1]: Reached target Remote File Systems (Pre).
[   22.735057] systemd[1]: Starting Arbitrary Executable File Formats File System Automount Point.
[   22.756698] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[   22.766331] systemd[1]: Starting Dispatch Password Requests to Console Directory Watch.
[   22.774691] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[   22.782777] systemd[1]: Starting Paths.
[   22.796683] systemd[1]: Reached target Paths.
[   22.801228] systemd[1]: Expecting device dev-mapper-debian\x2d\x2dvg\x2dswap_1.device...
[   22.820721] systemd[1]: Expecting device dev-disk-by\x2duuid-c0abad6a\x2d44f2\x2d4ff6\x2d875e\x2db1af51953e5b.device...
[   22.844699] systemd[1]: Starting Root Slice.
[   22.856678] systemd[1]: Created slice Root Slice.
[   22.861545] systemd[1]: Starting User and Session Slice.
[   22.876680] systemd[1]: Created slice User and Session Slice.
[   22.882592] systemd[1]: Starting Delayed Shutdown Socket.
[   22.896687] systemd[1]: Listening on Delayed Shutdown Socket.
[   22.902608] systemd[1]: Starting /dev/initctl Compatibility Named Pipe.
[   22.920683] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[   22.927820] systemd[1]: Starting Journal Socket (/dev/log).
[   22.944679] systemd[1]: Listening on Journal Socket (/dev/log).
[   22.950773] systemd[1]: Starting LVM2 metadata daemon socket.
[   22.968677] systemd[1]: Listening on LVM2 metadata daemon socket.
[   22.974936] systemd[1]: Starting Device-mapper event daemon FIFOs.
[   22.992682] systemd[1]: Listening on Device-mapper event daemon FIFOs.
[   22.999416] systemd[1]: Starting udev Control Socket.
[   23.016678] systemd[1]: Listening on udev Control Socket.
[   23.022286] systemd[1]: Starting udev Kernel Socket.
[   23.036680] systemd[1]: Listening on udev Kernel Socket.
[   23.042182] systemd[1]: Starting Journal Socket.
[   23.056683] systemd[1]: Listening on Journal Socket.
[   23.061908] systemd[1]: Starting System Slice.
[   23.076684] systemd[1]: Created slice System Slice.
[   23.081789] systemd[1]: Started File System Check on Root Device.
[   23.088023] systemd[1]: Starting system-systemd\x2dfsck.slice.
[   23.104689] systemd[1]: Created slice system-systemd\x2dfsck.slice.
[   23.111135] systemd[1]: Starting system-getty.slice.
[   23.128684] systemd[1]: Created slice system-getty.slice.
[   23.134245] systemd[1]: Starting system-serial\x2dgetty.slice.
[   23.152681] systemd[1]: Created slice system-serial\x2dgetty.slice.
[   23.159205] systemd[1]: Starting Increase datagram queue length...
[   23.241203] systemd[1]: Starting Load Kernel Modules...
[   23.260876] systemd[1]: Starting Create list of required static device nodes for the current kernel...
[   23.301908] systemd[1]: Mounting Debug File System...
[   23.410024] systemd[1]: Started Set Up Additional Binary Formats.
[   23.419102] systemd[1]: Mounted Huge Pages File System.
[   23.428607] systemd[1]: Starting udev Coldplug all Devices...
[   23.448143] systemd[1]: Mounting POSIX Message Queue File System...
[   23.471929] systemd[1]: Starting Remount Root and Kernel File Systems...
[   23.512118] systemd[1]: Starting Slices.
[   23.536805] systemd[1]: Reached target Slices.
[   23.576978] systemd[1]: Mounted POSIX Message Queue File System.
[   23.592821] systemd[1]: Mounted Debug File System.
[   23.609106] systemd[1]: Started Increase datagram queue length.
[   23.624705] systemd[1]: Started Load Kernel Modules.
[   23.644698] systemd[1]: Started Create list of required static device nodes for the current kernel.
[   23.690784] EXT4-fs (dm-0): re-mounted. Opts: errors=remount-ro
[   23.720817] systemd[1]: Started Remount Root and Kernel File Systems.
[   23.792739] systemd[1]: Started udev Coldplug all Devices.
[   23.943231] systemd[1]: Starting udev Wait for Complete Device Initialization...
[   23.992592] systemd[1]: Started Various fixups to make systemd work better on Debian.
[   24.001120] systemd[1]: Starting Load/Save Random Seed...
[   24.020770] systemd[1]: Starting Create Static Device Nodes in /dev...
[   24.044355] systemd[1]: Starting Apply Kernel Variables...
[   24.088893] systemd[1]: Mounted Configuration File System.
[   24.100426] systemd[1]: Mounted FUSE Control File System.
[   24.107603] systemd[1]: Starting Syslog Socket.
[   24.120757] systemd[1]: Listening on Syslog Socket.
[   24.134321] systemd[1]: Starting Journal Service...
[   24.164923] systemd[1]: Started Journal Service.
[   24.387122] systemd-udevd[189]: starting version 215
[   25.058966] MV-CESA:Could not register sha1 driver
[   25.063961] MV-CESA:Could not register hmac-sha1 driver
[   26.406810] Adding 741372k swap on /dev/mapper/debian--vg-swap_1.  Priority:-1 extents:1 across:741372k FS
[   26.812240] EXT4-fs (md0p1): mounting ext2 file system using the ext4 subsystem
[   27.005239] EXT4-fs (md0p1): mounted filesystem without journal. Opts: (null)
[   27.177017] systemd-journald[187]: Received request to flush runtime journal from PID 1
[   28.711029] mv643xx_eth_port mv643xx_eth_port.1 eth1: link down
[   28.718321] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[   30.018295] RPC: Registered named UNIX socket transport module.
[   30.024291] RPC: Registered udp transport module.
[   30.029035] RPC: Registered tcp transport module.
[   30.033775] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   30.061831] FS-Cache: Loaded
[   30.109630] FS-Cache: Netfs 'nfs' registered for caching
[   30.189343] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   31.329044] mv643xx_eth_port mv643xx_eth_port.1 eth1: link up, 1000 Mb/s, full duplex, flow control disabled
[   31.340155] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00100000 00004000 "uboot"
mtd1: 00020000 00004000 "uboot_env"
mtd2: 00300000 00004000 "uImage"
mtd3: 01000000 00004000 "uInitrd"
root@debian:~# flash_erase /dev/mtd2 0 0
Erasing 16 Kibyte @ 2fc000 -- 100 % complete
root@debian:~# flash_erase /dev/mtd3 0 0
Erasing 16 Kibyte @ 8b8000 -- 54 % complete flash_erase: Skipping bad block at 008bc000
Erasing 16 Kibyte @ ffc000 -- 100 % complete
root@debian:~# nandwrite -p /dev/mtd2 /boot/uImage
Writing data to block 0 at offset 0x0
Writing data to block 1 at offset 0x4000
Writing data to block 2 at offset 0x8000
Writing data to block 3 at offset 0xc000
Writing data to block 4 at offset 0x10000
Writing data to block 5 at offset 0x14000
Writing data to block 6 at offset 0x18000
Writing data to block 7 at offset 0x1c000
Writing data to block 8 at offset 0x20000
Writing data to block 9 at offset 0x24000
Writing data to block 10 at offset 0x28000
Writing data to block 11 at offset 0x2c000
Writing data to block 12 at offset 0x30000
Writing data to block 13 at offset 0x34000
Writing data to block 14 at offset 0x38000
Writing data to block 15 at offset 0x3c000
Writing data to block 16 at offset 0x40000
Writing data to block 17 at offset 0x44000
Writing data to block 18 at offset 0x48000
Writing data to block 19 at offset 0x4c000
Writing data to block 20 at offset 0x50000
Writing data to block 21 at offset 0x54000
Writing data to block 22 at offset 0x58000
Writing data to block 23 at offset 0x5c000
Writing data to block 24 at offset 0x60000
Writing data to block 25 at offset 0x64000
Writing data to block 26 at offset 0x68000
Writing data to block 27 at offset 0x6c000
Writing data to block 28 at offset 0x70000
Writing data to block 29 at offset 0x74000
Writing data to block 30 at offset 0x78000
Writing data to block 31 at offset 0x7c000
Writing data to block 32 at offset 0x80000
Writing data to block 33 at offset 0x84000
Writing data to block 34 at offset 0x88000
Writing data to block 35 at offset 0x8c000
Writing data to block 36 at offset 0x90000
Writing data to block 37 at offset 0x94000
Writing data to block 38 at offset 0x98000
Writing data to block 39 at offset 0x9c000
Writing data to block 40 at offset 0xa0000
Writing data to block 41 at offset 0xa4000
Writing data to block 42 at offset 0xa8000
Writing data to block 43 at offset 0xac000
Writing data to block 44 at offset 0xb0000
Writing data to block 45 at offset 0xb4000
Writing data to block 46 at offset 0xb8000
Writing data to block 47 at offset 0xbc000
Writing data to block 48 at offset 0xc0000
Writing data to block 49 at offset 0xc4000
Writing data to block 50 at offset 0xc8000
Writing data to block 51 at offset 0xcc000
Writing data to block 52 at offset 0xd0000
Writing data to block 53 at offset 0xd4000
Writing data to block 54 at offset 0xd8000
Writing data to block 55 at offset 0xdc000
Writing data to block 56 at offset 0xe0000
Writing data to block 57 at offset 0xe4000
Writing data to block 58 at offset 0xe8000
Writing data to block 59 at offset 0xec000
Writing data to block 60 at offset 0xf0000
Writing data to block 61 at offset 0xf4000
Writing data to block 62 at offset 0xf8000
Writing data to block 63 at offset 0xfc000
Writing data to block 64 at offset 0x100000
Writing data to block 65 at offset 0x104000
Writing data to block 66 at offset 0x108000
Writing data to block 67 at offset 0x10c000
Writing data to block 68 at offset 0x110000
Writing data to block 69 at offset 0x114000
Writing data to block 70 at offset 0x118000
Writing data to block 71 at offset 0x11c000
Writing data to block 72 at offset 0x120000
Writing data to block 73 at offset 0x124000
Writing data to block 74 at offset 0x128000
Writing data to block 75 at offset 0x12c000
Writing data to block 76 at offset 0x130000
Writing data to block 77 at offset 0x134000
Writing data to block 78 at offset 0x138000
Writing data to block 79 at offset 0x13c000
Writing data to block 80 at offset 0x140000
Writing data to block 81 at offset 0x144000
Writing data to block 82 at offset 0x148000
Writing data to block 83 at offset 0x14c000
Writing data to block 84 at offset 0x150000
Writing data to block 85 at offset 0x154000
Writing data to block 86 at offset 0x158000
Writing data to block 87 at offset 0x15c000
Writing data to block 88 at offset 0x160000
Writing data to block 89 at offset 0x164000
Writing data to block 90 at offset 0x168000
Writing data to block 91 at offset 0x16c000
Writing data to block 92 at offset 0x170000
Writing data to block 93 at offset 0x174000
Writing data to block 94 at offset 0x178000
Writing data to block 95 at offset 0x17c000
Writing data to block 96 at offset 0x180000
Writing data to block 97 at offset 0x184000
Writing data to block 98 at offset 0x188000
Writing data to block 99 at offset 0x18c000
Writing data to block 100 at offset 0x190000
Writing data to block 101 at offset 0x194000
Writing data to block 102 at offset 0x198000
Writing data to block 103 at offset 0x19c000
Writing data to block 104 at offset 0x1a0000
Writing data to block 105 at offset 0x1a4000
Writing data to block 106 at offset 0x1a8000
Writing data to block 107 at offset 0x1ac000
Writing data to block 108 at offset 0x1b0000
Writing data to block 109 at offset 0x1b4000
Writing data to block 110 at offset 0x1b8000
Writing data to block 111 at offset 0x1bc000
Writing data to block 112 at offset 0x1c0000
Writing data to block 113 at offset 0x1c4000
Writing data to block 114 at offset 0x1c8000
Writing data to block 115 at offset 0x1cc000
Writing data to block 116 at offset 0x1d0000
Writing data to block 117 at offset 0x1d4000
Writing data to block 118 at offset 0x1d8000
Writing data to block 119 at offset 0x1dc000
Writing data to block 120 at offset 0x1e0000
Writing data to block 121 at offset 0x1e4000
Writing data to block 122 at offset 0x1e8000
Writing data to block 123 at offset 0x1ec000
Writing data to block 124 at offset 0x1f0000
Writing data to block 125 at offset 0x1f4000
Writing data to block 126 at offset 0x1f8000
root@debian:~# nandwrite -p /dev/mtd3 /boot/uInitrd
Writing data to block 0 at offset 0x0
Writing data to block 1 at offset 0x4000
Writing data to block 2 at offset 0x8000
Writing data to block 3 at offset 0xc000
Writing data to block 4 at offset 0x10000
Writing data to block 5 at offset 0x14000
Writing data to block 6 at offset 0x18000
Writing data to block 7 at offset 0x1c000
Writing data to block 8 at offset 0x20000
Writing data to block 9 at offset 0x24000
Writing data to block 10 at offset 0x28000
Writing data to block 11 at offset 0x2c000
Writing data to block 12 at offset 0x30000
Writing data to block 13 at offset 0x34000
Writing data to block 14 at offset 0x38000
Writing data to block 15 at offset 0x3c000
Writing data to block 16 at offset 0x40000
Writing data to block 17 at offset 0x44000
Writing data to block 18 at offset 0x48000
Writing data to block 19 at offset 0x4c000
Writing data to block 20 at offset 0x50000
Writing data to block 21 at offset 0x54000
Writing data to block 22 at offset 0x58000
Writing data to block 23 at offset 0x5c000
Writing data to block 24 at offset 0x60000
Writing data to block 25 at offset 0x64000
Writing data to block 26 at offset 0x68000
Writing data to block 27 at offset 0x6c000
Writing data to block 28 at offset 0x70000
Writing data to block 29 at offset 0x74000
Writing data to block 30 at offset 0x78000
Writing data to block 31 at offset 0x7c000
Writing data to block 32 at offset 0x80000
Writing data to block 33 at offset 0x84000
Writing data to block 34 at offset 0x88000
Writing data to block 35 at offset 0x8c000
Writing data to block 36 at offset 0x90000
Writing data to block 37 at offset 0x94000
Writing data to block 38 at offset 0x98000
Writing data to block 39 at offset 0x9c000
Writing data to block 40 at offset 0xa0000
Writing data to block 41 at offset 0xa4000
Writing data to block 42 at offset 0xa8000
Writing data to block 43 at offset 0xac000
Writing data to block 44 at offset 0xb0000
Writing data to block 45 at offset 0xb4000
Writing data to block 46 at offset 0xb8000
Writing data to block 47 at offset 0xbc000
Writing data to block 48 at offset 0xc0000
Writing data to block 49 at offset 0xc4000
Writing data to block 50 at offset 0xc8000
Writing data to block 51 at offset 0xcc000
Writing data to block 52 at offset 0xd0000
Writing data to block 53 at offset 0xd4000
Writing data to block 54 at offset 0xd8000
Writing data to block 55 at offset 0xdc000
Writing data to block 56 at offset 0xe0000
Writing data to block 57 at offset 0xe4000
Writing data to block 58 at offset 0xe8000
Writing data to block 59 at offset 0xec000
Writing data to block 60 at offset 0xf0000
Writing data to block 61 at offset 0xf4000
Writing data to block 62 at offset 0xf8000
Writing data to block 63 at offset 0xfc000
Writing data to block 64 at offset 0x100000
Writing data to block 65 at offset 0x104000
Writing data to block 66 at offset 0x108000
Writing data to block 67 at offset 0x10c000
Writing data to block 68 at offset 0x110000
Writing data to block 69 at offset 0x114000
Writing data to block 70 at offset 0x118000
Writing data to block 71 at offset 0x11c000
Writing data to block 72 at offset 0x120000
Writing data to block 73 at offset 0x124000
Writing data to block 74 at offset 0x128000
Writing data to block 75 at offset 0x12c000
Writing data to block 76 at offset 0x130000
Writing data to block 77 at offset 0x134000
Writing data to block 78 at offset 0x138000
Writing data to block 79 at offset 0x13c000
Writing data to block 80 at offset 0x140000
Writing data to block 81 at offset 0x144000
Writing data to block 82 at offset 0x148000
Writing data to block 83 at offset 0x14c000
Writing data to block 84 at offset 0x150000
Writing data to block 85 at offset 0x154000
Writing data to block 86 at offset 0x158000
Writing data to block 87 at offset 0x15c000
Writing data to block 88 at offset 0x160000
Writing data to block 89 at offset 0x164000
Writing data to block 90 at offset 0x168000
Writing data to block 91 at offset 0x16c000
Writing data to block 92 at offset 0x170000
Writing data to block 93 at offset 0x174000
Writing data to block 94 at offset 0x178000
Writing data to block 95 at offset 0x17c000
Writing data to block 96 at offset 0x180000
Writing data to block 97 at offset 0x184000
Writing data to block 98 at offset 0x188000
Writing data to block 99 at offset 0x18c000
Writing data to block 100 at offset 0x190000
Writing data to block 101 at offset 0x194000
Writing data to block 102 at offset 0x198000
Writing data to block 103 at offset 0x19c000
Writing data to block 104 at offset 0x1a0000
Writing data to block 105 at offset 0x1a4000
Writing data to block 106 at offset 0x1a8000
Writing data to block 107 at offset 0x1ac000
Writing data to block 108 at offset 0x1b0000
Writing data to block 109 at offset 0x1b4000
Writing data to block 110 at offset 0x1b8000
Writing data to block 111 at offset 0x1bc000
Writing data to block 112 at offset 0x1c0000
Writing data to block 113 at offset 0x1c4000
Writing data to block 114 at offset 0x1c8000
Writing data to block 115 at offset 0x1cc000
Writing data to block 116 at offset 0x1d0000
Writing data to block 117 at offset 0x1d4000
Writing data to block 118 at offset 0x1d8000
Writing data to block 119 at offset 0x1dc000
Writing data to block 120 at offset 0x1e0000
Writing data to block 121 at offset 0x1e4000
Writing data to block 122 at offset 0x1e8000
Writing data to block 123 at offset 0x1ec000
Writing data to block 124 at offset 0x1f0000
Writing data to block 125 at offset 0x1f4000
Writing data to block 126 at offset 0x1f8000
Writing data to block 127 at offset 0x1fc000
Writing data to block 128 at offset 0x200000
Writing data to block 129 at offset 0x204000
Writing data to block 130 at offset 0x208000
Writing data to block 131 at offset 0x20c000
Writing data to block 132 at offset 0x210000
Writing data to block 133 at offset 0x214000
Writing data to block 134 at offset 0x218000
Writing data to block 135 at offset 0x21c000
Writing data to block 136 at offset 0x220000
Writing data to block 137 at offset 0x224000
Writing data to block 138 at offset 0x228000
Writing data to block 139 at offset 0x22c000
Writing data to block 140 at offset 0x230000
Writing data to block 141 at offset 0x234000
Writing data to block 142 at offset 0x238000
Writing data to block 143 at offset 0x23c000
Writing data to block 144 at offset 0x240000
Writing data to block 145 at offset 0x244000
Writing data to block 146 at offset 0x248000
Writing data to block 147 at offset 0x24c000
Writing data to block 148 at offset 0x250000
Writing data to block 149 at offset 0x254000
Writing data to block 150 at offset 0x258000
Writing data to block 151 at offset 0x25c000
Writing data to block 152 at offset 0x260000
Writing data to block 153 at offset 0x264000
Writing data to block 154 at offset 0x268000
Writing data to block 155 at offset 0x26c000
Writing data to block 156 at offset 0x270000
Writing data to block 157 at offset 0x274000
Writing data to block 158 at offset 0x278000
Writing data to block 159 at offset 0x27c000
Writing data to block 160 at offset 0x280000
Writing data to block 161 at offset 0x284000
Writing data to block 162 at offset 0x288000
Writing data to block 163 at offset 0x28c000
Writing data to block 164 at offset 0x290000
Writing data to block 165 at offset 0x294000
Writing data to block 166 at offset 0x298000
Writing data to block 167 at offset 0x29c000
Writing data to block 168 at offset 0x2a0000
Writing data to block 169 at offset 0x2a4000
Writing data to block 170 at offset 0x2a8000
Writing data to block 171 at offset 0x2ac000
Writing data to block 172 at offset 0x2b0000
Writing data to block 173 at offset 0x2b4000
Writing data to block 174 at offset 0x2b8000
Writing data to block 175 at offset 0x2bc000
Writing data to block 176 at offset 0x2c0000
Writing data to block 177 at offset 0x2c4000
Writing data to block 178 at offset 0x2c8000
Writing data to block 179 at offset 0x2cc000
Writing data to block 180 at offset 0x2d0000
Writing data to block 181 at offset 0x2d4000
Writing data to block 182 at offset 0x2d8000
Writing data to block 183 at offset 0x2dc000
Writing data to block 184 at offset 0x2e0000
Writing data to block 185 at offset 0x2e4000
Writing data to block 186 at offset 0x2e8000
Writing data to block 187 at offset 0x2ec000
Writing data to block 188 at offset 0x2f0000
Writing data to block 189 at offset 0x2f4000
Writing data to block 190 at offset 0x2f8000
Writing data to block 191 at offset 0x2fc000
Writing data to block 192 at offset 0x300000
Writing data to block 193 at offset 0x304000
Writing data to block 194 at offset 0x308000
Writing data to block 195 at offset 0x30c000
Writing data to block 196 at offset 0x310000
Writing data to block 197 at offset 0x314000
Writing data to block 198 at offset 0x318000
Writing data to block 199 at offset 0x31c000
Writing data to block 200 at offset 0x320000
Writing data to block 201 at offset 0x324000
Writing data to block 202 at offset 0x328000
Writing data to block 203 at offset 0x32c000
Writing data to block 204 at offset 0x330000
Writing data to block 205 at offset 0x334000
Writing data to block 206 at offset 0x338000
Writing data to block 207 at offset 0x33c000
Writing data to block 208 at offset 0x340000
Writing data to block 209 at offset 0x344000
Writing data to block 210 at offset 0x348000
Writing data to block 211 at offset 0x34c000
Writing data to block 212 at offset 0x350000
Writing data to block 213 at offset 0x354000
Writing data to block 214 at offset 0x358000
Writing data to block 215 at offset 0x35c000
Writing data to block 216 at offset 0x360000
Writing data to block 217 at offset 0x364000
Writing data to block 218 at offset 0x368000
Writing data to block 219 at offset 0x36c000
Writing data to block 220 at offset 0x370000
Writing data to block 221 at offset 0x374000
Writing data to block 222 at offset 0x378000
Writing data to block 223 at offset 0x37c000
Writing data to block 224 at offset 0x380000
Writing data to block 225 at offset 0x384000
Writing data to block 226 at offset 0x388000
Writing data to block 227 at offset 0x38c000
Writing data to block 228 at offset 0x390000
Writing data to block 229 at offset 0x394000
Writing data to block 230 at offset 0x398000
Writing data to block 231 at offset 0x39c000
Writing data to block 232 at offset 0x3a0000
Writing data to block 233 at offset 0x3a4000
Writing data to block 234 at offset 0x3a8000
Writing data to block 235 at offset 0x3ac000
Writing data to block 236 at offset 0x3b0000
Writing data to block 237 at offset 0x3b4000
Writing data to block 238 at offset 0x3b8000
Writing data to block 239 at offset 0x3bc000
Writing data to block 240 at offset 0x3c0000
Writing data to block 241 at offset 0x3c4000
Writing data to block 242 at offset 0x3c8000
Writing data to block 243 at offset 0x3cc000
Writing data to block 244 at offset 0x3d0000
Writing data to block 245 at offset 0x3d4000
Writing data to block 246 at offset 0x3d8000
Writing data to block 247 at offset 0x3dc000
Writing data to block 248 at offset 0x3e0000
Writing data to block 249 at offset 0x3e4000
Writing data to block 250 at offset 0x3e8000
Writing data to block 251 at offset 0x3ec000
Writing data to block 252 at offset 0x3f0000
Writing data to block 253 at offset 0x3f4000
Writing data to block 254 at offset 0x3f8000
Writing data to block 255 at offset 0x3fc000
Writing data to block 256 at offset 0x400000
Writing data to block 257 at offset 0x404000
Writing data to block 258 at offset 0x408000
Writing data to block 259 at offset 0x40c000
Writing data to block 260 at offset 0x410000
Writing data to block 261 at offset 0x414000
Writing data to block 262 at offset 0x418000
Writing data to block 263 at offset 0x41c000
Writing data to block 264 at offset 0x420000
Writing data to block 265 at offset 0x424000
Writing data to block 266 at offset 0x428000
Writing data to block 267 at offset 0x42c000
Writing data to block 268 at offset 0x430000
Writing data to block 269 at offset 0x434000
Writing data to block 270 at offset 0x438000
Writing data to block 271 at offset 0x43c000
Writing data to block 272 at offset 0x440000
Writing data to block 273 at offset 0x444000
Writing data to block 274 at offset 0x448000
Writing data to block 275 at offset 0x44c000
Writing data to block 276 at offset 0x450000
Writing data to block 277 at offset 0x454000
Writing data to block 278 at offset 0x458000
Writing data to block 279 at offset 0x45c000
Writing data to block 280 at offset 0x460000
Writing data to block 281 at offset 0x464000
Writing data to block 282 at offset 0x468000
Writing data to block 283 at offset 0x46c000
Writing data to block 284 at offset 0x470000
Writing data to block 285 at offset 0x474000
Writing data to block 286 at offset 0x478000
Writing data to block 287 at offset 0x47c000
Writing data to block 288 at offset 0x480000
Writing data to block 289 at offset 0x484000
Writing data to block 290 at offset 0x488000
Writing data to block 291 at offset 0x48c000
Writing data to block 292 at offset 0x490000
Writing data to block 293 at offset 0x494000
Writing data to block 294 at offset 0x498000
Writing data to block 295 at offset 0x49c000
Writing data to block 296 at offset 0x4a0000
Writing data to block 297 at offset 0x4a4000
Writing data to block 298 at offset 0x4a8000
Writing data to block 299 at offset 0x4ac000
Writing data to block 300 at offset 0x4b0000
Writing data to block 301 at offset 0x4b4000
Writing data to block 302 at offset 0x4b8000
Writing data to block 303 at offset 0x4bc000
Writing data to block 304 at offset 0x4c0000
Writing data to block 305 at offset 0x4c4000
Writing data to block 306 at offset 0x4c8000
Writing data to block 307 at offset 0x4cc000
Writing data to block 308 at offset 0x4d0000
Writing data to block 309 at offset 0x4d4000
Writing data to block 310 at offset 0x4d8000
Writing data to block 311 at offset 0x4dc000
Writing data to block 312 at offset 0x4e0000
Writing data to block 313 at offset 0x4e4000
Writing data to block 314 at offset 0x4e8000
Writing data to block 315 at offset 0x4ec000
Writing data to block 316 at offset 0x4f0000
Writing data to block 317 at offset 0x4f4000
Writing data to block 318 at offset 0x4f8000
Writing data to block 319 at offset 0x4fc000
Writing data to block 320 at offset 0x500000
Writing data to block 321 at offset 0x504000
Writing data to block 322 at offset 0x508000
Writing data to block 323 at offset 0x50c000
Writing data to block 324 at offset 0x510000
Writing data to block 325 at offset 0x514000
Writing data to block 326 at offset 0x518000
Writing data to block 327 at offset 0x51c000
Writing data to block 328 at offset 0x520000
Writing data to block 329 at offset 0x524000
Writing data to block 330 at offset 0x528000
Writing data to block 331 at offset 0x52c000
Writing data to block 332 at offset 0x530000
Writing data to block 333 at offset 0x534000
Writing data to block 334 at offset 0x538000
Writing data to block 335 at offset 0x53c000
Writing data to block 336 at offset 0x540000
Writing data to block 337 at offset 0x544000
Writing data to block 338 at offset 0x548000
Writing data to block 339 at offset 0x54c000
Writing data to block 340 at offset 0x550000
Writing data to block 341 at offset 0x554000
Writing data to block 342 at offset 0x558000
Writing data to block 343 at offset 0x55c000
Writing data to block 344 at offset 0x560000
Writing data to block 345 at offset 0x564000
Writing data to block 346 at offset 0x568000
Writing data to block 347 at offset 0x56c000
Writing data to block 348 at offset 0x570000
Writing data to block 349 at offset 0x574000
Writing data to block 350 at offset 0x578000
Writing data to block 351 at offset 0x57c000
Writing data to block 352 at offset 0x580000
Writing data to block 353 at offset 0x584000
Writing data to block 354 at offset 0x588000
Writing data to block 355 at offset 0x58c000
Writing data to block 356 at offset 0x590000
Writing data to block 357 at offset 0x594000
Writing data to block 358 at offset 0x598000
Writing data to block 359 at offset 0x59c000
Writing data to block 360 at offset 0x5a0000
Writing data to block 361 at offset 0x5a4000
Writing data to block 362 at offset 0x5a8000
Writing data to block 363 at offset 0x5ac000
Writing data to block 364 at offset 0x5b0000
Writing data to block 365 at offset 0x5b4000
Writing data to block 366 at offset 0x5b8000
Writing data to block 367 at offset 0x5bc000
Writing data to block 368 at offset 0x5c0000
Writing data to block 369 at offset 0x5c4000
Writing data to block 370 at offset 0x5c8000
Writing data to block 371 at offset 0x5cc000
Writing data to block 372 at offset 0x5d0000
Writing data to block 373 at offset 0x5d4000
Writing data to block 374 at offset 0x5d8000
Writing data to block 375 at offset 0x5dc000
Writing data to block 376 at offset 0x5e0000
Writing data to block 377 at offset 0x5e4000
Writing data to block 378 at offset 0x5e8000
Writing data to block 379 at offset 0x5ec000
Writing data to block 380 at offset 0x5f0000
Writing data to block 381 at offset 0x5f4000
Writing data to block 382 at offset 0x5f8000
Writing data to block 383 at offset 0x5fc000
Writing data to block 384 at offset 0x600000
Writing data to block 385 at offset 0x604000
Writing data to block 386 at offset 0x608000
Writing data to block 387 at offset 0x60c000
Writing data to block 388 at offset 0x610000
Writing data to block 389 at offset 0x614000
Writing data to block 390 at offset 0x618000
Writing data to block 391 at offset 0x61c000
Writing data to block 392 at offset 0x620000
Writing data to block 393 at offset 0x624000
Writing data to block 394 at offset 0x628000
Writing data to block 395 at offset 0x62c000
Writing data to block 396 at offset 0x630000
Writing data to block 397 at offset 0x634000
Writing data to block 398 at offset 0x638000
Writing data to block 399 at offset 0x63c000
Writing data to block 400 at offset 0x640000
Writing data to block 401 at offset 0x644000
Writing data to block 402 at offset 0x648000
Writing data to block 403 at offset 0x64c000
Writing data to block 404 at offset 0x650000
Writing data to block 405 at offset 0x654000
Writing data to block 406 at offset 0x658000
Writing data to block 407 at offset 0x65c000
Writing data to block 408 at offset 0x660000
Writing data to block 409 at offset 0x664000
Writing data to block 410 at offset 0x668000
Writing data to block 411 at offset 0x66c000
Writing data to block 412 at offset 0x670000
Writing data to block 413 at offset 0x674000
Writing data to block 414 at offset 0x678000
Writing data to block 415 at offset 0x67c000
Writing data to block 416 at offset 0x680000
Writing data to block 417 at offset 0x684000
Writing data to block 418 at offset 0x688000
Writing data to block 419 at offset 0x68c000
Writing data to block 420 at offset 0x690000
Writing data to block 421 at offset 0x694000
Writing data to block 422 at offset 0x698000
Writing data to block 423 at offset 0x69c000
Writing data to block 424 at offset 0x6a0000
Writing data to block 425 at offset 0x6a4000
Writing data to block 426 at offset 0x6a8000
Writing data to block 427 at offset 0x6ac000
Writing data to block 428 at offset 0x6b0000
Writing data to block 429 at offset 0x6b4000
Writing data to block 430 at offset 0x6b8000
Writing data to block 431 at offset 0x6bc000
Writing data to block 432 at offset 0x6c0000
Writing data to block 433 at offset 0x6c4000
Writing data to block 434 at offset 0x6c8000
Writing data to block 435 at offset 0x6cc000
Writing data to block 436 at offset 0x6d0000
Writing data to block 437 at offset 0x6d4000
Writing data to block 438 at offset 0x6d8000
Writing data to block 439 at offset 0x6dc000
Writing data to block 440 at offset 0x6e0000
Writing data to block 441 at offset 0x6e4000
Writing data to block 442 at offset 0x6e8000
Writing data to block 443 at offset 0x6ec000
Writing data to block 444 at offset 0x6f0000
Writing data to block 445 at offset 0x6f4000
Writing data to block 446 at offset 0x6f8000
Writing data to block 447 at offset 0x6fc000
Writing data to block 448 at offset 0x700000
Writing data to block 449 at offset 0x704000
Writing data to block 450 at offset 0x708000
Writing data to block 451 at offset 0x70c000
Writing data to block 452 at offset 0x710000
Writing data to block 453 at offset 0x714000
Writing data to block 454 at offset 0x718000
Writing data to block 455 at offset 0x71c000
Writing data to block 456 at offset 0x720000
Writing data to block 457 at offset 0x724000
Writing data to block 458 at offset 0x728000
Writing data to block 459 at offset 0x72c000
Writing data to block 460 at offset 0x730000
Writing data to block 461 at offset 0x734000
Writing data to block 462 at offset 0x738000
Writing data to block 463 at offset 0x73c000
Writing data to block 464 at offset 0x740000
Writing data to block 465 at offset 0x744000
Writing data to block 466 at offset 0x748000
Writing data to block 467 at offset 0x74c000
Writing data to block 468 at offset 0x750000
Writing data to block 469 at offset 0x754000
Writing data to block 470 at offset 0x758000
Writing data to block 471 at offset 0x75c000
Writing data to block 472 at offset 0x760000
Writing data to block 473 at offset 0x764000
Writing data to block 474 at offset 0x768000
Writing data to block 475 at offset 0x76c000
Writing data to block 476 at offset 0x770000
Writing data to block 477 at offset 0x774000
Writing data to block 478 at offset 0x778000
Writing data to block 479 at offset 0x77c000
Writing data to block 480 at offset 0x780000
Writing data to block 481 at offset 0x784000
Writing data to block 482 at offset 0x788000
Writing data to block 483 at offset 0x78c000
Writing data to block 484 at offset 0x790000
Writing data to block 485 at offset 0x794000
Writing data to block 486 at offset 0x798000
Writing data to block 487 at offset 0x79c000
Writing data to block 488 at offset 0x7a0000
Writing data to block 489 at offset 0x7a4000
Writing data to block 490 at offset 0x7a8000
Writing data to block 491 at offset 0x7ac000
Writing data to block 492 at offset 0x7b0000
Writing data to block 493 at offset 0x7b4000
Writing data to block 494 at offset 0x7b8000
Writing data to block 495 at offset 0x7bc000
Writing data to block 496 at offset 0x7c0000
Writing data to block 497 at offset 0x7c4000
Writing data to block 498 at offset 0x7c8000
Writing data to block 499 at offset 0x7cc000
Writing data to block 500 at offset 0x7d0000
Writing data to block 501 at offset 0x7d4000
Writing data to block 502 at offset 0x7d8000
Writing data to block 503 at offset 0x7dc000
Writing data to block 504 at offset 0x7e0000
Writing data to block 505 at offset 0x7e4000
Writing data to block 506 at offset 0x7e8000
Writing data to block 507 at offset 0x7ec000
Writing data to block 508 at offset 0x7f0000
Writing data to block 509 at offset 0x7f4000
Writing data to block 510 at offset 0x7f8000
Writing data to block 511 at offset 0x7fc000
Writing data to block 512 at offset 0x800000
Writing data to block 513 at offset 0x804000
Writing data to block 514 at offset 0x808000
Writing data to block 515 at offset 0x80c000
Writing data to block 516 at offset 0x810000
Writing data to block 517 at offset 0x814000
Writing data to block 518 at offset 0x818000
Writing data to block 519 at offset 0x81c000
Writing data to block 520 at offset 0x820000
Writing data to block 521 at offset 0x824000
Writing data to block 522 at offset 0x828000
Writing data to block 523 at offset 0x82c000
Writing data to block 524 at offset 0x830000
Writing data to block 525 at offset 0x834000
Writing data to block 526 at offset 0x838000
Writing data to block 527 at offset 0x83c000
Writing data to block 528 at offset 0x840000
Writing data to block 529 at offset 0x844000
Writing data to block 530 at offset 0x848000
Writing data to block 531 at offset 0x84c000
Writing data to block 532 at offset 0x850000
Writing data to block 533 at offset 0x854000
Writing data to block 534 at offset 0x858000
Writing data to block 535 at offset 0x85c000
Writing data to block 536 at offset 0x860000
Writing data to block 537 at offset 0x864000
Writing data to block 538 at offset 0x868000
Writing data to block 539 at offset 0x86c000
Writing data to block 540 at offset 0x870000
Writing data to block 541 at offset 0x874000
Writing data to block 542 at offset 0x878000
Writing data to block 543 at offset 0x87c000
Writing data to block 544 at offset 0x880000
Writing data to block 545 at offset 0x884000
Writing data to block 546 at offset 0x888000
Writing data to block 547 at offset 0x88c000
Writing data to block 548 at offset 0x890000
Writing data to block 549 at offset 0x894000
Writing data to block 550 at offset 0x898000
Writing data to block 551 at offset 0x89c000
Writing data to block 552 at offset 0x8a0000
Writing data to block 553 at offset 0x8a4000
Writing data to block 554 at offset 0x8a8000
Writing data to block 555 at offset 0x8ac000
Writing data to block 556 at offset 0x8b0000
Writing data to block 557 at offset 0x8b4000
Writing data to block 558 at offset 0x8b8000
Writing data to block 559 at offset 0x8bc000
Bad block at 8bc000, 1 block(s) from 8bc000 will be skipped
Writing data to block 560 at offset 0x8c0000
Writing data to block 561 at offset 0x8c4000
Writing data to block 562 at offset 0x8c8000
Writing data to block 563 at offset 0x8cc000
Writing data to block 564 at offset 0x8d0000
Writing data to block 565 at offset 0x8d4000
Writing data to block 566 at offset 0x8d8000
Writing data to block 567 at offset 0x8dc000
Writing data to block 568 at offset 0x8e0000
Writing data to block 569 at offset 0x8e4000
Writing data to block 570 at offset 0x8e8000
Writing data to block 571 at offset 0x8ec000
Writing data to block 572 at offset 0x8f0000
Writing data to block 573 at offset 0x8f4000
Writing data to block 574 at offset 0x8f8000
Writing data to block 575 at offset 0x8fc000
Writing data to block 576 at offset 0x900000
Writing data to block 577 at offset 0x904000
Writing data to block 578 at offset 0x908000
Writing data to block 579 at offset 0x90c000
Writing data to block 580 at offset 0x910000
Writing data to block 581 at offset 0x914000
Writing data to block 582 at offset 0x918000
Writing data to block 583 at offset 0x91c000
Writing data to block 584 at offset 0x920000
Writing data to block 585 at offset 0x924000
Writing data to block 586 at offset 0x928000
Writing data to block 587 at offset 0x92c000
Writing data to block 588 at offset 0x930000
Writing data to block 589 at offset 0x934000
Writing data to block 590 at offset 0x938000
Writing data to block 591 at offset 0x93c000
Writing data to block 592 at offset 0x940000
Writing data to block 593 at offset 0x944000
Writing data to block 594 at offset 0x948000
Writing data to block 595 at offset 0x94c000
Writing data to block 596 at offset 0x950000
Writing data to block 597 at offset 0x954000
Writing data to block 598 at offset 0x958000
Writing data to block 599 at offset 0x95c000
Writing data to block 600 at offset 0x960000
Writing data to block 601 at offset 0x964000
Writing data to block 602 at offset 0x968000
Writing data to block 603 at offset 0x96c000
Writing data to block 604 at offset 0x970000
Writing data to block 605 at offset 0x974000
Writing data to block 606 at offset 0x978000
Writing data to block 607 at offset 0x97c000
Writing data to block 608 at offset 0x980000
Writing data to block 609 at offset 0x984000
Writing data to block 610 at offset 0x988000
Writing data to block 611 at offset 0x98c000
Writing data to block 612 at offset 0x990000
Writing data to block 613 at offset 0x994000
Writing data to block 614 at offset 0x998000
Writing data to block 615 at offset 0x99c000
Writing data to block 616 at offset 0x9a0000
Writing data to block 617 at offset 0x9a4000
Writing data to block 618 at offset 0x9a8000
Writing data to block 619 at offset 0x9ac000
Writing data to block 620 at offset 0x9b0000
Writing data to block 621 at offset 0x9b4000
Writing data to block 622 at offset 0x9b8000
Writing data to block 623 at offset 0x9bc000
Writing data to block 624 at offset 0x9c0000
Writing data to block 625 at offset 0x9c4000
Writing data to block 626 at offset 0x9c8000
Writing data to block 627 at offset 0x9cc000
Writing data to block 628 at offset 0x9d0000
Writing data to block 629 at offset 0x9d4000
Writing data to block 630 at offset 0x9d8000
Writing data to block 631 at offset 0x9dc000
Writing data to block 632 at offset 0x9e0000
Writing data to block 633 at offset 0x9e4000
Writing data to block 634 at offset 0x9e8000
Writing data to block 635 at offset 0x9ec000
Writing data to block 636 at offset 0x9f0000
Writing data to block 637 at offset 0x9f4000
Writing data to block 638 at offset 0x9f8000
Writing data to block 639 at offset 0x9fc000
Writing data to block 640 at offset 0xa00000
Writing data to block 641 at offset 0xa04000
Writing data to block 642 at offset 0xa08000
Writing data to block 643 at offset 0xa0c000
Writing data to block 644 at offset 0xa10000
Writing data to block 645 at offset 0xa14000
Writing data to block 646 at offset 0xa18000
Writing data to block 647 at offset 0xa1c000
Writing data to block 648 at offset 0xa20000
Writing data to block 649 at offset 0xa24000
Writing data to block 650 at offset 0xa28000
Writing data to block 651 at offset 0xa2c000
Writing data to block 652 at offset 0xa30000
Writing data to block 653 at offset 0xa34000
Writing data to block 654 at offset 0xa38000
Writing data to block 655 at offset 0xa3c000
Writing data to block 656 at offset 0xa40000
Writing data to block 657 at offset 0xa44000
Writing data to block 658 at offset 0xa48000
Writing data to block 659 at offset 0xa4c000
Writing data to block 660 at offset 0xa50000
Writing data to block 661 at offset 0xa54000
Writing data to block 662 at offset 0xa58000
Writing data to block 663 at offset 0xa5c000
Writing data to block 664 at offset 0xa60000
Writing data to block 665 at offset 0xa64000
Writing data to block 666 at offset 0xa68000
Writing data to block 667 at offset 0xa6c000
Writing data to block 668 at offset 0xa70000
Writing data to block 669 at offset 0xa74000
Writing data to block 670 at offset 0xa78000
Writing data to block 671 at offset 0xa7c000
Writing data to block 672 at offset 0xa80000
Writing data to block 673 at offset 0xa84000
Writing data to block 674 at offset 0xa88000
Writing data to block 675 at offset 0xa8c000
Writing data to block 676 at offset 0xa90000
Writing data to block 677 at offset 0xa94000
Writing data to block 678 at offset 0xa98000
Writing data to block 679 at offset 0xa9c000
Writing data to block 680 at offset 0xaa0000
Writing data to block 681 at offset 0xaa4000
Writing data to block 682 at offset 0xaa8000
Writing data to block 683 at offset 0xaac000
Writing data to block 684 at offset 0xab0000
Writing data to block 685 at offset 0xab4000
Writing data to block 686 at offset 0xab8000
Writing data to block 687 at offset 0xabc000
Writing data to block 688 at offset 0xac0000
Writing data to block 689 at offset 0xac4000
Writing data to block 690 at offset 0xac8000
Writing data to block 691 at offset 0xacc000
Writing data to block 692 at offset 0xad0000
Writing data to block 693 at offset 0xad4000
Writing data to block 694 at offset 0xad8000
Writing data to block 695 at offset 0xadc000
Writing data to block 696 at offset 0xae0000
Writing data to block 697 at offset 0xae4000
root@debian:~#
Re: ix2-200 boots USB but not HDD
February 07, 2020 05:46PM
@damnit_,

> Could that bad block be messing up my checksum??

Yes. Very likely (but this is stock u-boot so I cannot be 100% certain, i.e. I cannot see the source code).

At this point, the easiest thing to do is to strip your initramfs to make it smaller and then rebuild uInitrd. The stripping will make it 8MB or smaller, hopefully, that will avoid the bad block.

Quote
bodhi
Bad block at ~14M location.
And you tried to load uInird at 5.25 MB, and uInitrd size is 10.9 MB


BTW, I notice that you are running the mainline kernel, and dont control what goes into initrd, so the stripping and rebuilding would have to be done each time you upgrade kernel.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: ix2-200 boots USB but not HDD
February 07, 2020 05:50PM
Also,

Your NAND is 32MB. So you could repartition it to move uInird partition to after the bad block. That's another alternative approach.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: ix2-200 boots USB but not HDD
February 07, 2020 06:38PM
@bodhi Best process for strip? Repart? This starts to extend beyond my *nix skillset. Will repart potentially be more reliable re futureproofing?

Also, so I may understand, the bad block is on flash not hdd so alternate hdd will have no bearing? Thanks again and again!

How about your newest kirkwood setup and rootfs in this instance?



Edited 1 time(s). Last edit at 02/07/2020 06:40PM by damnit_.
Re: ix2-200 boots USB but not HDD
February 07, 2020 11:23PM
@damnit_,

> @bodhi Best process for strip? Repart? This starts
> to extend beyond my *nix skillset. Will repart
> potentially be more reliable re futureproofing?
>

MTD repartition is more reliable, since you don't need to mess with the kernel files.

> Also, so I may understand, the bad block is on
> flash not hdd so alternate hdd will have no
> bearing? Thanks again and again!

Right, if you have the rootfs on HDD, it will be OK just like USB rootfs. And there is no need to flash the kernel uImage and uInitrd in flash.

> How about your newest kirkwood setup and rootfs in
> this instance?

It would be the same situation as my Kirkwood kernel has similar size for initrd.

=============

1. Howto Strip initramfs from <current-kernel>

Note: Backup your rootfs before stripping. As a precaution, when something might go wrong and then you need to restore to do it again.

cd /lib/modules/<current-kernel>
find . -name *.ko -exec strip --strip-unneeded {} +

cd /boot
update-initramfs -u

And then remake uInitrd using mkimage. Check the size of uInitrd to see if it is much smaller.

2. Howto Reparttion to have mtd4 at 16MB location and 16MB size (use what left in NAND starting at 16MB)

In serial console

setenv mtdparts 'mtdparts=orion_nand:0x100000@0x000000(uboot)ro,0x20000@0xA0000(uboot_env),0x300000@0x100000(uImage),-0x1000000(uInitrd)'

Boot into Debian and

dmesg | grep 0x0
cat /proc/mtd

Please post the log so I can double check.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: ix2-200 boots USB but not HDD
February 08, 2020 06:18PM
Here's the result, not sure that worked...

root@debian:~# dmesg | grep 0x0
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Kernel command line: console=ttyS0,115200 mtdparts=orion_nand:0x100000@0x000000(uboot)ro,0x20000@0xA0000(uboot_env),0x300000@0x100000(uImage),-0x1000000(uInitrd) root=/dev/mapper/debian--vg-root rootdelay=10
[   16.766926] pci 0000:00:00.0: [11ab:6281] type 00 class 0x058000
[   16.766975] pci 0000:00:00.0: reg 0x18: [mem 0x00000000-0x0fffffff]
[   18.748579] Bad eraseblock 895 at 0x000000dfc000
[   18.832646] Bad eraseblock 1622 at 0x000001958000
[   18.893874] 0x000000000000-0x000000100000 : "u-boot"
[   18.900315] 0x000000100000-0x000000300000 : "uImage"
[   18.906767] 0x000000300000-0x000002000000 : "root"
root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00100000 00004000 "u-boot"
mtd1: 00200000 00004000 "uImage"
mtd2: 01d00000 00004000 "root"
Re: ix2-200 boots USB but not HDD
February 08, 2020 08:08PM
@damnit_,

Sorry, I've used the wrong syntax! It should be

setenv mtdparts 'mtdparts=orion_nand:0x100000@0x000000(uboot)ro,0x20000@0xA0000(uboot_env),0x300000@0x100000(uImage),0x1000000@0x1000000(uInitrd)'

Please try again.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: ix2-200 boots USB but not HDD
February 08, 2020 10:27PM
Same result as before unfortunately:

root@debian:~# dmesg | grep 0x0
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Kernel command line: console=ttyS0,115200 mtdparts=orion_nand:0x100000@0x000000(uboot)ro,0x20000@0xA0000(uboot_env),0x300000@0x100000(uImage),0x1000000@0x1000000(uInitrd) root=/dev/mapper/debian--vg-root rootdelay=10
[   14.697747] pci 0000:00:00.0: [11ab:6281] type 00 class 0x058000
[   14.697796] pci 0000:00:00.0: reg 0x18: [mem 0x00000000-0x0fffffff]
[   16.680181] Bad eraseblock 895 at 0x000000dfc000
[   16.764251] Bad eraseblock 1622 at 0x000001958000
[   16.826962] 0x000000000000-0x000000100000 : "uboot"
[   16.833324] 0x0000000a0000-0x0000000c0000 : "uboot_env"
[   16.840041] 0x000000100000-0x000000400000 : "uImage"
[   16.846459] 0x000001000000-0x000002000000 : "uInitrd"
root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00100000 00004000 "uboot"
mtd1: 00020000 00004000 "uboot_env"
mtd2: 00300000 00004000 "uImage"
mtd3: 01000000 00004000 "uInitrd"

Marvell>> printenv
baudrate=115200
loads_echo=0
ipaddr=10.4.50.165
serverip=10.4.50.5
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
console=console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x1f00000@0x100000(root)
CASset=min
MALLOC_len=1
ethprime=egiga1
bootargs_root=root=/dev/nfs rw
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
ethmtu=1500
eth1addr=00:50:43:dd:0d:04
eth1mtu=1500
mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
FanHysteresis=2
FanTempStart=58
uboot_start=0x0
uboot_size=0xc0000
env_start=0xa0000
env_size=0x20000
kernel_start=0x100000
kernel_size=0x300000
initrd_start=0x540000
initrd_size=0x300000
flash_load=run make_boot_args load1 load2 boot
load1=nand read.e 0x2000000 $(kernel_start) $(kernel_size)
load2=nand read.e 0x4500000 $(initrd_start) $(initrd_size)
boot=bootm 0x2000000 0x4500000
make_boot_args=setenv bootargs console=ttyS0,115200 mtdparts=nand_mtd:;setenv bootargs $(bootargs)$(uboot_size)@$(uboot_start)(uboot),;setenv bootargs $(bootargs)$(env_size)@$(env_start)(env),;setenv bootargs $(bootargs)$(kernel_size)@$(kernel_start)(zImage),;setenv bootargs $(bootargs)$(initrd_size)@$(initrd_start)(initrd),;setenv bootargs $(bootargs)128m@0x0(flash);
iomega=123
ethaddr=AA:00:00:00:00:01
arcNumber=1682
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:0x100000@0x000000(uboot)ro,0x20000@0xA0000(uboot_env),0x300000@0x100000(uImage),0x1000000@0x540000(uInitrd)
partition=nand0,0
mtddevnum=0
mtddevname=uboot
bootargs_console=console=ttyS0,115200 mtdparts=orion_nand:0x100000@0x000000(uboot)ro,0x20000@0xA0000(uboot_env),0x300000@0x100000(uImage),0x1000000@0x540000(uInitrd) root=/dev/mapper/debian--vg-root rootdelay=10
bootcmd=setenv bootargs $(bootargs_console); nand read 0x800000 uImage; nand read 0x1100000 uInitrd; bootm 0x00800000 0x01100000
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=yes
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
bootdelay=3
disaMvPnp=no
hddPowerCtrl=no
enaAutoRecovery=yes
ethact=egiga1

Environment size: 2446/16380 bytes
Marvell>> setenv mtdparts 'mtdparts=orion_nand:0x100000@0x000000(uboot)ro,0x20000@0xA0000(uboot_env),0x300000@0x100000(uImage),0x1000000@0x1000000(uInitrd)'
Marvell>> setenv bootargs_console 'console=ttyS0,115200 mtdparts=orion_nand:0x100000@0x000000(uboot)ro,0x20000@0xA0000(uboot_env),0x300000@0x100000(uImage),0x1000000@0x1000000(uInitrd) root=/dev/mapper/debian--vg-root rootdelay=10'
Marvell>> setenv bootcmd 'setenv bootargs $(bootargs_console); nand read 0x800000 uImage; nand read 0x1100000 uInitrd; bootm 0x00800000 0x01100000'
Marvell>> saveenv
Saving Environment to NAND...
Erasing Nand...Writing to Nand... done
Marvell>> reset

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: RD-88F6281A LE

U-Boot 1.1.4 (Sep  8 2009 - 09:31:54) Marvell version: 3.4.14

Mapower version: 2.0 (32MB) (2009/09/08)

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CEE60

Soc: 88F6281 A0 (DDR2)
CPU running @ 1000Mhz L2 running @ 333Mhz
SysClock = 333Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB
DRAM Total size 256MB  16bit width
Flash:  0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:32 MB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled

Module 0 is RGMII
Module 1 is TDM

USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0, egiga1 [PRIME]
Fan lookup table initialized.

Current remote temperature: 35
Current fan speed: 0

Hit any key to stop autoboot:  0

NAND read: device 0 offset 0x100000, size 0x300000
 3145728 bytes read: OK

NAND read: device 0 offset 0x1000000, size 0x1000000
 16777216 bytes read: ERROR
## Booting image at 00800000 ...
   Image Name:   Linux-3.16.0-6
   Created:      2020-02-07   1:10:55 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2076864 Bytes =  2 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 01100000 ...
   Image Name:   initramfs
   Created:      2020-02-07   1:10:29 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    11411915 Bytes = 10.9 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... Bad Data CRC
Re: ix2-200 boots USB but not HDD
February 09, 2020 04:28PM
@damnit_,

I've forgot one isue (we don't know what this stock u-boot does exactly). Try this.

setenv bootcmd 'setenv bootargs $(bootargs_console); nand read 0x800000 uImage; nand read 0x2100000 uInitrd; bootm 0x00800000 0x02100000'

If that does not work, copy the uInitrd in the basic rootfs Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2. Flash it, and try the same bootcmd command above

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: ix2-200 boots USB but not HDD
February 10, 2020 07:45AM
Almost! Still a NAND read error, but 5.2.9 initramfs checksum OK. Seems it can't find rootfs for some reason...


         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: RD-88F6281A LE

U-Boot 1.1.4 (Sep  8 2009 - 09:31:54) Marvell version: 3.4.14

Mapower version: 2.0 (32MB) (2009/09/08)

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CEE60

Soc: 88F6281 A0 (DDR2)
CPU running @ 1000Mhz L2 running @ 333Mhz
SysClock = 333Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB
DRAM Total size 256MB  16bit width
Flash:  0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:32 MB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled

Module 0 is RGMII
Module 1 is TDM

USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0, egiga1 [PRIME]
Fan lookup table initialized.

Current remote temperature: 34
Current fan speed: 0

Hit any key to stop autoboot:  0

NAND read: device 0 offset 0x100000, size 0x300000
 3145728 bytes read: OK

NAND read: device 0 offset 0x1000000, size 0x1000000
 16777216 bytes read: ERROR
## Booting image at 00800000 ...
   Image Name:   Linux-3.16.0-6
   Created:      2020-02-07   1:10:55 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2076864 Bytes =  2 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 02100000 ...
   Image Name:   initramfs-5.2.9-kirkwood-tld-1
   Created:      2019-08-25   2:22:50 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9713872 Bytes =  9.3 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.16.0-6-kirkwood (debian-kernel@lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 Debian 3.16.56-1+deb8u1 (2018-05-08)
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Marvell RD-88F6281 Reference Board
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,115200 mtdparts=orion_nand:0x100000@0x000000(uboot)ro,0x20000@0xA0000(uboot_env),0x300000@0x100000(uImage),0x1000000@0x1000000(uInitrd) root=/dev/mapper/debian--vg-root rootdelay=10
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 244032K/262144K available (3919K kernel code, 361K rwdata, 1444K rodata, 278K init, 289K bss, 18112K reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
[    0.000000]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc05451c4   (5365 kB)
[    0.000000]       .init : 0xc0546000 - 0xc058b8dc   ( 279 kB)
[    0.000000]       .data : 0xc058c000 - 0xc05e6720   ( 362 kB)
[    0.000000]        .bss : 0xc05e6720 - 0xc062eb54   ( 290 kB)
[    0.000000] NR_IRQS:114
[    0.000015] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474836475ns
[   17.498880] Console: colour dummy device 80x30
[   17.498911] Calibrating delay loop... 989.18 BogoMIPS (lpj=1978368)
[   17.522616] pid_max: default: 32768 minimum: 301
[   17.522747] Security Framework initialized
[   17.522806] Yama: disabled by default; enable with sysctl kernel.yama.*
[   17.522896] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[   17.522919] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[   17.523883] Initializing cgroup subsys memory
[   17.523933] Initializing cgroup subsys devices
[   17.524001] Initializing cgroup subsys freezer
[   17.524034] Initializing cgroup subsys net_cls
[   17.524090] Initializing cgroup subsys blkio
[   17.524133] Initializing cgroup subsys perf_event
[   17.524161] Initializing cgroup subsys net_prio
[   17.524269] CPU: Testing write buffer coherency: ok
[   17.524385] ftrace: allocating 16386 entries in 33 pages
[   17.553101] Setting up static identity map for 0x3b4f90 - 0x3b4fe8
[   17.557204] devtmpfs: initialized
[   17.560266] futex hash table entries: 256 (order: -1, 3072 bytes)
[   17.560929] pinctrl core: initialized pinctrl subsystem
[   17.561508] regulator-dummy: no parameters
[   17.562069] NET: Registered protocol family 16
[   17.562535] DMA: preallocated 256 KiB pool for atomic coherent allocations
[   17.564061] cpuidle: using governor ladder
[   17.564091] cpuidle: using governor menu
[   17.564197] Kirkwood: MV88F6281-A0, TCLK=200000000.
[   17.564223] Feroceon L2: Enabling L2
[   17.564264] Feroceon L2: Cache support initialised.
[   17.566770] Kirkwood PCIe port 0: link down
[   17.566783] PCI: bus0 uses PCIe port 0
[   17.567058] PCI host bridge to bus 0000:00
[   17.567080] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[   17.567095] pci_bus 0000:00: root bus resource [io  0x1000-0xffff]
[   17.567108] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[   17.567504] PCI: bus0: Fast back to back transfers disabled
[   17.572936] Switched to clocksource orion_clocksource
[   17.599533] NET: Registered protocol family 2
[   17.600737] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[   17.600782] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[   17.600817] TCP: Hash tables configured (established 2048 bind 2048)
[   17.600887] TCP: reno registered
[   17.600902] UDP hash table entries: 256 (order: 0, 4096 bytes)
[   17.600927] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[   17.601190] NET: Registered protocol family 1
[   17.601556] Unpacking initramfs...
[   18.591179] Freeing initrd memory: 9480K (c2101000 - c2a43000)
[   18.592856] audit: initializing netlink subsys (disabled)
[   18.592987] audit: type=2000 audit(1.088:1): initialized
[   18.593992] zbud: loaded
[   18.594281] VFS: Disk quotas dquot_6.5.2
[   18.594341] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[   18.594457] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[   18.594718] msgmni has been set to 495
[   18.597125] alg: No test for stdrng (krng)
[   18.597262] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[   18.597499] io scheduler noop registered
[   18.597685] io scheduler cfq registered (default)
[   18.598407] mv_xor mv_xor.0: Marvell shared XOR driver
[   18.617067] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[   18.637063] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[   18.637284] mv_xor mv_xor.1: Marvell shared XOR driver
[   18.657061] mv_xor mv_xor.1: Marvell XOR: ( xor cpy )
[   18.677061] mv_xor mv_xor.1: Marvell XOR: ( xor cpy )
[   18.677587] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   18.678799] console [ttyS0] disabled
[   18.698808] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33, base_baud = 12500000) is a 16550A
[   19.225929] console [ttyS0] enabled
[   19.231165] nand: device found, Manufacturer ID: 0xad, Chip ID: 0x75
[   19.237580] nand: Hynix NAND 32MiB 3,3V 8-bit
[   19.241968] nand: 32MiB, SLC, page size: 512, OOB size: 16
[   19.247493] Scanning device for bad blocks
[   19.349542] Bad eraseblock 895 at 0x000000dfc000
[   19.433617] Bad eraseblock 1622 at 0x000001958000
[   19.484836] 4 cmdlinepart partitions found on MTD device orion_nand
[   19.491143] Creating 4 MTD partitions on "orion_nand":
[   19.496333] 0x000000000000-0x000000100000 : "uboot"
[   19.502682] 0x0000000a0000-0x0000000c0000 : "uboot_env"
[   19.509370] 0x000000100000-0x000000400000 : "uImage"
[   19.515776] 0x000001000000-0x000002000000 : "uInitrd"
[   19.522907] mousedev: PS/2 mouse device common for all mice
[   19.529134] rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
[   19.535149] i2c /dev entries driver
[   19.539119] ledtrig-cpu: registered to indicate activity on CPUs
[   19.545507] TCP: cubic registered
[   19.548845] NET: Registered protocol family 17
[   19.554205] registered taskstats version 1
[   19.559672] rtc-mv rtc-mv: setting system clock to 2020-02-10 12:03:15 UTC (1581336195)
[   19.569803] Freeing unused kernel memory: 276K (c0546000 - c058b000)
Loading, please wait...
Starting version 241
[   19.726901] random: systemd-udevd: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[   19.751958] random: systemd-udevd: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[   19.773253] random: systemd-udevd: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[   19.788385] random: udevadm: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[   19.966432] random: udevadm: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[   19.989431] random: udevadm: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[   19.998763] random: udevadm: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[   20.108622] random: systemd-udevd: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[   20.129332] random: systemd-udevd: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[   20.147161] random: systemd-udevd: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
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: Waiting for root file system ... Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
done.
Gave up waiting for root file system device.  Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT!  /dev/mapper/debian--vg-root does not exist.  Dropping to a shell!


BusyBox v1.30.1 (Debian 1:1.30.1-4) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs)
Re: ix2-200 boots USB but not HDD
February 10, 2020 04:46PM
@damnit_ ,


> Almost! Still a NAND read error, but 5.2.9
> initramfs checksum OK. Seems it can't find rootfs
> for some reason...

Cool!

So now you need to get it boot into the current rootfs on USB first and then worry about your set up later.

Mount the USB rootfs on another Linux box and label the partition as rootfs. Bring it back to the ix2. Power up and,

setenv bootcmd 'setenv bootargs $(bootargs_console) root=LABEL=rootfs; nand read 0x800000 uImage; nand read 0x2100000 uInitrd; bootm 0x00800000 0x02100000'


====

What we did was just to prove that you can store kernel files in NAND and boot with it. However, I would recommend to use HDD rootfs. It is much more flexible to have the kernel files on rootfs itself so you can upgrade it easily.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: ix2-200 boots USB but not HDD
February 10, 2020 05:33PM
Ah, I neglected to indicate my intended rootfs is on HDD. The USB is just a jessie netboot I used for install to the RAID1. Yet if I issue u-boot params to use uImage & uInitrd of USB, I can already boot to Debian rootfs of HDD?! However those files we’re created in Debian and simply copied to USB, so I’m not fully understanding why I cannot already use them to boot directly to HDD rootfs..

Indeed my intent is to ditch USB & serial console, then be able to dist-upgrade to suitable LTS release.



Edited 1 time(s). Last edit at 02/10/2020 05:35PM by damnit_.
Re: ix2-200 boots USB but not HDD
February 10, 2020 06:08PM
> Ah, I neglected to indicate my intended rootfs
> is on HDD. The USB is just a jessie netboot
> I used for install to the RAID1. Yet if I issue
> u-boot params to use uImage & uInitrd of USB, I
> can already boot to Debian rootfs of HDD?

Yes. You can boot a kernel that was not installed on that rootfs. But to make it functional consistently, that kernel needed to be installed with dpkg.

> However those files we’re created in Debian and
> simply copied to USB, so I’m not fully
> understanding why I cannot already use them to
> boot directly to HDD rootfs..

Sometime your kernel is much older or much newer, it would cause problem. But in this case, it is likely the u-boot envs need adjustment.

>
> Indeed my intent is to ditch USB & serial console,
> then be able to dist-upgrade to suitable LTS
> release.

Then I would copy the USB rootfs to an HDD with a single Ext3 partition. And then adjust u-boot envs to boot it. The easiest way to to copy rootfs is using another Linux box. Log in as root user and just copying using cp -aR would be OK (no need to use tar).

After you've booted with HDD rootfs, you can then worry about RAID, or not using it.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: ix2-200 boots USB but not HDD
February 10, 2020 06:59PM
The USB “uInitrd-new” and “uImage-new” that I can boot OK with and utilize Debian rootfs on HDD were created in the Debian instance. Netboot did all the dpkg for me. USB was originally created with an Arch Virtualbox solely for the netboot. Then uInitrd & uImage we created and cp’d from working Debian instance on HDD, to the USB. Hence I know not why those images will not boot directly sans USB.

So you believe I may need standalone ext3 partition before RAID on HDD to place boot files? The originals currently exist in /boot on the Debian rootfs. Maybe u-boot just hates the RAID1 array? I’m fine with entirely new rootfs too, there’s literally nothing on it yet. Thanks!



Edited 1 time(s). Last edit at 02/10/2020 07:10PM by damnit_.
Re: ix2-200 boots USB but not HDD
February 10, 2020 09:42PM
@damnit_,

> Hence I know not why those images will
> not boot directly sans USB.

As I've said, USB vs HDD root device are scripted in u-boot envs. Tthe way the images are loaded from NAND, USB, or HDD must be scripted differently.

> So you believe I may need standalone ext3
> partition before RAID on HDD to place boot files?
> The originals currently exist in /boot on the
> Debian rootfs. Maybe u-boot just hates the RAID1
> array?

This depends on the kernel, whether it has RAID compiled in, or as kernel modules, and then also u-boot envs would specify where that rootfs is.

Since you are running mainline kernel, I don't know if it is ready for RAID rootfs. The simplest setup for this kernel is to have a dedicated HDD partition for rootfs. And then set up RAID as you would want it to be. If you don't have a dedicated rootfs, you would need to store kernel uImage and uInitrd on NAND. Or have a boot partition.

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



Edited 2 time(s). Last edit at 02/11/2020 07:21AM by bodhi.
Re: ix2-200 boots USB but not HDD
February 17, 2020 05:58AM
@bodhi I've given up on my install with RAID for the time being. I formatted both drives and followed your technique to install buster on ext3 partition on one drive. Can you advise how I should now configure the boot parameters to make this work? Presently it fails to find rootfs and kicks me to initramfs prompt. Also should the rootfs be in first or second drive slot?

Marvell>> setenv bootargs_console 'console=ttyS0,115200 mtdparts=orion_nand:0x100000@0x000000(uboot)ro,0x20000@0xA0000(uboot_env),0x300000@0x100000(uImage),0x1000000@0x1000000(uInitrd) root=LABEL=rootfs rootdelay=10'
Marvell>> setenv bootargs $(bootargs_console)
Marvell>> saveenv
Saving Environment to NAND...
Erasing Nand...Writing to Nand... done
Marvell>> reset

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: RD-88F6281A LE

U-Boot 1.1.4 (Sep  8 2009 - 09:31:54) Marvell version: 3.4.14

Mapower version: 2.0 (32MB) (2009/09/08)

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CEE60

Soc: 88F6281 A0 (DDR2)
CPU running @ 1000Mhz L2 running @ 333Mhz
SysClock = 333Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB
DRAM Total size 256MB  16bit width
Flash:  0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:32 MB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled

Module 0 is RGMII
Module 1 is TDM

USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0, egiga1 [PRIME]
Fan lookup table initialized.

Current remote temperature: 36
Current fan speed: 0

Hit any key to stop autoboot:  0
Marvell>> printenv
baudrate=115200
loads_echo=0
ipaddr=10.4.50.165
serverip=10.4.50.5
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
console=console=ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(uboot)ro,0x1f00000@0x100000(root)
CASset=min
MALLOC_len=1
ethprime=egiga1
bootargs_root=root=/dev/nfs rw
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
ethmtu=1500
eth1addr=00:50:43:dd:0d:04
eth1mtu=1500
mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
FanHysteresis=2
FanTempStart=58
uboot_start=0x0
uboot_size=0xc0000
env_start=0xa0000
env_size=0x20000
kernel_start=0x100000
kernel_size=0x300000
initrd_size=0x300000
flash_load=run make_boot_args load1 load2 boot
load1=nand read.e 0x2000000 $(kernel_start) $(kernel_size)
load2=nand read.e 0x4500000 $(initrd_start) $(initrd_size)
boot=bootm 0x2000000 0x4500000
make_boot_args=setenv bootargs console=ttyS0,115200 mtdparts=nand_mtd:;setenv bootargs $(bootargs)$(uboot_size)@$(uboot_start)(uboot),;setenv bootargs $(bootargs)$(env_size)@$(env_start)(env),;setenv bootargs $(bootargs)$(kernel_size)@$(kernel_start)(zImage),;setenv bootargs $(bootargs)$(initrd_size)@$(initrd_start)(initrd),;setenv bootargs $(bootargs)128m@0x0(flash);
iomega=123
ethaddr=AA:00:00:00:00:01
arcNumber=1682
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:0x100000@0x000000(uboot)ro,0x20000@0xA0000(uboot_env),0x300000@0x100000(uImage),0x1000000@0x1000000(uInitrd)
partition=nand0,0
mtddevnum=0
mtddevname=uboot
bootcmd=setenv bootargs $(bootargs_console); nand read 0x800000 uImage; nand read 0x2100000 uInitrd; bootm 0x00800000 0x02100000
initrd_start=0x540000
bootargs_console=console=ttyS0,115200 mtdparts=orion_nand:0x100000@0x000000(uboot)ro,0x20000@0xA0000(uboot_env),0x300000@0x100000(uImage),0x1000000@0x1000000(uInitrd) root=LABEL=rootfs rootdelay=10
bootargs=console=ttyS0,115200 mtdparts=orion_nand:0x100000@0x000000(uboot)ro,0x20000@0xA0000(uboot_env),0x300000@0x100000(uImage),0x1000000@0x1000000(uInitrd) root=LABEL=rootfs rootdelay=10
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=yes
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
bootdelay=3
disaMvPnp=no
hddPowerCtrl=no
enaAutoRecovery=yes
ethact=egiga1

Environment size: 2623/16380 bytes
Marvell>> boot

NAND read: device 0 offset 0x100000, size 0x300000
 3145728 bytes read: OK

NAND read: device 0 offset 0x1000000, size 0x1000000
 16777216 bytes read: ERROR
## Booting image at 00800000 ...
   Image Name:   Linux-3.16.0-6
   Created:      2020-02-07   1:10:55 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2076864 Bytes =  2 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 02100000 ...
   Image Name:   initramfs-5.2.9-kirkwood-tld-1
   Created:      2019-08-25   2:22:50 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9713872 Bytes =  9.3 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.16.0-6-kirkwood (debian-kernel@lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 Debian 3.16.56-1+deb8u1 (2018-05-08)
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Marvell RD-88F6281 Reference Board
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,115200 mtdparts=orion_nand:0x100000@0x000000(uboot)ro,0x20000@0xA0000(uboot_env),0x300000@0x100000(uImage),0x1000000@0x1000000(uInitrd) root=LABEL=rootfs rootdelay=10
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 244032K/262144K available (3919K kernel code, 361K rwdata, 1444K rodata, 278K init, 289K bss, 18112K reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
[    0.000000]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc05451c4   (5365 kB)
[    0.000000]       .init : 0xc0546000 - 0xc058b8dc   ( 279 kB)
[    0.000000]       .data : 0xc058c000 - 0xc05e6720   ( 362 kB)
[    0.000000]        .bss : 0xc05e6720 - 0xc062eb54   ( 290 kB)
[    0.000000] NR_IRQS:114
[    0.000015] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474836475ns
[   14.219179] Console: colour dummy device 80x30
[   14.219210] Calibrating delay loop... 989.18 BogoMIPS (lpj=1978368)
[   14.242915] pid_max: default: 32768 minimum: 301
[   14.243042] Security Framework initialized
[   14.243099] Yama: disabled by default; enable with sysctl kernel.yama.*
[   14.243193] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[   14.243215] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[   14.244175] Initializing cgroup subsys memory
[   14.244225] Initializing cgroup subsys devices
[   14.244292] Initializing cgroup subsys freezer
[   14.244326] Initializing cgroup subsys net_cls
[   14.244380] Initializing cgroup subsys blkio
[   14.244423] Initializing cgroup subsys perf_event
[   14.244450] Initializing cgroup subsys net_prio
[   14.244557] CPU: Testing write buffer coherency: ok
[   14.244672] ftrace: allocating 16386 entries in 33 pages
[   14.273386] Setting up static identity map for 0x3b4f90 - 0x3b4fe8
[   14.277474] devtmpfs: initialized
[   14.280540] futex hash table entries: 256 (order: -1, 3072 bytes)
[   14.281202] pinctrl core: initialized pinctrl subsystem
[   14.281780] regulator-dummy: no parameters
[   14.282344] NET: Registered protocol family 16
[   14.282806] DMA: preallocated 256 KiB pool for atomic coherent allocations
[   14.284329] cpuidle: using governor ladder
[   14.284358] cpuidle: using governor menu
[   14.284462] Kirkwood: MV88F6281-A0, TCLK=200000000.
[   14.284486] Feroceon L2: Enabling L2
[   14.284528] Feroceon L2: Cache support initialised.
[   14.287034] Kirkwood PCIe port 0: link down
[   14.287047] PCI: bus0 uses PCIe port 0
[   14.287321] PCI host bridge to bus 0000:00
[   14.287344] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[   14.287359] pci_bus 0000:00: root bus resource [io  0x1000-0xffff]
[   14.287372] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[   14.287772] PCI: bus0: Fast back to back transfers disabled
[   14.293210] Switched to clocksource orion_clocksource
[   14.319815] NET: Registered protocol family 2
[   14.321017] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[   14.321061] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[   14.321096] TCP: Hash tables configured (established 2048 bind 2048)
[   14.321167] TCP: reno registered
[   14.321181] UDP hash table entries: 256 (order: 0, 4096 bytes)
[   14.321248] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[   14.321472] NET: Registered protocol family 1
[   14.321836] Unpacking initramfs...
[   15.311521] Freeing initrd memory: 9480K (c2101000 - c2a43000)
[   15.313195] audit: initializing netlink subsys (disabled)
[   15.313326] audit: type=2000 audit(1.088:1): initialized
[   15.314340] zbud: loaded
[   15.314622] VFS: Disk quotas dquot_6.5.2
[   15.314680] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[   15.314799] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[   15.315060] msgmni has been set to 495
[   15.317461] alg: No test for stdrng (krng)
[   15.317604] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[   15.317842] io scheduler noop registered
[   15.318027] io scheduler cfq registered (default)
[   15.318751] mv_xor mv_xor.0: Marvell shared XOR driver
[   15.337341] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[   15.357336] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[   15.357557] mv_xor mv_xor.1: Marvell shared XOR driver
[   15.377335] mv_xor mv_xor.1: Marvell XOR: ( xor cpy )
[   15.397335] mv_xor mv_xor.1: Marvell XOR: ( xor cpy )
[   15.397864] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   15.399080] console [ttyS0] disabled
[   15.419091] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33, base_baud = 12500000) is a 16550A
[   15.944916] console [ttyS0] enabled
[   15.950196] nand: device found, Manufacturer ID: 0xad, Chip ID: 0x75
[   15.956606] nand: Hynix NAND 32MiB 3,3V 8-bit
[   15.960998] nand: 32MiB, SLC, page size: 512, OOB size: 16
[   15.966525] Scanning device for bad blocks
[   16.068552] Bad eraseblock 895 at 0x000000dfc000
[   16.152626] Bad eraseblock 1622 at 0x000001958000
[   16.203848] 4 cmdlinepart partitions found on MTD device orion_nand
[   16.210157] Creating 4 MTD partitions on "orion_nand":
[   16.215346] 0x000000000000-0x000000100000 : "uboot"
[   16.221720] 0x0000000a0000-0x0000000c0000 : "uboot_env"
[   16.228378] 0x000000100000-0x000000400000 : "uImage"
[   16.234790] 0x000001000000-0x000002000000 : "uInitrd"
[   16.241925] mousedev: PS/2 mouse device common for all mice
[   16.248124] rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
[   16.254140] i2c /dev entries driver
[   16.258122] ledtrig-cpu: registered to indicate activity on CPUs
[   16.264508] TCP: cubic registered
[   16.267876] NET: Registered protocol family 17
[   16.273255] registered taskstats version 1
[   16.278724] rtc-mv rtc-mv: setting system clock to 2020-02-14 20:28:59 UTC (1581712139)
[   16.288820] Freeing unused kernel memory: 276K (c0546000 - c058b000)
Loading, please wait...
Starting version 241
[   16.445410] random: systemd-udevd: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[   16.468307] random: systemd-udevd: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[   16.493545] random: systemd-udevd: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[   16.506652] random: udevadm: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[   16.682569] random: udevadm: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[   16.696390] random: udevadm: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[   16.705742] random: udevadm: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[   16.816153] random: systemd-udevd: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[   16.833587] random: systemd-udevd: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[   16.854042] random: systemd-udevd: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
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: Waiting for root file system ... Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
[   30.008839] random: nonblocking pool is initialized
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
done.
Gave up waiting for root file system device.  Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT!  LABEL=rootfs does not exist.  Dropping to a shell!


BusyBox v1.30.1 (Debian 1:1.30.1-4) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs)
         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: RD-88F6281A LE

U-Boot 1.1.4 (Sep  8 2009 - 09:31:54) Marvell version: 3.4.14

Mapower version: 2.0 (32MB) (2009/09/08)

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CEE60

Soc: 88F6281 A0 (DDR2)
CPU running @ 1000Mhz L2 running @ 333Mhz
SysClock = 333Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB
DRAM Total size 256MB  16bit width
Flash:  0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:32 MB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled

Module 0 is RGMII
Module 1 is TDM

USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0, egiga1 [PRIME]
Fan lookup table initialized.

Current remote temperature: 32
Current fan speed: 0

Hit any key to stop autoboot:  0
Marvell>> mtdparts

device nand0 <orion_nand>, # parts = 4
 #: name                        size            offset          mask_flags
 0: uboot               0x00100000      0x00000000      1
 1: uboot_env           0x00020000      0x000a0000      0
 2: uImage              0x00300000      0x00100000      0
 3: uInitrd             0x01000000      0x01000000      0

active partition: nand0,0 - (uboot) 0x00100000 @ 0x00000000

defaults:
mtdids  : <NULL>
mtdparts: <NULL>
Marvell>> ide reset

Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode
  Device 0 @ 0 0:
Model: WDC WD20EARX-00PASB0                     Firm: 51.0AB51 Ser#:      WD-WCAZAD866755
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
[0 1 0]: Enable DMA mode
  Device 1 @ 0 1:
Model: WDC WD20EARX-00PASB0                     Firm: 51.0AB51 Ser#:      WD-WMAZA8269202
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)

Marvell>> ide part

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

Partition     Start Sector     Num Sectors     Type
    1                    1              -1      ee


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

Partition     Start Sector     Num Sectors     Type
    1                 2048      -387940176      83
Marvell>> setenv bootargs_console 'console=ttyS0,115200 mtdparts=orion_nand:0x100000@0x000000(uboot)ro,0x20000@0xA0000(uboot_env),0x300000@0x100000(uImage),0x1000000@0x540000(uInitrd) root=LABEL=rootfs rootdelay=10'
Marvell>> setenv bootargs $(bootargs_console)
Marvell>> boot

NAND read: device 0 offset 0x100000, size 0x300000
 3145728 bytes read: OK

NAND read: device 0 offset 0x1000000, size 0x1000000
 16777216 bytes read: ERROR
## Booting image at 00800000 ...
   Image Name:   Linux-3.16.0-6
   Created:      2020-02-07   1:10:55 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2076864 Bytes =  2 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 02100000 ...
   Image Name:   initramfs-5.2.9-kirkwood-tld-1
   Created:      2019-08-25   2:22:50 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9713872 Bytes =  9.3 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 3.16.0-6-kirkwood (debian-kernel@lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 Debian 3.16.56-1+deb8u1 (2018-05-08)
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Marvell RD-88F6281 Reference Board
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,115200 mtdparts=orion_nand:0x100000@0x000000(uboot)ro,0x20000@0xA0000(uboot_env),0x300000@0x100000(uImage),0x1000000@0x540000(uInitrd) root=LABEL=rootfs rootdelay=10
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 244032K/262144K available (3919K kernel code, 361K rwdata, 1444K rodata, 278K init, 289K bss, 18112K reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
[    0.000000]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc05451c4   (5365 kB)
[    0.000000]       .init : 0xc0546000 - 0xc058b8dc   ( 279 kB)
[    0.000000]       .data : 0xc058c000 - 0xc05e6720   ( 362 kB)
[    0.000000]        .bss : 0xc05e6720 - 0xc062eb54   ( 290 kB)
[    0.000000] NR_IRQS:114
[    0.000015] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474836475ns
[    1.577748] Console: colour dummy device 80x30
[    1.577780] Calibrating delay loop... 989.18 BogoMIPS (lpj=1978368)
[    1.601485] pid_max: default: 32768 minimum: 301
[    1.601614] Security Framework initialized
[    1.601672] Yama: disabled by default; enable with sysctl kernel.yama.*
[    1.601764] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    1.601785] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    1.602750] Initializing cgroup subsys memory
[    1.602799] Initializing cgroup subsys devices
[    1.602866] Initializing cgroup subsys freezer
[    1.602899] Initializing cgroup subsys net_cls
[    1.602951] Initializing cgroup subsys blkio
[    1.602998] Initializing cgroup subsys perf_event
[    1.603025] Initializing cgroup subsys net_prio
[    1.603134] CPU: Testing write buffer coherency: ok
[    1.603249] ftrace: allocating 16386 entries in 33 pages
[    1.631983] Setting up static identity map for 0x3b4f90 - 0x3b4fe8
[    1.636073] devtmpfs: initialized
[    1.639142] futex hash table entries: 256 (order: -1, 3072 bytes)
[    1.639800] pinctrl core: initialized pinctrl subsystem
[    1.640370] regulator-dummy: no parameters
[    1.640935] NET: Registered protocol family 16
[    1.641395] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    1.642915] cpuidle: using governor ladder
[    1.642946] cpuidle: using governor menu
[    1.643052] Kirkwood: MV88F6281-A0, TCLK=200000000.
[    1.643076] Feroceon L2: Enabling L2
[    1.643118] Feroceon L2: Cache support initialised.
[    1.645623] Kirkwood PCIe port 0: link down
[    1.645635] PCI: bus0 uses PCIe port 0
[    1.645910] PCI host bridge to bus 0000:00
[    1.645932] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.645946] pci_bus 0000:00: root bus resource [io  0x1000-0xffff]
[    1.645959] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    1.646354] PCI: bus0: Fast back to back transfers disabled
[    1.651780] Switched to clocksource orion_clocksource
[    1.678397] NET: Registered protocol family 2
[    1.679591] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    1.679635] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    1.679671] TCP: Hash tables configured (established 2048 bind 2048)
[    1.679742] TCP: reno registered
[    1.679757] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    1.679823] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    1.680049] NET: Registered protocol family 1
[    1.680416] Unpacking initramfs...
[    2.670196] Freeing initrd memory: 9480K (c2101000 - c2a43000)
[    2.671910] audit: initializing netlink subsys (disabled)
[    2.671998] audit: type=2000 audit(1.088:1): initialized
[    2.673015] zbud: loaded
[    2.673298] VFS: Disk quotas dquot_6.5.2
[    2.673356] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    2.673474] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    2.673732] msgmni has been set to 495
[    2.676136] alg: No test for stdrng (krng)
[    2.676277] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    2.676514] io scheduler noop registered
[    2.676700] io scheduler cfq registered (default)
[    2.677426] mv_xor mv_xor.0: Marvell shared XOR driver
[    2.695913] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[    2.715906] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[    2.716128] mv_xor mv_xor.1: Marvell shared XOR driver
[    2.735906] mv_xor mv_xor.1: Marvell XOR: ( xor cpy )
[    2.755905] mv_xor mv_xor.1: Marvell XOR: ( xor cpy )
[    2.756432] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    2.757644] console [ttyS0] disabled
[    2.777654] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33, base_baud = 12500000) is a 16550A
[    3.303366] console [ttyS0] enabled
[    3.308635] nand: device found, Manufacturer ID: 0xad, Chip ID: 0x75
[    3.315044] nand: Hynix NAND 32MiB 3,3V 8-bit
[    3.319430] nand: 32MiB, SLC, page size: 512, OOB size: 16
[    3.324957] Scanning device for bad blocks
[    3.426983] Bad eraseblock 895 at 0x000000dfc000
[    3.511061] Bad eraseblock 1622 at 0x000001958000
[    3.562272] 4 cmdlinepart partitions found on MTD device orion_nand
[    3.568580] Creating 4 MTD partitions on "orion_nand":
[    3.573769] 0x000000000000-0x000000100000 : "uboot"
[    3.580149] 0x0000000a0000-0x0000000c0000 : "uboot_env"
[    3.586806] 0x000000100000-0x000000400000 : "uImage"
[    3.593216] 0x000000540000-0x000001540000 : "uInitrd"
[    3.600360] mousedev: PS/2 mouse device common for all mice
[    3.606565] rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
[    3.612582] i2c /dev entries driver
[    3.616560] ledtrig-cpu: registered to indicate activity on CPUs
[    3.622945] TCP: cubic registered
[    3.626304] NET: Registered protocol family 17
[    3.631656] registered taskstats version 1
[    3.637116] rtc-mv rtc-mv: setting system clock to 2020-02-14 20:45:25 UTC (1581713125)
[    3.647218] Freeing unused kernel memory: 276K (c0546000 - c058b000)
Loading, please wait...
Starting version 241
[    3.804298] random: systemd-udevd: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[    3.826868] random: systemd-udevd: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[    3.852119] random: systemd-udevd: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[    3.865494] random: udevadm: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[    4.040516] random: udevadm: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[    4.050866] random: udevadm: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[    4.060197] random: udevadm: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[    4.169697] random: systemd-udevd: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[    4.188168] random: systemd-udevd: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
[    4.208096] random: systemd-udevd: uninitialized urandom read (16 bytes read, 1 bits of entropy available)
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: Waiting for root file system ... Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
[   17.362666] random: nonblocking pool is initialized
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
done.
Gave up waiting for root file system device.  Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT!  LABEL=rootfs does not exist.  Dropping to a shell!


BusyBox v1.30.1 (Debian 1:1.30.1-4) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs)
(initramfs)
(initramfs)
(initramfs)
(initramfs)
Re: ix2-200 boots USB but not HDD
February 17, 2020 04:39PM
Quote

@bodhi I've given up on my install with RAID for the time being. I formatted both drives and followed your technique to install buster on ext3 partition on one drive. Can you advise how I should now configure the boot parameters to make this work?

Your boot parameters are fine.

Quote

Presently it fails to find rootfs and kicks me to initramfs prompt. Also should the rootfs be in first or second drive slot?

It could be on any HDD drive slot.

Note your bootargs:


Quote

Marvell>> setenv bootargs_console 'console=ttyS0,115200 mtdparts=orion_nand:0x100000@0x000000(uboot)ro,0x20000@0xA0000(uboot_env),0x300000@0x100000(uImage),0x1000000@0x1000000(uInitrd) root=LABEL=rootfs rootdelay=10'


The reason it could not find the rootfs to mount is your HDD rootfs must have not been labeled as rootfs. So mount the HDD on another Linux box and assuming your HDD rootfs partition is assign /dev/sda1.

e2label /dev/sda1

if it did not show rootfs then
e2label /dev/sda1 rootfs
sync

And then bring it back to the ix2 and boot.

====

Currently you boot the mainline kernel kernel Linux-3.16.0-6, but using my initramfs-5.2.9-kirkwood-tld-1 build.

This set up should be only a test.Once it works, it needs to be consistent. You should either reinstall mainline kernel to get uImage and uInitrd from there, or install my kernel build.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: ix2-200 boots USB but not HDD
February 18, 2020 09:55AM
@bodhi Indeed I neglected to label the rootfs correctly, however now that I've done that I still cannot boot the HDD?!

user@debian:~$ sudo e2label /dev/sdb1

user@debian:~$ sudo e2label /dev/sdb1 rootfs
user@debian:~$ sync
user@debian:~$ sudo e2label /dev/sdb1
rootfs

ALERT!  LABEL=rootfs does not exist.  Dropping to a shell!



Edited 1 time(s). Last edit at 02/18/2020 10:00AM by damnit_.
Re: ix2-200 boots USB but not HDD
February 18, 2020 03:03PM
Check your fstab. It should have:

LABEL=rootfs    /               ext3    noatime,errors=remount-ro 0 1

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: ix2-200 boots USB but not HDD
February 19, 2020 05:04PM
@bodhi

Added the line to fstab, it was indeed missing. I still get kicked to initramfs prompt?!
Re: ix2-200 boots USB but not HDD
February 19, 2020 06:31PM
@damnit_,

> Added the line to fstab, it was indeed missing. I
> still get kicked to initramfs prompt?!

That would cover all necessary hooks to boot with rootfs label.

So I guess your rootfs has some peculiar settings in the init scripts that has prevent the rootfs label to be found. How did you create it? is this your own rootfs from way back, or did you use my released rootfs Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: ix2-200 boots USB but not HDD
February 20, 2020 09:10AM
Re: ix2-200 boots USB but not HDD
February 20, 2020 05:09PM
@damnit_

> I created it per your method
> https://forum.doozan.com/read.php?2,12096

Then, I think to simplify the issue, you should use the kernel uImage and uInitrd from Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2.

After you got the box to boot successfully with a consistent system, then you can go back to install mainline kernel if you'd like to do so.

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

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: