[A370] Porting to Shuttle KD22

Hello there!

Does any of you have some experience with non-supported devices using Marvell's Armada 370 SoC?
Unfortunately this device has an unpopulated serial port, which makes me aware of doing anything unsure.
This NAS is really similar to Buffalo LS421. Let me share all the information I have at the moment.

  • Marvell 88F6707
  • 512MB DDR3
  • unpopulated serial port
  • 128 MB Hynix NAND (HY27U1G8F2BTR)
  • 1MB SPI for U-boot 2009.08 (build: 2013.07.31 Marvell version: 1.1.3 NQ)
  • uImage name: "linux-armv7-mirabox"
  • console=ttyS0,115200 root=ubi0:rootfs ubi.mtd=3,2048 initrd=0x12000000 rootfstype=ubifs

I think, that would be a safe way to modify the NANDProfile for Mirabox (target/linux/mvebu/image/Makefile) according the Hynix NAND's datasheet.
However the U-boot seems to be the main thing here, without access to the serial console or clunc I should somehow modify the boot parameters.

@daniel @Kaloz @danitool to your attention please

For the initial port you will need serial access (or REALLY know what you are doing and be ready to add serial access if needed).

DISCLAIMER: what I say below is a suggestion, while this is true for most devices it may not be true for yours. If you attempt what I tell you you do so at your own risk.

By "serial port" you mean 4 pins, not RS-232 serial (that has much more than 4 pins), right? What tells you it is a serial port? Is it written on the board?

Since it is an Armada 370 it should be a 3.3v UART.
I think you can populate it, identify the power pin with a multimeter (this should tell you if it is 3.3 or 5v), then cover this pin and NOT use it.
I think you should also be able to find the Ground pin with the multimeter too.

Then you can try blind the other pins with an UART adapter that can do 3.3v/5v (most "arduino" UART-USB adapters can do it).
As long as you are NOT connecting to the power pin it should be safe, the worst that can happen is you get garbage on the terminal screen. If that happens just swap the data pins on the serial port.

You already know the speed is 115200 and other parameters are most likely default like for all other devices.

I just managed to get serial port working (yes, it's a 3.3 volts UART).
The 19.07 Mirabox initrd just boots fine, however I need to work on the dts file. Something really softly just triggers the pc speaker :slight_smile:

1 Like

@daniel, how did you manage to discover the GPIO mapping?

I discover GPIOs manually by exporting them through /sys/class/gpio/export and then toggle output value to find LEDs, then toggle mode and read input value to discover buttons.

Hey.

I'm planning on fiddling around with my KD22 and OpenWrt, but I can't find the original firmware anywhere anymore.
The official source that got linked at the hardware data page isn't up anymore and a google search didn't bring up any matches :frowning_face:

Any of you know where i could get the firmware from?
Maybe, by any chance, someone of you could provide the file in case there are no other official sources. @daniel @vinibali

Thanks in advance. :slightly_smiling_face:

use the wayback machine (web archive) http://web.archive.org/ just copy the dead link in it and see if it has old versions saved.

Seems like that file was saved to web archive in 2014, so use link below
http://web.archive.org/web/20140903094608/http://download.shuttle.eu/Mirror/NAS/KD22/Firmware/OMNINAS-KD22_2.02.20140721.TAR.GZ

1 Like

I didn't know they even got old file URLs / archived the files there.
Wow. Thanks a lot, today I learnt.

Back in the day I spent some hours with that.
It's salted with OpenSSL, but the key which can be found on the rooted system doesn't work.
That would be easier to root the device and save the files/partitions from that.
I'm so busy these days, but as I mentioned at the TOH, it can be booted with the Mirabox image.
I also had some mails with the European support team, they are unable to provide the kernel sources for some reason.

The Shuttle KS10 seems to be a single disk KD22. It has the same SoC (yet a lower clock) and half the RAM.

     _           _   _   _       
    | |         | | | | | |      
 ___| |__  _   _| |_| |_| | ___  
/ __| '_ \| | | | __| __| |/ _ \ 
\__ \ | | | |_| | |_| |_| |  __/ 
|___/_| |_|\__,_|\__|\__|_|\___| 
          _   _     ____              _
         | | | |   | __ )  ___   ___ | |_ 
         | | | |___|  _ \ / _ \ / _ \| __| 
         | |_| |___| |_) | (_) | (_) | |_ 
          \___/    |____/ \___/ \___/ \__| 

 ** LOADER **


U-Boot 2009.08 ( 9�月 25 2013 - 16:20:16)Marvell version: 1.1.3 NQ
U-Boot Addressing:
       Code:            00600000:006AFFF0
       BSS:             006F8E20
       Stack:           0x5fff70
       PageTable:       0x8e0000
       Heap address:    0x900000:0xe00000
Board: OMNINAS_KS10
SoC:   MV6707 A1
CPU:   Marvell PJ4B v7 UP (Rev 1) LE
       CPU @ 800Mhz, L2 @ 533Mhz
       DDR @ 533Mhz, TClock @ 200Mhz
       DDR 16Bit Width, FastPath Memory Access
PEX 0: Root Complex Interface, Detected Link X1
PEX 1: Detected No Link.
DRAM:  256 MB
       CS 0: base 0x00000000 size 256 MB
       Addresses 14M - 0M are saved for the U-Boot usage.
NAND:  128 MiB
*** Warning - bad CRC, using default environment


NAND read: device 0 offset 0x0, size 0x40
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01
 64 bytes read: OK

NAND read: device 0 offset 0x800000, size 0x40
 64 bytes read: OK
Get DATE: 2022-01-07 (wday=5)  TIME: 16:34:37
FPU not initialized
USB 0: Host Mode
USB 1: Host Mode
Shutting down unused interfaces:
       GBE1
       AUDIO
Modules/Interfaces Detected:
       SDIO
       RGMII0 Phy
       PEX0 (Lane 0)
       PEX1 (Lane 1)
       SATA0 (Lane 2)
       SATA1 (Lane 3)
MMC:   MRVL_MMC: 0
Net:   egiga0
Hit any key to stop autoboot:  0 

Yet I can't boot the Mirabox initramfs kernel, it stops at

Starting kernel ...

I have tried the 21.01.1 and 19.07.8 images, and I have tried marvell_a370-db and marvell_a370-rd (what is the difference?), further I have tried to add earlyprintk (next to the existing console= argument) to the command line.
Any suggestions?
Stock kernel boots fine, btw.

How are you booting the image? Tftpboot?

With so little in the log I can only make guesses but it could be;
Tftp image load address
Image is too large for the 2009 uboot to handle (try a plain uImage file)
Dts in the image is not compatible, possibly due to ram layout

Yes, tftpboot.

Shuttle>> setenv ipaddr 192.168.1.1
Shuttle>> setenv serverip 192.168.1.2
Shuttle>> tftpboot mirabox.19
Using egiga0 device
TFTP from server 192.168.1.2; our IP address is 192.168.1.1
Filename 'mirabox.19'.
Load address: 0x2000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         ################
done
Bytes transferred = 4045977 (3dbc99 hex)
Shuttle>> bootm
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   ARM OpenWrt Linux-4.14.241
   Created:      2021-07-29  19:50:28 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4045913 Bytes =  3.9 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

I can hardly imagine the size could be the problem. Here is the stock boot:

## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-3.2.34
   Created:      2014-07-30   3:06:23 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3420592 Bytes =  3.3 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 04000000 ...
   Image Name:   
   Created:      2014-07-31   1:40:56 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    3011683 Bytes =  2.9 MB
   Load Address: 12000000
   Entry Point:  12000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
mvBoardEnvInit
axp_db_init...done
[    0.000000] Linux version 3.2.34 (root@localhost.localdomain) (gcc version 4.6.4 20120731 (prerelease) (Linaro GCC branch-4.6.4. Marvell GCC 201211-1642.a7a01a7a) ) #1 Wed Jul 30 11:06:15 CST 2014

As you can see the stock uImage 3.3MiB, while initramfs-kernel 19.02 is 3.9MiB. If there is a size problem I'd expect it at >4MiB.

What do you mean by that? This box has half the ram, but I suppose the uncompressing piggyback shouldn't detect/care about that. So at least I'd expect a 'Uncompressing the kernel'.

Hi,
A hard lockup without a decompression or crc error points to a fundamental incompatibility between the image being loaded and the board. I suggest memory as manufacturers can setup memory specs very differently between boards and the dts used must allow for them.

The dts differences can be much more than just setting how many mb of ram the board has.

Here's what can happen with Marvell devices when the kernel / dts don't match what the manufacturer intended; https://forum.doozan.com/read.php?2,32146,106944#msg-106944
For 370s with old uBoot you can hit a memory conflict and then - crash.

Changing the image load address in the uBoot parameters may overcome a conflict. You could increment it up to 4000000 and load at 80000 to see if it gets further. I'm not hopeful though.

Again, with so little output its hard to debug. Isolate what you can and see if you get any further. Start with extracting the uImage from the initramfs image and tftpboot that. If it still locks hard then the mirabox image is fundamentally incompatible.

As there are no other A370 boxes supported by OpenWRT, perhaps try the A370 kernel on the doozan forum. Those guys have both 'old uBoot' and modern uBoot kernels for this SOC.

And the full stock bootlog could be interesting, may point out what differs from the KD22.

Ah, thanks for that. I have read that post of bodhi, and although I don't get what actually is happening, I get that u-boot can initialize something in different ways.
Below I put the full bootlog. When comparing it to the stock bootlog of the KD22 in the wiki, I didn't see any unexpected differences. (Except that the KS10 boots faster, according to it's own timing. But as there is a jump of almost 5 seconds, maybe just the clocksource is not reliable on boot).
I'll try the uImages from doozan.

BootROM 1.08
Booting from SPI flash
DDR3 Training Sequence - Ver 2.3.5 
DDR3 Training Sequence - Ended Successfully 
BootROM: Image checksum verification PASSED

     _           _   _   _       
    | |         | | | | | |      
 ___| |__  _   _| |_| |_| | ___  
/ __| '_ \| | | | __| __| |/ _ \ 
\__ \ | | | |_| | |_| |_| |  __/ 
|___/_| |_|\__,_|\__|\__|_|\___| 
          _   _     ____              _
         | | | |   | __ )  ___   ___ | |_ 
         | | | |___|  _ \ / _ \ / _ \| __| 
         | |_| |___| |_) | (_) | (_) | |_ 
          \___/    |____/ \___/ \___/ \__| 

 ** LOADER **


U-Boot 2009.08 ( 9月 25 2013 - 16:20:16)Marvell version: 1.1.3 NQ
U-Boot Addressing:
       Code:		00600000:006AFFF0
       BSS:		006F8E20
       Stack:		0x5fff70
       PageTable:	0x8e0000
       Heap address:	0x900000:0xe00000
Board: OMNINAS_KS10
SoC:   MV6707 A1
CPU:   Marvell PJ4B v7 UP (Rev 1) LE
       CPU @ 800Mhz, L2 @ 533Mhz
       DDR @ 533Mhz, TClock @ 200Mhz
       DDR 16Bit Width, FastPath Memory Access
PEX 0: Root Complex Interface, Detected Link X1
PEX 1: Detected No Link.
DRAM:  256 MB
       CS 0: base 0x00000000 size 256 MB
       Addresses 14M - 0M are saved for the U-Boot usage.
NAND:  128 MiB
*** Warning - bad CRC, using default environment


NAND read: device 0 offset 0x0, size 0x40
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01
 64 bytes read: OK

NAND read: device 0 offset 0x800000, size 0x40
 64 bytes read: OK
Get DATE: 2120-01-00 (wday=2)  TIME:  0:10:12
FPU not initialized
USB 0: Host Mode
USB 1: Host Mode
Shutting down unused interfaces:
       GBE1
       AUDIO
Modules/Interfaces Detected:
       SDIO
       RGMII0 Phy
       PEX0 (Lane 0)
       PEX1 (Lane 1)
       SATA0 (Lane 2)
       SATA1 (Lane 3)
MMC:   MRVL_MMC: 0
Net:   egiga0
Hit any key to stop autoboot:  3  2  1  0 

Marvell Serial ATA Adapter
Integrated Sata device found
  Device 0 @ 0 0:
Model: FUJITSU MHY2160BH                        Firm: 0040020B Ser#:         K428T7C2AEA6
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 152627.8 MB = 149.0 GB (312581808 x 512)

Device 0: nand0, sector size 128 KiB

NAND read: device 0 offset 0x0, size 0x344000
 3424256 bytes read: OK

NAND read: device 0 offset 0x800000, size 0x2e0000
 3014656 bytes read: OK
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-3.2.34
   Created:      2014-07-30   3:06:23 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3420592 Bytes =  3.3 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 04000000 ...
   Image Name:   
   Created:      2014-07-31   1:40:56 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    3011683 Bytes =  2.9 MB
   Load Address: 12000000
   Entry Point:  12000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
mvBoardEnvInit
axp_db_init...done
[    0.000000] Linux version 3.2.34 (root@localhost.localdomain) (gcc version 4.6.4 20120731 (prerelease) (Linaro GCC branch-4.6.4. Marvell GCC 201211-1642.a7a01a7a) ) #1 Wed Jul 30 11:06:15 CST 2014
[    0.000000] CPU: Marvell PJ4Bv7 Processor [561f5811] revision 1 (ARMv7), cr=10c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] Machine: Marvell Armada-370
[    0.000000] Using UBoot passing parameters structure
[    0.000000] >>>>>>>Tag MAC 0a:0c:78:43:50:00
[    0.000000] Memory policy: ECC disabled, Data cache writealloc
[    0.000000] Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,115200 root=ubi0:rootfs ubi.mtd=3,2048 initrd=0x12000000 rootfstype=ubifs
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 256MB = 256MB total
[    0.000000] Memory: 243724k/243724k available, 18420k reserved, 0K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0x90800000 - 0xfa800000   (1696 MB)
[    0.000000]     lowmem  : 0x80000000 - 0x90000000   ( 256 MB)
[    0.000000]     modules : 0x7f000000 - 0x80000000   (  16 MB)
[    0.000000]       .text : 0x80008000 - 0x80651000   (6436 kB)
[    0.000000]       .init : 0x80651000 - 0x8067b000   ( 168 kB)
[    0.000000]       .data : 0x8067c000 - 0x806ad4a0   ( 198 kB)
[    0.000000]        .bss : 0x806ad4c4 - 0x806e0a7c   ( 206 kB)
[    0.000000] NR_IRQS:256
[    0.000000] a370_time_init
[    0.000000] sched_clock: 32 bits at 533MHz, resolution 1ns, wraps every 8058ms
[    4.878004] Calibrating delay loop... 795.44 BogoMIPS (lpj=3977216)
[    4.917965] pid_max: default: 32768 minimum: 301
[    4.918135] Mount-cache hash table entries: 512
[    4.918445] CPU: Testing write buffer coherency: ok
[    4.918609] hw perfevents: no hardware support available
[    4.919158] devtmpfs: initialized
[    4.923161] NET: Registered protocol family 16
[    4.925204] L0 cache Enabled
[    4.925218] Speculative Prefetch Disabled
[    4.925247] Aurora L2 Cache Enabled
[    4.925282] Support IO coherency.
[    4.925299] Enable DLB and DRAM write coalescing
[    4.926535] mvBoardSerdesModulesScan: srdsMode=9, speed=9
[    4.928172] 
[    4.928179] CPU Interface
[    4.928185] -------------
[    4.928193] SDRAM_CS0 ....base 00000000, size 256MB 
[    4.928209] SDRAM_CS1 ....disable
[    4.928219] SDRAM_CS2 ....disable
[    4.928228] SDRAM_CS3 ....disable
[    4.928238] DEVICE_CS0 ....base f2000000, size  32MB 
[    4.928256] DEVICE_CS1 ....no such
[    4.928279] DEVICE_CS2 ....no such
[    4.928301] DEVICE_CS3 ....no such
[    4.928323] PEX0_MEM ....base e0000000, size  32MB 
[    4.928339] PEX0_IO ....base f1100000, size   1MB 
[    4.928355] PEX1_MEM ....base e2000000, size  32MB 
[    4.928371] PEX1_IO ....base f1200000, size   1MB 
[    4.928387] INTER_REGS ....base d0000000, size   1MB 
[    4.928403] DMA_UART ....no such
[    4.928425] SPI_CS0 ....base f0000000, size  16MB 
[    4.928442] SPI_CS1 ....no such
[    4.928464] SPI_CS2 ....no such
[    4.928486] SPI_CS3 ....no such
[    4.928507] SPI_CS4 ....no such
[    4.928529] SPI_CS5 ....no such
[    4.928551] SPI_CS6 ....no such
[    4.928573] SPI_CS7 ....no such
[    4.928595] BOOT_ROM_CS ....no such
[    4.928617] DEV_BOOTCS ....base f5000000, size  16MB 
[    4.928635] PMU_SCRATCHPAD ....no such
[    4.928657] CRYPT0_ENG ....base c8010000, size  64KB 
[    4.928677] 
[    4.928681]   Shuttle Marvell Armada370 Platform - KS10-- OMNINAS-KS10  Soc: MV6707 A1 LE
[    4.928702]   LSP version: linux-3.2.34-axp_a370-2012_Q4.1p5
[    4.928712] 
[    4.928715] 
[    4.928727]  Detected Tclk 200000000, SysClk 533000000, FabricClk 533000000
[    4.930971] Marvel PHY ID1=141, ID2=dd1
[    4.930981] Marvel PHY 88E1518 init...
[    4.936862] USB-dev=1
[    4.937080] ..........USB ID=6707
[    4.937139] Marvell USB EHCI Host controller #1: 8804ea00
[    4.937294] USB-dev=0
[    4.938520] ..........USB ID=6707
[    4.938576] Marvell USB EHCI Host controller #0: 8804e800
[    4.938858] ..........PEX ID=6707
[    4.938871] mvPexInit: for PCIe0, type=ROOT_COMPLEX
[    4.939885] PEX0 interface detected Link X1
[    4.940022] ..........PEX ID=6707
[    4.940031] mvPexInit: for PCIe1, type=ROOT_COMPLEX
[    4.941040] PEX1 interface detected no Link.
[    4.941676] PCI: bus0: Fast back to back transfers disabled
[    4.942160] PCI: bus1: Fast back to back transfers enabled
[    4.942207] pci 0000:00:01.0: BAR 2: assigned [mem 0xe0000000-0xe0003fff 64bit]
[    4.942237] pci 0000:00:01.0: BAR 2: set to [mem 0xe0000000-0xe0003fff 64bit] (PCI address [0xe0000000-0xe0003fff])
[    4.942258] pci 0000:00:01.0: BAR 0: assigned [io  0x1000-0x10ff]
[    4.942279] pci 0000:00:01.0: BAR 0: set to [io  0x1000-0x10ff] (PCI address [0x1000-0x10ff])
[    4.942294] Aton-Buttons Device Load
[    4.959363] bio: create slab <bio-0> at 0
[    4.960004] vgaarb: loaded
[    4.960597] SCSI subsystem initialized
[    4.961617] usbcore: registered new interface driver usbfs
[    4.961887] usbcore: registered new interface driver hub
[    4.962057] usbcore: registered new device driver usb
[    4.963826] cfg80211: Calling CRDA to update world regulatory domain
[    4.964448] Switching to clocksource armada370_clocksource
[    4.966844] NET: Registered protocol family 2
[    4.966965] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[    4.967241] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    4.967369] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[    4.967455] TCP: Hash tables configured (established 8192 bind 8192)
[    4.967468] TCP reno registered
[    4.967481] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    4.967506] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    4.967720] NET: Registered protocol family 1
[    4.967977] RPC: Registered named UNIX socket transport module.
[    4.967991] RPC: Registered udp transport module.
[    4.968001] RPC: Registered tcp transport module.
[    4.968011] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    4.968213] Trying to unpack rootfs image as initramfs...
[    4.968824] rootfs image is not initramfs (no cpio magic); looks like an initrd
[    4.984747] Freeing initrd memory: 2940K
[    4.985112] cesadev_init(80658cc8)
[    4.985702] mvCesaInit: channels=1, session=640, queue=64
[    4.992180] MV Buttons Driver Load
[    4.992718] Temp max = 98, Temp min = 10
[    4.992729] Raw max = 179
[    4.992737] Raw min = 301
[    4.992945] WARNING: cooling threshold was triggered
[    4.992957] State=0, no fan control for KS10
[    4.992977] Armada XP hwmon thermal sensor initialized.
[    4.993109] Initializing Armada-XP CPU power management  (WFI)
[    5.080694] fuse init (API version 7.17)
[    5.081079] SGI XFS with security attributes, large block/inode numbers, no debug enabled
[    5.081588] msgmni has been set to 481
[    5.082546] io scheduler noop registered
[    5.082557] io scheduler deadline registered
[    5.082624] io scheduler cfq registered (default)
[    5.082667] Initializing ths8200_init
[    5.082819] Initializing dove_adi9889_init
[    5.082988] mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
[    5.083036] mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
[    5.097961] mv_xor mv_xor.0: Marvell XOR: ( xor )
[    5.117956] mv_xor mv_xor.1: Marvell XOR: ( xor )
[    5.137957] mv_xor mv_xor.2: Marvell XOR: ( cpy )
[    5.157957] mv_xor mv_xor.3: Marvell XOR: ( fill cpy )
[    5.164740] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    5.165708] serial8250.0: ttyS0 at MMIO 0xd0012000 (irq = 41) is a 16550A
[    5.877847] console [ttyS0] enabled
[    5.882386] brd: module loaded
[    5.889813] loop: module loaded
[    5.894022] sata_mv sata_mv.0: slots 32 ports 2
[    5.900725] scsi0 : sata_mv
[    5.904064] scsi1 : sata_mv
[    5.907253] ata1: SATA max UDMA/133 irq 55
[    5.911394] ata2: SATA max UDMA/133 irq 55
[    5.920588] SPI Serial flash detected @ 0xf0000000, 1024KB (16sec x 64KB)
[    5.928984] armada-nand armada-nand.0: Initialize HAL based NFC in 8bit mode with DMA Disabled using BCH 4bit ECC
[    5.940335] index=10, flash-id=f1ad
[    5.944917] NAND device: Manufacturer ID: 0xad, Chip ID: 0xf1 (Hynix NAND 128MiB 3,3V 8-bit)
[    5.953615] Bad block table found at page 65472, version 0x01
[    5.959691] Bad block table found at page 65408, version 0x01
[    5.965913] Creating 3 MTD partitions on "armada-nand":
[    5.971179] 0x000000000000-0x000000800000 : "kernel"
[    5.977305] 0x000000800000-0x000000e00000 : "initrd"
[    5.983410] 0x000000e00000-0x000008000000 : "rootfs"
[    5.989827] mv_eth_probe: port_mask=0x1, cpu_mask=0x1 
[    5.995091] 0 - Base 0x00000000 , Size = 0x00000000.
[    6.000091] 4 - Base 0xf2000000 , Size = 0x00000000.
[    6.005072] 8 - Base 0xe0000000 , Size = 0x00000000.
[    6.010060] 9 - Base 0xf1100000 , Size = 0x00000000.
[    6.015040] 10 - Base 0xe2000000 , Size = 0x00000000.
[    6.020114] 11 - Base 0xf1200000 , Size = 0x00000000.
[    6.025182] 12 - Base 0xd0000000 , Size = 0x00000000.
[    6.030256] 14 - Base 0xf0000000 , Size = 0x00000000.
[    6.035324] 23 - Base 0xf5000000 , Size = 0x00000000.
[    6.040398] 25 - Base 0xc8010000 , Size = 0x00000000.
[    6.045471] mvBoardSerdesModeGet: serdesMode=9
[    6.049941]   o 1 Giga ports supported
[    6.053701]   o SKB recycle supported (Enabled)
[    6.058252]   o NETA acceleration mode 1
[    6.062186]   o RX Queue support: 1 Queues * 128 Descriptors
[    6.067864]   o TX Queue support: 1 Queues * 532 Descriptors
[    6.073549]   o GSO supported
[    6.076523]   o GRO supported
[    6.079503]   o Receive checksum offload supported
[    6.084309]   o Transmit checksum offload supported
[    6.089206]   o Driver ERROR statistics enabled
[    6.093749] 
[    6.095348]   o Loading network interface(s)
[    6.099651] 
[    6.101148]   o Port 0 is connected to Linux netdevice
[    6.106401] 	giga p=0: mtu=1500, mac=88029e54
[    6.114732]     o eth0, ifindex = 2, GbE port = 0
[    6.119490] 
[    6.121548] e100: Intel(R) PRO/100 Network Driver, 3.5.24-k2-NAPI
[    6.127663] e100: Copyright(c) 1999-2006 Intel Corporation
[    6.133354] e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
[    6.140443] e1000: Copyright (c) 1999-2006 Intel Corporation.
[    6.146372] e1000e: Intel(R) PRO/1000 Network Driver - 1.5.1-k
[    6.152236] e1000e: Copyright(c) 1999 - 2011 Intel Corporation.
[    6.158344] sky2: driver version 1.30
[    6.162179] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.168791] ehci_marvell ehci_marvell.1: Marvell Orion EHCI
[    6.174447] ehci_marvell ehci_marvell.1: new USB bus registered, assigned bus number 1
[    6.207952] ehci_marvell ehci_marvell.1: irq 46, io base 0xfbb51100
[    6.227936] ehci_marvell ehci_marvell.1: USB 2.0 started, EHCI 1.00
[    6.235013] hub 1-0:1.0: USB hub found
[    6.238812] hub 1-0:1.0: 1 port detected
[    6.243171] ehci_marvell ehci_marvell.0: Marvell Orion EHCI
[    6.248805] ehci_marvell ehci_marvell.0: new USB bus registered, assigned bus number 2
[    6.277952] ehci_marvell ehci_marvell.0: irq 45, io base 0xfbb50100
[    6.297936] ehci_marvell ehci_marvell.0: USB 2.0 started, EHCI 1.00
[    6.304957] hub 2-0:1.0: USB hub found
[    6.308750] hub 2-0:1.0: 1 port detected
[    6.313522] usbcore: registered new interface driver usblp
[    6.319043] Initializing USB Mass Storage driver...
[    6.324152] usbcore: registered new interface driver usb-storage
[    6.330191] USB Mass Storage support registered.
[    6.334983] usbcore: registered new interface driver usbtest
[    6.341191] mousedev: PS/2 mouse device common for all mice
[    6.346909] i2c /dev entries driver
[    6.351203] rtc-pcf8563 0-0051: chip found, driver version 0.4.3
[    6.358384] rtc-pcf8563 0-0051: low voltage detected, date/time is not reliable.
[    6.367203] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc0
[    6.373943] rtc-pcf8563 0-0051: get date/time...
[    6.379711] rtc-pcf8563 0-0051: low voltage detected, date/time is not reliable.
[    6.387132] reset pcf8563...
[    6.393155] rtc-pcf8563 0-0051: date/time invailid, reset to 2014/01/01...
[    6.402300] Linux telephony interface: v1.00
[    6.406594] md: linear personality registered for level -1
[    6.412114] md: raid0 personality registered for level 0
[    6.417443] md: raid1 personality registered for level 1
[    6.422781] md: raid10 personality registered for level 10
[    6.428581] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl F300)
[    6.435190] device-mapper: ioctl: 4.22.0-ioctl (2011-10-19) initialised: dm-devel@redhat.com
[    6.443818] cpuidle: using governor ladder
[    6.448418] cpuidle: using governor menu
[    6.453747] mmc0: mvsdio driver initialized, lacking card detect (fall back to polling)
[    6.462459] usbcore: registered new interface driver usbhid
[    6.468067] usbhid: USB HID core driver
[    6.472037] ata1.00: ATA-8: FUJITSU MHY2160BH, 0040020B, max UDMA/100
[    6.478520] ata1.00: 312581808 sectors, multi 16: LBA48 NCQ (depth 31/32)
[    6.485888] oprofile: no performance counters
[    6.490544] oprofile: using timer interrupt.
[    6.494919] pktgen: Packet Generator for packet performance testing. Version: 2.74
[    6.502909] TCP cubic registered
[    6.506286] NET: Registered protocol family 10
[    6.511301] IPv6 over IPv4 tunneling driver
[    6.516164] NET: Registered protocol family 17
[    6.520746] 8021q: 802.1Q VLAN Support v1.8
[    6.524959] VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 6
[    6.532817] ata1.00: configured for UDMA/100
[    6.537492] scsi 0:0:0:0: Direct-Access     ATA      FUJITSU MHY2160B 0040 PQ: 0 ANSI: 5
[    6.551593] UBI: attaching mtd3 to ubi0
[    6.555460] UBI: physical eraseblock size:   131072 bytes (128 KiB)
[    6.561768] UBI: logical eraseblock size:    126976 bytes
[    6.567184] UBI: smallest flash I/O unit:    2048
[    6.571916] UBI: VID header offset:          2048 (aligned 2048)
[    6.577948] UBI: data offset:                4096
[    6.582925] sd 0:0:0:0: [sda] 312581808 512-byte logical blocks: (160 GB/149 GiB)
[    6.590928] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    6.596916] sd 0:0:0:0: [sda] Write Protect is off
[    6.601934] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    6.677040]  sda: sda1 sda2 sda3 sda4
[    6.683879] sd 0:0:0:0: [sda] Attached SCSI disk
[    6.904474] UBI: max. sequence number:       188
[    6.914661] UBI: attached mtd3 to ubi0
[    6.918451] UBI: MTD device name:            "rootfs"
[    6.923520] UBI: MTD device size:            114 MiB
[    6.928507] UBI: number of good PEBs:        904
[    6.933139] UBI: number of bad PEBs:         8
[    6.937595] UBI: number of corrupted PEBs:   0
[    6.942059] UBI: max. allowed volumes:       128
[    6.946689] UBI: wear-leveling threshold:    4096
[    6.951413] UBI: number of internal volumes: 1
[    6.955870] UBI: number of user volumes:     1
[    6.960332] UBI: available PEBs:             0
[    6.964789] UBI: total number of reserved PEBs: 904
[    6.969687] UBI: number of PEBs reserved for bad PEB handling: 9
[    6.975713] UBI: max/mean erase counter: 5/3
[    6.980002] UBI: image sequence number:  580362013
[    6.984863] ata2: SATA link down (SStatus 0 SControl F300)
[    6.990436] UBI: background thread "ubi_bgt0d" started, PID 464
[    6.997383] rtc-pcf8563 0-0051: setting system clock to 2014-01-01 00:00:00 UTC (1388534400)
[    7.006118] md: Waiting for all devices to be available before autodetect
[    7.012945] md: If you don't use raid, use raid=noautodetect
[    7.019398] md: Autodetecting RAID arrays.
[    7.047070] md: invalid raid superblock magic on sda1
[    7.052160] md: sda1 does not have a valid v0.90 superblock, not importing!
[    7.072457] md: invalid raid superblock magic on sda3
[    7.077529] md: sda3 does not have a valid v0.90 superblock, not importing!
[    7.113632] md: invalid raid superblock magic on sda4
[    7.118720] md: sda4 does not have a valid v0.90 superblock, not importing!
[    7.125717] md: Scanned 3 and added 0 devices.
[    7.130183] md: autorun ...
[    7.132985] md: ... autorun DONE.
[    7.136468] RAMDISK: gzip image found at block 0
[    7.522585] VFS: Mounted root (ext2 filesystem) on device 1:0.

Start InitRD
mount: can't find /dev/ram0 in /etc/mtab
mount: can't find /dev/ram0 in /etc/mtab
rootfs / rootfs rw 0 0
/dev/root.old / ext2 rw,relatime,errors=continue 0 0
none /proc proc rw,relatime 0 0
/sys /sys sysfs rw,relatime 0 0
HddBoot=No
[    7.606458] UBI: mtd3 is detached from ubi0
[    7.621422] UBI: attaching mtd3 to ubi0
[    7.625282] UBI: physical eraseblock size:   131072 bytes (128 KiB)
[    7.631610] UBI: logical eraseblock size:    126976 bytes
[    7.637026] UBI: smallest flash I/O unit:    2048
[    7.641755] UBI: VID header offset:          2048 (aligned 2048)
[    7.647780] UBI: data offset:                4096
[    8.053455] UBI: max. sequence number:       188
[    8.071616] UBI: attached mtd3 to ubi0
[    8.075386] UBI: MTD device name:            "rootfs"
[    8.080484] UBI: MTD device size:            114 MiB
[    8.085464] UBI: number of good PEBs:        904
[    8.090102] UBI: number of bad PEBs:         8
[    8.094559] UBI: number of corrupted PEBs:   0
[    8.099022] UBI: max. allowed volumes:       128
[    8.103653] UBI: wear-leveling threshold:    4096
[    8.108378] UBI: number of internal volumes: 1
[    8.112835] UBI: number of user volumes:     1
[    8.117291] UBI: available PEBs:             0
[    8.121756] UBI: total number of reserved PEBs: 904
[    8.126649] UBI: number of PEBs reserved for bad PEB handling: 9
[    8.132681] UBI: max/mean erase counter: 5/3
[    8.136964] UBI: image sequence number:  580362013
[    8.141790] UBI: background thread "ubi_bgt0d" started, PID 522
UBI device number 0, total 904 LEBs (114786304 bytes, 109.5 MiB), available 0 LEBs (0 bytes), LEB size 126976 bytes (124.0 KiB)
[    8.315216] UBIFS: recovery needed
[    8.356728] UBIFS: recovery deferred
[    8.360365] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[    8.366389] UBIFS: mounted read-only
[    8.369987] UBIFS: file system size:   111738880 bytes (109120 KiB, 106 MiB, 880 LEBs)
[    8.377939] UBIFS: journal size:       9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
[    8.385273] UBIFS: media format:       w4/r0 (latest is w4/r0)
[    8.391130] UBIFS: default compressor: lzo
[    8.395239] UBIFS: reserved for root:  0 bytes (0 KiB)
bin      etc      initrd   linuxrc  opt      root     share    system   usr
dev      home     lib      mnt      proc     sbin     sys      tmp      var
sys_uuid=f1692976:7d0b440e:5e36192b:b1ce91bd
[    8.508420] UBIFS: un-mount UBI device 0, volume 0
skip!! sdb1 is not existed 
SysList=/dev/sda1 
[    8.651842] md: md0 stopped.
[    8.661572] md: bind<sda1>
[    8.676590] bio: create slab <bio-1> at 1
[    8.684640] md/raid1:md0: active with 1 out of 2 mirrors
[    8.690098] md0: detected capacity change from 0 to 209702912
mdadm: /dev/md0 has been started with 1 drive (out of 2).
e2fsck 1.42.6 (21-Sep-2012)
[    9.750314]  md0: unknown partition table
Superblock last write time (Sun Oct  2 11:18:59 2016,
	now = Wed Jan  1 00:00:03 2014) is in the future.
Fix? yes

Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

         191 inodes used (0.37%, out of 51200)
           1 non-contiguous file (0.5%)
           1 non-contiguous directory (0.5%)
             # of inodes with ind/dind/tind blocks: 5/0/0
        8367 blocks used (4.09%, out of 204788)
           0 bad blocks
           0 large files

         157 regular files
          21 directories
           0 character device files
           0 block device files
           0 fifos
           0 links
           4 symbolic links (4 fast symbolic links)
           0 sockets
------------
         182 files
mount /dev/md0  /mnt/sda1
End of InitRD -- transfer to /sbin/init
[   11.232353] UBIFS: recovery needed
[   11.278756] UBIFS: recovery completed
[   11.282443] UBIFS: mounted UBI device 0, volume 0, name "rootfs"
[   11.288483] UBIFS: file system size:   111738880 bytes (109120 KiB, 106 MiB, 880 LEBs)
[   11.296427] UBIFS: journal size:       9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
[   11.303768] UBIFS: media format:       w4/r0 (latest is w4/r0)
[   11.309630] UBIFS: default compressor: lzo
[   11.313740] UBIFS: reserved for root:  0 bytes (0 KiB)
[   11.319760] VFS: Mounted root (ubifs filesystem) on device 0:13.
[   11.326115] Freeing init memory: 168K
Mounting proc filesystem...
Mount RAMDisk to initrd for run-time usage...
HardDiskBootUp=No
Boot up from flash
1 disk is found...
booting by normal...
swap_uuid=2a2f8d33:b700f80d:78033241:11bab038
skip!! sdb3 is not existed 
swapList=/dev/sda3 
[   12.079927] md: md3 stopped.
[   12.094109] md: bind<sda3>
[   12.123569] md/raid1:md3: active with 1 out of 2 mirrors
[   12.129027] md3: detected capacity change from 0 to 1073729536
mdadm: /dev/md3 has been started with 1 drive (out of 2).
Activating swap partitions...
[   12.625894]  md3: unknown partition table
[   12.630527] Adding 1048560k swap on /dev/md3.  Priority:-1 extents:1 across:1048560k 
[   12.679139] eth0: mac address changed
libiconv.so.2 already existed.
libid3tag.so.0 already existed.
0/tmp is existed, check it...
change owner of smb.conf ...
Set System Info......
xfs
usbfs on /proc/bus/usb type usbfs (0)
/dev/ram0 on /initrd type ext2 (0)
/dev/md0 on /system type ext2 (0)
[   14.157717] XFS (sda4): Mounting Filesystem
[   14.414159] XFS (sda4): Ending clean mount
0Do not umount share partition
usbfs on /proc/bus/usb type usbfs (0)
/dev/ram0 on /initrd type ext2 (0)
/dev/md0 on /system type ext2 (0)
/dev/sda4 on /share/atonnas type xfs (inode64)
/usr/bin/gpio_handler: invalid option -- 'q'
0[   18.627749] rtc-pcf8563 0-0051: enabled = 0...
[   18.632238] rtc-pcf8563 0-0051: Clear AF bit and AIE bit...
0Starting crond...
crond[1254]: crond: crond (busybox 1.20.2) started, log level 8
 * Generating Hosts File... 				 [ OK ] 
 * Configuring System Hostname... 			 [ OK ]  
 * Configuring LAN interface... [   19.359928] pool #0: pkt_size=1536, buf_size=1632 - 256 of 256 buffers added
[   19.367120] eth0: started
[   19.370118] ADDRCONF(NETDEV_UP): eth0: link is not ready


I've had a look at all the mainline Linux 370 dts and frustratingly there are no other mainlined devices with 256meg of ram. Either devices like this are very rare or there's something unique required to make a 256meg device work.

Attached is an alternate OpenWRT kernel for an A370 reference board. Worth trying as it is smaller than a full initramfs image.

However I expect you will need to jump straight to creating your own dts specifying the correct memory size.

If you look at how the Linux kernel is setting up the memory on your box compared to the KD22 there are some differences in the vmalloc and modules, though I do not know whether that's important!

Marvel A370-RD uImage

I think so, fixing the DTS and build the new image is something what I would like to try first!

Thanks. Your uImage doesn't boot either. However, the 'special' bohdi kernel combined with the Mirabox dtb file, boots. Bootlog appended.
Interesting is that the kernel knows the memory size:

[    0.000000][    T0] Memory: 242556K/262144K available (10240K kernel code, 1479K rwdata, 3000K rodata, 1024K init, 362K bss, 19588K reserved, 0K cma-reserved, 0K highmem)

while the Mirabox has 1GiB. So I'll have to find out what is special about this kernel (or simply use bohdi's), and find out if I can adapt the Mirabox dtb to match the KS10.

Shuttle>> tftpboot uImage.bohdi
Using egiga0 device
TFTP from server 192.168.1.2; our IP address is 192.168.1.1
Filename 'uImage.bohdi'.
Load address: 0x2000000
Loading: *#################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################################################################
	 #################
done
Bytes transferred = 5019537 (4c9791 hex)
Shuttle>> bootm
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-5.10.7-mvebu-370xp-tld-1
   Created:      2022-01-09  16:07:31 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5019473 Bytes =  4.8 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.10.7-mvebu-370xp-tld-1 (root@tldDebianVM) (arm-linux-gnueabihf-gcc (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) 7.5.0, GNU ld (GNU Binutils for Ubuntu) 2.30) #1.0 PREEMPT Sat Jan 30 15:22:18 PST 2021
[    0.000000][    T0] CPU: ARMv7 Processor [561f5811] revision 1 (ARMv7), cr=10c5387d
[    0.000000][    T0] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Globalscale Mirabox
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0]   HighMem  empty
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[    0.000000][    T0] CPU: All CPU(s) started in SVC mode.
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 65024
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=ubi0:rootfs ubi.mtd=3,2048 initrd=0x12000000 rootfstype=ubifs
[    0.000000][    T0] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 242556K/262144K available (10240K kernel code, 1479K rwdata, 3000K rodata, 1024K init, 362K bss, 19588K reserved, 0K cma-reserved, 0K highmem)
[    0.000000][    T0] random: get_random_u32 called from ____cache_alloc+0x2ec/0x790 with crng_init=0
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] 	Trampoline variant of Tasks RCU enabled.
[    0.000000][    T0] 	Tracing variant of Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] L2C: DT/platform modifies aux control register: 0x12086302 -> 0x1a086302
[    0.000000][    T0] Aurora cache controller enabled, 4 ways, 256 kB
[    0.000000][    T0] Aurora: CACHE_ID 0x00000100, AUX_CTRL 0x1a086302
[    0.000000][    T0] Switching to timer-based delay loop, resolution 60ns
[    0.000008][    T0] sched_clock: 32 bits at 16MHz, resolution 60ns, wraps every 129195984865ns
[    0.000035][    T0] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 114984426661 ns
[    0.000967][    T0] Console: colour dummy device 80x30
[    0.001016][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 33.24 BogoMIPS (lpj=166219)
[    0.001042][    T0] pid_max: default: 32768 minimum: 301
[    0.001360][    T0] LSM: Security Framework initializing
[    0.001479][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001503][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.002614][    T0] CPU: Testing write buffer coherency: ok
[    0.003559][    T1] Setting up static identity map for 0x100000 - 0x100060
[    0.003996][    T1] mvebu-soc-id: MVEBU SoC ID=0x6707, Rev=0x1
[    0.004146][    T1] mvebu-pmsu: Initializing Power Management Service Unit
[    0.004331][    T1] rcu: Hierarchical SRCU implementation.
[    0.005426][    T1] devtmpfs: initialized
[    0.010254][    T1] VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 6
[    0.011427][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.011463][    T1] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.047828][    T1] prandom32: self test passed (less than 6 bits correlated)
[    0.047857][    T1] prandom: seed boundary self test passed
[    0.051914][    T1] prandom: 100 self tests passed
[    0.051930][    T1] pinctrl core: initialized pinctrl subsystem
[    0.054047][    T1] NET: Registered protocol family 16
[    0.054809][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.055701][    T1] audit: initializing netlink subsys (disabled)
[    0.057795][   T27] audit: type=2000 audit(0.050:1): state=initialized audit_enabled=0 res=1
[    0.059985][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.060277][    T1] cpuidle: using governor ladder
[    0.060331][    T1] cpuidle: using governor menu
[    0.060568][    T1] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.060691][    T1] mvebu-pmsu: CPU idle is currently broken: disabling
[    0.371161][    T1] raid6: int32x8  gen()   142 MB/s
[    0.540617][    T1] raid6: int32x8  xor()    90 MB/s
[    0.710272][    T1] raid6: int32x4  gen()   149 MB/s
[    0.880275][    T1] raid6: int32x4  xor()   100 MB/s
[    1.050157][    T1] raid6: int32x2  gen()   275 MB/s
[    1.220148][    T1] raid6: int32x2  xor()   144 MB/s
[    1.390095][    T1] raid6: int32x1  gen()   286 MB/s
[    1.560172][    T1] raid6: int32x1  xor()   133 MB/s
[    1.560187][    T1] raid6: using algorithm int32x1 gen() 286 MB/s
[    1.560199][    T1] raid6: .... xor() 133 MB/s, rmw enabled
[    1.560212][    T1] raid6: using intx1 recovery algorithm
[    1.561483][    T1] vgaarb: loaded
[    1.562468][    T1] SCSI subsystem initialized
[    1.565527][    T1] usbcore: registered new interface driver usbfs
[    1.565719][    T1] usbcore: registered new interface driver hub
[    1.565873][    T1] usbcore: registered new device driver usb
[    1.566853][    T1] mc: Linux media interface: v0.10
[    1.567012][    T1] videodev: Linux video capture interface: v2.00
[    1.567541][    T1] pps_core: LinuxPPS API ver. 1 registered
[    1.567560][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.567674][    T1] PTP clock support registered
[    1.576707][    T1] clocksource: Switched to clocksource armada_370_xp_clocksource
[    3.107642][    T1] VFS: Disk quotas dquot_6.6.0
[    3.107748][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    3.143867][    T1] NET: Registered protocol family 2
[    3.146337][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    3.146382][    T1] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    3.146427][    T1] TCP bind hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    3.146458][    T1] TCP: Hash tables configured (established 2048 bind 2048)
[    3.146689][    T1] MPTCP token hash table entries: 512 (order: 0, 6144 bytes, linear)
[    3.147435][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    3.147467][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    3.147712][    T1] NET: Registered protocol family 1
[    3.148446][    T1] RPC: Registered named UNIX socket transport module.
[    3.148468][    T1] RPC: Registered udp transport module.
[    3.148481][    T1] RPC: Registered tcp transport module.
[    3.148493][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    3.148513][    T1] PCI: CLS 0 bytes, default 64
[    3.149049][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    3.149288][    T1] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    3.152209][    T1] Initialise system trusted keyrings
[    3.152278][    T1] Key type blacklist registered
[    3.155033][    T1] workingset: timestamp_bits=30 max_order=16 bucket_order=0
[    3.155159][    T1] zbud: loaded
[    3.157107][    T1] NFS: Registering the id_resolver key type
[    3.157153][    T1] Key type id_resolver registered
[    3.157168][    T1] Key type id_legacy registered
[    3.157216][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    3.157240][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    3.269361][    T1] xor: measuring software checksum speed
[    3.282336][    T1]    arm4regs        :   764 MB/sec
[    3.303721][    T1]    8regs           :   461 MB/sec
[    3.317070][    T1]    32regs          :   740 MB/sec
[    3.317087][    T1] xor: using function: arm4regs (764 MB/sec)
[    3.317108][    T1] async_tx: api initialized (async)
[    3.317129][    T1] Key type asymmetric registered
[    3.317144][    T1] Asymmetric key parser 'x509' registered
[    3.317329][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[    3.317484][    T1] io scheduler bfq registered
[    3.320356][    T1] armada-370-pinctrl d0018000.pin-ctrl: registered pinctrl driver
[    3.330569][    T1] mvebu-pcie soc:pcie@82000000: host bridge /soc/pcie@82000000 ranges:
[    3.330653][    T1] mvebu-pcie soc:pcie@82000000:      MEM 0x00d0040000..0x00d0041fff -> 0x0000040000
[    3.330697][    T1] mvebu-pcie soc:pcie@82000000:      MEM 0x00d0080000..0x00d0081fff -> 0x0000080000
[    3.330741][    T1] mvebu-pcie soc:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    3.330779][    T1] mvebu-pcie soc:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    3.330817][    T1] mvebu-pcie soc:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    3.330846][    T1] mvebu-pcie soc:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    3.334028][    T1] mvebu-pcie soc:pcie@82000000: PCI host bridge to bus 0000:00
[    3.334064][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[    3.334086][    T1] pci_bus 0000:00: root bus resource [mem 0xd0040000-0xd0041fff] (bus address [0x00040000-0x00041fff])
[    3.334107][    T1] pci_bus 0000:00: root bus resource [mem 0xd0080000-0xd0081fff] (bus address [0x00080000-0x00081fff])
[    3.334124][    T1] pci_bus 0000:00: root bus resource [mem 0xf8000000-0xffdfffff]
[    3.334140][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    3.334292][    T1] pci 0000:00:01.0: [11ab:6707] type 01 class 0x060400
[    3.334331][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    3.335507][    T1] pci 0000:00:02.0: [11ab:6710] type 01 class 0x060400
[    3.335553][    T1] pci 0000:00:02.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    3.337604][    T1] PCI: bus0: Fast back to back transfers disabled
[    3.337642][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    3.337679][    T1] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    3.338692][    T1] pci 0000:01:00.0: [10ec:8176] type 00 class 0x028000
[    3.338739][    T1] pci 0000:01:00.0: reg 0x10: [io  0xffffff00-0xffffffff]
[    3.338780][    T1] pci 0000:01:00.0: reg 0x18: [mem 0x40000000-0x40003fff 64bit]
[    3.338944][    T1] pci 0000:01:00.0: supports D1 D2
[    3.338962][    T1] pci 0000:01:00.0: PME# supported from D0 D1 D2 D3hot D3cold
[    3.368035][    T1] PCI: bus1: Fast back to back transfers enabled
[    3.368075][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    3.369668][    T1] PCI: bus2: Fast back to back transfers enabled
[    3.369701][    T1] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    3.369800][    T1] pci 0000:00:01.0: BAR 14: assigned [mem 0xf8000000-0xf80fffff]
[    3.369822][    T1] pci 0000:00:01.0: BAR 13: assigned [io  0x10000-0x10fff]
[    3.369843][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xf8100000-0xf81007ff pref]
[    3.369865][    T1] pci 0000:00:02.0: BAR 6: assigned [mem 0xf8200000-0xf82007ff pref]
[    3.369889][    T1] pci 0000:01:00.0: BAR 2: assigned [mem 0xf8000000-0xf8003fff 64bit]
[    3.369911][    T1] pci 0000:01:00.0: BAR 2: error updating (0xf8000004 != 0xffffffff)
[    3.369929][    T1] pci 0000:01:00.0: BAR 2: error updating (high 0x000000 != 0xffffffff)
[    3.369947][    T1] pci 0000:01:00.0: BAR 0: assigned [io  0x10000-0x100ff]
[    3.369965][    T1] pci 0000:01:00.0: BAR 0: error updating (0x010001 != 0xffffffff)
[    3.369982][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[    3.370000][    T1] pci 0000:00:01.0:   bridge window [io  0x10000-0x10fff]
[    3.370020][    T1] pci 0000:00:01.0:   bridge window [mem 0xf8000000-0xf80fffff]
[    3.370041][    T1] pci 0000:00:02.0: PCI bridge to [bus 02]
[    3.370184][    T1] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[    3.371891][    T1] mv_xor d0060800.xor: Marvell shared XOR driver
[    3.428099][    T1] mv_xor d0060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    3.431455][    T1] mv_xor d0060900.xor: Marvell shared XOR driver
[    3.488095][    T1] mv_xor d0060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    3.725930][    T1] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    3.731509][    T1] printk: console [ttyS0] disabled
[    3.754643][    T1] d0012000.serial: ttyS0 at MMIO 0xd0012000 (irq = 20, base_baud = 12500000) is a 16550A
[    4.923277][    T1] printk: console [ttyS0] enabled
[    4.935403][    T1] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    4.942591][    T1] nand: Hynix H27U1G8F2BTR-BC
[    4.947252][    T1] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    4.956307][    T1] Bad block table found at page 65472, version 0x01
[    4.964119][    T1] Bad block table found at page 65408, version 0x01
[    4.971225][    T1] nand_bbt: ECC error in BBT at 0x000007fe0000
[    4.977881][    T1] nand_bbt: ECC error in BBT at 0x000007fc0000
[    4.983924][    T1] Scanning device for bad blocks
[    5.536368][    T1] Bad block table written to 0x000007fe0000, version 0x01
[    5.544643][    T1] Bad block table written to 0x000007fc0000, version 0x01
[    5.551731][    T1] 3 fixed-partitions partitions found on MTD device pxa3xx_nand-0
[    5.559457][    T1] Creating 3 MTD partitions on "pxa3xx_nand-0":
[    5.565592][    T1] 0x000000000000-0x000000400000 : "U-Boot"
[    5.573505][    T1] 0x000000400000-0x000000800000 : "Linux"
[    5.582359][    T1] 0x000000800000-0x000040000000 : "Filesystem"
[    5.589470][    T1] mtd: partition "Filesystem" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x7800000
[    5.605044][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    5.615887][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    5.629677][    T1] libphy: Fixed MDIO Bus: probed
[    5.642050][    T1] libphy: orion_mdio_bus: probed
[    5.651934][    T1] mdio_bus d0072004.mdio-mii: MDIO device at address 1 is missing.
[    5.664579][    T1] mvneta d0070000.ethernet eth0: Using hardware mac address 00:50:43:51:09:09
[    5.679553][    T1] mvneta d0074000.ethernet eth1: Using random mac address 0e:1d:15:00:f8:83
[    5.691558][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.700355][    T1] ehci-pci: EHCI PCI platform driver
[    5.705754][    T1] ehci-orion: EHCI orion driver
[    5.711203][    T1] orion-ehci d0050000.usb: EHCI Host Controller
[    5.717633][    T1] orion-ehci d0050000.usb: new USB bus registered, assigned bus number 1
[    5.726100][    T1] orion-ehci d0050000.usb: irq 26, io mem 0xd0050000
[    5.756740][    T1] orion-ehci d0050000.usb: USB 2.0 started, EHCI 1.00
[    5.763678][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[    5.772730][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.780711][    T1] usb usb1: Product: EHCI Host Controller
[    5.786318][    T1] usb usb1: Manufacturer: Linux 5.10.7-mvebu-370xp-tld-1 ehci_hcd
[    5.794033][    T1] usb usb1: SerialNumber: d0050000.usb
[    5.800389][    T1] hub 1-0:1.0: USB hub found
[    5.805419][    T1] hub 1-0:1.0: 1 port detected
[    5.811171][    T1] orion-ehci d0051000.usb: EHCI Host Controller
[    5.818128][    T1] orion-ehci d0051000.usb: new USB bus registered, assigned bus number 2
[    5.826603][    T1] orion-ehci d0051000.usb: irq 27, io mem 0xd0051000
[    5.856742][    T1] orion-ehci d0051000.usb: USB 2.0 started, EHCI 1.00
[    5.863693][    T1] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.10
[    5.872759][    T1] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.880752][    T1] usb usb2: Product: EHCI Host Controller
[    5.886361][    T1] usb usb2: Manufacturer: Linux 5.10.7-mvebu-370xp-tld-1 ehci_hcd
[    5.894078][    T1] usb usb2: SerialNumber: d0051000.usb
[    5.900397][    T1] hub 2-0:1.0: USB hub found
[    5.905411][    T1] hub 2-0:1.0: 1 port detected
[    5.912036][    T1] usbcore: registered new interface driver usblp
[    5.920644][    T1] usbcore: registered new interface driver usb-storage
[    5.928510][    T1] mousedev: PS/2 mouse device common for all mice
[    6.966735][    T1] rtc-mv d0010300.rtc: internal RTC not ticking
[    6.973503][    T1] i2c /dev entries driver
[    6.979895][    T1] pca953x 0-0025: supply vcc not found, using dummy regulator
[    6.988470][    T1] pca953x 0-0025: using AI
[    6.993083][    T1] pca953x 0-0025: failed writing register
[    7.028349][    T1] orion_wdt: Initial timeout 258 sec
[    7.035896][    T1] device-mapper: uevent: version 1.0.3
[    7.042053][    T1] device-mapper: ioctl: 4.43.0-ioctl (2020-10-01) initialised: dm-devel@redhat.com
[    7.051969][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    7.059459][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    7.066897][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    7.074304][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    7.081195][    T1] device-mapper: raid: Loading target version 1.15.1
[    7.094094][    T1] marvell-cesa d0090000.crypto: CESA device successfully registered
[    7.102845][    T1] hid: raw HID events driver (C) Jiri Kosina
[    7.110594][    T1] usbcore: registered new interface driver usbhid
[    7.117962][    T1] usbhid: USB HID core driver
[    7.123169][    T1] drop_monitor: Initializing network drop monitor service
[    7.131514][    T1] NET: Registered protocol family 10
[    7.138422][    T1] Segment Routing with IPv6
[    7.142818][    T1] RPL Segment Routing with IPv6
[    7.147839][    T1] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    7.156539][    T1] NET: Registered protocol family 17
[    7.162872][    T1] 8021q: 802.1Q VLAN Support v1.8
[    7.167946][    T1] Key type dns_resolver registered
[    7.173182][    T1] ThumbEE CPU extension supported.
[    7.178281][    T1] Registering SWP/SWPB emulation handler
[    7.184233][    T1] registered taskstats version 1
[    7.189452][    T1] Loading compiled-in X.509 certificates
[    7.195096][    T1] zswap: loaded using pool lzo/zbud
[    7.200675][    T1] Key type ._fscrypt registered
[    7.205418][    T1] Key type .fscrypt registered
[    7.210171][    T1] Key type fscrypt-provisioning registered
[    7.217759][    T1] Key type big_key registered
[    7.223403][    T1] Key type encrypted registered
[    7.231225][    T1] UBI error: cannot open mtd 3, error -19
[    7.238481][    T1] md: Waiting for all devices to be available before autodetect
[    7.246014][    T1] md: If you don't use raid, use raid=noautodetect
[    7.252821][    T1] md: Autodetecting RAID arrays.
[    7.257827][    T1] md: autorun ...
[    7.261343][    T1] md: ... autorun DONE.
[    7.265462][    T1] VFS: Cannot open root device "ubi0:rootfs" or unknown-block(0,0): error -19
[    7.274277][    T1] Please append a correct "root=" boot option; here are the available partitions:
[    7.283430][    T1] 1f00            4096 mtdblock0 
[    7.283436][    T1]  (driver?)
[    7.291479][    T1] 1f01            4096 mtdblock1 
[    7.291485][    T1]  (driver?)
[    7.299513][    T1] 1f02          122880 mtdblock2 
[    7.299518][    T1]  (driver?)
[    7.307522][    T1] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    7.316534][    T1] CPU: 0 PID: 1 Comm: swapper Not tainted 5.10.7-mvebu-370xp-tld-1 #1.0
[    7.324754][    T1] Hardware name: Marvell Armada 370/XP (Device Tree)
[    7.331347][    T1] [<c0113940>] (unwind_backtrace) from [<c0110000>] (show_stack+0x10/0x14)
[    7.339844][    T1] [<c0110000>] (show_stack) from [<c0acc4e8>] (panic+0xf8/0x304)
[    7.347470][    T1] [<c0acc4e8>] (panic) from [<c0f0197c>] (mount_block_root+0x198/0x238)
[    7.355702][    T1] [<c0f0197c>] (mount_block_root) from [<c0f01bc0>] (prepare_namespace+0x88/0x180)
[    7.364892][    T1] [<c0f01bc0>] (prepare_namespace) from [<c0f014f0>] (kernel_init_freeable+0x16c/0x1e8)
[    7.374515][    T1] [<c0f014f0>] (kernel_init_freeable) from [<c0ad2b10>] (kernel_init+0x8/0x118)
[    7.383441][    T1] [<c0ad2b10>] (kernel_init) from [<c0100148>] (ret_from_fork+0x14/0x2c)
[    7.391749][    T1] Exception stack(0xc1891fb0 to 0xc1891ff8)
[    7.397531][    T1] 1fa0:                                     00000000 00000000 00000000 00000000
[    7.406454][    T1] 1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    7.415375][    T1] 1fe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    7.422734][    T1] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---

/Edit:
I compared the config files of the 'normal' bohdi kernel and the 'special' one, and apart from some multicore stuff, and 'not set' in one, and not mentioned at all in the other, this might be the most striking difference:

-CONFIG_DEBUG_UART_PHYS=0xd0012000
-CONFIG_DEBUG_UART_VIRT=0xfec12000
+CONFIG_DEBUG_UART_PHYS=0xf1012000
+CONFIG_DEBUG_UART_VIRT=0xfed12000

Obviously if this is the difference there is no serial out (although I thought that the earlyprintk used u-boot function pointers to log), and it will probably crash. Or are these the u-boot function pointers? Google doesn't come with much information about these config values.

Hi, that appears to be how he’s stopping Linux from conflicting with the a370 uboot uart config and memory ranges.
If adding it to openwrt gets the kernel to boot then that’ll be a win.