Welcome! Log In Create A New Profile

Advanced

Debian on Mirabox (Armada 370)

Posted by LeggoMyEggo 
Re: Debian on Mirabox (Armada 370)
September 13, 2019 08:34PM
daviddyer Wrote:
-------------------------------------------------------
> Mirabox sucks... Tried one cheap HP SSD with USB3
> enclosure, DD speed about 140MB/s read, 50MB/s
> write (maybe the enclosure sucks, too), tried
> samba, only about 25MB/s read, 10MB/s write. iperf
> is about 400-500Mbit/s.. Even worse than the
> GoflexHome... Will just put it aside and stick to
> my good old GoflexHome.

FWIW, I'd agree with David about this box. It is not what I expected it to be. i.e. a good vehicle for me to work on the MVEBU u-boots.

I guess I will go back to the Thecus N2350 as my own reference box. Consider the horse power, design, and cost, the N2350 is still my best choice.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Mirabox (Armada 370)
October 19, 2019 11:44PM
So I finally got around to trying to get a current Debian on the 2 Miraboxes that I have. I have two very different versions. The 1st unit I have had for a couple of years and it is very different from one that I acquired recently. The recent unit appears to be similar to what was used to create the dts file and the instructions bodhi created for getting a current version of Debian installed. External labeling on both boxes is identical with the exception of Input power. The unit I recently acquired takes 5V @ 3A while the box I have had longer takes 12V @ 2A. The other external difference is that the recently acquired box has not attachments on the right side whereas the box I have had longer has two 4 pin and one 8 pin JST attachments on the right side. The one with no attachments on the right has an additional opening on the left behind the microSD slot, while the other has only a microSD slot on the left. Opening the units shows that the circuit boards have very different designs. The recently acquired one has MiraBox_II_V5-0-1 silk-screened on the board while the other has MiraBox_II_V9-0-0. Other differences is the V5 box has 1GB NAND flash and the microSD appears as a USB device, while the V9 has 2MB of SPI flash, a 4GB eMMC on the USB bus, the microSD appears as an mmc device and there is an internal mSATA slot.

Boot log from MiraBox V5 with stock code:

BootROM 1.08
Booting from NAND flash
DDR3 Training Sequence - Ver 2.1.6 
DDR3 Training Sequence - Number of DIMMs detected: 1
DDR3 Training Sequence - Ended Successfully 
BootROM: Image checksum verification PASSED

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


U-Boot 2009.08 (Sep 16 2012 - 22:50:06)Marvell version: 1.1.2 NQ
U-Boot Addressing:
       Code:            00600000:006AFFF0
       BSS:             006F8E40
       Stack:           0x5fff70
       PageTable:       0x8e0000
       Heap address:    0x900000:0xe00000
Board: DB-88F6710-BP
SoC:   MV6710 A1
CPU:   Marvell PJ4B v7 UP (Rev 1) LE
       CPU @ 1200Mhz, L2 @ 600Mhz
       DDR @ 600Mhz, TClock @ 200Mhz
       DDR 16Bit Width, FastPath Memory Access
PEX 0: Detected No Link.
PEX 1: Root Complex Interface, Detected Link X1
DRAM:   1 GB
       CS 0: base 0x00000000 size 512 MB
       CS 1: base 0x20000000 size 512 MB
       Addresses 14M - 0M are saved for the U-Boot usage.
NAND:  1024 MiB
Bad block table found at page 262016, version 0x01
Bad block table found at page 261888, version 0x01
FPU not initialized
USB 0: Host Mode
USB 1: Host Mode
Modules/Interfaces Detected:
       RGMII0 Phy
       RGMII1 Phy
       PEX0 (Lane 0)
       PEX1 (Lane 1)
phy16= 72 
phy16= 72 
MMC:   MRVL_MMC: 0
Net:   egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0 

NAND read: device 0 offset 0x400000, size 0x400000
 4194304 bytes read: OK
## Booting kernel from Legacy Image at 06400000 ...
   Image Name:   Linux-3.2.36
   Created:      2013-10-07   1:30:12 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3839192 Bytes =  3.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 3.2.36 (root@localhost.localdomain) (gcc version 4.4.1 (sdk4.0-ct-ng-1.8.0) ) #5 Sun Oct 6 21:30:02 EDT 2013
CPU: Marvell PJ4Bv7 Processor [561f5811] revision 1 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
Machine: Marvell Armada-370
Using UBoot passing parameters structure
>>>>>>>Tag MAC 84:75:02:4e:ad:f0
>>>>>>>Tag MAC 85:75:02:4e:ad:f0
Memory policy: ECC disabled, Data cache writealloc
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 260096
Kernel command line: console=ttyS0,115200 $mtdparts ubi.mtd=2 root=ubi0:rootfs rootfstype=ubifs
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1024MB = 1024MB total
Memory: 1030736k/1030736k available, 17840k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xc0800000 - 0xfa800000   ( 928 MB)
    lowmem  : 0x80000000 - 0xc0000000   (1024 MB)
    modules : 0x7f000000 - 0x80000000   (  16 MB)
      .text : 0x80008000 - 0x807d0000   (7968 kB)
      .init : 0x807d0000 - 0x807fe000   ( 184 kB)
      .data : 0x807fe000 - 0x808654c0   ( 414 kB)
       .bss : 0x808654e4 - 0x8089ad4c   ( 215 kB)
NR_IRQS:256
a370_time_init
sched_clock: 32 bits at 600MHz, resolution 1ns, wraps every 7158ms
Calibrating delay loop... 1196.85 BogoMIPS (lpj=5984256)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
hw perfevents: no hardware support available
devtmpfs: initialized
xor: measuring software checksum speed
   arm4regs  :  1149.200 MB/sec
   8regs     :   814.800 MB/sec
   32regs    :  1144.800 MB/sec
xor: using function: arm4regs (1149.200 MB/sec)
NET: Registered protocol family 16
L0 cache Enabled
Speculative Prefetch Disabled
Aurora L2 Cache Enabled
Support IO coherency.
Enable DLB and DRAM write coalescing

CPU Interface
-------------
SDRAM_CS0 ....base 00000000, size 512MB 
SDRAM_CS1 ....base 20000000, size 512MB 
SDRAM_CS2 ....disable
SDRAM_CS3 ....disable
DEVICE_CS0 ....base f2000000, size  32MB 
DEVICE_CS1 ....no such
DEVICE_CS2 ....no such
DEVICE_CS3 ....no such
PEX0_MEM ....base e0000000, size  32MB 
PEX0_IO ....base f1100000, size   1MB 
PEX1_MEM ....base e2000000, size  32MB 
PEX1_IO ....base f1200000, size   1MB 
INTER_REGS ....base d0000000, size   1MB 
DMA_UART ....no such
SPI_CS0 ....base f0000000, size  16MB 
SPI_CS1 ....no such
SPI_CS2 ....no such
SPI_CS3 ....no such
SPI_CS4 ....no such
SPI_CS5 ....no such
SPI_CS6 ....no such
SPI_CS7 ....no such
BOOT_ROM_CS ....no such
DEV_BOOTCS ....base f5000000, size  16MB 
PMU_SCRATCHPAD ....no such
CRYPT0_ENG ....base c8010000, size  64KB 

  Marvell Armada370 Board-- DB-88F6710-BP  Soc: MV6710 A1 LE
  LSP version: linux-3.2.y-2013_Q1.0p2


 Detected Tclk 200000000, SysClk 600000000, FabricClk 600000000
Marvell USB EHCI Host controller #0: 81173600
Marvell USB EHCI Host controller #1: 81173400
PCI: bus0: Fast back to back transfers enabled
PCI: bus1: Fast back to back transfers disabled
pci 0000:01:00.0: BAR 0: assigned [mem 0xe2000000-0xe200ffff 64bit]
pci 0000:01:00.0: BAR 0: set to [mem 0xe2000000-0xe200ffff 64bit] (PCI address [0xe2000000-0xe200ffff])
pci 0000:01:00.0: BAR 2: assigned [mem 0xe2010000-0xe2010fff 64bit]
pci 0000:01:00.0: BAR 2: set to [mem 0xe2010000-0xe2010fff 64bit] (PCI address [0xe2010000-0xe2010fff])
pci 0000:01:00.0: BAR 4: assigned [mem 0xe2011000-0xe2011fff 64bit]
pci 0000:01:00.0: BAR 4: set to [mem 0xe2011000-0xe2011fff 64bit] (PCI address [0xe2011000-0xe2011fff])
bio: create slab <bio-0> at 0
raid6: int32x1    121 MB/s
raid6: int32x2    157 MB/s
raid6: int32x4    198 MB/s
raid6: int32x8    226 MB/s
raid6: using algorithm int32x8 (226 MB/s)
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Advanced Linux Sound Architecture Driver Version 1.0.24.
cfg80211: Calling CRDA to update world regulatory domain
Switching to clocksource armada370_clocksource
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
TCP bind hash table entries: 65536 (order: 6, 262144 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
UDP hash table entries: 512 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 512 (order: 1, 8192 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
cesadev_init(807d7b78)
mvCesaInit: channels=1, session=640, queue=64
Armada XP hwmon thermal sensor initialized.
Initializing Armada-XP CPU power management  (WFI)
squashfs: version 4.0 (2009/01/31) Phillip Lougher
NTFS driver 2.1.30 [Flags: R/O].
JFFS2 version 2.2. (NAND) <C2><A9> 2001-2006 Red Hat, Inc.
fuse init (API version 7.17)
SGI XFS with security attributes, large block/inode numbers, no debug enabled
Btrfs loaded
msgmni has been set to 2013
async_tx: api initialized (async)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Initializing ths8200_init
Initializing dove_adi9889_init
mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
mv_xor mv_xor.0: Marvell XOR: ( xor )
mv_xor mv_xor.1: Marvell XOR: ( xor )
mv_xor mv_xor.2: Marvell XOR: ( cpy )
mv_xor mv_xor.3: Marvell XOR: ( fill cpy )
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xd0012000 (irq = 41) is a 16550A
console [ttyS0] enabled
brd: module loaded
loop: module loaded
sata_mv sata_mv.0: slots 32 ports 2
scsi0 : sata_mv
scsi1 : sata_mv
ata1: SATA max UDMA/133 irq 55
ata2: SATA max UDMA/133 irq 55
mvSFlashInit ERROR: Unknown SPI flash device!
ERROR: sflash_probe - Failed to initialize the SFlash.
armada-nand armada-nand.0: Initialize HAL based NFC in 8bit mode with DMA Disabled using BCH 4bit ECC
NAND device: Manufacturer ID: 0x2c, Chip ID: 0x38 (Micron NAND 1GiB 3,3V 8-bit)
Bad block table found at page 262016, version 0x01
Bad block table found at page 261888, version 0x01
Creating 3 MTD partitions on "armada-nand":
0x000000000000-0x000000400000 : "UBoot"
0x000000400000-0x000000800000 : "UImage"
0x000000800000-0x000040000000 : "Root"
mv_eth_probe: port_mask=0x3, cpu_mask=0x1 
0 - Base 0x00000000 , Size = 0x00000000.
1 - Base 0x20000000 , Size = 0x00000000.
4 - Base 0xf2000000 , Size = 0x00000000.
8 - Base 0xe0000000 , Size = 0x00000000.
9 - Base 0xf1100000 , Size = 0x00000000.
10 - Base 0xe2000000 , Size = 0x00000000.
11 - Base 0xf1200000 , Size = 0x00000000.
12 - Base 0xd0000000 , Size = 0x00000000.
14 - Base 0xf0000000 , Size = 0x00000000.
23 - Base 0xf5000000 , Size = 0x00000000.
25 - Base 0xc8010000 , Size = 0x00000000.
  o 2 Giga ports supported
  o SKB recycle supported (Enabled)
  o NETA acceleration mode 1
  o RX Queue support: 1 Queues * 128 Descriptors
  o TX Queue support: 1 Queues * 532 Descriptors
  o GSO supported
  o GRO supported
  o Receive checksum offload supported
  o Transmit checksum offload supported
  o Driver ERROR statistics enabled
  o Switch support enabled

  o Loading network interface(s)

  o Port 0 is connected to Linux netdevice
        giga p=0: mtu=1500, mac=a0017e70
    o eth0, ifindex = 2, GbE port = 0

  o Port 1 is connected to Linux netdevice
        giga p=1: mtu=1500, mac=a0017e70
    o eth1, ifindex = 3, GbE port = 1

bonding: Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
e100: Intel(R) PRO/100 Network Driver, 3.5.24-k2-NAPI
e100: Copyright(c) 1999-2006 Intel Corporation
e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
e1000: Copyright (c) 1999-2006 Intel Corporation.
e1000e: Intel(R) PRO/1000 Network Driver - 1.5.1-k
e1000e: Copyright(c) 1999 - 2011 Intel Corporation.
sky2: driver version 1.30
PPP generic driver version 2.4.2
PPP MPPE Compression module registered
usbcore: registered new interface driver zd1201
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_marvell ehci_marvell.0: Marvell Orion EHCI
ehci_marvell ehci_marvell.0: new USB bus registered, assigned bus number 1
ehci_marvell ehci_marvell.0: irq 45, io base 0xfbb50100
ehci_marvell ehci_marvell.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ehci_marvell ehci_marvell.1: Marvell Orion EHCI
ehci_marvell ehci_marvell.1: new USB bus registered, assigned bus number 2
ehci_marvell ehci_marvell.1: irq 46, io base 0xfbb51100
ata1: SATA link down (SStatus 0 SControl F300)
ehci_marvell ehci_marvell.1: USB 2.0 started, EHCI 1.00
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
usbcore: registered new interface driver usblp
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
usbcore: registered new interface driver usbserial
usbserial: USB Serial Driver core
USB Serial support registered for GSM modem (1-port)
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
mousedev: PS/2 mouse device common for all mice
rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
i2c /dev entries driver
Linux telephony interface: v1.00
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
cpuidle: using governor ladder
cpuidle: using governor menu
mmc0: mvsdio driver initialized, lacking card detect (fall back to polling)
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
cs42l51-codec 0-004a: failed to read I2C
ALSA device list:
  No soundcards found.
oprofile: no performance counters
oprofile: using timer interrupt.
nf_conntrack version 0.5.0 (16105 buckets, 64420 max)
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP cubic registered
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
8021q: 802.1Q VLAN Support v1.8
UBI: attaching mtd2 to ubi0
UBI: physical eraseblock size:   524288 bytes (512 KiB)
UBI: logical eraseblock size:    516096 bytes
UBI: smallest flash I/O unit:    4096
UBI: VID header offset:          4096 (aligned 4096)
UBI: data offset:                8192
usb 1-1: new high-speed USB device number 2 using ehci_marvell
ata2: SATA link down (SStatus 0 SControl F300)
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
usb 2-1: new high-speed USB device number 2 using ehci_marvell
usb 1-1.1: new high-speed USB device number 3 using ehci_marvell
usb-storage 1-1.1:1.0: Quirks match for vid 05e3 pid 0723: 8000
scsi2 : usb-storage 1-1.1:1.0
usb 1-1.2: new high-speed USB device number 4 using ehci_marvell
usb-storage 1-1.2:1.0: Quirks match for vid 05e3 pid 0723: 8000
scsi3 : usb-storage 1-1.2:1.0
UBI: max. sequence number:       60
UBI: attached mtd2 to ubi0
UBI: MTD device name:            "Root"
UBI: MTD device size:            1016 MiB
UBI: number of good PEBs:        2024
UBI: number of bad PEBs:         8
UBI: number of corrupted PEBs:   0
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:             0
UBI: total number of reserved PEBs: 2024
UBI: number of PEBs reserved for bad PEB handling: 20
UBI: max/mean erase counter: 1/0
UBI: image sequence number:  0
VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 6
UBI: background thread "ubi_bgt0d" started, PID 631
rtc-mv rtc-mv: setting system clock to 2019-10-18 02:43:49 UTC (1571366629)
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
UBIFS: recovery needed
UBIFS: recovery completed
UBIFS: mounted UBI device 0, volume 0, name "rootfs"
UBIFS: file system size:   1027031040 bytes (1002960 KiB, 979 MiB, 1990 LEBs)
UBIFS: journal size:       10452992 bytes (10208 KiB, 9 MiB, 21 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: zlib
UBIFS: reserved for root:  0 bytes (0 KiB)
VFS: Mounted root (ubifs filesystem) on device 0:13.
Freeing init memory: 184K
scsi 2:0:0:0: Direct-Access     Generic  STORAGE DEVICE   9451 PQ: 0 ANSI: 0
sd 2:0:0:0: [sda] Attached SCSI removable disk
INIT: version 2.88 booting
scsi 3:0:0:0: Direct-Access     Generic  STORAGE DEVICE   9451 PQ: 0 ANSI: 0
sd 3:0:0:0: [sdb] Attached SCSI removable disk
[ESC[36minfoESC[39;49m] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevdESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8ESC[?25hESC[?0c.
[....] Synthesizing the initial hotplug events...xhci_hcd 0000:01:00.0: xHCI Host Controller
xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
xhci_hcd 0000:01:00.0: irq 62, io mem 0xe2000000
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
ESC[?25lESC[?1cESC7ESC[1Gxhci_hcd 0000:01:00.0: xHCI Host Controller
xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 4
[ESC[32m ok ESC[39;49mESC8ESC[?25hESC[?0cdone.
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 2 ports detected
[....] Waiting for /dev to be fully populated...ESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8ESC[?25hESC[?0cdone.
[....] Setting parameters of disc: (none)ESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8ESC[?25hESC[?0c.
[....] Setting preliminary keymap...ESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8ESC[?25hESC[?0cdone.
[....] Activating swap...ESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8
ESC[?25hESC[?0cdone.
[....] Cleaning up temporary files...ESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8ESC[?25hESC[?0c.
[....] Loading kernel modules...ESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8ESC[?25hESC[?0cdone.
[....] Activating lvm and md swap...ESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8ESC[?25hESC[?0cdone.
[....] Checking file systems...fsck from util-linux 2.20.1
ESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8ESC[?25hESC[?0cdone.
[....] Mounting local filesystems...mount: mount point /mnt/nand does not exist
ESC[?25lESC[?1cESC7ESC[1G[ESC[31mFAILESC[39;49mESC8ESC[?25hESC[?0cESC[31mfailed.ESC[39;49m
[....] Activating swapfile swap...ESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;
49mESC8ESC[?25hESC[?0cdone.
[....] Cleaning up temporary files...ESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8ESC[?25hESC[?0c.
[....] Setting kernel variables ...ESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8ESC[?25hESC[?0cdone.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

pool #1: pkt_size=1536, buf_size=1632 - 256 of 256 buffers added
eth1: started
ADDRCONF(NETDEV_UP): eth1: link is not ready
Listening on LPF/eth1/f0:ad:4e:02:75:85
Sending on   LPF/eth1/f0:ad:4e:02:75:85
Sending on   Socket/fallback
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 7
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 11
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

pool #0: pkt_size=1536, buf_size=1632 - 256 of 256 buffers added
eth0: link up
eth0: started
Listening on LPF/eth0/f0:ad:4e:02:75:84
Sending on   LPF/eth0/f0:ad:4e:02:75:84
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPOFFER from 192.168.11.1
DHCPACK from 192.168.11.1
bound to 192.168.11.184 -- renewal in 19723 seconds.
ESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8ESC[?25hESC[?0cdone.
[....] Cleaning up temporary files...ESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8ESC[?25hESC[?0c.
[ESC[36minfoESC[39;49m] Setting console screen modes.
[ESC[36minfoESC[39;49m] Skipping font and keymap setup (handled by console-setup).
[....] Setting up console font and keymap...ESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8ESC[?25hESC[?0cdone.
^MINIT: Entering runlevel: 2
[ESC[36minfoESC[39;49m] Using makefile-style concurrent boot in runlevel 2.
[....] Network Interface Plugging Daemon...start eth0...ESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8ESC[?25hESC[?0cdone.
[....] Starting system message bus: dbusESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok 
ESC[39;49mESC8ESC[?25hESC[?0c.
[....] Starting Hardware abstraction layer: haldESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8ESC[?25hESC[?0c.
[....] Starting web server: lighttpd2019-10-18 02:45:09: (log.c.118) opening errorlog '/var/log/lighttpd/error.log' failed: Permission denied
ESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8ESC[?25hESC[?0c.
[....] Starting OpenBSD Secure Shell server: sshdESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8ESC[?25hESC[?0c.
Starting very small Busybox based DHCP server: Starting /usr/sbin/udhcpd...
udhcpd.
mlan: module license 'Marvell Proprietary' taints kernel.
Disabling lock debugging due to kernel taint
usbcore: registered new interface driver usb8xxx
usb 2-1: USB disconnect, device number 2
usb 2-1: new high-speed USB device number 3 using ehci_marvell
Bluetooth: Core ver 2.16
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP socket layer initialized
Bluetooth: SCO socket layer initialized
Bluetooth: Generic Bluetooth USB driver ver 0.6
usbcore: registered new interface driver btusb
Bluetooth: BNEP (Ethernet Emulation) ver 1.3
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM ver 1.11
ADDRCONF(NETDEV_UP): uap0: link is not ready
ERR: Could not stop BSS! BSS already stopped!
SSID setting successful
BSS start successful!
Starting very small Busybox based DHCP server: Starting /usr/sbin/udhcpd...
udhcpd.
[....] Starting DNS forwarder and DHCP server: dnsmasqESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8ESC[?25hESC[?0c.
[....] Starting bluetooth: bluetoothdESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8ESC[?25hESC[?0c.
SSC is disabled!

Debian GNU/Linux 7 mirabox-debian ttyS0

mirabox-debian login:

Boot log from MiraBox V9 with stock code:

BootROM 1.08
Booting from SPI flash
DDR3 Training Sequence - Ver 4.4.0
DDR3 Training Sequence - Ended Successfully 
Status = MV_OK
BootROM: Image checksum verification PASSED

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


U-Boot 2009.08 (Jul 15 2015 - 21:57:33)Marvell version: 1.1.2 NQ
U-Boot Addressing:
       Code:            00600000:006AFFF0
       BSS:             006F7240
       Stack:           0x5fff70
       PageTable:       0x8e0000
       Heap address:    0x900000:0xe00000
Board: DB-88F6710-BP
SoC:   MV6710 A1
CPU:   Marvell PJ4B v7 UP (Rev 1) LE
       CPU @ 1200Mhz, L2 @ 600Mhz
       DDR @ 600Mhz, TClock @ 200Mhz
       DDR 16Bit Width, FastPath Memory Access
PEX 0: Detected No Link.
PEX 1: Root Complex Interface, Detected Link X1
DRAM:   1 GB
       CS 0: base 0x00000000 size 512 MB
       CS 1: base 0x20000000 size 512 MB
       Addresses 14M - 0M are saved for the U-Boot usage.
SF: Detected MX25L1605D with page size 256, total 2097152 bytes
FPU not initialized
USB 0: Host Mode
USB 1: Host Mode
Modules/Interfaces Detected:
       RGMII0 Phy
       RGMII1 Phy
       PEX0 (Lane 0)
       SATA0 (Lane 2)
       SATA1 (Lane 3)
MMC:   MRVL_MMC: 0
Net:   egiga0 [PRIME], egiga1
flag =  ff
Hit any key to stop autoboot:  0 
(Re)start USB...
USB:   Active port:     invalid port number 2, switching to port 0
Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 2 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
       scanning bus for storage devices... 1 Storage Device(s) found
reading uimage_3.2.36.v9

4050952 bytes read
## Booting kernel from Legacy Image at 06400000 ...
   Image Name:   Linux-3.2.36
   Created:      2015-05-20   5:49:14 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4050888 Bytes =  3.9 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 3.2.36 (root@localhost.localdomain) (gcc version 4.4.5 20100614 (prerelease) (FSF GNU GCC branch-4.4.5. Marvell GCC 2010q4-113) ) #2 Wed May 20 01:49:03 EDT 2015
CPU: Marvell PJ4Bv7 Processor [561f5811] revision 1 (ARMv7), cr=10c53c7d
CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
Machine: Marvell Armada-370
Using UBoot passing parameters structure
>>>>>>>Tag MAC a1:12:03:4e:ad:f0
>>>>>>>Tag MAC a2:12:03:4e:ad:f0
Memory policy: ECC disabled, Data cache writealloc
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 260096
Kernel command line: console=ttyS0,115200   root=/dev/sda2  rw rootdelay=10
PID hash table entries: 4096 (order: 2, 16384 bytes)
Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
Memory: 1024MB = 1024MB total
Memory: 1030488k/1030488k available, 18088k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    vmalloc : 0xc0800000 - 0xfa800000   ( 928 MB)
    lowmem  : 0x80000000 - 0xc0000000   (1024 MB)
    modules : 0x7f000000 - 0x80000000   (  16 MB)
      .text : 0x80008000 - 0x8080e000   (8216 kB)
      .init : 0x8080e000 - 0x8083c000   ( 184 kB)
      .data : 0x8083c000 - 0x808a37c0   ( 414 kB)
       .bss : 0x808a37e4 - 0x808d8bac   ( 213 kB)
NR_IRQS:256
a370_time_init
sched_clock: 32 bits at 600MHz, resolution 1ns, wraps every 7158ms
Calibrating delay loop... 1196.85 BogoMIPS (lpj=5984256)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
hw perfevents: no hardware support available
devtmpfs: initialized
xor: measuring software checksum speed
   arm4regs  :  1150.000 MB/sec
   8regs     :   901.600 MB/sec
   32regs    :  1114.800 MB/sec
xor: using function: arm4regs (1150.000 MB/sec)
NET: Registered protocol family 16
L0 cache Enabled
Speculative Prefetch Disabled
Aurora L2 Cache Enabled
Support IO coherency.
Enable DLB and DRAM write coalescing

CPU Interface
-------------
SDRAM_CS0 ....base 00000000, size 512MB 
SDRAM_CS1 ....base 20000000, size 512MB 
SDRAM_CS2 ....disable
SDRAM_CS3 ....disable
DEVICE_CS0 ....base f2000000, size  32MB 
DEVICE_CS1 ....no such
DEVICE_CS2 ....no such
DEVICE_CS3 ....no such
PEX0_MEM ....base e0000000, size  32MB 
PEX0_IO ....base f1100000, size   1MB 
PEX1_MEM ....base e2000000, size  32MB 
PEX1_IO ....base f1200000, size   1MB 
INTER_REGS ....base d0000000, size   1MB 
DMA_UART ....no such
SPI_CS0 ....base f0000000, size  16MB 
SPI_CS1 ....no such
SPI_CS2 ....no such
SPI_CS3 ....no such
SPI_CS4 ....no such
SPI_CS5 ....no such
SPI_CS6 ....no such
SPI_CS7 ....no such
BOOT_ROM_CS ....no such
DEV_BOOTCS ....base f5000000, size  16MB 
PMU_SCRATCHPAD ....no such
CRYPT0_ENG ....base c8010000, size  64KB 

  Marvell Armada370 Board-- DB-88F6710-BP  Soc: MV6710 A1 LE
  LSP version: linux-3.2.y-2013_Q1.0p2


 Detected Tclk 200000000, SysClk 600000000, FabricClk 600000000
Marvell USB EHCI Host controller #0: 811b1600
Marvell USB EHCI Host controller #1: 811b1400
PCI: bus0: Fast back to back transfers enabled
PCI: bus1: Fast back to back transfers disabled
pci 0000:01:00.0: BAR 0: assigned [mem 0xe2000000-0xe200ffff 64bit]
pci 0000:01:00.0: BAR 0: set to [mem 0xe2000000-0xe200ffff 64bit] (PCI address [0xe2000000-0xe200ffff])
pci 0000:01:00.0: BAR 2: assigned [mem 0xe2010000-0xe2010fff 64bit]
pci 0000:01:00.0: BAR 2: set to [mem 0xe2010000-0xe2010fff 64bit] (PCI address [0xe2010000-0xe2010fff])
pci 0000:01:00.0: BAR 4: assigned [mem 0xe2011000-0xe2011fff 64bit]
pci 0000:01:00.0: BAR 4: set to [mem 0xe2011000-0xe2011fff 64bit] (PCI address [0xe2011000-0xe2011fff])
bio: create slab <bio-0> at 0
raid6: int32x1    134 MB/s
raid6: int32x2    168 MB/s
raid6: int32x4    167 MB/s
raid6: int32x8    151 MB/s
raid6: using algorithm int32x2 (168 MB/s)
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Advanced Linux Sound Architecture Driver Version 1.0.24.
cfg80211: Calling CRDA to update world regulatory domain
Switching to clocksource armada370_clocksource
NET: Registered protocol family 2
IP route cache hash table entries: 32768 (order: 5, 131072 bytes)
TCP established hash table entries: 131072 (order: 8, 1048576 bytes)
TCP bind hash table entries: 65536 (order: 6, 262144 bytes)
TCP: Hash tables configured (established 131072 bind 65536)
TCP reno registered
UDP hash table entries: 512 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 512 (order: 1, 8192 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
cesadev_init(80815d8c)
mvCesaInit: channels=1, session=640, queue=64
Armada XP hwmon thermal sensor initialized.
Initializing Armada-XP CPU power management  (WFI)
squashfs: version 4.0 (2009/01/31) Phillip Lougher
NTFS driver 2.1.30 [Flags: R/O].
JFFS2 version 2.2. (NAND) <C2><A9> 2001-2006 Red Hat, Inc.
fuse init (API version 7.17)
SGI XFS with security attributes, large block/inode numbers, no debug enabled
Btrfs loaded
msgmni has been set to 2012
async_tx: api initialized (async)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Initializing ths8200_init
Initializing dove_adi9889_init
mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
mv_xor mv_xor.0: Marvell XOR: ( xor )
mv_xor mv_xor.1: Marvell XOR: ( xor )
mv_xor mv_xor.2: Marvell XOR: ( cpy )
mv_xor mv_xor.3: Marvell XOR: ( fill cpy )
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xd0012000 (irq = 41) is a 16550A
console [ttyS0] enabled
serial8250.1: ttyS1 at MMIO 0xd0012100 (irq = 42) is a 16550A
brd: module loaded
loop: module loaded
sata_mv sata_mv.0: slots 32 ports 2
scsi0 : sata_mv
scsi1 : sata_mv
ata1: SATA max UDMA/133 irq 55
ata2: SATA max UDMA/133 irq 55
mvSFlashInit ERROR: Unknown SPI flash device!
ERROR: sflash_probe - Failed to initialize the SFlash.
armada-nand armada-nand.0: Initialize HAL based NFC in 8bit mode with DMA Disabled using BCH 4bit ECC
armada-nand armada-nand.0: mvNfcInit() failed. Returned 14
mv_eth_probe: port_mask=0x3, cpu_mask=0x1 
0 - Base 0x00000000 , Size = 0x00000001.
1 - Base 0x20000000 , Size = 0x00000001.
4 - Base 0xf2000000 , Size = 0x00000001.
8 - Base 0xe0000000 , Size = 0x00000001.
9 - Base 0xf1100000 , Size = 0x00000001.
10 - Base 0xe2000000 , Size = 0x00000001.
11 - Base 0xf1200000 , Size = 0x00000001.
12 - Base 0xd0000000 , Size = 0x00000001.
14 - Base 0xf0000000 , Size = 0x00000001.
23 - Base 0xf5000000 , Size = 0x00000001.
25 - Base 0xc8010000 , Size = 0x00000001.
  o 2 Giga ports supported
  o SKB recycle supported (Enabled)
  o NETA acceleration mode 1
  o RX Queue support: 1 Queues * 128 Descriptors
  o TX Queue support: 1 Queues * 532 Descriptors
  o GSO supported
  o GRO supported
  o Receive checksum offload supported
  o Transmit checksum offload supported
  o Driver ERROR statistics enabled
  o Switch support enabled

  o Loading network interface(s)

  o Port 0 is connected to Linux netdevice
        giga p=0: mtu=1500, mac=a0015e58
    o eth0, ifindex = 2, GbE port = 0

  o Port 1 is connected to Linux netdevice
        giga p=1: mtu=1500, mac=a0015e58
    o eth1, ifindex = 3, GbE port = 1

bonding: Ethernet Channel Bonding Driver: v3.7.1 (April 27, 2011)
e100: Intel(R) PRO/100 Network Driver, 3.5.24-k2-NAPI
e100: Copyright(c) 1999-2006 Intel Corporation
e1000: Intel(R) PRO/1000 Network Driver - version 7.3.21-k8-NAPI
e1000: Copyright (c) 1999-2006 Intel Corporation.
e1000e: Intel(R) PRO/1000 Network Driver - 1.5.1-k
e1000e: Copyright(c) 1999 - 2011 Intel Corporation.
sky2: driver version 1.30
PPP generic driver version 2.4.2
PPP MPPE Compression module registered
usbcore: registered new interface driver zd1201
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_marvell ehci_marvell.0: Marvell Orion EHCI
ehci_marvell ehci_marvell.0: new USB bus registered, assigned bus number 1
ehci_marvell ehci_marvell.0: irq 45, io base 0xfbb50100
ehci_marvell ehci_marvell.0: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ehci_marvell ehci_marvell.1: Marvell Orion EHCI
ehci_marvell ehci_marvell.1: new USB bus registered, assigned bus number 2
ehci_marvell ehci_marvell.1: irq 46, io base 0xfbb51100
ehci_marvell ehci_marvell.1: USB 2.0 started, EHCI 1.00
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 1 port detected
usbcore: registered new interface driver usblp
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-datafab
ata1: SATA link down (SStatus 0 SControl F300)
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
usbcore: registered new interface driver usbserial
usbserial: USB Serial Driver core
USB Serial support registered for GSM modem (1-port)
usbcore: registered new interface driver option
option: v0.7.2:USB Driver for GSM modems
mousedev: PS/2 mouse device common for all mice
rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0
i2c /dev entries driver
Linux telephony interface: v1.00
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
cpuidle: using governor ladder
cpuidle: using governor menu
mmc0: mvsdio driver initialized, lacking card detect (fall back to polling)
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
cs42l51-codec 0-004a: failed to read I2C
ALSA device list:
  No soundcards found.
oprofile: no performance counters
oprofile: using timer interrupt.
nf_conntrack version 0.5.0 (16101 buckets, 64404 max)
ip_tables: (C) 2000-2006 Netfilter Core Team
TCP cubic registered
NET: Registered protocol family 10
IPv6 over IPv4 tunneling driver
NET: Registered protocol family 17
8021q: 802.1Q VLAN Support v1.8
VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 6
rtc-mv rtc-mv: setting system clock to 2019-10-17 03:32:12 UTC (1571283132)
Waiting 10sec before mounting root device...
usb 1-1: new high-speed USB device number 2 using ehci_marvell
ata2: SATA link down (SStatus 0 SControl F300)
usb-storage 1-1:1.0: Quirks match for vid 05e3 pid 0723: 8000
scsi2 : usb-storage 1-1:1.0
usb 2-1: new high-speed USB device number 2 using ehci_marvell
hub 2-1:1.0: USB hub found
hub 2-1:1.0: 4 ports detected
usb 2-1.2: new high-speed USB device number 3 using ehci_marvell
scsi 2:0:0:0: Direct-Access     Generic  STORAGE DEVICE   9451 PQ: 0 ANSI: 0
sd 2:0:0:0: [sda] 7733248 512-byte logical blocks: (3.95 GB/3.68 GiB)
sd 2:0:0:0: [sda] Write Protect is off
sd 2:0:0:0: [sda] No Caching mode page present
sd 2:0:0:0: [sda] Assuming drive cache: write through
sd 2:0:0:0: [sda] No Caching mode page present
sd 2:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1 sda2
sd 2:0:0:0: [sda] No Caching mode page present
sd 2:0:0:0: [sda] Assuming drive cache: write through
sd 2:0:0:0: [sda] Attached SCSI removable disk
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
EXT3-fs (sda2): error: couldn't mount because of unsupported optional features (240)
EXT2-fs (sda2): error: couldn't mount because of unsupported optional features (240)
EXT4-fs (sda2): warning: checktime reached, running e2fsck is recommended
EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) on device 8:2.
Freeing init memory: 184K
^MINIT: version 2.88 booting
[ESC[36minfoESC[39;49m] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevdESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8ESC[?25hESC[?0c.
[....] Synthesizing the initial hotplug events...xhci_hcd 0000:01:00.0: xHCI Host Controller
xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
xhci_hcd 0000:01:00.0: irq 62, io mem 0xe2000000
ESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8hub 3-0:1.0: USB hub found
hub 3-0:1.0: 2 ports detected
xhci_hcd 0000:01:00.0: xHCI Host Controller
xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 4
ESC[?25hESC[?0cdone.
hub 4-0:1.0: USB hub found
hub 4-0:1.0: 2 ports detected
[....] Waiting for /dev to be fully populated...ESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8ESC[?25hESC[?0cdone.
[....] Setting parameters of disc: (none)ESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8ESC[?25hESC[?0c.
[....] Setting preliminary keymap...ESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8ESC[?25hESC[?0cdone.
[....] Activating swap...ESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8
ESC[?25hESC[?0cdone.
EXT4-fs (sda2): re-mounted. Opts: (null)
[....] Cleaning up temporary files...ESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8ESC[?25hESC[?0c.
[....] Loading kernel modules...ESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8ESC[?25hESC[?0cdone.
[....] Activating lvm and md swap...ESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8ESC[?25hESC[?0cdone.
[....] Checking file systems...fsck from util-linux 2.20.1
ESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8ESC[?25hESC[?0cdone.
[....] Mounting local filesystems...mount: mount point /mnt/nand does not exist
ESC[?25lESC[?1cESC7ESC[1G[ESC[31mFAILESC[39;49mESC8ESC[?25hESC[?0cESC[31mfailed.ESC[39;49m
[....] Activating swapfile swap...ESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8ESC[?25hESC[?0cdone.
[....] Cleaning up temporary files...ESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8ESC[?25hESC[?0c.
[....] Setting kernel variables ...ESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8ESC[?25hESC[?0cdone.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

pool #1: pkt_size=1536, buf_size=1632 - 256 of 256 buffers added
eth1: started
ADDRCONF(NETDEV_UP): eth1: link is not ready
Listening on LPF/eth1/f0:ad:4e:03:12:a2
Sending on   LPF/eth1/f0:ad:4e:03:12:a2
Sending on   Socket/fallback
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 4
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 11
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 10
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 19
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 13
DHCPDISCOVER on eth1 to 255.255.255.255 port 67 interval 3
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

pool #0: pkt_size=1536, buf_size=1632 - 256 of 256 buffers added
eth0: link up
eth0: started
Listening on LPF/eth0/f0:ad:4e:03:12:a1
Sending on   LPF/eth0/f0:ad:4e:03:12:a1
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPOFFER from 192.168.11.1
DHCPACK from 192.168.11.1
bound to 192.168.11.97 -- renewal in 16465 seconds.
ESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8ESC[?25hESC[?0cdone.
[....] Cleaning up temporary files...ESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8ESC[?25hESC[?0c.
[ESC[36minfoESC[39;49m] Setting console screen modes.
[ESC[36minfoESC[39;49m] Skipping font and keymap setup (handled by console-setup).
[....] Setting up console font and keymap...ESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8ESC[?25hESC[?0cdone.
^MINIT: Entering runlevel: 2
[ESC[36minfoESC[39;49m] Using makefile-style concurrent boot in runlevel 2.
[....] Network Interface Plugging Daemon...start eth0...ESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8ESC[?25hESC[?0cdone.
[....] Starting system message bus: dbusESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok 
ESC[39;49mESC8ESC[?25hESC[?0c.
[....] Starting web server: lighttpd2019-10-17 03:33:40: (log.c.118) opening errorlog '/var/log/lighttpd/error.log' failed: Permission denied
ESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8ESC[?25hESC[?0c.
[....] Starting Hardware abstraction layer: haldESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8ESC[?25hESC[?0c.
[....] Starting OpenBSD Secure Shell server: sshdESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8ESC[?25hESC[?0c.
Starting very small Busybox based DHCP server: Starting /usr/sbin/udhcpd...
udhcpd.
usbcore: registered new interface driver rtl8723bu
ADDRCONF(NETDEV_UP): wlan0: link is not ready
Starting very small Busybox based DHCP server: Starting /usr/sbin/udhcpd...
udhcpd.
[....] Starting DNS forwarder and DHCP server: dnsmasqESC[?25lESC[?1cESC7ESC[1G[ESC[32m ok ESC[39;49mESC8ESC[?25hESC[?0c.
Configuration file: /home/rtl_hostapd_2G.conf
drv->ifindex=6
l2_sock_recv==l2_sock_xmit=0x0x51638
Failed to request a scan of neighboring BSSes
+rtl871x_sta_deauth_ops, ff:ff:ff:ff:ff:ff is deauth, reason=2
rtl871x_set_key_ops
rtl871x_set_key_ops
rtl871x_set_key_ops
rtl871x_set_key_ops
Using interface wlan0 with hwaddr 58:63:56:43:46:6f and ssid 'wifi8723-gti-466f  '
rtl871x_set_wps_assoc_resp_ie
rtl871x_set_wps_beacon_ie
rtl871x_set_wps_probe_resp_ie
rtl871x_set_beacon_ops
ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
rtl871x_set_hidden_ssid ignore_broadcast_ssid:0, wifi8723-gti-466f  ,19
rtl871x_set_acl
SSC is disabled!
Bluetooth: Core ver 2.16
NET: Registered protocol family 31
Bluetooth: HCI device and connection manager initialized
Bluetooth: HCI socket layer initialized
Bluetooth: L2CAP socket layer initialized
Bluetooth: SCO socket layer initialized
rtk_btusb: Realtek Bluetooth USB driver ver 2.13
rtk_btusb: btusb_probe intf->cur_altsetting->desc.bInterfaceNumber=0
rtk_btusb: btusb_probe can_wakeup=1      flag2=0
rtk_btusb: patch_add
rtk_btusb: auto suspend is disabled
rtk_btusb: pid = 0xb720
usbcore: registered new interface driver rtk_btusb
rtk_btusb: btusb_open start pm_usage_cnt(0x1)
rtk_btusb: btusb_open hdev->promisc ==0
rtk_btusb: download_patch start
rtk_btusb: check_fw_version : read_ver_rsp->lmp_subver = 0x8723
rtk_btusb: check_fw_version : patch_entry->lmp_sub = 0x8723
rtk_btusb: get_firmware start
rtk_btusb: load_firmware start
rtk_btusb: lmp_version = 0x8723
rtk_btusb: This is not 8723a, use new patch style!
rtk_btusb: rtk_get_eversion::gEVersion=255
Bluetooth: BNEP (Ethernet Emulation) ver 1.3
rtk_btusb: rtk_get_eversion : eversion->status = 0x0, eversion->version = 0x1
rtk_btusb: gEVersion=1
rtk_btusb: opcode = 0x0
rtk_btusb: length = 0x1
rtk_btusb: data = 0x1
rtk_btusb: lmp_version is 8723, project_id is 8723, match!
rtk_btusb: fw_version = 0x1e3e73f8
rtk_btusb: number_of_total_patch = 2
rtk_btusb: chipID = 2
rtk_btusb: patch_length = 0x5ec0
rtk_btusb: start_offset = 0x58c0
rtk_btusb: buf_len = 0x5ec0
rtk_btusb: Fw: exists, config file:not exists
rtk_btusb: load_firmware done
rtk_btusb: get_firmware done
rtk_btusb: download_data start
rtk_btusb: download_data done
rtk_btusb: check_fw_version : read_ver_rsp->lmp_subver = 0x73f8
rtk_btusb: check_fw_version : patch_entry->lmp_sub = 0x8723
rtk_btusb: Rtk patch end 0
rtk_btusb: btusb_open end  pm_usage_cnt(0x0)
rtk_btusb: hci0 evt 3
rtk_btusb: btusb_notify : hci0 evt 3
Bluetooth: RFCOMM TTY layer initialized
Bluetooth: RFCOMM socket layer initialized
Bluetooth: RFCOMM ver 1.11

Debian GNU/Linux 7 mirabox-debian ttyS0

mirabox-debian login:

Continued in next message post...
Re: Debian on Mirabox (Armada 370)
October 19, 2019 11:49PM
Please see previous post for context.

I was able to create a MicroSD card and boot Linux 4.20.6 on the V5 unit using bodhi's instructions. However because the MicroSD card on the V9 unit uses mmc the instructions needed to be modified, so I decided to try to use the mSATA instead. I copied the successfull install for the V5 unit MicroSD to an mSTATA drive and installed it into the V9 unit. After making appropriate modifications to uboot environment command the unit boots the kernel but it reaches a point where it reboots. I believe that for the V9 unit a different dts file will be required.

The following is the result of booting the V9 box from the mSATA drive:

BootROM 1.08
Booting from SPI flash
DDR3 Training Sequence - Ver 4.4.0
DDR3 Training Sequence - Ended Successfully 
Status = MV_OK
BootROM: Image checksum verification PASSED

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


U-Boot 2009.08 (Jul 15 2015 - 21:57:33)Marvell version: 1.1.2 NQ
U-Boot Addressing:
       Code:            00600000:006AFFF0
       BSS:             006F7240
       Stack:           0x5fff70
       PageTable:       0x8e0000
       Heap address:    0x900000:0xe00000
Board: DB-88F6710-BP
SoC:   MV6710 A1
CPU:   Marvell PJ4B v7 UP (Rev 1) LE
       CPU @ 1200Mhz, L2 @ 600Mhz
       DDR @ 600Mhz, TClock @ 200Mhz
       DDR 16Bit Width, FastPath Memory Access
PEX 0: Detected No Link.
PEX 1: Root Complex Interface, Detected Link X1
DRAM:   1 GB
       CS 0: base 0x00000000 size 512 MB
       CS 1: base 0x20000000 size 512 MB
       Addresses 14M - 0M are saved for the U-Boot usage.
SF: Detected MX25L1605D with page size 256, total 2097152 bytes
FPU not initialized
USB 0: Host Mode
USB 1: Host Mode
Modules/Interfaces Detected:
       RGMII0 Phy
       RGMII1 Phy
       PEX0 (Lane 0)
       SATA0 (Lane 2)
       SATA1 (Lane 3)
MMC:   MRVL_MMC: 0
Net:   egiga0 [PRIME], egiga1
flag =  ff
Hit any key to stop autoboot:  0 
Booting Debian...

Reset IDE: 
Marvell Serial ATA Adapter
Integrated Sata device found
  Device 0 @ 0 0:
Model: KINGSTON SUV500MS240G                    Firm: 003056RI Ser#: 50026B77828DFAB5    
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 228936.5 MB = 223.5 GB (468862128 x 512)

Loading file "/boot/uImage" from ide device 0:1 (hda1)
4075476 bytes read
Loading file "/boot/uInitrd" from ide device 0:1 (hda1)
9668627 bytes read
## Booting kernel from Legacy Image at 06400000 ...
   Image Name:   Linux-4.20.6-mvebu-mirabox-tld-1
   Created:      2019-10-19   5:27:16 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4075412 Bytes =  3.9 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 08400000 ...
   Image Name:   initramfs-4.20.6-mvebu-mirabox-t
   Created:      2019-10-19   5:27:20 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9668563 Bytes =  9.2 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.20.6-mvebu-mirabox-tld-12 (root@tldDebianVM) (gcc version 7.3.0 (Ubuntu/Linaro 7.3.0-27ubuntu1~18.04)) #6 SMP PREEMPT Wed Mar 13 14:43:16 PDT 2019
[    0.000000] CPU: ARMv7 Processor [561f5811] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: Globalscale Mirabox
[    0.000000] printk: bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writeback
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] random: get_random_bytes called from start_kernel+0x78/0x4c4 with crng_init=0
[    0.000000] percpu: Embedded 18 pages/cpu @(ptrval) s41548 r8192 d23988 u73728
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial
[    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: 1016632K/1048576K available (8192K kernel code, 731K rwdata, 2072K rodata, 1024K init, 320K bss, 31944K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (9184 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 732 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 321 kB)
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] L2C: DT/platform modifies aux control register: 0x12086300 -> 0x1a086302
[    0.000000] Aurora cache controller enabled, 4 ways, 256 kB
[    0.000000] Aurora: CACHE_ID 0x00000100, AUX_CTRL 0x1a086302
[    0.000000] Switching to timer-based delay loop, resolution 53ns
[    0.000007] sched_clock: 32 bits at 18MHz, resolution 53ns, wraps every 114840871909ns
[    0.007894] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 102208375848 ns
[    0.019516] Console: colour dummy device 80x30
[    0.023966] Calibrating delay loop (skipped), value calculated using timer frequency.. 37.39 BogoMIPS (lpj=186996)
[    0.034309] pid_max: default: 32768 minimum: 301
[    0.039095] LSM: Security Framework initializing
[    0.043775] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.050382] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.058175] CPU: Testing write buffer coherency: ok
[    0.063342] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.118914] Setting up static identity map for 0x100000 - 0x100060
[    0.125377] mvebu-soc-id: MVEBU SoC ID=0x6710, Rev=0x1
[    0.130647] mvebu-pmsu: Initializing Power Management Service Unit
[    0.148856] rcu: Hierarchical SRCU implementation.
[    0.188858] smp: Bringing up secondary CPUs ...
[    0.193377] smp: Brought up 1 node, 1 CPU
[    0.197368] SMP: Total of 1 processors activated (37.39 BogoMIPS).
[    0.203549] CPU: All CPU(s) started in SVC mode.
[    0.208970] devtmpfs: initialized
[    0.219006] VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 6
[    0.227144] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.237217] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.243582] prandom: seed boundary self test passed
[    0.251047] prandom: 100 self tests passed
[    0.255128] pinctrl core: initialized pinctrl subsystem
[    0.262032] NET: Registered protocol family 16
[    0.266880] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.274980] audit: initializing netlink subsys (disabled)
[    0.282067] cpuidle: using governor ladder
[    0.286194] audit: type=2000 audit(0.260:1): state=initialized audit_enabled=0 res=1
[    0.294981] cpuidle: using governor menu
[    0.299216] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.389775] vgaarb: loaded
[    0.392776] SCSI subsystem initialized
[    0.399533] usbcore: registered new interface driver usbfs
[    0.405048] usbcore: registered new interface driver hub
[    0.411667] usbcore: registered new device driver usb
[    0.417675] pps_core: LinuxPPS API ver. 1 registered
[    0.423158] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.432465] PTP clock support registered
[    0.438571] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.496092] VFS: Disk quotas dquot_6.6.0
[    0.500114] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.529900] NET: Registered protocol family 2
[    0.535482] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.543810] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.551151] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.557625] TCP: Hash tables configured (established 8192 bind 8192)
[    0.564154] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.570132] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.576650] NET: Registered protocol family 1
[    0.611777] RPC: Registered named UNIX socket transport module.
[    0.617675] RPC: Registered udp transport module.
[    0.622442] RPC: Registered tcp transport module.
[    0.627125] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.633767] Unpacking initramfs...
[    1.119923] Freeing initrd memory: 9444K
[    1.123966] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.130854] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    1.141821] Initialise system trusted keyrings
[    1.146284] Key type blacklist registered
[    1.151853] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    1.158399] zbud: loaded
[    1.171909] NFS: Registering the id_resolver key type
[    1.176959] Key type id_resolver registered
[    1.181339] Key type id_legacy registered
[    1.185345] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.192111] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.551107] Key type asymmetric registered
[    1.555193] Asymmetric key parser 'x509' registered
[    1.560284] bounce: pool size: 64 pages
[    1.564292] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    1.571919] io scheduler noop registered
[    1.575827] io scheduler deadline registered
[    1.580178] io scheduler cfq registered (default)
[    1.587219] armada-370-pinctrl d0018000.pin-ctrl: registered pinctrl driver
[    1.601808] mvebu-pcie soc:pcie@82000000: PCI host bridge to bus 0000:00
[    1.608494] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.614557] pci_bus 0000:00: root bus resource [mem 0xf8000000-0xffdfffff]
[    1.621706] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    1.629972] PCI: bus0: Fast back to back transfers disabled
[    1.635533] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.643808] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.652989] PCI: bus1: Fast back to back transfers enabled
[    1.659219] pci 0000:02:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s x1 link at 0000:00:02.0 (capable of 4.000 Gb/s with 5 GT/s x1 link)
[    1.699569] PCI: bus2: Fast back to back transfers disabled
[    1.705205] pci 0000:00:02.0: BAR 14: assigned [mem 0xf8000000-0xf80fffff]
[    1.712125] pci 0000:00:01.0: BAR 6: assigned [mem 0xf8100000-0xf81007ff pref]
[    1.719365] pci 0000:00:02.0: BAR 6: assigned [mem 0xf8200000-0xf82007ff pref]
[    1.726559] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.731538] pci 0000:02:00.0: BAR 0: assigned [mem 0xf8000000-0xf800ffff 64bit]
[    1.738845] pci 0000:02:00.0: BAR 2: assigned [mem 0xf8010000-0xf8010fff 64bit]
[    1.746131] pci 0000:02:00.0: BAR 4: assigned [mem 0xf8011000-0xf8011fff 64bit]
[    1.753432] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.758379] pci 0000:00:02.0:   bridge window [mem 0xf8000000-0xf80fffff]
[    1.765499] pcieport 0000:00:02.0: enabling device (0140 -> 0142)
[    1.772813] mv_xor d0060800.xor: Marvell shared XOR driver
[    1.839601] mv_xor d0060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.847303] mv_xor d0060900.xor: Marvell shared XOR driver
[    1.909572] mv_xor d0060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    2.066594] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    2.076724] printk: console [ttyS0] disabled
[    2.102507] d0012000.serial: ttyS0 at MMIO 0xd0012000 (irq = 20, base_baud = 12500000) is a 16550A
[    2.111759] printk: console [ttyS0] enabled
[    2.111759] printk: console [ttyS0] enabled
[    2.120221] printk: bootconsole [earlycon0] disabled
[    2.120221] printk: bootconsole [earlycon0] disabled
[    2.388797] nand: No NAND device found
[    2.392581] marvell-nfc d00d0000.nand-controller: could not scan the nand chip
[    2.402826] libphy: Fixed MDIO Bus: probed
[    2.410750] libphy: orion_mdio_bus: probed
[    2.442417] mvneta d0070000.ethernet eth0: Using random mac address c6:52:fa:a0:a2:9d
[    2.456248] mvneta d0074000.ethernet eth1: Using random mac address 52:17:46:e0:d7:35
[    2.466284] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.473549] ehci-pci: EHCI PCI platform driver
[    2.478197] ehci-orion: EHCI orion driver
[    2.482807] orion-ehci d0050000.usb: EHCI Host Controller
[    2.488262] orion-ehci d0050000.usb: new USB bus registered, assigned bus number 1
[    2.496231] orion-ehci d0050000.usb: irq 26, io mem 0xd0050000
[    2.528584] orion-ehci d0050000.usb: USB 2.0 started, EHCI 1.00
[    2.534788] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.20
[    2.543124] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.550399] usb usb1: Product: EHCI Host Controller
[    2.555303] usb usb1: Manufacturer: Linux 4.20.6-mvebu-mirabox-tld-12 ehci_hcd
[    2.562575] usb usb1: SerialNumber: d0050000.usb
[    2.567977] hub 1-0:1.0: USB hub found
[    2.572076] hub 1-0:1.0: 1 port detected
[    2.576848] orion-ehci d0051000.usb: EHCI Host Controller
[    2.582655] orion-ehci d0051000.usb: new USB bus registered, assigned bus number 2
[    2.590502] orion-ehci d0051000.usb: irq 27, io mem 0xd0051000
[    2.618601] orion-ehci d0051000.usb: USB 2.0 started, EHCI 1.00
[    2.624806] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.20
[    2.633143] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.640418] usb usb2: Product: EHCI Host Controller
[    2.645321] usb usb2: Manufacturer: Linux 4.20.6-mvebu-mirabox-tld-12 ehci_hcd
[    2.652594] usb usb2: SerialNumber: d0051000.usb
[    2.657968] hub 2-0:1.0: USB hub found
[    2.662058] hub 2-0:1.0: 1 port detected
[    2.667097] xhci_hcd 0000:02:00.0: xHCI Host Controller
[    2.672803] xhci_hcd 0000:02:00.0: new USB bus registered, assigned bus number 3
[    2.680905] xhci_hcd 0000:02:00.0: hcc params 0x200073a9 hci version 0x100 quirks 0x0000000000080010
[    2.690938] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.20
[    2.699319] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.706578] usb usb3: Product: xHCI Host Controller
[    2.711530] usb usb3: Manufacturer: Linux 4.20.6-mvebu-mirabox-tld-12 xhci-hcd
[    2.718807] usb usb3: SerialNumber: 0000:02:00.0
[    2.724197] hub 3-0:1.0: USB hub found
[    2.728220] hub 3-0:1.0: 2 ports detected
[    2.733026] xhci_hcd 0000:02:00.0: xHCI Host Controller
[    2.738293] xhci_hcd 0000:02:00.0: new USB bus registered, assigned bus number 4
[    2.746037] xhci_hcd 0000:02:00.0: Host supports USB 3.0  SuperSpeed
[    2.752631] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.761033] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.20
[    2.769491] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.776750] usb usb4: Product: xHCI Host Controller
[    2.781702] usb usb4: Manufacturer: Linux 4.20.6-mvebu-mirabox-tld-12 xhci-hcd
[    2.789114] usb usb4: SerialNumber: 0000:02:00.0
[    2.794478] hub 4-0:1.0: USB hub found
[    2.798491] hub 4-0:1.0: 2 ports detected
[    2.804061] usbcore: registered new interface driver usblp
[    2.810430] usbcore: registered new interface driver usb-storage
[    2.817233] mousedev: PS/2 mouse device common for all mice
[    2.824443] rtc-mv d0010300.rtc: rtc core: registered d0010300.rtc as rtc0
[    2.832557] i2c /dev entries driver
[    2.837495] pca953x 0-0025: 0-0025 supply vcc not found, using dummy regulator
[    2.845609] pca953x 0-0025: Linked as a consumer to regulator.0
[    2.851803] pca953x 0-0025: failed reading register
[    2.856812] pca953x 0-0025: Dropping the link to regulator.0
[    2.889872] orion_wdt: Initial timeout 229 sec
[    2.938701] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    3.028706] usb 2-1: new high-speed USB device number 2 using orion-ehci
[    3.048770] marvell-cesa d0090000.crypto: CESA device successfully registered
[    3.056625] hidraw: raw HID events driver (C) Jiri Kosina
[    3.063049] usbcore: registered new interface driver usbhid
[    3.069150] usbhid: USB HID core driver
[    3.073432] drop_monitor: Initializing network drop monitor service
[    3.080538] NET: Registered protocol family 10
[    3.096245] Segment Routing with IPv6
[    3.100203] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    3.108051] NET: Registered protocol family 17

At this point the unit will reset!

This is the stock environment for the V9 unit:

Marvell>> printenv
bootdelay=3
baudrate=115200
loads_echo=0
ipaddr=10.4.50.165
serverip=10.4.50.5
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
console=console=ttyS0,115200
sata_delay_reset=0
enaExtDisk=no
MALLOC_len=5
ethprime=egiga0
bootargs_root=root=/dev/nfs rw
bootargs_end=:10.4.50.254:255.255.255.0:KW40:eth0:none
image_name=uImage
load_addr=0x02000000
standalone=fsload $load_addr $image_name;setenv bootargs $console $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm $load_addr;
ethmtu=1500
eth1mtu=1500
mvNetConfig=mv_net_config=1,(00:50:43:11:11:11,0:1:2:3:4),mtu=1500
usb0Mode=host
usb1Mode=host
usbActive=2
yuk_ethaddr=00:00:00:EE:51:81
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
eeeEnable=no
ethact=egiga0
bootcmd=usb start; fatload usb 0 0x6400000 uimage_3.2.36.v9; bootm 0x6400000
bootargs=console=ttyS0,115200   root=/dev/sda2  rw rootdelay=10
ethaddr=F0:AD:4E:03:12:A1
eth1addr=F0:AD:4E:03:12:A2
stdin=serial
stdout=serial
stderr=serial
enaMonExt=no
pexMode=RC
setL2CacheWT=no
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
realboot=mmcinfo;fatload mmc 0 0x6400000 uImage; bootm 0x6400000
realboot1=run realboot
disaMvPnp=no
enaAutoRecovery=yes
pcieTune=no

Environment size: 1200/65532 bytes
Marvell>>

I would appreciate any advice on changes that may be needed to successfully update the kernel on the V9 unit.
Re: Debian on Mirabox (Armada 370)
October 20, 2019 02:15AM
Hi Ray,

Interesting!

I think you're right about the DTS for the V9. Things like SPI flash and especially SATA will need a revised DTS to make it work. We'll can build that version.

But first, I would like to confirm that this kernel 4.20.6-mvebu-mirabox-tld-12 is the right one for this box.

Power up the V9, interrupt serial console and run

map
And post the log here.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Mirabox (Armada 370)
October 20, 2019 08:13PM
And also get from stock OS:

cat /proc/mtd
cat /etc/fw_env.config
fw_printenv

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Mirabox (Armada 370)
October 20, 2019 11:20PM
Quote
bodhi
Power up the V9, interrupt serial console and run

map

And post the log here.

Marvell>> map

CPU Interface
-------------
SDRAM_CS0 ....base 00000000, size 512MB 
SDRAM_CS1 ....base 20000000, size 512MB 
SDRAM_CS2 ....disable
SDRAM_CS3 ....disable
DEVICE_CS0 ....no such
DEVICE_CS1 ....no such
DEVICE_CS2 ....no such
DEVICE_CS3 ....no such
PEX0_MEM ....base b0000000, size  32MB 
PEX0_IO ....no such
PEX1_MEM ....base b2000000, size  32MB 
PEX1_IO ....no such
INTER_REGS ....base d0000000, size   1MB 
DMA_UART ....no such
SPI_CS0 ....base f4000000, size  16MB 
SPI_CS1 ....no such
SPI_CS2 ....no such
SPI_CS3 ....no such
SPI_CS4 ....no such
SPI_CS5 ....no such
SPI_CS6 ....no such
SPI_CS7 ....no such
BOOT_ROM_CS ....base f8000000, size   1MB 
DEV_BOOTCS ....base fd000000, size  16MB 
PMU_SCRATCHPAD ....no such
CRYPT0_ENG ....base c8010000, size  64KB 

AHB To MBUS Bridge:
-------------------
win0 - PEX0_MEM base b0000000, ....size  32MB 
win1 - PEX1_MEM base b2000000, ....size  32MB 
win2 - disable
win3 - disable
win4 - disable
win5 - disable
win6 - disable
win7 - disable
win8 - SPI_CS0 base f4000000, ....size  16MB 
win9 - DEV_BOOTCS base fd000000, ....size  16MB 
win10 - CRYPT0_ENG base c8010000, ....size  64KB 
win11 - disable
win12 - disable
win13 - BOOT_ROM_CS base f8000000, ....size   1MB 
win14 - disable
win15 - disable
win16 - disable
win17 - disable
win18 - disable
win19 - disable
win20 - INTER_REGS base d0000000, ....size   1MB 

PEX0:
-----

Pex Bars 

Internal Regs Bar0.... base d0000000, size   1MB 
DRAM Bar1............. base 00000000, size   1GB 
Devices Bar2.......... disable

Pex Decode Windows

win0 - SDRAM_CS0 base 00000000, ....size 512MB 
win1 - SDRAM_CS1 base 20000000, ....size 512MB 
win2 - disable
win3 - disable
win4 - disable
win5 - disable
default win - SDRAM_CS0 
Expansion ROM - SDRAM_CS0 

PEX1:
-----

Pex Bars 

Internal Regs Bar0.... base d0000000, size   1MB 
DRAM Bar1............. base 00000000, size   1GB 
Devices Bar2.......... disable

Pex Decode Windows

win0 - SDRAM_CS0 base 00000000, ....size 512MB 
win1 - SDRAM_CS1 base 20000000, ....size 512MB 
win2 - disable
win3 - disable
win4 - disable
win5 - disable
default win - SDRAM_CS0 
Expansion ROM - SDRAM_CS0 

USB 0:
----
win0 - SDRAM_CS0 base 00000000, ....size 512MB 
win1 - SDRAM_CS1 base 20000000, ....size 512MB 
win2 - PEX0_MEM base b0000000, ....size  32MB 
win3 - disable

USB 1:
----
win0 - SDRAM_CS0 base 00000000, ....size 512MB 
win1 - SDRAM_CS1 base 20000000, ....size 512MB 
win2 - PEX0_MEM base b0000000, ....size  32MB 
win3 - disable

ETH 0:
----
win0 - SDRAM_CS0 base 00000000, ....size 512MB 
win1 - SDRAM_CS1 base 20000000, ....size 512MB 
win2 - disable
win3 - disable
win4 - disable
win5 - disable

ETH 1:
----
win0 - SDRAM_CS0 base 00000000, ....size 512MB 
win1 - SDRAM_CS1 base 20000000, ....size 512MB 
win2 - disable
win3 - disable
win4 - disable
win5 - disable

XOR 0:
----
win0 - SDRAM_CS0 base 00000000, ....size 512MB 
win1 - SDRAM_CS1 base 20000000, ....size 512MB 
win2 - PEX0_MEM base b0000000, ....size  32MB 
win3 - PEX1_MEM base b2000000, ....size  32MB 
win4 - disable
win5 - disable
win6 - disable
win7 - disable

XOR 1:
----
win0 - SDRAM_CS0 base 00000000, ....size 512MB 
win1 - SDRAM_CS1 base 20000000, ....size 512MB 
win2 - PEX0_MEM base b0000000, ....size  32MB 
win3 - PEX1_MEM base b2000000, ....size  32MB 
win4 - disable
win5 - disable
win6 - disable
win7 - disable

Sata 0:
----
win0 - SDRAM_CS0 base 00000000, ....size 256MB 
win1 - SDRAM_CS1 base 10000000, ....size 256MB 
win2 - SDRAM_CS2 base 20000000, ....size 256MB 
win3 - SDRAM_CS3 base 30000000, ....size 256MB 

Sata 1:
----
win0 - SDRAM_CS0 base 00000000, ....size 256MB 
win1 - SDRAM_CS1 base 10000000, ....size 256MB 
win2 - SDRAM_CS2 base 20000000, ....size 256MB 
win3 - SDRAM_CS3 base 30000000, ....size 256MB 
Marvell>> 
Re: Debian on Mirabox (Armada 370)
October 20, 2019 11:34PM
bodhi Wrote:
-------------------------------------------------------
> And also get from stock OS:
>
>
> cat /proc/mtd
> cat /etc/fw_env.config
> fw_printenv
>

Debian GNU/Linux 7 mirabox-debian ttyS0

mirabox-debian login: root
Password: 
Last login: Sun Oct 20 04:58:59 UTC 2019 on ttyS0
Linux mirabox-debian 3.2.36 #2 Wed May 20 01:49:03 EDT 2015 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.
root@mirabox-debian:~# cat /proc/mtd
dev:    size   erasesize  name
root@mirabox-debian:~# cat /etc/fw_env.config
cat: /etc/fw_env.config: No such file or directory
root@mirabox-debian:~#

Not very helpful! So here again is the printenv from stock uboot:

Marvell>> printenv
bootdelay=3
baudrate=115200
loads_echo=0
ipaddr=10.4.50.165
serverip=10.4.50.5
rootpath=/mnt/ARM_FS/
netmask=255.255.255.0
console=console=ttyS0,115200
sata_delay_reset=0
enaExtDisk=no
MALLOC_len=5
ethprime=egiga0
bootargs_root=root=/dev/nfs rw
bootargs_end=:10.4.50.254:255.255.255.0:KW40:eth0:none
image_name=uImage
load_addr=0x02000000
standalone=fsload $load_addr $image_name;setenv bootargs $console $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm $load_addr;
ethmtu=1500
eth1mtu=1500
mvNetConfig=mv_net_config=1,(00:50:43:11:11:11,0:1:2:3:4),mtu=1500
usb0Mode=host
usb1Mode=host
usbActive=2
yuk_ethaddr=00:00:00:EE:51:81
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
eeeEnable=no
ethact=egiga0
bootcmd=usb start; fatload usb 0 0x6400000 uimage_3.2.36.v9; bootm 0x6400000
bootargs=console=ttyS0,115200   root=/dev/sda2  rw rootdelay=10
ethaddr=F0:AD:4E:03:12:A1
eth1addr=F0:AD:4E:03:12:A2
stdin=serial
stdout=serial
stderr=serial
enaMonExt=no
pexMode=RC
setL2CacheWT=no
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
realboot=mmcinfo;fatload mmc 0 0x6400000 uImage; bootm 0x6400000
realboot1=run realboot
disaMvPnp=no
enaAutoRecovery=yes
pcieTune=no

Environment size: 1200/65532 bytes
Marvell>>

It appears that this is very similar to the unit currently being sold by GlobalScale as the Block Diagram is for a V10 with features that appear identical to my V9 unit.
Re: Debian on Mirabox (Armada 370)
October 21, 2019 12:44AM
Ray,

So this u-boot is the same as the V5 box. With which, you would have to run the special kernel built for Mirabox: 4.20.6-mvebu-mirabox-tld-12.

This is what I was looking for
DEV_BOOTCS ....base fd000000, size  16MB

And this box has no NAND, instead it has SPI flash, which is where u-boot image resides
SF: Detected MX25L1605D with page size 256, total 2097152 bytes

And there is no mtdparts env defined in your u-boot envs. So that's why /proc/mtd and /etc/fw_env.config do not have any thing. If this is a brand new box, I would be surprised that mtdparts is not defined. OTOH, perhaps GTI purposely removed that so users can not get access to the SPI flash in stock OS.

This made a little bit difficult to figure out what's the flash layout, and you would have to set up and save envs in serial console.

Let's try this version to see if you can get the SATA drive spun up first and then look at SPI later (perhaps there are hints in Leggo post above, he has a V9 too).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - armada-370-mirabox-v9.dtb (12.5 KB)
open | download - armada-370-mirabox-v9.dts (2.9 KB)
Re: Debian on Mirabox (Armada 370)
October 21, 2019 12:45AM
Hold on. I forgot one important thing. Will update the post above.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Mirabox (Armada 370)
October 21, 2019 12:51AM
OK, please try the DTB in the above post.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Mirabox (Armada 370)
October 21, 2019 06:07AM
bodhi Wrote:
-------------------------------------------------------
> OK, please try the DTB in the above post.

Duh! the SATA address I used in the DTS might not work for this box.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Mirabox (Armada 370)
October 21, 2019 07:02AM
I’d think it would be a0000 rather than a8000
Re: Debian on Mirabox (Armada 370)
October 21, 2019 05:09PM
1000001101000 Wrote:
-------------------------------------------------------
> I’d think it would be a0000 rather than a8000

Right! I've mistakenly looked at the wrong DTS file as a source.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Mirabox (Armada 370)
October 21, 2019 05:15PM
Ray,

I've updated the DTB and DTS files in the post above.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Mirabox (Armada 370)
October 21, 2019 10:16PM
bodhi Wrote:
-------------------------------------------------------
> Ray,
>
> I've updated the DTB and DTS files in the
> post
> above
.


The following is the result using the new dtb file:

BootROM 1.08
Booting from SPI flash
DDR3 Training Sequence - Ver 4.4.0
DDR3 Training Sequence - Ended Successfully 
Status = MV_OK
BootROM: Image checksum verification PASSED

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


U-Boot 2009.08 (Jul 15 2015 - 21:57:33)Marvell version: 1.1.2 NQ
U-Boot Addressing:
       Code:            00600000:006AFFF0
       BSS:             006F7240
       Stack:           0x5fff70
       PageTable:       0x8e0000
       Heap address:    0x900000:0xe00000
Board: DB-88F6710-BP
SoC:   MV6710 A1
CPU:   Marvell PJ4B v7 UP (Rev 1) LE
       CPU @ 1200Mhz, L2 @ 600Mhz
       DDR @ 600Mhz, TClock @ 200Mhz
       DDR 16Bit Width, FastPath Memory Access
PEX 0: Detected No Link.
PEX 1: Root Complex Interface, Detected Link X1
DRAM:   1 GB
       CS 0: base 0x00000000 size 512 MB
       CS 1: base 0x20000000 size 512 MB
       Addresses 14M - 0M are saved for the U-Boot usage.
SF: Detected MX25L1605D with page size 256, total 2097152 bytes
FPU not initialized
USB 0: Host Mode
USB 1: Host Mode
Modules/Interfaces Detected:
       RGMII0 Phy
       RGMII1 Phy
       PEX0 (Lane 0)
       SATA0 (Lane 2)
       SATA1 (Lane 3)
MMC:   MRVL_MMC: 0
Net:   egiga0 [PRIME], egiga1
flag =  ff
Hit any key to stop autoboot:  0 
Booting Debian...

Reset IDE: 
Marvell Serial ATA Adapter
Integrated Sata device found
  Device 0 @ 0 0:
Model: KINGSTON SUV500MS240G                    Firm: 003056RI Ser#: 50026B77828DFAB5
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 228936.5 MB = 223.5 GB (468862128 x 512)

Loading file "/boot/uImage" from ide device 0:1 (hda1)
4075045 bytes read
Loading file "/boot/uInitrd" from ide device 0:1 (hda1)
9668627 bytes read
## Booting kernel from Legacy Image at 06400000 ...
   Image Name:   Linux-4.20.6-mvebu-mirabox-tld-1
   Created:      2019-10-22   2:40:40 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4074981 Bytes =  3.9 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 08400000 ...
   Image Name:   initramfs-4.20.6-mvebu-mirabox-t
   Created:      2019-10-19   5:27:20 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9668563 Bytes =  9.2 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.20.6-mvebu-mirabox-tld-12 (root@tldDebianVM) (gcc version 7.3.0 (Ubuntu/Linaro 7.3.0-27ubuntu1~18.04)) #6 SMP PREEMPT Wed Mar 13 14:43:16 PDT 2019
[    0.000000] CPU: ARMv7 Processor [561f5811] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: Globalscale Mirabox V9
[    0.000000] printk: bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writeback
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] random: get_random_bytes called from start_kernel+0x78/0x4c4 with crng_init=0
[    0.000000] percpu: Embedded 18 pages/cpu @(ptrval) s41548 r8192 d23988 u73728
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial
[    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: 1016632K/1048576K available (8192K kernel code, 731K rwdata, 2072K rodata, 1024K init, 320K bss, 31944K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (9184 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 732 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 321 kB)
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] L2C: DT/platform modifies aux control register: 0x12086300 -> 0x1a086302
[    0.000000] Aurora cache controller enabled, 4 ways, 256 kB
[    0.000000] Aurora: CACHE_ID 0x00000100, AUX_CTRL 0x1a086302
[    0.000000] Switching to timer-based delay loop, resolution 53ns
[    0.000007] sched_clock: 32 bits at 18MHz, resolution 53ns, wraps every 114840871909ns
[    0.007894] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 102208375848 ns
[    0.019508] Console: colour dummy device 80x30
[    0.023960] Calibrating delay loop (skipped), value calculated using timer frequency.. 37.39 BogoMIPS (lpj=186996)
[    0.034304] pid_max: default: 32768 minimum: 301
[    0.039089] LSM: Security Framework initializing
[    0.043769] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.050375] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.058168] CPU: Testing write buffer coherency: ok
[    0.063336] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.118915] Setting up static identity map for 0x100000 - 0x100060
[    0.125372] mvebu-soc-id: MVEBU SoC ID=0x6710, Rev=0x1
[    0.130641] mvebu-pmsu: Initializing Power Management Service Unit
[    0.148857] rcu: Hierarchical SRCU implementation.
[    0.188858] smp: Bringing up secondary CPUs ...
[    0.193377] smp: Brought up 1 node, 1 CPU
[    0.197368] SMP: Total of 1 processors activated (37.39 BogoMIPS).
[    0.203550] CPU: All CPU(s) started in SVC mode.
[    0.208972] devtmpfs: initialized
[    0.219007] VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 6
[    0.227141] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.237214] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.243580] prandom: seed boundary self test passed
[    0.251045] prandom: 100 self tests passed
[    0.255126] pinctrl core: initialized pinctrl subsystem
[    0.262049] NET: Registered protocol family 16
[    0.266898] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.275006] audit: initializing netlink subsys (disabled)
[    0.282074] cpuidle: using governor ladder
[    0.286200] audit: type=2000 audit(0.260:1): state=initialized audit_enabled=0 res=1
[    0.294990] cpuidle: using governor menu
[    0.299229] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.389760] vgaarb: loaded
[    0.392762] SCSI subsystem initialized
[    0.399582] usbcore: registered new interface driver usbfs
[    0.405089] usbcore: registered new interface driver hub
[    0.411690] usbcore: registered new device driver usb
[    0.417711] pps_core: LinuxPPS API ver. 1 registered
[    0.423185] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.432494] PTP clock support registered
[    0.438616] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.495961] VFS: Disk quotas dquot_6.6.0
[    0.499984] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.529705] NET: Registered protocol family 2
[    0.535265] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.543586] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.550930] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.557406] TCP: Hash tables configured (established 8192 bind 8192)
[    0.563938] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.569917] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.576433] NET: Registered protocol family 1
[    0.611563] RPC: Registered named UNIX socket transport module.
[    0.617460] RPC: Registered udp transport module.
[    0.622228] RPC: Registered tcp transport module.
[    0.626912] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.633561] Unpacking initramfs...
[    1.120013] Freeing initrd memory: 9444K
[    1.124055] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.130946] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    1.141922] Initialise system trusted keyrings
[    1.146385] Key type blacklist registered
[    1.151954] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    1.158501] zbud: loaded
[    1.172011] NFS: Registering the id_resolver key type
[    1.177071] Key type id_resolver registered
[    1.181448] Key type id_legacy registered
[    1.185454] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.192216] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.549853] Key type asymmetric registered
[    1.553939] Asymmetric key parser 'x509' registered
[    1.559030] bounce: pool size: 64 pages
[    1.563041] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    1.570665] io scheduler noop registered
[    1.574573] io scheduler deadline registered
[    1.578929] io scheduler cfq registered (default)
[    1.586001] armada-370-pinctrl d0018000.pin-ctrl: registered pinctrl driver
[    1.600644] mvebu-pcie soc:pcie@82000000: PCI host bridge to bus 0000:00
[    1.607330] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.613383] pci_bus 0000:00: root bus resource [mem 0xf8000000-0xffdfffff]
[    1.620529] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    1.628500] PCI: bus0: Fast back to back transfers disabled
[    1.634513] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.642574] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.651731] PCI: bus1: Fast back to back transfers enabled
[    1.657905] pci 0000:02:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s x1 link at 0000:00:02.0 (capable of 4.000 Gb/s with 5 GT/s x1 link)
[    1.699558] PCI: bus2: Fast back to back transfers disabled
[    1.705196] pci 0000:00:02.0: BAR 14: assigned [mem 0xf8000000-0xf80fffff]
[    1.712117] pci 0000:00:01.0: BAR 6: assigned [mem 0xf8100000-0xf81007ff pref]
[    1.719358] pci 0000:00:02.0: BAR 6: assigned [mem 0xf8200000-0xf82007ff pref]
[    1.726552] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.731555] pci 0000:02:00.0: BAR 0: assigned [mem 0xf8000000-0xf800ffff 64bit]
[    1.738866] pci 0000:02:00.0: BAR 2: assigned [mem 0xf8010000-0xf8010fff 64bit]
[    1.746152] pci 0000:02:00.0: BAR 4: assigned [mem 0xf8011000-0xf8011fff 64bit]
[    1.753455] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.758402] pci 0000:00:02.0:   bridge window [mem 0xf8000000-0xf80fffff]
[    1.765522] pcieport 0000:00:02.0: enabling device (0140 -> 0142)
[    1.772850] mv_xor d0060800.xor: Marvell shared XOR driver
[    1.839637] mv_xor d0060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.847328] mv_xor d0060900.xor: Marvell shared XOR driver
[    1.909621] mv_xor d0060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    2.067125] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    2.077285] printk: console [ttyS0] disabled
[    2.103095] d0012000.serial: ttyS0 at MMIO 0xd0012000 (irq = 20, base_baud = 12500000) is a 16550A
[    2.112355] printk: console [ttyS0] enabled
[    2.112355] printk: console [ttyS0] enabled
[    2.120817] printk: bootconsole [earlycon0] disabled
[    2.120817] printk: bootconsole [earlycon0] disabled
[    2.132932] sata_mv d00a0000.sata: error parsing nr-ports property: -22
[    2.140486] sata_mv: probe of d00a0000.sata failed with error -22
[    2.150633] libphy: Fixed MDIO Bus: probed
[    2.159024] libphy: orion_mdio_bus: probed
[    2.190801] mvneta d0070000.ethernet eth0: Using random mac address 7e:10:9d:03:9e:50
[    2.204587] mvneta d0074000.ethernet eth1: Using random mac address aa:16:6b:25:21:34
[    2.214554] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.221855] ehci-pci: EHCI PCI platform driver
[    2.226504] ehci-orion: EHCI orion driver
[    2.231122] orion-ehci d0050000.usb: EHCI Host Controller
[    2.236575] orion-ehci d0050000.usb: new USB bus registered, assigned bus number 1
[    2.244528] orion-ehci d0050000.usb: irq 26, io mem 0xd0050000
[    2.278628] orion-ehci d0050000.usb: USB 2.0 started, EHCI 1.00
[    2.284831] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.20
[    2.293167] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.300443] usb usb1: Product: EHCI Host Controller
[    2.305345] usb usb1: Manufacturer: Linux 4.20.6-mvebu-mirabox-tld-12 ehci_hcd
[    2.312618] usb usb1: SerialNumber: d0050000.usb
[    2.318027] hub 1-0:1.0: USB hub found
[    2.322132] hub 1-0:1.0: 1 port detected
[    2.326904] orion-ehci d0051000.usb: EHCI Host Controller
[    2.332713] orion-ehci d0051000.usb: new USB bus registered, assigned bus number 2
[    2.340555] orion-ehci d0051000.usb: irq 27, io mem 0xd0051000
[    2.368646] orion-ehci d0051000.usb: USB 2.0 started, EHCI 1.00
[    2.374851] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.20
[    2.383188] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.390464] usb usb2: Product: EHCI Host Controller
[    2.395367] usb usb2: Manufacturer: Linux 4.20.6-mvebu-mirabox-tld-12 ehci_hcd
[    2.402639] usb usb2: SerialNumber: d0051000.usb
[    2.408009] hub 2-0:1.0: USB hub found
[    2.412103] hub 2-0:1.0: 1 port detected
[    2.417149] xhci_hcd 0000:02:00.0: xHCI Host Controller
[    2.422863] xhci_hcd 0000:02:00.0: new USB bus registered, assigned bus number 3
[    2.430966] xhci_hcd 0000:02:00.0: hcc params 0x200073a9 hci version 0x100 quirks 0x0000000000080010
[    2.440982] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.20
[    2.449363] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.456622] usb usb3: Product: xHCI Host Controller
[    2.461573] usb usb3: Manufacturer: Linux 4.20.6-mvebu-mirabox-tld-12 xhci-hcd
[    2.468851] usb usb3: SerialNumber: 0000:02:00.0
[    2.474248] hub 3-0:1.0: USB hub found
[    2.478271] hub 3-0:1.0: 2 ports detected
[    2.483071] xhci_hcd 0000:02:00.0: xHCI Host Controller
[    2.488338] xhci_hcd 0000:02:00.0: new USB bus registered, assigned bus number 4
[    2.496088] xhci_hcd 0000:02:00.0: Host supports USB 3.0  SuperSpeed
[    2.502681] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.511081] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.20
[    2.519548] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.526808] usb usb4: Product: xHCI Host Controller
[    2.531760] usb usb4: Manufacturer: Linux 4.20.6-mvebu-mirabox-tld-12 xhci-hcd
[    2.539172] usb usb4: SerialNumber: 0000:02:00.0
[    2.544546] hub 4-0:1.0: USB hub found
[    2.548560] hub 4-0:1.0: 2 ports detected
[    2.554130] usbcore: registered new interface driver usblp
[    2.560494] usbcore: registered new interface driver usb-storage
[    2.567286] mousedev: PS/2 mouse device common for all mice
[    2.574511] rtc-mv d0010300.rtc: rtc core: registered d0010300.rtc as rtc0
[    2.582634] i2c /dev entries driver
[    2.587592] pca953x 0-0025: 0-0025 supply vcc not found, using dummy regulator
[    2.595530] pca953x 0-0025: Linked as a consumer to regulator.0
[    2.601723] pca953x 0-0025: failed reading register
[    2.606685] pca953x 0-0025: Dropping the link to regulator.0
[    2.639934] orion_wdt: Initial timeout 229 sec
[    2.688747] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    2.778751] usb 2-1: new high-speed USB device number 2 using orion-ehci
[    2.799259] marvell-cesa d0090000.crypto: CESA device successfully registered
[    2.807111] hidraw: raw HID events driver (C) Jiri Kosina
[    2.813578] usbcore: registered new interface driver usbhid
[    2.819671] usbhid: USB HID core driver
[    2.823961] drop_monitor: Initializing network drop monitor service
[    2.831085] NET: Registered protocol family 10
[    2.846773] Segment Routing with IPv6
[    2.850728] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.858580] NET: Registered protocol family 17

At this point it still reboots. Note the errors initializing the sata:

[    2.132932] sata_mv d00a0000.sata: error parsing nr-ports property: -22
[    2.140486] sata_mv: probe of d00a0000.sata failed with error -22

Looking at other dts files it appears that the following needs to be added:

nr-ports = <1>;

Not sure if this is the cause.

P.S. - I've emailed GlobalScale requesting the source code to uboot and kernel for the V9 device. Since I'm a current customer (participated in the KickStarter for Espressobin and bought a V7 model earlier this year) and they are still listing the item for sale on their website I'm hoping they'll respond positively.

Ray
Re: Debian on Mirabox (Armada 370)
October 21, 2019 11:24PM
Ray,

Usually that should not be a problem with the SoC SATA interface, which has 2 ports.

Looking at stock V9, it does enumerate 2 SoC SATA ports (Like with other boxes that has only 1 SATA slot, even if the DTS specifies 2 ports, it will OK to run it that way).

sata_mv sata_mv.0: slots 32 ports 2
scsi0 : sata_mv
scsi1 : sata_mv
ata1: SATA max UDMA/133 irq 55
ata2: SATA max UDMA/133 irq 55

But let's try with explicit one SATA port to see what'll happen.

It could be an extra platform device node in the DTS where none exists, that caused the reset. If this does not allow it to boot, then we'll need look at each node in the DTS to see if there is such device that matches it in the stock bootlog.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - armada-370-mirabox-v9.dtb (12.7 KB)
open | download - armada-370-mirabox-v9.dts (3.3 KB)
Re: Debian on Mirabox (Armada 370)
October 22, 2019 12:28AM
Some improvement as now it appears to initialize SATA and SPI flash, but still reboots! Looks like there may be a conflict between the SPI flash and gpio_leds.

[    2.682561] armada-370-pinctrl d0018000.pin-ctrl: pin PIN63 already requested by d0010600.spi; cannot claim for soc:internal-regs:gpio_leds
[    2.710181] armada-370-pinctrl d0018000.pin-ctrl: pin-63 (soc:internal-regs:gpio_leds) status -22
[    2.733060] armada-370-pinctrl d0018000.pin-ctrl: could not request pin 63 (PIN63) from group mpp63  on device d0018000.pin-ctrl
[    2.744908] leds-gpio soc:internal-regs:gpio_leds: Error applying setting, reverse things back
[    2.753647] leds-gpio: probe of soc:internal-regs:gpio_leds failed with error -22


Full log:

BootROM 1.08
^MBooting from SPI flash
^MDDR3 Training Sequence - Ver 4.4.0
^MDDR3 Training Sequence - Ended Successfully 
^MStatus = MV_OK
^MBootROM: Image checksum verification PASSED

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


U-Boot 2009.08 (Jul 15 2015 - 21:57:33)Marvell version: 1.1.2 NQ
U-Boot Addressing:
       Code:            00600000:006AFFF0
       BSS:             006F7240
       Stack:           0x5fff70
       PageTable:       0x8e0000
       Heap address:    0x900000:0xe00000
Board: DB-88F6710-BP
SoC:   MV6710 A1
CPU:   Marvell PJ4B v7 UP (Rev 1) LE
       CPU @ 1200Mhz, L2 @ 600Mhz
       DDR @ 600Mhz, TClock @ 200Mhz
       DDR 16Bit Width, FastPath Memory Access
PEX 0: Detected No Link.
PEX 1: Root Complex Interface, Detected Link X1
DRAM:   1 GB
       CS 0: base 0x00000000 size 512 MB
       CS 1: base 0x20000000 size 512 MB
       Addresses 14M - 0M are saved for the U-Boot usage.
SF: Detected MX25L1605D with page size 256, total 2097152 bytes
FPU not initialized
USB 0: Host Mode
USB 1: Host Mode
Modules/Interfaces Detected:
       RGMII0 Phy
       RGMII1 Phy
       PEX0 (Lane 0)
       SATA0 (Lane 2)
       SATA1 (Lane 3)
MMC:   MRVL_MMC: 0
Net:   egiga0 [PRIME], egiga1
flag =  ff
Hit any key to stop autoboot:  0 
Booting Debian...

Reset IDE: 
Marvell Serial ATA Adapter
Integrated Sata device found
  Device 0 @ 0 0:
Model: KINGSTON SUV500MS240G                    Firm: 003056RI Ser#: 50026B77828DFAB5    
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 228936.5 MB = 223.5 GB (468862128 x 512)

Loading file "/boot/uImage" from ide device 0:1 (hda1)
4075272 bytes read
Loading file "/boot/uInitrd" from ide device 0:1 (hda1)
9668627 bytes read
## Booting kernel from Legacy Image at 06400000 ...
   Image Name:   Linux-4.20.6-mvebu-mirabox-tld-1
   Created:      2019-10-22   5:07:05 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4075208 Bytes =  3.9 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 08400000 ...
   Image Name:   initramfs-4.20.6-mvebu-mirabox-t
   Created:      2019-10-19   5:27:20 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9668563 Bytes =  9.2 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.20.6-mvebu-mirabox-tld-12 (root@tldDebianVM) (gcc version 7.3.0 (Ubuntu/Linaro 7.3.0-27ubuntu1~18.04)) #6 SMP PREEMPT Wed Mar 13 14:43:16 PDT 2019
[    0.000000] CPU: ARMv7 Processor [561f5811] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: Globalscale Mirabox V9
[    0.000000] printk: bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writeback
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] random: get_random_bytes called from start_kernel+0x78/0x4c4 with crng_init=0
[    0.000000] percpu: Embedded 18 pages/cpu @(ptrval) s41548 r8192 d23988 u73728
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial
[    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: 1016632K/1048576K available (8192K kernel code, 731K rwdata, 2072K rodata, 1024K init, 320K bss, 31944K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (9184 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 732 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 321 kB)
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] L2C: DT/platform modifies aux control register: 0x12086300 -> 0x1a086302
[    0.000000] Aurora cache controller enabled, 4 ways, 256 kB
[    0.000000] Aurora: CACHE_ID 0x00000100, AUX_CTRL 0x1a086302
[    0.000000] Switching to timer-based delay loop, resolution 53ns
[    0.000006] sched_clock: 32 bits at 18MHz, resolution 53ns, wraps every 114840871909ns
[    0.007894] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 102208375848 ns
[    0.019514] Console: colour dummy device 80x30
[    0.023965] Calibrating delay loop (skipped), value calculated using timer frequency.. 37.39 BogoMIPS (lpj=186996)
[    0.034309] pid_max: default: 32768 minimum: 301
[    0.039095] LSM: Security Framework initializing
[    0.043775] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.050381] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.058175] CPU: Testing write buffer coherency: ok
[    0.063341] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.118915] Setting up static identity map for 0x100000 - 0x100060
[    0.125375] mvebu-soc-id: MVEBU SoC ID=0x6710, Rev=0x1
[    0.130646] mvebu-pmsu: Initializing Power Management Service Unit
[    0.148857] rcu: Hierarchical SRCU implementation.
[    0.188859] smp: Bringing up secondary CPUs ...
[    0.193378] smp: Brought up 1 node, 1 CPU
[    0.197369] SMP: Total of 1 processors activated (37.39 BogoMIPS).
[    0.203552] CPU: All CPU(s) started in SVC mode.
[    0.208971] devtmpfs: initialized
[    0.219008] VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 6
[    0.227152] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.237226] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.243590] prandom: seed boundary self test passed
[    0.251056] prandom: 100 self tests passed
[    0.255137] pinctrl core: initialized pinctrl subsystem
[    0.262046] NET: Registered protocol family 16
[    0.266902] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.275006] audit: initializing netlink subsys (disabled)
[    0.282111] cpuidle: using governor ladder
[    0.286237] audit: type=2000 audit(0.260:1): state=initialized audit_enabled=0 res=1
[    0.295027] cpuidle: using governor menu
[    0.299264] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.389776] vgaarb: loaded
[    0.392781] SCSI subsystem initialized
[    0.399520] usbcore: registered new interface driver usbfs
[    0.405025] usbcore: registered new interface driver hub
[    0.411651] usbcore: registered new device driver usb
[    0.417673] pps_core: LinuxPPS API ver. 1 registered
[    0.423155] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.432463] PTP clock support registered
[    0.438569] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.495950] VFS: Disk quotas dquot_6.6.0
[    0.499974] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.530151] NET: Registered protocol family 2
[    0.535408] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.543719] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.551080] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.557555] TCP: Hash tables configured (established 8192 bind 8192)
[    0.564092] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.570071] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.576599] NET: Registered protocol family 1
[    0.611724] RPC: Registered named UNIX socket transport module.
[    0.617622] RPC: Registered udp transport module.
[    0.622391] RPC: Registered tcp transport module.
[    0.627074] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.633719] Unpacking initramfs...
[    1.119612] Freeing initrd memory: 9444K
[    1.123654] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.130545] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    1.141512] Initialise system trusted keyrings
[    1.145972] Key type blacklist registered
[    1.151540] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    1.158086] zbud: loaded
[    1.171598] NFS: Registering the id_resolver key type
[    1.176646] Key type id_resolver registered
[    1.181023] Key type id_legacy registered
[    1.185029] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.191792] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.550131] Key type asymmetric registered
[    1.554218] Asymmetric key parser 'x509' registered
[    1.559298] bounce: pool size: 64 pages
[    1.563304] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    1.570930] io scheduler noop registered
[    1.574839] io scheduler deadline registered
[    1.579188] io scheduler cfq registered (default)
[    1.586300] armada-370-pinctrl d0018000.pin-ctrl: registered pinctrl driver
[    1.600821] mvebu-pcie soc:pcie@82000000: PCI host bridge to bus 0000:00
[    1.607506] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.613586] pci_bus 0000:00: root bus resource [mem 0xf8000000-0xffdfffff]
[    1.620736] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    1.628969] PCI: bus0: Fast back to back transfers disabled
[    1.634532] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.642792] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.651989] PCI: bus1: Fast back to back transfers enabled
[    1.658155] pci 0000:02:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s x1 link at 0000:00:02.0 (capable of 4.000 Gb/s with 5 GT/s x1 link)
[    1.699541] PCI: bus2: Fast back to back transfers disabled
[    1.705181] pci 0000:00:02.0: BAR 14: assigned [mem 0xf8000000-0xf80fffff]
[    1.712101] pci 0000:00:01.0: BAR 6: assigned [mem 0xf8100000-0xf81007ff pref]
[    1.719341] pci 0000:00:02.0: BAR 6: assigned [mem 0xf8200000-0xf82007ff pref]
[    1.726535] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.731537] pci 0000:02:00.0: BAR 0: assigned [mem 0xf8000000-0xf800ffff 64bit]
[    1.738846] pci 0000:02:00.0: BAR 2: assigned [mem 0xf8010000-0xf8010fff 64bit]
[    1.746132] pci 0000:02:00.0: BAR 4: assigned [mem 0xf8011000-0xf8011fff 64bit]
[    1.753435] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.758382] pci 0000:00:02.0:   bridge window [mem 0xf8000000-0xf80fffff]
[    1.765505] pcieport 0000:00:02.0: enabling device (0140 -> 0142)
[    1.772836] mv_xor d0060800.xor: Marvell shared XOR driver
[    1.839596] mv_xor d0060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.847284] mv_xor d0060900.xor: Marvell shared XOR driver
[    1.909578] mv_xor d0060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    2.067207] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    2.077306] printk: console [ttyS0] disabled
[    2.103116] d0012000.serial: ttyS0 at MMIO 0xd0012000 (irq = 20, base_baud = 12500000) is a 16550A
[    2.112370] printk: console [ttyS0] enabled
[    2.112370] printk: console [ttyS0] enabled
[    2.120831] printk: bootconsole [earlycon0] disabled
[    2.120831] printk: bootconsole [earlycon0] disabled
[    2.133137] sata_mv d00a0000.sata: slots 32 ports 1
[    2.150459] scsi host0: sata_mv
[    2.154061] ata1: SATA max UDMA/133 irq 30
[    2.162313] m25p80 spi0.0: mx25l1606e (2048 Kbytes)
[    2.167242] 1 fixed-partitions partitions found on MTD device spi0.0
[    2.174022] Creating 1 MTD partitions on "spi0.0":
[    2.179074] 0x000000000000-0x000000200000 : "u-boot"
[    2.188216] libphy: Fixed MDIO Bus: probed
[    2.196351] libphy: orion_mdio_bus: probed
[    2.228120] mvneta d0070000.ethernet eth0: Using random mac address 7a:c5:94:76:64:78
[    2.242278] mvneta d0074000.ethernet eth1: Using random mac address 36:cb:fa:51:56:50
[    2.252455] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.259566] ehci-pci: EHCI PCI platform driver
[    2.264206] ehci-orion: EHCI orion driver
[    2.268419] orion-ehci d0050000.usb: EHCI Host Controller
[    2.274299] orion-ehci d0050000.usb: new USB bus registered, assigned bus number 1
[    2.282218] orion-ehci d0050000.usb: irq 26, io mem 0xd0050000
[    2.308605] orion-ehci d0050000.usb: USB 2.0 started, EHCI 1.00
[    2.314809] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.20
[    2.323173] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.330475] usb usb1: Product: EHCI Host Controller
[    2.335379] usb usb1: Manufacturer: Linux 4.20.6-mvebu-mirabox-tld-12 ehci_hcd
[    2.342655] usb usb1: SerialNumber: d0050000.usb
[    2.348077] hub 1-0:1.0: USB hub found
[    2.352172] hub 1-0:1.0: 1 port detected
[    2.356923] orion-ehci d0051000.usb: EHCI Host Controller
[    2.362733] orion-ehci d0051000.usb: new USB bus registered, assigned bus number 2
[    2.370573] orion-ehci d0051000.usb: irq 27, io mem 0xd0051000
[    2.398601] orion-ehci d0051000.usb: USB 2.0 started, EHCI 1.00
[    2.404832] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.20
[    2.413193] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.420491] usb usb2: Product: EHCI Host Controller
[    2.425395] usb usb2: Manufacturer: Linux 4.20.6-mvebu-mirabox-tld-12 ehci_hcd
[    2.432691] usb usb2: SerialNumber: d0051000.usb
[    2.438106] hub 2-0:1.0: USB hub found
[    2.442204] hub 2-0:1.0: 1 port detected
[    2.447292] xhci_hcd 0000:02:00.0: xHCI Host Controller
[    2.453027] xhci_hcd 0000:02:00.0: new USB bus registered, assigned bus number 3
[    2.461160] xhci_hcd 0000:02:00.0: hcc params 0x200073a9 hci version 0x100 quirks 0x0000000000080010
[    2.471190] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.20
[    2.479592] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.486877] usb usb3: Product: xHCI Host Controller
[    2.491828] usb usb3: Manufacturer: Linux 4.20.6-mvebu-mirabox-tld-12 xhci-hcd
[    2.499180] usb usb3: SerialNumber: 0000:02:00.0
[    2.504567] hub 3-0:1.0: USB hub found
[    2.508668] hub 3-0:1.0: 2 ports detected
[    2.513435] xhci_hcd 0000:02:00.0: xHCI Host Controller
[    2.518995] xhci_hcd 0000:02:00.0: new USB bus registered, assigned bus number 4
[    2.526452] xhci_hcd 0000:02:00.0: Host supports USB 3.0  SuperSpeed
[    2.533009] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.541370] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.20
[    2.549863] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.557123] usb usb4: Product: xHCI Host Controller
[    2.562075] usb usb4: Manufacturer: Linux 4.20.6-mvebu-mirabox-tld-12 xhci-hcd
[    2.569487] usb usb4: SerialNumber: 0000:02:00.0
[    2.574844] hub 4-0:1.0: USB hub found
[    2.578936] hub 4-0:1.0: 2 ports detected
[    2.584433] usbcore: registered new interface driver usblp
[    2.590803] usbcore: registered new interface driver usb-storage
[    2.597605] mousedev: PS/2 mouse device common for all mice
[    2.604758] rtc-mv d0010300.rtc: rtc core: registered d0010300.rtc as rtc0
[    2.612889] i2c /dev entries driver
[    2.617817] pca953x 0-0025: 0-0025 supply vcc not found, using dummy regulator
[    2.625755] pca953x 0-0025: Linked as a consumer to regulator.0
[    2.631945] pca953x 0-0025: failed reading register
[    2.636907] pca953x 0-0025: Dropping the link to regulator.0
[    2.668630] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    2.676413] orion_wdt: Initial timeout 229 sec
[    2.682561] armada-370-pinctrl d0018000.pin-ctrl: pin PIN63 already requested by d0010600.spi; cannot claim for soc:internal-regs:gpio_leds
[    2.695605] ata1.00: supports DRM functions and may not be fully accessible
[    2.703112] ata1.00: ATA-11: KINGSTON SUV500MS240G, 003056RI, max UDMA/133
[    2.710181] armada-370-pinctrl d0018000.pin-ctrl: pin-63 (soc:internal-regs:gpio_leds) status -22
[    2.719190] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    2.726086] ata1.00: 468862128 sectors, multi 1: LBA48 NCQ (depth 31/32)
[    2.733060] armada-370-pinctrl d0018000.pin-ctrl: could not request pin 63 (PIN63) from group mpp63  on device d0018000.pin-ctrl
[    2.744908] leds-gpio soc:internal-regs:gpio_leds: Error applying setting, reverse things back
[    2.753647] leds-gpio: probe of soc:internal-regs:gpio_leds failed with error -22
[    2.808685] usb 2-1: new high-speed USB device number 2 using orion-ehci
[    2.905239] marvell-cesa d0090000.crypto: CESA device successfully registered
[    2.913146] hidraw: raw HID events driver (C) Jiri Kosina
[    2.919707] usbcore: registered new interface driver usbhid
[    2.925311] usbhid: USB HID core driver
[    2.929999] drop_monitor: Initializing network drop monitor service
[    2.936709] NET: Registered protocol family 10

Re: Debian on Mirabox (Armada 370)
October 22, 2019 01:59AM
> Some improvement as now it appears to initialize
> SATA and SPI flash, but still reboots! Looks like
> there may be a conflict between the SPI flash and
> gpio_leds.

Cool!

[    2.154061] ata1: SATA max UDMA/133 irq 30

[    2.162313] m25p80 spi0.0: mx25l1606e (2048 Kbytes)
[    2.167242] 1 fixed-partitions partitions found on MTD device spi0.0
[    2.174022] Creating 1 MTD partitions on "spi0.0":
[    2.179074] 0x000000000000-0x000000200000 : "u-boot"
[    2.188216] libphy: Fixed MDIO Bus: probed

[    2.196351] libphy: orion_mdio_bus: probed
[    2.228120] mvneta d0070000.ethernet eth0: Using random mac address 7a:c5:94:76:64:78
[    2.242278] mvneta d0074000.ethernet eth1: Using random mac address 36:cb:fa:51:56:50

So SATA, SPI, and Ethernet are working!

I've reassigned SPI to pins1 here in this update. Please try.

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



Edited 2 time(s). Last edit at 10/22/2019 02:41AM by bodhi.
Attachments:
open | download - armada-370-mirabox-v9.dtb (12.7 KB)
open | download - armada-370-mirabox-v9.dts (3.3 KB)
Re: Debian on Mirabox (Armada 370)
October 22, 2019 09:15AM
does that device have a an sdcard reader or similar? I seem to remember I solved a lot of conflicts by removind the mvsdio entry on devices where it isn't actually needed. I also found one that didn't use i2c and was re-using those pins and solved some issues.

The buffalo devices all use spi1 instead of spi0 pins for what it's worth.
Re: Debian on Mirabox (Armada 370)
October 22, 2019 05:22PM
Yes, this has one USB card reader and one real SD slot (MMC).

The DTS that works for V5 box does not have SPI flash.

mpp63 is green_pwr_led in the V5 box, so I would think it is the same on V9 box.

The SPI pins I used in previous DTS defined spi0_pins2, that group contains mpp63. So I think the correct group must be spi0_pins1.

grep -i2 spi armada-370-mirabox-v9.dts
};

&spi0 {
	status = "okay";
	pinctrl-0 = <&spi0_pins1>;
	pinctrl-names = "default";

	spi-flash@0 {
		#address-cells = <1>;
		#size-cells = <1>;
		/* spi0.0: 2M Flash Macronix MX25L1605D */
		compatible = "mxicy,mx25L1605d", "jedec,spi-nor";
		reg = <0>; /* Chip select 0 */
		spi-max-frequency = <50000000>;

		partition@0 {


I suspect that the reset GPIO (if it has one) is somehow in conflict with other GPIOs, or this box uses a different reset driver. So we just try to eliminate all conflicts to see it can be narrow down to the real problem.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Mirabox (Armada 370)
October 22, 2019 09:29PM
Latest result:

BootROM 1.08
Booting from SPI flash
DDR3 Training Sequence - Ver 4.4.0
DDR3 Training Sequence - Ended Successfully 
Status = MV_OK
BootROM: Image checksum verification PASSED

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


U-Boot 2009.08 (Jul 15 2015 - 21:57:33)Marvell version: 1.1.2 NQ
U-Boot Addressing:
       Code:            00600000:006AFFF0
       BSS:             006F7240
       Stack:           0x5fff70
       PageTable:       0x8e0000
       Heap address:    0x900000:0xe00000
Board: DB-88F6710-BP
SoC:   MV6710 A1
CPU:   Marvell PJ4B v7 UP (Rev 1) LE
       CPU @ 1200Mhz, L2 @ 600Mhz
       DDR @ 600Mhz, TClock @ 200Mhz
       DDR 16Bit Width, FastPath Memory Access
PEX 0: Detected No Link.
PEX 1: Root Complex Interface, Detected Link X1
DRAM:   1 GB
       CS 0: base 0x00000000 size 512 MB
       CS 1: base 0x20000000 size 512 MB
       Addresses 14M - 0M are saved for the U-Boot usage.
SF: Detected MX25L1605D with page size 256, total 2097152 bytes
FPU not initialized
USB 0: Host Mode
USB 1: Host Mode
Modules/Interfaces Detected:
       RGMII0 Phy
       RGMII1 Phy
       PEX0 (Lane 0)
       SATA0 (Lane 2)
       SATA1 (Lane 3)
MMC:   MRVL_MMC: 0
Net:   egiga0 [PRIME], egiga1
flag =  ff
Hit any key to stop autoboot:  0 
Booting Debian...

Reset IDE: 
Marvell Serial ATA Adapter
Integrated Sata device found
  Device 0 @ 0 0:
Model: KINGSTON SUV500MS240G                    Firm: 003056RI Ser#: 50026B77828DFAB5    
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 228936.5 MB = 223.5 GB (468862128 x 512)

Loading file "/boot/uImage" from ide device 0:1 (hda1)
4075272 bytes read
Loading file "/boot/uInitrd" from ide device 0:1 (hda1)
9668627 bytes read
## Booting kernel from Legacy Image at 06400000 ...
   Image Name:   Linux-4.20.6-mvebu-mirabox-tld-1
   Created:      2019-10-23   2:14:39 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4075208 Bytes =  3.9 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 08400000 ...
   Image Name:   initramfs-4.20.6-mvebu-mirabox-t
   Created:      2019-10-19   5:27:20 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9668563 Bytes =  9.2 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.20.6-mvebu-mirabox-tld-12 (root@tldDebianVM) (gcc version 7.3.0 (Ubuntu/Linaro 7.3.0-27ubuntu1~18.04)) #6 SMP PREEMPT Wed Mar 13 14:43:16 PDT 2019
[    0.000000] CPU: ARMv7 Processor [561f5811] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000] OF: fdt: Machine model: Globalscale Mirabox V9
[    0.000000] printk: bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writeback
[    0.000000] CPU: All CPU(s) started in SVC mode.
[    0.000000] random: get_random_bytes called from start_kernel+0x78/0x4c4 with crng_init=0
[    0.000000] percpu: Embedded 18 pages/cpu @(ptrval) s41548 r8192 d23988 u73728
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial
[    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: 1016632K/1048576K available (8192K kernel code, 731K rwdata, 2072K rodata, 1024K init, 320K bss, 31944K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0x(ptrval) - 0x(ptrval)   (9184 kB)
[    0.000000]       .init : 0x(ptrval) - 0x(ptrval)   (1024 kB)
[    0.000000]       .data : 0x(ptrval) - 0x(ptrval)   ( 732 kB)
[    0.000000]        .bss : 0x(ptrval) - 0x(ptrval)   ( 321 kB)
[    0.000000] rcu: Preemptible hierarchical RCU implementation.
[    0.000000] rcu:     RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[    0.000000]  Tasks RCU enabled.
[    0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] L2C: DT/platform modifies aux control register: 0x12086300 -> 0x1a086302
[    0.000000] Aurora cache controller enabled, 4 ways, 256 kB
[    0.000000] Aurora: CACHE_ID 0x00000100, AUX_CTRL 0x1a086302
[    0.000000] Switching to timer-based delay loop, resolution 53ns
[    0.000007] sched_clock: 32 bits at 18MHz, resolution 53ns, wraps every 114840871909ns
[    0.007893] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 102208375848 ns
[    0.019516] Console: colour dummy device 80x30
[    0.023966] Calibrating delay loop (skipped), value calculated using timer frequency.. 37.39 BogoMIPS (lpj=186996)
[    0.034309] pid_max: default: 32768 minimum: 301
[    0.039096] LSM: Security Framework initializing
[    0.043776] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.050383] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.058181] CPU: Testing write buffer coherency: ok
[    0.063347] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.118914] Setting up static identity map for 0x100000 - 0x100060
[    0.125375] mvebu-soc-id: MVEBU SoC ID=0x6710, Rev=0x1
[    0.130646] mvebu-pmsu: Initializing Power Management Service Unit
[    0.148856] rcu: Hierarchical SRCU implementation.
[    0.188858] smp: Bringing up secondary CPUs ...
[    0.193377] smp: Brought up 1 node, 1 CPU
[    0.197368] SMP: Total of 1 processors activated (37.39 BogoMIPS).
[    0.203550] CPU: All CPU(s) started in SVC mode.
[    0.208976] devtmpfs: initialized
[    0.219005] VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 6
[    0.227148] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.237220] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.243587] prandom: seed boundary self test passed
[    0.251052] prandom: 100 self tests passed
[    0.255133] pinctrl core: initialized pinctrl subsystem
[    0.262047] NET: Registered protocol family 16
[    0.266904] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.275003] audit: initializing netlink subsys (disabled)
[    0.282071] cpuidle: using governor ladder
[    0.286199] audit: type=2000 audit(0.260:1): state=initialized audit_enabled=0 res=1
[    0.294989] cpuidle: using governor menu
[    0.299228] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.389783] vgaarb: loaded
[    0.392785] SCSI subsystem initialized
[    0.399509] usbcore: registered new interface driver usbfs
[    0.405014] usbcore: registered new interface driver hub
[    0.411645] usbcore: registered new device driver usb
[    0.417661] pps_core: LinuxPPS API ver. 1 registered
[    0.423144] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.432450] PTP clock support registered
[    0.438559] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.496270] VFS: Disk quotas dquot_6.6.0
[    0.500297] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.530372] NET: Registered protocol family 2
[    0.535876] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.544186] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.551541] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.558016] TCP: Hash tables configured (established 8192 bind 8192)
[    0.564543] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.570521] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.577048] NET: Registered protocol family 1
[    0.612173] RPC: Registered named UNIX socket transport module.
[    0.618069] RPC: Registered udp transport module.
[    0.622838] RPC: Registered tcp transport module.
[    0.627521] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.634164] Unpacking initramfs...
[    1.122352] Freeing initrd memory: 9444K
[    1.126395] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.133298] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    1.144293] Initialise system trusted keyrings
[    1.150136] Key type blacklist registered
[    1.154327] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    1.160952] zbud: loaded
[    1.174379] NFS: Registering the id_resolver key type
[    1.179643] Key type id_resolver registered
[    1.183809] Key type id_legacy registered
[    1.187811] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.194579] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.553034] Key type asymmetric registered
[    1.557121] Asymmetric key parser 'x509' registered
[    1.562225] bounce: pool size: 64 pages
[    1.566231] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    1.573854] io scheduler noop registered
[    1.577762] io scheduler deadline registered
[    1.582114] io scheduler cfq registered (default)
[    1.589341] armada-370-pinctrl d0018000.pin-ctrl: registered pinctrl driver
[    1.603914] mvebu-pcie soc:pcie@82000000: PCI host bridge to bus 0000:00
[    1.611197] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.616665] pci_bus 0000:00: root bus resource [mem 0xf8000000-0xffdfffff]
[    1.623811] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    1.632001] PCI: bus0: Fast back to back transfers disabled
[    1.637563] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.645847] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.655037] PCI: bus1: Fast back to back transfers enabled
[    1.661263] pci 0000:02:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s x1 link at 0000:00:02.0 (capable of 4.000 Gb/s with 5 GT/s x1 link)
[    1.699558] PCI: bus2: Fast back to back transfers disabled
[    1.705199] pci 0000:00:02.0: BAR 14: assigned [mem 0xf8000000-0xf80fffff]
[    1.712119] pci 0000:00:01.0: BAR 6: assigned [mem 0xf8100000-0xf81007ff pref]
[    1.719360] pci 0000:00:02.0: BAR 6: assigned [mem 0xf8200000-0xf82007ff pref]
[    1.726554] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.731532] pci 0000:02:00.0: BAR 0: assigned [mem 0xf8000000-0xf800ffff 64bit]
[    1.738839] pci 0000:02:00.0: BAR 2: assigned [mem 0xf8010000-0xf8010fff 64bit]
[    1.746125] pci 0000:02:00.0: BAR 4: assigned [mem 0xf8011000-0xf8011fff 64bit]
[    1.753428] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.758375] pci 0000:00:02.0:   bridge window [mem 0xf8000000-0xf80fffff]
[    1.765492] pcieport 0000:00:02.0: enabling device (0140 -> 0142)
[    1.772836] mv_xor d0060800.xor: Marvell shared XOR driver
[    1.839580] mv_xor d0060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.847271] mv_xor d0060900.xor: Marvell shared XOR driver
[    1.909562] mv_xor d0060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    2.065861] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    2.076079] printk: console [ttyS0] disabled
[    2.101833] d0012000.serial: ttyS0 at MMIO 0xd0012000 (irq = 20, base_baud = 12500000) is a 16550A
[    2.111091] printk: console [ttyS0] enabled
[    2.111091] printk: console [ttyS0] enabled
[    2.119550] printk: bootconsole [earlycon0] disabled
[    2.119550] printk: bootconsole [earlycon0] disabled
[    2.131844] sata_mv d00a0000.sata: slots 32 ports 1
[    2.149231] scsi host0: sata_mv
[    2.152838] ata1: SATA max UDMA/133 irq 30
[    2.161177] m25p80 spi0.0: mx25l1606e (2048 Kbytes)
[    2.166107] 1 fixed-partitions partitions found on MTD device spi0.0
[    2.172858] Creating 1 MTD partitions on "spi0.0":
[    2.177691] 0x000000000000-0x000000200000 : "u-boot"
[    2.187036] libphy: Fixed MDIO Bus: probed
[    2.195164] libphy: orion_mdio_bus: probed
[    2.226901] mvneta d0070000.ethernet eth0: Using random mac address 32:b6:2c:7a:38:d7
[    2.241024] mvneta d0074000.ethernet eth1: Using random mac address d6:05:78:d9:0d:4b
[    2.251232] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.257823] ehci-pci: EHCI PCI platform driver
[    2.262920] ehci-orion: EHCI orion driver
[    2.267137] orion-ehci d0050000.usb: EHCI Host Controller
[    2.273013] orion-ehci d0050000.usb: new USB bus registered, assigned bus number 1
[    2.280937] orion-ehci d0050000.usb: irq 26, io mem 0xd0050000
[    2.308593] orion-ehci d0050000.usb: USB 2.0 started, EHCI 1.00
[    2.314794] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.20
[    2.323158] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.330460] usb usb1: Product: EHCI Host Controller
[    2.335364] usb usb1: Manufacturer: Linux 4.20.6-mvebu-mirabox-tld-12 ehci_hcd
[    2.342640] usb usb1: SerialNumber: d0050000.usb
[    2.348062] hub 1-0:1.0: USB hub found
[    2.352154] hub 1-0:1.0: 1 port detected
[    2.356915] orion-ehci d0051000.usb: EHCI Host Controller
[    2.362725] orion-ehci d0051000.usb: new USB bus registered, assigned bus number 2
[    2.370589] orion-ehci d0051000.usb: irq 27, io mem 0xd0051000
[    2.398590] orion-ehci d0051000.usb: USB 2.0 started, EHCI 1.00
[    2.404818] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.20
[    2.413177] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.420476] usb usb2: Product: EHCI Host Controller
[    2.425379] usb usb2: Manufacturer: Linux 4.20.6-mvebu-mirabox-tld-12 ehci_hcd
[    2.432674] usb usb2: SerialNumber: d0051000.usb
[    2.438084] hub 2-0:1.0: USB hub found
[    2.442185] hub 2-0:1.0: 1 port detected
[    2.447269] xhci_hcd 0000:02:00.0: xHCI Host Controller
[    2.453004] xhci_hcd 0000:02:00.0: new USB bus registered, assigned bus number 3
[    2.461146] xhci_hcd 0000:02:00.0: hcc params 0x200073a9 hci version 0x100 quirks 0x0000000000080010
[    2.471175] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.20
[    2.479626] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.486886] usb usb3: Product: xHCI Host Controller
[    2.491838] usb usb3: Manufacturer: Linux 4.20.6-mvebu-mirabox-tld-12 xhci-hcd
[    2.499116] usb usb3: SerialNumber: 0000:02:00.0
[    2.504510] hub 3-0:1.0: USB hub found
[    2.508534] hub 3-0:1.0: 2 ports detected
[    2.513366] xhci_hcd 0000:02:00.0: xHCI Host Controller
[    2.518929] xhci_hcd 0000:02:00.0: new USB bus registered, assigned bus number 4
[    2.526386] xhci_hcd 0000:02:00.0: Host supports USB 3.0  SuperSpeed
[    2.532978] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.541371] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.20
[    2.549827] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.557086] usb usb4: Product: xHCI Host Controller
[    2.562036] usb usb4: Manufacturer: Linux 4.20.6-mvebu-mirabox-tld-12 xhci-hcd
[    2.569446] usb usb4: SerialNumber: 0000:02:00.0
[    2.574806] hub 4-0:1.0: USB hub found
[    2.578895] hub 4-0:1.0: 2 ports detected
[    2.584395] usbcore: registered new interface driver usblp
[    2.590762] usbcore: registered new interface driver usb-storage
[    2.597566] mousedev: PS/2 mouse device common for all mice
[    2.604726] rtc-mv d0010300.rtc: rtc core: registered d0010300.rtc as rtc0
[    2.612858] i2c /dev entries driver
[    2.617792] pca953x 0-0025: 0-0025 supply vcc not found, using dummy regulator
[    2.625728] pca953x 0-0025: Linked as a consumer to regulator.0
[    2.631920] pca953x 0-0025: failed reading register
[    2.636882] pca953x 0-0025: Dropping the link to regulator.0
[    2.648692] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    2.657326] ata1.00: supports DRM functions and may not be fully accessible
[    2.664597] ata1.00: ATA-11: KINGSTON SUV500MS240G, 003056RI, max UDMA/133
[    2.672728] orion_wdt: Initial timeout 229 sec
[    2.679257] ata1.00: 468862128 sectors, multi 1: LBA48 NCQ (depth 31/32)
[    2.718693] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    2.808728] usb 2-1: new high-speed USB device number 2 using orion-ehci
[    2.838731] marvell-cesa d0090000.crypto: CESA device successfully registered
[    2.846576] hidraw: raw HID events driver (C) Jiri Kosina
[    2.852984] usbcore: registered new interface driver usbhid
[    2.859086] usbhid: USB HID core driver
[    2.863384] drop_monitor: Initializing network drop monitor service
[    2.870442] NET: Registered protocol family 10
[    2.886201] Segment Routing with IPv6
[    2.890202] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.897998] NET: Registered protocol family 17

At which point it again reboots!

Ray
Re: Debian on Mirabox (Armada 370)
October 22, 2019 10:49PM
Ray,

OK so the mpp63 confict is gone, and SPI still works.

Now back to my guess about other conficts. When the box resets like this without displaying any error, I think more likely that there is a reset GPIO that we don't know about. This is where GPL would save use a lot of trials and errors. Without the GPL, we'll just have to look for this in stock OS, and also removing the GPIO LED from the v9 DTS to see if they could have been incorrect and causing the reset.

1. Have you tried rebooting the box from inside stock OS? the log of that might show some interesting info.

2. In stock OS get the listing of the devices to see what's there:

ls -l /sys/class/


3. In stock OS you could try to manipulate the LEDs GPIO to see if the definition in V5 DTS are correct. See here for example:

https://forum.doozan.com/read.php?2,12096,35663#msg-35663

ls -l /sys/class/gpio/

If it so happens that in doing that the box got reset, then we'll know the LED GPIOs in v5 DTS are not correct for V9. And we also identified the Reset GPIO for v9 DTS.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Mirabox (Armada 370)
October 22, 2019 11:39PM
bodhi Wrote:
-------------------------------------------------------
> Ray,
>
> 1. Have you tried rebooting the box from inside
> stock OS? the log of that might show some
> interesting info.
>
I assume you mean the log of the box after issuing the reboot command.

root@mirabox-debian:~# reboot

The system is going down for reboot NOW!an (ttyS0) (Wed Oct 23 04:37:59 2019)
root@mirabox-debmserial8250: too much work for irq41
[info] Using makefile-style concurrent boot in runlevel 6.
[ ok ] Network Interface Plugging Daemon...stop eth0...done.
[ ok ] Stopping DNS forwarder and DHCP server: dnsmasq.
Stopping very small Busybox based DHCP server: Stopped /usr/sbin/udhcpd (pid 2957).
udhcpd.
[ ok ] Stopping web server: lighttpd.
[info] Saving the system clock.
[ ok ] Asking all remaining processes to terminate...done.
[ ok ] All processes ended within 1 seconds...done.
[....] Deconfiguring network interfaces...Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/f0:ad:4e:03:12:a1
Sending on   LPF/eth0/f0:ad:4e:03:12:a1
Sending on   Socket/fallback
DHCPRELEASE on eth0 to 192.168.11.1 port 67
eth0: stopped
Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth1/f0:ad:4e:03:12:a2
Sending on   LPF/eth1/f0:ad:4e:03:12:a2
Sending on   Socket/fallback
DHCPRELEASE on eth1 to 192.168.11.1 port 67
send_packet: Network is unreachable
send_packet: please consult README file regarding broadcast address.
eth1: stopped
done.
[ ok ] Deactivating swap...done.
[ ok ] Unmounting local filesystems...done.
EXT4-fs (sdb2): re-mounted. Opts: (null)
[info] Will now restart.
sd 0:0:0:0: [sda] Synchronizing SCSI cache
Shutting Down Marvell Ethernet Driver
Restarting system.


> 2. In stock OS get the listing of the devices to
> see what's there:
>
>
> ls -l /sys/class/
>
>
>

root@mirabox-debian:~# ls -l /sys/class/
total 0
drwxr-xr-x 2 root root 0 Oct 23 04:28 ata_device
drwxr-xr-x 2 root root 0 Oct 23 04:28 ata_link
drwxr-xr-x 2 root root 0 Oct 23 04:28 ata_port
drwxr-xr-x 2 root root 0 Oct 23 04:28 bdi
drwxr-xr-x 2 root root 0 Oct 23 04:28 block
drwxr-xr-x 2 root root 0 Oct 23 04:28 bluetooth
drwxr-xr-x 2 root root 0 Oct 23 04:28 dma
drwxr-xr-x 2 root root 0 Oct 23 04:28 firmware
drwxr-xr-x 2 root root 0 Oct 23 04:28 gpio
drwxr-xr-x 2 root root 0 Oct 23 04:28 hwmon
drwxr-xr-x 2 root root 0 Oct 23 04:28 i2c-adapter
drwxr-xr-x 2 root root 0 Oct 23 04:28 i2c-dev
drwxr-xr-x 2 root root 0 Oct 23 04:28 ieee80211
drwxr-xr-x 2 root root 0 Oct 23 04:28 input
drwxr-xr-x 2 root root 0 Oct 23 04:28 mdio_bus
drwxr-xr-x 2 root root 0 Oct 23 04:28 mem
drwxr-xr-x 2 root root 0 Oct 23 04:28 misc
drwxr-xr-x 2 root root 0 Oct 23 04:28 mmc_host
drwxr-xr-x 2 root root 0 Oct 23 04:28 mtd
drwxr-xr-x 2 root root 0 Oct 23 04:27 net
drwxr-xr-x 2 root root 0 Oct 23 04:28 pci_bus
drwxr-xr-x 2 root root 0 Oct 23 04:28 ppp
drwxr-xr-x 2 root root 0 Oct 23 04:28 rfkill
drwxr-xr-x 2 root root 0 Oct 23 04:28 rtc
drwxr-xr-x 2 root root 0 Oct 23 04:28 scsi_device
drwxr-xr-x 2 root root 0 Oct 23 04:28 scsi_disk
drwxr-xr-x 2 root root 0 Oct 23 04:28 scsi_host
drwxr-xr-x 2 root root 0 Oct 23 04:28 sound
drwxr-xr-x 2 root root 0 Oct 23 04:28 spi_master
drwxr-xr-x 2 root root 0 Oct 23 04:28 tty
drwxr-xr-x 2 root root 0 Oct 23 04:28 ubi
drwxr-xr-x 2 root root 0 Oct 23 04:28 usb_device
root@mirabox-debian:~#


> 3. In stock OS you could try to manipulate the
> LEDs GPIO to see if the definition in V5 DTS are
> correct. See here for example:
>
> https://forum.doozan.com/read.php?2,12096,35663#msg-35663
>
>
> ls -l /sys/class/gpio/
>
>

root@mirabox-debian:~# ls -l /sys/class/gpio/
total 0
--w------- 1 root root 4096 Oct 23 04:28 export
lrwxrwxrwx 1 root root    0 Oct 23 04:28 gpiochip0 -> ../../devices/virtual/gpio/gpiochip0
--w------- 1 root root 4096 Oct 23 04:28 unexport
root@mirabox-debian:~# 
root@mirabox-debian:~# ls -l /sys/devices/virtual/gpio/gpiochip0/
total 0
-r--r--r-- 1 root root 4096 Oct 23 04:32 base
-r--r--r-- 1 root root 4096 Oct 23 04:32 label
-r--r--r-- 1 root root 4096 Oct 23 04:32 ngpio
drwxr-xr-x 2 root root    0 Oct 23 04:32 power
lrwxrwxrwx 1 root root    0 Oct 23 04:28 subsystem -> ../../../../class/gpio
-rw-r--r-- 1 root root 4096 Oct 23 04:28 uevent
root@mirabox-debian:~#

Ray
Re: Debian on Mirabox (Armada 370)
October 23, 2019 12:46AM
OK, so I've seen nothing useful from the reboot and listing of /sys/class above.


The next thing to do is:

Quote

3. In stock OS you could try to manipulate the LEDs GPIO to see if the definition in V5 DTS are correct. See here for example:

https://forum.doozan.com/read.php?2,12096,35663#msg-35663

If it so happens that in doing that the box got reset, then we'll know the LED GPIOs in v5 DTS are not correct for V9. And we also identified the Reset GPIO for v9 DTS.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Mirabox (Armada 370)
October 24, 2019 12:41AM
Ray,

Drill down a bit further in stock OS:

ls -lR /sys/class/gpio/gpiochip0/

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



Edited 1 time(s). Last edit at 10/24/2019 12:42AM by bodhi.
Re: Debian on Mirabox (Armada 370)
November 18, 2019 11:15PM
Hi guys,

Could you post the stock kernel config file for your Mirabox V9? The Debian reset problem Ray is seeing could either be GPIO-related, but it could also be config RESET driver related.

In your Mirabox stock rootfs, see if it is on /boot. Or find it in proc: /proc/config.gz

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Mirabox (Armada 370)
November 19, 2019 12:14AM
bodhi Wrote:
-------------------------------------------------------
> Hi guys,
>
> Could you post the stock kernel config file for
> your Mirabox V9? The Debian reset problem Ray is
> seeing could either be GPIO-related, but it could
> also be config RESET driver related.
>
> In your Mirabox stock rootfs, see if it is on
> /boot. Or find it in proc: /proc/config.gz

Unfortunately I've hosed the stock partition on mine and need to find an image to restore!

Ray
Re: Debian on Mirabox (Armada 370)
November 20, 2019 04:12AM
> Unfortunately I've hosed the stock partition on
> mine and need to find an image to restore!

Argh... good luck! I've tried that V9 tarball I got from the Google site, it is garbage :)

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Mirabox (Armada 370)
November 26, 2020 04:32PM
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: