Welcome! Log In Create A New Profile

Advanced

HOWTO: Lenovo ix2-dl / Stock U-Boot, boot current kernel, access printenv from Debian, load kernel from GPT ide drive

Posted by jdwl101 
Re: Lenovo ix2-dl, boot new kernel and write and boot from flash
October 22, 2018 04:31AM
J,

I've added Eine's post to the Wiki

https://forum.doozan.com/read.php?2,23630

Quote

Booting Debian on Pogoplug

How to set up U-Boot for booting in multiple drives configuration
Backup and Restore NAND mtds
UART Booting HowTo for Selected Kirkwood Devices
Migrating from Arch to Debian?
How to boot new Debian rootfs using stock u-boot tftp - Pogo E02
How to boot new Debian rootfs on USB using stock u-boot - NSA325
Booting Debian rootfs on a GPT HDD with stock u-boot (with kernel files stored in HDD raw sector)

If you could clean up your post a bit to make clear what you did, I'd like to add that as a 2nd tutorial on the same topic. Thanks!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Below sets out how I was able to 1) configure an IX2-DL to boot from a USB Debian rootfs, with u-boot env access and then 2) from the internal GPT partitioned sata drives. Without needing to update the u-boot to something more modern and functional.

Note: you cannot go back to Stock after making these changes as the IX2’s stock partitions will be deleted. You could try making stock co-exist, I have no interest in booting stock again.

I used a serial console throughout, theoretically these steps could be completed using fw_setenv from ssh, but I'd recommend having a TTL cable available for if anything fails.

Start with USB booting to get Debian running (Bodhi’s 4.12 rootfs);
setenv load_initrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd'
setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
setenv usb_boot 'usb start; run load_uimage; run load_initrd; bootm 0x800000 0x2100000'
setenv bootargs 'console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:0x80000@0(uboot),0x20000@0xa0000(env),0x20000@0xc0000(env2),0x300000@0x100000(uImage),0x400000@0x400000(initrd),0x3f800000@0x800000(boot),1024m@0x0(flash)  earlyprintk=serial'

Optional, use ar-lex’s DTS and DTB, specific to the IX2-DL (only)
IX2-DL custom DTB

This will give you a system booting Debian from USB, with USB rootfs;
** MARVELL BOARD: DB-88F6282A-BP LE

U-Boot 1.1.4 (Oct 28 2011 - 15:19:29) Marvell version: 3.6.1 - EMC

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

Soc: 88F6282 A1 CPU running @ 1600Mhz L2 running @ 533Mhz
SysClock = 533Mhz , TClock = 200Mhz

DRAM (DDR3) CAS Latency = 7 tRP = 7 tRAS = 20 tRCD=7
DRAM CS[0] base 0x00000000   size 256MB
DRAM Total size 256MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:1024 MB
Found ADT7473, program PWM1 ... OK
Flash:  0 kB

Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode (6)
  Device 0 @ 0 0:
Model: ST2000DM001-1CH164                       Firm: CC26     Ser#:             Z2F0PEJZ
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
[0 1 0]: Enable DMA mode (6)
  Device 1 @ 0 1:
Model: ST1000DM003-9YN162                       Firm: CC9D     Ser#:             Z1D0F6TF
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)


CPU : Marvell Feroceon (Rev 1)
Found kernel at 0x100000
Found initrd at 0x400000

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
PEX 1: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0
Marvell>> setenv load_initrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd.4.12'
Marvell>> setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage.4.12'
Marvell>> setenv usb_boot 'usb start; run load_uimage; run load_initrd; bootm 0x800000 0x2100000'
Marvell>> boot
(Re)start USB...
USB:   scanning bus for devices... 2 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
1 Storage Device(s) found
....
.................................................................................................................................................................................................................................................................................................................................................................................

3834683 bytes read
....
..............................................................................................................................................................
.
.......................................................................................................................................................................................................................................................
.........................................................................................................................................................................................................................................................................................................................................................................................................

8268888 bytes read
## Booting image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2018-10-20   0:48:49 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3834619 Bytes =  3.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 02100000 ...
   Image Name:   initramfs-4.12.1-kirkwood-tld-1
   Created:      2018-10-20   0:49:12 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    8268824 Bytes =  7.9 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.18.4-kirkwood-tld-1 (root@tldDebian) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)) #1 PREEMPT Fri Aug 24 22:13:40 PDT 2018
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Lenovo IX2-ng

With populated MTD devices;
[    6.572050] Creating 6 MTD partitions on "orion_nand":
[    6.577335] 0x000000000000-0x000000080000 : "uboot"
[    6.583012] 0x0000000a0000-0x0000000c0000 : "env"
[    6.588430] 0x0000000c0000-0x0000000e0000 : "env2"
[    6.593955] 0x000000100000-0x000000400000 : "uImage"
[    6.599739] 0x000000400000-0x000000800000 : "initrd"
[    6.605568] 0x000000800000-0x000040000000 : "boot"
>  cat /proc/mtd
> dev:    size   erasesize  name
> mtd0: 00080000 00020000 "uboot"
> mtd1: 00020000 00020000 "env"
> mtd2: 00020000 00020000 "env2"
> mtd3: 00300000 00020000 "uImage"
> mtd4: 00400000 00020000 "initrd"
> mtd5: 3f800000 00020000 "boot"

To access u-boot variables from Debian (usually problematic with this box) add this to /etc/fw_env.config
# MTD device name       Device offset   Env. size       Flash sector size      $
/dev/mtd1 0x0000 0x20000 0x20000
/dev/mtd2 0x0000 0x20000 0x20000
Only 1 entry should be required (MTD1), on my IX2 it oddly needs both to read and write the variables, but works and doesn’t throw errors.
This means we have a 100% functional kernel and Debian install on USB, without upgrading u-boot.

Part II – booting from sata/IDE w/ GPT partition table
The IX2-DL is a dual drive NAS, so we can host rootfs and images on the sata drives. I originally planned to write the uImage and uInitrd to flash, turns out the stock partitions are too small and the mtd sizes would have to change and Bodhi doesn’t recommend flash booting anyway. So I used the sata drives to host the images instead.

This is easiest to set up if the drives are blank, if you can back up your data and start fresh that will be easiest. For drives under 2TB you could then partition using MBR and u-boot will be able to load the images off an ext2 /boot partition.
I didn’t have sufficient storage to back up the 3TB of data I have on the IX2, so took the risk.

The main issue with loading images from large sata drives, or drives partitioned by the stock install, is the old u-boot doesn’t support GPT. This means u-boot doesn’t recognise any partitions on the drives. There is a way around this though, documented by Eine here;
Booting from GPT drive on stock u-boot

This solution uses ‘ide read’ in u-boot to load the uImage and uInitrd directly from drive sectors, ignoring the partition table. To make it work you need a drive partitioned with free space at the beginning, 128MiB is sufficient.

To avoid losing any of my stored data on the drives I kept the mdadm setup for the DATA volume group, but deleted MD0, the stock raid 1 root file system. That give 20GB of free space on each drive. This has risks, be careful, if you can backup first do so.
Example Partition table:
Model: ATA ST1000DM003-9YN1 (scsi)
Disk /dev/sdc: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number  Start   End     Size    File system  Name     Flags
 1      128MB   21.5GB  21.4GB   ext4        rootfs
 2      21.5GB  1000GB  979GB                primary  msftdata

Partition 1 is where you extract Bodhi’s rootfs and configure using his instructions (or copy your existing USB rootfs). Partition 2 is the existing mdadm raid / LVM volume.

Next write a working uImage and uInitrd to the unpartitioned space before partition 1, avoiding the GPT table. Make sure the dd is to the drive partitioned above!

/kernels# dd if=uImage of=/dev/sdc bs=1MiB seek=10
3+1 records in
3+1 records out
4171272 bytes (4.2 MB, 4.0 MiB) copied, 3.1455 s, 1.3 MB/s

/kernels# dd if=uInitrd of=/dev/sdc bs=1MiB seek=20
9+1 records in
9+1 records out
9762728 bytes (9.8 MB, 9.3 MiB) copied, 0.196305 s, 49.7 MB/s

Reboot into u-boot to load the images from the sata drive. Key here is in Eine’s guide the uInitrd was smaller, we need to change the ide read command to load the entire image into memory by setting the size to 0x4F00 (up from 0x4000).

The ide device command sets which drive is being read from, needed as this is a 2 drive NAS.

The imi command then confirms that the loaded image is complete.
U-Boot 1.1.4 (Oct 28 2011 - 15:19:29) Marvell version: 3.6.1 - EMC

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

Soc: 88F6282 A1 CPU running @ 1600Mhz L2 running @ 533Mhz
SysClock = 533Mhz , TClock = 200Mhz

DRAM (DDR3) CAS Latency = 7 tRP = 7 tRAS = 20 tRCD=7
DRAM CS[0] base 0x00000000   size 256MB
DRAM Total size 256MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:1024 MB
Found ADT7473, program PWM1 ... OK
Flash:  0 kB

Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode (6)
  Device 0 @ 0 0:
Model: ST2000DM001-1CH164                       Firm: CC26     Ser#:             Z2F0PEJZ
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
[0 1 0]: Enable DMA mode (6)
  Device 1 @ 0 1:
Model: ST1000DM003-9YN162                       Firm: CC9D     Ser#:             Z1D0F6TF
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)


CPU : Marvell Feroceon (Rev 1)
Found kernel at 0x100000
Found initrd at 0x400000

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
PEX 1: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0
Marvell>> ide device 1;ide read 0x2100000 0xA000 0x4F00

IDE device 1: Model: ST1000DM003-9YN162                       Firm: CC9D     Ser#:             Z1D0F6TF
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
... is now current device

IDE read: device 1 block # 40960, count 20224 ... 20224 blocks read: OK
Marvell>> imi 0x2100000

## Checking Image at 02100000 ...
   Image Name:   initramfs-4.18.4-kirkwood-tld-1
   Created:      2018-10-20  19:08:21 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9762664 Bytes =  9.3 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

If the images check out set bootcmd to load both the uImage and uInitrd and boot.
Marvell>> setenv bootcmd 'ide device 1; ide read 0x40000 0x5000 0x2000; ide read 0x2100000 0xA000 0x4F00; bootm 0x40000 0x2100000'
Marvell>> boot

IDE device 1: Model: ST1000DM003-9YN162                       Firm: CC9D     Ser#:             Z1D0F6TF
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
... is now current device

IDE read: device 1 block # 20480, count 8192 ... 8192 blocks read: OK

IDE read: device 1 block # 40960, count 20224 ... 20224 blocks read: OK
## Booting image at 00040000 ...
   Image Name:   Linux-4.18.4-kirkwood-tld-1
   Created:      2018-10-21   2:09:48 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4171208 Bytes =  4 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 02100000 ...
   Image Name:   initramfs-4.18.4-kirkwood-tld-1
   Created:      2018-10-20  19:08:21 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9762664 Bytes =  9.3 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

If all went to plan save the new bootcmd using fw_setenv in Debian, or write the new bootcmd from u-boot.

Enjoy your upgraded IX2-DL, all without needing any u-boot change.

Any questions let me know.
Thanks! added to the Wiki thread.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Some additional info;

Server Performance for the Ix2-DL on Debian Squeeze / Kernel 4.18;
- NFS ~65MB per second
- Samba ~63MB per second

That is around double the stock performance, see SNB Review

Format of the Flash boot partition is UBIFS, easily mounted using UBI Attach;
Dmesg of mounting
[ 2915.192097] ubi0: attaching mtd5
[ 2915.902529] ubi0: scanning is finished
[ 2915.918166] ubi0 warning: ubi_eba_init: cannot reserve enough PEBs for bad PEB handling, reserved 81, need 157
[ 2915.930989] ubi0: attached mtd5 (name "boot", size 1016 MiB)
[ 2915.937018] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
[ 2915.943928] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[ 2915.951180] ubi0: VID header offset: 512 (aligned 512), data offset: 2048
[ 2915.958955] ubi0: good PEBs: 8125, bad PEBs: 3, corrupted PEBs: 0
[ 2915.965269] ubi0: user volume: 1, internal volumes: 1, max. volumes count: 128
[ 2915.973484] ubi0: max/mean erase counter: 13/7, WL threshold: 4096, image sequence number: 0
[ 2915.982434] ubi0: available PEBs: 0, total reserved PEBs: 8125, PEBs reserved for bad PEB handling: 81
[ 2915.992009] ubi0: background thread "ubi_bgt0d" started, PID 3672
[ 3035.353687] UBIFS (ubi0:0): background thread "ubifs_bgt0_0" started, PID 3681
[ 3035.371253] UBIFS (ubi0:0): recovery needed
[ 3035.448165] UBIFS (ubi0:0): recovery completed
[ 3035.452716] UBIFS (ubi0:0): UBIFS: mounted UBI device 0, volume 0, name "boot"
[ 3035.460296] UBIFS (ubi0:0): LEB size: 129024 bytes (126 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 3035.470439] UBIFS (ubi0:0): FS size: 1035159552 bytes (987 MiB, 8023 LEBs), journal size 33546240 bytes (31 MiB, 260 LEBs)
[ 3035.481705] UBIFS (ubi0:0): reserved for root: 4952683 bytes (4836 KiB)
[ 3035.488519] UBIFS (ubi0:0): media format: w4/r0 (latest is w5/r0), UUID ED69950E-9378-442B-BA6C-7D1BA8FE474E, small LPT model



Edited 1 time(s). Last edit at 10/23/2018 04:13PM by jdwl101.
Further details on the ix2-dl should anyone need them, I've added some useful items to my Google Drive share;

- the recovery usb creator
- uboot GPL sources
- 'Lifeline' GPL sources
- ix2-dl specific DTB

Available here; IX2-DL software

I also have a copy of the images on the UBIFS flash, nothing particular of note that isn't explained in the posts above.
Lenovo ix2-NG/ not booting
March 31, 2020 03:33PM
hard drive defective and changed by new one .ix2-NG not booting.
_  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|  ** ix2-spi ** ** uboot_ver:0.0.8 **

 ** MARVELL BOARD: DB-88F6282A-BP LE

U-Boot 1.1.4 (Oct 28 2011 - 15:18:22) Marvell version: 3.6.1 - EMC

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

Soc: 88F6282 A1 CPU running @ 1600Mhz L2 running @ 533Mhz
SysClock = 533Mhz , TClock = 200Mhz

DRAM (DDR3) CAS Latency = 7 tRP = 7 tRAS = 20 tRCD=7
DRAM CS[0] base 0x00000000   size 256MB
DRAM Total size 256MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
Found ADT7473, program PWM1 ... OK
[1024kB@f8000000] Flash:  1 MB

Marvell Serial ATA Adapter
Integrated Sata device found
[0 1 0]: Enable DMA mode (6)
  Device 1 @ 0 1:
Model: ST4000DM000-1F2168                       Firm: CC54     Ser#:             Z307NL8Q
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1718295.8 MB = 1678.0 GB (-775897424 x 512)


CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
PEX 1: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0

IDE device 1: Model: ST4000DM000-1F2168                       Firm: CC54     Ser#:             Z307NL8Q
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1718295.8 MB = 1678.0 GB (-775897424 x 512)
... is now current device

IDE read: device 1 block # 20480, count 8192 ... 8192 blocks read: OK

IDE read: device 1 block # 40960, count 20224 ... 20224 blocks read: OK
## Booting image at 00040000 ...
Bad Magic Number
Marvell>> printenv
baudrate=115200
loads_echo=0
rootpath=/srv/ubuntu
run_diag=yes
MALLOC_len=1
ethprime=egiga0
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;
lcd0_enable=0
lcd0_params=640x480-16@60
ethmtu=1500
mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fxo
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
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
image_multi=yes
ethact=egiga0
console=console=ttyS0,115200
bootargs_root=root=/dev/ram0
bootargs_mtd=mtdparts=spi_flash:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2)
kernelimage=zImage
initrdimage=mfginitrd
mfgmodel=ix2
preroot_ver=0.0.2
uboot_ver=0.0.8
serial_number=5563Y01001G334002ABJ0D1
ethaddr=00:D0:B8:15:20:F3
serialNo=EUAD39006D
modelname=32041700
fw_ver=4.0.4.14600d
serialno=0,01T73RXmePA2CzsdqLnYn8jFkQf69Z9NHFKgVU7E4SgVrWmAkO1KSRjc+I52tewqHa,EUAD39006D,
runintime=10800
ftpserver=192.168.43.4
testfile=100M
mfgtest_state=system_tested_ok
pre_path=IX2/1.0.8/download_runin.sh
pre_path_conf=IX2/1.0.8/download_runin.conf
pre_serverip=192.168.32.4
pre_user=ixxrunin
pre_passwd=123
pre_dirzi=IX2/1.0.8
bootcmd2=ide dev 1;ide read 0x40000 0x800 0x1800; ide read 0x900000 0x2000 0x2000; bootm 0x40000 0x900000;
dnsip=192.168.1.1
arcNumber=1682
bootargs=console=ttyS0,115200 root=/dev/ram0 mtdparts=spi_flash:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2) :::DB88FXX81:eth0:none
filesize=2d4a40
fileaddr=5400000
gatewayip=192.168.1.1
netmask=255.255.255.0
ipaddr=192.168.1.12
serverip=192.168.1.10
bootargs_console=console=ttyS0,115200
mtdparts=orion_nand:0x300000@0x100000(zImage),0x1000000@0x540000(initrd)=root=/dev/mapper/debian--vg-root rootdelay=10
bootcmd=ide device 1; ide read 0x40000 0x5000 0x2000; ide read 0x2100000 0xA000 0x4F00; bootm 0x40000 0x2100000
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
enaAutoRecovery=yes
pcieTune=no
pcieTune1=no

Environment size: 2293/4091 bytes

Kindly advise

======
Moderatore edit: please use code tags (Formatted Code button) to post log.



Edited 1 time(s). Last edit at 03/31/2020 05:37PM by bodhi.
Re: Lenovo ix2-NG/ not booting
March 31, 2020 05:43PM
bootcmd=ide device 1; ide read 0x40000 0x5000 0x2000; ide read 0x2100000 0xA000 0x4F00; bootm 0x40000 0x2100000


IDE device 1: Model: ST4000DM000-1F2168                       Firm: CC54     Ser#:             Z307NL8Q
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1718295.8 MB = 1678.0 GB (-775897424 x 512)
... is now current device

IDE read: device 1 block # 20480, count 8192 ... 8192 blocks read: OK

IDE read: device 1 block # 40960, count 20224 ... 20224 blocks read: OK
## Booting image at 00040000 ...
Bad Magic Number

It looks OK to me, as far as the envs. So try writing uImage and uInitrd to the HDD sectors again.

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

I agree with Bodhi, try re-writing the kernel and image to the sectors.

Once they're written use imi command in uboot to test to make certain they're loading correctly.

If you're using different / more recent images they may be larger than mine and require revised load commands to load the whole image (most likely the initrd has grown).

Regards,
J
Hi guys, thanks for yoru contributins to this forum especially jdwl101 + bodi. Hoping you can help me. I'm trying to revive an old ix2dl without drives. Don't really have a use for it, but figured learning a bit would be neat prjoect and maybe repurpose this instead of it going to the recycler.
I tried following the guide and can't seem to get to boot from USB i'm using the 4.12 rootfs file.

I do this:
setenv load_initrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd'
setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
setenv usb_boot 'usb start; run load_uimage; run load_initrd; bootm 0x800000 0x2100000'
setenv bootargs 'console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:0x80000@0(uboot),0x20000@0xa0000(env),0x20000@0xc0000(env2),0x300000@0x100000(uImage),0x400000@0x400000(initrd),0x3f800000@0x800000(boot),1024m@0x0(flash) earlyprintk=serial'


Get teh following error:
## Booting image at 00040000 ...
Bad Magic Number


Full disclosure I really have no idea what I'm doing but willing to learn.
Hope you can help.


Below is the output of printenv. Any ideas?

Marvell>> printenv
baudrate=115200
loads_echo=0
rootpath=/srv/ubuntu
netmask=255.255.255.0
run_diag=yes
MALLOC_len=1
ethprime=egiga0
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;
lcd0_enable=0
lcd0_params=640x480-16@60
ethmtu=1500
mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fxo
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
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
image_multi=yes
ethact=egiga0
console=console=ttyS0,115200
bootargs_root=root=/dev/ram0
bootargs_mtd=mtdparts=spi_flash:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2)
kernelimage=zImage
initrdimage=mfginitrd
ipaddr=192.168.1.2
mfgmodel=ix2
preroot_ver=0.0.2
fw_ver=4.1.102.29716
uboot_ver=0.0.9
serial_number=5563Y01001G4440019DJ0E1
ethaddr=00:D0:B8:28:97:BF
serialNo=SM10G7863544900263
modelname=SM10G78635
serialno=0,01dXe59DvQHBvi1Ltw7XXd7EPAKFMaRQ9o1Zlb02InJQi3EvAUjktvxArc3IVNjXN+,SM10G7863544900263,
runintime=10800
ftpserver=192.168.43.4
testfile=100M
mfgtest_state=system_tested_ok
pre_path=IX2/1.1.1/download_runin.sh
pre_path_conf=IX2/1.1.1/download_runin.conf
pre_serverip=192.168.32.4
pre_user=ixxrunin
pre_passwd=123
pre_dirzi=IX2/1.1.1
serverip=192.168.32.4
bootcmd=ide reset; ide read 0x40000 0x800 0x1800; ide read 0x900000 0x2000 0x2000; setenv bootargs $(console) $(bootargs_root) $(bootargs_mtd) $(bootargs_end); bootm 0x40000 0x900000;run bo2
bootcmd2=ide dev 1;ide read 0x40000 0x800 0x1800; ide read 0x900000 0x2000 0x2000; bootm 0x40000 0x900000;
load_initrd=ext2load usb 0:1 0x2100000 /boot/uInitrd
load_uimage=ext2load usb 0:1 0x800000 /boot/uImage
usb_boot=usb start; run load_uimage; run load_initrd; bootm 0x800000 0x2100000
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=no
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
enaAutoRecovery=yes
pcieTune=no
pcieTune1=no
bootargs=console=ttyS0,115200 root=/dev/ram0 mtdparts=spi_flash:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2) :::DB88FXX81:eth0:none
ix2fbz,


Your bootcmd is currently:

bootcmd=ide reset; ide read 0x40000 0x800 0x1800; ide read 0x900000 0x2000 0x2000; setenv bootargs $(console) $(bootargs_root) $(bootargs_mtd) $(bootargs_end); bootm 0x40000 0x900000;run bo2

And you did
setenv load_initrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd' 
setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage' 
setenv usb_boot 'usb start; run load_uimage; run load_initrd; bootm 0x800000 0x2100000' 
setenv bootargs 'console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:0x80000@0(uboot),0x20000@0xa0000(env),0x20000@0xc0000(env2),0x300000@0x100000(uImage),0x400000@0x400000(initrd),0x3f800000@0x800000(boot),1024m@0x0(flash) earlyprintk=serial'

That was not enough. So try again

With the USB rootfs attached, interrupt serial console and run the same envs, but also need to modify bootcmd env:

setenv load_initrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd' 
setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage' 
setenv usb_boot 'usb start; run load_uimage; run load_initrd; bootm 0x800000 0x2100000' 
setenv bootargs 'console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:0x80000@0(uboot),0x20000@0xa0000(env),0x20000@0xc0000(env2),0x300000@0x100000(uImage),0x400000@0x400000(initrd),0x3f800000@0x800000(boot),1024m@0x0(flash) earlyprintk=serial'
setenv bootcmd 'run usb_boot; ide reset; ide read 0x40000 0x800 0x1800; ide read 0x900000 0x2000 0x2000; setenv bootargs $(console) $(bootargs_root) $(bootargs_mtd) $(bootargs_end); bootm 0x40000 0x900000'

And then
boot

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
You're a legend bodhi! Thanks for your help. It boots off USB now.

I'm getting the following error:
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!


I feel like the first time it booted it went further than this. I tried extending the rootdelay (20s) but this ddin't help. I must be doing something incorrectly creating the rootfs usb stick?
ix2fbz,

That error usually inidicates that the rootfs partition was not labeled as rootfs.

So mount the USB rootfs on another Linux box. Assuming it is assigned as /dev/sdb1,

Check if the label was actually rootfs
e2label /dev/sdb1
If not, set it

e2label /dev/sdb1 rootfs
sync
And then try booting again.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
thanks bodhi! USB booting working like a charm!

Trying to figure out IDE booting now.

In my limited understanding dd'd the usb drive I created to spare HD i had a round. I created an ext2 20gb partition and named it rootfs.

Then I tried via tty to boot from this:


setenv load_initrd 'ext2load ide 0:1 0x2100000 /boot/uInitrd' 
setenv load_uimage 'ext2load ide 0:1 0x800000 /boot/uImage' 
setenv ide_boot 'run load_uimage; run load_initrd; bootm 0x800000 0x2100000' 
setenv bootargs 'console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:0x80000@0(uboot),0x20000@0xa0000(env),0x20000@0xc0000(env2),0x300000@0x100000(uImage),0x400000@0x400000(initrd),0x3f800000@0x800000(boot),1024m@0x0(flash) earlyprintk=serial'
setenv bootcmd 'run ide_boot; ide reset; ide read 0x40000 0x800 0x1800; ide read 0x900000 0x2000 0x2000; setenv bootargs $(console) $(bootargs_root) $(bootargs_mtd) $(bootargs_end); bootm 0x40000 0x900000'

then run boot

Problem is I get a bad partiion then badmagic number error.
In debian I can mount the drive and view the files. Could the dd method of duplicating the usb drive be the problem?

Reset IDE: 
Marvell Serial ATA Adapter
Integrated Sata device found
[0 1 0]: Enable DMA mode (5)
  Device 1 @ 0 1:
Model: Hitachi HTS541612J9SA00                  Firm: SBDOC7HP Ser#:       SB2581L6G6S15E
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 114473.4 MB = 111.7 GB (234441648 x 512)

** Bad partition 1 **
** Bad partition 1 **
## Booting image at 00800000 ...
Bad Magic Number

IDE read: device 1 block # 2048, count 6144 ... 6144 blocks read: OK

IDE read: device 1 block # 8192, count 8192 ... 8192 blocks read: OK
## Booting image at 00040000 ...
Bad Magic Number

ix2fbz,

In the Wiki


Quote

Booting Debian on Pogoplug

How to set up U-Boot for booting in multiple drives configuration
Backup and Restore NAND mtds
UART Booting HowTo for Selected Kirkwood Devices
Migrating from Arch to Debian?
How to boot new Debian rootfs using stock u-boot tftp - Pogo E02
How to boot new Debian rootfs on USB using stock u-boot - NSA325
How to boot Debian rootfs on a GPT HDD with stock u-boot (kernel files stored in HDD raw sector), 2nd HowTo post
How to boot Pogo V3 from SATA (to unbrick), 2nd How to Post
How to install U-Boot for Pogoplug V3 (OXNAS OX820) from OpenWRT
Boot Kirkwood rootfs with stock u-boot


Point back to this thread. This post was written by jdwl101:

https://forum.doozan.com/read.php?2,70294,70794#msg-70794

If you still have problem booting wiht HDD, then post the log of the HDD rootfs creation session, how the sectors were prepared..... and boot log. Basically, post everything here.

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



Edited 2 time(s). Last edit at 01/09/2021 03:55PM by bodhi.
Hi ix2fbz,

Using dd to copy your usb to the hard disk is unlikely to work, create a new partition and create a new rootfs on it, using the original archive.

You can copy a rootfs - there are some instructions in the wiki post - but I'd suggest starting fresh.

Also, to start the hard disk booting first try loading the kernel and initrd from your usb drive before going full hard disk booting. This will eliminate issues 1 at a time.

Cheers,
J
good day,

i hope this is the right place to ask a maybe stupid question, which I cannot find easily an answer for by scrolling through all these threads.
I have a working iomega ix2-ng and a spare iomega ix2-ng, which i would like to use with full Debian.
Is a serial connection/jtag needed to set this up ? Can it be done without, by preparing on another linux pc the disk and inserting it into the ix2-ng ? if the latter is true, how to prepare the image ( i guess the partition labelled rootfs) so that it will allow ssh / telnet connectivity to take over control ?

thank you
sverfaillie,

> I have a working iomega ix2-ng and a spare iomega
> ix2-ng, which i would like to use with full
> Debian.
> Is a serial connection/jtag needed to set this up
> ?

Yes. Since jdwl101 started with serial console, the instruction is based on that.

To write an installation procedure starting from inside stock OS, jdwl101 or somebody needs to go back to stock and test that. So it is not available.

After you got it booted with Debian rootfs, then SSH in as usual.

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

As Bodhi said a serial console is really needed for the ix2. You need to be able to see what happens as it runs through uboot. That said, the serial pins are present on the board so it is very easy to connect to.

While it could be possible to make the required uboot changes from the default OS, I wasn't able to get that to work due to limitations in the default set up and you may be left with a box that won't boot anything.

If you use my instructions it should be straightforward to get it running. Start with usb first. These boxes are pretty quick and useful once the factory software is replaced.

Also, you will need to prepare a debian usb stick on another linux box. Bodhi's instructions are pretty straightforward.

Happy to answer any questions you have.
Dear Bodhi and jdwl101,

I am now trying to boot from HDD and with a lot of trying finally getting it working
everything worked out fine, even the image gave OK check. Till that point of removing the usb and then set the env and boot with this:

setenv bootcmd 'ide device 1; ide read 0x40000 0x5000 0x2000; ide read 0x2100000 0xA000 0x4F00; bootm 0x40000 0x2100000'

it gave me a fail on check of the linux kernel and didn't wanna start. I was reading here

i checked the ide read of another post here and they where different so i tried those:

setenv bootcmd 'run usb_boot; ide reset; ide read 0x40000 0x800 0x1800; ide read 0x900000 0x2000 0x2000; setenv bootargs $(console) $(bootargs_root) $(bootargs_mtd) $(bootargs_end); bootm 0x40000 0x900000'

with this i made myowne setenv command:

setenv bootcmd 'ide device 1; ide read 0x40000 0x800 0x1800; ide read 0x2100000 0xA000 0x4F00; bootm 0x40000 0x900000'

With this command and then boot it started from HDD opened the initfs and the kernel., but then something strange happened:



Marvell>> setenv bootcmd 'ide device 1; ide read 0x40000 0x800 0x1800; ide read 0x2100000 0xA000 0x4F00; bootm 0x40000 0x900000'
Marvell>> boot

IDE device 1: Model: ST2000DM001-9YN164 Firm: CC4B Ser#: W1E1V2AX
Type: Hard Disk
Supports 48-bit addressing
Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)
... is now current device

IDE read: device 1 block # 2048, count 6144 ... 6144 blocks read: OK

IDE read: device 1 block # 40960, count 20224 ... 20224 blocks read: OK
## Booting image at 00040000 ...
Image Name: Linux-2.6.31.8
Created: 2019-06-17 12:13:03 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2502832 Bytes = 2.4 MB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 00900000 ...
Image Name:
Created: 2019-06-17 12:44:09 UTC
Image Type: ARM Linux RAMDisk Image (bzip2 compressed)
Data Size: 2982113 Bytes = 2.8 MB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK

Starting kernel ...

Linux version 2.6.31.8 (soho@bsoho088.iomegacorp.com) (gcc version 4.7.2 (crosstool-NG 1.20.0) ) Mon Jun 17 08:12:59 EDT 2019 v0.0.9 Mon Jun 17 08:12:59 EDT 2019
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
CPU: VIVT data cache, VIVT instruction cache
Machine: Feroceon-KW
Using UBoot passing parameters structure
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping off. Total pages: 64960
Kernel command line: console=ttyS0,115200
PID hash table entries: 1024 (order: 10, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 256MB = 256MB total
Memory: 244352KB available (4592K code, 365K data, 136K init, 0K highmem)
Hierarchical RCU implementation.
NR_IRQS:128
Console: colour dummy device 80x30
Calibrating delay loop... 1589.24 BogoMIPS (lpj=7946240)
Security Framework initialized
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
xor: measuring software checksum speed
arm4regs : 1447.200 MB/sec
8regs : 867.600 MB/sec
32regs : 1120.800 MB/sec
xor: using function: arm4regs (1447.200 MB/sec)
NET: Registered protocol family 16
Feroceon L2: Enabling L2
Feroceon L2: Cache support initialised.

CPU Interface
-------------
SDRAM_CS0 ....base 00000000, size 256MB
SDRAM_CS1 ....disable
SDRAM_CS2 ....disable
SDRAM_CS3 ....disable
PEX0_MEM ....base e0000000, size 128MB
PEX0_IO ....base f2000000, size 1MB
PEX1_MEM ....base e8000000, size 128MB
PEX1_IO ....base f2100000, size 1MB
INTER_REGS ....base f1000000, size 1MB
NFLASH_CS ....base fa000000, size 2MB
SPI_CS ....base f4000000, size 16MB
BOOT_ROM_CS ....no such
DEV_BOOTCS ....no such
CRYPT_ENG ....base f0000000, size 2MB

Marvell Development Board (LSP Version KW_LSP_5.1.3_patch25)-- DB-88F6282A-BP Soc: 88F6282 A1 LE

Detected Tclk 200000000 and SysClk 533333333
MV Buttons Device Load
Marvell USB EHCI Host controller #0: c8040740
PEX0 interface detected no Link.
PEX1 interface detected no Link.
PCI: bus0: Fast back to back transfers enabled
PCI: bus1: Fast back to back transfers enabled
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
raid6: int32x1 142 MB/s
raid6: int32x2 166 MB/s
raid6: int32x4 166 MB/s
raid6: int32x8 162 MB/s
raid6: using algorithm int32x4 (166 MB/s)
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
NET: Registered protocol family 1
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 2912K
rtc mv_rtc: rtc core: registered kw-rtc as rtc0
RTC registered
XOR registered 4 channels
XOR 2nd invalidate WA enabled
cesadev_init(c000ed58)
mvCesaInit: sessions=640, queue=64, pSram=f0000000
MV Buttons Driver Load
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering unionfs 2.5.11 (for 2.6.31.14)
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
msgmni has been set to 483
alg: No test for cipher_null (cipher_null-generic)
alg: No test for ecb(cipher_null) (ecb-cipher_null)
alg: No test for digest_null (digest_null-generic)
alg: No test for compress_null (compress_null-generic)
alg: No test for stdrng (krng)
alg: No test for hmac(digest_null) (hmac(digest_null-generic))
async_tx: api initialized (sync-only)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered
io scheduler anticipatory registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012100 (irq = 34) is a 16550A
console [ttyS0] enabled
brd: module loaded
loop: module loaded
Integrated Sata device found
IRQ 21/mvSata: IRQF_DISABLED is not guaranteed on shared IRQs
scsi0 : Marvell SCSI to SATA adapter
scsi1 : Marvell SCSI to SATA adapter
scsi 0:0:0:0: Direct-Access Seagate ST2000DM001-9YN1 CC4B PQ: 0 ANSI: 5
scsi 1:0:0:0: Direct-Access Seagate ST2000DM001-9YN1 CC4B PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] Sector size 0 reported, assuming 512.
sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
sd 0:0:0:0: [sda] 0-byte physical blocks
sd 1:0:0:0: [sdb] Sector size 0 reported, assuming 512.
sd 1:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
sd 1:0:0:0: [sdb] 0-byte physical blocks
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, supports DPO and FUA
sd 0:0:0:0: [sda] Sector size 0 reported, assuming 512.
sd 1:0:0:0: [sdb] Write Protect is off
sd 1:0:0:0: Attached scsi generic sg1 type 0
Loading Marvell Ethernet Driver:
o Cached descriptors in DRAM
o DRAM SW cache-coherency
o 2 Giga ports supported
o Single RX Queue support - ETH_DEF_RXQ=0
o Single TX Queue support - ETH_DEF_TXQ=0
o TCP segmentation offload (TSO) supported
o Large Receive offload (LRO) supported
o Receive checksum offload supported
o Transmit checksum offload supported
o Proc tool API enabled
o Rx descripors: q0=256
o Tx descripors: q0=532
o Loading network interface(s):
o register under mv88fx_eth platform
sda:
sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, supports DPO and FUA
sd 1:0:0:0: [sdb] Sector size 0 reported, assuming 512.
o eth0, ifindex = 2, GbE port = 0

Warning: Giga 1 is Powered Off

tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
SPI Serial flash detected @ 0xf4000000, 1024KB (256sec x 4KB)
sdb:Using Hamming 1-bit ECC for NAND device
No NAND device found!!!
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_marvell ehci_marvell.70059: Marvell Orion EHCI
ehci_marvell ehci_marvell.70059: new USB bus registered, assigned bus number 1
ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100
sdb1 sdb2
sd 1:0:0:0: [sdb] Sector size 0 reported, assuming 512.
sd 1:0:0:0: [sdb] Attached SCSI disk
ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
usbcore: registered new interface driver usblp
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
usbcore: registered new interface driver ums-usbat
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
adt7473 0-002e: adt7473 chip found
iBoard_model 2
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-devel@redhat.com
dm_crypt using the OCF package.
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
NET: Registered protocol family 17
NET: Registered protocol family 5
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
rtc mv_rtc: setting system clock to 2021-05-09 04:48:48 UTC (1620535728)
sda1 sda2
sd 0:0:0:0: [sda] Sector size 0 reported, assuming 512.
sd 0:0:0:0: [sda] Attached SCSI disk
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
RAMDISK: bzip2 image found at block 0
EXT2-fs warning: checktime reached, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem) on device 1:0.
Looking for shell in cmdline: console=ttyS0,115200
Make node for mtd devices
HDD /dev/sda detected
HDD /dev/sdb detected
sh: mtd5: unknown operand
Create fw_env.config in /etc
Can't open /dev/mtd1: No such device
Model name is ix2-ng
mdadm: No brief listing for mbr on /dev/sda1
Valid Disk 1 in md0:
Valid Disk 2 in md0:
USB Device node is /dev/sdc1
Checking to see the if the reset button is pressed or not
Checking for valid image on system
mdadm: /dev/md0 not identified in config file.
mdadm: md device /dev/md0 does not appear to be md: md0 stopped.
active.
mdadm: stopped /dev/md0
mdadm: /dev/md0 not identified in config file.
No volume groups found
e2fsck 1.42.5 (29-Jul-2012)
ext2fs_check_if_mount: Can't check if filesystem is mounted due to missing mtab file while determining whether /dev/md0_vg/BFDlv is mounted.
e2fsck: No such file or directory while trying to open /dev/md0_vg/BFDlv
Possibly non-existent device?
mount: mounting /dev/md0_vg/BFDlv on sysroot/boot failed: No such file or directory
umount: can't umount /sysroot/boot: Invalid argument
Checking if there is an attached EMC Imager
mount: mounting /dev/sdc1 on /usb_drive failed: No such device or address
sh: bad number
No USB Imager and No valid image on system
Going in to Network Imaging Mode
umount: can't umount /dev/md0: Invalid argument
umount: can't umount /usb_drive: Invalid argument
umount: can't umount /sysroot/boot: Invalid argument
Enable Network eth0
eth0: link down
eth0: started
eth0: link up, full duplex, speed 1 Gbps
udhcpc (v1.21.0) started
Sending discover...
Sending select for 192.168.0.229...
Lease of 192.168.0.229 obtained, lease time 604800
deleting routers
route: ioctl 0x890c failed: No such process
adding dns 192.168.0.100
eth0 Link encap:Ethernet HWaddr 00:D0:B8:1D:E8:DF
inet addr:192.168.0.229 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:14 errors:0 dropped:0 overruns:0 frame:0
TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:532
RX bytes:1538 (1.5 KiB) TX bytes:992 (992.0 B)
Interrupt:11

mknod: /dev/zero: File exists
No need to create fw_env.config
Can't open /dev/mtd1: No such device
mac address is 00:D0:B8:1D:E8:DF
Device Serial Num is 00D0B81DE8DF
Device Model- ix2-ng
DEPP Client version: 1.02
INITRD Build version: 4.1.408.34845
Device: Socket Listening on: 2081
Mac address = 00:d0:b8:1d:e8:df
Device: Sent a broadcast packet

Device: Waiting for Hello Response...
No response received
Device: Going to send a broadcast again

Mac address = 00:d0:b8:1d:e8:df
Device: Sent a broadcast packet

Device: Waiting for Hello Response...
No response received
Device: Going to send a broadcast again

Mac address = 00:d0:b8:1d:e8:df
Device: Sent a broadcast packet

And this never stops. I even cannot get a reset or nothing only powering off helps.
I tried to look on internet for help but couldn't find any anwser.

I hope that one of you can help me with this.

Many many thanks in advanced special Bodhi for helping me out to get USB flawlessly working.
You are booting a version 2.6 kernel, looks to be stock. That is not going to work.

Follow my instructions to the letter and write a modern kernel to the drive sectors, that will be able to boot bodhi’s rootfs
Hi ;

I'm new to all this and seem to be missing the big picture.

Is the goal of these changes to create a new system for the ix2-dl software to run better on, or to just replace it all and get a piece of random hardware to run some form of Linux ?
Dave,

This forum is about running the latest Linux kernel and Debian system on old hardware (you can buy those for a really low price comparing to what it was when these boxes first release).

Keeping them from becoming e-waste. And make it possible for someone to spend less than 20 USD to have a box with latest Linux SW to play with. The Lenovo ix2-dl is just one among many.

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



Edited 1 time(s). Last edit at 11/19/2021 03:17PM by bodhi.
That's what i thought. Thanks for the reply.

I was hoping to be able to revive one with issues I picked up for $10 as just the NAS device it is, but everything I try fails or makes it get bricked worse it seems.

I'd like to try the steps to upgrade it and load OpenMediaVault, but think if I tried it now with it not working ' stock ' I may irreversibly brick it and it will become e-waste.

It seems to make it through the U-Boot OK and eventually brings up the Debian login. And sits there forever at that point. I am at a loss after trying this, trying that for days. I get another idea, try it, and fail again. I tried the Lenovo imager and it doesn't seem to even read it.

If anyone more experienced than me has a spare minute, could you point me in the right direction ? The boot below was with 1 clean SATA drive in hdd2 position and no usb pen drive and no reset button pushed. Thanks in advance for any insight any of you may have.


__  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|  ** ix2-nand ** ** uboot_ver:0.0.8 **

 ** MARVELL BOARD: DB-88F6282A-BP LE

U-Boot 1.1.4 (Oct 28 2011 - 15:19:29) Marvell version: 3.6.1 - EMC

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

Soc: 88F6282 A1 CPU running @ 1600Mhz L2 running @ 533Mhz
SysClock = 533Mhz , TClock = 200Mhz

DRAM (DDR3) CAS Latency = 7 tRP = 7 tRAS = 20 tRCD=7
DRAM CS[0] base 0x00000000   size 256MB
DRAM Total size 256MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:1024 MB
Found ADT7473, program PWM1 ... OK
Flash:  0 kB

Marvell Serial ATA Adapter
Integrated Sata device found
[0 1 0]: Enable DMA mode (6)
  Device 1 @ 0 1:
Model: SEAGATE ST95000NSSUN500G 1037M1XM2C      Firm:     SF03 Ser#: 9SP1XM2C   
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)


CPU : Marvell Feroceon (Rev 1)
Found kernel at 0x100000
Found initrd at 0x400000

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
PEX 1: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0

NAND read: device 0 offset 0x100000, size 0x300000

Reading data from 0x3ff800 -- 100% complete.
 3145728 bytes read: OK

NAND read: device 0 offset 0x400000, size 0x400000

Reading data from 0x7ff800 -- 100% complete.
 4194304 bytes read: OK
## Booting image at 00040000 ...
   Image Name:   Linux-2.6.31.8
   Created:      2019-06-17  12:13:03 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2502832 Bytes =  2.4 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 00900000 ...
   Image Name:
   Created:      2019-06-17  12:44:09 UTC
   Image Type:   ARM Linux RAMDisk Image (bzip2 compressed)
   Data Size:    2982113 Bytes =  2.8 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Linux version 2.6.31.8 (soho@bsoho088.iomegacorp.com) (gcc version 4.7.2 (crosstool-NG 1.20.0) ) Mon Jun 17 08:12:59 EDT 2019 v0.0.9 Mon Jun 17 08:12:59 EDT 2019
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
CPU: VIVT data cache, VIVT instruction cache
Machine: Feroceon-KW
Using UBoot passing parameters structure
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 64960
Kernel command line: console=ttyS0,115200 root=/dev/ram0 :::DB88FXX81:eth0:none mtdparts=nand_mtd:0x80000@0(uboot),0x20000@0xa0000(env),0x20000@0xc0000(env2),0x300000@0x100000(uImage),0x400000@0x400000(initrd),0x3f800000@0x800000(boot),1024m@0x0(flash)
PID hash table entries: 1024 (order: 10, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 256MB = 256MB total
Memory: 244352KB available (4592K code, 365K data, 136K init, 0K highmem)
Hierarchical RCU implementation.
NR_IRQS:128
Console: colour dummy device 80x30
Calibrating delay loop... 1589.24 BogoMIPS (lpj=7946240)
Security Framework initialized
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
xor: measuring software checksum speed
   arm4regs  :  1447.200 MB/sec
   8regs     :   867.600 MB/sec
   32regs    :  1120.400 MB/sec
xor: using function: arm4regs (1447.200 MB/sec)
NET: Registered protocol family 16
Feroceon L2: Enabling L2
Feroceon L2: Cache support initialised.

CPU Interface
-------------
SDRAM_CS0 ....base 00000000, size 256MB
SDRAM_CS1 ....disable
SDRAM_CS2 ....disable
SDRAM_CS3 ....disable
PEX0_MEM ....base e0000000, size 128MB
PEX0_IO ....base f2000000, size   1MB
PEX1_MEM ....base e8000000, size 128MB
PEX1_IO ....base f2100000, size   1MB
INTER_REGS ....base f1000000, size   1MB
NFLASH_CS ....base fa000000, size   2MB
SPI_CS ....base f4000000, size  16MB
BOOT_ROM_CS ....no such
DEV_BOOTCS ....no such
CRYPT_ENG ....base f0000000, size   2MB

  Marvell Development Board (LSP Version KW_LSP_5.1.3_patch25)-- DB-88F6282A-BP  Soc: 88F6282 A1 LE

 Detected Tclk 200000000 and SysClk 533333333
MV Buttons Device Load
Marvell USB EHCI Host controller #0: c8040740
PEX0 interface detected no Link.
PEX1 interface detected no Link.
PCI: bus0: Fast back to back transfers enabled
PCI: bus1: Fast back to back transfers enabled
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
raid6: int32x1    125 MB/s
raid6: int32x2    157 MB/s
raid6: int32x4    162 MB/s
raid6: int32x8    159 MB/s
raid6: using algorithm int32x4 (162 MB/s)
NET: Registered protocol family 2
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
NET: Registered protocol family 1
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 2912K
rtc mv_rtc: rtc core: registered kw-rtc as rtc0
RTC registered
XOR registered 4 channels
XOR 2nd invalidate WA enabled
cesadev_init(c000ed58)
mvCesaInit: sessions=640, queue=64, pSram=f0000000
MV Buttons Driver Load
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering unionfs 2.5.11 (for 2.6.31.14)
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
msgmni has been set to 483
alg: No test for cipher_null (cipher_null-generic)
alg: No test for ecb(cipher_null) (ecb-cipher_null)
alg: No test for digest_null (digest_null-generic)
alg: No test for compress_null (compress_null-generic)
alg: No test for stdrng (krng)
alg: No test for hmac(digest_null) (hmac(digest_null-generic))
async_tx: api initialized (sync-only)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered
io scheduler anticipatory registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012100 (irq = 34) is a 16550A
console [ttyS0] enabled
brd: module loaded
loop: module loaded
Integrated Sata device found
IRQ 21/mvSata: IRQF_DISABLED is not guaranteed on shared IRQs
scsi0 : Marvell SCSI to SATA adapter
scsi1 : Marvell SCSI to SATA adapter
scsi 1:0:0:0: Direct-Access     SEAGATE  ST95000NSSUN500G      PQ: 0 ANSI: 5
sd 1:0:0:0: [sda] Sector size 0 reported, assuming 512.
sd 1:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/465 GiB)
sd 1:0:0:0: [sda] 0-byte physical blocks
sd 1:0:0:0: Attached scsi generic sg0 type 0
sd 1:0:0:0: [sda] Write Protect is off
Loading Marvell Ethernet Driver:
  o Cached descriptors in DRAM
  o DRAM SW cache-coherency
  o 2 Giga ports supported
  o Single RX Queue support - ETH_DEF_RXQ=0
  o Single TX Queue support - ETH_DEF_TXQ=0
  o TCP segmentation offload (TSO) supported
  o Large Receive offload (LRO) supported
  o Receive checksum offload supported
  o Transmit checksum offload supported
  o Proc tool API enabled
  o Rx descripors: q0=256
  o Tx descripors: q0=532
  o Loading network interface(s):
     o register under mv88fx_eth platform
     o eth0, ifindex = 2, GbE port = 0

Warning: Giga 1 is Powered Off

tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, supports DPO and FUA
sd 1:0:0:0: [sda] Sector size 0 reported, assuming 512.
mvSFlashInit ERROR: Unknown SPI flash device!
ERROR: sflash_probe - Failed to initialize the SFlash.Using Hamming 1-bit ECC for NAND device
NAND flash model -> K9K8G08U0D.
NAND device: Manufacturer ID: 0xec, Chip ID: 0xd3 (Samsung NAND 1GiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 5037 at 0x0000275a0000
Bad eraseblock 7893 at 0x00003daa0000
Bad eraseblock 7895 at 0x00003dae0000
7 cmdlinepart partitions found on MTD device nand_mtd
Using command line partition definition
Creating 7 MTD partitions on "nand_mtd":
0x000000000000-0x000000080000 : "uboot"
0x0000000a0000-0x0000000c0000 : "env"
0x0000000c0000-0x0000000e0000 : "env2"
 sda:
0x000000100000-0x000000400000 : "uImage"
0x000000400000-0x000000800000 : "initrd"
 unknown partition table
sd 1:0:0:0: [sda] Sector size 0 reported, assuming 512.
0x000000800000-0x000040000000 : "boot"
0x000000000000-0x000040000000 : "flash"
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_marvell ehci_marvell.70059: Marvell Orion EHCI
ehci_marvell ehci_marvell.70059: new USB bus registered, assigned bus number 1
sd 1:0:0:0: [sda] Attached SCSI disk
ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100
ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
uhci_hcd: USB Universal Host Controller Interface driver
usbcore: registered new interface driver usblp
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
usbcore: registered new interface driver ums-usbat
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
adt7473 0-002e: adt7473 chip found
iBoard_model 2
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-devel@redhat.com
dm_crypt using the OCF package.
usbcore: registered new interface driver hiddev
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
TCP cubic registered
NET: Registered protocol family 17
NET: Registered protocol family 5
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
rtc mv_rtc: setting system clock to 2099-09-06 18:54:21 UTC (4092404061)
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
RAMDISK: bzip2 image found at block 0
EXT2-fs warning: checktime reached, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem) on device 1:0.
Looking for shell in cmdline: console=ttyS0,115200 root=/dev/ram0 :::DB88FXX81:eth0:none mtdparts=nand_mtd:0x80000@0(uboot),0x20000@0xa0000(env),0x20000@0xc0000(env2),0x300000@0x100000(uImage),0x400000@0x400000(initrd),0x3f800000@0x800000(boot),1024m@0x0(flash)
Make node for mtd devices
HDD /dev/sda detected
cat: can't open '/sys/class/block/sdb/removable': No such file or directory
FLASH based system detected
Create fw_env.config in /etc
Model name is ix2-ng
UBI: attaching mtd5 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    129024 bytes
UBI: smallest flash I/O unit:    2048
UBI: sub-page size:              512
UBI: VID header offset:          512 (aligned 512)
UBI: data offset:                2048
UBI: attached mtd5 to ubi0
UBI: MTD device name:            "boot"
UBI: MTD device size:            1016 MiB
UBI: number of good PEBs:        8125
UBI: number of bad PEBs:         3
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: available PEBs:             0
UBI: total number of reserved PEBs: 8125
UBI: number of PEBs reserved for bad PEB handling: 81
UBI: max/mean erase counter: 22/19
UBI: image sequence number: 0
UBI: background thread "ubi_bgt0d" started, PID 614
UBI device number 0, total 8125 LEBs (1048320000 bytes, 999.8 MiB), available 0 LEBs (0 bytes), LEB size 129024 bytes (126.0 KiB)
mdadm: cannot open /dev/sda1: No such device or address
cat: can't open '/sys/class/block/sda/sda1/size': No such file or directory
mdadm: No devices to examine
cat: can't open '/sys/class/block///size': No such file or directory
Valid Disk 1 in md0:
Valid Disk 2 in md0:
USB Device node is /dev/sdb1
Checking to see the if the reset button is pressed or not
Checking for valid image on system
UBIFS: recovery needed
UBIFS: recovery completed
UBIFS: mounted UBI device 0, volume 0, name "boot"
UBIFS: file system size:   1035159552 bytes (1010898 KiB, 987 MiB, 8023 LEBs)
UBIFS: journal size:       33546240 bytes (32760 KiB, 31 MiB, 260 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: lzo
UBIFS: reserved for root:  4952683 bytes (4836 KiB)
md: md0 stopped.
mdadm: stopped /dev/md0
mdadm: /dev/md0 not identified in config file.
  No volume groups found
Mount BFDlv to /mnt/boot on ix2-ng NAND
e2fsck 1.42.5 (29-Jul-2012)
ext2fs_check_if_mount: Can't check if filesystem is mounted due to missing mtab file while determining whether /dev/md0_vg/BFDlv is mounted.
e2fsck: No such file or directory while trying to open /dev/md0_vg/BFDlv
Possibly non-existent device?
mount: mounting /dev/md0_vg/BFDlv on sysroot/mnt/boot failed: No such file or directory
Copy dev node to /sysroot/dev
Found Valid EMC Image in disk...
Mounting apps image...
Mounting config image...
Check config filesystem
e2fsck 1.42.5 (29-Jul-2012)
ext2fs_check_if_mount: Can't check if filesystem is mounted due to missing mtab file while determining whether /dev/loop1 is mounted.
Copying System.map...
No need to create fw_env.config
No need to create fw_env.config
Constructing root filesystem...
Bootstrapping ...
rootdir=/
table='/usr/local/cfg/device_tunionfs: new lower inode ctime (bindex=1, name=/)
able.txt'
makedevs: line 42: chown failed for /bin/busyboxunionfs: new lower inode ctime (bindex=1, name=if-up.d)
: Read-only fileunionfs: new lower inode ctime (bindex=1, name=if-pre-up.d)
 system
unionfs: new lower inode ctime (bindex=1, name=if-down.d)
unionfs: new lower inode ctime (bindex=1, name=if-post-down.d)
makedevs: line 49: regular file '/usr/share/udhcpc/default.script' does not exist: No such file or directory
makedevs: line 55: Couldnt create node /dev/null: File exists
makedevs: line 56: Couldnt create node /dev/zero: File exists
makedevs: line 58: Couldnt create node /dev/urandom: File exists
makedevs: line 61: Couldnt create node /dev/loop0: File exists
makedevs: line 61: Couldnt create node /dev/loop1: File exists
makedevs: line 61: Couldnt create node /dev/loop2: File exists
makedevs: line 64: Couldnt create node /dev/console: File exists
makedevs: line 66: Couldnt create node /dev/tty2: File exists
makedevs: line 66: Couldnt create node /dev/tty3: File exists
makedevs: line 66: Couldnt create node /dev/tty4: File exists
makedevs: line 71: Couldnt create node /dev/ttyS0: File exists
makedevs: line 71: Couldnt create node /dev/ttyS1: File exists
makedevs: line 86: Couldnt create node /dev/mtd0: File exists
makedevs: line 86: Couldnt create node /dev/mtd1: File exists
makedevs: line 86: Couldnt create node /dev/mtd2: File exists
makedevs: line 86: Couldnt create node /dev/mtd3: File exists
makedevs: line 86: Couldnt create node /dev/mtd4: File exists
makedevs: line 86: Couldnt create node /dev/mtd5: File exists
makedevs: line 123: Couldnt create node /dev/sda: File exists
makedevs: line 124: Couldnt create node /dev/sda1: File exists
makedevs: line 125: Couldnt create node /dev/sdb: File exists
makedevs: line 126: Couldnt create node /dev/sdb1: File exists
makedevs: line 127: Couldnt create node /dev/sdc: File exists
makedevs: line 128: Couldnt create node /dev/sdc1: File exists
makedevs: line 190: Couldnt create node /dev/md0: File exists
makedevs: line 191: Couldnt create node /dev/md1: File exists
warning: failed to read mtab
Loading ext4...
Loading xfs...
SGI XFS with ACLs, security attributes, large block/inode numbers, no debug enabled
SGI XFS Quota Management subsystem
Loading isofs...
Loading udf...
Loading ufsd...
ufsd: module license 'Commercial product' taints kernel.
Disabling lock debugging due to kernel taint
ufsd: driver 8.5 (Jun 17 2019 08:30:02) LBD=ON with delayalloc with ioctl loaded at bf102000
NTFS support included
Hfs+/HfsX support included
Built for: EMC_ix2_2Loading btusb...

Bluetooth: Core ver 2.15
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: Generic Bluetooth USB driver ver 0.5
usbcore: registered new interface driver btusb
## Error: "hwdata" not defined
Initialization complete.
Freeing init memory: 136K
INIT: version 2.88 booting
INIT: /etc/inittab[63]: missing action field
Running file /etc/init.d/rcS
Running file /etc/init.d/rc
Running file /etc/rcS.d/S02hostname.sh
Running file /etc/rcS.d/S02mountkernfs.sh
[FAIL] udev requires a kernel >= 2.6.32, not started ... failed!
 failed!
Running file /etc/rcS.d/S04mountdevsubfs.sh
Running file /etc/rcS.d/S07hdparm
[ ok ] Setting parameters of disc: (none).
Running file /etc/rcS.d/S11hwclock.sh
[info] Setting the system clock.
hwclock: The Hardware Clock does not contain a valid time, so we cannot set the System Time from it.
Unable to set system clock.
[warn] Unable to set System Clock to: Thu Aug 1 12:26:32 UTC 1963 ... (warning).
Running file /etc/rcS.d/S12mtab.sh
Running file /etc/init.d/mountkernfs.sh
Running file /etc/init.d/mountkernfs.sh
Running file /etc/init.d/mountdevsubfs.sh
Running file /etc/init.d/mountdevsubfs.sh
Running file /etc/rcS.d/S30checkfs.sh
[ ok ] Activating lvm and md swap...done.
[....] Checking file systems...fsck 1.42.5 (29-Jul-2012)
done.
Running file /etc/rcS.d/S30procps
[....] Setting kernel variables ...Running file /etc/rcS.d/S35mountall.sh
[ ok ] Mounting local filesystems...done.
[ ok ] Activating swapfile swap...done.
Running file /etc/rcS.d/S36mountall-bootclean.sh
[ ok ] Cleaning up temporary files... /tmp.
Running file /etc/rcS.d/S36udev-mtab
dhclient host identical
Running file /etc/rcS.d/S40networking
[....] Configuring network interfaces...unionfs: new lower inode ctime (bindex=1, name=if-pre-up.d)
unionfs: new lower inode ctime (bindex=1, name=if-up.d)
done.
Running file /etc/rcS.d/S43rpcbind
[ ok ] Starting rpcbind daemon....
Running file /etc/rcS.d/S44nfs-common
[FAIL] Starting NFS common utilities: statd failed!
Running file /etc/rcS.d/S45mountnfs.sh
Running file /etc/rcS.d/S46mountnfs-bootclean.sh
[ ok ] Cleaning up temporary files....
Running file /etc/rcS.d/S55bootmisc.sh
Running file /etc/rcS.d/S55urandom
INIT: Entering runlevel: 2
Running file /etc/init.d/rc
Running file /etc/rc2.d/S10rsyslog
[ ok ] Starting enhanced syslogd: rsyslogd.
Running file /etc/rc2.d/S12dbus
chown: invalid user: `messagebus'
Running file /etc/rc2.d/S20nfs-common
[FAIL] Starting NFS common utilities: statd failed!
Running file /etc/rc2.d/S20nfs-kernel-server
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
Running file /etc/rc2.d/S20smartmontools
Running file /etc/rc2.d/S20sysfsutils
[ ok ] Setting sysfs variables....
Running file /etc/rc2.d/S23ntp
[....] Starting NTP server: ntpdRunning file /etc/rc2.d/S25bluetooth
[....] Starting bluetooth: bluetoothd rfcommBluetooth: L2CAP ver 2.13
Bluetooth: L2CAP socket layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM ver 1.11
. ok
Starting netplugd...
eth0: link down
eth0: started
eth0: link up, full duplex, speed 1 Gbps
ln: failed to create symbolic link `/etc/samba/smb.conf': File exists
Generating RSA Key...
unknown key type rsa1
Starting sshd: OK
hostnamed begin to start...
Checking Netwrok interface link status...
Network Link is Available...
## Error: "hwdata" not defined
hostnamed finished
Starting executord - appmd
export proxy environmental variables
Done.
Running file /etc/rc2.d/S99rc.local
Running file /etc/rc2.d/S99rmnologin

Debian GNU/Linux 7 PNEUDISK ttyS0

PNEUDISK login: Admin
Password:
No directory, logging in with HOME=/
Admin@PNEUDISK:/$ pwd
/
Admin@PNEUDISK:/$ su
Password:
su: Authentication failure
Admin@PNEUDISK:/$

======
moderator edit: please use code tags (formatted code) to post log.



Edited 1 time(s). Last edit at 11/24/2021 03:15PM by bodhi.
Dave,


Since you have serial console, you can try booting with the latest Debian rootfs on USB: Debian-5.13.6-kirkwood-tld-1-rootfs-bodhi.tar.bz2

https://forum.doozan.com/read.php?2,12096

Scroll down to 26 Sept 2021

Quote

Updated 26 Sept 2021:

Basic Debian bullseye Kirkwood rootfs for most Kirwood plugs:

After you've created the rootfs, following the instruction in this post to set up envs in serial console to boot it:

https://forum.doozan.com/read.php?2,102054,105374#msg-105374

Remember to avoid executing any other command at serial console (so you don't accidentally save the envs) until after you can boot into Debian rootfs.

=========

The above instruction is non-destructive, so just remove the USB rootfs and it will boot back to stock. Further changes in envs will allow it to boot Debian, and then (if it cannot boot) will fallback to stock OS (as a rescue system).

After you're happy with the way the system is running on USB rootfs, then move on to clone that rootfs to the HDD.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Thank you. I have a trail to follow.

I'll follow it Sunday after Thanksgiving at the other state families.
So, I tried the steps from jdwl101 10/22/18 11:53 PM with the variation ;

Optional, use ar-lex’s DTS and DTB, specific to the IX2-DL (only)
IX2-DL custom DTB

Following the links, I copied his .dts and .dtb to a fat32 usb drive and executed the following ;

Hit any key to stop autoboot: 3  0
Marvell>> setenv bootargs_end ':::DB88FXX81:eth0:none earlyprintk=serial'
Marvell>> setenv mtdparts 'mtdparts=nand_mtd:0x80000@0(uboot),0x20000@0xa0000(env),0x20000@0xc0000(env2),0x300000@0x100000(uImage),0x400000@0x400000(initrd),0x3f800000@0x800000(boot),1024m@0x0(flash)'
Marvell>> printenv bootcmd
bootcmd=run loadzimage; run loadinitrd; run mk_mtdparts; setenv bootargs $(console) $(bootargs_root) $(bootargs_end) $(mtdparts); bootm 0x40000 0x900000
Marvell>> setenv bootargs $(console) $(bootargs_root) $(bootargs_end) $(mtdparts)
Marvell>> printenv bootargs
bootargs=console=ttyS0,115200 root=/dev/ram0 :::DB88FXX81:eth0:none earlyprintk=serial mtdparts=nand_mtd:0x80000@0(uboot),0x20000@0xa0000(env),0x20000@0xc0000(env2),0x300000@0x100000(uImage),0x400000@0x400000(initrd),0x3f800000@0x800000(boot),1024m@0x0(flash)
Marvell>> usb reset
(Re)start USB...
USB: scanning bus for devices... 2 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
--------------------------------------

At which point, after seeing a capital ' T ' for a while, I got : 0 Storage Devices found, Sense 00:00:00

So, after thinking a while, I remembered seeing a lot of ext2 verbage in various posts and brought up a ubuntu system and converted the usb drive to ext2 and copied the .dts and .dtb files to it again.

Unfortunately, the same result.

Maybe I have a hardware USB problem ? When I tried to boot from USB with the Lenovo Imager I had problems as well...
That is to say, the ix2 USB. The USB Pen drive works perfectly.

I'll start tomorrow with the various USB commands in u-boot to see what it's view of it all is.
Dave,

FAT32 will not work for rootfs. It can be used for kernel files only.

Best if you format the USB drive as ext3, as instructed in the release thread. And that's all you need to boot Debian on USB.

https://forum.doozan.com/read.php?2,12096

Quote

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. But be aware that Ext4 file system format needs to be "finalized" before it can be used for booting.

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.13.6-kirkwood-tld-1-rootfs-bodhi.tar.bz2

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
My ix2 could be fairly picky with the type of drive. Seemed to prefer 4gb or less and only usb2 drives.

I’m not clear what your uboot envs are intended to do though. The ix2 requires the dtb to be appended to the kernel, it won’t work if you load it separately as the uboot ver is too old.
It's alive !

I tried the steps from the thread and it failed the same, so I tried another USB Pen drive and it worked.

The one that fails is a Micro Center cheapest 16GB pen drive. The one that works is a micro sd Class 10 8GB in a type A adapter.

The wrong uboot env's were just my slow learning curve. I think I over read all the posts and got lost. Bodhi's last post got me back on track.

Thanks a million for the help. This is now one more device that won't become E-Waste.
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: