Welcome! Log In Create A New Profile

Advanced

Another Lenovo ix2-ng thread

Posted by DeDaMrAz 
Another Lenovo ix2-ng thread
November 20, 2023 07:55PM
Hello all

I got Lenovo ix2-ng device without drives and I am willing to play around with it to get Debian (OMV) to work on it. So far I got a RAW dump from the SPI device (for good measure) and connected UART to it.

By following this tutorial - https://minaret.biz/tips/ix2/index.html I managed to install Debian on it - this version

kirkwood-5.18.7-ix2.tar.xz

and when I tried installing OMV I got stuck on - no systemd message.

I am also looking into doing some HW changes to this device like adding more RAM (512Mb maybe or more if possible) and adding NAND to the board and utilize it if possible.

I am willing to start all over - flash stock SPI dump back and start from zero again if necessary.

Let me know what info do I need to provide (SPI dump, boot log files, etc)

Thank you.

P.S. I would qualify myself as a noob so please have patience with me and my stupid questions (:
Re: Another Lenovo ix2-ng thread
November 20, 2023 08:43PM
DeDaMrAz,

> and connected UART
> to it.

Good. So it should be really easy to run Debian.


> I am willing to start all over - flash stock SPI
> dump back and start from zero again if necessary.

Probably no need to do any of that.

Here is how to set up and run this box

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

You can use the latest rootfs : Debian-6.5.7-kirkwood-tld-1-rootfs-bodhi.tar.bz2. When you create the USB rootfs, make sure you do Step 4, since you will boot with stock u-boot.

Quote

4. (Stock u-boot only) Create uImage with embedded DTB for booting with older u-boots (2012 or earlier). Skip this step if you have installed the latest U-Boot for Kirkwood (or are installing this u-boot at the same time, or running kwboot with latest u-boot image).

=====

Whether you will be successfull on the 1st try or not, please post the entire serial console log here. And we'll go from there.

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



Edited 1 time(s). Last edit at 11/20/2023 08:49PM by bodhi.
Re: Another Lenovo ix2-ng thread
November 21, 2023 07:13PM
Note this is with my already tampered with stock uBoot (env) in SPI.

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


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
Marvell>> setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial'
Marvell>> setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
Marvell>> setenv load_uinitrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd'
Marvell>> setenv usb_boot 'mw 0x800000 0 1; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000'
Marvell>> setenv usb_bootcmd 'run usb_set_bootargs; run usb_boot'
Marvell>> setenv bootcmd 'usb reset; run usb_bootcmd; usb stop; reset'
Marvell>> printenv
setenv=bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial init=/bin/systemd
ALLOC_len=1
autoload=no
baudrate=115200
boot_mem=bootm $(mem_kernel) $(mem_initrd)
boot_try=run load_kernel load_initrd boot_mem
bootargs=console=ttyS0,115200 root=/dev/ram0 mtdparts=spi_flash:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2) :::DB88FXX81:eth0:none
bootargs_end=:::DB88FXX81:eth0:none
bootargs_mtd=mtdparts=spi0.0:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2)
bootargs_root=root=/dev/ram0
bootcmd2=ide dev 1;ide read 0x40000 0x800 0x1800; ide read 0x900000 0x2000 0x1800; bootm 0x40000 0x900000;
conf_ide=ide reset; setenv boot_dev ide; setenv bootargs $(console) root=LABEL=rootfs earlyprintk=serial
conf_usb=usb reset; setenv boot_dev usb; setenv bootargs $(console) root=LABEL=usbroot earlyprintk=serial
console=console=ttyS0,115200
ethact=egiga0
ethaddr=00:D0:B8:15:3D:19
ethmtu=1500
ethprime=egiga0
ftpserver=192.168.43.4
fw_ver=4.0.6.19294
image_multi=yes
image_name=uImage
initrdimage=mfginitrd
ipaddr=192.168.1.2
kernelimage=zImage
lcd0_enable=0
lcd0_params=640x480-16@60
load_initrd=$(boot_dev) read $(mem_initrd) $(off_initrd) $(sz_initrd)
load_kernel=$(boot_dev) read $(mem_kernel) $(off_kernel) $(sz_kernel)
loadaddr=0x02000000
loads_echo=0
mem_initrd=0x2000000
mem_kernel=0x1000000
mfgmodel=ix2
mfgtest_state=system_tested_ok
modelname=32041700
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fxo
netmask=255.255.255.0
netretry=no
off_initrd=0x8800
off_kernel=0x800
pre_dirzi=IX2/1.0.9
pre_passwd=123
pre_path=IX2/1.0.9/download_runin.sh
pre_path_conf=IX2/1.0.9/download_runin.conf
pre_serverip=192.168.32.4
pre_user=ixxrunin
preroot_ver=0.0.2
rcvrip=169.254.100.100
rootpath=/srv/ubuntu
run_diag=yes
runintime=10800
serialNo=EUAE0200TN
serial_number=5563Y01001G35200362J0D1
serialno=0,01TLDi6sSS377FK276QELpY07iuyMBU6Vd6Z2a5awvyyoPvgN6M3euEdOrtqFSb1SW,EUAE0200TN,
serverip=192.168.32.4
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts init=/bin/systemd
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
sz_initrd=0x6000
sz_kernel=0x4000
testfile=100M
uboot_ver=0.0.8
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
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 reset; run usb_bootcmd; usb stop; reset

Environment size: 3480/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
Failed to mount ext2 filesystem...
** Bad ext2 partition or disk - usb 0:1 **
Failed to mount ext2 filesystem...
** Bad ext2 partition or disk - usb 0:1 **
## Booting image at 00800000 ...
Bad Magic Number
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

Marvell Serial ATA Adapter
Integrated Sata device found


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
Marvell>>

This is the log after the reboot

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


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
Marvell>>   <INTERRUPT>
Marvell>> boot
*Try USB*
(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

USB read: device 0 block # 2048, count 16384 ... ...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
16384 blocks read: OK

USB read: device 0 block # 34816, count 24576 ... ............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
24576 blocks read: OK
## Booting image at 01000000 ...
Bad Magic Number
*Try IDE*

Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found



IDE device not available
*Try IDE1*

IDE device 1: not available


IDE device not available
Marvell>>

And printenv after the reboot for good measure

Marvell>> printenv
setenv=bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial init=/bin/systemd
ALLOC_len=1
autoload=no
baudrate=115200
boot_mem=bootm $(mem_kernel) $(mem_initrd)
boot_try=run load_kernel load_initrd boot_mem
bootargs_end=:::DB88FXX81:eth0:none
bootargs_mtd=mtdparts=spi0.0:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2)
bootargs_root=root=/dev/ram0
bootcmd=echo *Try USB*; run conf_usb boot_try; echo *Try IDE*; run conf_ide boot_try; echo *Try IDE1*; ide device 1; run boot_try
bootcmd2=ide dev 1;ide read 0x40000 0x800 0x1800; ide read 0x900000 0x2000 0x1800; bootm 0x40000 0x900000;
conf_ide=ide reset; setenv boot_dev ide; setenv bootargs $(console) root=LABEL=rootfs earlyprintk=serial
conf_usb=usb reset; setenv boot_dev usb; setenv bootargs $(console) root=LABEL=usbroot earlyprintk=serial
console=console=ttyS0,115200
ethact=egiga0
ethaddr=00:D0:B8:15:3D:19
ethmtu=1500
ethprime=egiga0
ftpserver=192.168.43.4
fw_ver=4.0.6.19294
image_multi=yes
image_name=uImage
initrdimage=mfginitrd
ipaddr=192.168.1.2
kernelimage=zImage
lcd0_enable=0
lcd0_params=640x480-16@60
load_initrd=$(boot_dev) read $(mem_initrd) $(off_initrd) $(sz_initrd)
load_kernel=$(boot_dev) read $(mem_kernel) $(off_kernel) $(sz_kernel)
load_uimage=ext2load usb 0:1 0x800000 /boot/uImage
load_uinitrd=ext2load usb 0:1 0x2100000 /boot/uInitrd
loadaddr=0x02000000
loads_echo=0
mem_initrd=0x2000000
mem_kernel=0x1000000
mfgmodel=ix2
mfgtest_state=system_tested_ok
modelname=32041700
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fxo
netmask=255.255.255.0
netretry=no
off_initrd=0x8800
off_kernel=0x800
pre_dirzi=IX2/1.0.9
pre_passwd=123
pre_path=IX2/1.0.9/download_runin.sh
pre_path_conf=IX2/1.0.9/download_runin.conf
pre_serverip=192.168.32.4
pre_user=ixxrunin
preroot_ver=0.0.2
rcvrip=169.254.100.100
rootpath=/srv/ubuntu
run_diag=yes
runintime=10800
serialNo=EUAE0200TN
serial_number=5563Y01001G35200362J0D1
serialno=0,01TLDi6sSS377FK276QELpY07iuyMBU6Vd6Z2a5awvyyoPvgN6M3euEdOrtqFSb1SW,EUAE0200TN,
serverip=192.168.32.4
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts init=/bin/systemd
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
sz_initrd=0x6000
sz_kernel=0x4000
testfile=100M
uboot_ver=0.0.8
usb0Mode=host
usb_boot=mw 0x800000 0 1; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000
usb_bootcmd=run usb_set_bootargs; run usb_boot
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $(bootargs_mtd) earlyprintk=serial
yuk_ethaddr=00:00:00:EE:51:81
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
boot_dev=ide
bootargs=console=ttyS0,115200 root=LABEL=rootfs earlyprintk=serial

Environment size: 3508/4091 bytes
Marvell>>

Re: Another Lenovo ix2-ng thread
November 21, 2023 07:32PM
Disregard first part of it, I used wrong rootfs due to naming error :)

Will check again and post logs.
Re: Another Lenovo ix2-ng thread
November 21, 2023 07:38PM
DeDaMrAz,


> 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
> Failed to mount ext2 filesystem...
> ** Bad ext2 partition or disk - usb 0:1 **
> Failed to mount ext2 filesystem...
> ** Bad ext2 partition or disk - usb 0:1 **

I forgot whether this box u-boot has USB support, and if it supports Ext3 file system (ususally it does read Ext2 and Ext3 the same way). The error above looks like it was not formatted properly, or this u-boot does not support it.

You can test it with new USB flash drive.

Use command line fdisk to create MBR partition. If the drive is assigned as /dev/sdb.
fdisk /dev/sdb

Format it as Ext2 with command line mkfs.ext2 (don't use GUI).
mkfs.ext2 /dev/sdb1

And then mount it, put some text file like README.txt in the root folder. And then boot into u-boot to see if it does recognize and can read it.

Attach the USB flash drive, Power up, interrupt serial console and
usb start
ext2ls usb 0:1 /

====

And then do the test again, with Ext3 file system.

mkfs.ext3 /dev/sdb1

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Another Lenovo ix2-ng thread
November 24, 2023 02:21PM
This is what I managed to get so far.

I was not able to boot 6.5.7 - tried everything that I can find on this forum, no luck. It will read USB but gives Bad Magic Number end exits. Tried multiple USB drives and both ext2 and ext3 format...

However I was able to boot 5.18.7 from here - https://minaret.biz/tips/ix2/index.html

One thing that I did before booting

protect off all

then using these

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'
saveenv

After that one thing that I found needed to be done is

mount -o remount,rw /dev/sdc1/

where sdc1 is my USB device (change accordingly)

After booting from USB I ran install.sh that is provided withing /boot/tools/ directory and followed the script for installing on IDE drive. Once finished I ran ix2_env.sh and rebooted - removed my USB and this is the console log:


         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ 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 (5)
  Device 0 @ 0 0:
Model: ST2000DM001-1CH164                       Firm: HP33     Ser#: W1E3LD3F
            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: ST2000DM001-1CH164                       Firm: CC27     Ser#:             W1E6E4CE
            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
*Try USB*
(Re)start USB...
USB:   scanning bus for devices... 1 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
0 Storage Device(s) found
no current device selected
*Try IDE*

Reset IDE:
Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode (5)
  Device 0 @ 0 0:
Model: ST2000DM001-1CH164                       Firm: HP33     Ser#: W1E3LD3F
            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: ST2000DM001-1CH164                       Firm: CC27     Ser#:             W1E6E4CE
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 1907729.0 MB = 1863.0 GB (-387938128 x 512)


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

IDE read: device 0 block # 34816, count 24576 ... 24576 blocks read: OK
## Booting image at 01000000 ...
   Image Name:   Linux-5.18.7-kirkwood-tld-1
   Created:      2023-11-24  19:14:52 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5734586 Bytes =  5.5 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 02000000 ...
   Image Name:   initramfs-5.18.7-kirkwood-tld-1
   Created:      2023-11-24  19:14:52 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    10633371 Bytes = 10.1 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

[    4.103915][    T1] printk: console [ttyS0] enabled
[    4.113704][    T1] printk: bootconsole [earlycon0] disabled
[    4.132903][    T1] loop: module loaded
[    4.137485][    T1] sata_mv f1080000.sata: slots 32 ports 2
[    4.146531][    T1] scsi host0: sata_mv
[    4.151150][    T1] scsi host1: sata_mv
[    4.155275][    T1] ata1: SATA max UDMA/133 irq 34
[    4.160138][    T1] ata2: SATA max UDMA/133 irq 34
[    4.166666][    T1] spi-nor spi0.0: mx25l8005 (1024 Kbytes) [8 bit SR, HAS_LOCK, ALL_LOCK]
[    4.175072][    T1] 3 fixed-partitions partitions found on MTD device spi0.0
[    4.182180][    T1] Creating 3 MTD partitions on "spi0.0":
[    4.187694][    T1] 0x000000000000-0x00000007e000 : "u-boot"
[    4.193942][    T1] 0x00000007e000-0x00000007f000 : "u-boot env2"
[    4.200535][    T1] 0x00000007f000-0x000000080000 : "u-boot env"
[    4.207357][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    4.215957][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    4.240971][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    4.250614][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:d0:b8:15:3d:19
[    4.260303][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.267590][    T1] ehci-pci: EHCI PCI platform driver
[    4.272852][    T1] ehci-orion: EHCI orion driver
[    4.277746][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[    4.284035][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    4.292917][    T1] orion-ehci f1050000.ehci: irq 31, io mem 0xf1050000
[    4.328644][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    4.335650][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.18
[    4.344683][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.352655][    T1] usb usb1: Product: EHCI Host Controller
[    4.358255][    T1] usb usb1: Manufacturer: Linux 5.18.7-kirkwood-tld-1 ehci_hcd
[    4.365724][    T1] usb usb1: SerialNumber: f1050000.ehci
[    4.371787][    T1] hub 1-0:1.0: USB hub found
[    4.376294][    T1] hub 1-0:1.0: 1 port detected
[    4.381711][    T1] usbcore: registered new interface driver usb-storage
[    4.388934][    T1] mousedev: PS/2 mouse device common for all mice
[    4.396151][    T1] rtc-mv f1010300.rtc: registered as rtc0
[    4.401848][    T1] rtc-mv f1010300.rtc: setting system clock to 2023-11-24T19:23:26 UTC (1700853806)
[    4.411952][    T1] i2c_dev: i2c /dev entries driver
[    4.418486][    T1] device-mapper: uevent: version 1.0.3
[    4.424205][    T1] device-mapper: ioctl: 4.46.0-ioctl (2022-02-22) initialised: dm-devel@redhat.com
[    4.433946][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    4.441276][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    4.448663][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    4.456096][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    4.462982][    T1] device-mapper: raid: Loading target version 1.15.1
[    4.471226][    T1] hid: raw HID events driver (C) Jiri Kosina
[    4.477424][    T1] drop_monitor: Initializing network drop monitor service
[    4.484958][    T1] NET: Registered PF_INET6 protocol family
[    4.492292][    T1] Segment Routing with IPv6
[    4.496676][    T1] RPL Segment Routing with IPv6
[    4.501530][    T1] In-situ OAM (IOAM) with IPv6
[    4.506243][    T1] NET: Registered PF_PACKET protocol family
[    4.512313][    T1] Key type dns_resolver registered
[    4.517789][    T1] registered taskstats version 1
[    4.522672][    T1] Loading compiled-in X.509 certificates
[    4.529119][    T1] zswap: loaded using pool lzo/zbud
[    4.534775][    T1] Key type ._fscrypt registered
[    4.539579][    T1] Key type .fscrypt registered
[    4.544225][    T1] Key type fscrypt-provisioning registered
[    4.554334][    T1] Key type big_key registered
[    4.583348][    T1] Key type encrypted registered
[    4.657448][  T106] "cryptomgr_test" (106) uses obsolete ecb(arc4) skcipher
[    4.664531][   T48] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    4.675865][   T48] ata1.00: ATA-9: ST2000DM001-1CH164, HP33, max UDMA/100
[    4.686171][   T48] ata1.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    4.699948][   T48] ata1.00: configured for UDMA/100
[    4.715375][    T8] scsi 0:0:0:0: Direct-Access     ATA      ST2000DM001-1CH1 HP33 PQ: 0 ANSI: 5
[    4.739745][   T33] sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[    4.748235][   T33] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    4.768727][   T33] sd 0:0:0:0: [sda] Write Protect is off
[    4.774366][   T33] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    4.836891][   T33]  sda: sda1 sda2
[    4.849879][   T33] sd 0:0:0:0: [sda] Attached SCSI disk
[    5.248650][   T50] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    5.270873][   T50] ata2.00: ATA-9: ST2000DM001-1CH164, CC27, max UDMA/133
[    5.277789][   T50] ata2.00: 3907029168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    5.305345][   T50] ata2.00: configured for UDMA/133
[    5.329031][   T30] scsi 1:0:0:0: Direct-Access     ATA      ST2000DM001-1CH1 CC27 PQ: 0 ANSI: 5
[    5.349736][   T33] sd 1:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB)
[    5.358225][   T33] sd 1:0:0:0: [sdb] 4096-byte physical blocks
[    5.378721][   T33] sd 1:0:0:0: [sdb] Write Protect is off
[    5.384353][   T33] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    5.433854][   T33]  sdb:
[    5.448955][   T33] sd 1:0:0:0: [sdb] Attached SCSI disk
[    8.109112][    T1] Freeing unused kernel image (initmem) memory: 1024K
[    8.139213][    T1] Checked W+X mappings: passed, no W+X pages found
[    8.145613][    T1] Run /init as init process
Loading, please wait...
Starting version 247.3-7
[    8.797668][  T142] input: gpio-keys as /devices/platform/gpio-keys/input/input0
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.36.1
[/sbin/fsck.ext4 (1) -- /dev/sda2] fsck.ext4 -a -C0 /dev/sda2
rootfs: clean, 18218/262144 files, 252659/1048576 blocks
done.
[    9.772781][  T188] EXT4-fs (sda2): mounted filesystem with ordered data mode. Quota mode: none.
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.96 booting
Using makefile-style concurrent boot in runlevel S.
Setting hostname to 'ix2'...done.
Starting hotplug events dispatcher: systemd-udevd.
Synthesizing the initial hotplug events (subsystems)...done.
Synthesizing the initial hotplug events (devices)...done.
Waiting for /dev to be fully populated...[   12.239147][  T372] adt7475 0-002e: ADT7473 device, revision 0
[   12.245027][  T372] adt7475 0-002e: Optional features: fan4 pwm2
[   12.289884][  T381] orion_wdt: Initial timeout 21 sec
[   12.465243][  T380] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   12.558844][  T380] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   12.676285][  T379] marvell-cesa f1030000.crypto: CESA device successfully registered
done.
Activating swap:swapon: /dev/sda1: found[   13.503263][  T513] Adding 1048572k swap on /dev/sda1.  Priority:-2 extents:1 across:1048572k FS
 signature [pagesize=4096, signature=swap]
swapon: /dev/sda1: pagesize=4096, swapsize=1073741824, devsize=1073741824
swapon /dev/sda1
.
[   13.638864][  T525] EXT4-fs (sda2): re-mounted. Quota mode: none.
Will now check all file systems.
Checking all file systems.
LABEL=rootfs is mounted
Done checking file systems.
Log is being saved in /var/log/fsck/checkfs if that location is writable.
Cleaning up temporary files...Cleaning /tmp...done.
 /tmp.
Will now mount local filesystems:.
Will now activate swapfile swap, if any:swapon: /dev/sda1: already active -- ignored
done.
Checking minimum space in /tmp...done.
Cleaning up temporary files....
Starting Setting kernel variables: sysctl.
[   16.188645][    C0] random: crng init done
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:15:3d:19
Sending on   LPF/eth0/00:d0:b8:15:3d:19
Sending on   Socket/fallback
Created duid "\000\001\000\001,\363\264\273\000\320\270\025=\031".
DHCPREQUEST for 192.168.0.30 on eth0 to 255.255.255.255 port 67
[   19.870342][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   19.880994][  T119] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
DHCPREQUEST for 192.168.0.30 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.0.30 from 192.168.0.1
bound to 192.168.0.30 -- renewal in 17102 seconds.
done.
Starting RPC port mapper daemon: rpcbind.
Starting NFS common utilities: statd idmapd.
Cleaning up temporary files....
Setting sensors limits...
done.
INIT: Entering runlevel: 2
Using makefile-style concurrent boot in runlevel 2.
Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1079 (syslogd)
.
Starting NFS common utilities: statd idmapd.
Starting system message bus: dbus.
Starting MD monitoring service: mdadm --monitor.
Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
Not starting NFS kernel daemon: no exports. ... (warning).
Starting NTP server: ntpd.
Starting OpenBSD Secure Shell server: sshdsshd: no hostkeys available -- exiting.
 failed!
Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1111 (klogd)
.
Running local boot scripts (/etc/rc.local)
ssh-keygen: generating new host keys: RSA
DSA
ECDSA
ED25519

Starting OpenBSD Secure Shell server: sshd
.
.

Debian GNU/Linux 11 ix2 ttyS0

ix2 login: root
Password:
Linux ix2 5.18.7-kirkwood-tld-1 #1 PREEMPT Wed Jun 29 00:58:23 EDT 2022 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.
ix2
192.168.0.30
Lenovo IX2-ng
Linux version 5.18.7-kirkwood-tld-1 (root@ix2) (gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 PREEMPT Wed Jun 29 00:58:23 EDT 2022
Debian 11.3
Fri Nov 24 14:24:12 EST 2023 up 0 minutes
root@ix2:~#

Here is my current printenv log:

Marvell>> printenv
MALLOC_len=1
autoload=no
baudrate=115200
boot_mem=bootm $(mem_kernel) $(mem_initrd)
boot_try=run load_kernel load_initrd boot_mem
bootargs_end=:::DB88FXX81:eth0:none
bootargs_mtd=mtdparts=spi_flash:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2)
bootargs_root=root=/dev/ram0
bootcmd=echo *Try USB*; run conf_usb boot_try; echo *Try IDE*; run conf_ide boot_try; echo *Try IDE1*; ide device 1; run boot_try
bootcmd2=ide dev 1;ide read 0x40000 0x800 0x1800; ide read 0x900000 0x2000 0x1800; bootm 0x40000 0x900000;
conf_ide=ide reset; setenv boot_dev ide; setenv bootargs $(console) root=LABEL=rootfs earlyprintk=serial
conf_usb=usb reset; setenv boot_dev usb; setenv bootargs $(console) root=LABEL=usbroot earlyprintk=serial
console=console=ttyS0,115200
ethact=egiga0
ethaddr=00:D0:B8:15:3D:19
ethmtu=1500
ethprime=egiga0
ftpserver=192.168.43.4
fw_ver=4.0.6.19294
image_multi=yes
image_name=uImage
initrdimage=mfginitrd
ipaddr=192.168.1.2
kernelimage=zImage
lcd0_enable=0
lcd0_params=640x480-16@60
load_initrd=$(boot_dev) read $(mem_initrd) $(off_initrd) $(sz_initrd)
load_kernel=$(boot_dev) read $(mem_kernel) $(off_kernel) $(sz_kernel)
loadaddr=0x02000000
loads_echo=0
mem_initrd=0x2000000
mem_kernel=0x1000000
mfgmodel=ix2
mfgtest_state=system_tested_ok
modelname=32041700
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fxo
netmask=255.255.255.0
netretry=no
off_initrd=0x8800
off_kernel=0x800
pre_dirzi=IX2/1.0.9
pre_passwd=123
pre_path=IX2/1.0.9/download_runin.sh
pre_path_conf=IX2/1.0.9/download_runin.conf
pre_serverip=192.168.32.4
pre_user=ixxrunin
preroot_ver=0.0.2
rcvrip=169.254.100.100
rootpath=/srv/ubuntu
run_diag=yes
runintime=10800
serialNo=EUAE0200TN
serial_number=5563Y01001G35200362J0D1
serialno=0,01TLDi6sSS377FK276QELpY07iuyMBU6Vd6Z2a5awvyyoPvgN6M3euEdOrtqFSb1SW,EUAE0200TN,
serverip=192.168.32.4
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts init=/usr/bin/systemd
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
sz_initrd=0x6000
sz_kernel=0x4000
testfile=100M
uboot_ver=0.0.8
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
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: 2581/4091 bytes

You can see I tried to add init=/usr/bin/systemd in there (installed it also) but now if I try to run OMV installation for example i am stuck on system has not been booted with systemd

Is this something that can be circumvented? My goal was to install OMV onto this box.

Thank you very much for your support on this.
Re: Another Lenovo ix2-ng thread
November 24, 2023 03:50PM
> I was not able to boot 6.5.7 - tried everything
> that I can find on this forum, no luck. It will
> read USB but gives Bad Magic Number
> end exits. Tried multiple USB drives and both ext2
> and ext3 format...
>
> However I was able to boot 5.18.7 from here -
> https://minaret.biz/tips/ix2/index.html

Cool!

> You can see I tried to add
> init=/usr/bin/systemd in there
> (installed it also) but now if I try to run OMV
> installation for example i am stuck on
> system has not been booted with
> systemd


Log in and install systemd as described in the rootfs release thread

Quote

Note 5 (Optional):

Note 5.1. To boot with systemd

After loged into Debian, run:

apt-get install systemd
And then add parameter init=/usr/bin/systemd to your u-boot env bootargs.

- For example,
fw_setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts init=/usr/bin/systemd'
- Or, if you are booting with my latest u-boot images you can also use the uEnv.txt capability to do this. In the default envs, custom_params is a variable that allows you to add extra bootargs. So add the following line to uEnv.txt:
custom_params=earlyprintk=serial init=/usr/bin/systemd

Note 5.2. To boot back to sysvinit

Reverse the env setting (there is no need to remove systemd, you can switch back and forth from/to sysvinit and systemd):
fw_setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts'
Or if you've used uEnv.txt then just remove that from the custom_params env
custom_params=earlyprintk=serial

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Another Lenovo ix2-ng thread
November 24, 2023 03:55PM
bodhi Wrote:

>
Quote

Note 5 (Optional):
>
> Note 5.1. To boot with systemd
>
> After loged into Debian, run:
>
> apt-get install systemd
> And then add parameter init=/usr/bin/systemd to
> your u-boot env bootargs.
>
> - For example,
> fw_setenv set_bootargs 'setenv bootargs
> console=ttyS0,115200 root=LABEL=rootfs
> rootdelay=10 $mtdparts init=/usr/bin/systemd'
> - Or, if you are booting with my latest u-boot
> images you can also use the uEnv.txt capability to
> do this. In the default envs, custom_params is a
> variable that allows you to add extra bootargs. So
> add the following line to uEnv.txt:
> custom_params=earlyprintk=serial
> init=/usr/bin/systemd
>
> Note 5.2. To boot back to sysvinit
>
> Reverse the env setting (there is no need to
> remove systemd, you can switch back and forth
> from/to sysvinit and systemd):
> fw_setenv set_bootargs 'setenv bootargs
> console=ttyS0,115200 root=LABEL=rootfs
> rootdelay=10 $mtdparts'
> Or if you've used uEnv.txt then just remove that
> from the custom_params env
> custom_params=earlyprintk=serial

Tried that already, you can see the output of my printenv, it is in there but systemd still is not starting with my system.

root@ix2:~# apt-get install systemd -y
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
systemd is already the newest version (247.3-7+deb11u4).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@ix2:~# systemd
Trying to run as user instance, but the system has not been booted with systemd.
root@ix2:/usr/bin# systemd --version
systemd 247 (247.3-7+deb11u4)
+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=unified
root@ix2:/usr/bin#

Again have patience with me as I am a mainly windows pleb :)

You said in there "for example fw_setenv...." is there another example maybe?



Edited 2 time(s). Last edit at 11/24/2023 03:58PM by DeDaMrAz.
Re: Another Lenovo ix2-ng thread
November 24, 2023 04:31PM
DeDaMrAz,

The rootfs is probably a bit old when Geoff wrote the instruction. It probably was Debian bullseye. In the old rootfs, systemd was at /bin, not /usr/bin.

Your log got cut off, not a complete log, so a bit hard to tell the reason right way, I need to ask more questions.

Starting kernel ...

<important part in the first 4 sceonds is missing here>

[    4.103915][    T1] printk: console [ttyS0] enabled
[    4.113704][    T1] printk: bootconsole [earlycon0] disabled


So log in, and

cat /proc/mtd
cat /proc/cmdline
cat /etc/debian_version
which systemd

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Another Lenovo ix2-ng thread
November 24, 2023 04:38PM
Quote

bodhi Wrote:
-------------------------------------------------------
> DeDaMrAz,
>
> The rootfs is probably a bit old when Geoff wrote
> the instruction. It probably was Debian bullseye.
> In the old rootfs, systemd was at /bin, not
> /usr/bin.
>
> Your log got cut off, not a complete log, so a bit
> hard to tell the reason right way, I need to ask
> more questions.
>
>
> Starting kernel ...
> 
> <important part in the first 4 sceonds is missing
> here>
> 
> [    4.103915][    T1] printk: console [ttyS0]
> enabled
> [    4.113704][    T1] printk: bootconsole
> [earlycon0] disabled
>

tried multiple times but there is just no output before those 4 second, sorry.

Output form other commands:

root@ix2:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 0007e000 00001000 "u-boot"
mtd1: 00001000 00001000 "u-boot env2"
mtd2: 00001000 00001000 "u-boot env"
root@ix2:~# cat /proc/cmdline
console=ttyS0,115200 root=LABEL=rootfs earlyprintk=serial
root@ix2:~# cat /etc/debian_version
11.8
root@ix2:~# which systemd
/bin/systemd
root@ix2:~#



Edited 1 time(s). Last edit at 11/24/2023 04:39PM by DeDaMrAz.
Re: Another Lenovo ix2-ng thread
November 24, 2023 04:44PM
[qoute]bodhi Wrote:
-------------------------------------------------------
> DeDaMrAz,
>
> The rootfs is probably a bit old when Geoff wrote
> the instruction. It probably was Debian bullseye.
> In the old rootfs, systemd was at /bin, not
> /usr/bin.
[/quote]

So does this mean I can change this line:

fw_setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts init=/usr/bin/systemd'

To something like this?

fw_setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts init=/bin/systemd'

Re: Another Lenovo ix2-ng thread
November 24, 2023 05:04PM
> To something like this?
>
>
> fw_setenv set_bootargs 'setenv bootargs
> console=ttyS0,115200 root=LABEL=rootfs
> rootdelay=10 $mtdparts init=/bin/systemd'
> 
>

Not quite. You have other problems related to fw_setenv that I will come back tomorrow for those.

Right now, add it to the bootargs in serial console. Like this,

setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial init=/bin/systemd''

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Another Lenovo ix2-ng thread
November 24, 2023 05:24PM
Quote

bodhi Wrote:
-------------------------------------------------------.
>
> Right now, add it to the bootargs in serial
> console. Like this,
>
 setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial init=/bin/systemd''
 

Done

Marvell>> printenv
MALLOC_len=1
autoload=no
baudrate=115200
boot_mem=bootm $(mem_kernel) $(mem_initrd)
boot_try=run load_kernel load_initrd boot_mem
bootargs_end=:::DB88FXX81:eth0:none
bootargs_mtd=mtdparts=spi_flash:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2)
bootargs_root=root=/dev/ram0
bootcmd=echo *Try USB*; run conf_usb boot_try; echo *Try IDE*; run conf_ide boot_try; echo *Try IDE1*; ide device 1; run boot_try
bootcmd2=ide dev 1;ide read 0x40000 0x800 0x1800; ide read 0x900000 0x2000 0x1800; bootm 0x40000 0x900000;
conf_ide=ide reset; setenv boot_dev ide; setenv bootargs $(console) root=LABEL=rootfs earlyprintk=serial
conf_usb=usb reset; setenv boot_dev usb; setenv bootargs $(console) root=LABEL=usbroot earlyprintk=serial
console=console=ttyS0,115200
ethact=egiga0
ethaddr=00:D0:B8:15:3D:19
ethmtu=1500
ethprime=egiga0
ftpserver=192.168.43.4
fw_ver=4.0.6.19294
image_multi=yes
image_name=uImage
initrdimage=mfginitrd
ipaddr=192.168.1.2
kernelimage=zImage
lcd0_enable=0
lcd0_params=640x480-16@60
load_initrd=$(boot_dev) read $(mem_initrd) $(off_initrd) $(sz_initrd)
load_kernel=$(boot_dev) read $(mem_kernel) $(off_kernel) $(sz_kernel)
loadaddr=0x02000000
loads_echo=0
mem_initrd=0x2000000
mem_kernel=0x1000000
mfgmodel=ix2
mfgtest_state=system_tested_ok
modelname=32041700
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
mvPhoneConfig=mv_phone_config=dev[0]:fxs,dev[1]:fxo
netmask=255.255.255.0
netretry=no
off_initrd=0x8800
off_kernel=0x800
pre_dirzi=IX2/1.0.9
pre_passwd=123
pre_path=IX2/1.0.9/download_runin.sh
pre_path_conf=IX2/1.0.9/download_runin.conf
pre_serverip=192.168.32.4
pre_user=ixxrunin
preroot_ver=0.0.2
rcvrip=169.254.100.100
rootpath=/srv/ubuntu
run_diag=yes
runintime=10800
serialNo=EUAE0200TN
serial_number=5563Y01001G35200362J0D1
serialno=0,01TLDi6sSS377FK276QELpY07iuyMBU6Vd6Z2a5awvyyoPvgN6M3euEdOrtqFSb1SW,EUAE0200TN,
serverip=192.168.32.4
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts init=/bin/systemd
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
sz_initrd=0x6000
sz_kernel=0x4000
testfile=100M
uboot_ver=0.0.8
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
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 init=/bin/systemd

Environment size: 2699/4091 bytes


Re: Another Lenovo ix2-ng thread
November 24, 2023 06:26PM
Hold on,

Geoff set it up a bit different from my default envs.

Try
setenv conf_usb 'usb reset; setenv boot_dev usb; setenv bootargs $(console) root=LABEL=usbroot earlyprintk=serial init=/bin/systemd'
and then

boot

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Another Lenovo ix2-ng thread
November 24, 2023 06:37PM
I have managed to circumvent this systemd problem by installing these two packages:

systemd-sysv and usrmerge

It has changed my configuration and I am able to run omv install script, but wait there is more.... install script errors out with amrel is unsupported :)

Still going to play with this and will post the end result once done - btw any help is greatly appreciated.



Edited 2 time(s). Last edit at 11/24/2023 06:37PM by DeDaMrAz.
Re: Another Lenovo ix2-ng thread
November 24, 2023 10:52PM
I have almost the entire solution for this box and will post soon all that I have gathered and managed to install OMV on it :)
Braian
Re: Another Lenovo ix2-ng thread
December 09, 2023 05:48PM
Hey! please keep us updated!
Re: Another Lenovo ix2-ng thread
December 17, 2023 08:38PM
...to sum up the last steps:

I installed
apt-get install systemd-sysv

then
apt install usrmerge

With your text editor of choice go to:

/etc/apt/sources.list.d/openmediavault.list


Add following line

deb http://packages.openmediavault.org/public shaitan InRelease


then use

apt install openmediavault


If you get any errors follow up on what is missing as this was a several nights ordeal and I didn't document enough.
Re: Another Lenovo ix2-ng thread
December 17, 2023 08:59PM
DeDaMrAz,

Nice!

Please edit your post with your system version so others will have a good reference.

uname -a
cat /etc/debian_version

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Another Lenovo ix2-ng thread
December 17, 2023 09:01PM
Unfortunately I already donated that device, sorry.
Re: Another Lenovo ix2-ng thread
December 17, 2023 09:03PM
DeDaMrAz Wrote:
-------------------------------------------------------
> Unfortunately I already donated that device,
> sorry.

Nice! :) no problem

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Another Lenovo ix2-ng thread
December 17, 2023 09:06PM
Here was the system info in your previous post.

ix2
192.168.0.30
Lenovo IX2-ng
Linux version 5.18.7-kirkwood-tld-1 (root@ix2) (gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1 PREEMPT Wed Jun 29 00:58:23 EDT 2022
Debian 11.3
Fri Nov 24 14:24:12 EST 2023 up 0 minutes

-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: