Welcome! Log In Create A New Profile

Advanced

ix2-200 boots USB but not HDD

Posted by damnit_ 
Re: ix2-200 boots USB but not HDD
February 24, 2020 10:41AM
I reloaded my original HDDs with jessie rootfs and booted from the USB stick to try nandwrite with your uImage & uInitrd but it fails
root@debian:~# nandwrite -p /dev/mtd2 /mnt/uImage-bodhi
Image 4975416 bytes, NAND page 512 bytes, OOB area 16 bytes, device size 3145728 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)


I also tried copy your uImage & uInitrd to my USB stick and try booting with them but it stalls out booting the kernel
Marvell>> bootm 0x00800000 0x01100000
## Booting image at 00800000 ...
   Image Name:   Linux-5.2.9-kirkwood-tld-1
   Created:      2020-02-14  20:02:37 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4975352 Bytes =  4.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 01100000 ...
   Image Name:   initrd.img-5.2.9-kirkwood-tld-1
   Created:      2020-02-24  15:34:56 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.

Since I followed your technique to install rootfs on HDD can't I just boot from those uImage & uInitrd? I definitely broke something now because:
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-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 02100000 ...
Bad Magic Number



Edited 1 time(s). Last edit at 02/24/2020 10:45AM by damnit_.
Re: ix2-200 boots USB but not HDD
February 24, 2020 07:52PM
Quote

I reloaded my original HDDs with jessie rootfs and booted from the USB stick to try nandwrite with your uImage & uInitrd but it fails
root@debian:~# nandwrite -p /dev/mtd2 /mnt/uImage-bodhi
Image 4975416 bytes, NAND page 512 bytes, OOB area 16 bytes, device size 3145728 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)

It failed because uImage is larger than the mtd2 size. Now the uImage on NAND has been corrupted. You can't boot with it any more.

Quote

I also tried copy your uImage & uInitrd to my USB stick and try booting with them but it stalls out booting the kernel

You will need to follow the rootfs installation instruction step by step while creating the USB rootfs. And in addition to that, when attempt to boot, some envs are needed to be adjusted (booting with stock u-boot).

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



Let's do that USB rootfs. Note that you need to do Step 4.


Quote

Updated 25 Aug 2019:

Basic Debian buster Kirkwood rootfs for most Kirwood plugs:

- tarball size: 209M
- install size: 536M
- The init system used in this rootfs is sysvinit . To boot with systemd, see note 2 below.
- Installed packages: nano, avahi, ntp, busybox-syslogd (log to RAM), htop, isc-dhcp-client, dialog, bzip2, nfs server/client, iperf, ethtool, sysvinit-core, sysvinit, sysvinit-utils, u-boot-tools, and mtd-utils.
- see LED controls in /etc/rc.local, and /etc/init.d/halt
- see some useful aliases in /root/.profile
- root password: root

Download at Dropbox:

Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2

md5:
cd8ad170aa1a9fdc2a0a1c43ab1c0721
sha256:
8ccbbced367b4c2bf3728262e882f8232aff0fecd1c0c767219a0cab49a0b9bf


And remember to check the hash of what you download, as always.

Installation:

Installation can be done on any Linux box, with a fresh USB drive (SD card or HDD would work fine too).

Note: all steps below must be done while logging in as root user (not sudo). If you are not the root user then don't continue, because the rootfs will not work.

1. Format a new USB drive with a single Ext3 partition, and label it rootfs. If you are running the latest U-Boot for Kirkwood then you can use Ext4.

2. Mount the drive on a Linux box. cd to top level directory and extract it. It is assuming the USB drive is mounted at /media/sdb1
cd /media/sdb1
tar -xjf Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2

3. Adjust fstab (optional).

Edit /media/sdb1/etc/fstab entry for root device to match the rootfstype of your rootfstype if you use Ext4 or Ext2. However, you can keep it as is without problem in booting since the kernel will figure out which file system the rootfs was formatted.

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

4. Create uImage with embedded DTB for booting with older u-boots (2012 or earlier). Do not do this step if you have installed the latest U-Boot for Kirkwood (or are installing this u-boot at the same time).

Please replace kirkwood-goflexnet.dtb below with the correct DTB name for your box (see the folder /media/sdb1/boot/dts for the exact spelling of your Kirkwood box name).

Generate the uImage with DTB embedded inside:
cd /media/sdb1/boot
cp -a zImage-5.2.9-kirkwood-tld-1 zImage.fdt
cat dts/kirkwood-goflexnet.dtb >> zImage.fdt
mv uImage uImage.orig
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.2.9-kirkwood-tld-1 -d zImage.fdt uImage
sync

If your Linux box does not have mkimage, then install it

apt-get install u-boot-tools

5. Done. Take this USB rootfs to your plug and cold start. After booted into Debian, see Note1 and Note2 below. It is very important that you do Note1 steps to secure your box.

And plug in the USB rootfs, start serial console, and power up the box. Interrupt serial console and

printenv

I will post a few envs adjustment to boot with this rootfs.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: ix2-200 boots USB but not HDD
February 25, 2020 09:00AM
@bodhi

I believe NAND mtd2 may still be intact as I had flashed back my mainline uImage when I saw that yours did not fit.

I had already performed steps 1-4 to HDD from my debianlive on laptop, so for your test I simply copied that rootfs to USB stick so I'm ready to boot from either HDD or USB.

Let me know how the envs should be set. Thanks!

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_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:a0:0a:27
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
bootargs_root=root=LABEL=rootfs
memoffset_kernel=0x00800000
memoffset_initrd=0x01000000
bootargs_combine=setenv bootargs ${bootargs_console} ${bootargs_mtdparts} ${bootargs_root}
bootlinux=bootm ${memoffset_kernel} ${memoffset_initrd}
usb_load_firstdevice=ext2load usb 0:1 ${memoffset_kernel} /uImage; ext2load usb 0:1 ${memoffset_initrd} /uInitrd
usb_load=run bootargs_combine; usb reset; run usb_load_firstdevice; run bootlinux
sata_load_disk1=ext2load ide 0:1 ${memoffset_kernel} /boot/uImage; ext2load ide 0:1 ${memoffset_initrd} /boot/uInitrd
sata_load_disk2=ext2load ide 1:1 ${memoffset_kernel} /boot/uImage; ext2load ide 1:1 ${memoffset_initrd} /boot/uInitrd
sata_load=run bootargs_combine; ide reset; run sata_load_disk1; run sata_load_disk2; run bootlinux
mtdids=nand0=orion_nand
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
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) root=LABEL=rootfs; nand read 0x800000 uImage; nand read 0x2100000 uInitrd; bootm 0x00800000
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: 3364/16380 bytes
Marvell>>



Edited 1 time(s). Last edit at 02/25/2020 09:03AM by damnit_.
Re: ix2-200 boots USB but not HDD
February 26, 2020 12:11AM
With USB rootfs plugged in, power up, interrupt serial console and,

setenv bootcmd_usb 'usb start; ext2load usb 0:1 0x800000 /boot/uImage; ext2load usb 0:1 0x2100000 /boot/uInitrd'
setenv bootcmd_stock 'nand read 0x800000 uImage; nand read 0x2100000 uInitrd; bootm 0x00800000 0x2100000'
setenv bootcmd 'setenv bootargs $(bootargs_console) root=LABEL=rootfs rootfdelay=10 earlyprintk=serial; run bootcmd_usb; run bootcmd_stock'
boot

And after you can boot into Debian rootfs on USB a few times like above, then come back and set it permanently before booting

setenv bootcmd_usb 'usb start; ext2load usb 0:1 0x800000 /boot/uImage; ext2load usb 0:1 0x2100000 /boot/uInitrd'
setenv bootcmd_stock 'nand read 0x800000 uImage; nand read 0x2100000 uInitrd; bootm 0x00800000 0x2100000'
setenv bootcmd 'setenv bootargs $(bootargs_console) root=LABEL=rootfs rootfdelay=10 earlyprintk=serial; run bootcmd_usb; bootcmd_stock'
saveenv

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: ix2-200 boots USB but not HDD
February 26, 2020 05:54AM
@bodhi,

Apparently there's still something it does not agree with...

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ 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: 33
Current fan speed: 0

Hit any key to stop autoboot:  0
Marvell>> setenv bootcmd_usb 'usb start; ext2load usb 0:1 0x800000 /boot/uImage; ext2load usb 0:1 0x2100000 /boot/uInitrd'
Marvell>> setenv bootcmd_stock 'nand read 0x800000 uImage; nand read 0x2100000 uInitrd; bootm 0x00800000 0x2100000'
Marvell>> setenv bootcmd 'setenv bootargs $(bootargs_console) root=LABEL=rootfs rootfdelay=10 earlyprintk=serial; run bootcmd_usb; run bootcmd_stock'
Marvell>> boot
(Re)start USB...
USB:   scanning bus for devices... 3 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
....
.
......
............
.........................
...................................................
......................................................................................................
.................................................................................................................................................................................................................
.......................................................................

4975416 bytes read
.
...
.
......
............
.........................
...................................................
......................................................................................................
............................................................................................................................................................................................................
....
....................................................................................................................................................................................................................................................................................................................................................................................................................
....
............................................................................................................................

9713936 bytes read

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-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 02100000 ...
Bad Magic Number

However, if I skip the nand read and fire those envs manually, we reach your debian!

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ 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
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>> ext2load usb 0:1 0x800000 /boot/uImage
....
.
......
............
.........................
...................................................
......................................................................................................
.................................................................................................................................................................................................................
.......................................................................

4975416 bytes read
Marvell>> ext2load usb 0:1 0x2100000 /boot/uInitrd
.
...
.
......
............
.........................
...................................................
......................................................................................................
............................................................................................................................................................................................................
....
....................................................................................................................................................................................................................................................................................................................................................................................................................
....
............................................................................................................................

9713936 bytes read
Marvell>> setenv bootcmd 'setenv bootargs $(bootargs_console) root=LABEL=rootfs rootfdelay=10 earlyprintk=serial'
Marvell>> bootm 0x00800000 0x2100000
## Booting image at 00800000 ...
   Image Name:   Linux-5.2.9-kirkwood-tld-1
   Created:      2020-02-14  20:02:37 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4975352 Bytes =  4.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 02100000 ...
   Image Name:   initrd.img-5.2.9-kirkwood-tld-1
   Created:      2020-02-24  15:34:56 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][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.2.9-kirkwood-tld-1 (root@tldDebian) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)) #1 PREEMPT Sat Aug 17 15:00:56 PDT 2019
[    0.000000][    T0] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000][    T0] CPU: VIVT data cache, VIVT instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Iomega StorCenter ix2-200
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 65024
[    0.000000][    T0] 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][    T0] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000][    T0] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000][    T0] Memory: 234780K/262144K available (9216K kernel code, 868K rwdata, 3400K rodata, 1024K init, 301K bss, 27364K reserved, 0K cma-reserved)
[    0.000000][    T0] random: get_random_u32 called from cache_alloc_refill+0x38c/0x928 with crng_init=0
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0]  Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000011][    T0] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000057][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.000957][    T0] Console: colour dummy device 80x30
[    0.001018][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.001048][    T0] pid_max: default: 32768 minimum: 301
[    0.001489][    T0] LSM: Security Framework initializing
[    0.001709][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001741][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.002758][    T0] *** VALIDATE proc ***
[    0.003065][    T0] *** VALIDATE cgroup1 ***
[    0.003096][    T0] *** VALIDATE cgroup2 ***
[    0.003211][    T0] CPU: Testing write buffer coherency: ok
[    0.005213][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.005568][    T1] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x2
[    0.005912][    T1] rcu: Hierarchical SRCU implementation.
[    0.009736][    T1] devtmpfs: initialized
[    0.016684][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.016722][    T1] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.017018][    T1] xor: measuring software checksum speed
[    0.110142][    T1]    arm4regs  :   902.400 MB/sec
[    0.210094][    T1]    8regs     :   542.000 MB/sec
[    0.310089][    T1]    32regs    :   788.000 MB/sec
[    0.310113][    T1] xor: using function: arm4regs (902.400 MB/sec)
[    0.310138][    T1] prandom: seed boundary self test passed
[    0.315172][    T1] prandom: 100 self tests passed
[    0.315186][    T1] pinctrl core: initialized pinctrl subsystem
[    0.316890][    T1] NET: Registered protocol family 16
[    0.317561][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.318533][    T1] audit: initializing netlink subsys (disabled)
[    0.320031][   T14] audit: type=2000 audit(0.310:1): state=initialized audit_enabled=0 res=1
[    0.320228][    T1] cpuidle: using governor ladder
[    0.320318][    T1] cpuidle: using governor menu
[    0.320971][    T1] Feroceon L2: Enabling L2
[    0.321029][    T1] Feroceon L2: Cache support initialised.
[    0.328289][    T1] No ATAGs?
[    2.560066][    C0] random: fast init done
[    7.479675][   T71] alg: No test for lzo-rle (lzo-rle-generic)
[    7.480319][   T73] alg: No test for lzo-rle (lzo-rle-scomp)
[    7.661035][    T1] raid6: int32x8  gen()   106 MB/s
[    7.830448][    T1] raid6: int32x8  xor()    72 MB/s
[    8.000252][    T1] raid6: int32x4  gen()   107 MB/s
[    8.170234][    T1] raid6: int32x4  xor()    69 MB/s
[    8.340088][    T1] raid6: int32x2  gen()   110 MB/s
[    8.510147][    T1] raid6: int32x2  xor()    78 MB/s
[    8.680540][    T1] raid6: int32x1  gen()    83 MB/s
[    8.850200][    T1] raid6: int32x1  xor()    57 MB/s
[    8.850213][    T1] raid6: using algorithm int32x2 gen() 110 MB/s
[    8.850224][    T1] raid6: .... xor() 78 MB/s, rmw enabled
[    8.850234][    T1] raid6: using intx1 recovery algorithm
[    8.850573][    T1] vgaarb: loaded
[    8.851188][    T1] SCSI subsystem initialized
[    8.851813][    T1] usbcore: registered new interface driver usbfs
[    8.851890][    T1] usbcore: registered new interface driver hub
[    8.851993][    T1] usbcore: registered new device driver usb
[    8.852212][    T1] pps_core: LinuxPPS API ver. 1 registered
[    8.852226][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    8.852260][    T1] PTP clock support registered
[    8.853876][    T1] clocksource: Switched to clocksource orion_clocksource
[   10.098959][    T1] VFS: Disk quotas dquot_6.6.0
[   10.099072][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[   10.110955][    T1] NET: Registered protocol family 2
[   10.111975][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[   10.112018][    T1] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[   10.112061][    T1] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[   10.112099][    T1] TCP: Hash tables configured (established 2048 bind 2048)
[   10.112224][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes)
[   10.112257][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[   10.112539][    T1] NET: Registered protocol family 1
[   10.113324][    T1] RPC: Registered named UNIX socket transport module.
[   10.113341][    T1] RPC: Registered udp transport module.
[   10.113352][    T1] RPC: Registered tcp transport module.
[   10.113362][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   10.113380][    T1] PCI: CLS 0 bytes, default 32
[   10.113679][    T1] Trying to unpack rootfs image as initramfs...
[   11.121431][    T1] Freeing initrd memory: 9488K
[   11.121661][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[   11.123200][    T1] Initialise system trusted keyrings
[   11.123261][    T1] Key type blacklist registered
[   11.123541][    T1] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[   11.123674][    T1] zbud: loaded
[   11.125174][    T1] NFS: Registering the id_resolver key type
[   11.125222][    T1] Key type id_resolver registered
[   11.125234][    T1] Key type id_legacy registered
[   11.125259][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[   11.125279][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   11.125634][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[   11.125910][    T1] fuse: init (API version 7.31)
[   11.126404][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[   11.126620][    T1] orangefs_init: module version upstream loaded
[   11.126636][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, no debug enabled
[   11.147768][    T1] async_tx: api initialized (async)
[   11.147798][    T1] Key type asymmetric registered
[   11.147810][    T1] Asymmetric key parser 'x509' registered
[   11.147897][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[   11.149863][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[   11.152383][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[   11.214888][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   11.217326][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[   11.274864][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   11.277652][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   11.279175][    T1] printk: console [ttyS0] disabled
[   11.279266][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[   12.041029][    T1] printk: console [ttyS0] enabled
[   12.055322][    T1] loop: module loaded
[   12.059881][    T1] sata_mv f1080000.sata: slots 32 ports 2
[   12.068931][    T1] scsi host0: sata_mv
[   12.073495][    T1] scsi host1: sata_mv
[   12.077792][    T1] ata1: SATA max UDMA/133 irq 33
[   12.082616][    T1] ata2: SATA max UDMA/133 irq 33
[   12.088855][    T1] nand: device found, Manufacturer ID: 0xad, Chip ID: 0x75
[   12.096052][    T1] nand: Hynix NAND 32MiB 3,3V 8-bit
[   12.101139][    T1] nand: 32 MiB, SLC, erase size: 16 KiB, page size: 512, OOB size: 16
[   12.109235][    T1] Scanning device for bad blocks
[   12.212747][    T1] Bad eraseblock 895 at 0x000000dfc000
[   12.298152][    T1] Bad eraseblock 1622 at 0x000001958000
[   12.350612][    T1] 4 cmdlinepart partitions found on MTD device orion_nand
[   12.357657][    T1] Creating 4 MTD partitions on "orion_nand":
[   12.363558][    T1] 0x000000000000-0x000000100000 : "uboot"
[   12.370869][    T1] 0x0000000a0000-0x0000000c0000 : "uboot_env"
[   12.378403][    T1] 0x000000100000-0x000000400000 : "uImage"
[   12.385752][    T1] 0x000001000000-0x000002000000 : "uInitrd"
[   12.395095][    T1] libphy: Fixed MDIO Bus: probed
[   12.400926][    T1] libphy: orion_mdio_bus: probed
[   12.422933][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   12.431771][    T1] mv643xx_eth_port mv643xx_eth_port.0: DMA mask not set
[   12.439381][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address aa:00:00:00:00:01
[   12.449048][    T1] mv643xx_eth_port mv643xx_eth_port.1: DMA mask not set
[   12.583928][  T112] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   12.616276][  T112] ata1.00: ATA-8: WDC WD20EARX-00PASB0, 51.0AB51, max UDMA/133
[   12.623712][  T112] ata1.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   12.656271][  T112] ata1.00: configured for UDMA/133
[   12.671871][    T7] scsi 0:0:0:0: Direct-Access     ATA      WDC WD20EARX-00P AB51 PQ: 0 ANSI: 5
[   12.681921][  T116] sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[   12.690993][  T116] sd 0:0:0:0: [sda] 4096-byte physical blocks
[   12.697143][  T116] sd 0:0:0:0: [sda] Write Protect is off
[   12.702813][  T116] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   13.025577][  T114] ata2: SATA link down (SStatus 0 SControl F300)
[   13.142081][  T116]  sda: sda1
[   13.146984][  T116] sd 0:0:0:0: [sda] Attached SCSI disk
[   13.174655][    T1] mv643xx_eth_port mv643xx_eth_port.1 eth1: port 0 with MAC address 00:50:43:a0:0a:27
[   13.184313][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   13.191598][    T1] ehci-pci: EHCI PCI platform driver
[   13.196858][    T1] ehci-orion: EHCI orion driver
[   13.201855][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[   13.208139][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   13.216862][    T1] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[   13.243925][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   13.251010][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[   13.260053][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   13.268038][    T1] usb usb1: Product: EHCI Host Controller
[   13.273638][    T1] usb usb1: Manufacturer: Linux 5.2.9-kirkwood-tld-1 ehci_hcd
[   13.281012][    T1] usb usb1: SerialNumber: f1050000.ehci
[   13.287193][    T1] hub 1-0:1.0: USB hub found
[   13.291716][    T1] hub 1-0:1.0: 1 port detected
[   13.297271][    T1] usbcore: registered new interface driver usb-storage
[   13.304525][    T1] mousedev: PS/2 mouse device common for all mice
[   13.311513][    T1] rtc-mv f1010300.rtc: registered as rtc0
[   13.317372][    T1] i2c /dev entries driver
[   13.323337][    T1] device-mapper: uevent: version 1.0.3
[   13.329115][    T1] device-mapper: ioctl: 4.40.0-ioctl (2019-01-18) initialised: dm-devel@redhat.com
[   13.338836][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[   13.346180][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[   13.353528][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[   13.361006][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[   13.367862][    T1] device-mapper: raid: Loading target version 1.14.0
[   13.376071][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[   13.382589][    T1] drop_monitor: Initializing network drop monitor service
[   13.390010][    T1] NET: Registered protocol family 17
[   13.395506][    T1] Key type dns_resolver registered
[   13.401502][    T1] registered taskstats version 1
[   13.406524][    T1] Loading compiled-in X.509 certificates
[   13.412126][    T1] zswap: loaded using pool lzo/zbud
[   13.528537][    T1] Key type big_key registered
[   13.583564][    T1] Key type encrypted registered
[   13.590858][    T1] rtc-mv f1010300.rtc: setting system clock to 2020-02-26T11:17:19 UTC (1582715839)
[   13.604453][    T1] Freeing unused kernel memory: 1024K
[   13.614551][    T1] Checked W+X mappings: passed, no W+X pages found
[   13.620945][    T1] Run /init as init process
[   13.664036][   T15] usb 1-1: new high-speed USB device number 2 using orion-ehci
Loading, please wait...
Starting version 241
[   13.864648][   T15] usb 1-1: New USB device found, idVendor=058f, idProduct=6254, bcdDevice= 1.00
[   13.873601][   T15] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[   13.907999][   T15] hub 1-1:1.0: USB hub found
[   13.928402][   T15] hub 1-1:1.0: 4 ports detected
[   14.253991][   T15] usb 1-1.1: new high-speed USB device number 3 using orion-ehci
[   14.426521][   T15] usb 1-1.1: New USB device found, idVendor=154b, idProduct=005b, bcdDevice=11.00
[   14.451387][   T15] usb 1-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   14.477517][   T15] usb 1-1.1: Product: USB 2.0 FD
[   14.482345][   T15] usb 1-1.1: Manufacturer: PNY Technologies
[   14.509520][   T15] usb 1-1.1: SerialNumber: AD1CHD1200000071
[   14.528905][   T15] usb-storage 1-1.1:1.0: USB Mass Storage device detected
[   14.558148][   T15] scsi host2: usb-storage 1-1.1:1.0
[   14.658037][  T170] usbcore: registered new interface driver uas
Begin: Loading essential drivers ... done.
[   16.300743][   T23] scsi 2:0:0:0: Direct-Access     PNY      USB 2.0 FD       1100 PQ: 0 ANSI: 4
[   16.314069][  T116] sd 2:0:0:0: [sdb] 15814656 512-byte logical blocks: (8.10 GB/7.54 GiB)
[   16.331395][  T116] sd 2:0:0:0: [sdb] Write Protect is off
[   16.339551][  T116] sd 2:0:0:0: [sdb] No Caching mode page found
[   16.345698][  T116] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[   16.359947][  T116]  sdb: sdb1
[   16.377308][  T116] sd 2:0:0:0: [sdb] Attached SCSI removable disk
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.33.1
fsck: error 2 (No such file or directory) while executing fsck.ext2 for /dev/sdb1
fsck exited with status code 8
done.
Warning: File system check failed but did not detect errors
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.93 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Starting hotplug events dispatcher: systemd-udevd.
[ ok ] Synthesizing the initial hotplug events (subsystems)...done.
[....] Synthesizing the initial hotplug events (devices)...[   33.471560][  T394] input: gpio-keys as /devices/platform/gpio-keys/input/input0
done.
[....] Waiting for /dev to be fully populated...[   33.747154][  T372] systemd-udevd[372]: Using default interface naming scheme 'v240'.
[   33.809093][  T373] systemd-udevd[373]: Using default interface naming scheme 'v240'.
[   33.849883][  T372] systemd-udevd[372]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   33.956311][  T373] systemd-udevd[373]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   34.115430][  T376] watchdog: f1020300.watchdog-timer: driver supplied timeout (4294967295) out of range
[   34.215047][    C0] random: crng init done
[   34.272800][  T376] watchdog: f1020300.watchdog-timer: falling back to default timeout (21)
[   34.451926][  T376] orion_wdt: Initial timeout 21 sec
[   34.485141][  T375] marvell-cesa f1030000.crypto: CESA device successfully registered
[   34.525237][  T374] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   34.572846][  T374] sd 2:0:0:0: Attached scsi generic sg1 type 0
[   34.827661][  T394] systemd-udevd[394]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
done.
[ ok ] Setting hostname to 'debian'...done.
[ ok ] Activating swap:.
[....] Will now check root file system:fsck from util-linux 2.33.1
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /run/rootdev
e2fsck 1.44.5 (15-Dec-2018)
rootfs: clean, 15085/494832 files, 182877/1976576 blocks
. ok
[info] Will now check all file systems.
fsck from util-linux 2.33.1
Checking all file systems.
LABEL=rootfs is not mounted
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sda1
e2fsck 1.44.5 (15-Dec-2018)
rootfs: recovering journal
rootfs: clean, 15077/122101760 files, 8133909/488378390 blocks
[ ok ] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable..
[ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done.
[ ok .
[ ok ] Will now mount local filesystems:.
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Starting Setting kernel variables: sysctl.
[ ok ] Initializing random number generator...done.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

[   71.383483][ T1153] mv643xx_eth: no PHY
[   71.383535][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
Listening on LPF/eth0/aa:00:00:00:00:01
Sending on   LPF/eth0/aa:00:00:00:00:01
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 10
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.
[....] Starting RPC port mapper daemon: rpcbind[  132.883091][ T1235] NET: Registered protocol family 10
[  132.891185][ T1235] Segment Routing with IPv6
. ok
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1359 (syslogd)
. ok
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1386 (klogd)
. ok
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting NFS common utilities: statd idmapd.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 10 debian ttyS0

debian login:



Edited 1 time(s). Last edit at 02/26/2020 06:15AM by damnit_.
Re: ix2-200 boots USB but not HDD
February 26, 2020 07:00AM
Very cool! you've read my mind :) I was about to ask you to try that!

Now we just need to formulate the envs better (not to worry about Nand boot for now).

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: ix2-200 boots USB but not HDD
February 26, 2020 08:21AM
Ultimately I still have the issue of your uImage not fitting in nand.. Can I make /dev/mtd2 larger somehow?

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:~# ls -al /boot
total 65492
drwxr-xr-x  3 root root    4096 Feb 24 07:34 .
drwxr-xr-x 22 root root    4096 Feb 25 06:41 ..
-rw-------  1 root root 3101889 Aug 17  2019 System.map-5.2.9-kirkwood-tld-1
-rw-r--r--  1 root root  165790 Aug 17  2019 config-5.2.9-kirkwood-tld-1
drwxr-xr-x  2 root root    4096 Aug 16  2019 dts
-rw-r--r--  1 root root 9713872 Aug 24  2019 initrd.img-5.2.9-kirkwood-tld-1
-rw-r--r--  1 root root 9649570 Aug 17  2019 linux-headers-5.2.9-kirkwood-tld-1_1.0_armel.deb
-rw-r--r--  1 root root 4975416 Feb 14 12:02 uImage
-rw-r--r--  1 root root 4963680 Aug 24  2019 uImage.orig
-rw-r--r--  1 root root 9713936 Feb 24 07:34 uInitrd
-rw-r--r--  1 root root 9713936 Aug 24  2019 uInitrd.orig
-rw-------  1 root root 4963616 Aug 17  2019 vmlinuz-5.2.9-kirkwood-tld-1
-rwxr-xr-x  1 root root 4963616 Aug 17  2019 zImage-5.2.9-kirkwood-tld-1
-rwxr-xr-x  1 root root 4975352 Feb 14 12:00 zImage.fdt
root@debian:~# flash_eraseall /dev/mtd2
flash_eraseall has been replaced by `flash_erase <mtddev> 0 0`; please use it
Erasing 16 Kibyte @ 2fc000 -- 100 % complete
root@debian:~# nandwrite -p /dev/mtd2 /boot/uImage
Image 4975416 bytes, NAND page 512 bytes, OOB area 16 bytes, device size 3145728 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:~# 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=LABEL=rootfs rootdelay=10
[   12.212747] Bad eraseblock 895 at 0x000000dfc000
[   12.298152] Bad eraseblock 1622 at 0x000001958000
[   12.363558] 0x000000000000-0x000000100000 : "uboot"
[   12.370869] 0x0000000a0000-0x0000000c0000 : "uboot_env"
[   12.378403] 0x000000100000-0x000000400000 : "uImage"
[   12.385752] 0x000001000000-0x000002000000 : "uInitrd"



Edited 2 time(s). Last edit at 02/26/2020 08:27AM by damnit_.
Re: ix2-200 boots USB but not HDD
February 26, 2020 01:55PM
Ah, you taught me earlier, just had to do some hexadecimal mathematics...

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

Seems to fit now!
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),0x500000@0x100000(uImage),0x1000000@0x1000000(uInitrd) root=LABEL=rootfs rootdelay=10
[   12.212769] Bad eraseblock 895 at 0x000000dfc000
[   12.298173] Bad eraseblock 1622 at 0x000001958000
[   12.363579] 0x000000000000-0x000000100000 : "uboot"
[   12.370894] 0x0000000a0000-0x0000000c0000 : "uboot_env"
[   12.378431] 0x000000100000-0x000000600000 : "uImage"
[   12.385845] 0x000001000000-0x000002000000 : "uInitrd"
root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00100000 00004000 "uboot"
mtd1: 00020000 00004000 "uboot_env"
mtd2: 00500000 00004000 "uImage"
mtd3: 01000000 00004000 "uInitrd"
root@debian:~#



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

Now I attempt boot without USB stick attached, NAND boot looks unhappy.. ends in kernel panic trying to find HDD rootfs

Hit any key to stop autoboot:  0

NAND read: device 0 offset 0x100000, size 0x500000
 5242880 bytes read: OK

NAND read: device 0 offset 0x1000000, size 0xe00000
 14680064 bytes read: ERROR
## Booting image at 00800000 ...
   Image Name:   Linux-5.2.9-kirkwood-tld-1
   Created:      2020-02-14  20:02:37 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4975352 Bytes =  4.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.2.9-kirkwood-tld-1 (root@tldDebian) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)) #1 PREEMPT Sat Aug 17 15:00:56 PDT 2019
[    0.000000][    T0] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000][    T0] CPU: VIVT data cache, VIVT instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Iomega StorCenter ix2-200
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 65024
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 mtdparts=orion_nand:0x100000@0x000000(uboot)ro,0x20000@0xA0000(uboot_env),0x500000@0x100000(uImage),0x1000000@0x1000000(uInitrd) root=LABEL=rootfs rootdelay=10 root=LABEL=rootfs
[    0.000000][    T0] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000][    T0] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000][    T0] Memory: 244268K/262144K available (9216K kernel code, 868K rwdata, 3400K rodata, 1024K init, 301K bss, 17876K reserved, 0K cma-reserved)
[    0.000000][    T0] random: get_random_u32 called from cache_alloc_refill+0x38c/0x928 with crng_init=0
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0]  Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000010][    T0] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000056][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.000950][    T0] Console: colour dummy device 80x30
[    0.001011][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.001040][    T0] pid_max: default: 32768 minimum: 301
[    0.001484][    T0] LSM: Security Framework initializing
[    0.001704][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001734][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.002754][    T0] *** VALIDATE proc ***
[    0.003061][    T0] *** VALIDATE cgroup1 ***
[    0.003091][    T0] *** VALIDATE cgroup2 ***
[    0.003207][    T0] CPU: Testing write buffer coherency: ok
[    0.005226][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.005583][    T1] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x2
[    0.005928][    T1] rcu: Hierarchical SRCU implementation.
[    0.009750][    T1] devtmpfs: initialized
[    0.016739][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.016776][    T1] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.017073][    T1] xor: measuring software checksum speed
[    0.110133][    T1]    arm4regs  :   902.400 MB/sec
[    0.210092][    T1]    8regs     :   542.000 MB/sec
[    0.310084][    T1]    32regs    :   787.600 MB/sec
[    0.310107][    T1] xor: using function: arm4regs (902.400 MB/sec)
[    0.310133][    T1] prandom: seed boundary self test passed
[    0.315169][    T1] prandom: 100 self tests passed
[    0.315183][    T1] pinctrl core: initialized pinctrl subsystem
[    0.316872][    T1] NET: Registered protocol family 16
[    0.317570][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.318541][    T1] audit: initializing netlink subsys (disabled)
[    0.320022][   T14] audit: type=2000 audit(0.310:1): state=initialized audit_enabled=0 res=1
[    0.320222][    T1] cpuidle: using governor ladder
[    0.320312][    T1] cpuidle: using governor menu
[    0.320993][    T1] Feroceon L2: Enabling L2
[    0.321052][    T1] Feroceon L2: Cache support initialised.
[    0.328291][    T1] No ATAGs?
[    2.560064][    C0] random: fast init done
[    7.479456][   T71] alg: No test for lzo-rle (lzo-rle-generic)
[    7.479899][   T73] alg: No test for lzo-rle (lzo-rle-scomp)
[    7.660890][    T1] raid6: int32x8  gen()   106 MB/s
[    7.830430][    T1] raid6: int32x8  xor()    72 MB/s
[    8.000185][    T1] raid6: int32x4  gen()   107 MB/s
[    8.170232][    T1] raid6: int32x4  xor()    69 MB/s
[    8.340600][    T1] raid6: int32x2  gen()   110 MB/s
[    8.510148][    T1] raid6: int32x2  xor()    78 MB/s
[    8.680538][    T1] raid6: int32x1  gen()    83 MB/s
[    8.850199][    T1] raid6: int32x1  xor()    57 MB/s
[    8.850213][    T1] raid6: using algorithm int32x2 gen() 110 MB/s
[    8.850223][    T1] raid6: .... xor() 78 MB/s, rmw enabled
[    8.850233][    T1] raid6: using intx1 recovery algorithm
[    8.850564][    T1] vgaarb: loaded
[    8.851174][    T1] SCSI subsystem initialized
[    8.851799][    T1] usbcore: registered new interface driver usbfs
[    8.851877][    T1] usbcore: registered new interface driver hub
[    8.851981][    T1] usbcore: registered new device driver usb
[    8.852206][    T1] pps_core: LinuxPPS API ver. 1 registered
[    8.852220][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    8.852253][    T1] PTP clock support registered
[    8.853892][    T1] clocksource: Switched to clocksource orion_clocksource
[   10.099100][    T1] VFS: Disk quotas dquot_6.6.0
[   10.099215][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[   10.111096][    T1] NET: Registered protocol family 2
[   10.112110][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[   10.112155][    T1] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[   10.112198][    T1] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[   10.112236][    T1] TCP: Hash tables configured (established 2048 bind 2048)
[   10.112353][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes)
[   10.112385][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[   10.112671][    T1] NET: Registered protocol family 1
[   10.113447][    T1] RPC: Registered named UNIX socket transport module.
[   10.113464][    T1] RPC: Registered udp transport module.
[   10.113474][    T1] RPC: Registered tcp transport module.
[   10.113485][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   10.113502][    T1] PCI: CLS 0 bytes, default 32
[   10.114110][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[   10.115532][    T1] Initialise system trusted keyrings
[   10.115595][    T1] Key type blacklist registered
[   10.115864][    T1] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[   10.115987][    T1] zbud: loaded
[   10.117307][    T1] NFS: Registering the id_resolver key type
[   10.117349][    T1] Key type id_resolver registered
[   10.117361][    T1] Key type id_legacy registered
[   10.117386][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[   10.117405][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   10.117753][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[   10.118033][    T1] fuse: init (API version 7.31)
[   10.118501][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[   10.118747][    T1] orangefs_init: module version upstream loaded
[   10.118763][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, no debug enabled
[   10.122518][    T1] async_tx: api initialized (async)
[   10.122543][    T1] Key type asymmetric registered
[   10.122556][    T1] Asymmetric key parser 'x509' registered
[   10.122624][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[   10.124671][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[   10.127183][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[   10.184858][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   10.187289][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[   10.244896][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   10.247631][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   10.249160][    T1] printk: console [ttyS0] disabled
[   10.249245][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[   11.001822][    T1] printk: console [ttyS0] enabled
[   11.016116][    T1] loop: module loaded
[   11.020661][    T1] sata_mv f1080000.sata: slots 32 ports 2
[   11.029694][    T1] scsi host0: sata_mv
[   11.034345][    T1] scsi host1: sata_mv
[   11.038567][    T1] ata1: SATA max UDMA/133 irq 33
[   11.043390][    T1] ata2: SATA max UDMA/133 irq 33
[   11.049507][    T1] nand: device found, Manufacturer ID: 0xad, Chip ID: 0x75
[   11.056701][    T1] nand: Hynix NAND 32MiB 3,3V 8-bit
[   11.061781][    T1] nand: 32 MiB, SLC, erase size: 16 KiB, page size: 512, OOB size: 16
[   11.069870][    T1] Scanning device for bad blocks
[   11.173508][    T1] Bad eraseblock 895 at 0x000000dfc000
[   11.258939][    T1] Bad eraseblock 1622 at 0x000001958000
[   11.311422][    T1] 4 cmdlinepart partitions found on MTD device orion_nand
[   11.318467][    T1] Creating 4 MTD partitions on "orion_nand":
[   11.324385][    T1] 0x000000000000-0x000000100000 : "uboot"
[   11.331683][    T1] 0x0000000a0000-0x0000000c0000 : "uboot_env"
[   11.339212][    T1] 0x000000100000-0x000000600000 : "uImage"
[   11.346624][    T1] 0x000001000000-0x000002000000 : "uInitrd"
[   11.355951][    T1] libphy: Fixed MDIO Bus: probed
[   11.361792][    T1] libphy: orion_mdio_bus: probed
[   11.368105][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   11.376967][    T1] mv643xx_eth_port mv643xx_eth_port.0: DMA mask not set
[   11.384586][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address aa:00:00:00:00:01
[   11.394214][    T1] mv643xx_eth_port mv643xx_eth_port.1: DMA mask not set
[   11.543947][  T112] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   12.023978][  T112] ata1.00: ATA-8: WDC WD20EARX-00PASB0, 51.0AB51, max UDMA/133
[   12.031421][  T112] ata1.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   12.066280][  T112] ata1.00: configured for UDMA/133
[   12.081891][    T7] scsi 0:0:0:0: Direct-Access     ATA      WDC WD20EARX-00P AB51 PQ: 0 ANSI: 5
[   12.091992][  T116] sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[   12.101068][  T116] sd 0:0:0:0: [sda] 4096-byte physical blocks
[   12.107216][  T116] sd 0:0:0:0: [sda] Write Protect is off
[   12.112889][  T116] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   12.123510][    T1] mv643xx_eth_port mv643xx_eth_port.1 eth1: port 0 with MAC address 00:50:43:a0:0a:27
[   12.134785][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   12.142071][    T1] ehci-pci: EHCI PCI platform driver
[   12.147342][    T1] ehci-orion: EHCI orion driver
[   12.152305][  T116]  sda: sda1
[   12.155670][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[   12.161918][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   12.172101][  T116] sd 0:0:0:0: [sda] Attached SCSI disk
[   12.177768][    T1] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[   12.213929][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   12.221014][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[   12.230053][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   12.238040][    T1] usb usb1: Product: EHCI Host Controller
[   12.243648][    T1] usb usb1: Manufacturer: Linux 5.2.9-kirkwood-tld-1 ehci_hcd
[   12.251021][    T1] usb usb1: SerialNumber: f1050000.ehci
[   12.257205][    T1] hub 1-0:1.0: USB hub found
[   12.261724][    T1] hub 1-0:1.0: 1 port detected
[   12.267292][    T1] usbcore: registered new interface driver usb-storage
[   12.274547][    T1] mousedev: PS/2 mouse device common for all mice
[   12.281541][    T1] rtc-mv f1010300.rtc: registered as rtc0
[   12.287396][    T1] i2c /dev entries driver
[   12.293349][    T1] device-mapper: uevent: version 1.0.3
[   12.299109][    T1] device-mapper: ioctl: 4.40.0-ioctl (2019-01-18) initialised: dm-devel@redhat.com
[   12.308825][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[   12.316173][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[   12.323520][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[   12.331017][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[   12.337899][    T1] device-mapper: raid: Loading target version 1.14.0
[   12.346141][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[   12.352699][    T1] drop_monitor: Initializing network drop monitor service
[   12.360130][    T1] NET: Registered protocol family 17
[   12.365654][    T1] Key type dns_resolver registered
[   12.371725][    T1] registered taskstats version 1
[   12.376770][    T1] Loading compiled-in X.509 certificates
[   12.382424][    T1] zswap: loaded using pool lzo/zbud
[   12.406093][    T1] Key type big_key registered
[   12.414953][    T1] Key type encrypted registered
[   12.422061][    T1] rtc-mv f1010300.rtc: setting system clock to 2020-02-26T19:13:04 UTC (1582744384)
[   12.432065][    T1] Waiting 10 sec before mounting root device...
[   12.603941][  T114] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   12.633934][   T15] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   12.834405][   T15] usb 1-1: New USB device found, idVendor=058f, idProduct=6254, bcdDevice= 1.00
[   12.843339][   T15] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[   12.852222][   T15] hub 1-1:1.0: USB hub found
[   12.857021][   T15] hub 1-1:1.0: 4 ports detected
[   12.914000][  T114] ata2.00: ATA-8: WDC WD20EARX-00PASB0, 51.0AB51, max UDMA/133
[   12.921436][  T114] ata2.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   12.956276][  T114] ata2.00: configured for UDMA/133
[   12.971863][   T23] scsi 1:0:0:0: Direct-Access     ATA      WDC WD20EARX-00P AB51 PQ: 0 ANSI: 5
[   12.981948][  T116] sd 1:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[   12.990883][  T116] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[   12.997080][  T116] sd 1:0:0:0: [sdb] Write Protect is off
[   13.002755][  T116] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   13.061563][  T116]  sdb:
[   13.065823][  T116] sd 1:0:0:0: [sdb] Attached SCSI disk
[   22.884018][    T1] md: Waiting for all devices to be available before autodetect
[   22.891547][    T1] md: If you don't use raid, use raid=noautodetect
[   22.899017][    T1] md: Autodetecting RAID arrays.
[   22.903834][    T1] md: autorun ...
[   22.907423][    T1] md: ... autorun DONE.
[   22.911684][    T1] VFS: Cannot open root device "LABEL=rootfs" or unknown-block(0,0): error -6
[   22.920500][    T1] Please append a correct "root=" boot option; here are the available partitions:
[   22.929699][    T1] 1f00            1024 mtdblock0
[   22.929703][    T1]  (driver?)
[   22.937740][    T1] 1f01             128 mtdblock1
[   22.937744][    T1]  (driver?)
[   22.945765][    T1] 1f02            5120 mtdblock2
[   22.945769][    T1]  (driver?)
[   22.953736][    T1] 1f03           16384 mtdblock3
[   22.953739][    T1]  (driver?)
[   22.961733][    T1] 0800      1953514584 sda
[   22.961738][    T1]  driver: sd
[   22.969292][    T1]   0801      1953513560 sda1 51bdcac3-01
[   22.969295][    T1]
[   22.977117][    T1] 0810      1953514584 sdb
[   22.977120][    T1]  driver: sd
[   22.984671][    T1] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   22.993683][    T1] CPU: 0 PID: 1 Comm: swapper Not tainted 5.2.9-kirkwood-tld-1 #1
[   23.001374][    T1] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[   23.008399][    T1] [<c010f6ac>] (unwind_backtrace) from [<c010bb00>] (show_stack+0x10/0x14)
[   23.016898][    T1] [<c010bb00>] (show_stack) from [<c0119fa0>] (panic+0xe0/0x30c)
[   23.024519][    T1] [<c0119fa0>] (panic) from [<c0e01628>] (mount_block_root+0x1bc/0x2a4)
[   23.032745][    T1] [<c0e01628>] (mount_block_root) from [<c0e017f8>] (mount_root+0xe8/0x154)
[   23.041316][    T1] [<c0e017f8>] (mount_root) from [<c0e019b0>] (prepare_namespace+0x14c/0x18c)
[   23.050062][    T1] [<c0e019b0>] (prepare_namespace) from [<c0e011c8>] (kernel_init_freeable+0x270/0x2dc)
[   23.059682][    T1] [<c0e011c8>] (kernel_init_freeable) from [<c09dcee0>] (kernel_init+0x8/0x10c)
[   23.068601][    T1] [<c09dcee0>] (kernel_init) from [<c01010e0>] (ret_from_fork+0x14/0x34)
[   23.076901][    T1] Exception stack(0xcf88bfb0 to 0xcf88bff8)
[   23.082676][    T1] bfa0:                                     00000000 00000000 00000000 00000000
[   23.091590][    T1] bfc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   23.100509][    T1] bfe0: 00000000 00000000 00000000 00000000 00000013 00000000
[   23.107861][    T1] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---
Re: ix2-200 boots USB but not HDD
February 26, 2020 07:02PM
@damnit_,

You need to boot with uInitrd, so that the kernel will be able to find the rootfs using label.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: ix2-200 boots USB but not HDD
February 27, 2020 07:55AM
Found a typo in bootcmd
setenv bootcmd 'setenv bootargs $(bootargs_console) root=LABEL=rootfs rootfdelay=10 earlyprintk=serial; run bootcmd_usb; bootcmd_stock'

Should be
setenv bootcmd 'setenv bootargs $(bootargs_console) root=LABEL=rootfs rootfdelay=10 earlyprintk=serial; run bootcmd_usb; run bootcmd_stock'

Fixed all 100% working!!

@bodhi thank you so much for all your help, buy you a beer?

For historical reference and in case it can help someone else, final envs to make this box work
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_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:a0:0a:27
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
bootargs_root=root=LABEL=rootfs
memoffset_kernel=0x00800000
memoffset_initrd=0x01000000
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:0x100000@0x000000(uboot)ro,0x20000@0xA0000(uboot_env),0x500000@0x100000(uImage),0xE00000@0x1000000(uInitrd)
partition=nand0,0
mtddevnum=0
mtddevname=uboot
bootargs_console=console=ttyS0,115200 mtdparts=orion_nand:0x100000@0x000000(uboot)ro,0x20000@0xA0000(uboot_env),0x500000@0x100000(uImage),0xE00000@0x1000000(uInitrd) root=LABEL=rootfs rootdelay=10
bootargs_combine=setenv bootargs ${bootargs_console} ${bootargs_mtdparts} ${bootargs_root}
bootlinux=bootm ${memoffset_kernel} ${memoffset_initrd}
usb_load_firstdevice=ext2load usb 0:1 ${memoffset_kernel} /boot/uImage; ext2load usb 0:1 ${memoffset_initrd} /boot/uInitrd
usb_load=run bootargs_combine; usb reset; run usb_load_firstdevice; run bootlinux
sata_load_disk1=ext2load ide 0:1 ${memoffset_kernel} /boot/uImage; ext2load ide 0:1 ${memoffset_initrd} /boot/uInitrd
sata_load_disk2=ext2load ide 1:1 ${memoffset_kernel} /boot/uImage; ext2load ide 1:1 ${memoffset_initrd} /boot/uInitrd
sata_load=run bootargs_combine; ide reset; run sata_load_disk1; run sata_load_disk2; run bootlinux
bootargs=console=ttyS0,115200 mtdparts=orion_nand:0x100000@0x000000(uboot)ro,0x20000@0xA0000(uboot_env),0x500000@0x100000(uImage),0xE00000@0x1000000(uInitrd) root=LABEL=rootfs rootdelay=10 root=LABEL=rootfs rootfdelay=10 earlyprintk=serial
bootcmd_usb=usb start; ext2load usb 0:1 0x800000 /boot/uImage; ext2load usb 0:1 0x2100000 /boot/uInitrd
bootcmd_stock=nand read 0x800000 uImage; nand read 0x2100000 uInitrd; bootm 0x00800000 0x2100000
bootcmd=setenv bootargs $(bootargs_console) root=LABEL=rootfs rootfdelay=10 earlyprintk=serial; run bootcmd_usb; run bootcmd_stock
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: 3618/16380 bytes
Marvell>>



Edited 1 time(s). Last edit at 02/27/2020 08:14AM by damnit_.
Re: ix2-200 boots USB but not HDD
February 27, 2020 06:25PM
@damnit_,

> Found a typo in bootcmd
>
> Fixed all 100% working!!

Cool!

> @bodhi thank you so much for all your help, buy
> you a beer?

Please see my signature.

-bodhi
===========================
Forum Wiki
bodhi's corner
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: