Welcome! Log In Create A New Profile

Advanced

Promise Apollo Cloud - Armada 385

Posted by ztof 
Promise Apollo Cloud - Armada 385
December 05, 2022 04:52AM
Hello,

I've found this device Promise Apollo Cloud on a flea market. It's based on Armada 385 and features a good Toshiba 4To surveillance serie HDD. It has 2 USB3 ports, a Gigabit Ethernet port, 1 GB of RAM, 128 MB of Nand.
It is not really a NAS... but a kind of strange stuff. A NAS-like box that you can access anywhere remotely, with a centralized connection. But you cannot use it without a propietary application (Win, Mac, IOS, Android. But not linux). Your must register an account on the vendor website in order to claim and use your device.

It has many design flaws, in my POV:
- When on market in 2016, the underlying OS was Ubuntu 12.04 (from 2012, already 4 years obsolete). There were no upgrade of the OS from vendor since then.
- Files backuped from the application are stored as MongoDB blobs, so everything is so slow. Deleting just 1000 picture from the app takes so long... Imagine, I had to delete 230Go of files (from previous user) that way.
- There is no safe shutdown button, nor any command for it from the application. The only shutdown option is to remove the power plug. A big slap on HDD heads! For safetyness for my experimentations, I've removed the precious 4To HDD and copied its content to a 500Go 2.5" HDD, salvaged from an old set-top-box.
- If your internet connection falls, you cannot even access it from your own LAN! As it needs a central authentication.
- Many many layers of software to achieve things (mongo blob storage, mysql, nginx-php but also django-python web server). So it adds slowlyness. My old synology DS214SE with older Armada CPU looks like runinng on an Intel Core i5 compared to this...
- It has a SSH root access only at the disposal of the vendor. And it calls vendor's home constantly.

I see it more like a black-box inside my LAN, a puppet from the vendor, with an old and proabably unsecure OS on it (Ubuntu 12.04 with 3.10 Linux kernel).

The first thing I have done was to open that device, and check the MAC address label, then set a rule in my router's firewall to prevent any access for this box to or from the outside world. It usually a thing I do for any new unknown connected device.
Second thing was to remove the HDD, then put it in a USB3-HDD box. Inside there is a whole Linux system, so I was able to inspect many files from /etc /var/log/, etc...

It boots from HDD, but there is an inspection made by some scripts from the NAND. For instance the /etc folder is completly erased and replaced by a content from the nand at each boot. So it has defetead my attempts to access SSh by modifying /etc/passwd and /etc/shadow or by adding authorized_keys for root.
It can handle a completely formated HDD (ext3 partition). If so the complete root fileysytem is extrated from a tar.gz file.
There are also some folders from Nand mounted and some script launched a boot that verify integrity of some files or folder. So if you touch some stuff on the HDD, it sets itself into recovery/unclaimed device and you cannot access the device (and your data) anymore from the Promise's cloud application. I experienced that by deleting image folders from previous owner. You have to register or reclaim it from vendor's web/application with serial numbers and key (printed on the device).

Files like kern.log, dmesg, syslog... tells me it's an Marvell Armada 385. After a quick search on the interweb I've found this forum and read some topics about devices using that architecture.

So I've found a connection ports with 4 pins with 3.3V on some pins. I've identified the serial pins with a multimeter, thanks to this method found on https://book.hacktricks.xyz/todo/hardware-hacking/uart

Identifying UART Ports
UART has 4 ports: TX(Transmit), RX(Receive), Vcc(Voltage), and GND(Ground). You might be able to find 4 ports with the TX and RX letters written in the PCB. But if there is no indication, you might need to try to find them yourself using a multimeter or a logic analyzer.

With a multimeter and the device powered off:
- To identify the GND pin use the Continuity Test mode, place the back lead into ground and test with the red one until you hear a sound from the multimeter. Several GND pins can be found the PCB, so you might have found or not the one belonging to UART.
- To identify the VCC port, set the DC voltage mode and set it up to 20 V of voltage. Black probe on ground and red probe on the pin. Power on the device. If the multimeter measures a constant voltage of either 3.3 V or 5 V, you’ve found the Vcc pin. If you get other voltages, retry with other ports.
- To identify the TX port, DC voltage mode up to 20 V of voltage, black probe on ground, and red probe on the pin, and power on the device. If you find the voltage fluctuates for a few seconds and then stabilizes at the Vcc value, you’ve most likely found the TX port. This is because when powering on, it sends some debug data.
- The RX port would be the closest one to the other 3, it has the lowest voltage fluctuation and lowest overall value of all the UART pins.

You can confuse the TX and RX ports and nothing would happen, but if you confuses the GND and the VCC port you might fry the circuit.


from top of the board it's:
+----+----+-----+----+
|3.3V| RX | GND | TX |
+----+----+-----+----+

So now I've got a serial console to it. And with that come more information:

- the complete uboot and linux startup from nand only
- the complete uboot and linux startup from nand + HDD
- printenv

Printenv seems to tell that the device could boot from USB, HDD, tftp, NFS. But I'm not sure and need confirmation from you.

There is a serverip=30.0.0.121 set in printenv, and I don't like like that. 30.0.0.121 belongs to DoD Network Information Center... May be I wrong as it does not ping nor ends up traceroute, and they just set a dummy IP?


My objective would be to repurpose that device with a proper Debian installation.
So I need some help and direction, as I'm a complete newbie about uboot.

- How to backup content from Nand ?
- Which DTS file to use ?
- What is the proper method to install Debian on it? Ideally I would prefer to boot from HDD or USB (second choice). As I'm using Ubuntu I can set up a tftp server or a NFS share. I've read topic about devices with Marvell Armada, but it seems that some uboot modifications or DTS, even some methods are very specific to each device.
Thanks in advance.

Uboot and Linux start-up from Nand (no HDD attached:
BootROM: Image checksum verification PASSED

 __   __                      _ _
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ V /  __/ | |
|_|  |_|\__,_|_|    \_/ \___|_|_|
         _   _     ____              _
        | | | |   | __ )  ___   ___ | |_ 
        | | | |___|  _ \ / _ \ / _ \| __| 
        | |_| |___| |_) | (_) | (_) | |_ 
         \___/    |____/ \___/ \___/ \__| 
 ** LOADER **


U-Boot 2013.01 (Apr 03 2018 - 10:46:04) Marvell version: 2015_T1.0p5

Board: A38x-Customer-Board-0
SoC:   MV88F6810 Rev A0
       running 1 CPUs
CPU:   ARM Cortex A9 MPCore (Rev 1) LE
       CPU 0
       CPU    @ 1066 [MHz]
       L2     @ 533 [MHz]
       TClock @ 250 [MHz]
       DDR    @ 533 [MHz]
       DDR 32 Bit Width, FastPath Memory Access, DLB Enabled, ECC Disabled
DRAM:  1 GiB
NAND:  128 MiB
MMC:   mv_sdh: 0
SF: Detected W25Q16 with page size 4 KiB, total 2 MiB
USB2.0 0: Host Mode
USB3.0 0: Host Mode
USB3.0 1: Host Mode

Map:   Code:                    0x3fec0000:0x3ff95dc0
       BSS:                     0x3ffef7dc
       Stack:                   0x3f9aff20
       Heap:                    0x3f9b0000:0x3fec0000
       U-Boot Environment:      0x00100000:0x00110000 (SPI)

Board configuration detected:
Net:   
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   RGMII   |   In-Band    |
| egiga1 |   SGMII   |     0x01     |
egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  2 d
 0 

Reset SCSI
AHCI init for unit0
SATA link 0 timeout.
SATA link 1 timeout.

Error: SCSI Controller(s) 1B4B:9215 1B4B:9235 not found
scanning bus for devices...
Found 0 device(s).
(Re)start USB...
USB0:   Port (usbActive) : 0    Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
USB1:   Port (usbActive) : 0    Interface (usbType = 3) : 
Only one active controller supported! Skipping USB1 initialization.
lowlevel init failed
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
Creating 1 MTD partitions on "nand0":
0x000000000000-0x000008000000 : "mtd=0"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    126976 bytes
UBI: smallest flash I/O unit:    2048
UBI: VID header offset:          2048 (aligned 2048)
UBI: data offset:                4096
UBI: attached mtd1 to ubi0
UBI: MTD device name:            "mtd=0"
UBI: MTD device size:            128 MiB
UBI: number of good PEBs:        1016
UBI: number of bad PEBs:         8
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: available PEBs:             12                                                                    
UBI: total number of reserved PEBs: 1004                                                               
UBI: number of PEBs reserved for bad PEB handling: 10                                                  
UBI: max/mean erase counter: 3/1                                                                       
UBI: mtd1 is detached from ubi0                                                                        
Creating 1 MTD partitions on "nand0":                                                                  
0x000000000000-0x000008000000 : "mtd=0"                                                                
UBI: attaching mtd1 to ubi0                                                                            
UBI: physical eraseblock size:   131072 bytes (128 KiB)                                                
UBI: logical eraseblock size:    126976 bytes                                                          
UBI: smallest flash I/O unit:    2048                                                                  
UBI: VID header offset:          2048 (aligned 2048)                                                   
UBI: data offset:                4096                                                                  
UBI: attached mtd1 to ubi0                                                                             
UBI: MTD device name:            "mtd=0"                                                               
UBI: MTD device size:            128 MiB                                                               
UBI: number of good PEBs:        1016                                                                  
UBI: number of bad PEBs:         8                                                                     
UBI: max. allowed volumes:       128                                                                   
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: available PEBs:             12
UBI: total number of reserved PEBs: 1004
UBI: number of PEBs reserved for bad PEB handling: 10
UBI: max/mean erase counter: 3/1
UBIFS: recovery needed
UBIFS: recovery deferred
UBIFS: mounted UBI device 0, volume 0, name "fw"
UBIFS: mounted read-only
UBIFS: file system size:   124309504 bytes (121396 KiB, 118 MiB, 979 LEBs)
UBIFS: journal size:       6221824 bytes (6076 KiB, 5 MiB, 49 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: LZO
UBIFS: reserved for root:  5182151 bytes (5060 KiB)
Loading file '/boot/uImage' to addr 0x02000000 with size 3802456 (0x003a0558)...
Done
Loading file '/boot/device.dtb' to addr 0x01000000 with size 14977 (0x00003a81)...
Done
Loading file '/boot/initramfs.img' to addr 0x02500000 with size 33508338 (0x01ff4bf2)...
Done
bootargs=mtdparts=armada-nand:-(fw);spi0.0:1m(uboot),64k(env),-(others) console=ttyS0,115200
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Apollo Kernel
   Created:      2018-02-22   7:09:40 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3802392 Bytes = 3.6 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02500000 ...
   Image Name:   ramdisk_0.01.0000.32
   Created:      2016-03-21  11:01:43 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    33508274 Bytes = 32 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x01000000

Only one active controller supported! Skipping USB1 stop.
failed to stop USB controller 1
   Loading Kernel Image ... OK
OK
   Loading Device Tree to 00ff9000, end 00fffa80 ... OK

   Skipping Device Tree update ('fdt_skip_update' = yes)

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 3.10.70-svn5196 (root@ApolloFW) (gcc version 4.6.4 (Linaro GCC branch-4.6.4. Marvell GCC Dev 201310-2126.3d188
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: Marvell Armada 380/381/382/383/384/385/388 (Device Tree), model: Marvell Armada 385 Reference Design
[    0.000000] Memory policy: ECC disabled, Data cache writealloc
[    0.000000] PERCPU: Embedded 7 pages/cpu @c0fa7000 s7424 r8192 d13056 u32768
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260594
[    0.000000] Kernel command line: mtdparts=armada-nand:-(fw);spi0.0:1m(uboot),64k(env),-(others) console=ttyS0,115200
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 1024MB = 1024MB total
[    0.000000] Memory: 998936k/998936k available, 49640k reserved, 254976K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xfff00000   ( 247 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0700000   ( 775 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc06acc8c   (6804 kB)
[    0.000000]       .init : 0xc06ad000 - 0xc06e7d00   ( 236 kB)
[    0.000000]       .data : 0xc06e8000 - 0xc073c320   ( 337 kB)
[    0.000000]        .bss : 0xc073c320 - 0xc079a91c   ( 378 kB)
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] 
[    0.000000]   LSP version: linux-3.10.70-2015_T1.1p7
[    0.000000] 
[    0.000000] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 171798ms
[    0.000000] L310 cache controller enabled
[    0.000000] l2x0: 16 ways, CACHE_ID 0x410054c9, AUX_CTRL 0x16070000, Cache size: 1048576 B
[    0.000000] Console: colour dummy device 80x30
[    0.000575] Calibrating delay loop... 2125.00 BogoMIPS (lpj=10625024)
[    0.060046] pid_max: default: 32768 minimum: 301
[    0.060123] Mount-cache hash table entries: 512
[    0.060514] CPU: Testing write buffer coherency: ok
[    0.060643] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.060683] Setting up static identity map for 0xc0519218 - 0xc0519270
[    0.060860] mvebu-pmsu: Initializing Power Management Service Unit
[    0.060903] Initializing CPU Reset module
[    1.060034] CPU1: failed to come online
[    1.060055] Brought up 1 CPUs
[    1.060061] SMP: Total of 1 processors activated (2125.00 BogoMIPS).
[    1.060065] CPU: All CPU(s) started in SVC mode.
[    1.060353] devtmpfs: initialized
[    1.063161] mvebu-soc-id: MVEBU SoC ID=0x6810, Rev=0x4
[    1.063335] pinctrl core: initialized pinctrl subsystem
[    1.063482] NET: Registered protocol family 16
[    1.064052] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    1.066620] irq: Cannot allocate irq_descs @ IRQ195, assuming pre-allocated
[    1.067085] irq: Cannot allocate irq_descs @ IRQ227, assuming pre-allocated
[    1.079980] bio: create slab <bio-0> at 0
[    1.080438] mvebu-pcie pcie-controller.3: PCIe0.0: link down
[    1.080464] mvebu-pcie pcie-controller.3: PCIe1.0: link down
[    1.080598] mvebu-pcie pcie-controller.3: PCI host bridge to bus 0000:00
[    1.080608] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.080616] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.080624] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.080906] PCI: bus0: Fast back to back transfers disabled
[    1.080915] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.080923] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.081026] PCI: bus1: Fast back to back transfers enabled
[    1.081138] PCI: bus2: Fast back to back transfers enabled
[    1.081173] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.081183] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.081192] PCI: enabling device 0000:00:01.0 (0140 -> 0143)
[    1.081200] PCI: enabling device 0000:00:02.0 (0140 -> 0143)
[    1.081618] SCSI subsystem initialized
[    1.082152] usbcore: registered new interface driver usbfs
[    1.082225] usbcore: registered new interface driver hub
[    1.082313] usbcore: registered new device driver usb
[    1.082485] pps_core: LinuxPPS API ver. 1 registered
[    1.082490] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.082542] PTP clock support registered
[    1.083017] Switching to clocksource armada_370_xp_clocksource
[    1.089902] NET: Registered protocol family 2
[    1.090367] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    1.090464] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    1.090562] TCP: Hash tables configured (established 8192 bind 8192)
[    1.090605] TCP: reno registered
[    1.090613] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    1.090639] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    1.090772] NET: Registered protocol family 1
[    1.090953] RPC: Registered named UNIX socket transport module.
[    1.090959] RPC: Registered udp transport module.
[    1.090963] RPC: Registered tcp transport module.
[    1.090967] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.091073] Unpacking initramfs...
[    2.660067] Freeing initrd memory: 32716K (c2501000 - c44f4000)
[    2.661017] bounce pool size: 64 pages
[    2.661283] exFAT: Version 1.2.9
[    2.661426] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    2.661507] NTFS driver 2.1.30 [Flags: R/O].
[    2.661530] fuse init (API version 7.22)
[    2.661852] msgmni has been set to 1516
[    2.662509] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    2.662516] io scheduler noop registered
[    2.662521] io scheduler deadline registered
[    2.662534] io scheduler cfq registered (default)
[    2.663238] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    2.663708] mv_xor f1060800.xor: Marvell shared XOR driver
[    2.703488] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr pq )
[    2.733471] mv_xor f1060800.xor: freeing 1 in use descriptors!
[    2.733481] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( intr crc32c )
[    2.733623] mv_xor f1060900.xor: Marvell shared XOR driver
[    2.773485] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr pq )
[    2.803471] mv_xor f1060900.xor: freeing 1 in use descriptors!
[    2.803480] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( intr crc32c )
[    2.845063] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    2.866186] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 44) is a 16550A
[    3.516522] console [ttyS0] enabled
[    3.522797] loop: module loaded
[    3.526303] ahci_mv f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    3.535127] ahci_mv f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    3.544622] scsi0 : ahci_mv_platform
[    3.548423] scsi1 : ahci_mv_platform
[    3.552195] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 58
[    3.560147] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 58
[    3.569364] armada-nand f10d0000.nand: Initialize HAL based NFC in 8bit mode with DMA Disabled using BCH 4bit ECC
[    3.583750] NAND device: Manufacturer ID: 0xad, Chip ID: 0xf1 (Hynix NAND 128MiB 3,3V 8-bit), 128MiB, page size: 2048, OOB size: 64
[    3.595822] Bad block table found at page 65472, version 0x01
[    3.601932] Bad block table found at page 65408, version 0x01
[    3.609150] 1 cmdlinepart partitions found on MTD device armada-nand
[    3.615533] Creating 1 MTD partitions on "armada-nand":
[    3.620773] 0x000000000000-0x000008000000 : "fw"
[    3.627138] m25p80 spi0.0: w25q16 (2048 Kbytes)
[    3.631685] 3 cmdlinepart partitions found on MTD device spi0.0
[    3.637635] Creating 3 MTD partitions on "spi0.0":
[    3.642439] 0x000000000000-0x000000100000 : "uboot"
[    3.647941] 0x000000100000-0x000000110000 : "env"
[    3.653237] 0x000000110000-0x000000200000 : "others"
[    3.659975] SoC: model = 0x6810, revision = 0x4
[    3.664670] mvPncVirtBase = 0xf0c00000, pncTcamSize = 1024
[    3.670167]   o 2 Giga ports supported
[    3.673939]   o NETA acceleration mode 4
[    3.677869]   o BM supported for CPU: 4 BM pools
[    3.682496]   o PnC supported (Enabled)
[    3.686352]   o RX Queue support: 8 Queues * 256 Descriptors
[    3.692023]   o TX Queue support: 8 Queues * 532 Descriptors
[    3.697703]   o GSO supported
[    3.700675]   o GRO supported
[    3.703658]   o Receive checksum offload supported
[    3.708459]   o Transmit checksum offload supported
[    3.713356]   o Driver ERROR statistics enabled
[    3.717895]   o Driver INFO statistics enabled
[    3.722346]   o Driver DEBUG statistics enabled
[    3.726893] 
[    3.729491] port #0: is_sgmii=0, is_rgmii=1, phy_addr=0
[    3.734787]   o Loading network interface(s) for port #0: cpu_mask=0x3, tx_csum_limit=9800
[    3.743108] 
[    3.744602]   o Port 0 is connected to Linux netdevice
[    3.751741]     o eth0, ifindex = 2, GbE port = 0
[    3.759891]  giga p=0: mtu=1500, mac=00:50:43:02:02:01 (platform)
[    3.766006] 
[    3.767625] port #1: is_sgmii=1, is_rgmii=0, phy_addr=1
[    3.772867]   o Loading network interface(s) for port #1: cpu_mask=0x3, tx_csum_limit=2048
[    3.781189] 
[    3.782683]   o Port 1 is connected to Linux netdevice
[    3.789056]     o eth1, ifindex = 3, GbE port = 1
[    3.797207]  giga p=1: mtu=1500, mac=ee:a6:f4:2f:c6:f0 (random)
[    3.803150] 
[    3.805232] libphy: orion_mdio_bus: probed
[    3.810980] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.817544] ehci-pci: EHCI PCI platform driver
[    3.822086] ehci-orion: EHCI orion driver
[    3.826204] orion-ehci f1058000.usb: EHCI Host Controller
[    3.831631] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    3.839292] orion-ehci f1058000.usb: irq 50, io mem 0xf1058000
[    3.863047] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    3.869349] hub 1-0:1.0: USB hub found
[    3.873129] hub 1-0:1.0: 1 port detected
[    3.877402] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    3.882736] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    3.890387] xhci-hcd f10f0000.usb3: irq 48, io mem 0xf10f0000
[    3.896504] hub 2-0:1.0: USB hub found
[    3.900269] hub 2-0:1.0: 1 port detected
[    3.904289] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    3.909620] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    3.917198] ata2: SATA link down (SStatus 0 SControl 300)
[    3.922637] ata1: SATA link down (SStatus 0 SControl 300)
[    3.928510] hub 3-0:1.0: USB hub found
[    3.932277] hub 3-0:1.0: 1 port detected
[    3.936329] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    3.941662] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    3.949304] xhci-hcd f10f8000.usb3: irq 49, io mem 0xf10f8000
[    3.955416] hub 4-0:1.0: USB hub found
[    3.959182] hub 4-0:1.0: 1 port detected
[    3.963198] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    3.968530] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    3.976398] hub 5-0:1.0: USB hub found
[    3.980163] hub 5-0:1.0: 1 port detected
[    3.984421] usbcore: registered new interface driver usb-storage
[    3.990941] mvebu-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    3.998250] i2c /dev entries driver
[    4.012506] armada_thermal f10e4078.thermal: Overheat threshold between 92..107
[    4.020415] orion_wdt: Initial timeout 171 sec
[    4.024955] cpuidle: using governor ladder
[    4.029144] armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: Total CESA HW channels supported 2
[    4.038486] armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: CESA feature: chain(0)
[    4.047018] mvCesaInit: channels=2, session=640, queue=256
[    4.066147] armada-cesa-ocf f109d000.crypto: cesa_ocf_probe: CESA driver operate in ocf(0) mode
[    4.075237] cesadev_init(c06c6c88)
[    4.079005] usbcore: registered new interface driver usbhid
[    4.084615] usbhid: USB HID core driver
[    4.088658] u32 classifier
[    4.091371]     Actions configured
[    4.094792] Netfilter messages via NETLINK v0.30.
[    4.099516] nfnl_acct: registering with nfnetlink.
[    4.104356] nf_conntrack version 0.5.0 (16119 buckets, 64476 max)
[    4.110608] ctnetlink v0.93: registering with nfnetlink.
[    4.115961] ip_set: protocol 6
[    4.119202] ip_tables: (C) 2000-2006 Netfilter Core Team
[    4.124592] TCP: cubic registered
[    4.127937] NET: Registered protocol family 10
[    4.132864] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    4.138373] sit: IPv6 over IPv4 tunneling driver
[    4.143613] NET: Registered protocol family 17
[    4.148116] Bridge firewalling registered
[    4.152162] 8021q: 802.1Q VLAN Support v1.8
[    4.156400] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    4.164421] registered taskstats version 1
[    4.169113] mvebu-rtc f10a3800.rtc: setting system clock to 2022-12-04 10:00:58 UTC (1670148058)
[    4.178408] Freeing unused kernel memory: 232K (c06ad000 - c06e7000)
Augusta INIT.

[    4.215343] UBI: attaching mtd0 to ubi0
[    4.574496] UBI: scanning is finished
[    4.583451] UBI: attached mtd0 (name "fw", size 128 MiB) to ubi0
[    4.589474] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    4.596289] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    4.603006] UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
[    4.609905] UBI: good PEBs: 1016, bad PEBs: 8, corrupted PEBs: 0
[    4.615930] UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
[    4.623088] UBI: max/mean erase counter: 3/1, WL threshold: 4096, image sequence number: 1088336177
[    4.632154] UBI: available PEBs: 10, total reserved PEBs: 1006, PEBs reserved for bad PEB handling: 12
[    4.641497] UBI: background thread "ubi_bgt0d" started, PID 1110
Normal Action


check ponit P1

[    4.668961] UBIFS: background thread "ubifs_bgt0_0" started, PID 1116
[    4.697264] UBIFS: recovery needed
[    4.775437] UBIFS: recovery completed
[    4.779152] UBIFS: mounted UBI device 0, volume 0, name "fw"
[    4.784837] UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    4.793999] UBIFS: FS size: 124309504 bytes (118 MiB, 979 LEBs), journal size 6221824 bytes (5 MiB, 49 LEBs)
[    4.803854] UBIFS: reserved for root: 4952683 bytes (4836 KiB)
[    4.809702] UBIFS: media format: w4/r0 (latest is w4/r0), UUID A9932983-E00A-4D8E-AA5B-75B91BF53F88, small LPT model


check ponit P2



check ponit P3

Waiting partition table @ 0 secs.
Waiting partition table @ 1 secs.
Waiting partition table @ 2 secs.
Waiting partition table @ 3 secs.
Waiting partition table @ 4 secs.
Waiting partition table @ 5 secs.
Waiting partition table @ 6 secs.
Waiting partition table @ 7 secs.
Waiting partition table @ 8 secs.
Waiting partition table @ 9 secs.
Waiting partition table @ 10 secs.
Waiting partition table @ 11 secs.
Waiting partition table @ 12 secs.
Waiting partition table @ 13 secs.
Waiting partition table @ 14 secs.
OS_BLOCK_DEVICE_PATH:  ,fstype: 
Abnormal case
HDD not existed
exit_code:4
[   21.586324] pool #1: pkt_size=1536, buf_size=1600 - 2048 of 2048 buffers added

Ubuntu 12.04.4 LTS APOLLORD ttyS0

APOLLORD login:

Uboot and Linux start-up from Nand + HDD:

BootROM: Image checksum verification PASSED


 __   __                      _ _
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ V /  __/ | |
|_|  |_|\__,_|_|    \_/ \___|_|_|
         _   _     ____              _
        | | | |   | __ )  ___   ___ | |_ 
        | | | |___|  _ \ / _ \ / _ \| __| 
        | |_| |___| |_) | (_) | (_) | |_ 
         \___/    |____/ \___/ \___/ \__| 
 ** LOADER **


U-Boot 2013.01 (Apr 03 2018 - 10:46:04) Marvell version: 2015_T1.0p5

Board: A38x-Customer-Board-0
SoC:   MV88F6810 Rev A0
       running 1 CPUs
CPU:   ARM Cortex A9 MPCore (Rev 1) LE
       CPU 0
       CPU    @ 1066 [MHz]
       L2     @ 533 [MHz]
       TClock @ 250 [MHz]
       DDR    @ 533 [MHz]
       DDR 32 Bit Width, FastPath Memory Access, DLB Enabled, ECC Disabled
DRAM:  1 GiB
NAND:  128 MiB
MMC:   mv_sdh: 0
SF: Detected W25Q16 with page size 4 KiB, total 2 MiB
USB2.0 0: Host Mode
USB3.0 0: Host Mode
USB3.0 1: Host Mode

Map:   Code:			0x3fec0000:0x3ff95dc0
       BSS:			0x3ffef7dc
       Stack:			0x3f9aff20
       Heap:			0x3f9b0000:0x3fec0000
       U-Boot Environment:	0x00100000:0x00110000 (SPI)

Board configuration detected:
Net:   
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   RGMII   |   In-Band    |
| egiga1 |   SGMII   |     0x01     |
egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  3  2  1  0 

Reset SCSI
AHCI init for unit0
Target spinup took 0 ms.
SATA link 1 timeout.

Error: SCSI Controller(s) 1B4B:9215 1B4B:9235 not found
scanning bus for devices...
  Device 0: (0:0) Vendor: ATA Prod.: TOSHIBA MQ01ABD0 Rev: AX0C
            Type: Hard Disk
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)
Found 1 device(s).
(Re)start USB...
USB0:   Port (usbActive) : 0	Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 1 USB Device(s) found
USB1:   Port (usbActive) : 0	Interface (usbType = 3) : 
Only one active controller supported! Skipping USB1 initialization.
lowlevel init failed
       scanning usb for storage devices... 0 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
Creating 1 MTD partitions on "nand0":
0x000000000000-0x000008000000 : "mtd=0"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    126976 bytes
UBI: smallest flash I/O unit:    2048
UBI: VID header offset:          2048 (aligned 2048)
UBI: data offset:                4096
UBI: attached mtd1 to ubi0
UBI: MTD device name:            "mtd=0"
UBI: MTD device size:            128 MiB
UBI: number of good PEBs:        1016
UBI: number of bad PEBs:         8
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: available PEBs:             12
UBI: total number of reserved PEBs: 1004
UBI: number of PEBs reserved for bad PEB handling: 10
UBI: max/mean erase counter: 3/1
UBI: mtd1 is detached from ubi0
Creating 1 MTD partitions on "nand0":
0x000000000000-0x000008000000 : "mtd=0"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    126976 bytes
UBI: smallest flash I/O unit:    2048
UBI: VID header offset:          2048 (aligned 2048)
UBI: data offset:                4096
UBI: attached mtd1 to ubi0
UBI: MTD device name:            "mtd=0"
UBI: MTD device size:            128 MiB
UBI: number of good PEBs:        1016
UBI: number of bad PEBs:         8
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: available PEBs:             12
UBI: total number of reserved PEBs: 1004
UBI: number of PEBs reserved for bad PEB handling: 10
UBI: max/mean erase counter: 3/1
UBIFS: recovery needed
UBIFS: recovery deferred
UBIFS: mounted UBI device 0, volume 0, name "fw"
UBIFS: mounted read-only
UBIFS: file system size:   124309504 bytes (121396 KiB, 118 MiB, 979 LEBs)
UBIFS: journal size:       6221824 bytes (6076 KiB, 5 MiB, 49 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: LZO
UBIFS: reserved for root:  5182151 bytes (5060 KiB)
Loading file '/boot/uImage' to addr 0x02000000 with size 3802456 (0x003a0558)...
Done
Loading file '/boot/device.dtb' to addr 0x01000000 with size 14977 (0x00003a81)...
Done
Loading file '/boot/initramfs.img' to addr 0x02500000 with size 33508338 (0x01ff4bf2)...
Done
bootargs=mtdparts=armada-nand:-(fw);spi0.0:1m(uboot),64k(env),-(others) console=ttyS0,115200
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Apollo Kernel
   Created:      2018-02-22   7:09:40 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3802392 Bytes = 3.6 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02500000 ...
   Image Name:   ramdisk_0.01.0000.32
   Created:      2016-03-21  11:01:43 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    33508274 Bytes = 32 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x01000000

Only one active controller supported! Skipping USB1 stop.
failed to stop USB controller 1
   Loading Kernel Image ... OK
OK
   Loading Device Tree to 00ff9000, end 00fffa80 ... OK

   Skipping Device Tree update ('fdt_skip_update' = yes)

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 3.10.70-svn5196 (root@ApolloFW) (gcc version 4.6.4 (Linaro GCC branch-4.6.4. Marvell GCC Dev 201310-2126.3d181f66 64K MAXPAGESIZE ALIGN) ) #47 SMP Thu Feb 22 15:09:27 CST 2018
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c53c7d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine: Marvell Armada 380/381/382/383/384/385/388 (Device Tree), model: Marvell Armada 385 Reference Design
[    0.000000] Memory policy: ECC disabled, Data cache writealloc
[    0.000000] PERCPU: Embedded 7 pages/cpu @c0fa7000 s7424 r8192 d13056 u32768
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260594
[    0.000000] Kernel command line: mtdparts=armada-nand:-(fw);spi0.0:1m(uboot),64k(env),-(others) console=ttyS0,115200
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 1024MB = 1024MB total
[    0.000000] Memory: 998936k/998936k available, 49640k reserved, 254976K highmem
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xfff00000   ( 247 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0700000   ( 775 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc06acc8c   (6804 kB)
[    0.000000]       .init : 0xc06ad000 - 0xc06e7d00   ( 236 kB)
[    0.000000]       .data : 0xc06e8000 - 0xc073c320   ( 337 kB)
[    0.000000]        .bss : 0xc073c320 - 0xc079a91c   ( 378 kB)
[    0.000000] Hierarchical RCU implementation.
[    0.000000] 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] 
[    0.000000]   LSP version: linux-3.10.70-2015_T1.1p7
[    0.000000] 
[    0.000000] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 171798ms
[    0.000000] L310 cache controller enabled
[    0.000000] l2x0: 16 ways, CACHE_ID 0x410054c9, AUX_CTRL 0x16070000, Cache size: 1048576 B
[    0.000000] Console: colour dummy device 80x30
[    0.000573] Calibrating delay loop... 2125.00 BogoMIPS (lpj=10625024)
[    0.060046] pid_max: default: 32768 minimum: 301
[    0.060123] Mount-cache hash table entries: 512
[    0.060513] CPU: Testing write buffer coherency: ok
[    0.060644] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.060684] Setting up static identity map for 0xc0519218 - 0xc0519270
[    0.060861] mvebu-pmsu: Initializing Power Management Service Unit
[    0.060904] Initializing CPU Reset module
[    1.060036] CPU1: failed to come online
[    1.060057] Brought up 1 CPUs
[    1.060063] SMP: Total of 1 processors activated (2125.00 BogoMIPS).
[    1.060067] CPU: All CPU(s) started in SVC mode.
[    1.060355] devtmpfs: initialized
[    1.063170] mvebu-soc-id: MVEBU SoC ID=0x6810, Rev=0x4
[    1.063344] pinctrl core: initialized pinctrl subsystem
[    1.063490] NET: Registered protocol family 16
[    1.064059] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    1.066621] irq: Cannot allocate irq_descs @ IRQ195, assuming pre-allocated
[    1.067091] irq: Cannot allocate irq_descs @ IRQ227, assuming pre-allocated
[    1.079996] bio: create slab <bio-0> at 0
[    1.080453] mvebu-pcie pcie-controller.3: PCIe0.0: link down
[    1.080479] mvebu-pcie pcie-controller.3: PCIe1.0: link down
[    1.080611] mvebu-pcie pcie-controller.3: PCI host bridge to bus 0000:00
[    1.080621] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.080629] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.080637] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.080918] PCI: bus0: Fast back to back transfers disabled
[    1.080927] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.080935] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.081037] PCI: bus1: Fast back to back transfers enabled
[    1.081149] PCI: bus2: Fast back to back transfers enabled
[    1.081183] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.081194] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.081204] PCI: enabling device 0000:00:01.0 (0140 -> 0143)
[    1.081211] PCI: enabling device 0000:00:02.0 (0140 -> 0143)
[    1.081629] SCSI subsystem initialized
[    1.082165] usbcore: registered new interface driver usbfs
[    1.082237] usbcore: registered new interface driver hub
[    1.082324] usbcore: registered new device driver usb
[    1.082497] pps_core: LinuxPPS API ver. 1 registered
[    1.082502] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.082555] PTP clock support registered
[    1.083030] Switching to clocksource armada_370_xp_clocksource
[    1.089899] NET: Registered protocol family 2
[    1.090361] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    1.090459] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    1.090557] TCP: Hash tables configured (established 8192 bind 8192)
[    1.090599] TCP: reno registered
[    1.090608] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    1.090633] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    1.090766] NET: Registered protocol family 1
[    1.090947] RPC: Registered named UNIX socket transport module.
[    1.090952] RPC: Registered udp transport module.
[    1.090956] RPC: Registered tcp transport module.
[    1.090960] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.091065] Unpacking initramfs...
[    2.659423] Freeing initrd memory: 32716K (c2501000 - c44f4000)
[    2.660373] bounce pool size: 64 pages
[    2.660640] exFAT: Version 1.2.9
[    2.660783] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    2.660865] NTFS driver 2.1.30 [Flags: R/O].
[    2.660887] fuse init (API version 7.22)
[    2.661202] msgmni has been set to 1516
[    2.661856] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    2.661864] io scheduler noop registered
[    2.661868] io scheduler deadline registered
[    2.661881] io scheduler cfq registered (default)
[    2.662532] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    2.662992] mv_xor f1060800.xor: Marvell shared XOR driver
[    2.703504] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr pq )
[    2.733484] mv_xor f1060800.xor: freeing 1 in use descriptors!
[    2.733494] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( intr crc32c )
[    2.733637] mv_xor f1060900.xor: Marvell shared XOR driver
[    2.773498] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr pq )
[    2.803483] mv_xor f1060900.xor: freeing 1 in use descriptors!
[    2.803493] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( intr crc32c )
[    2.845141] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    2.866257] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 44) is a 16550A
[    3.516600] console [ttyS0] enabled
[    3.522878] loop: module loaded
[    3.526384] ahci_mv f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    3.535208] ahci_mv f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    3.544711] scsi0 : ahci_mv_platform
[    3.548512] scsi1 : ahci_mv_platform
[    3.552280] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 58
[    3.560233] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 58
[    3.569451] armada-nand f10d0000.nand: Initialize HAL based NFC in 8bit mode with DMA Disabled using BCH 4bit ECC
[    3.583835] NAND device: Manufacturer ID: 0xad, Chip ID: 0xf1 (Hynix NAND 128MiB 3,3V 8-bit), 128MiB, page size: 2048, OOB size: 64
[    3.595906] Bad block table found at page 65472, version 0x01
[    3.602017] Bad block table found at page 65408, version 0x01
[    3.609229] 1 cmdlinepart partitions found on MTD device armada-nand
[    3.615616] Creating 1 MTD partitions on "armada-nand":
[    3.620856] 0x000000000000-0x000008000000 : "fw"
[    3.627213] m25p80 spi0.0: w25q16 (2048 Kbytes)
[    3.631760] 3 cmdlinepart partitions found on MTD device spi0.0
[    3.637711] Creating 3 MTD partitions on "spi0.0":
[    3.642514] 0x000000000000-0x000000100000 : "uboot"
[    3.648016] 0x000000100000-0x000000110000 : "env"
[    3.653311] 0x000000110000-0x000000200000 : "others"
[    3.660053] SoC: model = 0x6810, revision = 0x4
[    3.664747] mvPncVirtBase = 0xf0c00000, pncTcamSize = 1024
[    3.670245]   o 2 Giga ports supported
[    3.674017]   o NETA acceleration mode 4
[    3.677948]   o BM supported for CPU: 4 BM pools
[    3.682575]   o PnC supported (Enabled)
[    3.686432]   o RX Queue support: 8 Queues * 256 Descriptors
[    3.692102]   o TX Queue support: 8 Queues * 532 Descriptors
[    3.697782]   o GSO supported
[    3.700755]   o GRO supported
[    3.703738]   o Receive checksum offload supported
[    3.708539]   o Transmit checksum offload supported
[    3.713436]   o Driver ERROR statistics enabled
[    3.717975]   o Driver INFO statistics enabled
[    3.722426]   o Driver DEBUG statistics enabled
[    3.726973] 
[    3.729570] port #0: is_sgmii=0, is_rgmii=1, phy_addr=0
[    3.734869]   o Loading network interface(s) for port #0: cpu_mask=0x3, tx_csum_limit=9800
[    3.743191] 
[    3.744684]   o Port 0 is connected to Linux netdevice
[    3.751830]     o eth0, ifindex = 2, GbE port = 0
[    3.759979] 	giga p=0: mtu=1500, mac=00:50:43:02:02:01 (platform)
[    3.766094] 
[    3.767714] port #1: is_sgmii=1, is_rgmii=0, phy_addr=1
[    3.772956]   o Loading network interface(s) for port #1: cpu_mask=0x3, tx_csum_limit=2048
[    3.781279] 
[    3.782773]   o Port 1 is connected to Linux netdevice
[    3.789150]     o eth1, ifindex = 3, GbE port = 1
[    3.797302] 	giga p=1: mtu=1500, mac=52:c8:cb:47:48:63 (random)
[    3.803245] 
[    3.805327] libphy: orion_mdio_bus: probed
[    3.811102] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.817664] ehci-pci: EHCI PCI platform driver
[    3.822208] ehci-orion: EHCI orion driver
[    3.826326] orion-ehci f1058000.usb: EHCI Host Controller
[    3.831753] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    3.839413] orion-ehci f1058000.usb: irq 50, io mem 0xf1058000
[    3.863060] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    3.869365] hub 1-0:1.0: USB hub found
[    3.873144] hub 1-0:1.0: 1 port detected
[    3.877417] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    3.882752] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    3.890402] xhci-hcd f10f0000.usb3: irq 48, io mem 0xf10f0000
[    3.896516] hub 2-0:1.0: USB hub found
[    3.900282] hub 2-0:1.0: 1 port detected
[    3.904301] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    3.909632] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    3.917210] ata2: SATA link down (SStatus 0 SControl 300)
[    3.922936] hub 3-0:1.0: USB hub found
[    3.926781] hub 3-0:1.0: 1 port detected
[    3.930823] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    3.936177] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    3.943878] xhci-hcd f10f8000.usb3: irq 49, io mem 0xf10f8000
[    3.949993] hub 4-0:1.0: USB hub found
[    3.953769] hub 4-0:1.0: 1 port detected
[    3.957781] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    3.963123] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    3.970953] hub 5-0:1.0: USB hub found
[    3.974730] hub 5-0:1.0: 1 port detected
[    3.978972] usbcore: registered new interface driver usb-storage
[    3.985536] mvebu-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    3.992832] i2c /dev entries driver
[    4.007095] armada_thermal f10e4078.thermal: Overheat threshold between 92..107
[    4.015006] orion_wdt: Initial timeout 171 sec
[    4.019537] cpuidle: using governor ladder
[    4.023737] armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: Total CESA HW channels supported 2
[    4.033076] armada-cesa-ocf f109d000.crypto: mv_get_cesa_resources: CESA feature: chain(0)
[    4.041604] mvCesaInit: channels=2, session=640, queue=256
[    4.060740] armada-cesa-ocf f109d000.crypto: cesa_ocf_probe: CESA driver operate in ocf(0) mode
[    4.069834] cesadev_init(c06c6c88)
[    4.073667] usbcore: registered new interface driver usbhid
[    4.079253] usbhid: USB HID core driver
[    4.083270] u32 classifier
[    4.085983]     Actions configured
[    4.089394] Netfilter messages via NETLINK v0.30.
[    4.094127] nfnl_acct: registering with nfnetlink.
[    4.098959] nf_conntrack version 0.5.0 (16119 buckets, 64476 max)
[    4.105217] ctnetlink v0.93: registering with nfnetlink.
[    4.110560] ip_set: protocol 6
[    4.113809] ip_tables: (C) 2000-2006 Netfilter Core Team
[    4.119191] TCP: cubic registered
[    4.122539] NET: Registered protocol family 10
[    4.127477] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    4.132974] sit: IPv6 over IPv4 tunneling driver
[    4.137788] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    4.144343] NET: Registered protocol family 17
[    4.148856] Bridge firewalling registered
[    4.152903] 8021q: 802.1Q VLAN Support v1.8
[    4.157141] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    4.165187] registered taskstats version 1
[    4.169994] mvebu-rtc f10a3800.rtc: setting system clock to 2022-12-05 09:57:26 UTC (1670234246)
[    4.197179] ata1.00: ATA-8: TOSHIBA MQ01ABD050V, AX0C1Q, max UDMA/100
[    4.203648] ata1.00: 976773168 sectors, multi 16: LBA48 NCQ (depth 31/32)
[    4.211813] ata1.00: configured for UDMA/100
[    4.216314] scsi 0:0:0:0: Direct-Access     ATA      TOSHIBA MQ01ABD0 AX0C PQ: 0 ANSI: 5
[    4.224901] sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/465 GiB)
[    4.232403] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    4.237980] sd 0:0:0:0: [sda] Write Protect is off
[    4.242835] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    4.359891]  sda: sda1 sda2
[    4.363404] sd 0:0:0:0: [sda] Attached SCSI disk
[    4.368148] Freeing unused kernel memory: 232K (c06ad000 - c06e7000)
Augusta INIT.

[    4.404964] UBI: attaching mtd0 to ubi0
[    4.764106] UBI: scanning is finished
[    4.773039] UBI: attached mtd0 (name "fw", size 128 MiB) to ubi0
[    4.779074] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[    4.785887] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[    4.792604] UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
[    4.799499] UBI: good PEBs: 1016, bad PEBs: 8, corrupted PEBs: 0
[    4.805523] UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
[    4.812676] UBI: max/mean erase counter: 3/1, WL threshold: 4096, image sequence number: 1088336177
[    4.821747] UBI: available PEBs: 10, total reserved PEBs: 1006, PEBs reserved for bad PEB handling: 12
[    4.831090] UBI: background thread "ubi_bgt0d" started, PID 1120
Normal Action


check ponit P1

[    4.858550] UBIFS: background thread "ubifs_bgt0_0" started, PID 1126
[    4.886847] UBIFS: recovery needed
[    4.965193] UBIFS: recovery completed
[    4.968908] UBIFS: mounted UBI device 0, volume 0, name "fw"
[    4.974594] UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[    4.983756] UBIFS: FS size: 124309504 bytes (118 MiB, 979 LEBs), journal size 6221824 bytes (5 MiB, 49 LEBs)
[    4.993610] UBIFS: reserved for root: 4952683 bytes (4836 KiB)
[    4.999459] UBIFS: media format: w4/r0 (latest is w4/r0), UUID A9932983-E00A-4D8E-AA5B-75B91BF53F88, small LPT model


check ponit P2



check ponit P3

   8        0  488386584 sda
OS_BLOCK_DEVICE_PATH: /dev/sda1 ,fstype: EXT4
HDD Step 1 check ok
Got abnormal shutdown flag. FSCK first.
check result:0
[   14.980287] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   15.029303] Adding 1952764k swap on /dev/sda2.  Priority:-1 extents:1 across:1952764k 
swapon ret:0
exit_code:0


check ponit P4



check ponit P5

tar protect before switch
cleanup keys
[   15.907404] UBIFS: un-mount UBI device 0, volume 0
[   15.912217] UBIFS: background thread "ubifs_bgt0_0" stops
[   15.922195] UBI: detaching mtd0 from ubi0
[   15.926724] UBI: mtd0 is detached from ubi0
switch root

switch_root: failed to mount moving /run to /mnt/HDD/run: Invalid argument
switch_root: forcing unmount of /run
HDD INIT phase.

[   16.109217] UBI: attaching mtd0 to ubi0
[   16.468222] UBI: scanning is finished
[   16.477155] UBI: attached mtd0 (name "fw", size 128 MiB) to ubi0
[   16.483193] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[   16.489998] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[   16.496723] UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
[   16.503619] UBI: good PEBs: 1016, bad PEBs: 8, corrupted PEBs: 0
[   16.509639] UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
[   16.516797] UBI: max/mean erase counter: 3/1, WL threshold: 4096, image sequence number: 1088336177
[   16.525869] UBI: available PEBs: 10, total reserved PEBs: 1006, PEBs reserved for bad PEB handling: 12
[   16.535213] UBI: background thread "ubi_bgt0d" started, PID 1214
[   16.585525] UBIFS: background thread "ubifs_bgt0_0" started, PID 1217
[   16.631231] UBIFS: mounted UBI device 0, volume 0, name "fw"
[   16.636916] UBIFS: LEB size: 126976 bytes (124 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[   16.646078] UBIFS: FS size: 124309504 bytes (118 MiB, 979 LEBs), journal size 6221824 bytes (5 MiB, 49 LEBs)
[   16.655934] UBIFS: reserved for root: 4952683 bytes (4836 KiB)
[   16.661783] UBIFS: media format: w4/r0 (latest is w4/r0), UUID A9932983-E00A-4D8E-AA5B-75B91BF53F88, small LPT model
just do it 1
Entering HDD init.


Ubuntu 12.04.4 LTS Apollo883975 ttyS0

Apollo883975 login: [   23.306932] pool #1: pkt_size=1536, buf_size=1600 - 2048 of 2048 buffers added

Ubuntu 12.04.4 LTS Apollo883975 ttyS0

Apollo883975 login:

printenv:

cat screenlog.0
BootROM: Image checksum verification PASSED

 __   __                      _ _
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ V /  __/ | |
|_|  |_|\__,_|_|    \_/ \___|_|_|
         _   _     ____              _
        | | | |   | __ )  ___   ___ | |_ 
        | | | |___|  _ \ / _ \ / _ \| __| 
        | |_| |___| |_) | (_) | (_) | |_ 
         \___/    |____/ \___/ \___/ \__| 
 ** LOADER **


U-Boot 2013.01 (Apr 03 2018 - 10:46:04) Marvell version: 2015_T1.0p5

Board: A38x-Customer-Board-0
SoC:   MV88F6810 Rev A0
       running 1 CPUs
CPU:   ARM Cortex A9 MPCore (Rev 1) LE
       CPU 0
       CPU    @ 1066 [MHz]
       L2     @ 533 [MHz]
       TClock @ 250 [MHz]
       DDR    @ 533 [MHz]
       DDR 32 Bit Width, FastPath Memory Access, DLB Enabled, ECC Disabled
DRAM:  1 GiB
NAND:  128 MiB
MMC:   mv_sdh: 0
SF: Detected W25Q16 with page size 4 KiB, total 2 MiB
USB2.0 0: Host Mode
USB3.0 0: Host Mode
USB3.0 1: Host Mode

Map:   Code:			0x3fec0000:0x3ff95dc0
       BSS:			0x3ffef7dc
       Stack:			0x3f9aff20
       Heap:			0x3f9b0000:0x3fec0000
       U-Boot Environment:	0x00100000:0x00110000 (SPI)

Board configuration detected:
Net:   
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   RGMII   |   In-Band    |
| egiga1 |   SGMII   |     0x01     |
egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0 
Marvell>> printenv
CASset=max
MALLOC_len=5
MPmode=SMP
autoload=no
baudrate=115200
boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxe net_img net_scr
bootargs_dflt=$console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel
bootargs_end=:10.4.50.254:255.255.255.0:Armada38x:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=scsi reset;if ${usb_check}; then run nand_boot; else run usb0_boot;run nand_boot; fi;
bootcmd_auto=stage_boot $boot_order
bootcmd_fdt=tftpboot 0x2000000 $image_name;tftpboot $fdtaddr $fdtfile;setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_boot=tftpboot 0x2000000 $image_name; setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_fdt_edit=tftpboot $fdtaddr $fdtfile; fdt addr $fdtaddr; setenv bootcmd $bootcmd_fdt_boot
bootcmd_lgcy=tftpboot 0x2000000 $image_name; setenv bootargs $bootargs_dflt; bootm 0x2000000; 
bootdelay=3
cacheShare=no
console=console=ttyS0,115200
device_partition=0:1
disaMvPnp=no
eeeEnable=no
enaClockGating=no
enaCpuStream=no
enaFPU=yes
enaMonExt=no
enaWrAllo=no
eth1addr=00:50:43:58:23:33
eth1mtu=1500
eth2addr=00:50:43:58:9d:33
eth2mtu=1500
eth3addr=00:50:43:23:9d:58
eth3mtu=1500
ethact=egiga0
ethaddr=00:50:43:9d:23:33
ethmtu=1500
ethprime=egiga0
fdt_addr=2040000
fdt_skip_update=yes
fdtaddr=0x1000000
fdtfile=armada-38x.dtb
ide_path=/
image_name=uImage
initrd_name=uInitrd
ipaddr=30.0.0.2
kernel_addr_r=2080000
lcd0_enable=0
lcd0_params=640x480-16@60
lcd_panel=0
loadaddr=0x2000000
loads_echo=0
mtdids=nand0=armada-nand
mtdids_nand=nand0=armada-nand
mtdids_spi=spi0=spi0.0
mtdparts=mtdparts=armada-nand:-fw)
mtdparts_nand=mtdparts=armada-nand:-(fw)
mtdparts_spi=spi0.0:1m(uboot),64k(env),-(others)
mvNetConfig=mv_net_config=4,(00:50:43:11:11:11,0:1:2:3),mtu=1500
mv_pon_addr=00:50:43:33:9d:58
nandEcc=nfcConfig=4bitecc
nand_boot=setenv mtdids "$mtdids_nand";setenv mtdparts "$mtdparts_nand";ubi part fw;ubi part fw;ubifsmount fw;ubifsload $loadaddr /boot/uImage;ubifsload $fdtaddr /boot/device.dtb;ubifsload $rdaddr /boot/initramfs.img;setenv mtdids "$mtdids_nand;$mtdids_spi";setenv mtdparts "$mtdparts_nand;$mtdparts_spi";setenv bootargs $mtdparts $console;print bootargs;bootm $loadaddr $rdaddr $fdtaddr
netbsd_en=no
netmask=255.255.255.0
netretry=no
pcieTune=no
pexMode=RC
pxe_files_load=:default.arm-armadaxp-db:default.arm-armadaxp:default.arm
pxefile_addr_r=3100000
ramdisk_addr_r=2880000
rdaddr=0x2500000
rootpath=/srv/nfs/
sata_delay_reset=0
sata_dma_mode=yes
script_addr_r=3000000
script_name=boot.scr
serverip=30.0.0.121
standalone=fsload 0x2000000 $image_name;setenv bootargs $console $nandEcc $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm 0x2000000;
stderr=serial
stdin=serial
stdout=serial
usb0Mode=host
usb0_boot=ext4load usb 0:1 $loadaddr /diag/uImage;ext4load usb 0:1 $fdtaddr /diag/device.dtb;setenv mtdids "$mtdids_nand;$mtdids_spi";setenv mtdparts "$mtdparts_nand;$mtdparts_spi";setenv bootargs $mtdparts $console root=/dev/sdb1 rw rootdelay=3 init=/init rootfstype=ext4;print bootargs;bootm $loadaddr - $fdtaddr
usbActive=0
usbType=3
usb_check=usb reset
vxworks_en=no
yuk_ethaddr=00:00:00:EE:51:81

Environment size: 3826/65532 bytes
Marvell>>



Edited 1 time(s). Last edit at 12/05/2022 04:54AM by ztof.
Re: Promise Apollo Cloud - Armada 385
December 05, 2022 07:13AM
A step further..

I've prepared a USB boot drive, as I don't know which dtb to use, I've tried with armada-385-wd-ex2100.dtb

There is a usb0_boot command available
usb0_boot=ext4load usb 0:1 $loadaddr /diag/uImage;ext4load usb 0:1 $fdtaddr /diag/device.dtb;setenv mtdids "$mtdids_nand;$mtdids_spi";setenv mtdparts "$mtdparts_nand;$mtdparts_spi";setenv bootargs $mtdparts $console root=/dev/sdb1 rw rootdelay=3 init=/init rootfstype=ext4;print bootargs;bootm $loadaddr - $fdtaddr

So I copied boot folder to "diag" folder, and armada-385-wd-ex2100.dtb copied to /diag/device.dtb

then I used these commands:
usb start to start USB detection
usb storage to verify USB drive is recognized
run usb0_boot to boot from usb drive

Here is the result:

Hit any key to stop autoboot:  0 
Marvell>> usb start
(Re)start USB...
USB0:   Port (usbActive) : 0	Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
USB1:   Port (usbActive) : 0	Interface (usbType = 3) : 
Only one active controller supported! Skipping USB1 initialization.
lowlevel init failed
       scanning usb for storage devices... 1 Storage Device(s) found

####usb_read 0: 6, addr: 2000000
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
Marvell>> usb storage
  Device 0: Vendor: SanDisk  Rev: 8.02 Prod: Cruzer Blade    
            Type: Removable Hard Disk
            Capacity: 7663.9 MB = 7.4 GB (15695871 x 512)
Marvell>> run usb0
  usb0Mode usb0_boot
Marvell>> run usb0_boot 
5234615 bytes read in 585 ms (8.5 MiB/s)
16319 bytes read in 336 ms (46.9 KiB/s)
bootargs=mtdparts=armada-nand:-(fw);spi0.0:1m(uboot),64k(env),-(others) console=ttyS0,115200 root=/dev/sdb1 rw rootdelay=3 init=/init rootfstype=ext4
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-5.13.8-mvebu-tld-1
   Created:      2022-12-05  11:52:52 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5234551 Bytes = 5 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x01000000

Only one active controller supported! Skipping USB1 stop.
failed to stop USB controller 1
   Loading Kernel Image ... OK
OK
   Loading Device Tree to 00ff9000, end 00ffffbe ... OK

   Skipping Device Tree update ('fdt_skip_update' = yes)

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.13.8-mvebu-tld-1 (root@tldDebian) (gcc (Debian 8.3.0-6) 8.3.0, GNU ld (GNU Binutils for Debian) 2.31.1) #1.0 SMP PREEMPT Sat Aug 7 14:58:41 PDT 2021
[    0.000000][    T0] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000][    T0] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000][    T0] OF: fdt: Machine model: WD My Cloud EX2100
[    0.000000][    T0] Memory policy: Data cache writealloc
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x000000002fffffff]
[    0.000000][    T0]   HighMem  [mem 0x0000000030000000-0x000000003fffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000][    T0] percpu: Embedded 21 pages/cpu s54668 r8192 d23156 u86016
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000][    T0] Kernel command line: 
[    0.000000][    T0] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 1021136K/1048576K available (11264K kernel code, 1483K rwdata, 3112K rodata, 1024K init, 325K bss, 27440K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000][    T0] random: get_random_u32 called from ____cache_alloc+0x404/0x78c with crng_init=0
[    0.000000][    T0] trace event string verifier disabled
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] rcu: 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    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] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] L2C: DT/platform modifies aux control register: 0x06070000 -> 0x16070000
[    0.000000][    T0] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000][    T0] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000][    T0] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000][    T0] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000][    T0] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000][    T0] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000001][    T0] sched_clock: 64 bits at 533MHz, resolution 1ns, wraps every 2199023255551ns
[    0.000028][    T0] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x7aed16d152, max_idle_ns: 440795225656 ns
[    0.000056][    T0] Switching to timer-based delay loop, resolution 1ns
[    0.000328][    T0] Ignoring duplicate/late registration of read_current_timer delay
[    0.000343][    T0] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.001031][    T0] Console: colour dummy device 80x30
[    0.001561][    T0] printk: console [tty0] enabled
[    0.001596][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 1066.00 BogoMIPS (lpj=5330000)
[    0.001629][    T0] pid_max: default: 32768 minimum: 301
[    0.001801][    T0] LSM: Security Framework initializing
[    0.001884][    T0] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.001914][    T0] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.002667][    T0] CPU: Testing write buffer coherency: ok
[    0.002708][    T0] CPU0: Spectre v2: using BPIALL workaround
[    0.002879][    T1] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.003480][    T1] Setting up static identity map for 0x100000 - 0x100060
[    0.003625][    T1] mvebu-soc-id: MVEBU SoC ID=0x6810, Rev=0x4
[    0.003784][    T1] mvebu-pmsu: Initializing Power Management Service Unit
[    0.003930][    T1] rcu: Hierarchical SRCU implementation.
[    0.004587][    T1] smp: Bringing up secondary CPUs ...
[    0.005081][    T1] Booting CPU 1
[    1.040143][    T1] CPU1: failed to come online
[    1.040234][    T1] smp: Brought up 1 node, 1 CPU
[    1.040254][    T1] SMP: Total of 1 processors activated (1066.00 BogoMIPS).
[    1.040276][    T1] CPU: All CPU(s) started in SVC mode.
[    1.040691][    T1] devtmpfs: initialized
[    1.043664][    T1] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    1.043937][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    1.043986][    T1] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    1.050335][   T24] wait_for_initramfs() called before rootfs_initcalls
[    1.072401][    T1] prandom32: self test passed (less than 6 bits correlated)
[    1.072433][    T1] prandom: seed boundary self test passed
[    1.074402][    T1] prandom: 100 self tests passed
[    1.074419][    T1] pinctrl core: initialized pinctrl subsystem
[    1.076006][    T1] NET: Registered protocol family 16
[    1.076703][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    1.077458][    T1] audit: initializing netlink subsys (disabled)
[    1.078850][   T36] audit: type=2000 audit(1.070:1): state=initialized audit_enabled=0 res=1
[    1.080282][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    1.080444][    T1] cpuidle: using governor ladder
[    1.080502][    T1] cpuidle: using governor menu
[    1.080544][    T1] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    1.080570][    T1] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    1.080757][    T1] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    1.080787][    T1] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    1.340841][    T1] raid6: int32x8  gen()   195 MB/s
[    1.510658][    T1] raid6: int32x8  xor()   134 MB/s
[    1.680197][    T1] raid6: int32x4  gen()   224 MB/s
[    1.850246][    T1] raid6: int32x4  xor()   142 MB/s
[    2.020155][    T1] raid6: int32x2  gen()   358 MB/s
[    2.190213][    T1] raid6: int32x2  xor()   204 MB/s
[    2.360168][    T1] raid6: int32x1  gen()   398 MB/s
[    2.530139][    T1] raid6: int32x1  xor()   157 MB/s
[    2.530157][    T1] raid6: using algorithm int32x1 gen() 398 MB/s
[    2.530175][    T1] raid6: .... xor() 157 MB/s, rmw enabled
[    2.530191][    T1] raid6: using intx1 recovery algorithm
[    2.530592][    T1] fbcon: Taking over console
[    2.531064][    T1] vgaarb: loaded
[    2.531668][    T1] SCSI subsystem initialized
[    2.533665][    T1] usbcore: registered new interface driver usbfs
[    2.533783][    T1] usbcore: registered new interface driver hub
[    2.533887][    T1] usbcore: registered new device driver usb
[    2.534522][    T1] mc: Linux media interface: v0.10
[    2.534624][    T1] videodev: Linux video capture interface: v2.00
[    2.534994][    T1] pps_core: LinuxPPS API ver. 1 registered
[    2.535018][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    2.535107][    T1] PTP clock support registered
[    2.541142][    T1] clocksource: Switched to clocksource arm_global_timer
[    2.581533][    T1] VFS: Disk quotas dquot_6.6.0
[    2.581637][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    2.607153][    T1] NET: Registered protocol family 2
[    2.607340][    T1] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    2.612025][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    2.612093][    T1] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    2.612189][    T1] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    2.612303][    T1] TCP: Hash tables configured (established 8192 bind 8192)
[    2.612477][    T1] MPTCP token hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    2.612551][    T1] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    2.612602][    T1] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    2.612784][    T1] NET: Registered protocol family 1
[    2.621994][    T1] RPC: Registered named UNIX socket transport module.
[    2.622025][    T1] RPC: Registered udp transport module.
[    2.622043][    T1] RPC: Registered tcp transport module.
[    2.622059][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    2.622081][    T1] PCI: CLS 0 bytes, default 64
[    2.622110][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    2.622544][    T1] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    3.556955][    T1] Initialise system trusted keyrings
[    3.557012][    T1] Key type blacklist registered
[    3.557748][    T1] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    3.557865][    T1] zbud: loaded
[    3.559452][    T1] NFS: Registering the id_resolver key type
[    3.559496][    T1] Key type id_resolver registered
[    3.559515][    T1] Key type id_legacy registered
[    3.559551][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    3.559579][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    3.559601][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    3.636203][    T1] xor: measuring software checksum speed
[    3.641927][    T1]    arm4regs        :  1738 MB/sec
[    3.649451][    T1]    8regs           :  1310 MB/sec
[    3.656593][    T1]    32regs          :  1386 MB/sec
[    3.656612][    T1] xor: using function: arm4regs (1738 MB/sec)
[    3.656636][    T1] async_tx: api initialized (async)
[    3.656655][    T1] Key type asymmetric registered
[    3.656671][    T1] Asymmetric key parser 'x509' registered
[    3.656802][    T1] bounce: pool size: 64 pages
[    3.656957][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[    3.657055][    T1] io scheduler bfq registered
[    3.659434][    T1] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    3.663085][    T1] debugfs: Directory 'f1018100.gpio' with parent 'regmap' already present!
[    3.663946][    T1] debugfs: Directory 'f1018140.gpio' with parent 'regmap' already present!
[    3.665544][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    3.721853][    T1] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    3.723843][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    3.781845][    T1] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    3.928172][    T1] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    3.955062][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 31, base_baud = 15625000) is a 16550A
[    4.962209][    T1] printk: console [ttyS0] enabled
[    4.988817][    T1] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 32, base_baud = 15625000) is a 16550A
[    5.000192][    T1] ahci-mvebu f10a8000.sata: supply ahci not found, using dummy regulator
[    5.010082][    T1] ahci-mvebu f10a8000.sata: supply phy not found, using dummy regulator
[    5.018606][    T1] ahci-mvebu f10a8000.sata: supply target not found, using dummy regulator
[    5.027381][    T1] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    5.037263][    T1] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    5.048768][    T1] scsi host0: ahci-mvebu
[    5.054098][    T1] scsi host1: ahci-mvebu
[    5.058423][    T1] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 53
[    5.067680][    T1] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 53
[    5.077721][    T1] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    5.086060][    T1] nand: Hynix H27U1G8F2BTR-BC
[    5.090626][    T1] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    5.099653][    T1] Bad block table found at page 65472, version 0x01
[    5.106854][    T1] Bad block table found at page 65408, version 0x01
[    5.113836][    T1] 8 fixed-partitions partitions found on MTD device pxa3xx_nand-0
[    5.121648][    T1] Creating 8 MTD partitions on "pxa3xx_nand-0":
[    5.127780][    T1] 0x000000000000-0x000000500000 : "U-Boot"
[    5.134834][    T1] 0x000000500000-0x000000f00000 : "uImage"
[    5.142583][    T1] 0x000000a00000-0x000001900000 : "uRamdisk"
[    5.150426][    T1] 0x000000f00000-0x00001d700000 : "image.cfs"
[    5.157168][    T1] mtd: partition "image.cfs" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x7100000
[    5.170294][    T1] 0x00001c800000-0x000039f00000 : "rescue_fw"
[    5.177077][    T1] mtd: partition "rescue_fw" is out of reach -- disabled
[    5.185304][    T1] 0x00001d700000-0x00003c200000 : "config"
[    5.191002][    T1] mtd: partition "config" is out of reach -- disabled
[    5.199633][    T1] 0x00001eb00000-0x00003e000000 : "reserve1"
[    5.206305][    T1] mtd: partition "reserve1" is out of reach -- disabled
[    5.214452][    T1] 0x00001f500000-0x00003f400000 : "reserve2"
[    5.220326][    T1] mtd: partition "reserve2" is out of reach -- disabled
[    5.232128][    T1] spi-nor spi0.0: unrecognized JEDEC id bytes: ff ff ff ff ff ff
[    5.240404][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    5.249198][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    5.261689][    T1] libphy: Fixed MDIO Bus: probed
[    5.271554][    T1] libphy: orion_mdio_bus: probed
[    5.280788][    T1] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    5.296739][    T1] mvneta f1070000.ethernet eth0: Using random mac address d2:ba:35:34:e1:8d
[    5.313134][    T1] mvneta f1034000.ethernet eth1: Using random mac address 2a:dc:bc:26:12:a9
[    5.324699][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.332654][    T1] ehci-pci: EHCI PCI platform driver
[    5.337976][    T1] ehci-orion: EHCI orion driver
[    5.343257][    T1] orion-ehci f1058000.usb: EHCI Host Controller
[    5.349468][    T1] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    5.357998][    T1] orion-ehci f1058000.usb: irq 49, io mem 0xf1058000
[    5.391158][    T1] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    5.398039][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.13
[    5.407097][ T1222] ata1: SATA link down (SStatus 0 SControl 300)
[    5.413250][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.421255][ T1227] ata2: SATA link down (SStatus 0 SControl 300)
[    5.427440][    T1] usb usb1: Product: EHCI Host Controller
[    5.433058][    T1] usb usb1: Manufacturer: Linux 5.13.8-mvebu-tld-1 ehci_hcd
[    5.440271][    T1] usb usb1: SerialNumber: f1058000.usb
[    5.446209][    T1] hub 1-0:1.0: USB hub found
[    5.451083][    T1] hub 1-0:1.0: 1 port detected
[    5.457027][    T1] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    5.464034][    T1] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    5.472466][    T1] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    5.482981][    T1] xhci-hcd f10f0000.usb3: irq 56, io mem 0xf10f0000
[    5.489741][    T1] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.13
[    5.498789][    T1] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.506784][    T1] usb usb2: Product: xHCI Host Controller
[    5.512415][    T1] usb usb2: Manufacturer: Linux 5.13.8-mvebu-tld-1 xhci-hcd
[    5.519589][    T1] usb usb2: SerialNumber: f10f0000.usb3
[    5.525585][    T1] hub 2-0:1.0: USB hub found
[    5.530447][    T1] hub 2-0:1.0: 1 port detected
[    5.535560][    T1] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    5.542021][    T1] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    5.550268][    T1] xhci-hcd f10f0000.usb3: Host supports USB 3.0 SuperSpeed
[    5.557518][    T1] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    5.566596][    T1] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.13
[    5.575629][    T1] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.583622][    T1] usb usb3: Product: xHCI Host Controller
[    5.589227][    T1] usb usb3: Manufacturer: Linux 5.13.8-mvebu-tld-1 xhci-hcd
[    5.596425][    T1] usb usb3: SerialNumber: f10f0000.usb3
[    5.602387][    T1] hub 3-0:1.0: USB hub found
[    5.607236][    T1] hub 3-0:1.0: 1 port detected
[    5.612665][    T1] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    5.618724][    T1] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    5.627744][    T1] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    5.637843][    T1] xhci-hcd f10f8000.usb3: irq 57, io mem 0xf10f8000
[    5.644776][    T1] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.13
[    5.653816][    T1] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.661807][    T1] usb usb4: Product: xHCI Host Controller
[    5.667411][    T1] usb usb4: Manufacturer: Linux 5.13.8-mvebu-tld-1 xhci-hcd
[    5.674798][    T1] usb usb4: SerialNumber: f10f8000.usb3
[    5.680785][    T1] hub 4-0:1.0: USB hub found
[    5.685699][    T1] hub 4-0:1.0: 1 port detected
[    5.690829][    T1] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    5.697322][    T1] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    5.705625][    T1] xhci-hcd f10f8000.usb3: Host supports USB 3.0 SuperSpeed
[    5.712915][    T1] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    5.721898][    T1] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.13
[    5.730924][    T1] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.738915][    T1] usb usb5: Product: xHCI Host Controller
[    5.744537][    T1] usb usb5: Manufacturer: Linux 5.13.8-mvebu-tld-1 xhci-hcd
[    5.751783][    T1] usb usb5: SerialNumber: f10f8000.usb3
[    5.757725][    T1] hub 5-0:1.0: USB hub found
[    5.762630][    T1] hub 5-0:1.0: 1 port detected
[    5.767996][    T1] usbcore: registered new interface driver usblp
[    5.775170][    T1] usbcore: registered new interface driver usb-storage
[    5.782511][    T1] mousedev: PS/2 mouse device common for all mice
[    5.790903][    T1] armada38x-rtc f10a3800.rtc: registered as rtc0
[    5.798493][    T1] armada38x-rtc f10a3800.rtc: setting system clock to 2022-12-05T13:00:13 UTC (1670245213)
[    5.809142][    T1] i2c /dev entries driver
[    5.814593][    T1] mv64xxx_i2c f1011000.i2c: can't get pinctrl, bus recovery not supported
[    5.823048][   T25] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    5.831349][    T1] mv64xxx_i2c f1011100.i2c: can't get pinctrl, bus recovery not supported
[    5.843906][    T1] orion_wdt: Initial timeout 171 sec
[    5.850714][    T1] device-mapper: uevent: version 1.0.3
[    5.856677][    T1] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: dm-devel@redhat.com
[    5.866419][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    5.873801][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    5.881181][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    5.888580][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    5.895440][    T1] device-mapper: raid: Loading target version 1.15.1
[    5.905152][    T1] marvell-cesa f1090000.crypto: CESA device successfully registered
[    5.913509][    T1] hid: raw HID events driver (C) Jiri Kosina
[    5.920381][    T1] usbcore: registered new interface driver usbhid
[    5.927274][    T1] usbhid: USB HID core driver
[    5.932420][    T1] drop_monitor: Initializing network drop monitor service
[    5.939797][    T1] NET: Registered protocol family 10
[    5.946522][    T1] Segment Routing with IPv6
[    5.950913][    T1] RPL Segment Routing with IPv6
[    5.955788][    T1] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    5.963829][    T1] NET: Registered protocol family 17
[    5.969951][    T1] 8021q: 802.1Q VLAN Support v1.8
[    5.975106][    T1] Key type dns_resolver registered
[    5.980118][    T1] ThumbEE CPU extension supported.
[    5.985227][    T1] Registering SWP/SWPB emulation handler
[    5.991072][    T1] registered taskstats version 1
[    5.996104][    T1] Loading compiled-in X.509 certificates
[    6.002142][   T25] usb 2-1: New USB device found, idVendor=0781, idProduct=5567, bcdDevice= 2.00
[    6.011076][   T25] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    6.019311][    T1] zswap: loaded using pool lzo/zbud
[    6.024709][    T1] Key type ._fscrypt registered
[    6.029447][    T1] Key type .fscrypt registered
[    6.034143][   T25] usb 2-1: Product: Cruzer Blade
[    6.038965][   T25] usb 2-1: Manufacturer: SanDisk
[    6.043799][    T1] Key type fscrypt-provisioning registered
[    6.050925][    T1] Key type big_key registered
[    6.055597][   T25] usb 2-1: SerialNumber: 0831401AF491FF0F
[    6.062534][   T25] usb-storage 2-1:1.0: USB Mass Storage device detected
[    6.070160][    T1] Key type encrypted registered
[    6.078940][   T25] scsi host2: usb-storage 2-1:1.0
[    6.084688][    T1] md: Waiting for all devices to be available before autodetect
[    6.093024][    T1] md: If you don't use raid, use raid=noautodetect
[    6.099421][    T1] md: Autodetecting RAID arrays.
[    6.104296][    T1] md: autorun ...
[    6.107807][    T1] md: ... autorun DONE.
[    6.112244][    T1] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    6.120474][    T1] Please append a correct "root=" boot option; here are the available partitions:
[    6.129678][    T1] 1f00            5120 mtdblock0 
[    6.129685][    T1]  (driver?)
[    6.137745][    T1] 1f01           10240 mtdblock1 
[    6.137752][    T1]  (driver?)
[    6.145749][    T1] 1f02           15360 mtdblock2 
[    6.145755][    T1]  (driver?)
[    6.153755][    T1] 1f03          115712 mtdblock3 
[    6.153762][    T1]  (driver?)
[    6.161765][    T1] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    6.170772][    T1] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.13.8-mvebu-tld-1 #1.0
[    6.178647][    T1] Hardware name: Marvell Armada 380/385 (Device Tree)
[    6.185301][    T1] [<c01153e8>] (unwind_backtrace) from [<c01100f8>] (show_stack+0x10/0x14)
[    6.193805][    T1] [<c01100f8>] (show_stack) from [<c0b05d18>] (dump_stack+0x80/0x9c)
[    6.201775][    T1] [<c0b05d18>] (dump_stack) from [<c0b01150>] (panic+0xe4/0x2f0)
[    6.209397][    T1] [<c0b01150>] (panic) from [<c1001ad8>] (mount_block_root+0x1b4/0x238)
[    6.217632][    T1] [<c1001ad8>] (mount_block_root) from [<c1001c4c>] (mount_root+0xf0/0x11c)
[    6.226213][    T1] [<c1001c4c>] (mount_root) from [<c1001dbc>] (prepare_namespace+0x144/0x180)
[    6.234966][    T1] [<c1001dbc>] (prepare_namespace) from [<c1001640>] (kernel_init_freeable+0x230/0x29c)
[    6.244592][    T1] [<c1001640>] (kernel_init_freeable) from [<c0b0d9ac>] (kernel_init+0x8/0x118)
[    6.253524][    T1] [<c0b0d9ac>] (kernel_init) from [<c0100150>] (ret_from_fork+0x14/0x24)
[    6.261840][    T1] Exception stack(0xc18cffb0 to 0xc18cfff8)
[    6.267618][    T1] ffa0:                                     00000000 00000000 00000000 00000000
[    6.276538][    T1] ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    6.285456][    T1] ffe0: 00000000 00000000 00000000 00000000 00000013 00000000
[    6.292812][    T1] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---

It does boot partially from USB... but I need to find out how to set on USB root drive defined as /dev/sdb1, as uboot command needs "root=/dev/sdb1"



Edited 1 time(s). Last edit at 12/05/2022 07:19AM by ztof.
Re: Promise Apollo Cloud - Armada 385
December 05, 2022 12:03PM
2nd round.

I've discovered that setenv does not touch Nand until you use saveenv. (I'm newbie with Uboot). So I've played a bit with that...
I've also attached hdd drive, in order to have sda and sdb (and so booting from sdb1)

Note1: the only USB port where the drive is detected is the upper port (the one closest to Ethernet port).
USB drive is not always recognized at start by uboot (and usb start return nothing).
Many times, once I'm to uboot prompt, I need to:
- unplug USB drive
- plug USB drive again
- run usb start

with:
setenv usb0_boot 'ext4load usb 0:1 $loadaddr /boot/uImage;ext2load usb 0:1 $load_initrd_addr /boot/uInitrd;setenv mtdids "$mtdids_nand;$mtdids_spi";setenv mtdparts "$mtdparts_nand;$mtdparts_spi";setenv bootargs $mtdparts $console root=/dev/sdb1 rw rootdelay=13 rootfstype=ext4;print bootargs;bootm $loadaddr $load_initrd_addr'

I'm able to boot the device (I'm using dtb from armada-385-synology-ds116.dtb (probably not the best, but it's a first attempt).

Marvell>> usb start

Only one active controller supported! Skipping USB1 stop.
failed to stop USB controller 1
(Re)start USB...
USB0:   Port (usbActive) : 0	Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
USB1:   Port (usbActive) : 0	Interface (usbType = 3) : 
Only one active controller supported! Skipping USB1 initialization.
lowlevel init failed
       scanning usb for storage devices... 1 Storage Device(s) found

####usb_read 0: 6, addr: 2000000
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
Marvell>> usb part

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

Part	Start Sector	Num Sectors	UUID		Type
  1	44        	15679396  	6f180f60-01	83
Marvell>> setenv usb0_boot 'ext4load usb 0:1 $loadaddr /boot/uImage;ext2load usb 0:1 $load_initrd_addr /boot/uInitrd;setenv mtdids "$mtdids_nand;$mtdids_spi";setenv mtdparts "$mtdparts_nand;$mtdparts_spi";setenv bootargs $mtdparts $console root=/dev/sdb1 rw rootdelay=13 rootfstype=ext4;print bootargs;bootm $loadaddr $load_initrd_addr'
Marvell>> run usb0_boot 
5234615 bytes read in 555 ms (9 MiB/s)
** No boot file defined **
bootargs=mtdparts=armada-nand:-(fw);spi0.0:1m(uboot),64k(env),-(others) console=ttyS0,115200 root=/dev/sdb1 rw rootdelay=13 rootfstype=ext4
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-5.13.8-mvebu-tld-1
   Created:      2022-12-05  11:52:52 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5234551 Bytes = 5 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK

Only one active controller supported! Skipping USB1 stop.
failed to stop USB controller 1
   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.13.8-mvebu-tld-1 (root@tldDebian) (gcc (Debian 8.3.0-6) 8.3.0, GNU ld (GNU Binutils for Debian) 2.31.1) #1.0 SMP PREEMPT Sat Aug 7 14:58:41 PDT 2021
[    0.000000][    T0] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000][    T0] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000][    T0] OF: fdt: Machine model: WD My Cloud EX2100
[    0.000000][    T0] Memory policy: Data cache writealloc
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x000000002fffffff]
[    0.000000][    T0]   HighMem  [mem 0x0000000030000000-0x000000003fffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000][    T0] percpu: Embedded 21 pages/cpu s54668 r8192 d23156 u86016
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000][    T0] Kernel command line: mtdparts=armada-nand:-(fw);spi0.0:1m(uboot),64k(env),-(others) console=ttyS0,115200 root=/dev/sdb1 rw rootdelay=13 rootfstype=ext4
[    0.000000][    T0] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 1021136K/1048576K available (11264K kernel code, 1483K rwdata, 3112K rodata, 1024K init, 325K bss, 27440K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000][    T0] random: get_random_u32 called from ____cache_alloc+0x404/0x78c with crng_init=0
[    0.000000][    T0] trace event string verifier disabled
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] rcu: 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    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] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] L2C: DT/platform modifies aux control register: 0x06070000 -> 0x16070000
[    0.000000][    T0] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000][    T0] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000][    T0] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000][    T0] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000][    T0] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000][    T0] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000002][    T0] sched_clock: 64 bits at 533MHz, resolution 1ns, wraps every 2199023255551ns
[    0.000029][    T0] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x7aed16d152, max_idle_ns: 440795225656 ns
[    0.000056][    T0] Switching to timer-based delay loop, resolution 1ns
[    0.000326][    T0] Ignoring duplicate/late registration of read_current_timer delay
[    0.000340][    T0] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.001031][    T0] Console: colour dummy device 80x30
[    0.001066][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 1066.00 BogoMIPS (lpj=5330000)
[    0.001083][    T0] pid_max: default: 32768 minimum: 301
[    0.001248][    T0] LSM: Security Framework initializing
[    0.001321][    T0] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.001338][    T0] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.002077][    T0] CPU: Testing write buffer coherency: ok
[    0.002108][    T0] CPU0: Spectre v2: using BPIALL workaround
[    0.002269][    T1] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.002856][    T1] Setting up static identity map for 0x100000 - 0x100060
[    0.002988][    T1] mvebu-soc-id: MVEBU SoC ID=0x6810, Rev=0x4
[    0.003135][    T1] mvebu-pmsu: Initializing Power Management Service Unit
[    0.003272][    T1] rcu: Hierarchical SRCU implementation.
[    0.003920][    T1] smp: Bringing up secondary CPUs ...
[    0.004404][    T1] Booting CPU 1
[    1.040142][    T1] CPU1: failed to come online
[    1.040222][    T1] smp: Brought up 1 node, 1 CPU
[    1.040234][    T1] SMP: Total of 1 processors activated (1066.00 BogoMIPS).
[    1.040245][    T1] CPU: All CPU(s) started in SVC mode.
[    1.040655][    T1] devtmpfs: initialized
[    1.043909][    T1] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    1.044165][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    1.044196][    T1] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    1.050334][   T24] wait_for_initramfs() called before rootfs_initcalls
[    1.072579][    T1] prandom32: self test passed (less than 6 bits correlated)
[    1.072597][    T1] prandom: seed boundary self test passed
[    1.074557][    T1] prandom: 100 self tests passed
[    1.074564][    T1] pinctrl core: initialized pinctrl subsystem
[    1.076130][    T1] NET: Registered protocol family 16
[    1.076961][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    1.077690][    T1] audit: initializing netlink subsys (disabled)
[    1.079067][   T36] audit: type=2000 audit(1.070:1): state=initialized audit_enabled=0 res=1
[    1.080488][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    1.080646][    T1] cpuidle: using governor ladder
[    1.080681][    T1] cpuidle: using governor menu
[    1.080868][    T1] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    1.080881][    T1] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    1.081055][    T1] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    1.081072][    T1] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    1.340804][    T1] raid6: int32x8  gen()   195 MB/s
[    1.510620][    T1] raid6: int32x8  xor()   135 MB/s
[    1.680203][    T1] raid6: int32x4  gen()   224 MB/s
[    1.850229][    T1] raid6: int32x4  xor()   138 MB/s
[    2.020204][    T1] raid6: int32x2  gen()   358 MB/s
[    2.190225][    T1] raid6: int32x2  xor()   203 MB/s
[    2.360157][    T1] raid6: int32x1  gen()   398 MB/s
[    2.530145][    T1] raid6: int32x1  xor()   166 MB/s
[    2.530155][    T1] raid6: using algorithm int32x1 gen() 398 MB/s
[    2.530163][    T1] raid6: .... xor() 166 MB/s, rmw enabled
[    2.530170][    T1] raid6: using intx1 recovery algorithm
[    2.530995][    T1] vgaarb: loaded
[    2.531588][    T1] SCSI subsystem initialized
[    2.533591][    T1] usbcore: registered new interface driver usbfs
[    2.533693][    T1] usbcore: registered new interface driver hub
[    2.533783][    T1] usbcore: registered new device driver usb
[    2.534402][    T1] mc: Linux media interface: v0.10
[    2.534494][    T1] videodev: Linux video capture interface: v2.00
[    2.534845][    T1] pps_core: LinuxPPS API ver. 1 registered
[    2.534857][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    2.534927][    T1] PTP clock support registered
[    2.541155][    T1] clocksource: Switched to clocksource arm_global_timer
[    2.581546][    T1] VFS: Disk quotas dquot_6.6.0
[    2.581631][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    2.607003][    T1] NET: Registered protocol family 2
[    2.607156][    T1] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    2.611126][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    2.611380][    T1] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    2.611464][    T1] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    2.611567][    T1] TCP: Hash tables configured (established 8192 bind 8192)
[    2.611737][    T1] MPTCP token hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    2.611797][    T1] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    2.611836][    T1] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    2.612009][    T1] NET: Registered protocol family 1
[    2.622034][    T1] RPC: Registered named UNIX socket transport module.
[    2.622050][    T1] RPC: Registered udp transport module.
[    2.622058][    T1] RPC: Registered tcp transport module.
[    2.622065][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    2.622076][    T1] PCI: CLS 0 bytes, default 64
[    2.622256][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    2.622678][    T1] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    3.556326][    T1] Initialise system trusted keyrings
[    3.556368][    T1] Key type blacklist registered
[    3.557095][    T1] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    3.557197][    T1] zbud: loaded
[    3.558774][    T1] NFS: Registering the id_resolver key type
[    3.558806][    T1] Key type id_resolver registered
[    3.558816][    T1] Key type id_legacy registered
[    3.558843][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    3.558858][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    3.558867][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    3.634113][    T1] xor: measuring software checksum speed
[    3.639786][    T1]    arm4regs        :  1738 MB/sec
[    3.647335][    T1]    8regs           :  1310 MB/sec
[    3.654469][    T1]    32regs          :  1386 MB/sec
[    3.654479][    T1] xor: using function: arm4regs (1738 MB/sec)
[    3.654494][    T1] async_tx: api initialized (async)
[    3.654506][    T1] Key type asymmetric registered
[    3.654513][    T1] Asymmetric key parser 'x509' registered
[    3.654627][    T1] bounce: pool size: 64 pages
[    3.654779][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[    3.654865][    T1] io scheduler bfq registered
[    3.657213][    T1] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    3.659762][    T1] debugfs: Directory 'f1018100.gpio' with parent 'regmap' already present!
[    3.662335][    T1] debugfs: Directory 'f1018140.gpio' with parent 'regmap' already present!
[    3.663927][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    3.721868][    T1] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    3.723941][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    3.781861][    T1] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    3.926223][    T1] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    3.934128][    T1] printk: console [ttyS0] disabled
[    3.954738][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 31, base_baud = 15625000) is a 16550A
[    4.968912][    T1] printk: console [ttyS0] enabled
[    4.995537][    T1] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 32, base_baud = 15625000) is a 16550A
[    5.006906][    T1] ahci-mvebu f10a8000.sata: supply ahci not found, using dummy regulator
[    5.016782][    T1] ahci-mvebu f10a8000.sata: supply phy not found, using dummy regulator
[    5.025292][    T1] ahci-mvebu f10a8000.sata: supply target not found, using dummy regulator
[    5.034042][    T1] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    5.043903][    T1] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    5.055381][    T1] scsi host0: ahci-mvebu
[    5.060602][    T1] scsi host1: ahci-mvebu
[    5.065318][    T1] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 53
[    5.074307][    T1] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 53
[    5.084649][    T1] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    5.092722][    T1] nand: Hynix H27U1G8F2BTR-BC
[    5.097275][    T1] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    5.106277][    T1] Bad block table found at page 65472, version 0x01
[    5.113464][    T1] Bad block table found at page 65408, version 0x01
[    5.120336][    T1] 8 fixed-partitions partitions found on MTD device pxa3xx_nand-0
[    5.128207][    T1] Creating 8 MTD partitions on "pxa3xx_nand-0":
[    5.134364][    T1] 0x000000000000-0x000000500000 : "U-Boot"
[    5.141443][    T1] 0x000000500000-0x000000f00000 : "uImage"
[    5.149112][    T1] 0x000000a00000-0x000001900000 : "uRamdisk"
[    5.156987][    T1] 0x000000f00000-0x00001d700000 : "image.cfs"
[    5.163698][    T1] mtd: partition "image.cfs" extends beyond the end of device "pxa3xx_nand-0" -- size truncated to 0x7100000
[    5.176791][    T1] 0x00001c800000-0x000039f00000 : "rescue_fw"
[    5.183550][    T1] mtd: partition "rescue_fw" is out of reach -- disabled
[    5.191765][    T1] 0x00001d700000-0x00003c200000 : "config"
[    5.197453][    T1] mtd: partition "config" is out of reach -- disabled
[    5.206066][    T1] 0x00001eb00000-0x00003e000000 : "reserve1"
[    5.212730][    T1] mtd: partition "reserve1" is out of reach -- disabled
[    5.220760][    T1] 0x00001f500000-0x00003f400000 : "reserve2"
[    5.227434][    T1] mtd: partition "reserve2" is out of reach -- disabled
[    5.238466][    T1] spi-nor spi0.0: unrecognized JEDEC id bytes: ff ff ff ff ff ff
[    5.246728][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    5.255741][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    5.267995][    T1] libphy: Fixed MDIO Bus: probed
[    5.277666][    T1] libphy: orion_mdio_bus: probed
[    5.287109][    T1] mvneta_bm f10c8000.bm: Buffer Manager for network controller enabled
[    5.302968][    T1] mvneta f1070000.ethernet eth0: Using random mac address 36:58:64:d2:50:29
[    5.319385][    T1] mvneta f1034000.ethernet eth1: Using random mac address 9a:fc:ed:1c:fa:b9
[    5.330814][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.338878][    T1] ehci-pci: EHCI PCI platform driver
[    5.344389][    T1] ehci-orion: EHCI orion driver
[    5.349473][    T1] orion-ehci f1058000.usb: EHCI Host Controller
[    5.355789][    T1] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    5.364270][    T1] orion-ehci f1058000.usb: irq 49, io mem 0xf1058000
[    5.391166][    T1] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    5.398034][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.13
[    5.407068][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.415047][ T1228] ata2: SATA link down (SStatus 0 SControl 300)
[    5.421189][    T1] usb usb1: Product: EHCI Host Controller
[    5.426784][    T1] usb usb1: Manufacturer: Linux 5.13.8-mvebu-tld-1 ehci_hcd
[    5.434019][    T1] usb usb1: SerialNumber: f1058000.usb
[    5.439957][    T1] hub 1-0:1.0: USB hub found
[    5.444878][    T1] hub 1-0:1.0: 1 port detected
[    5.450775][    T1] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    5.457760][    T1] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    5.466152][    T1] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    5.477249][    T1] xhci-hcd f10f0000.usb3: irq 56, io mem 0xf10f0000
[    5.484056][    T1] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.13
[    5.493094][    T1] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.501044][    T1] usb usb2: Product: xHCI Host Controller
[    5.506654][    T1] usb usb2: Manufacturer: Linux 5.13.8-mvebu-tld-1 xhci-hcd
[    5.513827][    T1] usb usb2: SerialNumber: f10f0000.usb3
[    5.519802][    T1] hub 2-0:1.0: USB hub found
[    5.524694][    T1] hub 2-0:1.0: 1 port detected
[    5.529742][    T1] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    5.536172][    T1] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 3
[    5.544459][    T1] xhci-hcd f10f0000.usb3: Host supports USB 3.0 SuperSpeed
[    5.551738][    T1] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    5.560672][    T1] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.13
[    5.569703][    T1] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.577679][    T1] usb usb3: Product: xHCI Host Controller
[    5.583291][    T1] usb usb3: Manufacturer: Linux 5.13.8-mvebu-tld-1 xhci-hcd
[    5.590454][    T1] usb usb3: SerialNumber: f10f0000.usb3
[    5.596396][    T1] hub 3-0:1.0: USB hub found
[    5.601257][    T1] hub 3-0:1.0: 1 port detected
[    5.606679][    T1] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    5.612770][ T1223] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[    5.620407][    T1] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    5.628775][    T1] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x0000000000010010
[    5.638940][    T1] xhci-hcd f10f8000.usb3: irq 57, io mem 0xf10f8000
[    5.645745][    T1] usb usb4: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.13
[    5.654778][    T1] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.662942][    T1] usb usb4: Product: xHCI Host Controller
[    5.668539][    T1] usb usb4: Manufacturer: Linux 5.13.8-mvebu-tld-1 xhci-hcd
[    5.675724][    T1] usb usb4: SerialNumber: f10f8000.usb3
[    5.681692][    T1] hub 4-0:1.0: USB hub found
[    5.686545][    T1] hub 4-0:1.0: 1 port detected
[    5.691694][    T1] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    5.697737][    T1] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 5
[    5.706402][    T1] xhci-hcd f10f8000.usb3: Host supports USB 3.0 SuperSpeed
[    5.713615][    T1] usb usb5: We don't know the algorithms for LPM for this host, disabling LPM.
[    5.722672][    T1] usb usb5: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.13
[    5.731702][    T1] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.739652][    T1] usb usb5: Product: xHCI Host Controller
[    5.745330][    T1] usb usb5: Manufacturer: Linux 5.13.8-mvebu-tld-1 xhci-hcd
[    5.752511][    T1] usb usb5: SerialNumber: f10f8000.usb3
[    5.758448][    T1] hub 5-0:1.0: USB hub found
[    5.763337][    T1] hub 5-0:1.0: 1 port detected
[    5.768692][    T1] usbcore: registered new interface driver usblp
[    5.775846][    T1] usbcore: registered new interface driver usb-storage
[    5.783187][    T1] mousedev: PS/2 mouse device common for all mice
[    5.791753][    T1] armada38x-rtc f10a3800.rtc: registered as rtc0
[    5.798043][    T1] armada38x-rtc f10a3800.rtc: setting system clock to 2022-12-05T17:46:39 UTC (1670262399)
[    5.809742][    T1] i2c /dev entries driver
[    5.813996][   T25] usb 2-1: new high-speed USB device number 2 using xhci-hcd
[    5.822408][    T1] mv64xxx_i2c f1011000.i2c: can't get pinctrl, bus recovery not supported
[    5.831741][    T1] mv64xxx_i2c f1011100.i2c: can't get pinctrl, bus recovery not supported
[    5.844381][    T1] orion_wdt: Initial timeout 171 sec
[    5.851433][    T1] device-mapper: uevent: version 1.0.3
[    5.857153][    T1] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: dm-devel@redhat.com
[    5.866885][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    5.874214][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    5.881616][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    5.889004][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    5.895852][    T1] device-mapper: raid: Loading target version 1.15.1
[    5.902455][ T1223] ata1.00: ATA-8: ST9250311CS, SC16, max UDMA/133
[    5.908751][ T1223] ata1.00: 488397168 sectors, multi 16: LBA48 NCQ (depth 32)
[    5.919250][    T1] marvell-cesa f1090000.crypto: CESA device successfully registered
[    5.927563][ T1223] ata1.00: configured for UDMA/133
[    5.932710][    T1] hid: raw HID events driver (C) Jiri Kosina
[    5.939617][    T1] usbcore: registered new interface driver usbhid
[    5.946581][    T1] usbhid: USB HID core driver
[    5.951568][   T23] scsi 0:0:0:0: Direct-Access     ATA      ST9250311CS      SC16 PQ: 0 ANSI: 5
[    5.960863][    T1] drop_monitor: Initializing network drop monitor service
[    5.969206][    T7] sd 0:0:0:0: [sda] 488397168 512-byte logical blocks: (250 GB/233 GiB)
[    5.978575][    T1] NET: Registered protocol family 10
[    5.984278][    T7] sd 0:0:0:0: [sda] Write Protect is off
[    5.990832][    T1] Segment Routing with IPv6
[    5.995407][    T7] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    6.005286][    T1] RPL Segment Routing with IPv6
[    6.010075][    T1] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    6.017302][   T25] usb 2-1: New USB device found, idVendor=0781, idProduct=5567, bcdDevice= 2.00
[    6.028398][    T1] NET: Registered protocol family 17
[    6.034405][   T25] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    6.042455][    T1] 8021q: 802.1Q VLAN Support v1.8
[    6.047396][    T1] Key type dns_resolver registered
[    6.052448][   T25] usb 2-1: Product: Cruzer Blade
[    6.057352][    T7]  sda: sda1
[    6.060733][    T1] ThumbEE CPU extension supported.
[    6.065946][   T25] usb 2-1: Manufacturer: SanDisk
[    6.070760][   T25] usb 2-1: SerialNumber: 0831401AF491FF0F
[    6.077145][    T7] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    6.083710][    T1] Registering SWP/SWPB emulation handler
[    6.090304][    T1] registered taskstats version 1
[    6.095735][   T25] usb-storage 2-1:1.0: USB Mass Storage device detected
[    6.102939][    T1] Loading compiled-in X.509 certificates
[    6.108897][    T1] zswap: loaded using pool lzo/zbud
[    6.114711][   T25] scsi host2: usb-storage 2-1:1.0
[    6.121115][    T1] Key type ._fscrypt registered
[    6.125962][    T1] Key type .fscrypt registered
[    6.130599][    T1] Key type fscrypt-provisioning registered
[    6.137763][    T1] Key type big_key registered
[    6.143209][    T1] Key type encrypted registered
[    6.151293][    T1] Waiting 13 sec before mounting root device...
[    7.121688][    T7] scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer Blade     8.02 PQ: 0 ANSI: 0 CCS
[    7.132155][ T1493] sd 2:0:0:0: [sdb] 15695871 512-byte logical blocks: (8.04 GB/7.48 GiB)
[    7.141596][ T1493] sd 2:0:0:0: [sdb] Write Protect is off
[    7.147282][ T1493] sd 2:0:0:0: [sdb] No Caching mode page found
[    7.153385][ T1493] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[    7.164359][ T1493]  sdb: sdb1
[    7.169261][ T1493] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[   19.681165][    T1] md: Waiting for all devices to be available before autodetect
[   19.688682][    T1] md: If you don't use raid, use raid=noautodetect
[   19.695073][    T1] md: Autodetecting RAID arrays.
[   19.699882][    T1] md: autorun ...
[   19.703392][    T1] md: ... autorun DONE.
[   19.728091][    T1] EXT4-fs (sdb1): recovery complete
[   19.733220][    T1] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null). Quota mode: none.
[   19.743313][    T1] VFS: Mounted root (ext4 filesystem) on device 8:17.
[   19.758184][    T1] devtmpfs: mounted
[   19.763578][    T1] Freeing unused kernel memory: 1024K
[   19.769389][    T1] Checked W+X mappings: passed, no W+X pages found
[   19.775803][    T1] Run /sbin/init as init process
[   19.799307][    C0] random: fast init done
INIT: version 2.96 booting
Using makefile-style concurrent boot in runlevel S.
Files under mount point '/run' will be hidden. ... (warning).
Starting hotplug events dispatcher: systemd-udevd.
Synthesizing the initial hotplug events (subsystems)...done.
Synthesizing the initial hotplug events (devices)...done.
Waiting for /dev to be fully populated...[   23.064211][ T1721] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   23.119444][ T1721] sd 2:0:0:0: Attached scsi generic sg1 type 0
[   23.426608][ T1725] usbcore: registered new interface driver uas
done.
Setting hostname to 'debian'...done.
Activating swap:.
[   31.093753][    C0] random: crng init done
[   38.134357][ T1877] EXT4-fs (sdb1): re-mounted. Opts: (null). Quota mode: none.
Will now check root file system:[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sdb1 
e2fsck 1.46.2 (28-Feb-2021)
rootfs: clean, 22181/490560 files, 334420/1959924 blocks
.
[   38.385953][ T1890] EXT4-fs (sdb1): re-mounted. Opts: errors=remount-ro. Quota mode: none.
Will now check all file systems.
Checking all file systems.
LABEL=rootfs is mounted
Done checking file systems.
Log is being saved in /var/log/fsck/checkfs if that location is writable.
Cleaning up temporary files...
Cleaning /tmp...done.
 /tmp.
Will now mount local filesystems:.
Will now activate swapfile swap, if any:done.
Checking minimum space in /tmp...done.
Cleaning up temporary files....
Starting Setting kernel variables: sysctl.
Initializing random number generator...done.
[   40.809486][ T2307] mvneta f1070000.ethernet eth0: validation of rgmii-id with support 0000000,00000000,00006280 and advertisement 0000000,00000000,00002280 failed: -22
[   40.826540][ T2307] mvneta f1070000.ethernet eth0: could not attach PHY: -22
[   40.833765][ T2307] mvneta f1070000.ethernet eth0: cannot probe MDIO bus
Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

RTNETLINK answers: Invalid argument
Listening on LPF/eth0/c2:90:9a:b0:fd:d6
Sending on   LPF/eth0/c2:90:9a:b0:fd:d6
Sending on   Socket/fallback
receive_packet failed on eth0: Network is down
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
send_packet: Network is down
dhclient.c:2446: Failed to send 300 byte long packet over eth0 interface.
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
send_packet: Network is down
dhclient.c:2446: Failed to send 300 byte long packet over eth0 interface.
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 13
send_packet: Network is down
dhclient.c:2446: Failed to send 300 byte long packet over eth0 interface.
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
send_packet: Network is down
dhclient.c:2446: Failed to send 300 byte long packet over eth0 interface.
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
send_packet: Network is down
dhclient.c:2446: Failed to send 300 byte long packet over eth0 interface.
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 17
send_packet: Network is down
dhclient.c:2446: Failed to send 300 byte long packet over eth0 interface.
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.
Starting RPC port mapper daemon: rpcbind.
Starting NFS common utilities: statd idmapd.
Cleaning up temporary files....
INIT: Entering runlevel: 2
Using makefile-style concurrent boot in runlevel 2.
Not starting NFS kernel daemon: no exports. ... (warning).
Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2443 (syslogd)
.
Starting periodic command scheduler: cron.
Starting system message bus: dbus.
Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
Starting NTP server: ntpd.
Starting OpenBSD Secure Shell server: sshdsshd: no hostkeys available -- exiting.
 failed!
Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2477 (klogd)
.
Running local boot scripts (/etc/rc.local)
ssh-keygen: generating new host keys: RSA 
DSA 
ECDSA 
ED25519 

Starting OpenBSD Secure Shell server: sshd
.
Cannot read environment, using default
Cannot read default environment from file
<13>Dec  5 09:48:34 root[2572]: Cannot read u-boot env ethaddr
.

Debian GNU/Linux 11 debian ttyS0

debian login: root
Password: 
Linux debian 5.13.8-mvebu-tld-1 #1.0 SMP PREEMPT Sat Aug 7 14:58:41 PDT 2021 armv7l

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.
Last login: Mon Sep 27 22:36:43 PDT 2021 from 192.168.0.100 on pts/0
debian
WD My Cloud EX2100
Linux version 5.13.8-mvebu-tld-1 (root@tldDebian) (gcc (Debian 8.3.0-6) 8.3.0, GNU ld (GNU Binutils for Debian) 2.31.1) #1.0 SMP PREEMPT Sat Aug 7 14:58:41 PDT 2021
Debian 11.0
Mon Dec 5 09:48:40 PST 2022 up 1 minute
root@debian:~# uname -a
Linux debian 5.13.8-mvebu-tld-1 #1.0 SMP PREEMPT Sat Aug 7 14:58:41 PDT 2021 armv7l GNU/Linux

Note2: there is a reference about "WD My Cloud EX2100" in debian console, that's may be because I made different attempts with different dtb files and probably messed stuff. I need to clean the mess.

But it is a good progress :)
Re: Promise Apollo Cloud - Armada 385
December 05, 2022 06:02PM
ztof,

Congrats :) you're alomost there!

> root@debian:~# uname -a
> Linux debian 5.13.8-mvebu-tld-1 #1.0 SMP PREEMPT
> Sat Aug 7 14:58:41 PDT 2021 armv7l GNU/Linux
> [/code]
>
> Note2: there is a reference about "WD My Cloud
> EX2100" in debian console, that's may be because I
> made different attempts with different dtb files
> and probably messed stuff. I need to clean the
> mess.
>
> But it is a good progress :)

Indeed!

That "WD My Cloud EX2100" indicated that you are still running with the EX2100 DTB, not the DS116 like you expected. In fact, you did not used the DS116 DTB at all the whole time.

The kernel file /boot/uImage still have the Ex2100 appended to it. If you want to try the DS116, you need to recreate it with the DS116 DTB.

However, since the Ex2100 is very close to this box, keep this DTS as a base. And then start stripping out the board specific stuff, change the board name to Appolo Cloud,.... And then find the board specifics, and adding those in the DTS to use for this board. If you need help for don't know how to change the DTS, I'll help creating the new DTS and compile for you.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Promise Apollo Cloud - Armada 385
December 06, 2022 04:32PM
Today, I've read some stuff, then played and tested with new information, and I got the device tree DTB file saved from nand to USB.

Hit any key to stop autoboot:  0 
Marvell>> setenv mtdids "$mtdids_nand";setenv mtdparts "$mtdparts_nand"
Marvell>> usb start
(Re)start USB...
USB0:   Port (usbActive) : 0	Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
USB1:   Port (usbActive) : 0	Interface (usbType = 3) : 
Only one active controller supported! Skipping USB1 initialization.
lowlevel init failed
       scanning usb for storage devices... 1 Storage Device(s) found

####usb_read 0: 6, addr: 2000000
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
Marvell>> usb part

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

Part	Start Sector	Num Sectors	UUID		Type
  1	44        	15679396  	6f180f60-01	83
Marvell>> ubi part fw;ubi part fw;ubifsmount fw;
Creating 1 MTD partitions on "nand0":
0x000000000000-0x000008000000 : "mtd=0"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    126976 bytes
UBI: smallest flash I/O unit:    2048
UBI: VID header offset:          2048 (aligned 2048)
UBI: data offset:                4096
UBI: attached mtd1 to ubi0
UBI: MTD device name:            "mtd=0"
UBI: MTD device size:            128 MiB
UBI: number of good PEBs:        1016
UBI: number of bad PEBs:         8
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: available PEBs:             12
UBI: total number of reserved PEBs: 1004
UBI: number of PEBs reserved for bad PEB handling: 10
UBI: max/mean erase counter: 3/1
UBI: mtd1 is detached from ubi0
Creating 1 MTD partitions on "nand0":
0x000000000000-0x000008000000 : "mtd=0"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    126976 bytes
UBI: smallest flash I/O unit:    2048
UBI: VID header offset:          2048 (aligned 2048)
UBI: data offset:                4096
UBI: attached mtd1 to ubi0
UBI: MTD device name:            "mtd=0"
UBI: MTD device size:            128 MiB
UBI: number of good PEBs:        1016
UBI: number of bad PEBs:         8
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: available PEBs:             12
UBI: total number of reserved PEBs: 1004
UBI: number of PEBs reserved for bad PEB handling: 10
UBI: max/mean erase counter: 3/1
UBIFS: recovery needed
UBIFS: recovery deferred
UBIFS: mounted UBI device 0, volume 0, name "fw"
UBIFS: mounted read-only
UBIFS: file system size:   124309504 bytes (121396 KiB, 118 MiB, 979 LEBs)
UBIFS: journal size:       6221824 bytes (6076 KiB, 5 MiB, 49 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: LZO
UBIFS: reserved for root:  5182151 bytes (5060 KiB)
Marvell>> ubifsls /boot 
	 33508338  Thu Oct 13 06:08:29 2016  initramfs.img
	  1024228  Thu Dec 01 17:46:23 2022  uboot.bin
	  3802456  Thu Dec 01 17:46:23 2022  uImage
	    14977  Tue Oct 10 19:46:19 2017  device.dtb
Marvell>> ubifsload $fdtaddr /boot/device.dtb
Loading file '/boot/device.dtb' to addr 0x01000000 with size 14977 (0x00003a81)...
Done
Marvell>> ext4write usb 0:1 /boot/device.dtb $fdtaddr 14977
File System is consistent
update journal finished

With this linux command
dtc -I dtb -O dts -f device.dtb -o devicetree_apollo.dts

here is the readable DTS:

/dts-v1/;

/ {
	#address-cells = <0x1>;
	#size-cells = <0x1>;
	model = "Marvell Armada 385 Reference Design";
	compatible = "marvell,a385-db-gp", "marvell,armada385", "marvell,armada38x";

	chosen {
		bootargs = "console=ttyS0,115200 earlyprintk";
	};

	aliases {
		gpio0 = "/soc/internal-regs/gpio@18100";
		gpio1 = "/soc/internal-regs/gpio@18140";
	};

	memory {
		device_type = "memory";
		reg = <0x0 0x10000000>;
	};

	soc {
		compatible = "marvell,armada380-mbus", "simple-bus";
		#address-cells = <0x2>;
		#size-cells = <0x1>;
		controller = <0x1>;
		interrupt-parent = <0x2>;
		pcie-mem-aperture = <0xe0000000 0x8000000>;
		pcie-io-aperture = <0xe8000000 0x100000>;
		ranges = <0xf0010000 0x0 0xf1000000 0x100000 0x11d0000 0x0 0xfff00000 0x100000 0x9190000 0x0 0xf1100000 0x10000 0x9150000 0x0 0xf1110000 0x10000 0xc040000 0x0 0xf1200000 0x100000 0xb040000 0x0 0xf1300000 0x100000>;

		bootrom {
			compatible = "marvell,bootrom";
			reg = <0x11d0000 0x0 0x200000>;
		};

		cesa-sram {
			compatible = "marvell,cesa-sram";
			reg = <0x9190000 0x0 0x10000 0x9150000 0x0 0x10000>;
		};

		devbus-bootcs {
			compatible = "marvell,mvebu-devbus";
			reg = <0xf0010000 0x10400 0x8>;
			ranges = <0x0 0x12f0000 0x0 0xffffffff>;
			#address-cells = <0x1>;
			#size-cells = <0x1>;
			clocks = <0x3 0x0>;
			status = "disabled";
		};

		devbus-cs0 {
			compatible = "marvell,mvebu-devbus";
			reg = <0xf0010000 0x10408 0x8>;
			ranges = <0x0 0x13e0000 0x0 0xffffffff>;
			#address-cells = <0x1>;
			#size-cells = <0x1>;
			clocks = <0x3 0x0>;
			status = "disabled";
		};

		devbus-cs1 {
			compatible = "marvell,mvebu-devbus";
			reg = <0xf0010000 0x10410 0x8>;
			ranges = <0x0 0x13d0000 0x0 0xffffffff>;
			#address-cells = <0x1>;
			#size-cells = <0x1>;
			clocks = <0x3 0x0>;
			status = "disabled";
		};

		devbus-cs2 {
			compatible = "marvell,mvebu-devbus";
			reg = <0xf0010000 0x10418 0x8>;
			ranges = <0x0 0x13b0000 0x0 0xffffffff>;
			#address-cells = <0x1>;
			#size-cells = <0x1>;
			clocks = <0x3 0x0>;
			status = "disabled";
		};

		devbus-cs3 {
			compatible = "marvell,mvebu-devbus";
			reg = <0xf0010000 0x10420 0x8>;
			ranges = <0x0 0x1370000 0x0 0xffffffff>;
			#address-cells = <0x1>;
			#size-cells = <0x1>;
			clocks = <0x3 0x0>;
			status = "disabled";
		};

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

			coherency-fabric@21010 {
				compatible = "marvell,armada-380-coherency-fabric";
				reg = <0x21010 0x1c>;
			};

			mvebu-sar@18600 {
				compatible = "marvell,armada-380-core-clock";
				reg = <0x18600 0x4>;
				#clock-cells = <0x1>;
				linux,phandle = <0x3>;
				phandle = <0x3>;
			};

			corediv-clock@e4250 {
				compatible = "marvell,armada-38x-corediv-clock";
				reg = <0xe4250 0x8>;
				#clock-cells = <0x1>;
				clocks = <0x4>;
				clock-output-names = "nand";
				linux,phandle = <0x9>;
				phandle = <0x9>;
			};

			cpurst@20800 {
				compatible = "marvell,armada-380-cpu-reset";
				reg = <0x20800 0x10>;
				#reset-cells = <0x1>;
				linux,phandle = <0xe>;
				phandle = <0xe>;
			};

			mpcore-soc-ctrl@20d20 {
				compatible = "marvell,armada-380-mpcore-soc-ctrl";
				reg = <0x20d20 0x6c>;
			};

			mdio {
				#address-cells = <0x1>;
				#size-cells = <0x0>;
				compatible = "marvell,orion-mdio";
				reg = <0x72004 0x4>;
				clocks = <0x5 0x4>;

				ethernet-phy@0 {
					reg = <0x0>;
					linux,phandle = <0x7>;
					phandle = <0x7>;
				};

				ethernet-phy@1 {
					reg = <0x1>;
					linux,phandle = <0x8>;
					phandle = <0x8>;
				};
			};

			bm_pnc@c0000 {
				compatible = "marvell,neta_bm_pnc";
				reg = <0xc8000 0xac 0xb8000 0x48>;
				clocks = <0x5 0xd 0x5 0x1d>;
				neta_cap_bm = <0x3>;
				pnc_tcam_size = <0x400>;
			};

			ethernet@70000 {
				compatible = "marvell,neta";
				reg = <0x70000 0x4000>;
				interrupts-extended = <0x6 0x8>;
				clocks = <0x5 0x4>;
				tx-csum-limit = <0x2648>;
				status = "okay";
				mac-address = [00 50 43 02 02 01];
				eth,port-num = <0x0>;
				eth,port-mtu = <0x5dc>;
				phy = <0x7>;
				phy-mode = "rgmii";
			};

			ethernet@30000 {
				compatible = "marvell,neta";
				reg = <0x30000 0x4000>;
				interrupts-extended = <0x6 0xa>;
				clocks = <0x5 0x3>;
				tx-csum-limit = <0x800>;
				status = "okay";
				eth,port-num = <0x1>;
				eth,port-mtu = <0x5dc>;
				phy = <0x8>;
				phy-mode = "sgmii";
			};

			ethernet@34000 {
				compatible = "marvell,neta";
				reg = <0x34000 0x4000>;
				interrupts-extended = <0x6 0xc>;
				clocks = <0x5 0x2>;
				tx-csum-limit = <0x800>;
				status = "disabled";
				eth,port-num = <0x2>;
				eth,port-mtu = <0x5dc>;
			};

			clock-gating-control@18220 {
				compatible = "marvell,armada-380-gating-clock";
				reg = <0x18220 0x4>;
				clocks = <0x3 0x0>;
				#clock-cells = <0x1>;
				linux,phandle = <0x5>;
				phandle = <0x5>;
			};

			gpio@18100 {
				compatible = "marvell,orion-gpio";
				reg = <0x18100 0x40>;
				ngpios = <0x20>;
				gpio-controller;
				#gpio-cells = <0x2>;
				interrupt-controller;
				#interrupt-cells = <0x2>;
				interrupts = <0x0 0x35 0x4 0x0 0x36 0x4 0x0 0x37 0x4 0x0 0x38 0x4>;
			};

			gpio@18140 {
				compatible = "marvell,orion-gpio";
				reg = <0x18140 0x40>;
				ngpios = <0x1c>;
				gpio-controller;
				#gpio-cells = <0x2>;
				interrupt-controller;
				#interrupt-cells = <0x2>;
				interrupts = <0x0 0x3a 0x4 0x0 0x3b 0x4 0x0 0x3c 0x4 0x0 0x3d 0x4>;
				linux,phandle = <0xc>;
				phandle = <0xc>;
			};

			i2c@11000 {
				compatible = "marvell,mv64xxx-i2c";
				reg = <0x11000 0x20>;
				#address-cells = <0x1>;
				#size-cells = <0x0>;
				interrupts = <0x0 0x2 0x4>;
				timeout-ms = <0x3e8>;
				clocks = <0x3 0x0>;
				status = "okay";
				clock-frequency = <0x186a0>;
			};

			i2c@11100 {
				compatible = "marvell,mv64xxx-i2c";
				reg = <0x11100 0x20>;
				#address-cells = <0x1>;
				#size-cells = <0x0>;
				interrupts = <0x0 0x3 0x4>;
				timeout-ms = <0x3e8>;
				clocks = <0x3 0x0>;
				status = "okay";
				clock-frequency = <0x186a0>;
			};

			interrupt-controller@1e001000 {
				compatible = "arm,cortex-a9-gic";
				#interrupt-cells = <0x3>;
				#size-cells = <0x0>;
				interrupt-controller;
				reg = <0xd000 0x1000 0xc100 0x100>;
				linux,phandle = <0x2>;
				phandle = <0x2>;
			};

			cache-controller {
				compatible = "arm,pl310-cache";
				reg = <0x8000 0x1000>;
				cache-unified;
				cache-level = <0x2>;
			};

			clock-complex@18700 {
				#clock-cells = <0x1>;
				compatible = "marvell,armada-xp-cpu-clock", "armada-380-cpu-clock";
				reg = <0x18700 0xa0 0x1c054 0x40 0xe4260 0x8>;
				clocks = <0x3 0x1>;
				linux,phandle = <0xf>;
				phandle = <0xf>;
			};

			mbus-controller@20000 {
				compatible = "marvell,mbus-controller";
				reg = <0x20000 0x100 0x20180 0x20 0x20250 0x8 0x20420 0xc>;
				linux,phandle = <0x1>;
				phandle = <0x1>;
			};

			interrupt-controller@20000 {
				compatible = "marvell,mpic";
				reg = <0x20a00 0x2d0 0x21070 0x58 0x21870 0x190>;
				#interrupt-cells = <0x1>;
				#size-cells = <0x1>;
				interrupt-controller;
				msi-controller;
				interrupts = <0x1 0xf 0x4>;
				linux,phandle = <0x6>;
				phandle = <0x6>;
			};

			pinctrl {
				compatible = "marvell,mv88f6820-pinctrl";
				reg = <0x18000 0x20>;

				i2s_pins {
					marvell,pins = "mpp48", "mpp49", "mpp50", "mpp51", "mpp52", "mpp53";
					marvell,function = "audio";
				};

				tdm_pins {
					marvell,pins = "mpp48", "mpp49", "mpp50", "mpp51", "mpp52", "mpp53";
					marvell,function = "tdm2c";
				};

				spi1_pins {
					marvell,pins = "mpp55", "mpp56", "mpp57", "mpp58", "mpp59";
					marvell,function = "spi1";
				};

				pic-pins-0 {
					marvell,pins = "mpp33", "mpp34", "mpp35";
					marvell,function = "gpio";
					linux,phandle = <0xb>;
					phandle = <0xb>;
				};
			};

			pmsu@22000 {
				compatible = "marvell,armada-380-pmsu";
				reg = <0x22000 0x1000>;
			};

			sdramc@1400 {
				compatible = "marvell,armada-xp-sdram-controller";
				reg = <0x1400 0x500>;
			};

			rtc@a3800 {
				compatible = "marvell,mvebu-rtc";
				reg = <0xa3800 0x20 0x184a0 0xc>;
				interrupts = <0x0 0x15 0x4>;
			};

			sata@a8000 {
				compatible = "marvell,ahci-sata";
				reg = <0xa8000 0x2000>;
				interrupts = <0x0 0x1a 0x4>;
				clocks = <0x5 0xf>;
				status = "okay";
			};

			sata@e0000 {
				compatible = "marvell,ahci-sata";
				reg = <0xe0000 0x2000>;
				interrupts = <0x0 0x1c 0x4>;
				clocks = <0x5 0x1e>;
				status = "disabled";
			};

			tdm@b0000 {
				compatible = "marvell,armada-380-tdm";
				reg = <0xb0000 0x5000 0x18400 0xc 0x18730 0x4>;
				reg-names = "tdm_regs", "pll_regs", "dco_div";
				interrupts = <0x0 0x1b 0x4>;
				clocks = <0x5 0x19>;
				clock-names = "gateclk";
				status = "disabled";
			};

			sdhci@d8000 {
				compatible = "marvell,armada-380-sdhci";
				reg = <0xd8000 0x1000 0xdc000 0x100 0x18454 0x4>;
				interrupts = <0x0 0x19 0x4>;
				clocks = <0x5 0x11>;
				mrvl,clk-delay-cycles = <0x1f>;
				status = "okay";
				broken-cd;
				wp-inverted;
				bus-width = <0x8>;
			};

			audio-controller@e8000 {
				compatible = "marvell,armada-380-audio";
				reg = <0xe8000 0x4000 0x18410 0xc 0x18204 0x4>;
				interrupts = <0x0 0x4b 0x4>;
				clocks = <0x5 0x0>;
				clock-names = "internal";
				status = "disabled";
				linux,phandle = <0xd>;
				phandle = <0xd>;
			};

			scu@c000 {
				compatible = "arm,cortex-a9-scu";
				reg = <0xc000 0x58>;
			};

			serial@12000 {
				compatible = "snps,dw-apb-uart";
				reg = <0x12000 0x100>;
				reg-shift = <0x2>;
				interrupts = <0x0 0xc 0x4>;
				reg-io-width = <0x1>;
				clocks = <0x3 0x0>;
				status = "okay";
			};

			serial@12100 {
				compatible = "snps,dw-apb-uart";
				reg = <0x12100 0x100>;
				reg-shift = <0x2>;
				interrupts = <0x0 0xd 0x4>;
				reg-io-width = <0x1>;
				clocks = <0x3 0x0>;
				status = "disabled";
			};

			thermal@e8078 {
				compatible = "marvell,armada380-thermal";
				reg = <0xe4078 0x4 0xe4070 0x8 0xe4100 0x20>;
				interrupts = <0x0 0x4e 0x4>;
				threshold = <0x64>;
				hysteresis = <0x2>;
				status = "okay";
			};

			spi@10680 {
				compatible = "marvell,armada-380-spi";
				reg = <0x10680 0x50>;
				#address-cells = <0x1>;
				#size-cells = <0x0>;
				cell-index = <0x0>;
				interrupts = <0x0 0x3f 0x4>;
				clocks = <0x3 0x0>;
				num-cs = <0x4>;
				status = "okay";

				spi-flash@0 {
					#address-cells = <0x1>;
					#size-cells = <0x1>;
					compatible = "w25q16";
					reg = <0x0>;
					spi-max-frequency = <0x2faf080>;
				};
			};

			nand@d0000 {
				compatible = "marvell,armada-nand";
				interrupts = <0x0 0x54 0x4>;
				reg = <0xd0000 0x400>;
				clocks = <0x9 0x0>;
				clock-names = "ecc_clk";
				status = "okay";
				#address-cells = <0x1>;
				#size-cells = <0x1>;
				nfc,nfc-mode = "normal";
				nfc,nfc-dma = <0x0>;
				nfc,nfc-width = <0x8>;
				nfc,ecc-type = <0x1>;
				nfc,num-cs = <0x1>;
			};

			system-controller@18200 {
				compatible = "marvell,armada-380-system-controller";
				reg = <0x18200 0x100>;
			};

			timer@c600 {
				compatible = "arm,cortex-a9-twd-timer";
				reg = <0xc600 0x20>;
				interrupts = <0x1 0xd 0x301>;
				clocks = <0x3 0x2>;
			};

			usb@58000 {
				compatible = "marvell,orion-ehci";
				reg = <0x58000 0x500>;
				interrupts = <0x0 0x12 0x4>;
				clocks = <0x5 0x12>;
			};

			usb3@f0000 {
				compatible = "marvell,xhci-armada-380";
				reg = <0xf0000 0x3fff 0xf4000 0x3fff>;
				interrupts = <0x0 0x10 0x4>;
				clocks = <0x5 0x9>;
			};

			usb3@f8000 {
				compatible = "marvell,xhci-armada-380";
				reg = <0xf8000 0x3fff 0xfc000 0x3fff>;
				interrupts = <0x0 0x11 0x4>;
				clocks = <0x5 0xa>;
				status = "okay";
			};

			usb3-utmi@1842 {
				compatible = "marvell,armada-380-usb-utmi";
				reg = <0x18420 0x74 0xc0000 0x10000>;
			};

			timer@20300 {
				compatible = "marvell,armada-380-timer";
				reg = <0x20300 0x30 0x21040 0x30>;
				interrupts-extended = <0x2 0x0 0x8 0x4 0x2 0x0 0x9 0x4 0x2 0x0 0xa 0x4 0x2 0x0 0xb 0x4 0x6 0x5 0x6 0x6>;
				clocks = <0x3 0x2 0xa>;
				clock-names = "nbclk", "fixed";
			};

			watchdog@20300 {
				compatible = "marvell,armada-380-wdt";
				reg = <0x20300 0x34 0x20704 0x4 0x18260 0x4>;
				clocks = <0x3 0x2 0xa>;
				clock-names = "nbclk", "fixed";
			};

			xor@60800 {
				compatible = "marvell,a38x-xor";
				reg = <0x60800 0x100 0x60a00 0x100>;
				clocks = <0x5 0x16>;
				status = "okay";

				xor00 {
					interrupts = <0x0 0x16 0x4>;
					dmacap,memcpy;
					dmacap,xor;
					dmacap,interrupt;
					dmacap,pq;
				};

				xor01 {
					interrupts = <0x0 0x17 0x4>;
					dmacap,crc32c;
					dmacap,interrupt;
				};
			};

			xor@60900 {
				compatible = "marvell,a38x-xor";
				reg = <0x60900 0x100 0x60b00 0x100>;
				clocks = <0x5 0x1c>;
				status = "okay";

				xor10 {
					interrupts = <0x0 0x41 0x4>;
					dmacap,memcpy;
					dmacap,xor;
					dmacap,interrupt;
					dmacap,pq;
				};

				xor11 {
					interrupts = <0x0 0x42 0x4>;
					dmacap,crc32c;
					dmacap,interrupt;
				};
			};

			crypto@9D000 {
				compatible = "marvell,armada-cesa";
				reg = <0x9d000 0x1000 0x90000 0x1000 0x9f000 0x1000 0x92000 0x1000>;
				clocks = <0x5 0x17 0x5 0xe 0x5 0x15 0x5 0x10>;
				clock-names = "crypto0", "crypto0z", "crypto1", "crypto1z";
				cesa,channels = <0x2>;
				cesa,mode = "ocf";
				cesa,feature = "chain";
				cesa,threshold = <0x2>;
				cesa,time_threshold = <0xfffff>;
				cesa,ctrlModel = [68 00];
				cesa,ctrlRev = [02];
				cesa,sramOffset = [00 40];
				status = "okay";

				crypto10 {
					interrupts = <0x0 0x13 0x4>;
				};

				crypto11 {
					interrupts = <0x0 0x14 0x4>;
				};
			};

			pmu {
				compatible = "arm,cortex-a9-pmu";
				interrupts-extended = <0x6 0x3>;
			};

			prestera {
				compatible = "marvell,armada-prestera";
				status = "disabled";
			};

			pm_pic {
				pinctrl-0 = <0xb>;
				pinctrl-names = "default";
				ctrl-gpios = <0xc 0x1 0x1 0xc 0x2 0x1 0xc 0x3 0x1>;
			};
		};

		pcie-controller {
			compatible = "marvell,armada-38x-pcie";
			status = "okay";
			device_type = "pci";
			#address-cells = <0x3>;
			#size-cells = <0x2>;
			msi-parent = <0x6>;
			bus-range = <0x0 0xff>;
			ranges = <0x82000000 0x0 0x80000 0xf0010000 0x80000 0x0 0x2000 0x82000000 0x0 0x40000 0xf0010000 0x40000 0x0 0x2000 0x82000000 0x0 0x44000 0xf0010000 0x44000 0x0 0x2000 0x82000000 0x0 0x48000 0xf0010000 0x48000 0x0 0x2000 0x82000000 0x1 0x0 0x8e80000 0x0 0x1 0x0 0x81000000 0x1 0x0 0x8e00000 0x0 0x1 0x0 0x82000000 0x2 0x0 0x4e80000 0x0 0x1 0x0 0x81000000 0x2 0x0 0x4e00000 0x0 0x1 0x0 0x82000000 0x3 0x0 0x4d80000 0x0 0x1 0x0 0x81000000 0x3 0x0 0x4d00000 0x0 0x1 0x0 0x82000000 0x4 0x0 0x4b80000 0x0 0x1 0x0 0x81000000 0x4 0x0 0x4b00000 0x0 0x1 0x0>;

			pcie@1,0 {
				device_type = "pci";
				assigned-addresses = <0x82000800 0x0 0x80000 0x0 0x2000>;
				reg = <0x800 0x0 0x0 0x0 0x0>;
				#address-cells = <0x3>;
				#size-cells = <0x2>;
				#interrupt-cells = <0x1>;
				ranges = <0x82000000 0x0 0x0 0x82000000 0x1 0x0 0x1 0x0 0x81000000 0x0 0x0 0x81000000 0x1 0x0 0x1 0x0>;
				interrupt-map-mask = <0x0 0x0 0x0 0x0>;
				interrupt-map = <0x0 0x0 0x0 0x0 0x2 0x0 0x1d 0x4>;
				marvell,pcie-port = <0x0>;
				marvell,pcie-lane = <0x0>;
				clocks = <0x5 0x8>;
				status = "okay";
			};

			pcie@2,0 {
				device_type = "pci";
				assigned-addresses = <0x82000800 0x0 0x40000 0x0 0x2000>;
				reg = <0x1000 0x0 0x0 0x0 0x0>;
				#address-cells = <0x3>;
				#size-cells = <0x2>;
				#interrupt-cells = <0x1>;
				ranges = <0x82000000 0x0 0x0 0x82000000 0x2 0x0 0x1 0x0 0x81000000 0x0 0x0 0x81000000 0x2 0x0 0x1 0x0>;
				interrupt-map-mask = <0x0 0x0 0x0 0x0>;
				interrupt-map = <0x0 0x0 0x0 0x0 0x2 0x0 0x21 0x4>;
				marvell,pcie-port = <0x1>;
				marvell,pcie-lane = <0x0>;
				clocks = <0x5 0x5>;
				status = "okay";
			};

			pcie@3,0 {
				device_type = "pci";
				assigned-addresses = <0x82000800 0x0 0x44000 0x0 0x2000>;
				reg = <0x1800 0x0 0x0 0x0 0x0>;
				#address-cells = <0x3>;
				#size-cells = <0x2>;
				#interrupt-cells = <0x1>;
				ranges = <0x82000000 0x0 0x0 0x82000000 0x3 0x0 0x1 0x0 0x81000000 0x0 0x0 0x81000000 0x3 0x0 0x1 0x0>;
				interrupt-map-mask = <0x0 0x0 0x0 0x0>;
				interrupt-map = <0x0 0x0 0x0 0x0 0x2 0x0 0x46 0x4>;
				marvell,pcie-port = <0x2>;
				marvell,pcie-lane = <0x0>;
				clocks = <0x5 0x6>;
				status = "disabled";
			};

			pcie@4,0 {
				device_type = "pci";
				assigned-addresses = <0x82000800 0x0 0x48000 0x0 0x2000>;
				reg = <0x2000 0x0 0x0 0x0 0x0>;
				#address-cells = <0x3>;
				#size-cells = <0x2>;
				#interrupt-cells = <0x1>;
				ranges = <0x82000000 0x0 0x0 0x82000000 0x4 0x0 0x1 0x0 0x81000000 0x0 0x0 0x81000000 0x4 0x0 0x1 0x0>;
				interrupt-map-mask = <0x0 0x0 0x0 0x0>;
				interrupt-map = <0x0 0x0 0x0 0x0 0x2 0x0 0x47 0x4>;
				marvell,pcie-port = <0x3>;
				marvell,pcie-lane = <0x0>;
				clocks = <0x5 0x7>;
				status = "disabled";
			};
		};
	};

	clocks {

		oscillator {
			compatible = "fixed-clock";
			#clock-cells = <0x0>;
			clock-frequency = <0x17d7840>;
			linux,phandle = <0xa>;
			phandle = <0xa>;
		};

		mainpll {
			compatible = "fixed-clock";
			#clock-cells = <0x0>;
			clock-frequency = <0x77359400>;
			linux,phandle = <0x4>;
			phandle = <0x4>;
		};
	};

	switch {
		compatible = "marvell,mv_switch";
		status = "disabled";
		index = <0x0>;
		phy_addr = <0x2>;
		gbe_port = <0x0>;
		cpuPort = <0x6>;
		vid = <0x0>;
		port_mask = <0x7f>;
		connected_port_mask = <0x7f>;
		forced_link_port_mask = <0x60>;
		mtu = <0x5dc>;
		smi_scan_mode = <0x2>;
		qsgmii_module = <0x0>;
		gephy_on_port = <0x1f>;
		rgmiia_on_port = <0x60>;
		switch_irq = <0xffffffff>;
		is_speed_2000 = <0x0>;
		rgmii_rx_timing_delay = <0x1>;
		rgmii_tx_timing_delay = <0x1>;
	};

	sound {
		marvell,audio-controller = <0xd>;
		status = "disabled";
	};

	spdif-out {
		compatible = "linux,spdif-dit";
	};

	spdif-in {
		compatible = "linux,spdif-dir";
	};

	cpus {
		#address-cells = <0x1>;
		#size-cells = <0x0>;
		clock-ranges;

		cpu@0 {
			device_type = "cpu";
			compatible = "arm,cortex-a9";
			reg = <0x0>;
			resets = <0xe 0x0>;
			clocks = <0xf 0x0>;
			clock-latency = <0xf4240>;
			clock-names = "cpu0";
		};

		cpu@1 {
			device_type = "cpu";
			compatible = "arm,cortex-a9";
			reg = <0x1>;
			resets = <0xe 0x1>;
			clocks = <0xf 0x0>;
			clock-latency = <0xf4240>;
			clock-names = "cpu1";
		};
	};
};
Re: Promise Apollo Cloud - Armada 385
December 06, 2022 05:01PM
ztof,

Good works! now you have the DTS and DTB for this box (in a canonical format). So now you can try to boot with that DTB. However, I think it will not work correctly in a modern kernel such as 6.0.x, because of binding differences.

Regardless whether you can boot with this stock DTB, the next step is to retrofit the DTS nodes into the WD Ext2100 DTS. And use dtc to compile it.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Promise Apollo Cloud - Armada 385
December 07, 2022 02:41AM
Thanks bodhi,

Obviously I tried to boot with that DTB, just trying first the easiest path ;) ... but as you predicted I does not work correctly. It resulted in many errors and finally cannot access either USB nor Sata.

Marvell>> run usb0_boot 
5233273 bytes read in 557 ms (9 MiB/s)
** No boot file defined **
bootargs=mtdparts=armada-nand:-(fw);spi0.0:1m(uboot),64k(env),-(others) console=ttyS0,115200 root=/dev/sda1 rw rootdelay=13 rootfstype=ext4
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-5.13.8-mvebu-tld-1
   Created:      2022-12-06  22:36:19 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5233209 Bytes = 5 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK

Only one active controller supported! Skipping USB1 stop.
failed to stop USB controller 1
   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.13.8-mvebu-tld-1 (root@tldDebian) (gcc (Debian 8.3.0-6) 8.3.0, GNU ld (GNU Binutils for Debian) 2.31.1) #1.0 SMP PREEMPT Sat Aug 7 14:58:41 PDT 2021
[    0.000000][    T0] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000][    T0] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Marvell Armada 385 Reference Design
[    0.000000][    T0] Memory policy: Data cache writealloc
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x000000002fffffff]
[    0.000000][    T0]   HighMem  [mem 0x0000000030000000-0x000000003fffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000003fffffff]
[    0.000000][    T0] percpu: Embedded 21 pages/cpu s54668 r8192 d23156 u86016
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000][    T0] Kernel command line: mtdparts=armada-nand:-(fw);spi0.0:1m(uboot),64k(env),-(others) console=ttyS0,115200 root=/dev/sda1 rw rootdelay=13 rootfstype=ext4
[    0.000000][    T0] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 1021144K/1048576K available (11264K kernel code, 1483K rwdata, 3112K rodata, 1024K init, 325K bss, 27432K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000][    T0] random: get_random_u32 called from ____cache_alloc+0x404/0x78c with crng_init=0
[    0.000000][    T0] trace event string verifier disabled
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] rcu: 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    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] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000][    T0] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000][    T0] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000][    T0] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000][    T0] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x46070001
[    0.000000][    T0] Division by zero in kernel.
[    0.000000][    T0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.13.8-mvebu-tld-1 #1.0
[    0.000000][    T0] Hardware name: Marvell Armada 380/385 (Device Tree)
[    0.000000][    T0] [<c01153e8>] (unwind_backtrace) from [<c01100f8>] (show_stack+0x10/0x14)
[    0.000000][    T0] [<c01100f8>] (show_stack) from [<c0b05d18>] (dump_stack+0x80/0x9c)
[    0.000000][    T0] [<c0b05d18>] (dump_stack) from [<c0608fa4>] (Ldiv0+0x8/0x10)
[    0.000000][    T0] [<c0608fa4>] (Ldiv0) from [<c067c490>] (clk_cpu_recalc_rate+0x2c/0x30)
[    0.000000][    T0] [<c067c490>] (clk_cpu_recalc_rate) from [<c067735c>] (__clk_register+0x410/0x62c)
[    0.000000][    T0] [<c067735c>] (__clk_register) from [<c1028d10>] (of_cpu_clk_setup+0x200/0x2c0)
[    0.000000][    T0] [<c1028d10>] (of_cpu_clk_setup) from [<c10277f4>] (of_clk_init+0x17c/0x200)
[    0.000000][    T0] [<c10277f4>] (of_clk_init) from [<c100449c>] (time_init+0x20/0x30)
[    0.000000][    T0] [<c100449c>] (time_init) from [<c10010ec>] (start_kernel+0x59c/0x86c)
[    0.000000][    T0] [<c10010ec>] (start_kernel) from [<00000000>] (0x0)
[    0.000000][    T0] Division by zero in kernel.
[    0.000000][    T0] CPU: 0 PID: 0 Comm: swapper/0 Not tainted 5.13.8-mvebu-tld-1 #1.0
[    0.000000][    T0] Hardware name: Marvell Armada 380/385 (Device Tree)
[    0.000000][    T0] [<c01153e8>] (unwind_backtrace) from [<c01100f8>] (show_stack+0x10/0x14)
[    0.000000][    T0] [<c01100f8>] (show_stack) from [<c0b05d18>] (dump_stack+0x80/0x9c)
[    0.000000][    T0] [<c0b05d18>] (dump_stack) from [<c0608fa4>] (Ldiv0+0x8/0x10)
[    0.000000][    T0] [<c0608fa4>] (Ldiv0) from [<c067c490>] (clk_cpu_recalc_rate+0x2c/0x30)
[    0.000000][    T0] [<c067c490>] (clk_cpu_recalc_rate) from [<c067735c>] (__clk_register+0x410/0x62c)
[    0.000000][    T0] [<c067735c>] (__clk_register) from [<c1028d10>] (of_cpu_clk_setup+0x200/0x2c0)
[    0.000000][    T0] [<c1028d10>] (of_cpu_clk_setup) from [<c10277f4>] (of_clk_init+0x17c/0x200)
[    0.000000][    T0] [<c10277f4>] (of_clk_init) from [<c100449c>] (time_init+0x20/0x30)
[    0.000000][    T0] [<c100449c>] (time_init) from [<c10010ec>] (start_kernel+0x59c/0x86c)
[    0.000000][    T0] [<c10010ec>] (start_kernel) from [<00000000>] (0x0)
[    0.000000][    T0] Console: colour dummy device 80x30
[    0.000000][    T0] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836475000000ns
[    0.000000][    T0] Calibrating delay loop... 2118.45 BogoMIPS (lpj=10592256)
[    0.060000][    T0] pid_max: default: 32768 minimum: 301
[    0.060000][    T0] LSM: Security Framework initializing
[    0.060000][    T0] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.060000][    T0] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes, linear)
[    0.060000][    T0] CPU: Testing write buffer coherency: ok
[    0.060000][    T0] CPU0: Spectre v2: using BPIALL workaround
[    0.060000][    T1] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.060000][    T1] Setting up static identity map for 0x100000 - 0x100060
[    0.060000][    T1] mvebu-pmsu: Initializing Power Management Service Unit
[    0.060000][    T1] rcu: Hierarchical SRCU implementation.
[    0.060000][    T1] smp: Bringing up secondary CPUs ...
[    0.060000][    T1] smp: Brought up 1 node, 1 CPU
[    0.060000][    T1] SMP: Total of 1 processors activated (2118.45 BogoMIPS).
[    0.060000][    T1] CPU: All CPU(s) started in SVC mode.
[    0.060000][    T1] devtmpfs: initialized
[    0.060000][    T1] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.060000][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.060000][    T1] futex hash table entries: 512 (order: 3, 32768 bytes, linear)
[    0.070000][   T24] wait_for_initramfs() called before rootfs_initcalls
[    0.090000][    T1] prandom32: self test passed (less than 6 bits correlated)
[    0.090000][    T1] prandom: seed boundary self test passed
[    0.090000][    T1] prandom: 100 self tests passed
[    0.090000][    T1] pinctrl core: initialized pinctrl subsystem
[    0.090000][    T1] NET: Registered protocol family 16
[    0.090000][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.100000][    T1] audit: initializing netlink subsys (disabled)
[    0.100000][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.100000][    T1] cpuidle: using governor ladder
[    0.100000][    T1] cpuidle: using governor menu
[    0.100000][    T1] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.100000][    T1] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.110000][   T35] audit: type=2000 audit(0.100:1): state=initialized audit_enabled=0 res=1
[    0.360000][    T1] raid6: int32x8  gen()   195 MB/s
[    0.530000][    T1] raid6: int32x8  xor()   134 MB/s
[    0.700000][    T1] raid6: int32x4  gen()   224 MB/s
[    0.870000][    T1] raid6: int32x4  xor()   140 MB/s
[    1.040000][    T1] raid6: int32x2  gen()   358 MB/s
[    1.210000][    T1] raid6: int32x2  xor()   202 MB/s
[    1.380000][    T1] raid6: int32x1  gen()   398 MB/s
[    1.550000][    T1] raid6: int32x1  xor()   157 MB/s
[    1.550000][    T1] raid6: using algorithm int32x1 gen() 398 MB/s
[    1.550000][    T1] raid6: .... xor() 157 MB/s, rmw enabled
[    1.550000][    T1] raid6: using intx1 recovery algorithm
[    1.550000][    T1] vgaarb: loaded
[    1.550000][    T1] SCSI subsystem initialized
[    1.550000][    T1] usbcore: registered new interface driver usbfs
[    1.550000][    T1] usbcore: registered new interface driver hub
[    1.550000][    T1] usbcore: registered new device driver usb
[    1.550000][    T1] mc: Linux media interface: v0.10
[    1.550000][    T1] videodev: Linux video capture interface: v2.00
[    1.550000][    T1] pps_core: LinuxPPS API ver. 1 registered
[    1.550000][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    1.550000][    T1] PTP clock support registered
[    1.600000][    T1] VFS: Disk quotas dquot_6.6.0
[    1.600000][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    1.620000][    T1] NET: Registered protocol family 2
[    1.620000][    T1] IP idents hash table entries: 16384 (order: 5, 131072 bytes, linear)
[    1.620000][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    1.620000][    T1] TCP established hash table entries: 8192 (order: 3, 32768 bytes, linear)
[    1.620000][    T1] TCP bind hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    1.620000][    T1] TCP: Hash tables configured (established 8192 bind 8192)
[    1.620000][    T1] MPTCP token hash table entries: 1024 (order: 2, 16384 bytes, linear)
[    1.620000][    T1] UDP hash table entries: 512 (order: 2, 16384 bytes, linear)
[    1.620000][    T1] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes, linear)
[    1.620000][    T1] NET: Registered protocol family 1
[    1.620000][    T1] RPC: Registered named UNIX socket transport module.
[    1.620000][    T1] RPC: Registered udp transport module.
[    1.620000][    T1] RPC: Registered tcp transport module.
[    1.620000][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    1.620000][    T1] PCI: CLS 0 bytes, default 64
[    1.620000][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.620000][    T1] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    2.570000][    T1] Initialise system trusted keyrings
[    2.570000][    T1] Key type blacklist registered
[    2.570000][    T1] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    2.570000][    T1] zbud: loaded
[    2.570000][    T1] NFS: Registering the id_resolver key type
[    2.570000][    T1] Key type id_resolver registered
[    2.570000][    T1] Key type id_legacy registered
[    2.570000][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    2.570000][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    2.570000][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    2.570000][    T1] jitterentropy: Initialization failed with host not compliant with requirements: 2
[    2.570000][    T1] xor: measuring software checksum speed
[    2.580000][    T1]    arm4regs        : -1018167296 MB/sec
[    2.590000][    T1]    8regs           : -1018167296 MB/sec
[    2.600000][    T1]    32regs          : -1018167296 MB/sec
[    2.600000][    T1] xor: using function: 32regs (-1018167296 MB/sec)
[    2.600000][    T1] async_tx: api initialized (async)
[    2.600000][    T1] Key type asymmetric registered
[    2.600000][    T1] Asymmetric key parser 'x509' registered
[    2.600000][    T1] bounce: pool size: 64 pages
[    2.600000][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 244)
[    2.600000][    T1] io scheduler bfq registered
[    2.600000][    T1] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    2.740000][    T1] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    2.740000][    T1] printk: console [ttyS0] disabled
[    2.760000][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 41, base_baud = 15625000) is a 16550A
[    3.820000][    T1] printk: console [ttyS0] enabled
[    3.830000][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    3.840000][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    3.850000][    T1] libphy: Fixed MDIO Bus: probed
[    3.860000][    T1] libphy: orion_mdio_bus: probed
[    3.900000][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.900000][    T1] ehci-pci: EHCI PCI platform driver
[    3.910000][    T1] ehci-orion: EHCI orion driver
[    3.920000][    T1] orion-ehci f1058000.usb: EHCI Host Controller
[    3.920000][    T1] orion-ehci f1058000.usb: new USB bus registered, assigned bus number 1
[    3.930000][    T1] orion-ehci f1058000.usb: irq 45, io mem 0xf1058000
[    3.970000][    T1] orion-ehci f1058000.usb: USB 2.0 started, EHCI 1.00
[    3.970000][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.13
[    3.980000][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.990000][    T1] usb usb1: Product: EHCI Host Controller
[    3.990000][    T1] usb usb1: Manufacturer: Linux 5.13.8-mvebu-tld-1 ehci_hcd
[    4.000000][    T1] usb usb1: SerialNumber: f1058000.usb
[    4.010000][    T1] hub 1-0:1.0: USB hub found
[    4.010000][    T1] hub 1-0:1.0: 1 port detected
[    4.020000][    T1] usbcore: registered new interface driver usblp
[    4.020000][    T1] usbcore: registered new interface driver usb-storage
[    4.030000][    T1] mousedev: PS/2 mouse device common for all mice
[    4.040000][    T1] i2c /dev entries driver
[    4.040000][    T1] mv64xxx_i2c f1011000.i2c: can't get pinctrl, bus recovery not supported
[    4.060000][    T1] mv64xxx_i2c f1011100.i2c: can't get pinctrl, bus recovery not supported
[    4.080000][    T1] orion_wdt: Initial timeout 171 sec
[    4.080000][    T1] device-mapper: uevent: version 1.0.3
[    4.090000][    T1] device-mapper: ioctl: 4.45.0-ioctl (2021-03-22) initialised: dm-devel@redhat.com
[    4.100000][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    4.110000][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    4.110000][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    4.120000][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    4.130000][    T1] device-mapper: raid: Loading target version 1.15.1
[    4.130000][    T1] hid: raw HID events driver (C) Jiri Kosina
[    4.140000][    T1] usbcore: registered new interface driver usbhid
[    4.150000][    T1] usbhid: USB HID core driver
[    4.150000][    T1] drop_monitor: Initializing network drop monitor service
[    4.160000][    T1] NET: Registered protocol family 10
[    4.170000][    T1] Segment Routing with IPv6
[    4.170000][    T1] RPL Segment Routing with IPv6
[    4.180000][    T1] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    4.180000][    T1] NET: Registered protocol family 17
[    4.190000][    T1] 8021q: 802.1Q VLAN Support v1.8
[    4.200000][    T1] Key type dns_resolver registered
[    4.200000][    T1] ThumbEE CPU extension supported.
[    4.210000][    T1] Registering SWP/SWPB emulation handler
[    4.210000][    T1] registered taskstats version 1
[    4.220000][    T1] Loading compiled-in X.509 certificates
[    4.220000][    T1] zswap: loaded using pool lzo/zbud
[    4.230000][    T1] Key type ._fscrypt registered
[    4.230000][    T1] Key type .fscrypt registered
[    4.240000][    T1] Key type fscrypt-provisioning registered
[    4.240000][    T1] Key type big_key registered
[    4.250000][    T1] Key type encrypted registered
[    4.260000][    T1] Waiting 13 sec before mounting root device...
[   17.760000][    T1] md: Waiting for all devices to be available before autodetect
[   17.760000][    T1] md: If you don't use raid, use raid=noautodetect
[   17.770000][    T1] md: Autodetecting RAID arrays.
[   17.770000][    T1] md: autorun ...
[   17.780000][    T1] md: ... autorun DONE.
[   17.780000][    T1] VFS: Cannot open root device "sda1" or unknown-block(0,0): error -6
[   17.790000][    T1] Please append a correct "root=" boot option; here are the available partitions:
[   17.800000][    T1] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[   17.800000][    T1] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.13.8-mvebu-tld-1 #1.0
[   17.800000][    T1] Hardware name: Marvell Armada 380/385 (Device Tree)
[   17.800000][    T1] [<c01153e8>] (unwind_backtrace) from [<c01100f8>] (show_stack+0x10/0x14)
[   17.800000][    T1] [<c01100f8>] (show_stack) from [<c0b05d18>] (dump_stack+0x80/0x9c)
[   17.800000][    T1] [<c0b05d18>] (dump_stack) from [<c0b01150>] (panic+0xe4/0x2f0)
[   17.800000][    T1] [<c0b01150>] (panic) from [<c1001ad8>] (mount_block_root+0x1b4/0x238)
[   17.800000][    T1] [<c1001ad8>] (mount_block_root) from [<c1001c4c>] (mount_root+0xf0/0x11c)
[   17.800000][    T1] [<c1001c4c>] (mount_root) from [<c1001dbc>] (prepare_namespace+0x144/0x180)
[   17.800000][    T1] [<c1001dbc>] (prepare_namespace) from [<c1001640>] (kernel_init_freeable+0x230/0x29c)
[   17.800000][    T1] [<c1001640>] (kernel_init_freeable) from [<c0b0d9ac>] (kernel_init+0x8/0x118)
[   17.800000][    T1] [<c0b0d9ac>] (kernel_init) from [<c0100150>] (ret_from_fork+0x14/0x24)
[   17.800000][    T1] Exception stack(0xc18cffb0 to 0xc18cfff8)
[   17.800000][    T1] ffa0:                                     00000000 00000000 00000000 00000000
[   17.800000][    T1] ffc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   17.800000][    T1] ffe0: 00000000 00000000 00000000 00000000 00000013 00000000
[   17.800000][    T1] ---[ end Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0) ]---

Both armada-385-synology-ds116.dtb and armada-385-wd-ex2100.dtb do boot the board (my previous confusion between them was because I was playing with different folders during my tests). But with synology-ds116 Ethernet is not working properly.

As you suggest I will start with armada-385-wd-ex2100.dtb as a basis. As from now that I can see in readable text inside dts files, I can also compare stuff, and it may be closer to my board than synology's one.
For instance both armada-385-wd-ex2100 and original Apollo dtb share that same definition for Ethernet phy-mode = "rgmii"; (while for synology-ds116 it is phy-mode = "sgmii";).



Edited 1 time(s). Last edit at 12/07/2022 02:47AM by ztof.
Re: Promise Apollo Cloud - Armada 385
December 07, 2022 03:58PM
ztof,

> As you suggest I will start with
> armada-385-wd-ex2100.dtb as a basis.

The armada-385-wd-ex2100 source DTS is in my patch for each release. You don't have to decompile the DTB.

Quote

Updated 09 Nov 2022:

Kernel 6.0.7-mvebu-tld-1 package has been uploaded.

Download at Dropbox

linux-6.0.7-mvebu-tld-1-bodhi.tar.bz2

To make it a bit easier for you I've attached the DTS here.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - armada-385-wd-ex2100.dts (5.5 KB)
Re: Promise Apollo Cloud - Armada 385
December 09, 2022 02:09AM
bodhi, thanks for the file.

I think it will take me more time (with some trials and errors) than the first steps I've done. I've not yet managed to get Ethernet working, getting domino effects while adapting data. And also I'm a bit busy these days.

Just one newbie question: do I need get the full linux repository ( https://github.com/torvalds/linux/ ) in order to compile dts to dtb ?

As there are some includes cascading in dtsi file. For instance:
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>

But I still get the motivation:
1. for me to repurpose this device
2. for other people. As I've seen lots of unsatisfaction about this device (due to stock OS) from buyers reviews and in users forum. While the Apollo Cloud is not as widespread as.Synology or WD, I think it could be valuable to get an alternative second life for it.
Re: Promise Apollo Cloud - Armada 385
December 09, 2022 05:59PM
ztof,

> #include
> <dt-bindings/interrupt-controller/arm-gic.h>
> #include <dt-bindings/interrupt-controller/irq.h>

The dt-bindings are included in the kernel headers.

Usually when you want to compile something that is not a kernel itself, you would:

- Install the linux headers for the running kernel:
dpkg -i linux-headers-6.0.7-kirkwood-tld-1_1.0_armel.deb
- Install the toolchains
.... so on

To build the kernel (therefore compiling all DTS) you don't need to install the headers, because you are doing it inside the kernel source tree.

In this case, the DTS will include other .dtsi in its include chain. So other .dtsi files must be in the folder where you compile the DTS. And the only place you would find them is in the kernel source tree ./arch/arm/boot/dts/

But it is now getting too far into the subject that I've been trying to avoid (building kernel, patching kernel,...) It just take too much time that I don't have.

For a new box, I usually create a new DTS, compile it and let others test its DTB. That way I only need to spend a few minutes or an hour here and there in this forum.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Promise Apollo Cloud - Armada 385
December 10, 2022 03:42AM
Thanks again, I don't want to spend too much of your time.
My objective is that at the end of my researches to be able to provide you a DTS (overlay) file for this board. So you can include it in your releases.

For the moment I'm struggling with Ethernet/network things... Ethernet NIC seems to work (ifup/ifdown seems to work, LEDs also, pluging/unpluping cable results correctly to Link is Up/Link is Down) but no network communication neither with dhcp nor with static IP. But I think it's a minor configuration tweak (like clock setting or something like that) or at OS level. Whatever, there are lots of ressources available online, and I'll do my homework ;)

Have a good day.
Re: Promise Apollo Cloud - Armada 385
December 10, 2022 03:29PM
ztof,

> For the moment I'm struggling with
> Ethernet/network things... Ethernet NIC seems to
> work (ifup/ifdown seems to work, LEDs also,
> pluging/unpluping cable results correctly to Link
> is Up/Link is Down) but no network communication
> neither with dhcp nor with static IP.

It's a very common 1st issue when you use an existing board DTS for a new one with the same SoC.

> But I think
> it's a minor configuration tweak (like clock
> setting or something like that) or at OS level.

It's usually the PHY addr of the network that is different. This is in the DTS nodes.

> Whatever, there are lots of ressources available
> online, and I'll do my homework ;)
>

That's something I can help looking at your boot log, and in stock OS (if you can still login).

Log in to stock OS and make sure network is up and working (eg. ping the router), and
ethtool eth0

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



Edited 1 time(s). Last edit at 12/10/2022 03:58PM by bodhi.
Apollo
Re: Promise Apollo Cloud - Armada 385
December 14, 2022 09:51PM
I got this device too, hopely developement goes well.
Re: Promise Apollo Cloud - Armada 385
January 18, 2023 11:28PM
Just received this device and the first issue I see with the device tree provided above is that it defines 2 CPUs. This device has an 88F6810 as defined by your U-Boot log above and by inspection of the board. So you should remove the cpu@1 definition from your DTS file.
Re: Promise Apollo Cloud - Armada 385
February 15, 2023 04:53PM
Hi
Any advance? I have one of them and I would like to repourpse it to a full nas, for smb mainly.

Kind regards.
Re: Promise Apollo Cloud - Armada 385
February 15, 2023 05:26PM
@Ray,

> Just received this device and the first issue I
> see with the device tree provided above is that it
> defines 2 CPUs. This device has an 88F6810 as
> defined by your U-Boot log above and by inspection
> of the board. So you should remove the cpu@1
> definition from your DTS file.

Correct, it should be fixed. However, it does not affect the kernel booting. The kernel should just fail to find the 2nd CPU, and then go on running.

@all,

I can help figure out the rest and bring up this box. But I need a tester who can run tests and post results.

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



Edited 2 time(s). Last edit at 02/16/2023 02:31PM by bodhi.
apollo
Re: Promise Apollo Cloud - Armada 385
September 23, 2023 08:20PM
I got it connected with cable but no connection is made.

do you have photo to indicate pin layout?
apollo
Re: Promise Apollo Cloud - Armada 385
September 24, 2023 06:04PM
I found photo of board but not sure about serial port location

https://wikidevi.wi-cat.ru/Promise_Apollo_Cloud
Re: Promise Apollo Cloud - Armada 385
September 24, 2023 07:24PM
apollo Wrote:
-------------------------------------------------------
> I found photo of board but not sure about serial
> port location
>
> https://wikidevi.wi-cat.ru/Promise_Apollo_Cloud

Yeah, ztof was not clear where that serial port is.

Quote

from top of the board it's:
+----+----+-----+----+
|3.3V| RX | GND | TX |
+----+----+-----+----+

But my guess is the CN4 (the marking is on bottom side of the board).

Flip the board to the top side.

The 1st pin from left to -right (squared/rectangle) is 3.3V. The 3rd pin counting from the left is GND.

You should connect Tx and Rx and connect the GND wire to somewhere on the board where there is ground (to be safe). Don't connect to the 3rd pin yet. Once the TX and RX are OK, i.e serial console is working, then you can trust that the 3rd pin is GND and the 1st pin is 3.3V.

Or better yet, use a multimeter to measure the 1st pin current to see if it is really 3.3V.

Oh, I should say do it at your own risk :) that's only my educated guess.

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



Edited 1 time(s). Last edit at 09/24/2023 07:25PM by bodhi.
Re: Promise Apollo Cloud - Armada 385
September 24, 2023 10:21PM
I created the wikidevi page back in January so my memory is not clear, but I do believe CN4 was the serial port.

Ray
Re: Promise Apollo Cloud - Armada 385
September 24, 2023 11:13PM
rayknight Wrote:
-------------------------------------------------------
> I created the wikidevi page back in January so my
> memory is not clear, but I do believe CN4 was the
> serial port.
>
> Ray

Thanks Ray!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
apollo
Re: Promise Apollo Cloud - Armada 385
November 02, 2023 05:30AM
trying to connect by usb to serial cable on windows using putty(com7 with speed 115200), but keep getting message 'unable to open connection to com7,unable to open serial port)

can I use windows pc using putty?
Re: Promise Apollo Cloud - Armada 385
November 02, 2023 12:48PM
> can I use windows pc using putty?

Yes, you can use putty for serial console.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
apollo
Re: Promise Apollo Cloud - Armada 385
November 02, 2023 02:58PM
now I got no error, but I can't read, 115200 is correct speed?
apollo
Re: Promise Apollo Cloud - Armada 385
November 02, 2023 04:27PM
current setupapollo
Re: Promise Apollo Cloud - Armada 385
November 02, 2023 04:48PM
If you run picocom on a Linux box, it would be:

#picocom --b 115200 --f n --p n --d 8 /dev/ttyUSB0

picocom v3.1

port is        : /dev/ttyUSB0
flowcontrol    : none
baudrate is    : 115200
parity is      : none
databits are   : 8
stopbits are   : 1
escape is      : C-a
local echo is  : no
noinit is      : no
noreset is     : no
hangup is      : no
nolock is      : no
send_cmd is    : sz -vv
receive_cmd is : rz -vv -E
imap is        : 
omap is        : 
emap is        : crcrlf,delbs,
logfile is     : none
initstring     : none
exit_after is  : not set
exit is        : no

These parameters are important:

flowcontrol    : none
baudrate is    : 115200
parity is      : none
databits are   : 8
stopbits are   : 1

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

Your Email:


Subject:


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