Welcome! Log In Create A New Profile

Advanced

Lenovo ix2-ng to put Debian Stretch and OMV4

Posted by codier 
Lenovo ix2-ng to put Debian Stretch and OMV4
June 15, 2021 12:06AM
Hi bodhi,

I am trying to turn my lenovo ix-ng into a OMV4 nas.

I browsed the forum and didn't find out whoever has my issue so I started a new thread for this question.
I saw fcollingwood's instruction from https://forum.doozan.com/read.php?2,94014
I also saw your notes there so I will skip the envs setting from there.

Before I follow fcollingwood's guide I think I will need your guide to "tailor" my ix2-ng first. I do found this device is being supported in https://forum.doozan.com/read.php?2,12096

I started follow your instruction but I stucked at first step which is backup the current uImage and uInitrd in the /boot directory. I couldn't find anything from my /boot directory. below is the what I found from my device.

root@ix2:/boot# ls
System.map-2.6.31.8  images  lost+found

I don't know if there is anything wrong with my device but below the 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 0 0]: Enable DMA mode (6)
  Device 0 @ 0 0:
Model: WDC WD20EZRX-00D8PB0                     Firm: 80.00A80 
            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: WDC WD20EZRX-00D8PB0                     Firm: 80.00A80 
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 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

Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode (6)
  Device 0 @ 0 0:
Model: WDC WD20EZRX-00D8PB0                     
            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: WDC WD20EZRX-00D8PB0                     
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)


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

IDE read: device 0 block # 8192, count 6144 ... 6144 blocks read: OK
## Booting image at 00040000 ...
   Image Name:   Linux-2.6.31.8
   Created:      2017-10-13  11:13:05 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2502872 Bytes =  2.4 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 00900000 ...
   Image Name:
   Created:      2017-10-13  11:49:00 UTC
   Image Type:   ARM Linux RAMDisk Image (bzip2 compressed)
   Data Size:    2996455 Bytes =  2.9 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Linux version 2.6.31.8 (soho@bsoho080.iomegacorp.com) (gcc version 4.7.2 (crosstool-NG 1.20.0) ) Fri Oct 13 07:13:01 EDT 2017 v0.0.9 Fri Oct 13 07:13:01 EDT 2017
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 mtdparts=spi_flash:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2) :::DB88FXX81:eth0:none
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    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: 2924K
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     WDC      WD20EZRX-00D8PB0 80.0 PQ: 0 ANSI: 5
scsi 1:0:0:0: Direct-Access     WDC      WD20EZRX-00D8PB0 80.0 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)
3 cmdlinepart partitions found on MTD device spi_flash
Creating 3 MTD partitions on "spi_flash":
0x000000000000-0x00000007e000 : "u-boot"
 sdb:
0x00000007f000-0x000000080000 : "env"
0x00000007e000-0x00000007f000 : "env2"
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
 sda1 sda2
sd 0:0:0:0: [sda] Sector size 0 reported, assuming 512.
ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100
sd 0:0:0:0: [sda] Attached SCSI disk
GPT:Primary header thinks Alt. header is not at the end of the disk.
GPT:3907029166 != 3907029167
GPT:Alternate GPT header not at the end of the disk.
GPT:3907029166 != 3907029167
GPT: Use GNU Parted to correct GPT errors.
 sdb1 sdb2
sd 1:0:0:0: [sdb] Sector size 0 reported, assuming 512.
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
sd 1:0:0:0: [sdb] Attached SCSI disk
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-06-15 03:59:44 UTC (1623729584)
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 mtdparts=spi_flash:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2) :::DB88FXX81:eth0:none
Make node for mtd devices
HDD /dev/sda detected
HDD /dev/sdb detected
sh: mtd5: unknown operand
Create fw_env.config in /etc
Model name is ix2-ng
UUID_1 = 9bfd355b:bc90b3ae:a4d6cddb:ba17ca4a, size = 41943041
UUID_2 = 9bfd355b:bc90b3ae:a4d6cddb:ba17ca4a, size = 41943041
Valid Disk 1 in md0: /dev/sda1
Valid Disk 2 in md0: /dev/sdb1
USB Device node is /dev/sdc1
Checking to see the if the reset button is pressed or not
Checking for valid image on system
md: md0 stopped.
md: bind<sdb1>
md: bind<sda1>
raid1: raid set md0 active with 2 out of 2 mirrors
md0: detected capacity change from 0 to 21457928192
 md0:: /dev/md0 has been started with 2 drives.
      unknown partition table
md: md0 stopped.
md: unbind<sda1>
md: export_rdev(sda1)
md: unbind<sdb1>
md: export_rdev(sdb1)
md0: detected capacity change from 21457928192 to 0
mdadm: stopped /dev/md0
md: md0 stopped.
md: bind<sdb1>
md: bind<sda1>
raid1: raid set md0 active with 2 out of 2 mirrors
md0: detected capacity change from 0 to 21457928192
mdadm: /dev/md0 has been started with 2 drives.
 md0: unknown partition table
  2 logical volume(s) in volume group "md0_vg" now active
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.
/dev/md0_vg/BFDlv: clean, 16/262144 files, 211618/1048576 blocks
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_table.txt'
makedevs: line 42: chown failed for /bin/busybox: Read-only file system
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 (Oct 13 2017 07:28:48) 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.
[info] System Clock set to: Tue Jun 15 04:00:08 UTC 2021.
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
[ ok ] Configuring network interfaces...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
ln: failed to create symbolic link `/tmp/samba/account_policy.tdb': File exists
ln: failed to create symbolic link `/tmp/samba/group_mapping.tdb': File exists
ln: failed to create symbolic link `/tmp/samba/login_cache.tdb': File exists
ln: failed to create symbolic link `/tmp/samba/netsamlogon_cache.tdb': File exists
ln: failed to create symbolic link `/tmp/samba/ntdrivers.tdb': File exists
ln: failed to create symbolic link `/tmp/samba/ntforms.tdb': File exists
ln: failed to create symbolic link `/tmp/samba/ntprinters.tdb': File exists
ln: failed to create symbolic link `/tmp/samba/share_info.tdb': File exists
ln: failed to create symbolic link `/tmp/samba/winbindd_idmap.tdb': File exists
ln: failed to create symbolic link `/tmp/samba/winbindd_cache.tdb': File exists
ln: failed to create symbolic link `/tmp/samba/wins.dat': File exists
ln: failed to create symbolic link `/tmp/samba/locking.tdb': File exists
Starting sshd: OK
hostnamed begin to start...
Checking Netwrok interface link status...
Network Link is Available...
IP obtained
## 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 ix2 ttyS0

ix2 login: md: md1 stopped.
md: bind<sdb2>
md: bind<sda2>
raid1: raid set md1 active with 2 out of 2 mirrors
md1: detected capacity change from 0 to 1978754990080
 md1: unknown partition table
EXT4-fs (dm-1): barriers enabled
kjournald2 starting: pid 3744, dev dm-1:8, commit interval 5 seconds
EXT4-fs (dm-1): internal journal on dm-1:8
EXT4-fs (dm-1): delayed allocation enabled
EXT4-fs: file extents enabled
EXT4-fs: mballoc enabled
EXT4-fs (dm-1): mounted filesystem with ordered data mode
EXT4-fs (dm-2): barriers disabled
kjournald2 starting: pid 3748, dev dm-2:8, commit interval 5 seconds
EXT4-fs (dm-2): internal journal on dm-2:8
EXT4-fs (dm-2): delayed allocation enabled
EXT4-fs: file extents enabled
EXT4-fs: mballoc enabled
EXT4-fs (dm-2): mounted filesystem with ordered data mode
Adding 524280k swap on /mnt/system/swapfile.  Priority:-1 extents:3 across:540664k

Debian GNU/Linux 7 ix2 ttyS0

Thanks for your help in advance.
Codier



Edited 2 time(s). Last edit at 06/30/2021 10:57PM by codier.
Re: Lenovo ix2-ng to put Debian Stretch and OMV4
June 15, 2021 12:26AM
codier,

> I started follow your instruction but I stucked at
> first step which is backup the current uImage and
> uInitrd in the /boot directory. I couldn't find
> anything from my /boot directory. below is the
> what I found from my device.

That was the kernel upgrade instruction, what you need is the rootfs tarball

Quote
https://forum.doozan.com/read.php?2,12096
Note: If this is your first time installation, then you only need rootfs Debian-5.2.9-kirkwood-tld-1-rootfs-bodhi.tar.bz2 (this has kernel linux-5.2.9-kirkwood-tld-1 already installed). Please scroll down to 25 Aug 2019 section for download link and installation instruction.

So scroll down to the Buster rootfs:

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

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Lenovo ix2-ng to put Debian Stretch and OMV4
June 26, 2021 12:29AM
I've followed the instruction to create the USB drive but my ix2 doesn't boot from it.
Maybe there is anything wrong with env of my ix2?

Booting record
        __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ 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 0 0]: Enable DMA mode (6)
  Device 0 @ 0 0:
Model: WDC WD20EZRX-00D8PB0                    
            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: WDC WD20EZRX-00D8PB0                     
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 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

Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode (6)
  Device 0 @ 0 0:
Model: WDC WD20EZRX-00D8PB0                     
            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: WDC WD20EZRX-00D8PB0                     
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)


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

IDE read: device 0 block # 8192, count 6144 ... 6144 blocks read: OK
## Booting image at 00040000 ...
   Image Name:   Linux-2.6.31.8
   Created:      2017-10-13  11:13:05 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2502872 Bytes =  2.4 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 00900000 ...
   Image Name:
   Created:      2017-10-13  11:49:00 UTC
   Image Type:   ARM Linux RAMDisk Image (bzip2 compressed)
   Data Size:    2996455 Bytes =  2.9 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Linux version 2.6.31.8 (soho@bsoho080.iomegacorp.com) (gcc version 4.7.2 (crosstool-NG 1.20.0) ) Fri Oct 13 07:13:01 EDT 2017 v0.0.9 Fri Oct 13 07:13:01 EDT 2017
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 mtdparts=spi_flash:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2) :::DB88FXX81:eth0:none
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    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: 2924K
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     WDC      WD20EZRX-00D8PB0 80.0 PQ: 0 ANSI: 5
scsi 1:0:0:0: Direct-Access     WDC      WD20EZRX-00D8PB0 80.0 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)
3 cmdlinepart partitions found on MTD device spi_flash
Creating 3 MTD partitions on "spi_flash":
0x000000000000-0x00000007e000 : "u-boot"
 sdb:
0x00000007f000-0x000000080000 : "env"
0x00000007e000-0x00000007f000 : "env2"
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
 sda1 sda2
sd 0:0:0:0: [sda] Sector size 0 reported, assuming 512.
sd 0:0:0:0: [sda] Attached SCSI disk
ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100
GPT:Primary header thinks Alt. header is not at the end of the disk.
GPT:3907029166 != 3907029167
GPT:Alternate GPT header not at the end of the disk.
GPT:3907029166 != 3907029167
GPT: Use GNU Parted to correct GPT errors.
 sdb1 sdb2
sd 1:0:0:0: [sdb] Sector size 0 reported, assuming 512.
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
sd 1:0:0:0: [sdb] Attached SCSI disk
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-06-26 05:20:14 UTC (1624684814)
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
usb 1-1: new high speed USB device using ehci_marvell and address 2
usb 1-1: configuration #1 chosen from 1 choice
scsi2 : SCSI emulation for USB Mass Storage devices
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 mtdparts=spi_flash:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2) :::DB88FXX81:eth0:none
Make node for mtd devices
HDD /dev/sda detected
HDD /dev/sdb detected
sh: mtd5: unknown operand
Create fw_env.config in /etc
Model name is ix2-ng
UUID_1 = 9bfd355b:bc90b3ae:a4d6cddb:ba17ca4a, size = 41943041
UUID_2 = 9bfd355b:bc90b3ae:a4d6cddb:ba17ca4a, size = 41943041
Valid Disk 1 in md0: /dev/sda1
Valid Disk 2 in md0: /dev/sdb1
USB Device node is /dev/sdc1
Checking to see the if the reset button is pressed or not
scsi 2:0:0:0: Direct-Access              USB DISK 2.0          PQ: 0 ANSI: 4
sd 2:0:0:0: Attached scsi generic sg2 type 0
sd 2:0:0:0: [sdc] 15124992 512-byte logical blocks: (7.74 GB/7.21 GiB)
sd 2:0:0:0: [sdc] Write Protect is off
sd 2:0:0:0: [sdc] Assuming drive cache: write through
sd 2:0:0:0: [sdc] Assuming drive cache: write through
 sdc: sdc1
sd 2:0:0:0: [sdc] Assuming drive cache: write through
sd 2:0:0:0: [sdc] Attached SCSI removable disk
Checking for valid image on system
md: md0 stopped.
md: bind<sdb1>
md: bind<sda1>
raid1: raid set md0 active with 2 out of 2 mirrors
md0: detected capacity change from 0 to 21457928192
 md0:: /dev/md0 has been started with 2 drives.
      unknown partition table
md: md0 stopped.
md: unbind<sda1>
md: export_rdev(sda1)
md: unbind<sdb1>
md: export_rdev(sdb1)
md0: detected capacity change from 21457928192 to 0
mdadm: stopped /dev/md0
md: md0 stopped.
md: bind<sdb1>
md: bind<sda1>
raid1: raid set md0 active with 2 out of 2 mirrors
md0: detected capacity change from 0 to 21457928192
mdadm: /dev/md0 has been started with 2 drives.
 md0: unknown partition table
  2 logical volume(s) in volume group "md0_vg" now active
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.
/dev/md0_vg/BFDlv: clean, 16/262144 files, 211618/1048576 blocks
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_table.txt'
makedevs: line 42: chown failed for /bin/busybox: Read-only file system
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 (Oct 13 2017 07:28:48) 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.
[info] System Clock set to: Sat Jun 26 05:20:38 UTC 2021.
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
[ ok ] Configuring network interfaces...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
ln: failed to create symbolic link `/tmp/samba/account_policy.tdb': File exists
ln: failed to create symbolic link `/tmp/samba/group_mapping.tdb': File exists
ln: failed to create symbolic link `/tmp/samba/login_cache.tdb': File exists
ln: failed to create symbolic link `/tmp/samba/netsamlogon_cache.tdb': File exists
ln: failed to create symbolic link `/tmp/samba/ntdrivers.tdb': File exists
ln: failed to create symbolic link `/tmp/samba/ntforms.tdb': File exists
ln: failed to create symbolic link `/tmp/samba/ntprinters.tdb': File exists
ln: failed to create symbolic link `/tmp/samba/share_info.tdb': File exists
ln: failed to create symbolic link `/tmp/samba/winbindd_idmap.tdb': File exists
ln: failed to create symbolic link `/tmp/samba/winbindd_cache.tdb': File exists
ln: failed to create symbolic link `/tmp/samba/wins.dat': File exists
ln: failed to create symbolic link `/tmp/samba/locking.tdb': File exists
Starting sshd: OK
hostnamed begin to start...
Checking Netwrok interface link status...
Network Link is Available...
IP obtained
## 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 ix2 ttyS0

ix2 login: md: md1 stopped.
md: bind<sdb2>
md: bind<sda2>
raid1: raid set md1 active with 2 out of 2 mirrors
md1: detected capacity change from 0 to 1978754990080
 md1: unknown partition table
EXT4-fs (dm-1): barriers enabled
kjournald2 starting: pid 3225, dev dm-1:8, commit interval 5 seconds
EXT4-fs (dm-1): internal journal on dm-1:8
EXT4-fs (dm-1): delayed allocation enabled
EXT4-fs: file extents enabled
EXT4-fs: mballoc enabled
EXT4-fs (dm-1): mounted filesystem with ordered data mode
EXT4-fs (dm-2): barriers disabled
kjournald2 starting: pid 3229, dev dm-2:8, commit interval 5 seconds
EXT4-fs (dm-2): internal journal on dm-2:8
EXT4-fs (dm-2): delayed allocation enabled
EXT4-fs: file extents enabled
EXT4-fs: mballoc enabled
EXT4-fs (dm-2): mounted filesystem with ordered data mode
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sdc1, internal journal
EXT3-fs: mounted filesystem with writeback data mode.
Adding 524280k swap on /mnt/system/swapfile.  Priority:-1 extents:3 across:540664k


ENV

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
bootcmd2=ide dev 1;ide read 0x40000 0x800 0x1800; ide read 0x900000 0x2000 0x1800; bootm 0x40000 0x900000;
uboot_ver=0.0.8
serial_number=5563Y01001G4130044CJ0D1
ethaddr=00:D0:B8:28:76:76
serialNo=SM10G0885942200209
modelname=SM10G08859
fw_ver=4.0.8.23976
serialno=0,01fCt+rC6JS6RqbhasnbzGZRgdN+gIw6GJr8x5N2mfDwoThRpoo00APsDyzEtS72UY,SM10G0885942200209,
runintime=10800
ftpserver=192.168.43.4
testfile=100M
mfgtest_state=system_tested_ok
pre_path=IX2/1.1.0/download_runin.sh
pre_path_conf=IX2/1.1.0/download_runin.conf
pre_serverip=192.168.32.4
pre_user=ixxrunin
pre_passwd=123
pre_dirzi=IX2/1.1.0
serverip=192.168.32.4
bootcmd=ide reset; ide read 0x40000 0x800 0x1800; ide read 0x900000 0x2000 0x1800; setenv bootargs $(console) $(bootargs_root) $(bootargs_mtd) $(bootargs_end); bootm 0x40000 0x900000;run bootcmd2
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

Environment size: 2001/4091 bytes
Marvell>>

Thanks
Re: Lenovo ix2-ng to put Debian Stretch and OMV4
June 26, 2021 12:49AM
codier,

Your envs are for booting with HDD.

See this post for how to set the envs in serial console to boot USB rootfs from stock u-boot:

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

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Lenovo ix2-ng to put Debian Stretch and OMV4
June 26, 2021 10:11PM
Thanks Bodhi
I've followed the instruction but it seems didn't recognize some commands when it boot from USB

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_en                                                                              d) $(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
bootcmd2=ide dev 1;ide read 0x40000 0x800 0x1800; ide read 0x900000 0x2000 0x1800; bootm 0x40000 0x900000;
uboot_ver=0.0.8
serial_number=5563Y01001G4130044CJ0D1
ethaddr=00:D0:B8:28:76:76
serialNo=SM10G0885942200209
modelname=SM10G08859
fw_ver=4.0.8.23976
serialno=0,01fCt+rC6JS6RqbhasnbzGZRgdN+gIw6GJr8x5N2mfDwoThRpoo00APsDyzEtS72UY,SM10G0885942200209,
runintime=10800
ftpserver=192.168.43.4
testfile=100M
mfgtest_state=system_tested_ok
pre_path=IX2/1.1.0/download_runin.sh
pre_path_conf=IX2/1.1.0/download_runin.conf
pre_serverip=192.168.32.4
pre_user=ixxrunin
pre_passwd=123
pre_dirzi=IX2/1.1.0
serverip=192.168.32.4
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
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial
load_uimage=ext2load usb 0:1 0x800000 /boot/uImage
load_uinitrd=ext2load usb 0:1 0x2100000 /boot/uInitrd
usb_boot=mw 0x800000 0 1; run load_uimage; if run load_uinitrd; then bootm 0x800000 0x2100000; else bootm 0x800000; fi
usb_bootcmd=run usb_set_bootargs; run usb_boot
bootcmd=usb start; run usb_bootcmd; usb stop; reset

Environment size: 2232/4091 bytes
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
....
.
......
............
.........................
...................................................
......................................................................................................
............................................................................................................................................................................................................
....
.......................................................................

4976325 bytes read
Unknown command 'if' - try 'help'
Unknown command 'then' - try 'help'
Unknown command 'else' - try 'help'
This command can be used only if enaMonExt is set!
stopping USB..

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ 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

Re: Lenovo ix2-ng to put Debian Stretch and OMV4
June 27, 2021 09:19AM
Update.

I added
setenv enaMonExt yes

but there still issues with FSrun. Maybe this stock linux is too old?
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_en                                                                              d) $(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
bootcmd2=ide dev 1;ide read 0x40000 0x800 0x1800; ide read 0x900000 0x2000 0x1800; bootm 0x40000 0x900000;
uboot_ver=0.0.8
serial_number=5563Y01001G4130044CJ0D1
ethaddr=00:D0:B8:28:76:76
serialNo=SM10G0885942200209
modelname=SM10G08859
fw_ver=4.0.8.23976
serialno=0,01fCt+rC6JS6RqbhasnbzGZRgdN+gIw6GJr8x5N2mfDwoThRpoo00APsDyzEtS72UY,SM10G0885942200209,
runintime=10800
ftpserver=192.168.43.4
testfile=100M
mfgtest_state=system_tested_ok
pre_path=IX2/1.1.0/download_runin.sh
pre_path_conf=IX2/1.1.0/download_runin.conf
pre_serverip=192.168.32.4
pre_user=ixxrunin
pre_passwd=123
pre_dirzi=IX2/1.1.0
serverip=192.168.32.4
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=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
enaMonExt=yes
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial
load_uimage=ext2load usb 0:1 0x800000 /boot/uImage
load_uinitrd=ext2load usb 0:1 0x2100000 /boot/uInitrd
usb_boot=mw 0x800000 0 1; run load_uimage; if run load_uinitrd; then bootm 0x800000 0x2100000; else bootm 0x800000; fi
usb_bootcmd=run usb_set_bootargs; run usb_boot
bootcmd=usb start; run usb_bootcmd; usb stop; reset

Environment size: 2233/4091 bytes
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
....
.
......
............
.........................
...................................................
......................................................................................................
............................................................................................................................................................................................................
....
.......................................................................

4976325 bytes read
Unknown command 'FSrun' - try 'help'
Unknown command 'FSrun' - try 'help'
Unknown command 'FSrun' - try 'help'
Usage:
fi      - Find value in the memory.

stopping USB..

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ 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



Edited 1 time(s). Last edit at 06/27/2021 09:20AM by codier.
Re: Lenovo ix2-ng to put Debian Stretch and OMV4
June 27, 2021 03:18PM
codier,

> Update.
>
> I added
>
> setenv enaMonExt yes
>

No need to try that with stock u-boot. Here is the revised envs set:

setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial'
setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
setenv load_uinitrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd'
setenv usb_boot 'mw 0x800000 0 1; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000'
setenv usb_bootcmd 'run usb_set_bootargs; run usb_boot'
setenv bootcmd 'usb start; run usb_bootcmd; usb stop; reset'
printenv
boot

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Lenovo ix2-ng to put Debian Stretch and OMV4
June 28, 2021 02:22PM
Thanks Bodhi. It worked.


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_en                                                                              d) $(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
bootcmd2=ide dev 1;ide read 0x40000 0x800 0x1800; ide read 0x900000 0x2000 0x1800; bootm 0x40000 0x900000;
uboot_ver=0.0.8
serial_number=5563Y01001G4130044CJ0D1
ethaddr=00:D0:B8:28:76:76
serialNo=SM10G0885942200209
modelname=SM10G08859
fw_ver=4.0.8.23976
serialno=0,01fCt+rC6JS6RqbhasnbzGZRgdN+gIw6GJr8x5N2mfDwoThRpoo00APsDyzEtS72UY,SM10G0885942200209,
runintime=10800
ftpserver=192.168.43.4
testfile=100M
mfgtest_state=system_tested_ok
pre_path=IX2/1.1.0/download_runin.sh
pre_path_conf=IX2/1.1.0/download_runin.conf
pre_serverip=192.168.32.4
pre_user=ixxrunin
pre_passwd=123
pre_dirzi=IX2/1.1.0
serverip=192.168.32.4
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
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial
load_uimage=ext2load usb 0:1 0x800000 /boot/uImage
load_uinitrd=ext2load usb 0:1 0x2100000 /boot/uInitrd
usb_boot=mw 0x800000 0 1; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000
usb_bootcmd=run usb_set_bootargs; run usb_boot
bootcmd=usb start; run usb_bootcmd; usb stop; reset

Environment size: 2199/4091 bytes
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
....
.
......
............
.........................
...................................................
......................................................................................................
............................................................................................................................................................................................................
....
.......................................................................

4976325 bytes read
....
.
......
............
.........................
...................................................
......................................................................................................
.................................................................................................................................................................................................................
....................................................................................................................................................................................................................................................................................................................................................................................................................
....
............................................................................................................................

9713936 bytes read
## Booting image at 00800000 ...
   Image Name:   Linux-5.2.9-kirkwood-tld-1
   Created:      2021-06-27   3:00:52 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4976261 Bytes =  4.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 02100000 ...
   Image Name:   initramfs-5.2.9-kirkwood-tld-1
   Created:      2019-08-25   2:22:50 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9713872 Bytes =  9.3 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

[    8.251642][    T1] printk: console [ttyS0] enabled
[    8.261419][    T1] printk: bootconsole [earlycon0] disabled
[    8.278673][    T1] loop: module loaded
[    8.282989][    T1] sata_mv f1080000.sata: slots 32 ports 2
[    8.290721][    T1] scsi host0: sata_mv
[    8.295017][    T1] scsi host1: sata_mv
[    8.299140][    T1] ata1: SATA max UDMA/133 irq 34
[    8.303956][    T1] ata2: SATA max UDMA/133 irq 34
[    8.310189][    T1] m25p80 spi0.0: mx25l8005 (1024 Kbytes)
[    8.315725][    T1] 3 fixed-partitions partitions found on MTD device spi0.0
[    8.322851][    T1] Creating 3 MTD partitions on "spi0.0":
[    8.328366][    T1] 0x000000000000-0x00000007e000 : "u-boot"
[    8.334065][    T1] mtd: partition "u-boot" doesn't end on an erase/write block -- force read-only
[    8.344112][    T1] 0x00000007e000-0x00000007f000 : "u-boot env2"
[    8.350265][    T1] mtd: partition "u-boot env2" doesn't start on an erase/write block boundary -- force read-only
[    8.361657][    T1] 0x00000007f000-0x000000080000 : "u-boot env"
[    8.367690][    T1] mtd: partition "u-boot env" doesn't start on an erase/write block boundary -- force read-only
[    8.379923][    T1] libphy: Fixed MDIO Bus: probed
[    8.385339][    T1] libphy: orion_mdio_bus: probed
[    8.401161][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    8.409135][    T1] mv643xx_eth_port mv643xx_eth_port.0: DMA mask not set
[    8.417035][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:d0:b8:28:76:76
[    8.426635][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.433993][    T1] ehci-pci: EHCI PCI platform driver
[    8.439241][    T1] ehci-orion: EHCI orion driver
[    8.444108][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[    8.450388][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    8.458941][    T1] orion-ehci f1050000.ehci: irq 31, io mem 0xf1050000
[    8.488541][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    8.495477][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[    8.504496][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.512466][    T1] usb usb1: Product: EHCI Host Controller
[    8.518067][    T1] usb usb1: Manufacturer: Linux 5.2.9-kirkwood-tld-1 ehci_hcd
[    8.525423][    T1] usb usb1: SerialNumber: f1050000.ehci
[    8.531345][    T1] hub 1-0:1.0: USB hub found
[    8.535841][    T1] hub 1-0:1.0: 1 port detected
[    8.541064][    T1] usbcore: registered new interface driver usb-storage
[    8.548096][    T1] mousedev: PS/2 mouse device common for all mice
[    8.554899][    T1] rtc-mv f1010300.rtc: registered as rtc0
[    8.560666][    T1] i2c /dev entries driver
[    8.566051][    T1] device-mapper: uevent: version 1.0.3
[    8.571702][    T1] device-mapper: ioctl: 4.40.0-ioctl (2019-01-18) initialised: dm-devel@redhat.com
[    8.581217][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    8.588543][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    8.595903][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    8.603339][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    8.610194][    T1] device-mapper: raid: Loading target version 1.14.0
[    8.617877][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[    8.624292][    T1] drop_monitor: Initializing network drop monitor service
[    8.631567][    T1] NET: Registered protocol family 17
[    8.636941][    T1] Key type dns_resolver registered
[    8.642654][    T1] registered taskstats version 1
[    8.647470][    T1] Loading compiled-in X.509 certificates
[    8.653163][    T1] zswap: loaded using pool lzo/zbud
[    8.728093][    T1] Key type big_key registered
[    8.764787][    T1] Key type encrypted registered
[    8.771315][    T1] rtc-mv f1010300.rtc: setting system clock to 2021-06-28T02:43:34 UTC (1624848214)
[    8.808550][  T112] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    8.817999][  T112] ata1.00: ATA-9: WDC WD20EZRX-00D8PB0, 80.00A80, max UDMA/133
[    8.825452][  T112] ata1.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    8.835496][  T112] ata1.00: configured for UDMA/133
[    8.850981][    T7] scsi 0:0:0:0: Direct-Access     ATA      WDC WD20EZRX-00D 0A80 PQ: 0 ANSI: 5
[    8.860585][  T116] sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[    8.869469][  T116] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    8.875511][  T116] sd 0:0:0:0: [sda] Write Protect is off
[    8.881165][  T116] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    8.908541][   T15] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    9.112319][   T15] usb 1-1: New USB device found, idVendor=13fe, idProduct=4100, bcdDevice= 1.00
[    9.121271][   T15] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    9.129184][   T15] usb 1-1: Product: USB DISK 2.0
[    9.133995][   T15] usb 1-1: Manufacturer:
[    9.138926][   T15] usb 1-1: SerialNumber: 070239F129000800
[    9.145205][   T15] usb-storage 1-1:1.0: USB Mass Storage device detected
[    9.152503][   T15] scsi host2: usb-storage 1-1:1.0
[    9.368550][  T114] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    9.377968][  T114] ata2.00: ATA-9: WDC WD20EZRX-00D8PB0, 80.00A80, max UDMA/133
[    9.385425][  T114] ata2.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    9.395469][  T114] ata2.00: configured for UDMA/133
[    9.410872][   T23] scsi 1:0:0:0: Direct-Access     ATA      WDC WD20EZRX-00D 0A80 PQ: 0 ANSI: 5
[    9.420455][    T7] sd 1:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[    9.429235][    T7] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[    9.435244][    T7] sd 1:0:0:0: [sdb] Write Protect is off
[    9.440877][    T7] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    9.521539][    T7] GPT:Primary header thinks Alt. header is not at the end of the disk.
[    9.529701][    T7] GPT:3907029166 != 3907029167
[    9.534337][    T7] GPT:Alternate GPT header not at the end of the disk.
[    9.541076][    T7] GPT:3907029166 != 3907029167
[    9.545707][    T7] GPT: Use GNU Parted to correct GPT errors.
[    9.551633][    T7]  sdb: sdb1 sdb2
[    9.556439][    T7] sd 1:0:0:0: [sdb] Attached SCSI disk
[   10.191014][    T7] scsi 2:0:0:0: Direct-Access              USB DISK 2.0          PQ: 0 ANSI: 4
[   10.201354][   T23] sd 2:0:0:0: [sdc] 15124992 512-byte logical blocks: (7.74 GB/7.21 GiB)
[   10.210091][   T23] sd 2:0:0:0: [sdc] Write Protect is off
[   10.215965][   T23] sd 2:0:0:0: [sdc] No Caching mode page found
[   10.222044][   T23] sd 2:0:0:0: [sdc] Assuming drive cache: write through
[   10.234090][   T23]  sdc: sdc1 sdc2
[   10.240347][   T23] sd 2:0:0:0: [sdc] Attached SCSI removable disk
[   13.324006][  T116]  sda: sda1 sda2
[   13.329045][  T116] sd 0:0:0:0: [sda] Attached SCSI disk
[   13.337315][    T1] Freeing unused kernel memory: 1024K
[   13.348938][    T1] Checked W+X mappings: passed, no W+X pages found
[   13.355320][    T1] Run /init as init process
Loading, please wait...
Starting version 241
[   14.079272][  T166] usbcore: registered new interface driver uas
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.33.1
[/sbin/fsck.ext3 (1) -- /dev/sdc1] fsck.ext3 -a -C0 /dev/sdc1
rootfs: clean, 15076/406400 files, 250369/1624744 blocks
done.
[   24.829366][  T195] EXT4-fs (sdc1): mounting ext3 file system using the ext4 subsystem
[   24.890320][  T195] EXT4-fs (sdc1): mounted filesystem with ordered data mode. Opts: (null)
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.
[....] Synthesizing the initial hotplug events (subsystems)...[   26.872388][    C0] random: crng init done
done.
[ ok ] Synthesizing the initial hotplug events (devices)...[   27.521236][  T378] input: gpio-keys as /devices/platform/gpio-keys/input/input0
done.
[....] Waiting for /dev to be fully populated...[   27.612574][  T385] systemd-udevd[385]: Using default interface naming scheme 'v240'.
[   27.750786][  T385] systemd-udevd[385]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   27.862861][  T396] watchdog: f1020300.watchdog-timer: driver supplied timeout (4294967295) out of range
[   27.900781][  T376] adt7475 0-002e: hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[   27.978082][  T396] watchdog: f1020300.watchdog-timer: falling back to default timeout (21)
[   28.002686][  T377] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   28.061164][  T376] adt7475 0-002e: ADT7473 device, revision 0
[   28.101117][  T377] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   28.129260][  T396] orion_wdt: Initial timeout 21 sec
[   28.181617][  T374] marvell-cesa f1030000.crypto: CESA device successfully registered
[   28.194733][  T376] adt7475 0-002e: Optional features: pwm2
[   28.215402][  T377] sd 2:0:0:0: Attached scsi generic sg2 type 0
[   28.475750][  T377] systemd-udevd[377]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
done.
[ ok ] Setting hostname to 'debian'...done.
[ ok ] Activating swap:.
[   29.512369][  T595] EXT4-fs (sdc1): re-mounted. Opts: errors=remount-ro
[info] Will now check all file systems.
fsck from util-linux 2.33.1
Checking all file systems.
LABEL=rootfs is mounted
[ ok ] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable..
[ 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/

Listening on LPF/eth0/00:d0:b8:28:76:76
Sending on   LPF/eth0/00:d0:b8:28:76:76
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
[   35.295795][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPOFFER of 10.0.0.100 from 10.0.0.31
DHCPREQUEST for 10.0.0.100 on eth0 to 255.255.255.255 port 67
DHCPACK of 10.0.0.100 from 10.0.0.31
bound to 10.0.0.100 -- renewal in 262416 seconds.
[   53.648831][ T1149] NET: Registered protocol family 10
[   53.655473][ T1149] Segment Routing with IPv6
done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1343 (syslogd)
. ok
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1370 (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: root
Password:
Last login: Wed Dec 31 16:02:34 PST 1969 from 192.168.0.100 on pts/0
Linux debian 5.2.9-kirkwood-tld-1 #1 PREEMPT Sat Aug 17 15:00:56 PDT 2019 armv5tel

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

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.


I've done your note1 but don't know about note2 since it said might changed the location systemd binary.

Note2:

To boot with systemd, add parameter init=/bin/systemd to your u-boot env bootargs (beware that in later Debian distribution, the location of systemd binary might have changed).

fw_setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts init=/bin/systemd'
Is the note2 command still valid to do now?

Since there is no uboot for ix2-ng what I should do next?

Thanks
Codier
Re: Lenovo ix2-ng to put Debian Stretch and OMV4
June 28, 2021 03:44PM
Cool!

> Is the note2 command still valid to do now?

Not sure. I don't use systemd for these NAS so i'ts best that you try on the latest Debian release (10.10) and let us know.

> Since there is no uboot for ix2-ng what I should
> do next?

ATM, not much we can do about u-boot. So you can save the envs and use stock u-boot as it is.

Repeat the setenvs in serial console like before
setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial'
setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
setenv load_uinitrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd'
setenv usb_boot 'mw 0x800000 0 1; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000'
setenv usb_bootcmd 'run usb_set_bootargs; run usb_boot'
setenv bootcmd 'usb start; run usb_bootcmd; usb stop; reset'
printenv

And then save them permanently
saveenv
boot

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Lenovo ix2-ng to put Debian Stretch and OMV4
June 29, 2021 09:39PM
Hi Bodhi

Is there anything I did wrong?

root@debian:/media/omv5# fw_setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts init=/bin/systemd'
Warning: Bad CRC, using default environment
Can't open /dev/mtd0: Permission denied
Error: can't write fw_env to flash

Thanks
Codier



Edited 2 time(s). Last edit at 06/29/2021 10:42PM by codier.
Re: Lenovo ix2-ng to put Debian Stretch and OMV4
June 30, 2021 03:48PM
codier,

> Is there anything I did wrong?
>
>
> root@debian:/media/omv5# fw_setenv set_bootargs
> 'setenv bootargs console=ttyS0,115200
> root=LABEL=rootfs rootdelay=10 $mtdparts
> init=/bin/systemd'
> Warning: Bad CRC, using default environment
> Can't open /dev/mtd0: Permission denied
> Error: can't write fw_env to flash
> 
>

Since you are running stock u-boot on this box, the envs location must be adjusted to where that is on flash. The rootfs was set to default location of 0xc0000 (which is the location for all Kirkwood u-boot-xxxx.xx-tld-x that I supported and released here).

cat /etc/fw_env.config
# MTD device name	Device offset	Env. size	Flash sector size	Number of sectors
/dev/mtd0 0xc0000 0x20000 0x20000

So it would work if you set the env in serial console and save it.But to see and be able to write envs in Debian, we'll need to set the MTD definition correctly in bootargs, and set the location to the proper place.

Based on your stock envs settings, the location is at the start of mtd1, and the size is 0x1000:

bootargs_mtd=mtdparts=spi_flash:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2)

So 2 things need to be done.

1. In serial console set these 2 variables:

setenv bootargs_mtd 'spi0.0:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2)'
setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $(bootargs_mtd) earlyprintk=serial'

And repeat the other setenvs in serial console like before.

2. After booted into Debian, edit the fw_env.config file to have this conntent
# MTD device name	Device offset	Env. size	Flash sector size	Number of sectors
/dev/mtd1 0x0 0x1000 0x1000

And then try to list the envs
fw_printenv

If you can see the envs listed correctly like in serial console, then it's all good.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Lenovo ix2-ng to put Debian Stretch and OMV4
July 01, 2021 05:17PM
Hi Bodhi,

I followed your guide but it seems didn't work.

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
kernelimage=zImage
initrdimage=mfginitrd
ipaddr=192.168.1.2
mfgmodel=ix2
preroot_ver=0.0.2
bootcmd2=ide dev 1;ide read 0x40000 0x800 0x1800; ide read 0x900000 0x2000 0x1800; bootm 0x40000 0x900000;
uboot_ver=0.0.8
serial_number=5563Y01001G4130044CJ0D1
ethaddr=00:D0:B8:28:76:76
serialNo=SM10G0885942200209
modelname=SM10G08859
fw_ver=4.0.8.23976
serialno=0,01fCt+rC6JS6RqbhasnbzGZRgdN+gIw6GJr8x5N2mfDwoThRpoo00APsDyzEtS72UY,SM10G0885942200209,
runintime=10800
ftpserver=192.168.43.4
testfile=100M
mfgtest_state=system_tested_ok
pre_path=IX2/1.1.0/download_runin.sh
pre_path_conf=IX2/1.1.0/download_runin.conf
pre_serverip=192.168.32.4
pre_user=ixxrunin
pre_passwd=123
pre_dirzi=IX2/1.1.0
serverip=192.168.32.4
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_mtd=spi0.0:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2)
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $(bootargs_mtd) earlyprintk=serial
load_uimage=ext2load usb 0:1 0x800000 /boot/uImage
load_uinitrd=ext2load usb 0:1 0x2100000 /boot/uInitrd
usb_boot=mw 0x800000 0 1; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000
usb_bootcmd=run usb_set_bootargs; run usb_boot
bootcmd=usb start; run usb_bootcmd; usb stop; reset

Environment size: 2203/4091 bytes
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
....
.
......
............
.........................
...................................................
......................................................................................................
............................................................................................................................................................................................................
....
.......................................................................

4976325 bytes read
....
.
......
............
.........................
...................................................
......................................................................................................
............................................................................................................................................................................................................
....
....................................................................................................................................................................................................................................................................................................................................................................................................................
....
....................................................................................................................................

9790237 bytes read
## Booting image at 00800000 ...
   Image Name:   Linux-5.2.9-kirkwood-tld-1
   Created:      2021-06-27   3:00:52 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4976261 Bytes =  4.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 02100000 ...
   Image Name:   initramfs-5.2.9-kirkwood-tld-1
   Created:      2021-06-28   3:15:14 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9790173 Bytes =  9.3 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

[    8.251737][    T1] printk: console [ttyS0] enabled
[    8.261514][    T1] printk: bootconsole [earlycon0] disabled
[    8.278753][    T1] loop: module loaded
[    8.283073][    T1] sata_mv f1080000.sata: slots 32 ports 2
[    8.290810][    T1] scsi host0: sata_mv
[    8.295115][    T1] scsi host1: sata_mv
[    8.299246][    T1] ata1: SATA max UDMA/133 irq 34
[    8.304057][    T1] ata2: SATA max UDMA/133 irq 34
[    8.310278][    T1] m25p80 spi0.0: mx25l8005 (1024 Kbytes)
[    8.315817][    T1] 3 fixed-partitions partitions found on MTD device spi0.0
[    8.322944][    T1] Creating 3 MTD partitions on "spi0.0":
[    8.328459][    T1] 0x000000000000-0x00000007e000 : "u-boot"
[    8.334157][    T1] mtd: partition "u-boot" doesn't end on an erase/write block -- force read-only
[    8.344201][    T1] 0x00000007e000-0x00000007f000 : "u-boot env2"
[    8.350360][    T1] mtd: partition "u-boot env2" doesn't start on an erase/write block boundary -- force read-only
[    8.361744][    T1] 0x00000007f000-0x000000080000 : "u-boot env"
[    8.367783][    T1] mtd: partition "u-boot env" doesn't start on an erase/write block boundary -- force read-only
[    8.380022][    T1] libphy: Fixed MDIO Bus: probed
[    8.385439][    T1] libphy: orion_mdio_bus: probed
[    8.401386][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    8.409350][    T1] mv643xx_eth_port mv643xx_eth_port.0: DMA mask not set
[    8.417044][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:d0:b8:28:76:76
[    8.426643][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.434006][    T1] ehci-pci: EHCI PCI platform driver
[    8.439247][    T1] ehci-orion: EHCI orion driver
[    8.444113][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[    8.450385][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    8.459018][    T1] orion-ehci f1050000.ehci: irq 31, io mem 0xf1050000
[    8.488677][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    8.495614][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[    8.504640][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.512603][    T1] usb usb1: Product: EHCI Host Controller
[    8.518203][    T1] usb usb1: Manufacturer: Linux 5.2.9-kirkwood-tld-1 ehci_hcd
[    8.525560][    T1] usb usb1: SerialNumber: f1050000.ehci
[    8.531490][    T1] hub 1-0:1.0: USB hub found
[    8.535985][    T1] hub 1-0:1.0: 1 port detected
[    8.541208][    T1] usbcore: registered new interface driver usb-storage
[    8.548237][    T1] mousedev: PS/2 mouse device common for all mice
[    8.555028][    T1] rtc-mv f1010300.rtc: registered as rtc0
[    8.560793][    T1] i2c /dev entries driver
[    8.566172][    T1] device-mapper: uevent: version 1.0.3
[    8.571821][    T1] device-mapper: ioctl: 4.40.0-ioctl (2019-01-18) initialised: dm-devel@redhat.com
[    8.581339][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    8.588634][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    8.596024][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    8.603458][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    8.610313][    T1] device-mapper: raid: Loading target version 1.14.0
[    8.618002][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[    8.624419][    T1] drop_monitor: Initializing network drop monitor service
[    8.631688][    T1] NET: Registered protocol family 17
[    8.637062][    T1] Key type dns_resolver registered
[    8.642895][    T1] registered taskstats version 1
[    8.647711][    T1] Loading compiled-in X.509 certificates
[    8.653402][    T1] zswap: loaded using pool lzo/zbud
[    8.728358][    T1] Key type big_key registered
[    8.765062][    T1] Key type encrypted registered
[    8.771583][    T1] rtc-mv f1010300.rtc: setting system clock to 2021-07-01T22:12:41 UTC (1625177561)
[    8.808687][  T112] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    8.818156][  T112] ata1.00: ATA-9: WDC WD20EZRX-00D8PB0, 80.00A80, max UDMA/133
[    8.825606][  T112] ata1.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    8.835650][  T112] ata1.00: configured for UDMA/133
[    8.851137][    T7] scsi 0:0:0:0: Direct-Access     ATA      WDC WD20EZRX-00D 0A80 PQ: 0 ANSI: 5
[    8.860749][  T116] sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[    8.869637][  T116] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    8.875674][  T116] sd 0:0:0:0: [sda] Write Protect is off
[    8.881327][  T116] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    8.908679][   T15] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    8.966268][  T116]  sda: sda1 sda2
[    8.971116][  T116] sd 0:0:0:0: [sda] Attached SCSI disk
[    9.112522][   T15] usb 1-1: New USB device found, idVendor=13fe, idProduct=4100, bcdDevice= 1.00
[    9.121479][   T15] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    9.129388][   T15] usb 1-1: Product: USB DISK 2.0
[    9.134202][   T15] usb 1-1: Manufacturer:
[    9.139135][   T15] usb 1-1: SerialNumber: 070239F129000800
[    9.145433][   T15] usb-storage 1-1:1.0: USB Mass Storage device detected
[    9.152637][   T15] scsi host2: usb-storage 1-1:1.0
[    9.368687][  T114] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    9.378104][  T114] ata2.00: ATA-9: WDC WD20EZRX-00D8PB0, 80.00A80, max UDMA/133
[    9.385560][  T114] ata2.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    9.395597][  T114] ata2.00: configured for UDMA/133
[    9.410996][   T23] scsi 1:0:0:0: Direct-Access     ATA      WDC WD20EZRX-00D 0A80 PQ: 0 ANSI: 5
[    9.420572][  T116] sd 1:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[    9.429346][  T116] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[    9.435356][  T116] sd 1:0:0:0: [sdb] Write Protect is off
[    9.440988][  T116] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    9.514806][  T116] GPT:Primary header thinks Alt. header is not at the end of the disk.
[    9.522966][  T116] GPT:3907029166 != 3907029167
[    9.527602][  T116] GPT:Alternate GPT header not at the end of the disk.
[    9.534350][  T116] GPT:3907029166 != 3907029167
[    9.538994][  T116] GPT: Use GNU Parted to correct GPT errors.
[    9.544909][  T116]  sdb: sdb1 sdb2
[    9.549780][  T116] sd 1:0:0:0: [sdb] Attached SCSI disk
[    9.558056][    T1] Freeing unused kernel memory: 1024K
[    9.579071][    T1] Checked W+X mappings: passed, no W+X pages found
[    9.585452][    T1] Run /init as init process
Loading, please wait...
Starting version 241
[   10.159366][  T174] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[   10.181251][  T116] scsi 2:0:0:0: Direct-Access              USB DISK 2.0          PQ: 0 ANSI: 4
[   10.210451][   T23] sd 2:0:0:0: [sdc] 15124992 512-byte logical blocks: (7.74 GB/7.21 GiB)
[   10.235947][   T23] sd 2:0:0:0: [sdc] Write Protect is off
[   10.245324][   T23] sd 2:0:0:0: [sdc] No Caching mode page found
[   10.257728][   T23] sd 2:0:0:0: [sdc] Assuming drive cache: write through
[   10.280826][   T23]  sdc: sdc1 sdc2
[   10.289193][   T23] sd 2:0:0:0: [sdc] Attached SCSI removable disk
[   10.350551][  T174] usbcore: registered new interface driver uas
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.33.1
[/sbin/fsck.ext3 (1) -- /dev/sdc1] fsck.ext3 -a -C0 /dev/sdc1
rootfs: clean, 17643/406400 files, 234191/1624744 blocks
done.
[   24.235091][  T196] EXT4-fs (sdc1): mounting ext3 file system using the ext4 subsystem
[   24.418834][  T196] EXT4-fs (sdc1): mounted filesystem with ordered data mode. Opts: (null)
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.
[   25.802803][    C0] random: crng init done
[ ok ] Starting hotplug events dispatcher: systemd-udevd.
[ ok ] Synthesizing the initial hotplug events (subsystems)...done.
[ ok ] Synthesizing the initial hotplug events (devices)...done.
[....] Waiting for /dev to be fully populated...[   27.158467][  T379] systemd-udevd[379]: Using default interface naming scheme 'v240'.
[   27.263169][  T379] systemd-udevd[379]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   27.445695][  T376] watchdog: f1020300.watchdog-timer: driver supplied timeout (4294967295) out of range
[   27.484700][  T377] adt7475 0-002e: hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[   27.596662][  T376] watchdog: f1020300.watchdog-timer: falling back to default timeout (21)
[   27.633820][  T375] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   27.685219][  T377] adt7475 0-002e: ADT7473 device, revision 0
[   27.748861][  T395] marvell-cesa f1030000.crypto: CESA device successfully registered
[   27.767104][  T375] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   27.774366][  T376] orion_wdt: Initial timeout 21 sec
[   27.789517][  T377] adt7475 0-002e: Optional features: pwm2
[   27.822487][  T375] sd 2:0:0:0: Attached scsi generic sg2 type 0
[   28.050643][  T375] systemd-udevd[375]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
done.
[ ok ] Setting hostname to 'debian'...done.
[ ok ] Activating swap:.
[   29.010949][  T596] EXT4-fs (sdc1): re-mounted. Opts: errors=remount-ro
[info] Will now check all file systems.
fsck from util-linux 2.33.1
Checking all file systems.
LABEL=rootfs is mounted
[ ok ] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable..
[ 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/

Listening on LPF/eth0/00:d0:b8:28:76:76
Sending on   LPF/eth0/00:d0:b8:28:76:76
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
[   34.825087][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 20
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
DHCPOFFER of 10.0.0.100 from 10.0.0.31
DHCPREQUEST for 10.0.0.100 on eth0 to 255.255.255.255 port 67
DHCPACK of 10.0.0.100 from 10.0.0.31
bound to 10.0.0.100 -- renewal in 260923 seconds.
done.
[....] Starting RPC port mapper daemon: rpcbind[   59.024472][ T1198] NET: Registered protocol family 10
[   59.031154][ T1198] 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...
1337 (syslogd)
. ok
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1364 (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: root
Password:
Last login: Wed Jun 30 21:34:17 PDT 2021 on ttyS0
Linux debian 5.2.9-kirkwood-tld-1 #1 PREEMPT Sat Aug 17 15:00:56 PDT 2019 armv5tel

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

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@debian:~# cat /etc/fw_env.config
# MTD device name       Device offset   Env. size       Flash sector size       Number of sectors
/dev/mtd1 0x0 0x1000 0x1000
root@debian:~# fw_printenv
Warning: Bad CRC, using default environment
bootcmd=run distro_bootcmd
bootdelay=2
baudrate=115200
stdin=serial,cros-ec-keyb,usbkbd
stdout=serial,vidconsole
stderr=serial,vidconsole
ethaddr=00:00:11:22:33:44
eth1addr=00:00:11:22:33:45
eth3addr=00:00:11:22:33:46
eth5addr=00:00:11:22:33:47
ipaddr=1.2.3.4
host_boot=if host dev ${devnum}; then setenv devtype host; run scan_dev_for_boot_part; fi
sata_boot=if sata dev ${devnum}; then setenv devtype sata; run scan_dev_for_boot_part; fi
scsi_init=if ${scsi_need_init}; then setenv scsi_need_init false; scsi scan; fi
scsi_boot=run scsi_init; if scsi dev ${devnum}; then setenv devtype scsi; run scan_dev_for_boot_part; fi
virtio_boot=if virtio dev ${devnum}; then setenv devtype virtio; run scan_dev_for_boot_part; fi
boot_prefixes=/ /boot/
boot_scripts=boot.scr.uimg boot.scr
boot_script_dhcp=boot.scr.uimg
boot_targets=host1 host0
boot_syslinux_conf=extlinux/extlinux.conf
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}${boot_syslinux_conf}
scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${boot_syslinux_conf}; then echo Found ${prefix}${boot_syslinux_conf}; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done;
scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done
bootcmd_host1=setenv devnum 1; run host_boot
bootcmd_host0=setenv devnum 0; run host_boot
distro_bootcmd=setenv scsi_need_init; for target in ${boot_targets}; do run bootcmd_${target}; done
bootm_size=0x10000000
kernel_addr_r=0x1000000
fdt_addr_r=0xc00000
ramdisk_addr_r=0x2000000
scriptaddr=0x1000
pxefile_addr_r=0x2000
root@debian:~#

Thanks
Codier
Re: Lenovo ix2-ng to put Debian Stretch and OMV4
July 02, 2021 05:06AM
Hi, the ix2 has some quirks. Try these offsets to read configure inside Debian

# MTD device name Device offset Env. size Flash sector size $
/dev/mtd1 0x0000 0x20000 0x20000
/dev/mtd2 0x0000 0x20000 0x20000
Re: Lenovo ix2-ng to put Debian Stretch and OMV4
July 02, 2021 08:52AM
Hi jdwl101,

Thanks for your hints. It gave me something new now.

root@debian:~# cat /etc/fw_env.config
# MTD device name       Device offset   Env. size       Flash sector size       Number of sectors
/dev/mtd1 0x0000 0x20000 0x20000
/dev/mtd2 0x0000 0x20000 0x20000
root@debian:~# fw_printenv
Read error on /dev/mtd1: Success

By the way, I remember I saw your post before and I think your have ix2-dl. mine is ix2-ng. Are they save the env the save location?



Edited 1 time(s). Last edit at 07/02/2021 09:00AM by codier.
Re: Lenovo ix2-ng to put Debian Stretch and OMV4
July 02, 2021 02:43PM
@J,

This is SPI flash so the sector size is different. It should be either 4K or 64K

@codier,

The reason was the mtdparts was not passed properly into the kernel. I had a typo! Let me rewrite the envs.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Lenovo ix2-ng to put Debian Stretch and OMV4
July 02, 2021 02:54PM
codier,

1. In serial console set these 2 variables:

setenv bootargs_mtd 'mtdparts=spi0.0:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2)'
setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $(bootargs_mtd) earlyprintk=serial'

And repeat the other setenvs in serial console like before. And boot into Debian.


2. After booted into Debian, edit the fw_env.config file to have this conntent (this is same as posted before)
# MTD device name	Device offset	Env. size	Flash sector size	Number of sectors
/dev/mtd1 0x0 0x1000 0x1000

And then check the mtd partitions to see if they are what we expected (should be 3 mtds)
cat /proc/mtd

And try to list the envs
fw_printenv

If you can see the envs listed correctly like in serial console, then it's all good.

If you cannot see the envs or some error occurs, then try 64K flash sector in the fw_env.config

# MTD device name	Device offset	Env. size	Flash sector size	Number of sectors
/dev/mtd1 0x0 0x1000 0x10000
And then try to list the envs again
fw_printenv

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Lenovo ix2-ng to put Debian Stretch and OMV4
July 02, 2021 10:36PM
Hi Bodhi,

Still no luck. None of them works.

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
kernelimage=zImage
initrdimage=mfginitrd
ipaddr=192.168.1.2
mfgmodel=ix2
preroot_ver=0.0.2
bootcmd2=ide dev 1;ide read 0x40000 0x800 0x1800; ide read 0x900000 0x2000 0x1800; bootm 0x40000 0x900000;
uboot_ver=0.0.8
serial_number=5563Y01001G4130044CJ0D1
ethaddr=00:D0:B8:28:76:76
serialNo=SM10G0885942200209
modelname=SM10G08859
fw_ver=4.0.8.23976
serialno=0,01fCt+rC6JS6RqbhasnbzGZRgdN+gIw6GJr8x5N2mfDwoThRpoo00APsDyzEtS72UY,SM10G0885942200209,
runintime=10800
ftpserver=192.168.43.4
testfile=100M
mfgtest_state=system_tested_ok
pre_path=IX2/1.1.0/download_runin.sh
pre_path_conf=IX2/1.1.0/download_runin.conf
pre_serverip=192.168.32.4
pre_user=ixxrunin
pre_passwd=123
pre_dirzi=IX2/1.1.0
serverip=192.168.32.4
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_mtd=mtdparts=spi0.0:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2)
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $(bootargs_mtd) earlyprintk=serial
load_uimage=ext2load usb 0:1 0x800000 /boot/uImage
load_uinitrd=ext2load usb 0:1 0x2100000 /boot/uInitrd
usb_boot=mw 0x800000 0 1; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000
usb_bootcmd=run usb_set_bootargs; run usb_boot
bootcmd=usb start; run usb_bootcmd; usb stop; reset

Environment size: 2212/4091 bytes
Marvell>> boot


root@debian:~# cat /etc/fw_env.config
# MTD device name       Device offset   Env. size       Flash sector size       Number of sectors
/dev/mtd1 0x0 0x1000 0x1000
root@debian:~# fw_printenv
Warning: Bad CRC, using default environment
bootcmd=run distro_bootcmd
bootdelay=2
baudrate=115200
stdin=serial,cros-ec-keyb,usbkbd
stdout=serial,vidconsole
stderr=serial,vidconsole
ethaddr=00:00:11:22:33:44
eth1addr=00:00:11:22:33:45
eth3addr=00:00:11:22:33:46
eth5addr=00:00:11:22:33:47
ipaddr=1.2.3.4
host_boot=if host dev ${devnum}; then setenv devtype host; run scan_dev_for_boot_part; fi
sata_boot=if sata dev ${devnum}; then setenv devtype sata; run scan_dev_for_boot_part; fi
scsi_init=if ${scsi_need_init}; then setenv scsi_need_init false; scsi scan; fi
scsi_boot=run scsi_init; if scsi dev ${devnum}; then setenv devtype scsi; run scan_dev_for_boot_part; fi
virtio_boot=if virtio dev ${devnum}; then setenv devtype virtio; run scan_dev_for_boot_part; fi
boot_prefixes=/ /boot/
boot_scripts=boot.scr.uimg boot.scr
boot_script_dhcp=boot.scr.uimg
boot_targets=host1 host0
boot_syslinux_conf=extlinux/extlinux.conf
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}${boot_syslinux_conf}
scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${boot_syslinux_conf}; then echo Found ${prefix}${boot_syslinux_conf}; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done;
scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done
bootcmd_host1=setenv devnum 1; run host_boot
bootcmd_host0=setenv devnum 0; run host_boot
distro_bootcmd=setenv scsi_need_init; for target in ${boot_targets}; do run bootcmd_${target}; done
bootm_size=0x10000000
kernel_addr_r=0x1000000
fdt_addr_r=0xc00000
ramdisk_addr_r=0x2000000
scriptaddr=0x1000
pxefile_addr_r=0x2000
root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 0007e000 00010000 "u-boot"
mtd1: 00001000 00010000 "env"
mtd2: 00001000 00010000 "env2"

root@debian:~# cat /etc/fw_env.config
# MTD device name       Device offset   Env. size       Flash sector size       Number of sectors
/dev/mtd1 0x0 0x1000 0x10000
root@debian:~# fw_printenv
Warning: Bad CRC, using default environment
bootcmd=run distro_bootcmd
bootdelay=2
baudrate=115200
stdin=serial,cros-ec-keyb,usbkbd
stdout=serial,vidconsole
stderr=serial,vidconsole
ethaddr=00:00:11:22:33:44
eth1addr=00:00:11:22:33:45
eth3addr=00:00:11:22:33:46
eth5addr=00:00:11:22:33:47
ipaddr=1.2.3.4
host_boot=if host dev ${devnum}; then setenv devtype host; run scan_dev_for_boot_part; fi
sata_boot=if sata dev ${devnum}; then setenv devtype sata; run scan_dev_for_boot_part; fi
scsi_init=if ${scsi_need_init}; then setenv scsi_need_init false; scsi scan; fi
scsi_boot=run scsi_init; if scsi dev ${devnum}; then setenv devtype scsi; run scan_dev_for_boot_part; fi
virtio_boot=if virtio dev ${devnum}; then setenv devtype virtio; run scan_dev_for_boot_part; fi
boot_prefixes=/ /boot/
boot_scripts=boot.scr.uimg boot.scr
boot_script_dhcp=boot.scr.uimg
boot_targets=host1 host0
boot_syslinux_conf=extlinux/extlinux.conf
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}${boot_syslinux_conf}
scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${boot_syslinux_conf}; then echo Found ${prefix}${boot_syslinux_conf}; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done;
scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done
bootcmd_host1=setenv devnum 1; run host_boot
bootcmd_host0=setenv devnum 0; run host_boot
distro_bootcmd=setenv scsi_need_init; for target in ${boot_targets}; do run bootcmd_${target}; done
bootm_size=0x10000000
kernel_addr_r=0x1000000
fdt_addr_r=0xc00000
ramdisk_addr_r=0x2000000
scriptaddr=0x1000
pxefile_addr_r=0x2000
root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 0007e000 00010000 "u-boot"
mtd1: 00001000 00010000 "env"
mtd2: 00001000 00010000 "env2"

Re: Lenovo ix2-ng to put Debian Stretch and OMV4
July 02, 2021 10:54PM
codier,

> Still no luck. None of them works.
>

Please post the boot log like you did before.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Lenovo ix2-ng to put Debian Stretch and OMV4
July 02, 2021 11:24PM
Hi Bodhi,

Please see the boot log.

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
kernelimage=zImage
initrdimage=mfginitrd
ipaddr=192.168.1.2
mfgmodel=ix2
preroot_ver=0.0.2
bootcmd2=ide dev 1;ide read 0x40000 0x800 0x1800; ide read 0x900000 0x2000 0x1800; bootm 0x40000 0x900000;
uboot_ver=0.0.8
serial_number=5563Y01001G4130044CJ0D1
ethaddr=00:D0:B8:28:76:76
serialNo=SM10G0885942200209
modelname=SM10G08859
fw_ver=4.0.8.23976
serialno=0,01fCt+rC6JS6RqbhasnbzGZRgdN+gIw6GJr8x5N2mfDwoThRpoo00APsDyzEtS72UY,SM10G0885942200209,
runintime=10800
ftpserver=192.168.43.4
testfile=100M
mfgtest_state=system_tested_ok
pre_path=IX2/1.1.0/download_runin.sh
pre_path_conf=IX2/1.1.0/download_runin.conf
pre_serverip=192.168.32.4
pre_user=ixxrunin
pre_passwd=123
pre_dirzi=IX2/1.1.0
serverip=192.168.32.4
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_mtd=mtdparts=spi0.0:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2)
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $(bootargs_mtd) earlyprintk=serial
load_uimage=ext2load usb 0:1 0x800000 /boot/uImage
load_uinitrd=ext2load usb 0:1 0x2100000 /boot/uInitrd
usb_boot=mw 0x800000 0 1; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000
usb_bootcmd=run usb_set_bootargs; run usb_boot
bootcmd=usb start; run usb_bootcmd; usb stop; reset

Environment size: 2212/4091 bytes
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
....
.
......
............
.........................
...................................................
......................................................................................................
............................................................................................................................................................................................................
....
.......................................................................

4976325 bytes read
....
.
......
............
.........................
...................................................
......................................................................................................
............................................................................................................................................................................................................
....
....................................................................................................................................................................................................................................................................................................................................................................................................................
....
....................................................................................................................................

9790237 bytes read
## Booting image at 00800000 ...
   Image Name:   Linux-5.2.9-kirkwood-tld-1
   Created:      2021-06-27   3:00:52 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4976261 Bytes =  4.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 02100000 ...
   Image Name:   initramfs-5.2.9-kirkwood-tld-1
   Created:      2021-06-28   3:15:14 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9790173 Bytes =  9.3 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

[    8.251642][    T1] printk: console [ttyS0] enabled
[    8.261420][    T1] printk: bootconsole [earlycon0] disabled
[    8.278664][    T1] loop: module loaded
[    8.282981][    T1] sata_mv f1080000.sata: slots 32 ports 2
[    8.290715][    T1] scsi host0: sata_mv
[    8.295011][    T1] scsi host1: sata_mv
[    8.299139][    T1] ata1: SATA max UDMA/133 irq 34
[    8.303950][    T1] ata2: SATA max UDMA/133 irq 34
[    8.310171][    T1] m25p80 spi0.0: mx25l8005 (1024 Kbytes)
[    8.315700][    T1] 3 cmdlinepart partitions found on MTD device spi0.0
[    8.322383][    T1] Creating 3 MTD partitions on "spi0.0":
[    8.327898][    T1] 0x000000000000-0x00000007e000 : "u-boot"
[    8.333596][    T1] mtd: partition "u-boot" doesn't end on an erase/write block -- force read-only
[    8.343631][    T1] 0x00000007f000-0x000000080000 : "env"
[    8.349093][    T1] mtd: partition "env" doesn't start on an erase/write block boundary -- force read-only
[    8.359761][    T1] 0x00000007e000-0x00000007f000 : "env2"
[    8.365269][    T1] mtd: partition "env2" doesn't start on an erase/write block boundary -- force read-only
[    8.376928][    T1] libphy: Fixed MDIO Bus: probed
[    8.382376][    T1] libphy: orion_mdio_bus: probed
[    8.398136][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    8.406106][    T1] mv643xx_eth_port mv643xx_eth_port.0: DMA mask not set
[    8.414095][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:d0:b8:28:76:76
[    8.423723][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.431053][    T1] ehci-pci: EHCI PCI platform driver
[    8.436257][    T1] ehci-orion: EHCI orion driver
[    8.441170][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[    8.447393][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    8.455953][    T1] orion-ehci f1050000.ehci: irq 31, io mem 0xf1050000
[    8.488578][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    8.495512][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[    8.504533][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.512495][    T1] usb usb1: Product: EHCI Host Controller
[    8.518097][    T1] usb usb1: Manufacturer: Linux 5.2.9-kirkwood-tld-1 ehci_hcd
[    8.525453][    T1] usb usb1: SerialNumber: f1050000.ehci
[    8.531383][    T1] hub 1-0:1.0: USB hub found
[    8.535879][    T1] hub 1-0:1.0: 1 port detected
[    8.541103][    T1] usbcore: registered new interface driver usb-storage
[    8.548143][    T1] mousedev: PS/2 mouse device common for all mice
[    8.554945][    T1] rtc-mv f1010300.rtc: registered as rtc0
[    8.560714][    T1] i2c /dev entries driver
[    8.566091][    T1] device-mapper: uevent: version 1.0.3
[    8.571732][    T1] device-mapper: ioctl: 4.40.0-ioctl (2019-01-18) initialised: dm-devel@redhat.com
[    8.581252][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    8.588543][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    8.595942][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    8.603380][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    8.610233][    T1] device-mapper: raid: Loading target version 1.14.0
[    8.617920][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[    8.624336][    T1] drop_monitor: Initializing network drop monitor service
[    8.631607][    T1] NET: Registered protocol family 17
[    8.636986][    T1] Key type dns_resolver registered
[    8.642731][    T1] registered taskstats version 1
[    8.647543][    T1] Loading compiled-in X.509 certificates
[    8.653232][    T1] zswap: loaded using pool lzo/zbud
[    8.728372][    T1] Key type big_key registered
[    8.765125][    T1] Key type encrypted registered
[    8.771651][    T1] rtc-mv f1010300.rtc: setting system clock to 2021-07-03T03:24:04 UTC (1625282644)
[    8.808591][  T112] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    8.818044][  T112] ata1.00: ATA-9: WDC WD20EZRX-00D8PB0, 80.00A80, max UDMA/133
[    8.825500][  T112] ata1.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    8.835559][  T112] ata1.00: configured for UDMA/133
[    8.851053][    T7] scsi 0:0:0:0: Direct-Access     ATA      WDC WD20EZRX-00D 0A80 PQ: 0 ANSI: 5
[    8.860664][  T116] sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[    8.869543][  T116] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    8.875586][  T116] sd 0:0:0:0: [sda] Write Protect is off
[    8.881247][  T116] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    8.908583][   T15] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    8.971609][  T116]  sda: sda1 sda2
[    8.976447][  T116] sd 0:0:0:0: [sda] Attached SCSI disk
[    9.112462][   T15] usb 1-1: New USB device found, idVendor=13fe, idProduct=4100, bcdDevice= 1.00
[    9.121413][   T15] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    9.129324][   T15] usb 1-1: Product: USB DISK 2.0
[    9.134138][   T15] usb 1-1: Manufacturer:
[    9.139071][   T15] usb 1-1: SerialNumber: 070239F129000800
[    9.145362][   T15] usb-storage 1-1:1.0: USB Mass Storage device detected
[    9.152572][   T15] scsi host2: usb-storage 1-1:1.0
[    9.368592][  T114] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    9.378006][  T114] ata2.00: ATA-9: WDC WD20EZRX-00D8PB0, 80.00A80, max UDMA/133
[    9.385462][  T114] ata2.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    9.395499][  T114] ata2.00: configured for UDMA/133
[    9.410899][   T23] scsi 1:0:0:0: Direct-Access     ATA      WDC WD20EZRX-00D 0A80 PQ: 0 ANSI: 5
[    9.420479][  T116] sd 1:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[    9.429247][  T116] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[    9.435255][  T116] sd 1:0:0:0: [sdb] Write Protect is off
[    9.440888][  T116] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    9.507872][  T116] GPT:Primary header thinks Alt. header is not at the end of the disk.
[    9.516032][  T116] GPT:3907029166 != 3907029167
[    9.520680][  T116] GPT:Alternate GPT header not at the end of the disk.
[    9.527407][  T116] GPT:3907029166 != 3907029167
[    9.532051][  T116] GPT: Use GNU Parted to correct GPT errors.
[    9.537964][  T116]  sdb: sdb1 sdb2
[    9.542801][  T116] sd 1:0:0:0: [sdb] Attached SCSI disk
[    9.551107][    T1] Freeing unused kernel memory: 1024K
[    9.568977][    T1] Checked W+X mappings: passed, no W+X pages found
[    9.575359][    T1] Run /init as init process
Loading, please wait...
Starting version 241
[   10.127804][  T172] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[   10.181060][  T116] scsi 2:0:0:0: Direct-Access              USB DISK 2.0          PQ: 0 ANSI: 4
[   10.207639][   T23] sd 2:0:0:0: [sdc] 15124992 512-byte logical blocks: (7.74 GB/7.21 GiB)
[   10.224010][   T23] sd 2:0:0:0: [sdc] Write Protect is off
[   10.235006][   T23] sd 2:0:0:0: [sdc] No Caching mode page found
[   10.247043][   T23] sd 2:0:0:0: [sdc] Assuming drive cache: write through
[   10.269258][   T23]  sdc: sdc1 sdc2
[   10.277521][   T23] sd 2:0:0:0: [sdc] Attached SCSI removable disk
[   10.332295][  T174] usbcore: registered new interface driver uas
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.33.1
[/sbin/fsck.ext3 (1) -- /dev/sdc1] fsck.ext3 -a -C0 /dev/sdc1
rootfs: clean, 17644/406400 files, 234195/1624744 blocks
done.
[   21.283279][  T196] EXT4-fs (sdc1): mounting ext3 file system using the ext4 subsystem
[   21.466571][  T196] EXT4-fs (sdc1): mounted filesystem with ordered data mode. Opts: (null)
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.
[....] Starting hotplug events dispatcher: systemd-udevd[   23.325609][    C0] random: crng init done
. ok
[ ok ] Synthesizing the initial hotplug events (subsystems)...done.
[ ok ] Synthesizing the initial hotplug events (devices)...done.
[   24.177501][  T389] systemd-udevd[389]: Using default interface naming scheme 'v240'.
[....] Waiting for /dev to be fully populated...[   24.342112][  T389] systemd-udevd[389]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   24.416272][  T386] adt7475 0-002e: hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[   24.451000][  T387] watchdog: f1020300.watchdog-timer: driver supplied timeout (4294967295) out of range
[   24.566067][  T387] watchdog: f1020300.watchdog-timer: falling back to default timeout (21)
[   24.601697][  T386] adt7475 0-002e: ADT7473 device, revision 0
[   24.607581][  T386] adt7475 0-002e: Optional features: pwm2
[   24.722043][  T387] orion_wdt: Initial timeout 21 sec
[   24.754128][  T378] marvell-cesa f1030000.crypto: CESA device successfully registered
[   24.762242][  T376] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   24.808047][  T376] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   24.870333][  T376] sd 2:0:0:0: Attached scsi generic sg2 type 0
[   25.088910][  T387] systemd-udevd[387]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
done.
[ ok ] Setting hostname to 'debian'...done.
[ ok ] Activating swap:.
[   26.057882][  T596] EXT4-fs (sdc1): re-mounted. Opts: errors=remount-ro
[info] Will now check all file systems.
fsck from util-linux 2.33.1
Checking all file systems.
LABEL=rootfs is mounted
[ ok ] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable..
[ 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/

Listening on LPF/eth0/00:d0:b8:28:76:76
Sending on   LPF/eth0/00:d0:b8:28:76:76
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
[   31.910392][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPOFFER of 10.0.0.100 from 10.0.0.31
DHCPREQUEST for 10.0.0.100 on eth0 to 255.255.255.255 port 67
DHCPACK of 10.0.0.100 from 10.0.0.31
bound to 10.0.0.100 -- renewal in 336348 seconds.
done.
[....] Starting RPC port mapper daemon: rpcbind[   52.294940][ T1198] NET: Registered protocol family 10
[   52.301641][ T1198] 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...
1338 (syslogd)
. ok
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1365 (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


Re: Lenovo ix2-ng to put Debian Stretch and OMV4
July 02, 2021 11:39PM
So this was the reason:

[    8.310171][    T1] m25p80 spi0.0: mx25l8005 (1024 Kbytes)
[    8.315700][    T1] 3 cmdlinepart partitions found on MTD device spi0.0
[    8.322383][    T1] Creating 3 MTD partitions on "spi0.0":
[    8.327898][    T1] 0x000000000000-0x00000007e000 : "u-boot"
[    8.333596][    T1] mtd: partition "u-boot" doesn't end on an erase/write block -- force read-only
[    8.343631][    T1] 0x00000007f000-0x000000080000 : "env"
[    8.349093][    T1] mtd: partition "env" doesn't start on an erase/write block boundary -- force read-only
[    8.359761][    T1] 0x00000007e000-0x00000007f000 : "env2"
[    8.365269][    T1] mtd: partition "env2" doesn't start on an erase/write block boundary -- force read-only

It seems the kernel thinks it is a 64K sector flash, not 4k. Let me look at this a bit closer.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Lenovo ix2-ng to put Debian Stretch and OMV4
July 02, 2021 11:47PM
Hi bodhi,

Is it because the flash is too small? my ix2-ng has only 1MB flash versus ix2-dl has 1GB. ix2-dl has already been digged into it. At least I saw few posts regarding to this model.

Codier



Edited 1 time(s). Last edit at 07/02/2021 11:48PM by codier.
Re: Lenovo ix2-ng to put Debian Stretch and OMV4
July 03, 2021 12:00AM
Codier,

No, your flash is 1MB, and the stock mtd definition fits within that:

bootargs_mtd=mtdparts=spi0.0:
0x7e000@0(u-boot),           504k
0x1000@0x7f000(env),       4k
0x1000@0x7e000(env2)     4k

So if the kernel did not like it, we probably need to redefine the mtdparts and fw_env.config.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Lenovo ix2-ng to put Debian Stretch and OMV4
July 03, 2021 11:05AM
Hi Bodhi,

I have no clue how to redefine the mtdparts and fw_env.config with my poor linux knowledge >_<.

Codier
Re: Lenovo ix2-ng to put Debian Stretch and OMV4
July 03, 2021 03:08PM
Codier,

In serial console, change the env bootargs_mtd
setenv bootargs_mtd 'mtdparts=spi0.0:0x0@0(u-boot)'

And boot into Debian, modify the fw_env.config

cat /etc/fw_env.config
# MTD device name       Device offset   Env. size       Flash sector size       Number of sectors
/dev/mtd0 0x7f000 0x1000 0x1000
And then test it
fw_printenv

Also, your log got cut off at the beginning so I could not tell which DTB file was used.

Starting kernel ...

[    8.251642][    T1] printk: console [ttyS0] enabled

Please run dmesg to get the complete log, and post the first ~8.3 seconds of dmesg log (the missing part before 8.251642) here .

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Lenovo ix2-ng to put Debian Stretch and OMV4
July 03, 2021 03:35PM
Hi Bodhi,

It's still the same.

env
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
kernelimage=zImage
initrdimage=mfginitrd
ipaddr=192.168.1.2
mfgmodel=ix2
preroot_ver=0.0.2
bootcmd2=ide dev 1;ide read 0x40000 0x800 0x1800; ide read 0x900000 0x2000 0x1800; bootm 0x40000 0x900000;
uboot_ver=0.0.8
serial_number=5563Y01001G4130044CJ0D1
ethaddr=00:D0:B8:28:76:76
serialNo=SM10G0885942200209
modelname=SM10G08859
fw_ver=4.0.8.23976
serialno=0,01fCt+rC6JS6RqbhasnbzGZRgdN+gIw6GJr8x5N2mfDwoThRpoo00APsDyzEtS72UY,SM10G0885942200209,
runintime=10800
ftpserver=192.168.43.4
testfile=100M
mfgtest_state=system_tested_ok
pre_path=IX2/1.1.0/download_runin.sh
pre_path_conf=IX2/1.1.0/download_runin.conf
pre_serverip=192.168.32.4
pre_user=ixxrunin
pre_passwd=123
pre_dirzi=IX2/1.1.0
serverip=192.168.32.4
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_mtd=mtdparts=spi0.0:0x0@0(u-boot)
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $(bootargs_mtd) earlyprintk=serial
load_uimage=ext2load usb 0:1 0x800000 /boot/uImage
load_uinitrd=ext2load usb 0:1 0x2100000 /boot/uInitrd
usb_boot=mw 0x800000 0 1; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000
usb_bootcmd=run usb_set_bootargs; run usb_boot
bootcmd=usb start; run usb_bootcmd; usb stop; reset

Environment size: 2167/4091 bytes


root@debian:~# cat /etc/fw_env.config
# MTD device name       Device offset   Env. size       Flash sector size       Number of sectors
/dev/mtd0 0x7f000 0x1000 0x1000
root@debian:~# fw_printenv
Warning: Bad CRC, using default environment
bootcmd=run distro_bootcmd
bootdelay=2
baudrate=115200
stdin=serial,cros-ec-keyb,usbkbd
stdout=serial,vidconsole
stderr=serial,vidconsole
ethaddr=00:00:11:22:33:44
eth1addr=00:00:11:22:33:45
eth3addr=00:00:11:22:33:46
eth5addr=00:00:11:22:33:47
ipaddr=1.2.3.4
host_boot=if host dev ${devnum}; then setenv devtype host; run scan_dev_for_boot_part; fi
sata_boot=if sata dev ${devnum}; then setenv devtype sata; run scan_dev_for_boot_part; fi
scsi_init=if ${scsi_need_init}; then setenv scsi_need_init false; scsi scan; fi
scsi_boot=run scsi_init; if scsi dev ${devnum}; then setenv devtype scsi; run scan_dev_for_boot_part; fi
virtio_boot=if virtio dev ${devnum}; then setenv devtype virtio; run scan_dev_for_boot_part; fi
boot_prefixes=/ /boot/
boot_scripts=boot.scr.uimg boot.scr
boot_script_dhcp=boot.scr.uimg
boot_targets=host1 host0
boot_syslinux_conf=extlinux/extlinux.conf
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}${boot_syslinux_conf}
scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${boot_syslinux_conf}; then echo Found ${prefix}${boot_syslinux_conf}; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done;
scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done
bootcmd_host1=setenv devnum 1; run host_boot
bootcmd_host0=setenv devnum 0; run host_boot
distro_bootcmd=setenv scsi_need_init; for target in ${boot_targets}; do run bootcmd_${target}; done
bootm_size=0x10000000
kernel_addr_r=0x1000000
fdt_addr_r=0xc00000
ramdisk_addr_r=0x2000000
scriptaddr=0x1000
pxefile_addr_r=0x2000

dmesg log
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] 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] 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
[    0.000000] printk: bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 65536
[    0.000000]   Normal zone: 512 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 65536 pages, LIFO batch:15
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=spi0.0:0x0@0(u-boot) earlyprintk=serial
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 234704K/262144K available (9216K kernel code, 868K rwdata, 3400K rodata, 1024K init, 301K bss, 27440K reserved, 0K cma-reserved)
[    0.000000] random: get_random_u32 called from cache_alloc_refill+0x38c/0x928 with crng_init=0
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000007] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.008509] Switching to timer-based delay loop, resolution 5ns
[    0.015663] Console: colour dummy device 80x30
[    0.020843] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.032047] pid_max: default: 32768 minimum: 301
[    0.037609] LSM: Security Framework initializing
[    0.043068] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.050384] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.058790] *** VALIDATE proc ***
[    0.062972] *** VALIDATE cgroup1 ***
[    0.067229] *** VALIDATE cgroup2 ***
[    0.071577] CPU: Testing write buffer coherency: ok
[    0.078437] Setting up static identity map for 0x100000 - 0x100058
[    0.085552] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.091592] rcu: Hierarchical SRCU implementation.
[    0.099508] devtmpfs: initialized
[    0.108145] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.118684] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.125664] xor: measuring software checksum speed
[    0.228529]    arm4regs  :  1446.000 MB/sec
[    0.328532]    8regs     :   868.000 MB/sec
[    0.428530]    32regs    :  1262.000 MB/sec
[    0.433390] xor: using function: arm4regs (1446.000 MB/sec)
[    0.439660] prandom: seed boundary self test passed
[    0.448345] prandom: 100 self tests passed
[    0.453141] pinctrl core: initialized pinctrl subsystem
[    0.460157] NET: Registered protocol family 16
[    0.465701] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.473889] audit: initializing netlink subsys (disabled)
[    0.480948] audit: type=2000 audit(0.460:1): state=initialized audit_enabled=0 res=1
[    0.489457] cpuidle: using governor ladder
[    0.494284] cpuidle: using governor menu
[    0.499338] Feroceon L2: Enabling L2
[    0.503618] Feroceon L2: Cache support initialised.
[    0.513985] No ATAGs?
[    2.578515] random: fast init done
[    4.965287] alg: No test for lzo-rle (lzo-rle-generic)
[    4.971469] alg: No test for lzo-rle (lzo-rle-scomp)
[    5.148766] raid6: int32x8  gen()   170 MB/s
[    5.318655] raid6: int32x8  xor()   115 MB/s
[    5.488556] raid6: int32x4  gen()   171 MB/s
[    5.658625] raid6: int32x4  xor()   111 MB/s
[    5.828573] raid6: int32x2  gen()   176 MB/s
[    5.998598] raid6: int32x2  xor()   125 MB/s
[    6.168704] raid6: int32x1  gen()   133 MB/s
[    6.338619] raid6: int32x1  xor()    91 MB/s
[    6.343553] raid6: using algorithm int32x2 gen() 176 MB/s
[    6.349621] raid6: .... xor() 125 MB/s, rmw enabled
[    6.355164] raid6: using intx1 recovery algorithm
[    6.360741] vgaarb: loaded
[    6.364518] SCSI subsystem initialized
[    6.369146] libata version 3.00 loaded.
[    6.369346] usbcore: registered new interface driver usbfs
[    6.375540] usbcore: registered new interface driver hub
[    6.381611] usbcore: registered new device driver usb
[    6.387449] pps_core: LinuxPPS API ver. 1 registered
[    6.393094] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    6.402901] PTP clock support registered
[    6.408559] clocksource: Switched to clocksource orion_clocksource
[    7.192502] VFS: Disk quotas dquot_6.6.0
[    7.197161] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    7.212302] NET: Registered protocol family 2
[    7.217976] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    7.226373] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    7.234057] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    7.241124] TCP: Hash tables configured (established 2048 bind 2048)
[    7.248205] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    7.254737] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    7.261867] NET: Registered protocol family 1
[    7.267394] RPC: Registered named UNIX socket transport module.
[    7.274041] RPC: Registered udp transport module.
[    7.279429] RPC: Registered tcp transport module.
[    7.284803] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    7.291915] PCI: CLS 0 bytes, default 32
[    7.296696] Trying to unpack rootfs image as initramfs...
[    7.943494] Freeing initrd memory: 9564K
[    7.948256] NetWinder Floating Point Emulator V0.97 (double precision)
[    7.956508] Initialise system trusted keyrings
[    7.961723] Key type blacklist registered
[    7.966578] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    7.973807] zbud: loaded
[    7.977871] NFS: Registering the id_resolver key type
[    7.983671] Key type id_resolver registered
[    7.988522] Key type id_legacy registered
[    7.993244] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    8.000623] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    8.007864] jffs2: version 2.2. (NAND) (SUMMARY)  \xc2\xa9 2001-2006 Red Hat, Inc.
[    8.015756] fuse: init (API version 7.31)
[    8.020760] orangefs_debugfs_init: called with debug mask: :none: :0:
[    8.028000] orangefs_init: module version upstream loaded
[    8.034089] SGI XFS with ACLs, security attributes, realtime, scrub, no debug enabled
[    8.055777] async_tx: api initialized (async)
[    8.060889] Key type asymmetric registered
[    8.065652] Asymmetric key parser 'x509' registered
[    8.071294] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    8.080544] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    8.090167] mv_xor f1060800.xor: Marvell shared XOR driver
[    8.149202] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    8.158771] mv_xor f1060900.xor: Marvell shared XOR driver
[    8.219190] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    8.228924] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    8.236925] printk: console [ttyS0] disabled
[    8.241973] f1012100.serial: ttyS0 at MMIO 0xf1012100 (irq = 27, base_baud = 12500000) is a 16550A
[    8.251651] printk: console [ttyS0] enabled
[    8.261436] printk: bootconsole [earlycon0] disabled
[    8.278671] loop: module loaded
[    8.282768] sata_mv f1080000.sata: version 1.28
[    8.282990] sata_mv f1080000.sata: slots 32 ports 2
[    8.290716] scsi host0: sata_mv
[    8.295018] scsi host1: sata_mv
[    8.299146] ata1: SATA max UDMA/133 irq 34
[    8.303958] ata2: SATA max UDMA/133 irq 34
[    8.310185] m25p80 spi0.0: mx25l8005 (1024 Kbytes)
[    8.315699] mtd: partition has size 0
[    8.320137] 3 fixed-partitions partitions found on MTD device spi0.0
[    8.327213] Creating 3 MTD partitions on "spi0.0":
[    8.332746] 0x000000000000-0x00000007e000 : "u-boot"
[    8.338427] mtd: partition "u-boot" doesn't end on an erase/write block -- force read-only
[    8.348475] 0x00000007e000-0x00000007f000 : "u-boot env2"
[    8.354631] mtd: partition "u-boot env2" doesn't start on an erase/write block boundary -- force read-only
[    8.366008] 0x00000007f000-0x000000080000 : "u-boot env"
[    8.372072] mtd: partition "u-boot env" doesn't start on an erase/write block boundary -- force read-only
[    8.384265] libphy: Fixed MDIO Bus: probed
[    8.389722] libphy: orion_mdio_bus: probed
[    8.405499] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    8.413464] mv643xx_eth_port mv643xx_eth_port.0: DMA mask not set
[    8.421464] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:d0:b8:28:76:76
[    8.431100] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.438380] ehci-pci: EHCI PCI platform driver
[    8.443625] ehci-orion: EHCI orion driver
[    8.448493] orion-ehci f1050000.ehci: EHCI Host Controller
[    8.454770] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    8.463345] orion-ehci f1050000.ehci: irq 31, io mem 0xf1050000
[    8.498585] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    8.505516] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[    8.514535] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.522505] usb usb1: Product: EHCI Host Controller
[    8.528106] usb usb1: Manufacturer: Linux 5.2.9-kirkwood-tld-1 ehci_hcd
[    8.535482] usb usb1: SerialNumber: f1050000.ehci
[    8.541406] hub 1-0:1.0: USB hub found
[    8.545897] hub 1-0:1.0: 1 port detected
[    8.551122] usbcore: registered new interface driver usb-storage
[    8.558165] mousedev: PS/2 mouse device common for all mice
[    8.564962] rtc-mv f1010300.rtc: registered as rtc0
[    8.570756] i2c /dev entries driver
[    8.576139] device-mapper: uevent: version 1.0.3
[    8.581766] device-mapper: ioctl: 4.40.0-ioctl (2019-01-18) initialised: dm-devel@redhat.com
[    8.591284] device-mapper: multipath round-robin: version 1.2.0 loaded
[    8.598607] device-mapper: multipath queue-length: version 0.2.0 loaded
[    8.605969] device-mapper: multipath service-time: version 0.3.0 loaded
[    8.613409] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    8.620268] device-mapper: raid: Loading target version 1.14.0
[    8.627947] hidraw: raw HID events driver (C) Jiri Kosina
[    8.634369] drop_monitor: Initializing network drop monitor service
[    8.641685] NET: Registered protocol family 17
[    8.647042] Key type dns_resolver registered
[    8.652726] registered taskstats version 1
[    8.657535] Loading compiled-in X.509 certificates
[    8.663221] zswap: loaded using pool lzo/zbud
[    8.738530] Key type big_key registered
[    8.775317] Key type encrypted registered
[    8.781850] rtc-mv f1010300.rtc: setting system clock to 2021-07-03T20:30:48 UTC (1625344248)
[    8.808607] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    8.818024] ata1.00: ATA-9: WDC WD20EZRX-00D8PB0, 80.00A80, max UDMA/133
[    8.825483] ata1.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    8.835546] ata1.00: configured for UDMA/133
[    8.850959] scsi 0:0:0:0: Direct-Access     ATA      WDC WD20EZRX-00D 0A80 PQ: 0 ANSI: 5
[    8.860577] sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[    8.869462] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    8.875497] sd 0:0:0:0: [sda] Write Protect is off
[    8.881054] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    8.881150] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    8.918597] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    8.968381]  sda: sda1 sda2
[    8.973242] sd 0:0:0:0: [sda] Attached SCSI disk
[    9.122474] usb 1-1: New USB device found, idVendor=13fe, idProduct=4100, bcdDevice= 1.00
[    9.131431] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    9.139346] usb 1-1: Product: USB DISK 2.0
[    9.144157] usb 1-1: Manufacturer:
[    9.149088] usb 1-1: SerialNumber: 070239F129000800
[    9.155375] usb-storage 1-1:1.0: USB Mass Storage device detected
[    9.162584] scsi host2: usb-storage 1-1:1.0
[    9.368600] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    9.378014] ata2.00: ATA-9: WDC WD20EZRX-00D8PB0, 80.00A80, max UDMA/133
[    9.385470] ata2.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    9.395507] ata2.00: configured for UDMA/133
[    9.410896] scsi 1:0:0:0: Direct-Access     ATA      WDC WD20EZRX-00D 0A80 PQ: 0 ANSI: 5
[    9.420477] sd 1:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[    9.429245] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[    9.435255] sd 1:0:0:0: [sdb] Write Protect is off
[    9.440794] sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[    9.440890] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    9.518182] GPT:Primary header thinks Alt. header is not at the end of the disk.
[    9.526346] GPT:3907029166 != 3907029167
[    9.530996] GPT:Alternate GPT header not at the end of the disk.
[    9.537724] GPT:3907029166 != 3907029167
[    9.542376] GPT: Use GNU Parted to correct GPT errors.
[    9.548289]  sdb: sdb1 sdb2
[    9.553118] sd 1:0:0:0: [sdb] Attached SCSI disk
[    9.561428] Freeing unused kernel memory: 1024K
[    9.578985] Checked W+X mappings: passed, no W+X pages found
[    9.585370] Run /init as init process
[   10.149834] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[   10.181074] scsi 2:0:0:0: Direct-Access              USB DISK 2.0          PQ: 0 ANSI: 4
[   10.201026] sd 2:0:0:0: [sdc] 15124992 512-byte logical blocks: (7.74 GB/7.21 GiB)
[   10.223774] sd 2:0:0:0: [sdc] Write Protect is off
[   10.235770] sd 2:0:0:0: [sdc] Mode Sense: 23 00 00 00
[   10.236273] sd 2:0:0:0: [sdc] No Caching mode page found
[   10.246166] sd 2:0:0:0: [sdc] Assuming drive cache: write through
[   10.267271]  sdc: sdc1 sdc2
[   10.277517] sd 2:0:0:0: [sdc] Attached SCSI removable disk
[   10.348169] usbcore: registered new interface driver uas
[   21.303418] EXT4-fs (sdc1): mounting ext3 file system using the ext4 subsystem
[   21.486590] EXT4-fs (sdc1): mounted filesystem with ordered data mode. Opts: (null)
[   23.371873] random: crng init done
[   24.143075] systemd-udevd[406]: Using default interface naming scheme 'v240'.
[   24.312529] systemd-udevd[406]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   24.443313] adt7475 0-002e: hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[   24.464543] watchdog: f1020300.watchdog-timer: driver supplied timeout (4294967295) out of range
[   24.586888] watchdog: f1020300.watchdog-timer: falling back to default timeout (21)
[   24.619920] adt7475 0-002e: ADT7473 device, revision 0
[   24.668511] adt7475 0-002e: Optional features: pwm2
[   24.689155] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   24.720044] orion_wdt: Initial timeout 21 sec
[   24.759431] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   24.850239] marvell-cesa f1030000.crypto: CESA device successfully registered
[   24.868859] sd 2:0:0:0: Attached scsi generic sg2 type 0
[   25.186126] systemd-udevd[379]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   26.244401] EXT4-fs (sdc1): re-mounted. Opts: errors=remount-ro
[   31.995137] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   37.504609] NET: Registered protocol family 10
[   37.511306] Segment Routing with IPv6

Re: Lenovo ix2-ng to put Debian Stretch and OMV4
July 03, 2021 05:37PM
Codier,

Try again
setenv bootargs_mtd 'mtdparts=spi0.0:0x100000(u-boot)'

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Lenovo ix2-ng to put Debian Stretch and OMV4
July 03, 2021 06:53PM
Hi Bodhi,

Still the same.

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
kernelimage=zImage
initrdimage=mfginitrd
ipaddr=192.168.1.2
mfgmodel=ix2
preroot_ver=0.0.2
bootcmd2=ide dev 1;ide read 0x40000 0x800 0x1800; ide read 0x900000 0x2000 0x1800; bootm 0x40000 0x900000;
uboot_ver=0.0.8
serial_number=5563Y01001G4130044CJ0D1
ethaddr=00:D0:B8:28:76:76
serialNo=SM10G0885942200209
modelname=SM10G08859
fw_ver=4.0.8.23976
serialno=0,01fCt+rC6JS6RqbhasnbzGZRgdN+gIw6GJr8x5N2mfDwoThRpoo00APsDyzEtS72UY,SM10G0885942200209,
runintime=10800
ftpserver=192.168.43.4
testfile=100M
mfgtest_state=system_tested_ok
pre_path=IX2/1.1.0/download_runin.sh
pre_path_conf=IX2/1.1.0/download_runin.conf
pre_serverip=192.168.32.4
pre_user=ixxrunin
pre_passwd=123
pre_dirzi=IX2/1.1.0
serverip=192.168.32.4
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_mtd=mtdparts=spi0.0:0x100000(u-boot)
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $(bootargs_mtd) earlyprintk=serial
load_uimage=ext2load usb 0:1 0x800000 /boot/uImage
load_uinitrd=ext2load usb 0:1 0x2100000 /boot/uInitrd
usb_boot=mw 0x800000 0 1; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000
usb_bootcmd=run usb_set_bootargs; run usb_boot
bootcmd=usb start; run usb_bootcmd; usb stop; reset

Environment size: 2170/4091 bytes
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
....
.
......
............
.........................
...................................................
......................................................................................................
............................................................................................................................................................................................................
....
.......................................................................

4976325 bytes read
....
.
......
............
.........................
...................................................
......................................................................................................
............................................................................................................................................................................................................
....
....................................................................................................................................................................................................................................................................................................................................................................................................................
....
....................................................................................................................................

9790237 bytes read
## Booting image at 00800000 ...
   Image Name:   Linux-5.2.9-kirkwood-tld-1
   Created:      2021-06-27   3:00:52 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4976261 Bytes =  4.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 02100000 ...
   Image Name:   initramfs-5.2.9-kirkwood-tld-1
   Created:      2021-06-28   3:15:14 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9790173 Bytes =  9.3 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

[    8.251624][    T1] printk: console [ttyS0] enabled
[    8.261402][    T1] printk: bootconsole [earlycon0] disabled
[    8.278651][    T1] loop: module loaded
[    8.282967][    T1] sata_mv f1080000.sata: slots 32 ports 2
[    8.290696][    T1] scsi host0: sata_mv
[    8.294989][    T1] scsi host1: sata_mv
[    8.299118][    T1] ata1: SATA max UDMA/133 irq 34
[    8.303931][    T1] ata2: SATA max UDMA/133 irq 34
[    8.310152][    T1] m25p80 spi0.0: mx25l8005 (1024 Kbytes)
[    8.315679][    T1] 1 cmdlinepart partitions found on MTD device spi0.0
[    8.322366][    T1] Creating 1 MTD partitions on "spi0.0":
[    8.327880][    T1] 0x000000000000-0x000000100000 : "u-boot"
[    8.335491][    T1] libphy: Fixed MDIO Bus: probed
[    8.340938][    T1] libphy: orion_mdio_bus: probed
[    8.356805][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    8.364762][    T1] mv643xx_eth_port mv643xx_eth_port.0: DMA mask not set
[    8.372761][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:d0:b8:28:76:76
[    8.382397][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.389709][    T1] ehci-pci: EHCI PCI platform driver
[    8.394913][    T1] ehci-orion: EHCI orion driver
[    8.399827][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[    8.406052][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    8.414682][    T1] orion-ehci f1050000.ehci: irq 31, io mem 0xf1050000
[    8.448575][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    8.455505][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[    8.464525][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.472496][    T1] usb usb1: Product: EHCI Host Controller
[    8.478097][    T1] usb usb1: Manufacturer: Linux 5.2.9-kirkwood-tld-1 ehci_hcd
[    8.485453][    T1] usb usb1: SerialNumber: f1050000.ehci
[    8.491353][    T1] hub 1-0:1.0: USB hub found
[    8.495846][    T1] hub 1-0:1.0: 1 port detected
[    8.501056][    T1] usbcore: registered new interface driver usb-storage
[    8.508055][    T1] mousedev: PS/2 mouse device common for all mice
[    8.514833][    T1] rtc-mv f1010300.rtc: registered as rtc0
[    8.520588][    T1] i2c /dev entries driver
[    8.525957][    T1] device-mapper: uevent: version 1.0.3
[    8.531583][    T1] device-mapper: ioctl: 4.40.0-ioctl (2019-01-18) initialised: dm-devel@redhat.com
[    8.541105][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    8.548395][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    8.555786][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    8.563219][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    8.570102][    T1] device-mapper: raid: Loading target version 1.14.0
[    8.577791][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[    8.584200][    T1] drop_monitor: Initializing network drop monitor service
[    8.591470][    T1] NET: Registered protocol family 17
[    8.596854][    T1] Key type dns_resolver registered
[    8.602540][    T1] registered taskstats version 1
[    8.607378][    T1] Loading compiled-in X.509 certificates
[    8.613076][    T1] zswap: loaded using pool lzo/zbud
[    8.688173][    T1] Key type big_key registered
[    8.725082][    T1] Key type encrypted registered
[    8.731596][    T1] rtc-mv f1010300.rtc: setting system clock to 2021-07-03T23:49:13 UTC (1625356153)
[    8.808590][  T112] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    8.818001][  T112] ata1.00: ATA-9: WDC WD20EZRX-00D8PB0, 80.00A80, max UDMA/133
[    8.825454][  T112] ata1.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    8.835510][  T112] ata1.00: configured for UDMA/133
[    8.850925][    T7] scsi 0:0:0:0: Direct-Access     ATA      WDC WD20EZRX-00D 0A80 PQ: 0 ANSI: 5
[    8.860537][  T116] sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[    8.869057][   T15] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    8.876965][  T116] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    8.883054][  T116] sd 0:0:0:0: [sda] Write Protect is off
[    8.888703][  T116] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    8.981424][  T116]  sda: sda1 sda2
[    8.986275][  T116] sd 0:0:0:0: [sda] Attached SCSI disk
[    9.072437][   T15] usb 1-1: New USB device found, idVendor=13fe, idProduct=4100, bcdDevice= 1.00
[    9.081371][   T15] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    9.089264][   T15] usb 1-1: Product: USB DISK 2.0
[    9.094077][   T15] usb 1-1: Manufacturer:
[    9.099013][   T15] usb 1-1: SerialNumber: 070239F129000800
[    9.105326][   T15] usb-storage 1-1:1.0: USB Mass Storage device detected
[    9.112526][   T15] scsi host2: usb-storage 1-1:1.0
[    9.378587][  T114] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    9.387999][  T114] ata2.00: ATA-9: WDC WD20EZRX-00D8PB0, 80.00A80, max UDMA/133
[    9.395454][  T114] ata2.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    9.405491][  T114] ata2.00: configured for UDMA/133
[    9.420900][   T23] scsi 1:0:0:0: Direct-Access     ATA      WDC WD20EZRX-00D 0A80 PQ: 0 ANSI: 5
[    9.430508][  T116] sd 1:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[    9.439275][  T116] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[    9.445284][  T116] sd 1:0:0:0: [sdb] Write Protect is off
[    9.450917][  T116] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    9.526851][  T116] GPT:Primary header thinks Alt. header is not at the end of the disk.
[    9.535013][  T116] GPT:3907029166 != 3907029167
[    9.539663][  T116] GPT:Alternate GPT header not at the end of the disk.
[    9.546390][  T116] GPT:3907029166 != 3907029167
[    9.551042][  T116] GPT: Use GNU Parted to correct GPT errors.
[    9.556958][  T116]  sdb: sdb1 sdb2
[    9.561783][  T116] sd 1:0:0:0: [sdb] Attached SCSI disk
[    9.570106][    T1] Freeing unused kernel memory: 1024K
[    9.588973][    T1] Checked W+X mappings: passed, no W+X pages found
[    9.595362][    T1] Run /init as init process
Loading, please wait...
Starting version 241
[   10.144953][  T169] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[   10.181037][  T116] scsi 2:0:0:0: Direct-Access              USB DISK 2.0          PQ: 0 ANSI: 4
[   10.208998][   T23] sd 2:0:0:0: [sdc] 15124992 512-byte logical blocks: (7.74 GB/7.21 GiB)
[   10.226006][   T23] sd 2:0:0:0: [sdc] Write Protect is off
[   10.237488][   T23] sd 2:0:0:0: [sdc] No Caching mode page found
[   10.247693][   T23] sd 2:0:0:0: [sdc] Assuming drive cache: write through
[   10.267735][   T23]  sdc: sdc1 sdc2
[   10.278108][   T23] sd 2:0:0:0: [sdc] Attached SCSI removable disk
[   10.333021][  T168] usbcore: registered new interface driver uas
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.33.1
[/sbin/fsck.ext3 (1) -- /dev/sdc1] fsck.ext3 -a -C0 /dev/sdc1
rootfs: clean, 17646/406400 files, 234201/1624744 blocks
done.
[   21.299631][  T196] EXT4-fs (sdc1): mounting ext3 file system using the ext4 subsystem
[   21.455061][  T196] EXT4-fs (sdc1): mounted filesystem with ordered data mode. Opts: (null)
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.
[   23.141335][    C0] random: crng init done
[ ok ] Starting hotplug events dispatcher: systemd-udevd.
[ ok ] Synthesizing the initial hotplug events (subsystems)...done.
[ ok ] Synthesizing the initial hotplug events (devices)...done.
[   24.147004][  T379] systemd-udevd[379]: Using default interface naming scheme 'v240'.
[....] Waiting for /dev to be fully populated...[   24.280607][  T379] systemd-udevd[379]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   24.486841][  T376] watchdog: f1020300.watchdog-timer: driver supplied timeout (4294967295) out of range
[   24.525390][  T398] adt7475 0-002e: hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[   24.591030][  T395] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   24.612222][  T376] watchdog: f1020300.watchdog-timer: falling back to default timeout (21)
[   24.693901][  T395] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   24.720144][  T398] adt7475 0-002e: ADT7473 device, revision 0
[   24.736906][  T377] marvell-cesa f1030000.crypto: CESA device successfully registered
[   24.773000][  T376] orion_wdt: Initial timeout 21 sec
[   24.790147][  T395] sd 2:0:0:0: Attached scsi generic sg2 type 0
[   24.798095][  T398] adt7475 0-002e: Optional features: pwm2
[   25.014244][  T377] systemd-udevd[377]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
done.
[ ok ] Setting hostname to 'debian'...done.
[ ok ] Activating swap:.
[   26.011363][  T594] EXT4-fs (sdc1): re-mounted. Opts: errors=remount-ro
[info] Will now check all file systems.
fsck from util-linux 2.33.1
Checking all file systems.
LABEL=rootfs is mounted
[ ok ] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable..
[ 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/

Listening on LPF/eth0/00:d0:b8:28:76:76
Sending on   LPF/eth0/00:d0:b8:28:76:76
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
[   31.882976][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 15
DHCPOFFER of 10.0.0.100 from 10.0.0.31
DHCPREQUEST for 10.0.0.100 on eth0 to 255.255.255.255 port 67
DHCPACK of 10.0.0.100 from 10.0.0.31
bound to 10.0.0.100 -- renewal in 318091 seconds.
done.
[....] Starting RPC port mapper daemon: rpcbind[   45.493559][ T1196] NET: Registered protocol family 10
[   45.500271][ T1196] 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...
1337 (syslogd)
. ok
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1364 (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: root
Password:
Last login: Sat Jul  3 16:46:47 PDT 2021 on ttyS0
Linux debian 5.2.9-kirkwood-tld-1 #1 PREEMPT Sat Aug 17 15:00:56 PDT 2019 armv5tel

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

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@debian:~# cat /etc/fw_env.config
# MTD device name       Device offset   Env. size       Flash sector size       Number of sectors
/dev/mtd0 0x7f000 0x1000 0x1000
root@debian:~# fw_printenv
Warning: Bad CRC, using default environment
bootcmd=run distro_bootcmd
bootdelay=2
baudrate=115200
stdin=serial,cros-ec-keyb,usbkbd
stdout=serial,vidconsole
stderr=serial,vidconsole
ethaddr=00:00:11:22:33:44
eth1addr=00:00:11:22:33:45
eth3addr=00:00:11:22:33:46
eth5addr=00:00:11:22:33:47
ipaddr=1.2.3.4
host_boot=if host dev ${devnum}; then setenv devtype host; run scan_dev_for_boot_part; fi
sata_boot=if sata dev ${devnum}; then setenv devtype sata; run scan_dev_for_boot_part; fi
scsi_init=if ${scsi_need_init}; then setenv scsi_need_init false; scsi scan; fi
scsi_boot=run scsi_init; if scsi dev ${devnum}; then setenv devtype scsi; run scan_dev_for_boot_part; fi
virtio_boot=if virtio dev ${devnum}; then setenv devtype virtio; run scan_dev_for_boot_part; fi
boot_prefixes=/ /boot/
boot_scripts=boot.scr.uimg boot.scr
boot_script_dhcp=boot.scr.uimg
boot_targets=host1 host0
boot_syslinux_conf=extlinux/extlinux.conf
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}${boot_syslinux_conf}
scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${boot_syslinux_conf}; then echo Found ${prefix}${boot_syslinux_conf}; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done;
scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done
bootcmd_host1=setenv devnum 1; run host_boot
bootcmd_host0=setenv devnum 0; run host_boot
distro_bootcmd=setenv scsi_need_init; for target in ${boot_targets}; do run bootcmd_${target}; done
bootm_size=0x10000000
kernel_addr_r=0x1000000
fdt_addr_r=0xc00000
ramdisk_addr_r=0x2000000
scriptaddr=0x1000
pxefile_addr_r=0x2000

dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] 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] 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
[    0.000000] printk: bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 65536
[    0.000000]   Normal zone: 512 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 65536 pages, LIFO batch:15
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=spi0.0:0x100000(u-boot) earlyprintk=serial
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 234704K/262144K available (9216K kernel code, 868K rwdata, 3400K rodata, 1024K init, 301K bss, 27440K reserved, 0K cma-reserved)
[    0.000000] random: get_random_u32 called from cache_alloc_refill+0x38c/0x928 with crng_init=0
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000007] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.008509] Switching to timer-based delay loop, resolution 5ns
[    0.015661] Console: colour dummy device 80x30
[    0.020834] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.032037] pid_max: default: 32768 minimum: 301
[    0.037602] LSM: Security Framework initializing
[    0.043059] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.050375] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.058774] *** VALIDATE proc ***
[    0.062956] *** VALIDATE cgroup1 ***
[    0.067212] *** VALIDATE cgroup2 ***
[    0.071559] CPU: Testing write buffer coherency: ok
[    0.078417] Setting up static identity map for 0x100000 - 0x100058
[    0.085537] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.091575] rcu: Hierarchical SRCU implementation.
[    0.099490] devtmpfs: initialized
[    0.108116] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.118657] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.125637] xor: measuring software checksum speed
[    0.228528]    arm4regs  :  1445.600 MB/sec
[    0.328531]    8regs     :   868.000 MB/sec
[    0.428529]    32regs    :  1262.000 MB/sec
[    0.433390] xor: using function: arm4regs (1445.600 MB/sec)
[    0.439658] prandom: seed boundary self test passed
[    0.448345] prandom: 100 self tests passed
[    0.453141] pinctrl core: initialized pinctrl subsystem
[    0.460157] NET: Registered protocol family 16
[    0.465697] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.473878] audit: initializing netlink subsys (disabled)
[    0.480944] audit: type=2000 audit(0.460:1): state=initialized audit_enabled=0 res=1
[    0.489458] cpuidle: using governor ladder
[    0.494283] cpuidle: using governor menu
[    0.499341] Feroceon L2: Enabling L2
[    0.503618] Feroceon L2: Cache support initialised.
[    0.513975] No ATAGs?
[    2.578514] random: fast init done
[    4.965372] alg: No test for lzo-rle (lzo-rle-generic)
[    4.971545] alg: No test for lzo-rle (lzo-rle-scomp)
[    5.148772] raid6: int32x8  gen()   170 MB/s
[    5.318652] raid6: int32x8  xor()   115 MB/s
[    5.488874] raid6: int32x4  gen()   172 MB/s
[    5.658625] raid6: int32x4  xor()   111 MB/s
[    5.828723] raid6: int32x2  gen()   176 MB/s
[    5.998598] raid6: int32x2  xor()   125 MB/s
[    6.168703] raid6: int32x1  gen()   133 MB/s
[    6.338619] raid6: int32x1  xor()    91 MB/s
[    6.343553] raid6: using algorithm int32x2 gen() 176 MB/s
[    6.349621] raid6: .... xor() 125 MB/s, rmw enabled
[    6.355164] raid6: using intx1 recovery algorithm
[    6.360742] vgaarb: loaded
[    6.364518] SCSI subsystem initialized
[    6.369149] libata version 3.00 loaded.
[    6.369347] usbcore: registered new interface driver usbfs
[    6.375541] usbcore: registered new interface driver hub
[    6.381609] usbcore: registered new device driver usb
[    6.387451] pps_core: LinuxPPS API ver. 1 registered
[    6.393094] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    6.402894] PTP clock support registered
[    6.408547] clocksource: Switched to clocksource orion_clocksource
[    7.192457] VFS: Disk quotas dquot_6.6.0
[    7.197120] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    7.212255] NET: Registered protocol family 2
[    7.217925] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[    7.226321] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    7.234005] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    7.241072] TCP: Hash tables configured (established 2048 bind 2048)
[    7.248151] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    7.254676] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    7.261805] NET: Registered protocol family 1
[    7.267338] RPC: Registered named UNIX socket transport module.
[    7.273990] RPC: Registered udp transport module.
[    7.279376] RPC: Registered tcp transport module.
[    7.284742] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    7.291855] PCI: CLS 0 bytes, default 32
[    7.296636] Trying to unpack rootfs image as initramfs...
[    7.943521] Freeing initrd memory: 9564K
[    7.948281] NetWinder Floating Point Emulator V0.97 (double precision)
[    7.956538] Initialise system trusted keyrings
[    7.961751] Key type blacklist registered
[    7.966599] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    7.973827] zbud: loaded
[    7.977894] NFS: Registering the id_resolver key type
[    7.983702] Key type id_resolver registered
[    7.988592] Key type id_legacy registered
[    7.993285] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    8.000667] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    8.007905] jffs2: version 2.2. (NAND) (SUMMARY)  \xc2\xa9 2001-2006 Red Hat, Inc.
[    8.015800] fuse: init (API version 7.31)
[    8.020806] orangefs_debugfs_init: called with debug mask: :none: :0:
[    8.028045] orangefs_init: module version upstream loaded
[    8.034133] SGI XFS with ACLs, security attributes, realtime, scrub, no debug enabled
[    8.055729] async_tx: api initialized (async)
[    8.060847] Key type asymmetric registered
[    8.065618] Asymmetric key parser 'x509' registered
[    8.071260] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    8.080507] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    8.090129] mv_xor f1060800.xor: Marvell shared XOR driver
[    8.149194] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    8.158746] mv_xor f1060900.xor: Marvell shared XOR driver
[    8.219175] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    8.228909] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    8.236901] printk: console [ttyS0] disabled
[    8.241949] f1012100.serial: ttyS0 at MMIO 0xf1012100 (irq = 27, base_baud = 12500000) is a 16550A
[    8.251624] printk: console [ttyS0] enabled
[    8.261402] printk: bootconsole [earlycon0] disabled
[    8.278651] loop: module loaded
[    8.282744] sata_mv f1080000.sata: version 1.28
[    8.282967] sata_mv f1080000.sata: slots 32 ports 2
[    8.290696] scsi host0: sata_mv
[    8.294989] scsi host1: sata_mv
[    8.299118] ata1: SATA max UDMA/133 irq 34
[    8.303931] ata2: SATA max UDMA/133 irq 34
[    8.310152] m25p80 spi0.0: mx25l8005 (1024 Kbytes)
[    8.315679] 1 cmdlinepart partitions found on MTD device spi0.0
[    8.322366] Creating 1 MTD partitions on "spi0.0":
[    8.327880] 0x000000000000-0x000000100000 : "u-boot"
[    8.335491] libphy: Fixed MDIO Bus: probed
[    8.340938] libphy: orion_mdio_bus: probed
[    8.356805] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    8.364762] mv643xx_eth_port mv643xx_eth_port.0: DMA mask not set
[    8.372761] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:d0:b8:28:76:76
[    8.382397] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.389709] ehci-pci: EHCI PCI platform driver
[    8.394913] ehci-orion: EHCI orion driver
[    8.399827] orion-ehci f1050000.ehci: EHCI Host Controller
[    8.406052] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    8.414682] orion-ehci f1050000.ehci: irq 31, io mem 0xf1050000
[    8.448575] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    8.455505] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[    8.464525] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.472496] usb usb1: Product: EHCI Host Controller
[    8.478097] usb usb1: Manufacturer: Linux 5.2.9-kirkwood-tld-1 ehci_hcd
[    8.485453] usb usb1: SerialNumber: f1050000.ehci
[    8.491353] hub 1-0:1.0: USB hub found
[    8.495846] hub 1-0:1.0: 1 port detected
[    8.501056] usbcore: registered new interface driver usb-storage
[    8.508055] mousedev: PS/2 mouse device common for all mice
[    8.514833] rtc-mv f1010300.rtc: registered as rtc0
[    8.520588] i2c /dev entries driver
[    8.525957] device-mapper: uevent: version 1.0.3
[    8.531583] device-mapper: ioctl: 4.40.0-ioctl (2019-01-18) initialised: dm-devel@redhat.com
[    8.541105] device-mapper: multipath round-robin: version 1.2.0 loaded
[    8.548395] device-mapper: multipath queue-length: version 0.2.0 loaded
[    8.555786] device-mapper: multipath service-time: version 0.3.0 loaded
[    8.563219] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    8.570102] device-mapper: raid: Loading target version 1.14.0
[    8.577791] hidraw: raw HID events driver (C) Jiri Kosina
[    8.584200] drop_monitor: Initializing network drop monitor service
[    8.591470] NET: Registered protocol family 17
[    8.596854] Key type dns_resolver registered
[    8.602540] registered taskstats version 1
[    8.607378] Loading compiled-in X.509 certificates
[    8.613076] zswap: loaded using pool lzo/zbud
[    8.688173] Key type big_key registered
[    8.725082] Key type encrypted registered
[    8.731596] rtc-mv f1010300.rtc: setting system clock to 2021-07-03T23:49:13 UTC (1625356153)
[    8.808590] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    8.818001] ata1.00: ATA-9: WDC WD20EZRX-00D8PB0, 80.00A80, max UDMA/133
[    8.825454] ata1.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    8.835510] ata1.00: configured for UDMA/133
[    8.850925] scsi 0:0:0:0: Direct-Access     ATA      WDC WD20EZRX-00D 0A80 PQ: 0 ANSI: 5
[    8.860537] sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[    8.869057] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    8.876965] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    8.883054] sd 0:0:0:0: [sda] Write Protect is off
[    8.888606] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    8.888703] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    8.981424]  sda: sda1 sda2
[    8.986275] sd 0:0:0:0: [sda] Attached SCSI disk
[    9.072437] usb 1-1: New USB device found, idVendor=13fe, idProduct=4100, bcdDevice= 1.00
[    9.081371] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    9.089264] usb 1-1: Product: USB DISK 2.0
[    9.094077] usb 1-1: Manufacturer:
[    9.099013] usb 1-1: SerialNumber: 070239F129000800
[    9.105326] usb-storage 1-1:1.0: USB Mass Storage device detected
[    9.112526] scsi host2: usb-storage 1-1:1.0
[    9.378587] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    9.387999] ata2.00: ATA-9: WDC WD20EZRX-00D8PB0, 80.00A80, max UDMA/133
[    9.395454] ata2.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    9.405491] ata2.00: configured for UDMA/133
[    9.420900] scsi 1:0:0:0: Direct-Access     ATA      WDC WD20EZRX-00D 0A80 PQ: 0 ANSI: 5
[    9.430508] sd 1:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[    9.439275] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[    9.445284] sd 1:0:0:0: [sdb] Write Protect is off
[    9.450822] sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[    9.450917] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    9.526851] GPT:Primary header thinks Alt. header is not at the end of the disk.
[    9.535013] GPT:3907029166 != 3907029167
[    9.539663] GPT:Alternate GPT header not at the end of the disk.
[    9.546390] GPT:3907029166 != 3907029167
[    9.551042] GPT: Use GNU Parted to correct GPT errors.
[    9.556958]  sdb: sdb1 sdb2
[    9.561783] sd 1:0:0:0: [sdb] Attached SCSI disk
[    9.570106] Freeing unused kernel memory: 1024K
[    9.588973] Checked W+X mappings: passed, no W+X pages found
[    9.595362] Run /init as init process
[   10.144953] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[   10.181037] scsi 2:0:0:0: Direct-Access              USB DISK 2.0          PQ: 0 ANSI: 4
[   10.208998] sd 2:0:0:0: [sdc] 15124992 512-byte logical blocks: (7.74 GB/7.21 GiB)
[   10.226006] sd 2:0:0:0: [sdc] Write Protect is off
[   10.237020] sd 2:0:0:0: [sdc] Mode Sense: 23 00 00 00
[   10.237488] sd 2:0:0:0: [sdc] No Caching mode page found
[   10.247693] sd 2:0:0:0: [sdc] Assuming drive cache: write through
[   10.267735]  sdc: sdc1 sdc2
[   10.278108] sd 2:0:0:0: [sdc] Attached SCSI removable disk
[   10.333021] usbcore: registered new interface driver uas
[   21.299631] EXT4-fs (sdc1): mounting ext3 file system using the ext4 subsystem
[   21.455061] EXT4-fs (sdc1): mounted filesystem with ordered data mode. Opts: (null)
[   23.141335] random: crng init done
[   24.147004] systemd-udevd[379]: Using default interface naming scheme 'v240'.
[   24.280607] systemd-udevd[379]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   24.486841] watchdog: f1020300.watchdog-timer: driver supplied timeout (4294967295) out of range
[   24.525390] adt7475 0-002e: hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[   24.591030] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   24.612222] watchdog: f1020300.watchdog-timer: falling back to default timeout (21)
[   24.693901] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   24.720144] adt7475 0-002e: ADT7473 device, revision 0
[   24.736906] marvell-cesa f1030000.crypto: CESA device successfully registered
[   24.773000] orion_wdt: Initial timeout 21 sec
[   24.790147] sd 2:0:0:0: Attached scsi generic sg2 type 0
[   24.798095] adt7475 0-002e: Optional features: pwm2
[   25.014244] systemd-udevd[377]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   26.011363] EXT4-fs (sdc1): re-mounted. Opts: errors=remount-ro
[   31.882976] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   45.493559] NET: Registered protocol family 10
[   45.500271] Segment Routing with IPv6

Thanks
Re: Lenovo ix2-ng to put Debian Stretch and OMV4
July 03, 2021 07:42PM
Codier,

Try 64K sector

root@debian:~# cat /etc/fw_env.config
# MTD device name       Device offset   Env. size       Flash sector size       Number of sectors
/dev/mtd0 0x7f000 0x1000 0x10000
fw_printenv


If it still gives CRC error then I think what we see in stock envs were probably wrong.

Can you still boot into stock?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Lenovo ix2-ng to put Debian Stretch and OMV4
July 03, 2021 09:12PM
Hi Bodhi,

64k not working.

root@debian:~# cat /etc/fw_env.config
# MTD device name       Device offset   Env. size       Flash sector size       Number of sectors
/dev/mtd0 0x7f000 0x1000 0x10000
root@debian:~# fw_printenv
Environment does not start on (erase) block boundary

Yes. I can boot into stock. Below is the dmesg

Linux version 2.6.31.8 (soho@bsoho080.iomegacorp.com) (gcc version 4.7.2 (crosstool-NG 1.20.0) ) Fri Oct 13 07:13:01 EDT 2017 v0.0.9 Fri Oct 13 07:13:01 EDT 2017
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
On node 0 totalpages: 65536
free_area_init_node: node 0, pgdat c04d5150, node_mem_map c0bdc000
  Normal zone: 576 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 64960 pages, LIFO batch:15
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 64960
Kernel command line: console=ttyS0,115200 root=/dev/ram0 mtdparts=spi_flash:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2) :::DB88FXX81:eth0:none
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    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: 2924K
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     WDC      WD20EZRX-00D8PB0 80.0 PQ: 0 ANSI: 5
scsi 1:0:0:0: Direct-Access     WDC      WD20EZRX-00D8PB0 80.0 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: [sda] Mode Sense: 23 00 10 00
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: [sdb] Mode Sense: 23 00 10 00
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)
3 cmdlinepart partitions found on MTD device spi_flash
Creating 3 MTD partitions on "spi_flash":
0x000000000000-0x00000007e000 : "u-boot"
 sdb:
0x00000007f000-0x000000080000 : "env"
0x00000007e000-0x00000007f000 : "env2"
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
 sda1 sda2
sd 0:0:0:0: [sda] Sector size 0 reported, assuming 512.
ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100
GPT:Primary header thinks Alt. header is not at the end of the disk.
GPT:3907029166 != 3907029167
GPT:Alternate GPT header not at the end of the disk.
GPT:3907029166 != 3907029167
GPT: Use GNU Parted to correct GPT errors.
 sdb1 sdb2
sd 0:0:0:0: [sda] Attached SCSI disk
sd 1:0:0:0: [sdb] Sector size 0 reported, assuming 512.
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
sd 1:0:0:0: [sdb] Attached SCSI disk
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-07-04 02:08:30 UTC (1625364510)
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
usb 1-1: new high speed USB device using ehci_marvell and address 2
usb 1-1: configuration #1 chosen from 1 choice
scsi2 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
EXT2-fs warning: checktime reached, running e2fsck is recommended
VFS: Mounted root (ext2 filesystem) on device 1:0.
scsi 2:0:0:0: Direct-Access              USB DISK 2.0          PQ: 0 ANSI: 4
sd 2:0:0:0: Attached scsi generic sg2 type 0
usb-storage: device scan complete
sd 2:0:0:0: [sdc] 15124992 512-byte logical blocks: (7.74 GB/7.21 GiB)
sd 2:0:0:0: [sdc] Write Protect is off
sd 2:0:0:0: [sdc] Mode Sense: 23 00 00 00
sd 2:0:0:0: [sdc] Assuming drive cache: write through
sd 2:0:0:0: [sdc] Assuming drive cache: write through
 sdc: sdc1 sdc2
sd 2:0:0:0: [sdc] Assuming drive cache: write through
sd 2:0:0:0: [sdc] Attached SCSI removable disk
md: md0 stopped.
md: bind<sdb1>
md: bind<sda1>
raid1: raid set md0 active with 2 out of 2 mirrors
md0: detected capacity change from 0 to 21457928192
 md0: unknown partition table
md: md0 stopped.
md: unbind<sda1>
md: export_rdev(sda1)
md: unbind<sdb1>
md: export_rdev(sdb1)
md0: detected capacity change from 21457928192 to 0
md: md0 stopped.
md: bind<sdb1>
md: bind<sda1>
raid1: raid set md0 active with 2 out of 2 mirrors
md0: detected capacity change from 0 to 21457928192
 md0: unknown partition table
SGI XFS with ACLs, security attributes, large block/inode numbers, no debug enabled
SGI XFS Quota Management subsystem
ufsd: module license 'Commercial product' taints kernel.
Disabling lock debugging due to kernel taint
ufsd: driver 8.5 (Oct 13 2017 07:28:48) LBD=ON with delayalloc with ioctl loaded at bf102000
NTFS support included
Hfs+/HfsX support included
Built for: EMC_ix2_2
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
Freeing init memory: 136K
Bluetooth: L2CAP ver 2.13
Bluetooth: L2CAP socket layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM ver 1.11
eth0: link down
eth0: started
eth0: link up, full duplex, speed 1 Gbps
md: md1 stopped.
md: bind<sdb2>
md: bind<sda2>
raid1: raid set md1 active with 2 out of 2 mirrors
md1: detected capacity change from 0 to 1978754990080
 md1: unknown partition table
EXT4-fs (dm-1): barriers enabled
kjournald2 starting: pid 3228, dev dm-1:8, commit interval 5 seconds
EXT4-fs (dm-1): internal journal on dm-1:8
EXT4-fs (dm-1): delayed allocation enabled
EXT4-fs: file extents enabled
EXT4-fs: mballoc enabled
EXT4-fs (dm-1): mounted filesystem with ordered data mode
EXT4-fs (dm-2): barriers disabled
kjournald2 starting: pid 3232, dev dm-2:8, commit interval 5 seconds
EXT4-fs (dm-2): internal journal on dm-2:8
EXT4-fs (dm-2): delayed allocation enabled
EXT4-fs: file extents enabled
EXT4-fs: mballoc enabled
EXT4-fs (dm-2): mounted filesystem with ordered data mode
kjournald starting.  Commit interval 5 seconds
EXT3 FS on sdc1, internal journal
EXT3-fs: mounted filesystem with writeback data mode.
Adding 524280k swap on /mnt/system/swapfile.  Priority:-1 extents:3 across:540664k

Thanks
Re: Lenovo ix2-ng to put Debian Stretch and OMV4
July 03, 2021 10:27PM
Stock OS said:

Quote

SPI Serial flash detected @ 0xf4000000, 1024KB (256sec x 4KB)

So it is 4K sector.

Does it have /etc/fw_env.config and fw_printenv? log into stock OS, at the shell

cat /etc/fw_env.config
andn then if successul
which fw_printenv
and then if successful
fw_printenv

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

Your Email:


Subject:


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