Welcome! Log In Create A New Profile

Advanced

resurrecting iomega storcenter ix2 u-boot and debian

Posted by wibu 
resurrecting iomega storcenter ix2 u-boot and debian
November 22, 2023 02:40AM
I have an original 1TB (2x500GB) iomega storcenter that I want to get up and going with debian.

I was able to get uart console functioning to my nearby linux box, and I can see that it is running a very old u-boot, which does not support usb devices.

Marvell Development Board (LSP Version 1.10.3_DB_NAS)-- DB-88F5182-DHNSMR03  Soc: 88F5182 A2
U-Boot 1.1.1 (Jun  3 2007 - 20:44:19) USI u-boot-1.1.1-DHNSMR03/04-v3.1.0.0
Linux version 2.6.12.6-arm1 (td@localhost.localdomain) (gcc version 3.4.4 (release) (CodeSourcery ARM 2005q3-2)) #1 Tue Jul 3 15:31:00 MDT 2007 (kernel-2.6.12-DHNSMR03/04-V-2.1.2.0)


Iomega834x: Flash found at location 0xffc00000
Creating 3 MTD partitions on "Flash":
0x00000000-0x00200000 : "kernel"
0x00200000-0x00380000 : "cramfs"
0x00380000-0x00400000 : "bootloader"

I have a tftp server set up and used tftp to fetch a kernel image but it went silent after jumping to it.
Perhaps starting top down makes sense, but eventually I want to update u-boot in flash.

I tried to build the u-boot for kirkwood but got some compiler errors.
I'd try kwboot but I'm not sure which image to use here, or whether this board will support it.

Does anyone have any starting hints?
Re: resurrecting iomega storcenter ix2 u-boot and debian
November 22, 2023 04:42AM
This is not a kirkwood device, but an earlier Marvell SOC known by the code name Orion. There are a few Orion based devices currently supported by mainline Linux kernel mostly Buffalo and Lacie NAS boxes. I believe the Orion devices like the very early kirkwood devices do not support kwboot. I would advise looking at trying the generic orion5x-rd88f5182-nas.dts as a starting point.
Re: resurrecting iomega storcenter ix2 u-boot and debian
November 22, 2023 11:36AM
Thanks for the tip, rayknight.

I found this good reference https://docs.kernel.org/arch/arm/marvell.html with some pointers to more details about those devices.

u-boot mainline support is there also for MV88F5182_REV_A2.
Re: resurrecting iomega storcenter ix2 u-boot and debian
November 22, 2023 04:24PM
wibu,

This Orion5x SoC is very old, so I never thought about adding it to the Kirkwood kernel. But I think it is quite possible to configure it in and you can use the rootfs Debian-6.5.7-kirkwood-tld-1-rootfs-bodhi.tar.bz2 from the release thread:

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

This basic rootfs is armel so it should work on Orion5x. I'll build an experimental kernel and let you try booting it.

Quote

I have a tftp server set up and used tftp to fetch a kernel image but it went silent after jumping to it.
Perhaps starting top down makes sense, but eventually I want to update u-boot in flash.

That's a good try. Most of the time, there is no need to use new u-boot. Stock u-boot is enough to run Debian. You knew tftp works, so it wil not be difficult to run Debian with the appropriate kernel.

Please also try to see if you have USB support.

With a USB flash drive ttached, boot with serial console connected. Interrupt the count down and,

help
printenv
usb start
ext2ls usb 0:1 /
And if you can still boot to stock, go ahead boot into stock. It's good to see what the system log looks like.
boot

And post the entire serial console log here. Post everything from the u-boot banner until the system login prompt.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: resurrecting iomega storcenter ix2 u-boot and debian
November 23, 2023 06:10PM
Thanks, bodhi. I will really appreciate the assist getting this working.

Unfortunately this old u-boot doesn't have any usb support.
But, I agree with you that chain booting should be enough, at least for now.

I found a SATA 1TB drive from an xbox, and uboot's "ide reset" was able to see the device.
With use of MBR and ext3 with internal journal, ext2ls and ext2load also work from u-boot.
With this drive, I could also safely remove that awfully noisy fan, and the box is much lighter.

Below is my complete tio log from u-boot and kernel boot.

2023-11-23 16:02:49
	 __  __			     _ _
	|  \/  | __ _ _ ____   _____| | |
	| |\/| |/ _` | '__\ \ / / _ \ | |
	| |  | | (_| | |   \ V /  __/ | |
	|_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _	   ____		     _
| | | |	  | __ )  ___	___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/	  |____/ \___/ \___/ \__|  ** LOADER **
 ** MARVELL BOARD: DHNSMR03 LE

U-Boot 1.1.1 (Jun  3 2007 - 20:44:19) USI u-boot-1.1.1-DHNSMR03/04-v3.1.0.0

DRAM CS[0] base 0x00000000   size  64MB
DRAM Total size	 64MB
[4096kB@ffc00000] [0kB@fa000000] ## Unknown FLASH at fa000000: Size = 0x00000000 = 0 MB
Flash:	4 MB
Addresses 20M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (20M - 16M): Done

Soc: 88F5182 A2
CPU: ARM926 (Rev 0) running @ 400Mhz
Orion 1 streaming disabled
SysClock = 200Mhz , TClock = 166Mhz


USB 0: host mode
USB 1: host mode
PCI 0: PCI Express Root Complex Interface
PCI 1: Conventional PCI, speed = 66000000
Net:   egiga0 [PRIME]
Hit any key to stop autoboot: 10
Marvell>> ide reset

Reset IDE:
Marvell Serial ATA Adapter
Intergrated Sata device found
  Device 0: OK
Model: ST1000LM035-1RK172			Firm: MCC3     Ser#:		 WL1T1PED
	    Type: Hard Disk
	    Supports 48-bit addressing
	    Capacity: 925253.9 MB = 903.5 GB (1894920048 x 512)

Marvell>> ide part

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

Partition     Start Sector     Num Sectors     Type
    1		      2048	1048576000	83
    2		1048578048	 846342000	83

Marvell>> printenv
bootdelay=15
baudrate=115200
loads_echo=0
rootpath=/mnt/ARM_FS/
filesize=180000
fileaddr=2000000
cpuName=926
CASset=min
MALLOC_len=4
ethprime=egiga0
bootargs_root=root=/dev/nfs rw
bootargs_end=:::DB88FXX81:egiga0:none
image_name=uImage
standalone=fsload 0x400000 $(image_name);setenv bootargs $(bootargs) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end); bootm 0x400000;
usb1Mode=host
ethact=egiga0
usb0Mode=host
ethaddr=00:D0:B8:02:78:63
bootargs=root=/dev/mtdblock1 ro rootfstype=cramfs devfs=mount console=ttyS0,115200 init=/crmfsinit
bootcmd=bootm ffc00000
diskconfig=2
ipaddr=192.168.86.24
serverip=192.168.86.33
stdin=serial
stdout=serial
stderr=serial
enaMonExt=no
enaFlashBuf=yes
enaCpuStream=no
disaMvPnp=no
overEthAddr=no

Environment size: 746/65532 bytes
Marvell>> boot
## Booting image at ffc00000 ...
   Image Name:	 Linux-2.6.12.6-arm1
   Created:	 2007-07-03  21:31:03 UTC
   Image Type:	 ARM Linux Kernel Image (uncompressed)
   Data Size:	 1456932 Bytes =  1.4 MB
   Load Address: 00008000
   Entry Point:	 00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux............................................................................................... done, booting the kernel.
Linux version 2.6.12.6-arm1 (td@localhost.localdomain) (gcc version 3.4.4 (release) (CodeSourcery ARM 2005q3-2)) #1 Tue Jul 3 15:31:00 MDT 2007 (kernel-2.6.12-DHNSMR03/04-V-2.1.2.0)
CPU: ARM926EJ-Sid(wb) [41069260] revision 0 (ARMv5TEJ)
CPU0: D VIVT write-back cache
CPU0: I cache: 32768 bytes, associativity 1, 32 byte lines, 1024 sets
CPU0: D cache: 32768 bytes, associativity 1, 32 byte lines, 1024 sets
Machine: MV-88fxx81
Using UBoot passing parameters structure
Sys Clk = 200000000, Tclk = 166666667
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists
Kernel command line: root=/dev/mtdblock1 ro rootfstype=cramfs devfs=mount console=ttyS0,115200 init=/crmfsinit
PID hash table entries: 512 (order: 9, 8192 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 64MB 0MB 0MB 0MB = 64MB total
Memory: 61696KB available (2525K code, 433K data, 96K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
 config_device_cs Error : Unknown board

CPU Interface
-------------
SDRAM_CS0 ....base 00000000, size  64MB
SDRAM_CS1 ....disable
SDRAM_CS2 ....disable
SDRAM_CS3 ....disable
PEX0_MEM ....base e0000000, size 128MB
PEX0_IO ....base f2000000, size	  1MB
PCI0_MEM ....base e8000000, size 128MB
PCI0_IO ....base f2100000, size	  1MB
INTER_REGS ....base f1000000, size   1MB
DEVICE_CS0 ....base fa000000, size   2MB
DEVICE_CS1 ....base f4000000, size  32MB
DEVICE_CS2 ....base fa800000, size   1MB
DEV_BOOCS ....base ff800000, size   8MB
CRYPTO ENG ....no such
 mv_mtd_initialize Error : Unknown board

  Marvell Development Board (LSP Version 1.10.3_DB_NAS)-- DB-88F5182-DHNSMR03  Soc: 88F5182 A2

 Detected Tclk 166666667 and SysClk 200000000
Marvell USB EHCI Host controller #0: c03cbb00
Marvell USB EHCI Host controller #1: c03cba40
pexBarOverlapDetect: winNum 2 overlap current 0
mvPexInit:Warning :Bar 2 size is illigal
it will be disabled
please check Pex and CPU windows configuration
PCI: bus0: Fast back to back transfers enabled
PCI: bus1: Fast back to back transfers enabled
SCSI subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
use IDMA acceleration in copy to/from user buffers. used channels 2 and 3
Done.
mvCesaInit: sessions=640, queue=32, pSram=f0000000
cesadev_init(c000f5c8)
Fast Floating Point Emulator V0.9 (c) Peter Teichmann.
devfs: 2004-01-31 Richard Gooch (rgooch@atnf.csiro.au)
devfs: boot_options: 0x1
NTFS driver 2.1.22 [Flags: R/O].
Initializing Cryptographic API
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
ttyS0 at MMIO 0x0 (irq = 3) is a 16550A
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered
Marvell Gigabit Ethernet Driver 'egiga':
  o Ethernet descriptors in DRAM
  o DRAM SW cache-coherency
  o Checksum offload enabled
  o Loading network interface 'eth0'
Intergrated Sata device found
scsi0 : Marvell SCSI to SATA adapter
scsi1 : Marvell SCSI to SATA adapter
  Vendor: Seagate   Model: ST1000LM035-1RK1  Rev: MCC3
  Type:	  Direct-Access			     ANSI SCSI revision: 03
SCSI device sda: 1894920048 512-byte hdwr sectors (970199 MB)
SCSI device sda: drive cache: write back
SCSI device sda: 1894920048 512-byte hdwr sectors (970199 MB)
SCSI device sda: drive cache: write back
 /dev/scsi/host0/bus0/target0/lun0: p1 p2
Attached scsi disk sda at scsi0, channel 0, id 0, lun 0
Attached scsi generic sg0 at scsi0, channel 0, id 0, lun 0,  type 0
NFTL driver: nftlcore.c $Revision: 1.97 $, nftlmount.c $Revision: 1.40 $
Iomega834x: Probing for flash...
Flash: Found 1 x16 devices at 0x0 in 8-bit bank
 Amd/Fujitsu Extended Query Table at 0x0040
Flash: CFI does not contain boot bank location. Assuming top.
number of CFI chips: 1
cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.
Iomega834x: Flash found at location 0xffc00000
Creating 3 MTD partitions on "Flash":
0x00000000-0x00200000 : "kernel"
0x00200000-0x00380000 : "cramfs"
0x00380000-0x00400000 : "bootloader"
ehci_platform ehci_platform.4523: EHCI Host Controller
ehci_platform ehci_platform.4523: new USB bus registered, assigned bus number 1
ehci_platform ehci_platform.4523: irq 17, io mem 0x00000000
ehci_platform ehci_platform.4523: park 0
ehci_platform ehci_platform.4523: USB 0.0 initialized, EHCI 1.00, driver 10 Dec 2004
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ehci_platform ehci_platform.16781: EHCI Host Controller
ehci_platform ehci_platform.16781: new USB bus registered, assigned bus number 2
ehci_platform ehci_platform.16781: irq 12, io mem 0x00000000
ehci_platform ehci_platform.16781: park 0
ehci_platform ehci_platform.16781: USB 0.0 initialized, EHCI 1.00, driver 10 Dec 2004
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
usbcore: registered new driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
md: linear personality registered as nr 1
md: raid0 personality registered as nr 2
md: raid1 personality registered as nr 3
md: md driver 0.90.1 MAX_MD_DEVS=256, MD_SB_DISKS=27
NET: Registered protocol family 2
IP: routing cache hash table of 512 buckets, 4Kbytes
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
NET: Registered protocol family 1
NET: Registered protocol family 17
devfs_mk_dev: could not append to parent for md/0
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
VFS: Mounted root (cramfs filesystem) readonly.
Mounted devfs on /dev
Freeing init memory: 96K


*** Executing /crmfsinit

Checking disk available status
Dual drives detected
EXT3-fs: unable to read superblock
mount: Mounting /dev/md/0 on /hdd failed: Invalid argument
mount: Mounting /dev/md/1 on /hdd/nethdd failed: No such file or directory
cp: /hdd/etc/fstab_double: No such file or directory
cp: /hdd/etc/devfsd.conf_double: No such file or directory
/crmfsinit: 67: cannot create /hdd/etc/diskcfg: Directory nonexistent


*** No Valid filesystem detected
 * Initializing /var...

[ ok ]
 * Starting respawn daemon...

[ ok ]
 * Bringing eth0 up...

+ Running standard config
eth0: link down

+ IP address: 192.168.0.90

+ netmask: 255.255.255.0

+ broadcast address: 192.168.0.255

+ default gateway: 192.168.0.1

+ boot protocol: dhcp

+ starting DHCP client
udhcpc (v0.9.9-pre) started
udhcpc[272]: udhcpc (v0.9.9-pre) started

[ ok ]
 * Starting Toronto Discovery Client...
Running non-bridged mode...
/etc/default.script: 31: cannot create /etc/hosts: Read-only file system

[ ok ]


BusyBox v1.00 (BUILDTIME) Built-in shell (ash)
Enter 'help' for a list of built-in commands.

/bin/sh: can't access tty; job control turned off
/ # route: resolving gw
Sending discover...
udhcpc[272]: Sending discover...
Sending discover...
udhcpc[272]: Sending discover...
eth0: link up<5>, full duplex<5>, speed 1 Gbps<5>
Sending discover...
udhcpc[272]: Sending discover...
Sending select for 192.168.86.24...
udhcpc[272]: Sending select for 192.168.86.24...
Lease of 192.168.86.24 obtained, lease time 86400
udhcpc[272]: Lease of 192.168.86.24 obtained, lease time 86400
/etc/default.script: 44: cannot create /etc/hosts: Read-only file system
/etc/default.script: 53: cannot create /etc/resolv.conf: Read-only file system
/etc/default.script: 54: cannot create /etc/resolv.conf: Read-only file system
/etc/default.script: 61: cannot create /etc/resolv.conf: Read-only file system

# cat /proc/mtd 
dev:    size   erasesize  name
mtd0: 00200000 00010000 "kernel"
mtd1: 00180000 00010000 "cramfs"
mtd2: 00080000 00010000 "bootloader"

Re: resurrecting iomega storcenter ix2 u-boot and debian
November 24, 2023 12:26PM
I tried your rootfs Debian-6.5.7, but all binaries give a segfault.
I had earlier tried a cross-compile of a simple write(1, "Simple\n", 7) hello world program,
and found this behavior seems to be traced to incompatible EABI5.
The busybox (v1.00 !) that's in my mtd is EABI4.
I didn't find a toolchain yet that will work for that.

I did find an update package
StorCenter ix2 Firmware Version 2.0.18.23122 which is for an "m1" model, from which I was able to construct a small working rootfs.
By setting init=/bin/sh I could use my flashed kernel and initrd, then pivot_root into that environment.

So if you provide a new kernel I have some hope for compatibility.
Re: resurrecting iomega storcenter ix2 u-boot and debian
November 24, 2023 03:09PM
> I tried your rootfs Debian-6.5.7, but all binaries
> give a segfault.

Understandable. Let's wait until you can boot the new kernel and we can see it better.

> I had earlier tried a cross-compile of a simple
> write(1, "Simple\n", 7) hello world program,
> and found this behavior seems to be traced to
> incompatible EABI5.
> The busybox (v1.00 !) that's in my mtd is EABI4.

Wow, ancient.

> I didn't find a toolchain yet that will work for
> that.
>
> I did find an update package
> StorCenter
> ix2 Firmware Version 2.0.18.23122
which is
> for an "m1" model, from which I was able to
> construct a small working rootfs.
> By setting init=/bin/sh I could use my flashed
> kernel and initrd, then pivot_root into that
> environment.
>
> So if you provide a new kernel I have some hope
> for compatibility.

OK. As long as you can boot the new kernel, I'm sure you can figure out the rest. I'll upload the tarball.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: resurrecting iomega storcenter ix2 u-boot and debian
November 24, 2023 03:36PM
Download at Dropbox
linux-6.6.1-kirkwood-tld-2-bodhi.tar.bz2
md5: 
eedd7e0abe6327acc6ee409cd1d35767
sha256:
94cc4e5e1b95a366baf04960af197fbb5ff358986a59e075d6e9b6da2b26c56a


Extract the zImage-6.6.1-kirkwood-tld-2 and orion5x-rd88f5182-nas.dtb from this tarball.

And create the uImage.
cp -a zImage-6.6.1-kirkwood-tld-2 zImage.fdt
cat orion5x-rd88f5182-nas.dtb  >> zImage.fdt
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-6.6.1-kirkwood-tld-2 -d zImage.fdt  uImage

And use tftp to load and boot (as typical for Kirkwood, we run it at 0x800000):
tftpboot 0x800000 uImage
bootm 0x800000

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: resurrecting iomega storcenter ix2 u-boot and debian
November 24, 2023 11:29PM
Wonderful, so many 8's and 0's to differentiate!
And of course the dtb comes after the kernel, not before. (wink)

Anyway, finally got everything to make its way to the target.
It looks like it's crashing and burning quietly (thus added earlyprintk) around early_mm_init:


 ** MARVELL BOARD: DHNSMR03 LE

U-Boot 1.1.1 (Jun  3 2007 - 20:44:19) USI u-boot-1.1.1-DHNSMR03/04-v3.1.0.0

DRAM CS[0] base 0x00000000   size  64MB
DRAM Total size	 64MB
[4096kB@ffc00000] [0kB@fa000000] ## Unknown FLASH at fa000000: Size = 0x00000000 = 0 MB
Flash:	4 MB
Addresses 20M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (20M - 16M): Done

Soc: 88F5182 A2
CPU: ARM926 (Rev 0) running @ 400Mhz
Orion 1 streaming disabled
SysClock = 200Mhz , TClock = 166Mhz


USB 0: host mode
USB 1: host mode
PCI 0: PCI Express Root Complex Interface
PCI 1: Conventional PCI, speed = 66000000
Net:   egiga0 [PRIME]
Hit any key to stop autoboot: 10
Marvell>> ide reset

Reset IDE:
Marvell Serial ATA Adapter
Intergrated Sata device found
  Device 0: OK
Model: ST1000LM035-1RK172			Firm: MCC3     Ser#:		 WL1T1PED
	    Type: Hard Disk
	    Supports 48-bit addressing
	    Capacity: 925253.9 MB = 903.5 GB (1894920048 x 512)

Marvell>> setenv bootargs console=ttyS0,115200 earlyprintk=serial initcall_debug loglevel=7 init=/bin/sh root=/dev/scsi/host2/bus0/target0/lun0/part2

Marvell>> tftpboot 0x800000 ix2-kw/uImage
Using egiga0 device
TFTP from server 192.168.86.33; our IP address is 192.168.86.24
Filename 'ix2-kw/uImage'.
Load address: 0x800000
Loading: #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 ######
done
Bytes transferred = 6350545 (60e6d1 hex)
Marvell>> bootm 0x800000
## Booting image at 00800000 ...
   Image Name:	 Linux-6.6.1-kirkwood-tld-2
   Created:	 2023-11-25   5:18:11 UTC
   Image Type:	 ARM Linux Kernel Image (uncompressed)
   Data Size:	 6350481 Bytes =  6.1 MB
   Load Address: 00008000
   Entry Point:	 00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

[    0.000000][	   T0] Booting Linux on physical CPU 0x0
[    0.000000][	   T0] Linux version 6.6.1-kirkwood-tld-2 (root@tldDebian) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #3 PREEMPT Wed Nov 22 14:06:25 PST 2023
[    0.000000][	   T0] CPU: Feroceon [41069260] revision 0 (ARMv5TEJ), cr=a005317f
[    0.000000][	   T0] CPU: VIVT data cache, VIVT instruction cache
[    0.000000][	   T0] OF: fdt: Machine model: Marvell Reference Design 88F5182 NAS
[    0.000000][	   T0] printk: bootconsole [earlycon0] enabled
[    0.000000][	   T0] Memory policy: Data cache writeback

Re: resurrecting iomega storcenter ix2 u-boot and debian
November 25, 2023 01:39AM
Quote

Marvell>> setenv bootargs console=ttyS0,115200 earlyprintk=serial initcall_debug loglevel=7 init=/bin/sh root=/dev/scsi/host2/bus0/target0/lun0/part2

Marvell>> tftpboot 0x800000 ix2-kw/uImage

We don't care much about root at this point. So try

setenv bootargs 'console=ttyS0,115200 root=/dev/sda1 rootdelay=10 earlyprintk=serial'
tftpboot 0x1400000 ix2-kw/uImage
bootm 0x1400000


That was load address at 0x1400000 (20 MB).

If it does not work, try load address 0x2000000 (32 MB).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: resurrecting iomega storcenter ix2 u-boot and debian
November 25, 2023 12:07PM
Hi bodhi,

Unfortunately neither of those load addresses has made a difference in the progress of the linux kernel.

Happy weekends!

	 __  __			     _ _
	|  \/  | __ _ _ ____   _____| | |
	| |\/| |/ _` | '__\ \ / / _ \ | |
	| |  | | (_| | |   \ V /  __/ | |
	|_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _	   ____		     _
| | | |	  | __ )  ___	___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/	  |____/ \___/ \___/ \__|  ** LOADER **
 ** MARVELL BOARD: DHNSMR03 LE

U-Boot 1.1.1 (Jun  3 2007 - 20:44:19) USI u-boot-1.1.1-DHNSMR03/04-v3.1.0.0

DRAM CS[0] base 0x00000000   size  64MB
DRAM Total size	 64MB
[4096kB@ffc00000] [0kB@fa000000] ## Unknown FLASH at fa000000: Size = 0x00000000 = 0 MB
Flash:	4 MB
Addresses 20M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (20M - 16M): Done

Soc: 88F5182 A2
CPU: ARM926 (Rev 0) running @ 400Mhz
Orion 1 streaming disabled
SysClock = 200Mhz , TClock = 166Mhz


USB 0: host mode
USB 1: host mode
PCI 0: PCI Express Root Complex Interface
PCI 1: Conventional PCI, speed = 66000000
Net:   egiga0 [PRIME]
Hit any key to stop autoboot: 10

Marvell>> setenv bootargs console=ttyS0,115200 earlyprintk=serial loglevel=7 initcall_debug root=/dev/sda1 rootdelay=30
Marvell>> tftpboot 0x2000000 ix2-kw/uImage
Using egiga0 device
TFTP from server 192.168.86.33; our IP address is 192.168.86.24
Filename 'ix2-kw/uImage'.
Load address: 0x2000000
Loading: #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 ######
done
Bytes transferred = 6350545 (60e6d1 hex)
Marvell>> bootm 0x2000000
## Booting image at 02000000 ...
   Image Name:	 Linux-6.6.1-kirkwood-tld-2
   Created:	 2023-11-25   5:18:11 UTC
   Image Type:	 ARM Linux Kernel Image (uncompressed)
   Data Size:	 6350481 Bytes =  6.1 MB
   Load Address: 00008000
   Entry Point:	 00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

[    0.000000][	   T0] Booting Linux on physical CPU 0x0
[    0.000000][	   T0] Linux version 6.6.1-kirkwood-tld-2 (root@tldDebian) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #3 PREEMPT Wed Nov 22 14:06:25 PST 2023
[    0.000000][	   T0] CPU: Feroceon [41069260] revision 0 (ARMv5TEJ), cr=a005317f
[    0.000000][	   T0] CPU: VIVT data cache, VIVT instruction cache
[    0.000000][	   T0] OF: fdt: Machine model: Marvell Reference Design 88F5182 NAS
[    0.000000][	   T0] printk: bootconsole [earlycon0] enabled
[    0.000000][	   T0] Memory policy: Data cache writeback

	 __  __			     _ _
	|  \/  | __ _ _ ____   _____| | |
	| |\/| |/ _` | '__\ \ / / _ \ | |
	| |  | | (_| | |   \ V /  __/ | |
	|_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _	   ____		     _
| | | |	  | __ )  ___	___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/	  |____/ \___/ \___/ \__|  ** LOADER **
 ** MARVELL BOARD: DHNSMR03 LE

U-Boot 1.1.1 (Jun  3 2007 - 20:44:19) USI u-boot-1.1.1-DHNSMR03/04-v3.1.0.0

DRAM CS[0] base 0x00000000   size  64MB
DRAM Total size	 64MB
[4096kB@ffc00000] [0kB@fa000000] ## Unknown FLASH at fa000000: Size = 0x00000000 = 0 MB
Flash:	4 MB
Addresses 20M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (20M - 16M): Done

Soc: 88F5182 A2
CPU: ARM926 (Rev 0) running @ 400Mhz
Orion 1 streaming disabled
SysClock = 200Mhz , TClock = 166Mhz


USB 0: host mode
USB 1: host mode
PCI 0: PCI Express Root Complex Interface
PCI 1: Conventional PCI, speed = 66000000
Net:   egiga0 [PRIME]
Hit any key to stop autoboot: 10
Marvell>> setenv bootargs 'console=ttyS0,115200 root=/dev/sda1 rootdelay=10 earlyprintk=serial'
Marvell>> tftpboot 0x1400000 ix2-kw/uImage
Using egiga0 device
TFTP from server 192.168.86.33; our IP address is 192.168.86.24
Filename 'ix2-kw/uImage'.
Load address: 0x1400000
Loading: #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 ######
done
Bytes transferred = 6350545 (60e6d1 hex)
Marvell>> bootm 0x1400000
## Booting image at 01400000 ...
   Image Name:	 Linux-6.6.1-kirkwood-tld-2
   Created:	 2023-11-25   5:18:11 UTC
   Image Type:	 ARM Linux Kernel Image (uncompressed)
   Data Size:	 6350481 Bytes =  6.1 MB
   Load Address: 00008000
   Entry Point:	 00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

[    0.000000][	   T0] Booting Linux on physical CPU 0x0
[    0.000000][	   T0] Linux version 6.6.1-kirkwood-tld-2 (root@tldDebian) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #3 PREEMPT Wed Nov 22 14:06:25 PST 2023
[    0.000000][	   T0] CPU: Feroceon [41069260] revision 0 (ARMv5TEJ), cr=a005317f
[    0.000000][	   T0] CPU: VIVT data cache, VIVT instruction cache
[    0.000000][	   T0] OF: fdt: Machine model: Marvell Reference Design 88F5182 NAS
[    0.000000][	   T0] printk: bootconsole [earlycon0] enabled
[    0.000000][	   T0] Memory policy: Data cache writeback

Re: resurrecting iomega storcenter ix2 u-boot and debian
November 25, 2023 04:21PM
wibu,

There is something in this u-boot I don't understand yet.

The booting behavior is as though the kernel does not know where the RAM is and how big. Like the ATAG registers didn't pass along the memory characteristics. And what defined in the kernel DTS should be correct already.

How about adding the mem option to the bootargs:
setenv bootargs 'console=ttyS0,115200 root=/dev/sda1 rootdelay=10 earlyprintk=serial mem=64M'

=======

Our member 1000001101000 also had figured out some of the Orion5x Buffallo NASs.

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

Let me see if I can PM him.

=======

Also here in this page we can find the Debian installer for Kurobox Pro.

http://www.cyrius.com/debian/orion/buffalo/kuroboxpro/install/

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



Edited 1 time(s). Last edit at 11/25/2023 04:36PM by bodhi.
Re: resurrecting iomega storcenter ix2 u-boot and debian
November 25, 2023 08:27PM
hmm. At first glance that all looks pretty reasonable, I have a few thoughts but nothing definitive.

That's an odd spot for it to stop, it reminds me of some issues I've run into for newer devices that shouldn't apply for this type of device. Like Bohdi said, the output stops where the memory initialization should be happening. Looking at your dmesg output from the stock I don't see anything unusual about the main memory range. Since the machineID is coming from the DTB we can be sure that is loading, it's hard to image there being a problem with it getting the memory range(s) from the DTB or ATAGs but since the output stops there we can't rule that out.

I think I've seen early kernel crashes that result in the latest output not getting flushed to the serial console, so it might be failing later in the process than it appears.... maybe.

The memory location for the kernel isn't as important as it is for the initrd, whatever the default was for the stock kernel is probably okay. This is because the early code of the compressed kernel automatically relocates itself before unpacking to the beginning of memory. Problems with loading the initrd too early in memory happen because the relocation process is unaware of the initrd location and will blindly overwrite it if it's in the way. I don't think it would have any output at all if the location was bad.

What I would probably try:
  • Try my kernel, it's possible there's some config issue or bug with 6.5 etc that is preventing it from working with Orion5x. Mine is known to work with several Orion5x devices. That can be found here
  • There could be some binding issue with that reference board DTS if it hasn't been updated/tested properly. You could try modifying one of my Orion5x DTS to 64MB and see if that boots any better, though I probably based the LSQL one on that NAS reference DTS.
  • generally speaking, when I start work on a new device DTS I strip out a bunch of the entries from the DTS and then add stuff back as I can confirm it exists. It is possible, if unlikely, that one of the pins that DTS configures for a button/LED is used for something else by your device which is causing a problem.


I booted up the closest device I have handy to that one, here is the dmesg output:
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 6.1.55 (root@fbbf9fbb63a7) (arm-linux-gnueabi-gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #12 Sun Oct  8 08:16:56 UTC 2023
[    0.000000] CPU: Feroceon [41069260] revision 0 (ARMv5TEJ), cr=a005317f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Buffalo Linkstation Pro/Live
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000]   HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000007ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[    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: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 bootshim=1
[    0.000000] Unknown kernel command line parameters "bootshim=1", will be passed to user space.
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] mem auto-init: stack:all(zero), heap alloc:on, heap free:off
[    0.000000] Memory: 112352K/131072K available (7710K kernel code, 1167K rwdata, 2552K rodata, 248K init, 235K bss, 18720K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] trace event string verifier disabled
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns
[    0.000003] sched_clock: 32 bits at 167MHz, resolution 6ns, wraps every 12884901885ns
[    0.000087] Switching to timer-based delay loop, resolution 6ns
[    0.000533] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=666666)
[    0.000586] CPU: Testing write buffer coherency: ok
[    0.000923] pid_max: default: 32768 minimum: 301
[    0.002144] LSM: Security Framework initializing
[    0.003137] landlock: Up and running.
[    0.003153] Yama: disabled by default; enable with sysctl kernel.yama.*
[    0.003741] AppArmor: AppArmor initialized
[    0.004579] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.004641] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.013904] cblist_init_generic: Setting adjustable number of callback queues.
[    0.013934] cblist_init_generic: Setting shift to 0 and lim to 1.
[    0.014691] Setting up static identity map for 0x8220 - 0x825c
[    0.019116] devtmpfs: initialized
[    0.028973] VFP support v0.3: not present
[    0.029475] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.029553] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.030219] pinctrl core: initialized pinctrl subsystem
[    0.035832] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.037926] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.040427] audit: initializing netlink subsys (disabled)
[    0.042951] thermal_sys: Registered thermal governor 'fair_share'
[    0.042983] thermal_sys: Registered thermal governor 'bang_bang'
[    0.043003] thermal_sys: Registered thermal governor 'step_wise'
[    0.043023] thermal_sys: Registered thermal governor 'user_space'
[    0.043109] cpuidle: using governor ladder
[    0.043446] Orion ID: MV88F5182-A2. TCLK=0.
[    0.044231] audit: type=2000 audit(0.040:1): state=initialized audit_enabled=0 res=1
[    0.061936] No ATAGs?
[    0.992565] raid6: int32x8  gen()    37 MB/s
[    1.060193] raid6: int32x4  gen()    40 MB/s
[    1.128387] raid6: int32x2  gen()    68 MB/s
[    1.196282] raid6: int32x1  gen()    84 MB/s
[    1.196314] raid6: using algorithm int32x1 gen() 84 MB/s
[    1.264266] raid6: .... xor() 37 MB/s, rmw enabled
[    1.264292] raid6: using intx1 recovery algorithm
[    1.267433] SCSI subsystem initialized
[    1.268446] libata version 3.00 loaded.
[    1.269452] usbcore: registered new interface driver usbfs
[    1.269673] usbcore: registered new interface driver hub
[    1.269839] usbcore: registered new device driver usb
[    1.277724] clocksource: Switched to clocksource orion_clocksource
[    1.280152] VFS: Disk quotas dquot_6.6.0
[    1.280514] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.283969] AppArmor: AppArmor Filesystem Enabled
[    1.289924] NET: Registered PF_INET protocol family
[    1.291132] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    1.294656] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    1.295304] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    1.295392] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    1.295478] TCP bind hash table entries: 1024 (order: 1, 8192 bytes, linear)
[    1.295663] TCP: Hash tables configured (established 1024 bind 1024)
[    1.296097] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    1.296216] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    1.297122] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    1.297374] PCI: CLS 0 bytes, default 32
[    1.301887] Trying to unpack rootfs image as initramfs...
[    2.432534] Initialise system trusted keyrings
[    2.432815] Key type blacklist registered
[    2.436432] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    2.501404] fuse: init (API version 7.37)
[    2.502979] SGI XFS with ACLs, security attributes, realtime, quota, no debug enabled
[    2.512269] NET: Registered PF_ALG protocol family
[    2.512356] xor: measuring software checksum speed
[    2.543745]    arm4regs        :   315 MB/sec
[    2.587441]    8regs           :   225 MB/sec
[    2.624959]    32regs          :   262 MB/sec
[    2.624991] xor: using function: arm4regs (315 MB/sec)
[    2.721082] async_tx: api initialized (async)
[    2.721141] Key type asymmetric registered
[    2.721166] Asymmetric key parser 'x509' registered
[    5.060193] Freeing initrd memory: 5304K
[    5.184793] alg: self-tests for CTR-KDF (hmac(sha256)) passed
[    5.185582] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    5.192947] orion-pinctrl f1010000.pinctrl: registered pinctrl driver
[    5.199030] mv_xor f1060900.dma-controller: Marvell shared XOR driver
[    5.263009] mv_xor f1060900.dma-controller: Marvell XOR (Registers Mode): ( xor cpy intr )
[    5.278132] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    5.283507] printk: console [ttyS0] disabled
[    5.283751] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 23, base_baud = 10416666) is a 16550A
[    5.899162] printk: console [ttyS0] enabled
[    5.906103] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 24, base_baud = 10416666) is a 16550A
[    5.951308] loop: module loaded
[    5.955772] sata_mv sata_mv.0: version 1.28
[    5.956185] sata_mv sata_mv.0: cannot get optional clkdev
[    5.962706] sata_mv sata_mv.0: slots 32 ports 2
[    5.982400] scsi host0: sata_mv
[    5.988405] scsi host1: sata_mv
[    5.992681] ata1: SATA max UDMA/133 irq 25
[    5.996879] ata2: SATA max UDMA/133 irq 25
[    6.067842] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    6.200129] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:16:01:41:27:49
[    6.210313] orion-ehci f1050000.ehci: EHCI Host Controller
[    6.216060] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    6.224474] orion-ehci f1050000.ehci: irq 28, io mem 0xf1050000
[    6.245786] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    6.253041] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[    6.261434] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.268732] usb usb1: Product: EHCI Host Controller
[    6.273688] usb usb1: Manufacturer: Linux 6.1.55 ehci_hcd
[    6.279205] usb usb1: SerialNumber: f1050000.ehci
[    6.286412] hub 1-0:1.0: USB hub found
[    6.290537] hub 1-0:1.0: 1 port detected
[    6.296525] orion-ehci f10a0000.ehci: EHCI Host Controller
[    6.302275] orion-ehci f10a0000.ehci: new USB bus registered, assigned bus number 2
[    6.310809] orion-ehci f10a0000.ehci: irq 29, io mem 0xf10a0000
[    6.316949] ata1: SATA link down (SStatus 0 SControl 300)
[    6.337786] orion-ehci f10a0000.ehci: USB 2.0 started, EHCI 1.00
[    6.344716] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 6.01
[    6.353079] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    6.360374] usb usb2: Product: EHCI Host Controller
[    6.365323] usb usb2: Manufacturer: Linux 6.1.55 ehci_hcd
[    6.370830] usb usb2: SerialNumber: f10a0000.ehci
[    6.377837] hub 2-0:1.0: USB hub found
[    6.381801] hub 2-0:1.0: 1 port detected
[    6.387680] usbcore: registered new interface driver usb-storage
[    6.394255] i2c_dev: i2c /dev entries driver
[    6.399437] mv64xxx_i2c mv64xxx_i2c.0: can't get pinctrl, bus recovery not supported
[    6.410660] rtc-rs5c372 0-0032: rs5c372a found, 24hr
[    6.421467] rtc rtc0: invalid alarm value: 2023-11-26T45:85:00
[    6.428121] rtc-rs5c372 0-0032: registered as rtc0
[    6.434964] rtc-rs5c372 0-0032: setting system clock to 2023-11-26T01:46:57 UTC (1700963217)
[    6.449959] device-mapper: uevent: version 1.0.3
[    6.455995] device-mapper: ioctl: 4.47.0-ioctl (2022-07-28) initialised: dm-devel@redhat.com
[    6.466555] device-mapper: multipath round-robin: version 1.2.0 loaded
[    6.473253] device-mapper: multipath queue-length: version 0.2.0 loaded
[    6.479946] device-mapper: multipath service-time: version 0.3.0 loaded
[    6.486995] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    6.493172] device-mapper: raid: Loading target version 1.15.1
[    6.499889] ledtrig-cpu: registered to indicate activity on CPUs
[    6.508212] marvell-cesa mv_crypto: CESA device successfully registered
[    6.516980] physmap-flash f4000000.flash: physmap platform flash device: [mem 0xf4000000-0xf403ffff]
[    6.526298] Found: SST 39LF020
[    6.529387] f4000000.flash: Found 1 x8 devices at 0x0 in 8-bit bank
[    6.591331] Support for command set 0002 not present
[    6.596422] gen_probe: No supported Vendor Command Set found
[    6.602168] physmap-flash f4000000.flash: map_probe failed
[    6.611928] NET: Registered PF_INET6 protocol family
[    6.734505] Segment Routing with IPv6
[    6.738906] In-situ OAM (IOAM) with IPv6
[    6.743389] NET: Registered PF_PACKET protocol family
[    6.750822] registered taskstats version 1
[    6.755164] Loading compiled-in X.509 certificates
[    6.797861] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    6.810156] ata2.00: ATA-8: KingDian S100 16GB, 20141224, max UDMA/133
[    6.816795] ata2.00: 30932992 sectors, multi 0: LBA48 
[    6.836811] ata2.00: configured for UDMA/133
[    6.842198] scsi 1:0:0:0: Direct-Access     ATA      KingDian S100 16 1224 PQ: 0 ANSI: 5
[    6.862320] sd 1:0:0:0: [sda] 30932992 512-byte logical blocks: (15.8 GB/14.8 GiB)
[    6.874590] sd 1:0:0:0: Attached scsi generic sg0 type 0
[    6.886052] sd 1:0:0:0: [sda] Write Protect is off
[    6.890968] sd 1:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    6.898147] sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    6.914294] sd 1:0:0:0: [sda] Preferred minimum I/O size 512 bytes
[    6.941779]  sda: sda1 sda2 sda3 < sda5 sda6 sda7 >
[    6.959127] sd 1:0:0:0: [sda] Attached SCSI disk
[    6.970390] Key type encrypted registered
[    6.974941] AppArmor: AppArmor sha1 policy hashing enabled
[    7.005116] Freeing unused kernel image (initmem) memory: 248K
[    7.011067] Kernel memory protection not selected by kernel config.
[    7.017461] Run /init as init process
[    7.021223]   with arguments:
[    7.021258]     /init
[    7.021287]   with environment:
[    7.021313]     HOME=/
[    7.021341]     TERM=linux
[    7.021369]     bootshim=1
[   11.913184] EXT4-fs (sda5): mounted filesystem with ordered data mode. Quota mode: none.
[   13.242231] systemd[1]: systemd 252.17-1~deb12u1 running in system mode (+PAM +AUDIT +SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT -GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY +P11KIT +QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -BPF_FRAMEWORK -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified)
[   13.275225] systemd[1]: Detected architecture arm.
[   13.314087] systemd[1]: Hostname set to <lsgl-bookworm>.
[   18.741138] systemd[1]: Queued start job for default target graphical.target.
[   18.779649] systemd[1]: Created slice system-getty.slice - Slice /system/getty.
[   18.814566] systemd[1]: Created slice system-modprobe.slice - Slice /system/modprobe.
[   18.850700] systemd[1]: Created slice system-serial\x2dgetty.slice - Slice /system/serial-getty.
[   18.886362] systemd[1]: Created slice system-systemd\x2dfsck.slice - Slice /system/systemd-fsck.
[   18.919353] systemd[1]: Created slice user.slice - User and Session Slice.
[   18.948275] systemd[1]: Started systemd-ask-password-console.path - Dispatch Password Requests to Console Directory Watch.
[   18.979997] systemd[1]: Started systemd-ask-password-wall.path - Forward Password Requests to Wall Directory Watch.
[   19.015811] systemd[1]: Set up automount proc-sys-fs-binfmt_misc.automount - Arbitrary Executable File Formats File System Automount Point.
[   19.048439] systemd[1]: Reached target cryptsetup.target - Local Encrypted Volumes.
[   19.075844] systemd[1]: Reached target integritysetup.target - Local Integrity Protected Volumes.
[   19.104241] systemd[1]: Reached target paths.target - Path Units.
[   19.127351] systemd[1]: Reached target remote-fs.target - Remote File Systems.
[   19.154876] systemd[1]: Reached target slices.target - Slice Units.
[   19.180473] systemd[1]: Reached target veritysetup.target - Local Verity Protected Volumes.
[   19.210254] systemd[1]: Listening on systemd-fsckd.socket - fsck to fsckd communication Socket.
[   19.240296] systemd[1]: Listening on systemd-initctl.socket - initctl Compatibility Named Pipe.
[   19.272335] systemd[1]: Listening on systemd-journald-audit.socket - Journal Audit Socket.
[   19.302997] systemd[1]: Listening on systemd-journald-dev-log.socket - Journal Socket (/dev/log).
[   19.334630] systemd[1]: Listening on systemd-journald.socket - Journal Socket.
[   19.363903] systemd[1]: Listening on systemd-udevd-control.socket - udev Control Socket.
[   19.394299] systemd[1]: Listening on systemd-udevd-kernel.socket - udev Kernel Socket.
[   19.427646] systemd[1]: dev-hugepages.mount - Huge Pages File System was skipped because of an unmet condition check (ConditionPathExists=/sys/kernel/mm/hugepages).
[   19.462234] systemd[1]: Mounting dev-mqueue.mount - POSIX Message Queue File System...
[   19.537036] systemd[1]: Mounting sys-kernel-debug.mount - Kernel Debug File System...
[   19.630111] systemd[1]: Mounting sys-kernel-tracing.mount - Kernel Trace File System...
[   19.710439] systemd[1]: Starting fake-hwclock.service - Restore / save the current clock...
[   19.807961] systemd[1]: Starting kmod-static-nodes.service - Create List of Static Device Nodes...
[   19.925652] systemd[1]: Starting modprobe@configfs.service - Load Kernel Module configfs...
[   20.045181] systemd[1]: Starting modprobe@dm_mod.service - Load Kernel Module dm_mod...
[   20.152896] systemd[1]: Starting modprobe@drm.service - Load Kernel Module drm...
[   20.260793] systemd[1]: Starting modprobe@efi_pstore.service - Load Kernel Module efi_pstore...
[   20.373231] systemd[1]: Starting modprobe@fuse.service - Load Kernel Module fuse...
[   20.485117] systemd[1]: Starting modprobe@loop.service - Load Kernel Module loop...
[   20.537621] systemd[1]: systemd-fsck-root.service - File System Check on Root Device was skipped because of an unmet condition check (ConditionPathExists=!/run/initramfs/fsck-root).
[   20.596706] systemd[1]: systemd-journald.service: unit configures an IP firewall, but the local system does not support BPF/cgroup firewalling.
[   20.626060] systemd[1]: (This warning is only shown for the first unit using IP firewalling.)
[   20.664805] systemd[1]: Starting systemd-journald.service - Journal Service...
[   20.748051] systemd[1]: Starting systemd-modules-load.service - Load Kernel Modules...
[   20.861394] systemd[1]: Starting systemd-remount-fs.service - Remount Root and Kernel File Systems...
[   21.005623] systemd[1]: Starting systemd-udev-trigger.service - Coldplug All udev Devices...
[   21.337323] systemd[1]: Mounted dev-mqueue.mount - POSIX Message Queue File System.
[   21.408757] systemd[1]: Mounted sys-kernel-debug.mount - Kernel Debug File System.
[   21.468669] systemd[1]: Mounted sys-kernel-tracing.mount - Kernel Trace File System.
[   21.544311] systemd[1]: Finished fake-hwclock.service - Restore / save the current clock.
[   21.630238] systemd[1]: Finished kmod-static-nodes.service - Create List of Static Device Nodes.
[   21.706362] systemd[1]: modprobe@configfs.service: Deactivated successfully.
[   21.754367] systemd[1]: Finished modprobe@configfs.service - Load Kernel Module configfs.
[   21.823647] systemd[1]: modprobe@dm_mod.service: Deactivated successfully.
[   21.830876] EXT4-fs (sda5): re-mounted. Quota mode: none.
[   21.878341] systemd[1]: Finished modprobe@dm_mod.service - Load Kernel Module dm_mod.
[   22.017580] systemd[1]: modprobe@drm.service: Deactivated successfully.
[   22.054249] systemd[1]: Finished modprobe@drm.service - Load Kernel Module drm.
[   22.118818] systemd[1]: modprobe@efi_pstore.service: Deactivated successfully.
[   22.154252] systemd[1]: Finished modprobe@efi_pstore.service - Load Kernel Module efi_pstore.
[   22.218745] systemd[1]: modprobe@fuse.service: Deactivated successfully.
[   22.250505] systemd[1]: Finished modprobe@fuse.service - Load Kernel Module fuse.
[   22.314956] systemd[1]: modprobe@loop.service: Deactivated successfully.
[   22.346470] systemd[1]: Finished modprobe@loop.service - Load Kernel Module loop.
[   22.400629] systemd[1]: Finished systemd-modules-load.service - Load Kernel Modules.
[   22.456113] systemd[1]: Finished systemd-remount-fs.service - Remount Root and Kernel File Systems.
[   22.579886] systemd[1]: Mounting sys-fs-fuse-connections.mount - FUSE Control File System...
[   22.715289] systemd[1]: Mounting sys-kernel-config.mount - Kernel Configuration File System...
[   22.783335] systemd[1]: systemd-firstboot.service - First Boot Wizard was skipped because of an unmet condition check (ConditionFirstBoot=yes).
[   22.835968] systemd[1]: systemd-pstore.service - Platform Persistent Storage Archival was skipped because of an unmet condition check (ConditionDirectoryNotEmpty=/sys/fs/pstore).
[   22.961081] systemd[1]: Starting systemd-random-seed.service - Load/Save Random Seed...
[   23.027934] systemd[1]: systemd-repart.service - Repartition Root Disk was skipped because no trigger condition checks were met.
[   23.157046] systemd[1]: Starting systemd-sysctl.service - Apply Kernel Variables...
[   23.332985] systemd[1]: Starting systemd-sysusers.service - Create System Users...
[   23.974961] systemd[1]: Mounted sys-fs-fuse-connections.mount - FUSE Control File System.
[   24.048725] systemd[1]: Mounted sys-kernel-config.mount - Kernel Configuration File System.
[   24.334871] systemd[1]: Finished systemd-sysctl.service - Apply Kernel Variables.
[   24.537890] random: crng init done
[   24.584204] systemd[1]: Finished systemd-random-seed.service - Load/Save Random Seed.
[   24.656301] systemd[1]: first-boot-complete.target - First Boot Complete was skipped because of an unmet condition check (ConditionFirstBoot=yes).
[   24.842304] systemd[1]: Finished systemd-sysusers.service - Create System Users.
[   24.944623] systemd[1]: Starting systemd-tmpfiles-setup-dev.service - Create Static Device Nodes in /dev...
[   25.191432] systemd[1]: Started systemd-journald.service - Journal Service.
[   25.957877] systemd-journald[197]: Received client request to flush runtime journal.
[   34.520118] Adding 976892k swap on /dev/sda2.  Priority:-2 extents:1 across:976892k SS
[   35.514565] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   35.555103] EXT4-fs (sda1): mounted filesystem with ordered data mode. Quota mode: none.
[   35.564874] ext3 filesystem being mounted at /boot supports timestamps until 2038 (0x7fffffff)
[   37.222554] audit: type=1400 audit(1700963248.284:2): apparmor="STATUS" operation="profile_load" profile="unconfined" name="lsb_release" pid=258 comm="apparmor_parser"
[   37.507193] audit: type=1400 audit(1700963248.568:3): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe" pid=259 comm="apparmor_parser"
[   37.551367] audit: type=1400 audit(1700963248.568:4): apparmor="STATUS" operation="profile_load" profile="unconfined" name="nvidia_modprobe//kmod" pid=259 comm="apparmor_parser"
[   38.239516] audit: type=1400 audit(1700963249.300:5): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-client.action" pid=260 comm="apparmor_parser"
[   38.298008] audit: type=1400 audit(1700963249.300:6): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/NetworkManager/nm-dhcp-helper" pid=260 comm="apparmor_parser"
[   38.353937] audit: type=1400 audit(1700963249.300:7): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/lib/connman/scripts/dhclient-script" pid=260 comm="apparmor_parser"
[   38.400726] audit: type=1400 audit(1700963249.300:8): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/{,usr/}sbin/dhclient" pid=260 comm="apparmor_parser"
[   38.503236] audit: type=1400 audit(1700963249.564:9): apparmor="STATUS" operation="profile_load" profile="unconfined" name="/usr/bin/man" pid=262 comm="apparmor_parser"
[   38.529525] audit: type=1400 audit(1700963249.564:10): apparmor="STATUS" operation="profile_load" profile="unconfined" name="man_filter" pid=262 comm="apparmor_parser"
[   38.555522] audit: type=1400 audit(1700963249.564:11): apparmor="STATUS" operation="profile_load" profile="unconfined" name="man_groff" pid=262 comm="apparmor_parser"
[   43.925849] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   43.935826] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[   43.945916] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   49.213757] sched: RT throttling activated



Edited 1 time(s). Last edit at 11/25/2023 08:29PM by 1000001101000.
Re: resurrecting iomega storcenter ix2 u-boot and debian
November 26, 2023 03:28PM
Thanks 1000001101000!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: resurrecting iomega storcenter ix2 u-boot and debian
November 26, 2023 04:29PM
Thanks, 4200. I tried several different configurations memory loading with bodhi's kernel and none achieved anything interesting.

I tried your kernel and got the below.
My old u-boot doesn't know how to pass command line to newer kernels (all the ones I tried are 2.6 era).

I tried your 5.10.197 and it got much farther in boot, but couldn't attach to a root fs.
Can you give some tips how to stuff a new command into the uimage?

Also, perhaps it's worth considering how to chain load a newer u-boot.

p.s. to avoid wear on the IDE drive, I'm booting from tftp server and stuck a USB thumb drive in.
uboot can't do anything with it, but the kernel should be able to do so.

	 __  __			     _ _
	|  \/  | __ _ _ ____   _____| | |
	| |\/| |/ _` | '__\ \ / / _ \ | |
	| |  | | (_| | |   \ V /  __/ | |
	|_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _	   ____		     _
| | | |	  | __ )  ___	___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/	  |____/ \___/ \___/ \__|  ** LOADER **
 ** MARVELL BOARD: DHNSMR03 LE

U-Boot 1.1.1 (Jun  3 2007 - 20:44:19) USI u-boot-1.1.1-DHNSMR03/04-v3.1.0.0

DRAM CS[0] base 0x00000000   size  64MB
DRAM Total size	 64MB
[4096kB@ffc00000] [0kB@fa000000] ## Unknown FLASH at fa000000: Size = 0x00000000 = 0 MB
Flash:	4 MB
Addresses 20M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (20M - 16M): Done

Soc: 88F5182 A2
CPU: ARM926 (Rev 0) running @ 400Mhz
Orion 1 streaming disabled
SysClock = 200Mhz , TClock = 166Mhz


USB 0: host mode
USB 1: host mode
PCI 0: PCI Express Root Complex Interface
PCI 1: Conventional PCI, speed = 66000000
Net:   egiga0 [PRIME]
Hit any key to stop autoboot: 10
Marvell>> tftpboot 0x2000000 buffalo/uImage.buffalo.lsgl
Using egiga0 device
TFTP from server 192.168.86.33; our IP address is 192.168.86.24
Filename 'buffalo/uImage.buffalo.lsgl'.
Load address: 0x2000000
Loading: #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 ###########################################
done
Bytes transferred = 3878123 (3b2ceb hex)
Marvell>> tftpboot 0x2800000 orion/busyrd
Using egiga0 device
TFTP from server 192.168.86.33; our IP address is 192.168.86.24
Filename 'orion/busyrd'.
Load address: 0x2800000
Loading: #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 ########################################
done
Bytes transferred = 2865543 (2bb987 hex)
Marvell>> setenv bootargs root=/dev/scsi/host3/bus0/target0/lun0/part1 rootwait=7 console=ttyS0,115200 init=/bin/sh mem=64M raid=noautodetect
Marvell>> bootm 0x2000000 0x2800000
## Booting image at 02000000 ...
   Image Name:	 debian_installer
   Created:	 2018-01-01   1:01:01 UTC
   Image Type:	 ARM Linux Kernel Image (uncompressed)
   Data Size:	 3878059 Bytes =  3.7 MB
   Load Address: 00008000
   Entry Point:	 00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 02800000 ...
   Image Name:
   Created:	 2023-11-26   3:43:24 UTC
   Image Type:	 ARM Linux RAMDisk Image (uncompressed)
   Data Size:	 2865479 Bytes =  2.7 MB
   Load Address: 00000000
   Entry Point:	 00000000
   Verifying Checksum ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.10.197 (root@11e4a3dcd714) (arm-linux-gnueabi-gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #22 Sun Oct 8 02:06:18 UTC 2023
[    0.000000] CPU: Feroceon [41069260] revision 0 (ARMv5TEJ), cr=a005317f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Buffalo Linkstation Pro/Live
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Zone ranges:
[    0.000000]	 Normal	  [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000]	 HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]	 node	0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Built 1 zonelists, mobility grouping on.	 Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 bootshim=1
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000] Memory: 50344K/65536K available (7576K kernel code, 1116K rwdata, 2148K rodata, 384K init, 236K bss, 15192K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] ftrace: allocating 32857 entries in 97 pages
[    0.000000] ftrace: allocated 97 pages with 3 groups
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns
[    0.000021] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns
[    0.000110] Switching to timer-based delay loop, resolution 6ns
[    0.000487] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=666666)
[    0.000544] CPU: Testing write buffer coherency: ok
[    0.000905] pid_max: default: 32768 minimum: 301
[    0.002534] LSM: Security Framework initializing
[    0.003148] Yama: disabled by default; enable with sysctl kernel.yama.*
[    0.003969] AppArmor: AppArmor initialized
[    0.004489] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.004554] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.012945] Setting up static identity map for 0x8200 - 0x823c
[    0.016568] devtmpfs: initialized
[    0.027963] VFP support v0.3: not present
[    0.028623] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.028700] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.029316] pinctrl core: initialized pinctrl subsystem
[    0.035072] NET: Registered protocol family 16
[    0.037047] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.040365] audit: initializing netlink subsys (disabled)
[    0.043053] thermal_sys: Registered thermal governor 'fair_share'
[    0.043080] thermal_sys: Registered thermal governor 'bang_bang'
[    0.043120] thermal_sys: Registered thermal governor 'step_wise'
[    0.043155] thermal_sys: Registered thermal governor 'user_space'
[    0.043329] cpuidle: using governor ladder
[    0.043383] cpuidle: using governor menu
[    0.043587] Orion ID: MV88F5182-A2. TCLK=0.
[    0.044204] audit: type=2000 audit(0.040:1): state=initialized audit_enabled=0 res=1
[    0.064967] No ATAGs?
[    0.180774] raid6: int32x8  gen()	37 MB/s
[    0.248508] raid6: int32x8  xor()	23 MB/s
[    0.316330] raid6: int32x4  gen()	40 MB/s
[    0.384496] raid6: int32x4  xor()	25 MB/s
[    0.452244] raid6: int32x2  gen()	68 MB/s
[    0.520385] raid6: int32x2  xor()	44 MB/s
[    0.588211] raid6: int32x1  gen()	85 MB/s
[    0.656341] raid6: int32x1  xor()	36 MB/s
[    0.656379] raid6: using algorithm int32x1 gen() 85 MB/s
[    0.656407] raid6: .... xor() 36 MB/s, rmw enabled
[    0.656435] raid6: using intx1 recovery algorithm
[    0.659474] SCSI subsystem initialized
[    0.661351] usbcore: registered new interface driver usbfs
[    0.661596] usbcore: registered new interface driver hub
[    0.661887] usbcore: registered new device driver usb
[    0.667995] clocksource: Switched to clocksource orion_clocksource
[    1.264627] VFS: Disk quotas dquot_6.6.0
[    1.264913] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.267553] AppArmor: AppArmor Filesystem Enabled
[    1.272804] NET: Registered protocol family 2
[    1.273383] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    1.275916] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    1.276735] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    1.276825] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    1.276885] TCP: Hash tables configured (established 1024 bind 1024)
[    1.277285] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    1.277383] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    1.278291] NET: Registered protocol family 1
[    1.278419] PCI: CLS 0 bytes, default 32
[    1.279434] Trying to unpack rootfs image as initramfs...
[    1.281960] Initramfs unpacking failed: no cpio magic
[    1.304767] Freeing initrd memory: 2800K
[    1.308335] Initialise system trusted keyrings
[    1.308777] Key type blacklist registered
[    1.309746] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    1.338606] zbud: loaded
[    1.347361] fuse: init (API version 7.32)
[    1.348990] SGI XFS with ACLs, security attributes, realtime, quota, no debug enabled
[    1.356888] NET: Registered protocol family 38
[    1.356981] xor: measuring software checksum speed
[    1.389531]	  arm4regs	  :   302 MB/sec
[    1.433995]	  8regs		  :   222 MB/sec
[    1.472731]	  32regs	  :   254 MB/sec
[    1.472767] xor: using function: arm4regs (302 MB/sec)
[    1.472911] async_tx: api initialized (async)
[    1.472978] Key type asymmetric registered
[    1.473013] Asymmetric key parser 'x509' registered
[    1.473179] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    1.479084] orion-pinctrl f1010000.pinctrl: registered pinctrl driver
[    1.483266] mv_xor f1060900.dma-controller: Marvell shared XOR driver
[    1.544674] mv_xor f1060900.dma-controller: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.557655] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    1.562329] printk: console [ttyS0] disabled
[    1.562580] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 23, base_baud = 10416666) is a 16550A
[    2.169946] printk: console [ttyS0] enabled
[    2.176537] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 24, base_baud = 10416666) is a 16550A
[    2.224874] loop: module loaded
[    2.229590] sata_mv sata_mv.0: cannot get optional clkdev
[    2.236060] sata_mv sata_mv.0: slots 32 ports 2
[    2.254555] scsi host0: sata_mv
[    2.260574] scsi host1: sata_mv
[    2.264840] ata1: SATA max UDMA/133 irq 28
[    2.269024] ata2: SATA max UDMA/133 irq 28
[    2.285815] mdio_bus f1072004.mdio-bus-mii: MDIO device at address 8 is missing.
[    2.293838] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    2.302224] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.308955] ehci-pci: EHCI PCI platform driver
[    2.313657] ehci-orion: EHCI orion driver
[    2.318182] orion-ehci f1050000.ehci: EHCI Host Controller
[    2.323856] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    2.332217] orion-ehci f1050000.ehci: irq 26, io mem 0xf1050000
[    2.352107] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    2.359121] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[    2.367468] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.374745] usb usb1: Product: EHCI Host Controller
[    2.379685] usb usb1: Manufacturer: Linux 5.10.197 ehci_hcd
[    2.385319] usb usb1: SerialNumber: f1050000.ehci
[    2.392231] hub 1-0:1.0: USB hub found
[    2.396291] hub 1-0:1.0: 1 port detected
[    2.401938] orion-ehci f10a0000.ehci: EHCI Host Controller
[    2.407701] orion-ehci f10a0000.ehci: new USB bus registered, assigned bus number 2
[    2.416169] orion-ehci f10a0000.ehci: irq 30, io mem 0xf10a0000
[    2.436106] orion-ehci f10a0000.ehci: USB 2.0 started, EHCI 1.00
[    2.443258] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[    2.451603] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.458881] usb usb2: Product: EHCI Host Controller
[    2.463821] usb usb2: Manufacturer: Linux 5.10.197 ehci_hcd
[    2.469456] usb usb2: SerialNumber: f10a0000.ehci
[    2.476458] hub 2-0:1.0: USB hub found
[    2.480416] hub 2-0:1.0: 1 port detected
[    2.486414] usbcore: registered new interface driver usb-storage
[    2.493037] i2c /dev entries driver
[    2.499064] rtc-rs5c372 0-0032: can't read registers
[    2.504231] rtc-rs5c372: probe of 0-0032 failed with error -5
[    2.516360] device-mapper: uevent: version 1.0.3
[    2.522384] device-mapper: ioctl: 4.43.0-ioctl (2020-10-01) initialised: dm-devel@redhat.com
[    2.533787] device-mapper: multipath round-robin: version 1.2.0 loaded
[    2.540516] device-mapper: multipath queue-length: version 0.2.0 loaded
[    2.547262] device-mapper: multipath service-time: version 0.3.0 loaded
[    2.554344] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    2.560601] device-mapper: raid: Loading target version 1.15.1
[    2.567307] ledtrig-cpu: registered to indicate activity on CPUs
[    2.581246] marvell-cesa mv_crypto: CESA device successfully registered
[    2.588135] ata1: SATA link down (SStatus 0 SControl 300)
[    2.596973] physmap-flash f4000000.flash: physmap platform flash device: [mem 0xf4000000-0xf403ffff]
[    2.606462] physmap-flash f4000000.flash: map_probe failed
[    2.616610] NET: Registered protocol family 10
[    2.634062] Segment Routing with IPv6
[    2.638548] NET: Registered protocol family 17
[    2.644411] registered taskstats version 1
[    2.648606] Loading compiled-in X.509 certificates
[    2.654456] AppArmor: AppArmor sha1 policy hashing enabled
[    2.660149] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    2.830530] usb 1-1: New USB device found, idVendor=0781, idProduct=5583, bcdDevice= 1.00
[    2.838821] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.846082] usb 1-1: Product:  SanDisk 3.2Gen1
[    2.850598] usb 1-1: Manufacturer:  USB
[    2.854513] usb 1-1: SerialNumber: 04010e951e6410a8243d7485d3343fc65ce253dd11f64fcef9814fea113ce1a135e600000000000000000000e40f2490ff95551883558107b0ad1dd6
[    2.870608] usb-storage 1-1:1.0: USB Mass Storage device detected
[    2.878789] scsi host2: usb-storage 1-1:1.0
[    2.908790] ata2: SATA link down (SStatus 0 SControl 300)
[    2.914409] md: Waiting for all devices to be available before autodetect
[    2.921254] md: If you don't use raid, use raid=noautodetect
[    2.926959] md: Autodetecting RAID arrays.
[    2.931110] md: autorun ...
[    2.933957] md: ... autorun DONE.
[    2.937865] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    2.945412] Please append a correct "root=" boot option; here are the available partitions:
[    2.953840] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    2.962106] CPU: 0 PID: 1 Comm: swapper Not tainted 5.10.197 #22
[    2.968105] Hardware name: Marvell Orion5x (Flattened Device Tree)
[    2.974337] [<c0014b98>] (unwind_backtrace) from [<c0011a00>] (show_stack+0x18/0x1c)
[    2.982104] [<c0011a00>] (show_stack) from [<c07638b4>] (panic+0xf0/0x320)
[    2.989016] [<c07638b4>] (panic) from [<c09c9540>] (mount_block_root+0x29c/0x330)
[    2.996530] [<c09c9540>] (mount_block_root) from [<c09c979c>] (prepare_namespace+0x14c/0x188)
[    3.005078] [<c09c979c>] (prepare_namespace) from [<c076b110>] (kernel_init+0x10/0x100)
[    3.013097] [<c076b110>] (kernel_init) from [<c0008320>] (ret_from_fork+0x14/0x34)
[    3.020659] Exception stack(0xc10fffb0 to 0xc10ffff8)
[    3.025719] ffa0:					 00000000 00000000 00000000 00000000
[    3.033900] ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    3.042078] ffe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    3.048707] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---

Re: resurrecting iomega storcenter ix2 u-boot and debian
November 26, 2023 05:27PM
Nice! looks like you're 90% of the way there.

The cmdline thing is my fault, or rather because you are using one of my kernel images directly rather than making your own from the vmlinuz+DTB. My solution for dealing with the initrd issue was to write some assembly that relocates the initrd and then re-writes the ATAGS with the new location, it also overrides the cmdline to prevent the initrd address being passed that way. Since you have access to uboot you don't need any of that and can omit it when you make your own kernel image.

This tells me that the memory size from the ATAGs is overriding the DTB size... this is good.
[    0.000000]	 Normal	  [mem 0x0000000000000000-0x0000000003ffffff]

Since the LS-GL image worked this well for your device, one way to move forward would be to generate an "LS-GL" disk image which you can then boot into and use as platform to make further customizations.

That process can be be found here:
Debian On Buffalo - Debootstrap

roughly speaking, I would:
  1. set the variables to generate an LS-GL image and run the script.
  2. write the resulting image to your usb drive
  3. copy the *.buffalo files from the boot partition to your TFTP server.
  4. plug the usb drive into the device then boot the *.buffalo files over TFTP
  5. with any luck it should boot all the way into debian and you can start working on removing some buffalo specific customizations and start customizing for your device etc.



Edited 3 time(s). Last edit at 11/26/2023 05:37PM by 1000001101000.
Re: resurrecting iomega storcenter ix2 u-boot and debian
November 26, 2023 05:56PM
@ 1000001101000,

Very nice! I must have missed a config option somewhere. Thanks!

@wibu,

Regarding this error

[    2.953840] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
Note that there is no root device in the bootargs
[    0.000000] Kernel command line: console=ttyS0,115200 bootshim=1

Since you are booting with uInitrd, I would add root=LABEL=rootfs to the bootargs so it will boot into that partition. And make sure the rootfs partition is labeled rootfs.

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



Edited 1 time(s). Last edit at 11/28/2023 03:55PM by bodhi.
Re: resurrecting iomega storcenter ix2 u-boot and debian
November 27, 2023 02:30AM
It's been a long day with some interesting discoveries and remaining puzzles, but some progress. (high 5 emoji)
Given 4200's optimistic 90% assessment, I'll call it 92%. (wink emoji)

Most disconcerting is that sometimes the boot does not consistently proceed after the initial
"Starting kernel ..." message.
Without some debugger it's not possible to tell if there is a hardware or a software variable here.

Rather than figure out how to remove the bootshim, I modified the shim to have exactly the command line that I wanted to have.
Poking around in kernel code to discover changes in kernel parameters,
like "root=PARTLABEL" (not root=LABEL) and "rootdelay=" (not rootwait=).

I wasn't able to generate the debian image yet; there was an issue with the script in my ubuntu environment.
So for today I took the overlarge initrd and created a root disk from it and labeled partition 1 as ROOT.

I hacked the sbin/init script to invoke the shell at the beginning, and will proceed from there tomorrow.

Frustration that the board does not seem to have a hard reset button.
I've an unused smart plug around, so I can tell it to power cycle instead of wearing out the barrel connector.

Marvell>> setenv bootargs mem=64M earlyprintk=serial console=ttyS0,115200 root=/dev/sda1 raid=noautodetect
Marvell>> setenv kaddr 2000000 ; setenv iaddr 2400000 ; tftpboot $(kaddr) buffalo/uImage.buffalo.lsgl ; tftpboot $(iaddr) orion/busyrd ; bootm $(kaddr) $(iaddr)
Using egiga0 device
TFTP from server 192.168.86.33; our IP address is 192.168.86.24
Filename 'buffalo/uImage.buffalo.lsgl'.
Load address: 0x2000000
Loading: #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 ###########################################
done
Bytes transferred = 3878155 (3b2d0b hex)
Using egiga0 device
TFTP from server 192.168.86.33; our IP address is 192.168.86.24
Filename 'orion/busyrd'.
Load address: 0x2400000
Loading: #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 ########################################
done
Bytes transferred = 2865543 (2bb987 hex)
## Booting image at 02000000 ...
   Image Name:	 debian_installer
   Created:	 2018-01-01   9:01:01 UTC
   Image Type:	 ARM Linux Kernel Image (uncompressed)
   Data Size:	 3878091 Bytes =  3.7 MB
   Load Address: 00008000
   Entry Point:	 00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 02400000 ...
   Image Name:
   Created:	 2023-11-26   3:43:24 UTC
   Image Type:	 ARM Linux RAMDisk Image (uncompressed)
   Data Size:	 2865479 Bytes =  2.7 MB
   Load Address: 00000000
   Entry Point:	 00000000
   Verifying Checksum ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.10.197 (root@11e4a3dcd714) (arm-linux-gnueabi-gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #22 Sun Oct 8 02:06:18 UTC 2023
[    0.000000] CPU: Feroceon [41069260] revision 0 (ARMv5TEJ), cr=a005317f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Buffalo Linkstation Pro/Live
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Zone ranges:
[    0.000000]	 Normal	  [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000]	 HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]	 node	0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Built 1 zonelists, mobility grouping on.	 Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 rootdelay=30 root=PARTLABEL=ROOT
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000] Memory: 50344K/65536K available (7576K kernel code, 1116K rwdata, 2148K rodata, 384K init, 236K bss, 15192K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] ftrace: allocating 32857 entries in 97 pages
[    0.000000] ftrace: allocated 97 pages with 3 groups
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns
[    0.000021] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns
[    0.000110] Switching to timer-based delay loop, resolution 6ns
[    0.000495] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=666666)
[    0.000552] CPU: Testing write buffer coherency: ok
[    0.000913] pid_max: default: 32768 minimum: 301
[    0.002536] LSM: Security Framework initializing
[    0.003148] Yama: disabled by default; enable with sysctl kernel.yama.*
[    0.003968] AppArmor: AppArmor initialized
[    0.004486] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.004551] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.012960] Setting up static identity map for 0x8200 - 0x823c
[    0.016597] devtmpfs: initialized
[    0.028235] VFP support v0.3: not present
[    0.028826] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.028903] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.029524] pinctrl core: initialized pinctrl subsystem
[    0.035294] NET: Registered protocol family 16
[    0.037330] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.040666] audit: initializing netlink subsys (disabled)
[    0.043361] thermal_sys: Registered thermal governor 'fair_share'
[    0.043389] thermal_sys: Registered thermal governor 'bang_bang'
[    0.043430] thermal_sys: Registered thermal governor 'step_wise'
[    0.043464] thermal_sys: Registered thermal governor 'user_space'
[    0.043638] cpuidle: using governor ladder
[    0.043692] cpuidle: using governor menu
[    0.043957] Orion ID: MV88F5182-A2. TCLK=0.
[    0.049230] audit: type=2000 audit(0.040:1): state=initialized audit_enabled=0 res=1
[    0.065170] No ATAGs?
[    0.180163] raid6: int32x8  gen()	37 MB/s
[    0.248495] raid6: int32x8  xor()	23 MB/s
[    0.316331] raid6: int32x4  gen()	40 MB/s
[    0.384494] raid6: int32x4  xor()	25 MB/s
[    0.452253] raid6: int32x2  gen()	68 MB/s
[    0.520386] raid6: int32x2  xor()	44 MB/s
[    0.588211] raid6: int32x1  gen()	85 MB/s
[    0.656337] raid6: int32x1  xor()	36 MB/s
[    0.656375] raid6: using algorithm int32x1 gen() 85 MB/s
[    0.656403] raid6: .... xor() 36 MB/s, rmw enabled
[    0.656432] raid6: using intx1 recovery algorithm
[    0.659364] SCSI subsystem initialized
[    0.661244] usbcore: registered new interface driver usbfs
[    0.661493] usbcore: registered new interface driver hub
[    0.661782] usbcore: registered new device driver usb
[    0.667977] clocksource: Switched to clocksource orion_clocksource
[    1.265399] VFS: Disk quotas dquot_6.6.0
[    1.265680] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.268433] AppArmor: AppArmor Filesystem Enabled
[    1.273723] NET: Registered protocol family 2
[    1.274305] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    1.276930] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    1.277594] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    1.277679] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    1.277739] TCP: Hash tables configured (established 1024 bind 1024)
[    1.278134] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    1.278232] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    1.279135] NET: Registered protocol family 1
[    1.279265] PCI: CLS 0 bytes, default 32
[    1.280412] Trying to unpack rootfs image as initramfs...
[    1.282861] Initramfs unpacking failed: no cpio magic
[    1.305657] Freeing initrd memory: 2800K
[    1.309155] Initialise system trusted keyrings
[    1.309649] Key type blacklist registered
[    1.310629] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    1.339475] zbud: loaded
[    1.348250] fuse: init (API version 7.32)
[    1.349808] SGI XFS with ACLs, security attributes, realtime, quota, no debug enabled
[    1.357724] NET: Registered protocol family 38
[    1.357818] xor: measuring software checksum speed
[    1.390368]	  arm4regs	  :   304 MB/sec
[    1.434829]	  8regs		  :   221 MB/sec
[    1.473563]	  32regs	  :   254 MB/sec
[    1.473599] xor: using function: arm4regs (304 MB/sec)
[    1.473742] async_tx: api initialized (async)
[    1.473809] Key type asymmetric registered
[    1.473846] Asymmetric key parser 'x509' registered
[    1.474013] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    1.479907] orion-pinctrl f1010000.pinctrl: registered pinctrl driver
[    1.483934] mv_xor f1060900.dma-controller: Marvell shared XOR driver
[    1.544656] mv_xor f1060900.dma-controller: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.557668] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    1.562348] printk: console [ttyS0] disabled
[    1.562599] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 23, base_baud = 10416666) is a 16550A
[    2.172067] printk: console [ttyS0] enabled
[    2.178584] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 24, base_baud = 10416666) is a 16550A
[    2.227058] loop: module loaded
[    2.231786] sata_mv sata_mv.0: cannot get optional clkdev
[    2.238251] sata_mv sata_mv.0: slots 32 ports 2
[    2.256861] scsi host0: sata_mv
[    2.262792] scsi host1: sata_mv
[    2.267062] ata1: SATA max UDMA/133 irq 28
[    2.271250] ata2: SATA max UDMA/133 irq 28
[    2.287856] mdio_bus f1072004.mdio-bus-mii: MDIO device at address 8 is missing.
[    2.295876] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    2.304336] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.311055] ehci-pci: EHCI PCI platform driver
[    2.315764] ehci-orion: EHCI orion driver
[    2.320356] orion-ehci f1050000.ehci: EHCI Host Controller
[    2.326010] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    2.334293] orion-ehci f1050000.ehci: irq 26, io mem 0xf1050000
[    2.356088] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    2.363242] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[    2.371586] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.378863] usb usb1: Product: EHCI Host Controller
[    2.383803] usb usb1: Manufacturer: Linux 5.10.197 ehci_hcd
[    2.389437] usb usb1: SerialNumber: f1050000.ehci
[    2.396398] hub 1-0:1.0: USB hub found
[    2.400454] hub 1-0:1.0: 1 port detected
[    2.406084] orion-ehci f10a0000.ehci: EHCI Host Controller
[    2.411846] orion-ehci f10a0000.ehci: new USB bus registered, assigned bus number 2
[    2.420317] orion-ehci f10a0000.ehci: irq 30, io mem 0xf10a0000
[    2.440085] orion-ehci f10a0000.ehci: USB 2.0 started, EHCI 1.00
[    2.446998] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[    2.455340] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.462619] usb usb2: Product: EHCI Host Controller
[    2.467560] usb usb2: Manufacturer: Linux 5.10.197 ehci_hcd
[    2.473194] usb usb2: SerialNumber: f10a0000.ehci
[    2.480298] hub 2-0:1.0: USB hub found
[    2.484257] hub 2-0:1.0: 1 port detected
[    2.490275] usbcore: registered new interface driver usb-storage
[    2.496899] i2c /dev entries driver
[    2.502794] rtc-rs5c372 0-0032: can't read registers
[    2.507960] rtc-rs5c372: probe of 0-0032 failed with error -5
[    2.520280] device-mapper: uevent: version 1.0.3
[    2.526318] device-mapper: ioctl: 4.43.0-ioctl (2020-10-01) initialised: dm-devel@redhat.com
[    2.536876] device-mapper: multipath round-robin: version 1.2.0 loaded
[    2.543595] device-mapper: multipath queue-length: version 0.2.0 loaded
[    2.550347] device-mapper: multipath service-time: version 0.3.0 loaded
[    2.557441] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    2.563700] device-mapper: raid: Loading target version 1.15.1
[    2.570418] ledtrig-cpu: registered to indicate activity on CPUs
[    2.584283] marvell-cesa mv_crypto: CESA device successfully registered
[    2.593165] physmap-flash f4000000.flash: physmap platform flash device: [mem 0xf4000000-0xf403ffff]
[    2.602684] physmap-flash f4000000.flash: map_probe failed
[    2.608299] ata1: SATA link down (SStatus 0 SControl 300)
[    2.619543] NET: Registered protocol family 10
[    2.637342] Segment Routing with IPv6
[    2.641837] NET: Registered protocol family 17
[    2.647536] registered taskstats version 1
[    2.651736] Loading compiled-in X.509 certificates
[    2.657842] AppArmor: AppArmor sha1 policy hashing enabled
[    2.670637] Waiting 30 sec before mounting root device...
[    2.744096] usb 2-1: new high-speed USB device number 2 using orion-ehci
[    2.906521] usb 2-1: New USB device found, idVendor=0781, idProduct=5583, bcdDevice= 1.00
[    2.914813] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.922059] usb 2-1: Product:  SanDisk 3.2Gen1
[    2.926574] usb 2-1: Manufacturer:  USB
[    2.930490] usb 2-1: SerialNumber: 04010e951e6410a8243d7485d3343fc65ce253dd11f64fcef9814fea113ce1a135e600000000000000000000e40f2490ff95551883558107b0ad1dd6
[    2.944519] ata2: SATA link down (SStatus 0 SControl 300)
[    2.952441] usb-storage 2-1:1.0: USB Mass Storage device detected
[    2.960644] scsi host2: usb-storage 2-1:1.0
[    3.974105] scsi 2:0:0:0: Direct-Access	USB	 SanDisk 3.2Gen1 1.00 PQ: 0 ANSI: 6
[    3.986395] sd 2:0:0:0: [sda] 60125184 512-byte logical blocks: (30.8 GB/28.7 GiB)
[    3.994403] sd 2:0:0:0: Attached scsi generic sg0 type 0
[    4.001634] sd 2:0:0:0: [sda] Write Protect is off
[    4.008207] sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    4.051748]	sda: sda1 sda2
[    4.064767] sd 2:0:0:0: [sda] Attached SCSI removable disk
[   33.764085] md: Waiting for all devices to be available before autodetect
[   33.770941] md: If you don't use raid, use raid=noautodetect
[   33.776742] md: Autodetecting RAID arrays.
[   33.780897] md: autorun ...
[   33.783702] md: ... autorun DONE.
[   33.819892] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   33.827779] VFS: Mounted root (ext4 filesystem) readonly on device 8:1.
[   33.854944] Freeing unused kernel memory: 384K
[   33.859456] Kernel memory protection not selected by kernel config.
[   33.865786] Run /sbin/init as init process


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

/bin/sh: can't access tty; job control turned off
~ # mount -t proc none /proc
~ # df
Filesystem	     1K-blocks	    Used Available Use% Mounted on
/dev/root	       8154588	   20684   7698092   0% /
~ # busybox | head -1
BusyBox v1.30.1 (Debian 1:1.30.1-6+b3) multi-call binary.

~ # reboot -f
[  781.541159] reboot: Restarting system

Re: resurrecting iomega storcenter ix2 u-boot and debian
November 27, 2023 12:31PM
just in case this part is still confusing, my "shim" is appended to beginning of the kernel image:

This is a simplified version of what happens in my code to generate the installer kernel images like the one you used.
cat armel_shim vmlinuz orion5x-linkstation-lsgl.dtb > tmpkern
mkimage -A arm -O linux -T Kernel -C none -a 0x00008000 -e 0x00008000 -n debian_installer -d tmpkern output/uImage.buffalo.lsgl

see: Debian_on_Buffalo - generate_images_armel.sh

I would think it should be safe (even preferable) to omit it so you can regain full control of your cmdline, though if removing it breaks things it could be masking an issue with the cmdline or where you're loading your initrd (since relocating that is its main function).
Re: resurrecting iomega storcenter ix2 u-boot and debian
November 27, 2023 01:23PM
I had to add a few more packages than were mentioned in the instructions, but I eventually worked it out and got this far with bullseye.


$ sudo ./generate_disk_image.sh 
image file created

partitioning done
block devs created
/boot/ formatted
swap created
rootfs formatted
format done
W: Cannot check Release signature; keyring file not available /usr/share/keyrings/debian-archive-keyring.gpg
I: Retrieving InRelease 
I: Retrieving Packages 
I: Validating Packages 
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Checking component main on http://deb.debian.org/debian...
E: Couldn't find these debs: bsdextrautils
debootstrap reported failure

Then I noticed that bsdextrautils 's listed in oldstable, so I decided to just go try bookworm.
Wow, that takes a long time!
Much better idea doing it on my i7-7700T @3GHz with 8 cores than on the NAS. (grin emoji)

Nearly success (98%), but what does this "kernel install failed" mean?

I: Base system installed successfully.
debootstrap finished
fstab built
network configuration created
hostname set
device-trees installed
custom files/scripts copied
user setup complete
kernel install failed
Re: resurrecting iomega storcenter ix2 u-boot and debian
November 27, 2023 05:48PM
The relevant code is below, you can remove some of the “>/dev/null” stuff to see what’s going on

if [ "$arch" == "armel" ]; then
   cp "../bootshim/armel_shim" "$target/boot/bootshim"
      chroot "$target" /bin/bash -c "wget -O /etc/apt/custom_repo.gpg https://raw.githubusercontent.com/1000001101000/Debian_on_Buffalo/master/PPA/KEY.gpg"; >/dev/null 2>&1
      chroot "$target" /bin/bash -c "apt-key add /etc/apt/custom_repo.gpg" >/dev/null 2>&1
      echo "deb https://raw.githubusercontent.com/1000001101000/Debian_on_Buffalo/master/PPA/ $distro main" > "$target/etc/apt/sources.list.d/buffalo_kernel.list"
      chroot "$target" /bin/bash -c "apt-get update" >/dev/null 2>&1
      chroot "$target" /bin/bash -c "export FK_IGNORE_EFI=yes; apt-get -y install linux-image-marvell-buffalo" >/dev/null 2>&1
   if [ $? -ne 0 ]; then
     echo "kernel install failed"
     exit 99
   fi
fi
Re: resurrecting iomega storcenter ix2 u-boot and debian
December 01, 2023 12:00PM
I was able to generate an ls-gl image running it myself if that helps.

here are the variables I had set:
#!/bin/bash

##set some vars.
target="/mnt/target"
target_hostname="lsgl"
#machine="Buffalo Terastation TS-XEL"
#machine="Buffalo Terastation TS3400D"
machine="Buffalo Linkstation Pro/Live"
arch="armel"
#arch="armhf"
target_rootpw="changeme"
target_user="debian"
target_userpw="changeme"
distro="bullseye"
#distro="bookworm"
boot_size="512"
swap_size="1024"
root_size="2048"
use_raid="N"

Re: resurrecting iomega storcenter ix2 u-boot and debian
December 01, 2023 11:29PM
Thanks, I've been continuing to investigate why sometimes the boot succeeds and sometimes not.
Having gone through the shim code, I agree with you that it should be reasonable to exclude it.

It looks like I'll have to experiment with u-boot under qemu, to understand more of the process.
I'll rerun with these parameters at least, to generate a clean image.
Re: resurrecting iomega storcenter ix2 u-boot and debian
December 15, 2023 12:11AM
I didn't forget about this at all. Eventually I got both 5.10.197 and 6.1.66 kernels to boot, and use a bookworm disk image built according to your instructions.

My current boot commands are
setenv bootargs console=ttyS0,115200 rootdelay=30 root=PARTLABEL=ROOT
setenv kaddr 2000000 ; setenv iaddr 2400000 ; tftpboot $(kaddr) bookworm/uImage.buffalo.lsgl ; tftpboot $(iaddr) orion/busyrd ; bootm $(kaddr) $(iaddr)

The device doesn't come up with an ethernet device in /sys/class/net, ifquery --state only shows loopback.
The 2.6.12 kernel was using some egiga driver.

Also, my flash partitions aren't showing up in /proc/mtd.
In 2.6.12 kernel I can see
# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00200000 00010000 "kernel"
mtd1: 00180000 00010000 "cramfs"
mtd2: 00080000 00010000 "bootloader"

Here is the most recent boot log
# after fixing /etc/fstab to include definitions for /var, /run, tmp, and proper uuid for ROOT

	 __  __			     _ _
	|  \/  | __ _ _ ____   _____| | |
	| |\/| |/ _` | '__\ \ / / _ \ | |
	| |  | | (_| | |   \ V /  __/ | |
	|_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _	   ____		     _
| | | |	  | __ )  ___	___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/	  |____/ \___/ \___/ \__|  ** LOADER **
 ** MARVELL BOARD: DHNSMR03 LE

U-Boot 1.1.1 (Jun  3 2007 - 20:44:19) USI u-boot-1.1.1-DHNSMR03/04-v3.1.0.0

DRAM CS[0] base 0x00000000   size  64MB
DRAM Total size	 64MB
[4096kB@ffc00000] [0kB@fa000000] ## Unknown FLASH at fa000000: Size = 0x00000000 = 0 MB
Flash:	4 MB
Addresses 20M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (20M - 16M): Done

Soc: 88F5182 A2
CPU: ARM926 (Rev 0) running @ 400Mhz
Orion 1 streaming disabled
SysClock = 200Mhz , TClock = 166Mhz


USB 0: host mode
USB 1: host mode
PCI 0: PCI Express Root Complex Interface
PCI 1: Conventional PCI, speed = 66000000
Net:   egiga0 [PRIME]
Hit any key to stop autoboot: 10
Marvell>> setenv bootargs console=ttyS0,115200 rootdelay=30 root=PARTLABEL=ROOT
Marvell>> setenv kaddr 2000000 ; setenv iaddr 2400000 ; tftpboot $(kaddr) buffalo/uImage.buffalo.lsgl ; tftpboot $(iaddr) orion/busyrd ; bootm $(kaddr) $(iaddr)
Using egiga0 device
TFTP from server 192.168.86.33; our IP address is 192.168.86.24
Filename 'buffalo/uImage.buffalo.lsgl'.
Load address: 0x2000000
Loading: #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 ###########################################
done
Bytes transferred = 3878011 (3b2c7b hex)
Using egiga0 device
TFTP from server 192.168.86.33; our IP address is 192.168.86.24
Filename 'orion/busyrd'.
Load address: 0x2400000
Loading: #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 ########################################
done
Bytes transferred = 2865543 (2bb987 hex)
## Booting image at 02000000 ...
   Image Name:	 debian_installer
   Created:	 2018-01-01   9:01:01 UTC
   Image Type:	 ARM Linux Kernel Image (uncompressed)
   Data Size:	 3877947 Bytes =  3.7 MB
   Load Address: 00008000
   Entry Point:	 00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 02400000 ...
   Image Name:
   Created:	 2023-11-26   3:43:24 UTC
   Image Type:	 ARM Linux RAMDisk Image (uncompressed)
   Data Size:	 2865479 Bytes =  2.7 MB
   Load Address: 00000000
   Entry Point:	 00000000
   Verifying Checksum ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.10.197 (root@11e4a3dcd714) (arm-linux-gnueabi-gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #22 Sun Oct 8 02:06:18 UTC 2023
[    0.000000] CPU: Feroceon [41069260] revision 0 (ARMv5TEJ), cr=a005317f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Buffalo Linkstation Pro/Live
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Zone ranges:
[    0.000000]	 Normal	  [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000]	 HighMem  empty
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]	 node	0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Built 1 zonelists, mobility grouping on.	 Total pages: 16256
[    0.000000] Kernel command line: console=ttyS0,115200 rootdelay=30 root=PARTLABEL=ROOT
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000] Memory: 50344K/65536K available (7576K kernel code, 1116K rwdata, 2148K rodata, 384K init, 236K bss, 15192K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] ftrace: allocating 32857 entries in 97 pages
[    0.000000] ftrace: allocated 97 pages with 3 groups
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 11467562657 ns
[    0.000021] sched_clock: 32 bits at 166MHz, resolution 6ns, wraps every 12884901885ns
[    0.000110] Switching to timer-based delay loop, resolution 6ns
[    0.000495] Calibrating delay loop (skipped), value calculated using timer frequency.. 333.33 BogoMIPS (lpj=666666)
[    0.000552] CPU: Testing write buffer coherency: ok
[    0.000913] pid_max: default: 32768 minimum: 301
[    0.002534] LSM: Security Framework initializing
[    0.003145] Yama: disabled by default; enable with sysctl kernel.yama.*
[    0.003965] AppArmor: AppArmor initialized
[    0.004484] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.004549] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.012968] Setting up static identity map for 0x8200 - 0x823c
[    0.016593] devtmpfs: initialized
[    0.028184] VFP support v0.3: not present
[    0.028778] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[    0.028855] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.029476] pinctrl core: initialized pinctrl subsystem
[    0.035238] NET: Registered protocol family 16
[    0.037274] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.040603] audit: initializing netlink subsys (disabled)
[    0.043311] thermal_sys: Registered thermal governor 'fair_share'
[    0.043339] thermal_sys: Registered thermal governor 'bang_bang'
[    0.043379] thermal_sys: Registered thermal governor 'step_wise'
[    0.043414] thermal_sys: Registered thermal governor 'user_space'
[    0.043586] cpuidle: using governor ladder
[    0.043640] cpuidle: using governor menu
[    0.043905] Orion ID: MV88F5182-A2. TCLK=0.
[    0.049191] audit: type=2000 audit(0.040:1): state=initialized audit_enabled=0 res=1
[    0.065106] No ATAGs?
[    0.180148] raid6: int32x8  gen()	37 MB/s
[    0.248489] raid6: int32x8  xor()	23 MB/s
[    0.316330] raid6: int32x4  gen()	40 MB/s
[    0.384491] raid6: int32x4  xor()	25 MB/s
[    0.452245] raid6: int32x2  gen()	68 MB/s
[    0.520383] raid6: int32x2  xor()	44 MB/s
[    0.588212] raid6: int32x1  gen()	85 MB/s
[    0.656339] raid6: int32x1  xor()	36 MB/s
[    0.656377] raid6: using algorithm int32x1 gen() 85 MB/s
[    0.656405] raid6: .... xor() 36 MB/s, rmw enabled
[    0.656433] raid6: using intx1 recovery algorithm
[    0.659370] SCSI subsystem initialized
[    0.661271] usbcore: registered new interface driver usbfs
[    0.661523] usbcore: registered new interface driver hub
[    0.661816] usbcore: registered new device driver usb
[    0.668020] clocksource: Switched to clocksource orion_clocksource
[    1.265156] VFS: Disk quotas dquot_6.6.0
[    1.265437] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.268182] AppArmor: AppArmor Filesystem Enabled
[    1.273472] NET: Registered protocol family 2
[    1.274053] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[    1.276674] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    1.277336] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    1.277422] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    1.277482] TCP: Hash tables configured (established 1024 bind 1024)
[    1.277875] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    1.277974] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    1.278872] NET: Registered protocol family 1
[    1.279001] PCI: CLS 0 bytes, default 32
[    1.280073] Trying to unpack rootfs image as initramfs...
[    1.282607] Initramfs unpacking failed: no cpio magic
[    1.305386] Freeing initrd memory: 2800K
[    1.308826] Initialise system trusted keyrings
[    1.309424] Key type blacklist registered
[    1.310294] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    1.339129] zbud: loaded
[    1.347784] fuse: init (API version 7.32)
[    1.349415] SGI XFS with ACLs, security attributes, realtime, quota, no debug enabled
[    1.357294] NET: Registered protocol family 38
[    1.357388] xor: measuring software checksum speed
[    1.389942]	  arm4regs	  :   304 MB/sec
[    1.434407]	  8regs		  :   222 MB/sec
[    1.473143]	  32regs	  :   254 MB/sec
[    1.473179] xor: using function: arm4regs (304 MB/sec)
[    1.473329] async_tx: api initialized (async)
[    1.473397] Key type asymmetric registered
[    1.473434] Asymmetric key parser 'x509' registered
[    1.473601] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    1.479462] orion-pinctrl f1010000.pinctrl: registered pinctrl driver
[    1.483488] mv_xor f1060900.dma-controller: Marvell shared XOR driver
[    1.544702] mv_xor f1060900.dma-controller: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.557678] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[    1.562385] printk: console [ttyS0] disabled
[    1.562634] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 23, base_baud = 10416666) is a 16550A
[    2.171871] printk: console [ttyS0] enabled
[    2.178385] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 24, base_baud = 10416666) is a 16550A
[    2.226908] loop: module loaded
[    2.231641] sata_mv sata_mv.0: cannot get optional clkdev
[    2.238107] sata_mv sata_mv.0: slots 32 ports 2
[    2.256713] scsi host0: sata_mv
[    2.262639] scsi host1: sata_mv
[    2.266918] ata1: SATA max UDMA/133 irq 28
[    2.271105] ata2: SATA max UDMA/133 irq 28
[    2.287734] mdio_bus f1072004.mdio-bus-mii: MDIO device at address 8 is missing.
[    2.295753] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    2.304287] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.310937] ehci-pci: EHCI PCI platform driver
[    2.315638] ehci-orion: EHCI orion driver
[    2.320244] orion-ehci f1050000.ehci: EHCI Host Controller
[    2.325886] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    2.334167] orion-ehci f1050000.ehci: irq 26, io mem 0xf1050000
[    2.356130] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    2.363260] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[    2.371604] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.378883] usb usb1: Product: EHCI Host Controller
[    2.383821] usb usb1: Manufacturer: Linux 5.10.197 ehci_hcd
[    2.389456] usb usb1: SerialNumber: f1050000.ehci
[    2.396377] hub 1-0:1.0: USB hub found
[    2.400434] hub 1-0:1.0: 1 port detected
[    2.406050] orion-ehci f10a0000.ehci: EHCI Host Controller
[    2.411812] orion-ehci f10a0000.ehci: new USB bus registered, assigned bus number 2
[    2.420284] orion-ehci f10a0000.ehci: irq 30, io mem 0xf10a0000
[    2.440127] orion-ehci f10a0000.ehci: USB 2.0 started, EHCI 1.00
[    2.447046] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[    2.455385] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.462664] usb usb2: Product: EHCI Host Controller
[    2.467605] usb usb2: Manufacturer: Linux 5.10.197 ehci_hcd
[    2.473239] usb usb2: SerialNumber: f10a0000.ehci
[    2.480359] hub 2-0:1.0: USB hub found
[    2.484319] hub 2-0:1.0: 1 port detected
[    2.490346] usbcore: registered new interface driver usb-storage
[    2.496964] i2c /dev entries driver
[    2.502856] rtc-rs5c372 0-0032: can't read registers
[    2.508069] rtc-rs5c372: probe of 0-0032 failed with error -5
[    2.520356] device-mapper: uevent: version 1.0.3
[    2.526399] device-mapper: ioctl: 4.43.0-ioctl (2020-10-01) initialised: dm-devel@redhat.com
[    2.536978] device-mapper: multipath round-robin: version 1.2.0 loaded
[    2.543696] device-mapper: multipath queue-length: version 0.2.0 loaded
[    2.550449] device-mapper: multipath service-time: version 0.3.0 loaded
[    2.557533] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    2.563787] device-mapper: raid: Loading target version 1.15.1
[    2.570496] ledtrig-cpu: registered to indicate activity on CPUs
[    2.584412] marvell-cesa mv_crypto: CESA device successfully registered
[    2.593295] physmap-flash f4000000.flash: physmap platform flash device: [mem 0xf4000000-0xf403ffff]
[    2.602815] physmap-flash f4000000.flash: map_probe failed
[    2.608429] ata1: SATA link down (SStatus 0 SControl 300)
[    2.619676] NET: Registered protocol family 10
[    2.637548] Segment Routing with IPv6
[    2.642032] NET: Registered protocol family 17
[    2.647720] registered taskstats version 1
[    2.651927] Loading compiled-in X.509 certificates
[    2.657928] AppArmor: AppArmor sha1 policy hashing enabled
[    2.670705] Waiting 30 sec before mounting root device...
[    2.744137] usb 2-1: new high-speed USB device number 2 using orion-ehci
[    2.906623] usb 2-1: New USB device found, idVendor=0781, idProduct=5583, bcdDevice= 1.00
[    2.914907] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.922149] usb 2-1: Product:  SanDisk 3.2Gen1
[    2.926662] usb 2-1: Manufacturer:  USB
[    2.930570] usb 2-1: SerialNumber: 0401c9ec929f82413dc9ddd2be232e7373c0a8f97c3559e50f8c377c3ee63e3d3ad0000000000000000000007f4b4c0800002b1883558107b0ad0502
[    2.944598] ata2: SATA link down (SStatus 0 SControl 300)
[    2.952533] usb-storage 2-1:1.0: USB Mass Storage device detected
[    2.960724] scsi host2: usb-storage 2-1:1.0
[    3.974205] scsi 2:0:0:0: Direct-Access	USB	 SanDisk 3.2Gen1 1.00 PQ: 0 ANSI: 6
[    3.986500] sd 2:0:0:0: [sda] 60125184 512-byte logical blocks: (30.8 GB/28.7 GiB)
[    3.994528] sd 2:0:0:0: Attached scsi generic sg0 type 0
[    4.001863] sd 2:0:0:0: [sda] Write Protect is off
[    4.008289] sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    4.048992]	sda: sda1 sda2
[    4.062752] sd 2:0:0:0: [sda] Attached SCSI removable disk
[   33.764121] md: Waiting for all devices to be available before autodetect
[   33.770978] md: If you don't use raid, use raid=noautodetect
[   33.776772] md: Autodetecting RAID arrays.
[   33.780933] md: autorun ...
[   33.783738] md: ... autorun DONE.
[   33.819406] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   33.827374] VFS: Mounted root (ext4 filesystem) readonly on device 8:1.
[   33.854539] Freeing unused kernel memory: 384K
[   33.859050] Kernel memory protection not selected by kernel config.
[   33.865381] Run /sbin/init as init process
[   34.710024] systemd[1]: System time before build time, advancing clock.
[   34.928578] systemd[1]: systemd 252.17-1~deb12u1 running in system mode (+PAM +AUDIT +SELINUX +APPARMOR +IMA +SMACK +SECCOMP +GCRYPT -GNUTLS +OPENSSL +ACL +BLKID +CURL +ELFUTILS +FIDO2 +IDN2 -IDN +IPTC +KMOD +LIBCRYPTSETUP +LIBFDISK +PCRE2 -PWQUALITY +P11KIT +QRENCODE +TPM2 +BZIP2 +LZ4 +XZ +ZLIB +ZSTD -BPF_FRAMEWORK -XKBCOMMON +UTMP +SYSVINIT default-hierarchy=unified)
[   34.961867] systemd[1]: Detected architecture arm.

Welcome to Debian GNU/Linux 12 (bookworm)!

[   35.002924] systemd[1]: Hostname set to <ix2>.
[   39.788628] random: crng init done
[   40.761442] systemd[1]: Queued start job for default target graphical.target.
[   40.797277] systemd[1]: Created slice system-getty.slice - Slice /system/getty.
[  OK  ] Created slice system-getty.slice - Slice /system/getty.
[   40.832115] systemd[1]: Created slice system-modprobe.slice - Slice /system/modprobe.
[  OK  ] Created slice system-modpr…lice - Slice /system/modprobe.
[   40.863951] systemd[1]: Created slice system-serial\x2dgetty.slice - Slice /system/serial-getty.
[  OK  ] Created slice system-seria… - Slice /system/serial-getty.
[   40.897451] systemd[1]: Created slice user.slice - User and Session Slice.
[  OK  ] Created slice user.slice - User and Session Slice.
[   40.922327] systemd[1]: Started systemd-ask-password-console.path - Dispatch Password Requests to Console Directory Watch.
[  OK  ] Started systemd-ask-passwo…quests to Console Directory Watch.
[   40.954339] systemd[1]: Started systemd-ask-password-wall.path - Forward Password Requests to Wall Directory Watch.
[  OK  ] Started systemd-ask-passwo… Requests to Wall Directory Watch.
[   40.989328] systemd[1]: Set up automount proc-sys-fs-binfmt_misc.automount - Arbitrary Executable File Formats File System Automount Point.
[  OK  ] Set up automount proc-sys-…rmats File System Automount Point.
[   41.022103] systemd[1]: Reached target cryptsetup.target - Local Encrypted Volumes.
[  OK  ] Reached target cryptsetup.…get - Local Encrypted Volumes.
[   41.049918] systemd[1]: Reached target integritysetup.target - Local Integrity Protected Volumes.
[  OK  ] Reached target integrityse…Local Integrity Protected Volumes.
[   41.078083] systemd[1]: Reached target paths.target - Path Units.
[  OK  ] Reached target paths.target - Path Units.
[   41.101664] systemd[1]: Reached target remote-fs.target - Remote File Systems.
[  OK  ] Reached target remote-fs.target - Remote File Systems.
[   41.129295] systemd[1]: Reached target slices.target - Slice Units.
[  OK  ] Reached target slices.target - Slice Units.
[   41.153508] systemd[1]: Reached target swap.target - Swaps.
[  OK  ] Reached target swap.target - Swaps.
[   41.177543] systemd[1]: Reached target veritysetup.target - Local Verity Protected Volumes.
[  OK  ] Reached target veritysetup… - Local Verity Protected Volumes.
[   41.206776] systemd[1]: Listening on systemd-initctl.socket - initctl Compatibility Named Pipe.
[  OK  ] Listening on systemd-initc… initctl Compatibility Named Pipe.
[   41.238695] systemd[1]: Listening on systemd-journald-audit.socket - Journal Audit Socket.
[  OK  ] Listening on systemd-journ…socket - Journal Audit Socket.
[   41.268495] systemd[1]: Listening on systemd-journald-dev-log.socket - Journal Socket (/dev/log).
[  OK  ] Listening on systemd-journ…t - Journal Socket (/dev/log).
[   41.300671] systemd[1]: Listening on systemd-journald.socket - Journal Socket.
[  OK  ] Listening on systemd-journald.socket - Journal Socket.
[   41.337688] systemd[1]: Listening on systemd-udevd-control.socket - udev Control Socket.
[  OK  ] Listening on systemd-udevd….socket - udev Control Socket.
[   41.368181] systemd[1]: Listening on systemd-udevd-kernel.socket - udev Kernel Socket.
[  OK  ] Listening on systemd-udevd…l.socket - udev Kernel Socket.
[   41.397148] systemd[1]: dev-hugepages.mount - Huge Pages File System was skipped because of an unmet condition check (ConditionPathExists=/sys/kernel/mm/hugepages).
[   41.429561] systemd[1]: Mounting dev-mqueue.mount - POSIX Message Queue File System...
	 Mounting dev-mqueue.mount\x80\xa6POSIX Message Queue File System...
[   41.499451] systemd[1]: Mounting sys-kernel-debug.mount - Kernel Debug File System...
	 Mounting sys-kernel-debug.… - Kernel Debug File System...
[   41.613690] systemd[1]: Mounting sys-kernel-tracing.mount - Kernel Trace File System...
	 Mounting sys-kernel-tracin… - Kernel Trace File System...
[   41.664306] systemd[1]: kmod-static-nodes.service - Create List of Static Device Nodes was skipped because of an unmet condition check (ConditionFileNotEmpty=/lib/modules/5.10.197/modules.devname).
[   41.722023] systemd[1]: Starting modprobe@configfs.service - Load Kernel Module configfs...
	 Starting modprobe@configfs…m - Load Kernel Module configfs...
[   41.794935] systemd[1]: Starting modprobe@dm_mod.service - Load Kernel Module dm_mod...
	 Starting modprobe@dm_mod.s…[0m - Load Kernel Module dm_mod...
[   41.890811] systemd[1]: Starting modprobe@drm.service - Load Kernel Module drm...
	 Starting modprobe@drm.service - Load Kernel Module drm...
[   41.986763] systemd[1]: Starting modprobe@efi_pstore.service - Load Kernel Module efi_pstore...
	 Starting modprobe@efi_psto…- Load Kernel Module efi_pstore...
[   42.089832] systemd[1]: Starting modprobe@fuse.service - Load Kernel Module fuse...
	 Starting modprobe@fuse.ser…e - Load Kernel Module fuse...
[   42.182791] systemd[1]: Starting modprobe@loop.service - Load Kernel Module loop...
	 Starting modprobe@loop.ser…e - Load Kernel Module loop...
[   42.244282] systemd[1]: systemd-journald.service: unit configures an IP firewall, but the local system does not support BPF/cgroup firewalling.
[   42.272321] systemd[1]: (This warning is only shown for the first unit using IP firewalling.)
[   42.319832] systemd[1]: Starting systemd-journald.service - Journal Service...
	 Starting systemd-journald.service - Journal Service...
[   42.411195] systemd[1]: Starting systemd-modules-load.service - Load Kernel Modules...
	 Starting systemd-modules-l…rvice - Load Kernel Modules...
[   42.515374] systemd[1]: Starting systemd-remount-fs.service - Remount Root and Kernel File Systems...
	 Starting systemd-remount-f…nt Root and Kernel File Systems...
[   42.646145] systemd[1]: Starting systemd-udev-trigger.service - Coldplug All udev Devices...
	 Starting systemd-udev-trig…[0m - Coldplug All udev Devices...
[   42.933014] systemd[1]: Mounted dev-mqueue.mount - POSIX Message Queue File System.
[  OK  ] Mounted dev-mqueue.mountOSIX Message Queue File System.
[   42.994919] systemd[1]: Mounted sys-kernel-debug.mount - Kernel Debug File System.
[  OK  ] Mounted sys-kernel-debug.m…nt - Kernel Debug File System.
[   43.055000] systemd[1]: Mounted sys-kernel-tracing.mount - Kernel Trace File System.
[  OK  ] Mounted sys-kernel-tracing…nt - Kernel Trace File System.
[   43.144845] systemd[1]: modprobe@configfs.service: Deactivated successfully.
[   43.204578] systemd[1]: Finished modprobe@configfs.service - Load Kernel Module configfs.
[  OK  ] Finished modprobe@configfs…[0m - Load Kernel Module configfs.
[   43.290790] systemd[1]: modprobe@dm_mod.service: Deactivated successfully.
[   43.336648] systemd[1]: Finished modprobe@dm_mod.service - Load Kernel Module dm_mod.
[  OK  ] Finished modprobe@dm_mod.s…e - Load Kernel Module dm_mod.
[   43.406785] systemd[1]: modprobe@drm.service: Deactivated successfully.
[   43.453349] systemd[1]: Finished modprobe@drm.service - Load Kernel Module drm.
[  OK  ] Finished modprobe@drm.service - Load Kernel Module drm.
[   43.550013] systemd[1]: modprobe@efi_pstore.service: Deactivated successfully.
[   43.592654] systemd[1]: Finished modprobe@efi_pstore.service - Load Kernel Module efi_pstore.
[  OK  ] Finished modprobe@efi_psto…m - Load Kernel Module efi_pstore.
[   43.669579] systemd[1]: modprobe@fuse.service: Deactivated successfully.
[   43.716626] systemd[1]: Finished modprobe@fuse.service - Load Kernel Module fuse.
[  OK  ] Finished modprobe@fuse.service - Load Kernel Module fuse.
[   43.788005] systemd[1]: modprobe@loop.service: Deactivated successfully.
[   43.848717] systemd[1]: Finished modprobe@loop.service - Load Kernel Module loop.
[  OK  ] Finished modprobe@loop.service - Load Kernel Module loop.
[   43.920483] systemd[1]: Finished systemd-modules-load.service - Load Kernel Modules.
[  OK  ] Finished systemd-modules-l…service - Load Kernel Modules.
[   44.061862] systemd[1]: Mounting sys-fs-fuse-connections.mount - FUSE Control File System...
[   44.109243] EXT4-fs (sda1): re-mounted. Opts: (null)
	 Mounting sys-fs-fuse-conne… - FUSE Control File System...
[   44.210309] systemd[1]: Mounting sys-kernel-config.mount - Kernel Configuration File System...
	 Mounting sys-kernel-config…ernel Configuration File System...
[   44.282144] systemd[1]: systemd-repart.service - Repartition Root Disk was skipped because no trigger condition checks were met.
[   44.410249] systemd[1]: Starting systemd-sysctl.service - Apply Kernel Variables...
	 Starting systemd-sysctl.se…ce - Apply Kernel Variables...
[   44.737211] systemd[1]: Finished systemd-remount-fs.service - Remount Root and Kernel File Systems.
[  OK  ] Finished systemd-remount-f…ount Root and Kernel File Systems.
[   44.791822] systemd[1]: Mounted sys-fs-fuse-connections.mount - FUSE Control File System.
[  OK  ] Mounted sys-fs-fuse-connec…nt - FUSE Control File System.
[   44.846839] systemd[1]: Mounted sys-kernel-config.mount - Kernel Configuration File System.
[  OK  ] Mounted sys-kernel-config.… Kernel Configuration File System.
[   44.903604] systemd[1]: systemd-firstboot.service - First Boot Wizard was skipped because of an unmet condition check (ConditionFirstBoot=yes).
[   44.957769] systemd[1]: systemd-pstore.service - Platform Persistent Storage Archival was skipped because of an unmet condition check (ConditionDirectoryNotEmpty=/sys/fs/pstore).
[   45.102555] systemd[1]: Starting systemd-random-seed.service - Load/Save Random Seed...
	 Starting systemd-random-se…ice - Load/Save Random Seed...
[   45.254388] systemd[1]: Starting systemd-sysusers.service - Create System Users...
	 Starting systemd-sysusers.…rvice - Create System Users...
[   45.360516] systemd[1]: Finished systemd-sysctl.service - Apply Kernel Variables.
[  OK  ] Finished systemd-sysctl.service - Apply Kernel Variables.
[   45.968631] systemd[1]: Finished systemd-random-seed.service - Load/Save Random Seed.
[  OK  ] Finished systemd-random-se…rvice - Load/Save Random Seed.
[   46.022470] systemd[1]: first-boot-complete.target - First Boot Complete was skipped because of an unmet condition check (ConditionFirstBoot=yes).
[   46.229498] systemd[1]: Finished systemd-sysusers.service - Create System Users.
[  OK  ] Finished systemd-sysusers.service - Create System Users.
[   46.329471] systemd[1]: Starting systemd-tmpfiles-setup-dev.service - Create Static Device Nodes in /dev...
	 Starting systemd-tmpfiles-…ate Static Device Nodes in /dev...
[   47.212492] systemd[1]: Finished systemd-tmpfiles-setup-dev.service - Create Static Device Nodes in /dev.
[  OK  ] Finished systemd-tmpfiles-…reate Static Device Nodes in /dev.
[   47.266700] systemd[1]: Reached target local-fs-pre.target - Preparation for Local File Systems.
[  OK  ] Reached target local-fs-pr…reparation for Local File Systems.
[   47.321207] systemd[1]: Reached target local-fs.target - Local File Systems.
[  OK  ] Reached target local-fs.target - Local File Systems.
[   47.354215] systemd[1]: mdadm-shutdown.service - Prepare mdadm shutdown initramfs was skipped because of an unmet condition check (ConditionFileIsExecutable=/usr/bin/dracut).
[   47.437543] systemd[1]: Starting systemd-binfmt.service - Set Up Additional Binary Formats...
	 Starting systemd-binfmt.se…et Up Additional Binary Formats...
[   47.473661] systemd[1]: systemd-machine-id-commit.service - Commit a transient machine-id on disk was skipped because of an unmet condition check (ConditionPathIsMountPoint=/etc/machine-id).
[   47.550492] systemd[1]: Starting systemd-udevd.service - Rule-based Manager for Device Events and Files...
	 Starting systemd-udevd.ser…ger for Device Events and Files...
[   47.622577] systemd[1]: Started systemd-journald.service - Journal Service.
[  OK  ] Started systemd-journald.service - Journal Service.
[  OK  ] Finished systemd-udev-trig…e - Coldplug All udev Devices.
	 Starting ifupdown-pre.serv…ynchronize boot up for ifupdown...
	 Starting systemd-journal-f…h Journal to Persistent Storage...
[  OK  ] Finished ifupdown-pre.serv… synchronize boot up for ifupdown.
	 Mounting proc-sys-fs-binfm…utable File Formats File System...
	 Starting networking.service - Raise network interfaces...
[FAILED] Failed to mount proc-sys-f…ecutable File Formats File System.
See 'systemctl status proc-sys-fs-binfmt_misc.mount' for details.
[   48.799567] systemd-journald[116]: Received client request to flush runtime journal.
	 Mounting proc-sys-fs-binfm…utable File Formats File System...
[FAILED] Failed to mount proc-sys-f…ecutable File Formats File System.
See 'systemctl status proc-sys-fs-binfmt_misc.mount' for details.
	 Mounting proc-sys-fs-binfm…utable File Formats File System...
[FAILED] Failed to mount proc-sys-f…ecutable File Formats File System.
See 'systemctl status proc-sys-fs-binfmt_misc.mount' for details.
[FAILED] Failed to start systemd-bi… Set Up Additional Binary Formats.
See 'systemctl status systemd-binfmt.service' for details.
[  OK  ] Finished networking.service - Raise network interfaces.
[  OK  ] Reached target network.target - Network.
[  OK  ] Finished systemd-journal-f…ush Journal to Persistent Storage.
	 Starting systemd-tmpfiles-… Volatile Files and Directories...
[  OK  ] Started systemd-udevd.serv…nager for Device Events and Files.
[  OK  ] Found device dev-ttyS0.device - /dev/ttyS0.
[  OK  ] Finished systemd-tmpfiles-…te Volatile Files and Directories.
[  OK  ] Started haveged.serviceon based on the HAVEGE algorithm.
	 Starting systemd-update-ut…rd System Boot/Shutdown in UTMP...
[*     ] Job systemd-update-utmp.service/start running (16s / no limit)
[**    ] Job systemd-update-utmp.service/start running (16s / no limit)
[  OK  ] Finished systemd-update-ut…cord System Boot/Shutdown in UTMP.
[  OK  ] Reached target sysinit.target - System Initialization.
[  OK  ] Started apt-daily.timer - Daily apt download activities.
[  OK  ] Started apt-daily-upgrade.… apt upgrade and clean activities.
[  OK  ] Started dpkg-db-backup.tim… Daily dpkg database backup timer.
[  OK  ] Started e2scrub_all.timer\x80\xa6etadata Check for All Filesystems.
[  OK  ] Started fstrim.timer - Discard unused blocks once a week.
[  OK  ] Started logrotate.timer - Daily rotation of log files.
[  OK  ] Started systemd-tmpfiles-c… Cleanup of Temporary Directories.
[  OK  ] Reached target timers.target - Timer Units.
[  OK  ] Listening on dbus.socket-Bus System Message Bus Socket.
[  OK  ] Reached target sockets.target - Socket Units.
[  OK  ] Reached target basic.target - Basic System.
[  OK  ] Started cron.service -…kground program processing daemon.
	 Starting dbus.service - D-Bus System Message Bus...
	 Starting e2scrub_reap.serv…e ext4 Metadata Check Snapshots...
	 Starting ssh.service - OpenBSD Secure Shell server...
	 Starting systemd-logind.se…ice - User Login Management...
	 Starting systemd-user-sess…vice - Permit User Sessions...
[  OK  ] Started dbus.service - D-Bus System Message Bus.
[  OK  ] Finished systemd-user-sess…ervice - Permit User Sessions.
[  OK  ] Started serial-getty@ttyS0…rvice - Serial Getty on ttyS0.
[  OK  ] Reached target getty.target - Login Prompts.
[  OK  ] Started ssh.service - OpenBSD Secure Shell server.

Debian GNU/Linux 12 ix2 ttyS0

ix2 login: root
Password:
Linux ix2 5.10.197 #22 Sun Oct 8 02:06:18 UTC 2023 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@ix2:~#

root@ix2:~# cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 12 (bookworm)"
NAME="Debian GNU/Linux"
VERSION_ID="12"
VERSION="12 (bookworm)"
VERSION_CODENAME=bookworm
ID=debian
HOME_URL="https://www.debian.org/";
SUPPORT_URL="https://www.debian.org/support";
BUG_REPORT_URL="https://bugs.debian.org/";

Re: resurrecting iomega storcenter ix2 u-boot and debian
December 15, 2023 09:20AM
For the ethernet you probably need to adjust the device-tree. Most of these Marvell SoCs have 2 ethernet ports, it’s possible Buffalo used port1 and iomega used port2 or vice versa.

for the mtd partitions, you’re defining them in a uboot variable but you aren’t adding that to the cmdline passed to the device.

usually at this point I copy whatever device-tree I use as a base to a new one and start removing anything that doesn’t apply to my device and then start adding whatever is missing. The removal part is important because the LS-GL might be using a GPIO for something like an LED/button/UART that your device uses for ethernet etc.
Re: resurrecting iomega storcenter ix2 u-boot and debian
December 15, 2023 02:24PM
> For the ethernet you probably need to adjust the
> device-tree. Most of these Marvell SoCs have 2
> ethernet ports, it’s possible Buffalo used port1
> and iomega used port2 or vice versa.

At serial console prompt, run help to list all commands, and then see if mii and mdio commands are available.
help
help mii
help mdio
Below should be the format (I'm typing from memory so the parameter might not be accurate).
mii info
mdio list

UPDATE:

Also post the DTS that you are using to boot the box here.

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



Edited 1 time(s). Last edit at 12/15/2023 03:00PM by bodhi.
Re: resurrecting iomega storcenter ix2 u-boot and debian
December 15, 2023 05:42PM
Honestly this is the first thing I'd like to fix on this board:

U-Boot 1.1.1 (Jun  3 2007 - 20:44:19) USI u-boot-1.1.1-DHNSMR03/04-v3.1.0.0

It doesn't have mii, mdio, or even "source"!

By the way, here's my flash info. My boot command for 2.6.12 isn't passing any mtd partition information.
Support for that chip should be coming with MTD_CFI_AMDSTD.
I wish more folks would enable CONFIG_IKCONFIG and CONFIG_IKCONFIG_PROC, so that one could check what the kernel was built with.

Kernel command line: root=/dev/mtdblock1 ro rootfstype=cramfs devfs=mount console=ttyS0,115200 init=/crmfsinit


Marvell>> flinfo

Bank # 1: AMD AM29LV320 (32Mbit = 4M x 8)
Size:  4 MB,Bus Width: 1, device Width: 1.
Flash base: 0xffc00000,Number of Sectors: 64 Type: REGULAR.
  Sector Start Addresses:
    00000000      00010000      00020000      00030000      00040000
    00050000      00060000      00070000      00080000      00090000
    000a0000      000b0000      000c0000      000d0000      000e0000
    000f0000      00100000      00110000      00120000      00130000
    00140000      00150000      00160000      00170000      00180000
    00190000      001a0000      001b0000      001c0000      001d0000
    001e0000      001f0000      00200000      00210000      00220000
    00230000      00240000      00250000      00260000      00270000
    00280000      00290000      002a0000      002b0000      002c0000
    002d0000      002e0000      002f0000      00300000      00310000
    00320000      00330000      00340000      00350000      00360000
    00370000      00380000 (RO) 00390000 (RO) 003a0000 (RO) 003b0000 (RO)
    003c0000 (RO) 003d0000 (RO) 003e0000 (RO) 003f0000 (RO)

Bank # 2: missing or unknown FLASH type

I'm using the generic lsgl dts for now.
I poked in my mac address as my first long shot, but it had no discernable effect.

I like your idea of taking stuff out until it stops working.

/dts-v1/;

/ {
	#address-cells = <0x01>;
	#size-cells = <0x01>;
	model = "Buffalo Linkstation Pro/Live";
	compatible = "buffalo,lsgl\0marvell,orion5x-88f5182\0marvell,orion5x";
	interrupt-parent = <0x01>;

	chosen {
		bootargs = "console=ttyS0,115200n8 earlyprintk";
		stdout-path = "/soc/internal-regs/serial@12000";
	};

	aliases {
		gpio0 = "/soc/internal-regs/gpio@10100";
	};

	memory {
		device_type = "memory";
		reg = <0x00 0x4000000>;
	};

	soc {
		#address-cells = <0x02>;
		#size-cells = <0x01>;
		controller = <0x02>;
		compatible = "marvell,orion5x-88f5182-mbus\0simple-bus";
		ranges = <0xf0010000 0x00 0xf1000000 0x100000 0x9000000 0x00 0xf2200000 0x800 0x10f0000 0x00 0xf4000000 0x40000>;

		devbus-bootcs {
			compatible = "marvell,orion-devbus";
			reg = <0xf0010000 0x1046c 0x04>;
			ranges = <0x00 0x10f0000 0x00 0xffffffff>;
			#address-cells = <0x01>;
			#size-cells = <0x01>;
			clocks = <0x03 0x00>;
			status = "okay";
			devbus,keep-config;

			flash@0 {
				compatible = "jedec-flash";
				reg = <0x00 0x40000>;
				bank-width = <0x01>;

				partitions {
					compatible = "fixed-partitions";
					#address-cells = <0x01>;
					#size-cells = <0x01>;

					header@0 {
						reg = <0x00 0x30000>;
						read-only;
					};

					uboot@30000 {
						reg = <0x30000 0xf000>;
						read-only;
					};

					uboot_env@3F000 {
						reg = <0x3f000 0x1000>;
					};
				};
			};
		};

		devbus-cs0 {
			compatible = "marvell,orion-devbus";
			reg = <0xf0010000 0x1045c 0x04>;
			ranges = <0x00 0x11e0000 0x00 0xffffffff>;
			#address-cells = <0x01>;
			#size-cells = <0x01>;
			clocks = <0x03 0x00>;
			status = "disabled";
		};

		devbus-cs1 {
			compatible = "marvell,orion-devbus";
			reg = <0xf0010000 0x10460 0x04>;
			ranges = <0x00 0x11d0000 0x00 0xffffffff>;
			#address-cells = <0x01>;
			#size-cells = <0x01>;
			clocks = <0x03 0x00>;
			status = "disabled";
		};

		devbus-cs2 {
			compatible = "marvell,orion-devbus";
			reg = <0xf0010000 0x10464 0x04>;
			ranges = <0x00 0x11b0000 0x00 0xffffffff>;
			#address-cells = <0x01>;
			#size-cells = <0x01>;
			clocks = <0x03 0x00>;
			status = "disabled";
		};

		internal-regs {
			compatible = "simple-bus";
			#address-cells = <0x01>;
			#size-cells = <0x01>;
			ranges = <0x00 0xf0010000 0x00 0x100000>;

			gpio@10100 {
				compatible = "marvell,orion-gpio";
				#gpio-cells = <0x02>;
				gpio-controller;
				reg = <0x10100 0x40>;
				ngpios = <0x20>;
				interrupt-controller;
				#interrupt-cells = <0x02>;
				interrupts = <0x06 0x07 0x08 0x09>;
				phandle = <0x09>;
			};

			spi@10600 {
				compatible = "marvell,orion-spi";
				#address-cells = <0x01>;
				#size-cells = <0x00>;
				cell-index = <0x00>;
				reg = <0x10600 0x28>;
				status = "disabled";
			};

			i2c@11000 {
				compatible = "marvell,mv64xxx-i2c";
				reg = <0x11000 0x20>;
				#address-cells = <0x01>;
				#size-cells = <0x00>;
				interrupts = <0x05>;
				clocks = <0x03 0x00>;
				status = "okay";

				rtc@32 {
					compatible = "ricoh,rs5c372a";
					reg = <0x32>;
				};
			};

			serial@12000 {
				compatible = "ns16550a";
				reg = <0x12000 0x100>;
				reg-shift = <0x02>;
				interrupts = <0x03>;
				clocks = <0x03 0x00>;
				status = "okay";
			};

			serial@12100 {
				compatible = "ns16550a";
				reg = <0x12100 0x100>;
				reg-shift = <0x02>;
				interrupts = <0x04>;
				clocks = <0x03 0x00>;
				status = "okay";
			};

			bridge-interrupt-ctrl@20110 {
				compatible = "marvell,orion-bridge-intc";
				interrupt-controller;
				#interrupt-cells = <0x01>;
				reg = <0x20110 0x08>;
				interrupts = <0x00>;
				marvell,#interrupts = <0x04>;
				phandle = <0x04>;
			};

			interrupt-controller@20200 {
				compatible = "marvell,orion-intc";
				interrupt-controller;
				#interrupt-cells = <0x01>;
				reg = <0x20200 0x08>;
				phandle = <0x01>;
			};

			timer@20300 {
				compatible = "marvell,orion-timer";
				reg = <0x20300 0x20>;
				interrupt-parent = <0x04>;
				interrupts = <0x01 0x02>;
				clocks = <0x03 0x00>;
			};

			wdt@20300 {
				compatible = "marvell,orion-wdt";
				reg = <0x20300 0x28 0x20108 0x04>;
				interrupt-parent = <0x04>;
				interrupts = <0x03>;
				clocks = <0x03 0x00>;
				status = "disabled";
			};

			ehci@50000 {
				compatible = "marvell,orion-ehci";
				reg = <0x50000 0x1000>;
				interrupts = <0x11>;
				status = "okay";
			};

			dma-controller@60900 {
				compatible = "marvell,orion-xor";
				reg = <0x60900 0x100 0x60b00 0x100>;
				status = "okay";

				xor00 {
					interrupts = <0x1e>;
					dmacap,memcpy;
					dmacap,xor;
				};

				xor01 {
					interrupts = <0x1f>;
					dmacap,memcpy;
					dmacap,xor;
					dmacap,memset;
				};
			};

			ethernet-controller@72000 {
				compatible = "marvell,orion-eth";
				#address-cells = <0x01>;
				#size-cells = <0x00>;
				reg = <0x72000 0x4000>;
				marvell,tx-checksum-limit = <0x640>;
				status = "okay";

				ethernet-port@0 {
					compatible = "marvell,orion-eth-port";
					reg = <0x00>;
					interrupts = <0x15>;
					mac-address = [ 00 D0 B8 02 78 63 ];
					phy-handle = <0x05>;
				};
			};

			mdio-bus@72004 {
				compatible = "marvell,orion-mdio";
				#address-cells = <0x01>;
				#size-cells = <0x00>;
				reg = <0x72004 0x84>;
				interrupts = <0x16>;
				status = "okay";

				ethernet-phy {
					reg = <0x08>;
					phandle = <0x05>;
				};
			};

			sata@80000 {
				compatible = "marvell,orion-sata";
				reg = <0x80000 0x5000>;
				interrupts = <0x1d>;
				status = "okay";
				nr-ports = <0x02>;
			};

			crypto@90000 {
				compatible = "marvell,orion-crypto";
				reg = <0x90000 0x10000>;
				reg-names = "regs";
				interrupts = <0x1c>;
				marvell,crypto-srams = <0x06>;
				marvell,crypto-sram-size = <0x800>;
				status = "okay";
			};

			ehci@a0000 {
				compatible = "marvell,orion-ehci";
				reg = <0xa0000 0x1000>;
				interrupts = <0x0c>;
				status = "okay";
			};

			pinctrl@10000 {
				compatible = "marvell,88f5182-pinctrl";
				reg = <0x10000 0x08 0x10050 0x04>;

				pmx-sata0 {
					marvell,pins = "mpp12\0mpp14";
					marvell,function = "sata0";
				};

				pmx-sata1 {
					marvell,pins = "mpp13\0mpp15";
					marvell,function = "sata1";
				};

				pmx-power-hdd {
					marvell,function = "gpio";
					marvell,pins = "mpp1";
					phandle = <0x08>;
				};

				pmx-power-usb {
					marvell,function = "gpio";
					marvell,pins = "mpp9";
					phandle = <0x07>;
				};
			};

			core-clocks@10030 {
				compatible = "marvell,mv88f5182-core-clock";
				reg = <0x10010 0x04>;
				#clock-cells = <0x01>;
				phandle = <0x03>;
			};

			mbus-controller@20000 {
				compatible = "marvell,mbus-controller";
				reg = <0x20000 0x100 0x1500 0x20>;
				phandle = <0x02>;
			};
		};

		sa-sram {
			compatible = "mmio-sram";
			reg = <0x9000000 0x00 0x800>;
			#address-cells = <0x01>;
			#size-cells = <0x01>;
			phandle = <0x06>;
		};
	};

	restart_poweroff {
		compatible = "restart-poweroff";
	};

	regulators {
		compatible = "simple-bus";
		#address-cells = <0x01>;
		#size-cells = <0x00>;
		pinctrl-0 = <0x07 0x08>;
		pinctrl-names = "default";

		regulator@1 {
			compatible = "regulator-fixed";
			reg = <0x01>;
			regulator-name = "USB Power";
			regulator-min-microvolt = <0x4c4b40>;
			regulator-max-microvolt = <0x4c4b40>;
			enable-active-high;
			regulator-always-on;
			regulator-boot-on;
			gpios = <0x09 0x09 0x00>;
		};

		regulator@2 {
			compatible = "regulator-fixed";
			reg = <0x02>;
			regulator-name = "HDD Power";
			regulator-min-microvolt = <0x4c4b40>;
			regulator-max-microvolt = <0x4c4b40>;
			enable-active-high;
			regulator-always-on;
			regulator-boot-on;
			gpios = <0x09 0x01 0x00>;
		};
	};
};



Edited 2 time(s). Last edit at 12/15/2023 07:14PM by wibu.
Re: resurrecting iomega storcenter ix2 u-boot and debian
December 15, 2023 06:03PM
Quote

Honestly this is the first think I'd like to fix on this board:

Yeah, no ethernet is a major inconvenient, that's also the 1st thing I get to work with a new board.

ethernet-phy {
					reg = <0x08>;
					phandle = <0x05>;
				};

Quote

[ 2.285815] mdio_bus f1072004.mdio-bus-mii: MDIO device at address 8 is missing.

reg = <0x08> is wrong.

So like 1000's said above,

Quote

For the ethernet you probably need to adjust the device-tree. Most of these Marvell SoCs have 2 ethernet ports, it’s possible Buffalo used port1 and iomega used port2 or vice versa.

Use the other PHY addr for one in a similar to Buffalo Linkstation Pro/LiveNAS DTS. Chance is great that the PHY addr is 0 or 1.

With 1 ethernet port, the port should be 0 (egiga0 in u-boot). Check this with:

printenv ethact

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



Edited 1 time(s). Last edit at 12/15/2023 06:08PM by bodhi.
Re: resurrecting iomega storcenter ix2 u-boot and debian
December 16, 2023 10:46PM
It looks like most kirkwood boards used 8 or 11, but it turns out the iomega m1 uses ethernet_phy 1.

So now I can ssh to the m1 and continue the discovery and refinement of device tree:

rtc
mtd
buttons
leds
fan

I was able to skip the boot shim.
Re: resurrecting iomega storcenter ix2 u-boot and debian
December 17, 2023 12:10AM
> It looks like most kirkwood boards used 8 or 11,
> but it turns out the iomega m1 uses ethernet_phy
> 1.

Actually most of Kirkwood boxes use PHY 0 or 1 (you probably have not seen enough of these boards). PHY 8 is a few, PHY 11 is rare.

> So now I can ssh to the m1

Nice.

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



Edited 1 time(s). Last edit at 12/17/2023 01:16AM by bodhi.
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: