Welcome! Log In Create A New Profile

Advanced

Debian on Netgear RN102

Posted by whitepawn 
Debian on Netgear RN102
August 16, 2020 09:00AM
Hi again after long time ago.

About 1 year ago i bought Netgear RN102 NAS device and compiled my own kernel and I was busy with work so i have spare time now to test it.
My main goal is installing debian on my device and use it with openmediavault and also i want this topic will be a guide for whom have same device.

When i bought this unit it was shipped with 6.2.4 stock firmware so i upgraded it to 6.5.2 firmware and then i updated 6.10.3 firmware according to netgear offical firmware installation guide because i think it also replaces u-boot.Now it has stock 6.10.3 Firmware and U-Boot 2011.12-gec25d27-dirty (Oct 26 2015 - 16:53:05) Marvell version: v2011.12 2014_T2.0p1
06/23/2015 ReadyNAS-102 V2.0 U-boot as seen as below bootlog:

BootROM 1.08
Booting from NAND flash


General initialization - Version: 1.0.0

High speed PHY - Version: 2.1.4 (COM-PHY-V20)
Update PEX Device ID 0x6710
High speed PHY - Ended Successfully
0000
DDR3 Training Sequence - Ver 5.7.1
DDR3 Training Sequence - Run without PBS.
DDR3 Training Sequence - Ended Successfully
BootROM: Image checksum verification PASSED

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


U-Boot 2011.12-gec25d27-dirty (Oct 26 2015 - 16:53:05) Marvell version: v2011.12 2014_T2.0p1
06/23/2015 ReadyNAS-102 V2.0

Board: DB-88F6710-BP
SoC:   MV6710 A1
CPU:   Marvell PJ4B v7 UP (Rev 1) LE
       CPU    @ 1200 [MHz]
       L2     @ 600 [MHz]
       TClock @ 200 [MHz]
       DDR    @ 600 [MHz]
       DDR 16Bit Width, FastPath Memory Access
DRAM:  512 MiB

Map:   Code:            0x1feef000:0x1ff9ef34
       BSS:             0x1ffef0a0
       Stack:           0x1f9eeef8
       Heap:            0x1f9ef000:0x1feef000

NAND:  (ID 0xf12c)      128 MiB
MMC:   MRVL_MMC: 0
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01

Initialize and scan all PCI interfaces
PEX unit.port(active IF[-first bus]):
------------------------------------------
PEX 0: Root Complex Interface, Detected Link X1, GEN 2.0
PEX 1: Root Complex Interface, Detected Link X1, GEN 2.0
FPU not initialized
USB 0: Host Mode
USB 1: Host Mode
Shutting down unused interfaces:
       GBE0
       SDIO
       AUDIO
       TDM
Modules/Interfaces Detected:
       RGMII1 Phy
       PEX0 (Lane 0)
       PEX1 (Lane 1)
       SATA0 (Lane 2)
       SATA1 (Lane 3)
Net:   , egiga1 [PRIME]
Power On!

FDT loaded successfully
Hit any key to stop autoboot:  0

NAND read: device 0 offset 0x200000, size 0x400000
 4194304 bytes read: OK

NAND read: device 0 offset 0x800000, size 0x400000
 4194304 bytes read: OK
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-4.4.190.armada.1
   Created:      2019-10-28   2:07:50 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3474568 Bytes = 3.3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 03000000 ...
   Image Name:   initramfs
   Created:      2020-02-12   1:13:27 UTC
   Image Type:   ARM Linux RAMDisk Image (lzma compressed)
   Data Size:    3425105 Bytes = 3.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x01000000
   Loading Kernel Image ... OK
   Using Ramdisk in place at 03000040, end 03344391
   Using Device Tree in place at 01000000, end 01006617
Updating device tree successful

Starting kernel ...


Starting the boot process...
Detected system type: RN102
Loading kernel modules...done
Boot mode: Normal
UBI device number 0, total 920 LEBs (116817920 bytes, 111.4 MiB), available 9 LEBs (1142784 bytes, 1.1 MiB), LEB size 126976 bytes (124.0 KiB)
Bringing up network...eth0.done
Bringing up RAID arrays...done
e2fsck 1.42.13 (17-May-2015)
2fe67a08_root: clean, 13336/1048576 files, 233169/1047552 blocks
Switching root to RAID device.


Welcome to ReadyNASOS 6.10.3!

[  OK  ] Reached target Remote File Systems (Pre).
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Listening on udev Control Socket.
[  OK  ] Reached target Encrypted Volumes.
[  OK  ] Created slice System Slice.
[  OK  ] Created slice system-getty.slice.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[  OK  ] Listening on udev Kernel Socket.
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Reached target Paths.
[  OK  ] Created slice User and Session Slice.
[  OK  ] Reached target Slices.
[  OK  ] Listening on Journal Socket.
         Starting Remount Root and Kernel File Systems...
[  OK  ] Started ReadyNAS LCD splasher.
         Starting Load Kernel Modules...
         Starting Create Static Device Nodes in /dev...
         Starting ReadyNASOS system prep...
         Mounting POSIX Message Queue File System...
[  OK  ] Listening on Journal Socket (/dev/log).
         Starting Journal Service...
[  OK  ] Reached target Remote File Systems.
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Started Load Kernel Modules.
         Mounting FUSE Control File System...
         Starting Apply Kernel Variables...
         Mounting Configuration File System...
         Starting Rebuild Hardware Database...
         Starting Load/Save Random Seed...
[  OK  ] Mounted Configuration File System.
[  OK  ] Mounted FUSE Control File System.
[  OK  ] Started ReadyNASOS system prep.
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started Create Static Device Nodes in /dev.
         Starting udev Kernel Device Manager...
[  OK  ] Started udev Kernel Device Manager.
         Starting MD arrays...
[  OK  ] Started Journal Service.
         Starting Flush Journal to Persistent Storage...
[  OK  ] Started Flush Journal to Persistent Storage.
[  OK  ] Started Rebuild Hardware Database.
[  OK  ] Found device /dev/md1.
         Activating swap md1...
[  OK  ] Found device /dev/disk/by-label/2fe67a08:data.
[  OK  ] Activated swap md1.
[  OK  ] Started MD arrays.
[  OK  ] Reached target Swap.
         Starting udev Coldplug all Devices...
[  OK  ] Reached target Local File Systems (Pre).
         Mounting /data...
[  OK  ] Mounted /data.
[  OK  ] Reached target Local File Systems.
         Mounting Home Directory...
         Mounting Apps Directory...
         Starting Create Volatile Files and Directories...
         Starting LSB: Add to mtab the entry for /dev....
[  OK  ] Mounted Apps Directory.
[  OK  ] Mounted Home Directory.
[  OK  ] Started LSB: Add to mtab the entry for /dev..
[  OK  ] Started Create Volatile Files and Directories.
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Started udev Coldplug all Devices.
         Starting udev Wait for Complete Device Initialization...
[  OK  ] Found device /dev/ttyS0.
[  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
[  OK  ] Started udev Wait for Complete Device Initialization.
[  OK  ] Reached target System Initialization.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Started Timer for ReadyNAS Update Service.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
[  OK  ] Started WSD/LLMNR Discovery/Name Service Daemon.
[  OK  ] Started SSH Server Bonjour Advertisement.
[  OK  ] Started MD monitoring service.
[  OK  ] Started MD repair service.
[  OK  ] Started DLNA/UPnP-AV media server.
[  OK  ] Started Reset I2C.
[  OK  ] Started D-Bus System Message Bus.
         Starting Connection service...
[  OK  ] Started Regular background program processing daemon.
         Starting Avahi mDNS/DNS-SD Stack...
[  OK  ] Started Log Truncate Timer.
[  OK  ] Reached target Timers.
         Starting Login Service...
[  OK  ] Started RAIDar discovery service.
[  OK  ] Started Login Service.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[  OK  ] Started Connection service.
[  OK  ] Reached target Network.
[  OK  ] Started SSH Server.
         Starting The Apache HTTP Server...
         Starting Permit User Sessions...
         Starting Samba NMB Daemon...
         Starting Netatalk AFP fileserver for Macintosh clients...
[  OK  ] Started Permit User Sessions.
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Started Getty on tty1.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started Netatalk AFP fileserver for Macintosh clients.
         Starting Hostname Service...
[  OK  ] Started Hostname Service.
[  OK  ] Started The Apache HTTP Server.

ReadyNASOS 6.10.3 Neutron ttyS0


Neutron login: root
Password:
Last login: Sun Aug 16 12:40:52 EEST 2020 from desktop-ss0b1a2.lan on pts/0
Linux Neutron 4.4.190.armada.1 #1 SMP Mon Oct 28 02:07:39 UTC 2019 armv7l

Welcome to ReadyNASOS 6.10.3

root@Neutron:~# uname -a
Linux Neutron 4.4.190.armada.1 #1 SMP Mon Oct 28 02:07:39 UTC 2019 armv7l GNU/Linux
root@Neutron:~# cat /proc/cpuinfo
processor       : 0
model name      : ARMv7 Processor rev 1 (v7l)
BogoMIPS        : 34.37
Features        : half thumb fastmult vfp edsp vfpv3 vfpv3d16 tls idivt
CPU implementer : 0x56
CPU architecture: 7
CPU variant     : 0x1
CPU part        : 0x581
CPU revision    : 1

Hardware        : Marvell Armada 370/XP (Device Tree)
Revision        : 0000
Serial          : 0000000000000000
root@Neutron:~# lsblk
NAME      MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sda         8:0    0  37.3G  0 disk
├─sda1      8:1    0     4G  0 part
│ └─md0     9:0    0     4G  0 raid1 /
├─sda2      8:2    0   512M  0 part
│ └─md1     9:1    0 511.4M  0 raid1 [SWAP]
└─sda3      8:3    0  32.8G  0 part
  └─md127   9:127  0  32.7G  0 raid1 /data
mtdblock0  31:0    0   1.5M  1 disk
mtdblock1  31:1    0   512K  1 disk
mtdblock2  31:2    0     6M  1 disk
mtdblock3  31:3    0     4M  1 disk
mtdblock4  31:4    0   116M  1 disk
root@Neutron:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev             10M  4.0K   10M   1% /dev
/dev/md0        3.7G  526M  3.0G  15% /
tmpfs           249M     0  249M   0% /dev/shm
tmpfs           249M  340K  249M   1% /run
tmpfs           125M  944K  124M   1% /run/lock
tmpfs           249M     0  249M   0% /sys/fs/cgroup
/dev/md127       33G   20M   31G   1% /data
/dev/md127       33G   20M   31G   1% /apps
/dev/md127       33G   20M   31G   1% /home



I get this serial log with FT232 Breakout board using serial pins behind device.

I have many experience with WRT54G, WRT160NL and other embedded devices with OpenWRT, unbricking and modding including 8MB to 16MB flash upgrades and 32 to 64 MB RAM upgrades so i have also fine soldering skills and SPI-Parallel programming gear which includes CH341A and wiggler JTAG stuff.
In a nutshell i am not afraid of bricking device if i have mtd block backups to restore. (u-boot, kernel,nvram etc.)

So my first question is how can i make a full backup including u-boot? I don't want to hassle with desoldering parallel flash and read all it contents.I want to be safe before starting anything. As far as i understand we don't need to modify any of flash contents, just boot from USB drive right?

Secondly how can i boot bodhi's kernel and rootfs?I already made a usb stick according to bodhi's guide. Changed commands according to my NAS.

1. Format a new USB drive with a single Ext3 partition, and label it rootfs.

mkfs -t ext3 -L "rootfs" /dev/sdb



2. Mount the drive on a Linux box. cd to top level directory and extract the rootfs. Assuming the USB drive is mounted at /media/sdb1

cd /media/sdb1 
tar -xjf Debian-5.2.9-mvebu-tld-1-rootfs-bodhi.tar.bz2



3. Create uImage with DTB appended. I am using the Zyxel NAS326 as an example here. Please replace armada-380-zyxel-nas326.dtb below with the appropriate DTB name for your box.

cd /media/sdb1/boot
cp -a zImage-5.2.9-mvebu-tld-1 zImage.fdt 
cat dts/armada-370-netgear-rn102.dtb >> zImage.fdt
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.2.9-mvebu-tld-1 -d zImage.fdt uImage




3.a. Adjust fstab (optional)

Edit /media/sdb1/etc/fstab entry for root device, it it is not Ext3.

# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
LABEL=rootfs    /               ext3    noatime,errors=remount-ro 0 1



4. Sync, umount, and Done.

sync
sync
umount /media/sdb1


I have pluged usb drive to NAS but bootlog didn't changed.
usb start
command on bootloader detects usb drive also.U-boot printenv is below:

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


U-Boot 2011.12-gec25d27-dirty (Oct 26 2015 - 16:53:05) Marvell version: v2011.12 2014_T2.0p1
06/23/2015 ReadyNAS-102 V2.0

Board: DB-88F6710-BP
SoC:   MV6710 A1
CPU:   Marvell PJ4B v7 UP (Rev 1) LE
       CPU    @ 1200 [MHz]
       L2     @ 600 [MHz]
       TClock @ 200 [MHz]
       DDR    @ 600 [MHz]
       DDR 16Bit Width, FastPath Memory Access
DRAM:  512 MiB

Map:   Code:            0x1feef000:0x1ff9ef34
       BSS:             0x1ffef0a0
       Stack:           0x1f9eeef8
       Heap:            0x1f9ef000:0x1feef000

NAND:  (ID 0xf12c)      128 MiB
MMC:   MRVL_MMC: 0
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01

Initialize and scan all PCI interfaces
PEX unit.port(active IF[-first bus]):
------------------------------------------
PEX 0: Root Complex Interface, Detected Link X1, GEN 2.0
PEX 1: Root Complex Interface, Detected Link X1, GEN 2.0
FPU not initialized
USB 0: Host Mode
USB 1: Host Mode
Shutting down unused interfaces:
       GBE0
       SDIO
       AUDIO
       TDM
Modules/Interfaces Detected:
       RGMII1 Phy
       PEX0 (Lane 0)
       PEX1 (Lane 1)
       SATA0 (Lane 2)
       SATA1 (Lane 3)
Net:   , egiga1 [PRIME]
Power On!

FDT loaded successfully
Hit any key to stop autoboot:  0
Marvell>> <INTERRUPT>
Marvell>> <INTERRUPT>
Marvell>> <INTERRUPT>
Marvell>> help
?       - alias for 'help'
SatR    - Sample At Reset sub-system

active_units- print Board units active
base    - print or set address offset
bdinfo  - print Board Info structure
boot    - boot default, i.e., run 'bootcmd'
bootd   - boot default, i.e., run 'bootcmd'
bootelf - Boot from an ELF image in memory
bootm   - boot application image from memory
bootp   - boot image via network using BOOTP/TFTP protocol
bootvx  - Boot vxWorks from an ELF image
bootz   - boot Linux zImage image from memory
bubt    - bubt  - Burn an image on the Boot Flash.

chpart  - change active partition
cmp     - memory compare
coninfo - print console devices and information
cp      - memory copy
crc32   - checksum calculation
date    - get/set/reset date & time
ddrPhyRead- ddrPhyRead - Read DDR PHY register

ddrPhyWrite- ddrPhyWrite - Write DDR PHY register

dhcp    - boot image via network using DHCP/TFTP protocol
diskboot- diskboot- boot from IDE device

dma     - dma   - Perform DMA using the XOR engine

echo    - echo args to console
editenv - edit environment variable
eeprom  - EEPROM sub-system
env     - environment handling commands
exit    - exit script
ext2load- load binary file from a Ext2 filesystem
ext2ls  - list files in a directory (default /)
false   - do nothing, unsuccessfully
fatinfo - print information about filesystem
fatload - load binary file from a dos filesystem
fatls   - list files in a directory (default /)
fdt     - flattened device tree utility commands
fsinfo  - print information about filesystems
fsload  - load binary file from a filesystem image
go      - start application at address 'addr'
help    - print command description/usage
i2c     - I2C sub-system
ide     - ide     - IDE sub-system

iminfo  - print header information for application image
imxtract- extract a part of a multi-image
ir      - ir    - reading and changing MV internal register values.

itest   - return true/false on integer compare
loadb   - load binary file over serial line (kermit mode)
loads   - load S-Record file over serial line
loadx   - load binary file over serial line (xmodem mode)
loady   - load binary file over serial line (ymodem mode)
loop    - infinite loop on address range
ls      - list files in a directory (default /)
map     - map   - Display address decode windows

md      - memory display
me      - me    - PCI master enable

mm      - memory modify (auto-incrementing address)
mmc     - MMC sub system
mmcinfo - display MMC info
mp      - mp    - map PCI BAR

mtdparts- define flash/nand partitions
mtest   - simple RAM read/write test
mw      - memory write (fill)
nand    - NAND sub-system
nboot   - boot from NAND device
nfs     - boot image via network using NFS protocol
nm      - memory modify (constant address)
pci     - list and access PCI Configuration Space
pciePhyRead- phyRead    - Read PCI-E Phy register

pciePhyWrite- pciePhyWrite      - Write PCI-E Phy register

phyRead - phyRead       - Read Phy register

phyWrite- phyWrite      - Write Phy register

ping    - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
pxe     - commands to get and boot from pxe files
rcvr    - rcvr  - Satrt recovery process (Distress Beacon with TFTP server)

reset   - Perform RESET of the CPU
resetenv- resetenv      - Erase environment sector to reset all variables to default.

run     - run commands in an environment variable
saveenv - save environment variables to persistent storage
scsi    - SCSI sub-system
scsiboot- boot from SCSI device
se      - se    - PCI Slave enable

setenv  - set environment variables
sg      - sg    - scanning the PHYs status

showvar - print local hushshell variables
sleep   - delay execution for some time
source  - run script from memory
sp      - scan and detect all devices on mvPCI interface
switchCountersRead- switchCntPrint      - Read switch port counters.

switchPhyRegRead- - Read switch register

switchPhyRegWrite- - Write switch register

switchRegRead- switchRegRead    - Read switch register

switchRegWrite- switchRegWrite  - Write switch register

temp    - temp  - Display the device temperature.

tempCmd0- tempCmd - This command allocated for monitor extinction

tempCmd1- tempCmd - This command allocated for monitor extinction

tempCmd2- tempCmd - This command allocated for monitor extinction

tempCmd3- tempCmd - This command allocated for monitor extinction

test    - minimal test like /bin/sh
tftpboot- boot image via network using TFTP protocol
training- training      - prints the results of the DDR3 Training.

true    - do nothing, successfully
ts_report- ts_report    - report touch screen coordinate

ts_test - ts_test       - test touch screen

ubi     - ubi commands
ubifsload- load file from an UBIFS filesystem
ubifsls - list files in a directory
ubifsmount- mount UBIFS volume
ubifsumount- unmount UBIFS volume
usb     - USB sub-system
usbboot - boot from USB device
version - print monitor, compiler and linker version
whoAmI  - - reading CPU ID

Marvell>>



Marvell>> printenv
AC_Power_fail_detect=open
CASset=min
HW_version=MVT
MALLOC_len=5
Manufacturer=NETGEAR
Product=ReadyNAS 102
SKUNum=RN102
SerialNum=MASKED
Startup=Normal
UUID=adaf7396-2c8f-11e5-81d4-e8fcafe67a08
Version=V1.0
autoload=no
bootargs=console=ttyS0,115200
bootargs_end=:10.4.50.254:255.255.255.0:KW40:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=nand read 0x2000000 0x200000 0x400000; nand read 0x3000000 0x800000 0x400000; bootm 0x2000000 0x3000000 0x1000000
bootcmd_fdt=tftpboot 0x2000000 $image_name;tftpboot $fdtaddr $fdtfile;setenv bootargs $console $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_ubi=ubi part ubifs; ubifsmount rootfs; ubifsload 0x2000000 kernel; ubifsload 0x3000000 initrd.gz; bootm 0x2000000 0x3000000 0x1000000
bootdelay=0
cacheShare=no
console=console=ttyS0,115200
disL2Cache=yes
disaMvPnp=no
eeeEnable=no
enaAutoRecovery=yes
enaClockGating=yes
enaExtDisk=no
enaFPU=no
enaMonExt=no
enaWrAllo=no
envver=3
eth1addr=MASKED
eth1mtu=1500
ethact=egiga1
ethaddr=MASKED
ethmtu=1500
ethprime=egiga1
fdt_skip_update=no
fdtaddr=0x1000000
fdtfile=armada-370-db.dtb
image_name=uImage
initrd_name=uInitrd
load_addr=0x02000000
loadaddr=0x02000000
mtdids=nand0=armada-nand
mtdparts=mtdparts=armada-nand:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x400000@0x800000(minirootfs),-(ubifs)
mvNetConfig=mv_net_config=1,(00:50:43:11:11:11,0:1:2:3:4),mtu=1500
mv_pon_addr=MASKED
nandEcc=1bit
netbsd_en=no
netretry=no
pcieTune=no
pexMode=rc
pxe_files_load=:default.arm-armada370-db:default.arm-armadaxp:default.arm
pxefile_addr_r=3100000
rcvrip=169.254.100.100
sata_delay_reset=0
sata_dma_mode=yes
setL2CacheWT=no
standalone=fsload $load_addr $image_name;setenv bootargs $console $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm $load_addr;
stderr=serial
stdin=serial
stdout=serial
usb0Mode=host
usb1Mode=host
usb2Mode=device
usbActive=0
vxworks_en=no
yuk_ethaddr=MASKED

Environment size: 2292/131068 bytes
Marvell>>


Any recommendations are welcome.
Thanks in advance.
Regards.

===========
moderator edit: change title slightly to make it easier to search for.



Edited 5 time(s). Last edit at 08/21/2020 06:20PM by bodhi.
Re: Debian installation on Netgear RN102
August 16, 2020 03:51PM
whitepawn,

You need to change some envs to boot into the USB rootfs. Since you have serial console, it is quite easy to do.

Let me find my post about booting any stock u-boot into Debian USB rootfs. You probably will not even need to tailor it for this box.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian installation on Netgear RN102
August 16, 2020 04:09PM
Boot MVEBU rootfs with stock u-boot.

Below is the set of envs needed to boot most MVEBU boxes with my released rootfs on USB.

Interrupt serial console at countdown, and execute these commands.
setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial'
setenv load_uimage 'ext2load usb 0:1 0x2000000 /boot/uImage'
setenv load_uinitrd 'ext2load usb 0:1 0x3000000 /boot/uInitrd'
setenv usb_boot 'run load_uimage; if run load_uinitrd; then bootm 0x2000000 0x3000000; else bootm 0x2000000; fi'
setenv usb_bootcmd 'run usb_set_bootargs; run usb_boot'
setenv bootcmd 'usb start; run usb_bootcmd; usb stop; reset'
setenv fdt_skip_update yes

And then,

printenv
boot

Note: typically the load addresses 0x2000000 0x3000000 for uImage and uInitrd will work for any Armada 37x and 38x box with Marvel stock u-boot on those boxes. If you have problem booting with this set of envs, please post the entire serial console log here.

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



Edited 1 time(s). Last edit at 08/17/2020 06:53PM by bodhi.
Re: Debian installation on Netgear RN102
August 17, 2020 02:18PM
Hi Bodhi,
Thank you for your kind reply.
I have tried your boot envs here is the output:

Marvell>> printenv
AC_Power_fail_detect=open
CASset=min
HW_version=MVT
MALLOC_len=5
Manufacturer=NETGEAR
Product=ReadyNAS 102
SKUNum=RN102
SerialNum=MASKED
Startup=Normal
UUID=adaf7396-2c8f-11e5-81d4-e8fcafe67a08
Version=V1.0
autoload=no
bootargs=console=ttyS0,115200
bootargs_end=:10.4.50.254:255.255.255.0:KW40:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=usb start; run usb_bootcmd; usb stop; reset
bootcmd_fdt=tftpboot 0x2000000 $image_name;tftpboot $fdtaddr $fdtfile;setenv bootargs $console $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_ubi=ubi part ubifs; ubifsmount rootfs; ubifsload 0x2000000 kernel; ubifsload 0x3000000 initrd.gz; bootm 0x2000000 0x3000000 0x1000000
bootdelay=0
cacheShare=no
console=console=ttyS0,115200
disL2Cache=yes
disaMvPnp=no
eeeEnable=no
enaAutoRecovery=yes
enaClockGating=yes
enaExtDisk=no
enaFPU=no
enaMonExt=no
enaWrAllo=no
envver=3
eth1addr=MASKED
eth1mtu=1500
ethact=egiga1
ethaddr=MASKED
ethmtu=1500
ethprime=egiga1
fdt_skip_update=no
fdtaddr=0x1000000
fdtfile=armada-370-db.dtb
image_name=uImage
initrd_name=uInitrd
load_addr=0x02000000
load_uimage=ext2load usb 0:1 0x2000000 /boot/uImage
load_uinitrd=ext2load usb 0:1 0x3000000 /boot/uInitrd
loadaddr=0x02000000
mtdids=nand0=armada-nand
mtdparts=mtdparts=armada-nand:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x400000@0x800000(minirootfs),-(ubifs)
mvNetConfig=mv_net_config=1,(00:50:43:11:11:11,0:1:2:3:4),mtu=1500
mv_pon_addr=MASKED
nandEcc=1bit
netbsd_en=no
netretry=no
pcieTune=no
pexMode=rc
pxe_files_load=:default.arm-armada370-db:default.arm-armadaxp:default.arm
pxefile_addr_r=3100000
rcvrip=169.254.100.100
sata_delay_reset=0
sata_dma_mode=yes
setL2CacheWT=no
standalone=fsload $load_addr $image_name;setenv bootargs $console $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm $load_addr;
stderr=serial
stdin=serial
stdout=serial
usb0Mode=host
usb1Mode=host
usb2Mode=device
usbActive=0
usb_boot=run load_uimage; if run load_uinitrd; then bootm 0x2000000 0x3000000; else bootm 0x2000000; fi
usb_bootcmd=run usb_set_bootargs; run usb_boot
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial
vxworks_en=no
yuk_ethaddr=MASKED

Environment size: 2593/131068 bytes
Marvell>>

Marvell>> boot
(Re)start USB...
USB:   Active port:     0
Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 2 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
** Bad partition 1 **
** Bad partition 1 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
stopping USB..
resetting ...

BootROM 1.08
Booting from NAND flash


General initialization - Version: 1.0.0

High speed PHY - Version: 2.1.4 (COM-PHY-V20)
Update PEX Device ID 0x6710
High speed PHY - Ended Successfully
0000
DDR3 Training Sequence - Ver 5.7.1
DDR3 Training Sequence - Run without PBS.
DDR3 Training Sequence - Ended Successfully
BootROM: Image checksum verification PASSED

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


U-Boot 2011.12-gec25d27-dirty (Oct 26 2015 - 16:53:05) Marvell version: v2011.12 2014_T2.0p1
06/23/2015 ReadyNAS-102 V2.0

Board: DB-88F6710-BP
SoC:   MV6710 A1
CPU:   Marvell PJ4B v7 UP (Rev 1) LE
       CPU    @ 1200 [MHz]
       L2     @ 600 [MHz]
       TClock @ 200 [MHz]
       DDR    @ 600 [MHz]
       DDR 16Bit Width, FastPath Memory Access
DRAM:  512 MiB

Map:   Code:            0x1feef000:0x1ff9ef34
       BSS:             0x1ffef0a0
       Stack:           0x1f9eeef8
       Heap:            0x1f9ef000:0x1feef000

NAND:  (ID 0xf12c)      128 MiB
MMC:   MRVL_MMC: 0
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01

Initialize and scan all PCI interfaces
PEX unit.port(active IF[-first bus]):
------------------------------------------
PEX 0: Root Complex Interface, Detected Link X1, GEN 2.0
PEX 1: Root Complex Interface, Detected Link X1, GEN 2.0
FPU not initialized
USB 0: Host Mode
USB 1: Host Mode
Shutting down unused interfaces:
       GBE0
       SDIO
       AUDIO
       TDM
Modules/Interfaces Detected:
       RGMII1 Phy
       PEX0 (Lane 0)
       PEX1 (Lane 1)
       SATA0 (Lane 2)
       SATA1 (Lane 3)
Net:   , egiga1 [PRIME]
Power On!

FDT loaded successfully
Hit any key to stop autoboot:  0

NAND read: device 0 offset 0x200000, size 0x400000
 4194304 bytes read: OK

NAND read: device 0 offset 0x800000, size 0x400000
 4194304 bytes read: OK
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-4.4.190.armada.1
   Created:      2019-10-28   2:07:50 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3474568 Bytes = 3.3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 03000000 ...
   Image Name:   initramfs
   Created:      2020-02-12   1:13:27 UTC
   Image Type:   ARM Linux RAMDisk Image (lzma compressed)
   Data Size:    3425105 Bytes = 3.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x01000000
   Loading Kernel Image ... OK
   Using Ramdisk in place at 03000040, end 03344391
   Using Device Tree in place at 01000000, end 01006617
Updating device tree successful

Starting kernel ...


Starting the boot process...
Detected system type: RN102
Loading kernel modules...done
Boot mode: Normal
UBI device number 0, total 920 LEBs (116817920 bytes, 111.4 MiB), available 9 LEBs (1142784 bytes, 1.1 MiB), LEB size 126976 bytes (124.0 KiB)
Bringing up network...eth0.done
Bringing up RAID arrays...done
e2fsck 1.42.13 (17-May-2015)
2fe67a08_root: clean, 13367/1048576 files, 232049/1047552 blocks
Switching root to RAID device.


Welcome to ReadyNASOS 6.10.3!

[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on Journal Socket.
[  OK  ] Reached target Encrypted Volumes.
[  OK  ] Created slice System Slice.
         Starting Load Kernel Modules...
[  OK  ] Created slice system-serial\x2dgetty.slice.
[  OK  ] Created slice system-getty.slice.
         Starting Remount Root and Kernel File Systems...
         Starting Create Static Device Nodes in /dev...
         Mounting POSIX Message Queue File System...
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Listening on Journal Socket (/dev/log).
         Starting Journal Service...
[  OK  ] Listening on udev Kernel Socket.
[  OK  ] Listening on udev Control Socket.
[  OK  ] Created slice User and Session Slice.
[  OK  ] Reached target Slices.
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Reached target Paths.
[  OK  ] Reached target Remote File Systems (Pre).
[  OK  ] Reached target Remote File Systems.
[  OK  ] Started ReadyNAS LCD splasher.
         Starting ReadyNASOS system prep...
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Started Load Kernel Modules.
[  OK  ] Started Remount Root and Kernel File Systems.
         Starting Load/Save Random Seed...
         Starting Rebuild Hardware Database...
         Starting Apply Kernel Variables...
         Mounting FUSE Control File System...
         Mounting Configuration File System...
[  OK  ] Mounted FUSE Control File System.
[  OK  ] Started Create Static Device Nodes in /dev.
[  OK  ] Mounted Configuration File System.
         Starting udev Kernel Device Manager...
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Started ReadyNASOS system prep.
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started udev Kernel Device Manager.
         Starting MD arrays...
[  OK  ] Started Journal Service.
         Starting Flush Journal to Persistent Storage...
[  OK  ] Started Flush Journal to Persistent Storage.
[  OK  ] Started Rebuild Hardware Database.
[  OK  ] Found device /dev/md1.
         Activating swap md1...
[  OK  ] Activated swap md1.
[  OK  ] Found device /dev/disk/by-label/2fe67a08:data.
[  OK  ] Started MD arrays.
[  OK  ] Reached target Swap.
[  OK  ] Reached target Local File Systems (Pre).
         Mounting /data...
         Starting udev Coldplug all Devices...
[  OK  ] Mounted /data.
[  OK  ] Reached target Local File Systems.
         Starting LSB: Add to mtab the entry for /dev....
         Mounting Apps Directory...
         Starting Create Volatile Files and Directories...
         Mounting Home Directory...
[  OK  ] Started LSB: Add to mtab the entry for /dev..
[  OK  ] Mounted Apps Directory.
[  OK  ] Mounted Home Directory.
[  OK  ] Started Create Volatile Files and Directories.
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Started udev Coldplug all Devices.
         Starting udev Wait for Complete Device Initialization...
[  OK  ] Found device /dev/ttyS0.
[  OK  ] Listening on Load/Save RF Kill Switch Status /dev/rfkill Watch.
[  OK  ] Started udev Wait for Complete Device Initialization.
[  OK  ] Reached target System Initialization.
[  OK  ] Started Timer for ReadyNAS Update Service.
[  OK  ] Started Log Truncate Timer.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
[  OK  ] Started MD repair service.
[  OK  ] Started DLNA/UPnP-AV media server.
[  OK  ] Started WSD/LLMNR Discovery/Name Service Daemon.
[  OK  ] Started RAIDar discovery service.
[  OK  ] Started Reset I2C.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Reached target Timers.
[  OK  ] Started SSH Server Bonjour Advertisement.
[  OK  ] Started D-Bus System Message Bus.
         Starting Connection service...
         Starting Avahi mDNS/DNS-SD Stack...
[  OK  ] Started MD monitoring service.
         Starting Login Service...
[  OK  ] Started Regular background program processing daemon.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[  OK  ] Started Login Service.
[  OK  ] Started Connection service.
[  OK  ] Reached target Network.
         Starting Netatalk AFP fileserver for Macintosh clients...
         Starting Samba NMB Daemon...
         Starting Permit User Sessions...
[  OK  ] Started SSH Server.
         Starting The Apache HTTP Server...
[  OK  ] Started Permit User Sessions.
[  OK  ] Started Netatalk AFP fileserver for Macintosh clients.
[  OK  ] Started Getty on tty1.
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Reached target Login Prompts.
         Starting Hostname Service...
[  OK  ] Started Hostname Service.

ReadyNASOS 6.10.3 Neutron ttyS0

Neutron login:


Serial output says:

Marvell>> boot
(Re)start USB...
USB:   Active port:     0
Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 2 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
** Bad partition 1 **
** Bad partition 1 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
stopping USB..
resetting ...
Is my usb flash disk is not properly configured?I have formatted usb drive as ext3 and installed rootfs as your post.Or my load address is wrong?

Regards.





EDIT: It was my bad. Usb drive partitioning was not correct. I formatted as GPT and repeated steps no more bad partition error but now it hangs-freezes on starting kernel...
Here is the output:

Marvell>> boot
(Re)start USB...
USB:   Active port:     0
Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 2 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
Loading file "/boot/uImage" from usb device 0:1 ()
5072341 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 ()
9488618 bytes read
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-5.2.9-mvebu-tld-1
   Created:      2020-08-17  19:55:38 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5072277 Bytes = 4.8 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 03000000 ...
   Image Name:   initramfs-5.2.9-mvebu-tld-1
   Created:      2019-08-26  11:03:27 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9488554 Bytes = 9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...

Attached screenshot.
What am i missing?



Edited 3 time(s). Last edit at 08/17/2020 03:12PM by whitepawn.
Attachments:
open | download - Capture.JPG (81.7 KB)
Re: Debian installation on Netgear RN102
August 17, 2020 06:54PM
whitepawn,

Try the red-line above:

https://forum.doozan.com/read.php?2,106589,106599#msg-106599

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian installation on Netgear RN102
August 18, 2020 04:28AM
Tried with
setenv fdt_skip_update yes
Still no luck.
Full console log attached.
Attachments:
open | download - last log.txt (8.8 KB)
Re: Debian installation on Netgear RN102
August 18, 2020 05:57AM
whitepawn,

This box seems to have an older u-boot than other MVEBU boxes, except the Mirabox. It shows similar problem with the Mirabox (also an Armada 370 SoC).

I'd like you to get some info, and then do 2 tests.

1. At serial console prompt, get the memory map info:

map

2. First test:

Power up, interrupt serial console and repeat the boot commands with a different bootargs:
setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10'
setenv load_uimage 'ext2load usb 0:1 0x2000000 /boot/uImage'
setenv load_uinitrd 'ext2load usb 0:1 0x3000000 /boot/uInitrd'
setenv usb_boot 'run load_uimage; if run load_uinitrd; then bootm 0x2000000 0x3000000; else bootm 0x2000000; fi'
setenv usb_bootcmd 'run usb_set_bootargs; run usb_boot'
setenv bootcmd 'usb start; run usb_bootcmd; usb stop; reset'
setenv fdt_skip_update yes
printenv
boot

3. Second test:

Power up, interrupt serial console, and repeat the boot commands without loading uInitrd:
setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial'
setenv load_uimage 'ext2load usb 0:1 0x2000000 /boot/uImage'
setenv usb_boot 'run load_uimage; bootm 0x2000000'
setenv usb_bootcmd 'run usb_set_bootargs; run usb_boot'
setenv bootcmd 'usb start; run usb_bootcmd; usb stop; reset'
setenv fdt_skip_update yes
printenv
boot

And please post the entire serial console log for all three. And then depending on what the results will be, I will explain why I've suggested these steps (if you are interested) .

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian installation on Netgear RN102
August 18, 2020 06:21AM
Map command serial output:

BootROM 1.08
Booting from NAND flash


General initialization - Version: 1.0.0

High speed PHY - Version: 2.1.4 (COM-PHY-V20)
Update PEX Device ID 0x6710
High speed PHY - Ended Successfully
0001
DDR3 Training Sequence - Ver 5.7.1
DDR3 Training Sequence - Run without PBS.
DDR3 Training Sequence - Ended Successfully
BootROM: Image checksum verification PASSED

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


U-Boot 2011.12-gec25d27-dirty (Oct 26 2015 - 16:53:05) Marvell version: v2011.12                                                                    2014_T2.0p1
06/23/2015 ReadyNAS-102 V2.0

Board: DB-88F6710-BP
SoC:   MV6710 A1
CPU:   Marvell PJ4B v7 UP (Rev 1) LE
       CPU    @ 1200 [MHz]
       L2     @ 600 [MHz]
       TClock @ 200 [MHz]
       DDR    @ 600 [MHz]
       DDR 16Bit Width, FastPath Memory Access
DRAM:  512 MiB

Map:   Code:            0x1feef000:0x1ff9ef34
       BSS:             0x1ffef0a0
       Stack:           0x1f9eeef8
       Heap:            0x1f9ef000:0x1feef000

NAND:  (ID 0xf12c)      128 MiB
MMC:   MRVL_MMC: 0
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01

Initialize and scan all PCI interfaces
PEX unit.port(active IF[-first bus]):
------------------------------------------
PEX 0: Root Complex Interface, Detected Link X1, GEN 2.0
PEX 1: Root Complex Interface, Detected Link X1, GEN 2.0
FPU not initialized
USB 0: Host Mode
USB 1: Host Mode
Shutting down unused interfaces:
       GBE0
       SDIO
       AUDIO
       TDM
Modules/Interfaces Detected:
       RGMII1 Phy
       PEX0 (Lane 0)
       PEX1 (Lane 1)
       SATA0 (Lane 2)
       SATA1 (Lane 3)
Net:   , egiga1 [PRIME]
Power supply plug on, please press power button!


BootROM 1.08
Booting from NAND flash


General initialization - Version: 1.0.0

High speed PHY - Version: 2.1.4 (COM-PHY-V20)
Update PEX Device ID 0x6710
High speed PHY - Ended Successfully
0000
DDR3 Training Sequence - Ver 5.7.1
DDR3 Training Sequence - Run without PBS.
DDR3 Training Sequence - Ended Successfully
BootROM: Image checksum verification PASSED
l
 __   __                      _ _
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ V /  __/ | |
|_|  |_|\__,_|_|    \_/ \___|_|_|
         _   _     ____              _
        | | | |   | __ )  ___   ___ | |_
        | | | |___|  _ \ / _ \ / _ \| __|
        | |_| |___| |_) | (_) | (_) | |_
         \___/    |____/ \___/ \___/ \__|
 ** LOADER **


U-Boot 2011.12-gec25d27-dirty (Oct 26 2015 - 16:53:05) Marvell version: v2011.12                                                                    2014_T2.0p1
06/23/2015 ReadyNAS-102 V2.0

Board: DB-88F6710-BP
SoC:   MV6710 A1
CPU:   Marvell PJ4B v7 UP (Rev 1) LE
       CPU    @ 1200 [MHz]
       L2     @ 600 [MHz]
       TClock @ 200 [MHz]
       DDR    @ 600 [MHz]
       DDR 16Bit Width, FastPath Memory Access
DRAM:  512 MiB
l
Map:   Code:            0x1feef000:0x1ff9ef34
       BSS:             0x1ffef0a0
       Stack:           0x1f9eeef8
       Heap:            0x1f9ef000:0x1feef000

NAND:  (ID 0xf12c)      128 MiB
MMC:   MRVL_MMC: 0
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01

Initialize and scan all PCI interfaces
PEX unit.port(active IF[-first bus]):
------------------------------------------
PEX 0: Root Complex Interface, Detected Link X1, GEN 2.0
PEX 1: Root Complex Interface, Detected Link X1, GEN 2.0
FPU not initialized
USB 0: Host Mode
USB 1: Host Mode
Shutting down unused interfaces:
       GBE0
       SDIO
       AUDIO
       TDM
Modules/Interfaces Detected:
       RGMII1 Phy
       PEX0 (Lane 0)
       PEX1 (Lane 1)
       SATA0 (Lane 2)
       SATA1 (Lane 3)
Net:   , egiga1 [PRIME]
Power On!

FDT loaded successfully
Hit any key to stop autoboot:  0
Marvell>> <INTERRUPT>
Marvell>> <INTERRUPT>
Marvell>> map

CPU Interface
-------------
SDRAM_CS0 ....base 00000000, size 512MB
SDRAM_CS1 ....disable
SDRAM_CS2 ....disable
SDRAM_CS3 ....disable
DEVICE_CS0 ....base fd000000, size  16MB
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 f5000000, 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 - DEVICE_CS0 base fd000000, ....size  16MB
win6 - disable
win7 - disable
win8 - SPI_CS0 base f4000000, ....size  16MB
win9 - DEV_BOOTCS base f5000000, ....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 512MB
Devices Bar2.......... disable

Pex Decode Windows

win0 - SDRAM_CS0 base 00000000, ....size 512MB
win1 - disable
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 512MB
Devices Bar2.......... disable

Pex Decode Windows

win0 - SDRAM_CS0 base 00000000, ....size 512MB
win1 - disable
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 - PEX0_MEM base b0000000, ....size  32MB
win2 - disable
win3 - disable
mvUsbWinRead (dev=0): ERR. Invalid winNum 4
mvUsbWinRead (dev=0): ERR. Invalid winNum 5
mvUsbWinRead (dev=0): ERR. Invalid winNum 6
mvUsbWinRead (dev=0): ERR. Invalid winNum 7
mvUsbWinRead (dev=0): ERR. Invalid winNum 8
mvUsbWinRead (dev=0): ERR. Invalid winNum 9
mvUsbWinRead (dev=0): ERR. Invalid winNum 10
mvUsbWinRead (dev=0): ERR. Invalid winNum 11
mvUsbWinRead (dev=0): ERR. Invalid winNum 12
mvUsbWinRead (dev=0): ERR. Invalid winNum 13
mvUsbWinRead (dev=0): ERR. Invalid winNum 14
mvUsbWinRead (dev=0): ERR. Invalid winNum 15

USB 1:
----
win0 - SDRAM_CS0 base 00000000, ....size 512MB
win1 - PEX0_MEM base b0000000, ....size  32MB
win2 - disable
win3 - disable
mvUsbWinRead (dev=1): ERR. Invalid winNum 4
mvUsbWinRead (dev=1): ERR. Invalid winNum 5
mvUsbWinRead (dev=1): ERR. Invalid winNum 6
mvUsbWinRead (dev=1): ERR. Invalid winNum 7
mvUsbWinRead (dev=1): ERR. Invalid winNum 8
mvUsbWinRead (dev=1): ERR. Invalid winNum 9
mvUsbWinRead (dev=1): ERR. Invalid winNum 10
mvUsbWinRead (dev=1): ERR. Invalid winNum 11
mvUsbWinRead (dev=1): ERR. Invalid winNum 12
mvUsbWinRead (dev=1): ERR. Invalid winNum 13
mvUsbWinRead (dev=1): ERR. Invalid winNum 14
mvUsbWinRead (dev=1): ERR. Invalid winNum 15

ETH 1:
----
win0 - SDRAM_CS0 base 00000000, ....size 512MB
win1 - disable
win2 - disable
win3 - disable
win4 - disable
win5 - disable
mvNetaWinGet: ERR. Invalid winNum 6
mvNetaWinGet: ERR. Invalid winNum 7
mvNetaWinGet: ERR. Invalid winNum 8
mvNetaWinGet: ERR. Invalid winNum 9
mvNetaWinGet: ERR. Invalid winNum 10
mvNetaWinGet: ERR. Invalid winNum 11
mvNetaWinGet: ERR. Invalid winNum 12
mvNetaWinGet: ERR. Invalid winNum 13
mvNetaWinGet: ERR. Invalid winNum 14
mvNetaWinGet: ERR. Invalid winNum 15

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

XOR 1:
----
win0 - SDRAM_CS0 base 00000000, ....size 512MB
win1 - PEX0_MEM base b0000000, ....size  32MB
win2 - PEX1_MEM base b2000000, ....size  32MB
win3 - DEVICE_CS0 base fd000000, ....size  16MB
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
mvSataWinRead (dev=0): ERR. Invalid winNum 4
mvSataWinRead (dev=0): ERR. Invalid winNum 5
mvSataWinRead (dev=0): ERR. Invalid winNum 6
mvSataWinRead (dev=0): ERR. Invalid winNum 7
mvSataWinRead (dev=0): ERR. Invalid winNum 8
mvSataWinRead (dev=0): ERR. Invalid winNum 9
mvSataWinRead (dev=0): ERR. Invalid winNum 10
mvSataWinRead (dev=0): ERR. Invalid winNum 11
mvSataWinRead (dev=0): ERR. Invalid winNum 12
mvSataWinRead (dev=0): ERR. Invalid winNum 13
mvSataWinRead (dev=0): ERR. Invalid winNum 14
mvSataWinRead (dev=0): ERR. Invalid winNum 15

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
mvSataWinRead (dev=1): ERR. Invalid winNum 4
mvSataWinRead (dev=1): ERR. Invalid winNum 5
mvSataWinRead (dev=1): ERR. Invalid winNum 6
mvSataWinRead (dev=1): ERR. Invalid winNum 7
mvSataWinRead (dev=1): ERR. Invalid winNum 8
mvSataWinRead (dev=1): ERR. Invalid winNum 9
mvSataWinRead (dev=1): ERR. Invalid winNum 10
mvSataWinRead (dev=1): ERR. Invalid winNum 11
mvSataWinRead (dev=1): ERR. Invalid winNum 12
mvSataWinRead (dev=1): ERR. Invalid winNum 13
mvSataWinRead (dev=1): ERR. Invalid winNum 14
mvSataWinRead (dev=1): ERR. Invalid winNum 15
Marvell>>

First test serial output:

Marvell>> setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10'
Marvell>> setenv load_uimage 'ext2load usb 0:1 0x2000000 /boot/uImage'
Marvell>> setenv load_uinitrd 'ext2load usb 0:1 0x3000000 /boot/uInitrd'
Marvell>> setenv usb_boot 'run load_uimage; if run load_uinitrd; then bootm 0x2000000 0x3000000; else bootm 0x2000000; fi'
Marvell>> setenv usb_bootcmd 'run usb_set_bootargs; run usb_boot'
Marvell>> setenv bootcmd 'usb start; run usb_bootcmd; usb stop; reset'
Marvell>> setenv fdt_skip_update yes
Marvell>> printenv
AC_Power_fail_detect=open
CASset=min
HW_version=MVT
MALLOC_len=5
Manufacturer=NETGEAR
Product=ReadyNAS 102
SKUNum=RN102
SerialNum=MASKED
Startup=Normal
UUID=adaf7396-2c8f-11e5-81d4-e8fcafe67a08
Version=V1.0
autoload=no
bootargs=console=ttyS0,115200
bootargs_end=:10.4.50.254:255.255.255.0:KW40:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=usb start; run usb_bootcmd; usb stop; reset
bootcmd_fdt=tftpboot 0x2000000 $image_name;tftpboot $fdtaddr $fdtfile;setenv bootargs $console $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_ubi=ubi part ubifs; ubifsmount rootfs; ubifsload 0x2000000 kernel; ubifsload 0x3000000 initrd.gz; bootm 0x2000000 0x3000000 0x1000000
bootdelay=0
cacheShare=no
console=console=ttyS0,115200
disL2Cache=yes
disaMvPnp=no
eeeEnable=no
enaAutoRecovery=yes
enaClockGating=yes
enaExtDisk=no
enaFPU=no
enaMonExt=no
enaWrAllo=no
envver=3
eth1addr=MASKED
eth1mtu=1500
ethact=egiga1
ethaddr=MASKED
ethmtu=1500
ethprime=egiga1
fdt_skip_update=yes
fdtaddr=0x1000000
fdtfile=armada-370-db.dtb
image_name=uImage
initrd_name=uInitrd
load_addr=0x02000000
load_uimage=ext2load usb 0:1 0x2000000 /boot/uImage
load_uinitrd=ext2load usb 0:1 0x3000000 /boot/uInitrd
loadaddr=0x02000000
mtdids=nand0=armada-nand
mtdparts=mtdparts=armada-nand:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x400000@0x800000(minirootfs),-(ubifs)
mvNetConfig=mv_net_config=1,(00:50:43:11:11:11,0:1:2:3:4),mtu=1500
mv_pon_addr=MASKED
nandEcc=1bit
netbsd_en=no
netretry=no
pcieTune=no
pexMode=rc
pxe_files_load=:default.arm-armada370-db:default.arm-armadaxp:default.arm
pxefile_addr_r=3100000
rcvrip=169.254.100.100
sata_delay_reset=0
sata_dma_mode=yes
setL2CacheWT=no
standalone=fsload $load_addr $image_name;setenv bootargs $console $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm $load_addr;
stderr=serial
stdin=serial
stdout=serial
usb0Mode=host
usb1Mode=host
usb2Mode=device
usbActive=0
usb_boot=run load_uimage; if run load_uinitrd; then bootm 0x2000000 0x3000000; else bootm 0x2000000; fi
usb_bootcmd=run usb_set_bootargs; run usb_boot
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10
vxworks_en=no
yuk_ethaddr=MASKED

Environment size: 2575/131068 bytes
Marvell>> boot
(Re)start USB...
USB:   Active port:     0
Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 2 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
Loading file "/boot/uImage" from usb device 0:1 ()
5072341 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 ()
9488618 bytes read
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-5.2.9-mvebu-tld-1
   Created:      2020-08-18   9:15:42 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5072277 Bytes = 4.8 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 03000000 ...
   Image Name:   initramfs-5.2.9-mvebu-tld-1
   Created:      2019-08-26  11:03:27 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9488554 Bytes = 9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...


Second test serial output:

BootROM 1.08
Booting from NAND flash


General initialization - Version: 1.0.0

High speed PHY - Version: 2.1.4 (COM-PHY-V20)
Update PEX Device ID 0x6710
High speed PHY - Ended Successfully
0001
DDR3 Training Sequence - Ver 5.7.1
DDR3 Training Sequence - Run without PBS.
DDR3 Training Sequence - Ended Successfully
BootROM: Image checksum verification PASSED

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


U-Boot 2011.12-gec25d27-dirty (Oct 26 2015 - 16:53:05) Marvell version: v2011.12 2014_T2.0p1
06/23/2015 ReadyNAS-102 V2.0

Board: DB-88F6710-BP
SoC:   MV6710 A1
CPU:   Marvell PJ4B v7 UP (Rev 1) LE
       CPU    @ 1200 [MHz]
       L2     @ 600 [MHz]
       TClock @ 200 [MHz]
       DDR    @ 600 [MHz]
       DDR 16Bit Width, FastPath Memory Access
DRAM:  512 MiB

Map:   Code:            0x1feef000:0x1ff9ef34
       BSS:             0x1ffef0a0
       Stack:           0x1f9eeef8
       Heap:            0x1f9ef000:0x1feef000

NAND:  (ID 0xf12c)      128 MiB
MMC:   MRVL_MMC: 0
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01

Initialize and scan all PCI interfaces
PEX unit.port(active IF[-first bus]):
------------------------------------------
PEX 0: Root Complex Interface, Detected Link X1, GEN 2.0
PEX 1: Root Complex Interface, Detected Link X1, GEN 2.0
FPU not initialized
USB 0: Host Mode
USB 1: Host Mode
Shutting down unused interfaces:
       GBE0
       SDIO
       AUDIO
       TDM
Modules/Interfaces Detected:
       RGMII1 Phy
       PEX0 (Lane 0)
       PEX1 (Lane 1)
       SATA0 (Lane 2)
       SATA1 (Lane 3)
Net:   , egiga1 [PRIME]
Power supply plug on, please press power button!


BootROM 1.08
Booting from NAND flash


General initialization - Version: 1.0.0

High speed PHY - Version: 2.1.4 (COM-PHY-V20)
Update PEX Device ID 0x6710
High speed PHY - Ended Successfully
0000
DDR3 Training Sequence - Ver 5.7.1
DDR3 Training Sequence - Run without PBS.
DDR3 Training Sequence - Ended Successfully
BootROM: Image checksum verification PASSED
l
 __   __                      _ _
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ V /  __/ | |
|_|  |_|\__,_|_|    \_/ \___|_|_|
         _   _     ____              _
        | | | |   | __ )  ___   ___ | |_
        | | | |___|  _ \ / _ \ / _ \| __|
        | |_| |___| |_) | (_) | (_) | |_
         \___/    |____/ \___/ \___/ \__|
 ** LOADER **


U-Boot 2011.12-gec25d27-dirty (Oct 26 2015 - 16:53:05) Marvell version: v2011.12 2014_T2.0p1
06/23/2015 ReadyNAS-102 V2.0

Board: DB-88F6710-BP
SoC:   MV6710 A1
CPU:   Marvell PJ4B v7 UP (Rev 1) LE
       CPU    @ 1200 [MHz]
       L2     @ 600 [MHz]
       TClock @ 200 [MHz]
       DDR    @ 600 [MHz]
       DDR 16Bit Width, FastPath Memory Access
DRAM:  512 MiB

Map:   Code:            0x1feef000:0x1ff9ef34
       BSS:             0x1ffef0a0
       Stack:           0x1f9eeef8
       Heap:            0x1f9ef000:0x1feef000

NAND:  (ID 0xf12c)      128 MiB
MMC:   MRVL_MMC: 0
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01

Initialize and scan all PCI interfaces
PEX unit.port(active IF[-first bus]):
------------------------------------------
PEX 0: Root Complex Interface, Detected Link X1, GEN 2.0
PEX 1: Root Complex Interface, Detected Link X1, GEN 2.0
FPU not initialized
USB 0: Host Mode
USB 1: Host Mode
Shutting down unused interfaces:
       GBE0
       SDIO
       AUDIO
       TDM
Modules/Interfaces Detected:
       RGMII1 Phy
       PEX0 (Lane 0)
       PEX1 (Lane 1)
       SATA0 (Lane 2)
       SATA1 (Lane 3)
Net:   , egiga1 [PRIME]
Power On!

FDT loaded successfully
Hit any key to stop autoboot:  0
Marvell>> <INTERRUPT>
Marvell>> <INTERRUPT>
Marvell>> <INTERRUPT>
Marvell>>
Marvell>>
Marvell>> setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial'
Marvell>> setenv load_uimage 'ext2load usb 0:1 0x2000000 /boot/uImage'
Marvell>> setenv usb_boot 'run load_uimage; bootm 0x2000000'
Marvell>> setenv usb_bootcmd 'run usb_set_bootargs; run usb_boot'
Marvell>> setenv bootcmd 'usb start; run usb_bootcmd; usb stop; reset'
Marvell>> setenv fdt_skip_update yes
Marvell>> printenv
AC_Power_fail_detect=open
CASset=min
HW_version=MVT
MALLOC_len=5
Manufacturer=NETGEAR
Product=ReadyNAS 102
SKUNum=RN102
SerialNum=MASKED
Startup=Normal
UUID=adaf7396-2c8f-11e5-81d4-e8fcafe67a08
Version=V1.0
autoload=no
bootargs=console=ttyS0,115200
bootargs_end=:10.4.50.254:255.255.255.0:KW40:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=usb start; run usb_bootcmd; usb stop; reset
bootcmd_fdt=tftpboot 0x2000000 $image_name;tftpboot $fdtaddr $fdtfile;setenv bootargs $console $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_ubi=ubi part ubifs; ubifsmount rootfs; ubifsload 0x2000000 kernel; ubifsload 0x3000000 initrd.gz; bootm 0x2000000 0x3000000 0x1000000
bootdelay=0
cacheShare=no
console=console=ttyS0,115200
disL2Cache=yes
disaMvPnp=no
eeeEnable=no
enaAutoRecovery=yes
enaClockGating=yes
enaExtDisk=no
enaFPU=no
enaMonExt=no
enaWrAllo=no
envver=3
eth1addr=MASKED
eth1mtu=1500
ethact=egiga1
ethaddr=MASKED
ethmtu=1500
ethprime=egiga1
fdt_skip_update=yes
fdtaddr=0x1000000
fdtfile=armada-370-db.dtb
image_name=uImage
initrd_name=uInitrd
load_addr=0x02000000
load_uimage=ext2load usb 0:1 0x2000000 /boot/uImage
loadaddr=0x02000000
mtdids=nand0=armada-nand
mtdparts=mtdparts=armada-nand:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x400000@0x800000(minirootfs),-(ubifs)
mvNetConfig=mv_net_config=1,(00:50:43:11:11:11,0:1:2:3:4),mtu=1500
mv_pon_addr=MASKED
nandEcc=1bit
netbsd_en=no
netretry=no
pcieTune=no
pexMode=rc
pxe_files_load=:default.arm-armada370-db:default.arm-armadaxp:default.arm
pxefile_addr_r=3100000
rcvrip=169.254.100.100
sata_delay_reset=0
sata_dma_mode=yes
setL2CacheWT=no
standalone=fsload $load_addr $image_name;setenv bootargs $console $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm $load_addr;
stderr=serial
stdin=serial
stdout=serial
usb0Mode=host
usb1Mode=host
usb2Mode=device
usbActive=0
usb_boot=run load_uimage; bootm 0x2000000
usb_bootcmd=run usb_set_bootargs; run usb_boot
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial
vxworks_en=no
yuk_ethaddr=MASKED

Environment size: 2476/131068 bytes
Marvell>> boot
(Re)start USB...
USB:   Active port:     0
Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 2 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
Loading file "/boot/uImage" from usb device 0:1 ()
5072341 bytes read
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-5.2.9-mvebu-tld-1
   Created:      2020-08-18   9:15:42 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5072277 Bytes = 4.8 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...



I love using and troubleshooting embedded systems like this, so please explain me what is going on i glad to hear it.



Maybe this tftp boot helps?:

http://natisbad.org/NAS2/

Booting your first kernel

Let's now load kernel image we built (uImage) in memory at address 0x1200000

Marvell>> tftpboot 1200000 uImage
Using egiga1 device
TFTP from server 192.168.58.135; our IP address is 192.168.58.21
Filename 'uImage'.
Load address: 0x1200000
Loading: #################################################################
         #################################################################
         #################################################################
         #######################################################
done
Bytes transferred = 3667163 (37f4db hex)


Now that we have our kernel uImage loaded in RAM at address 0x1200000, we can try and check if the kernel boots by issuing the following command:

Marvell>> set serverip 192.168.58.135
Marvell>> set ipaddr 192.168.58.21
Marvell>> set bootargs console=ttyS0,115200 earlyprintk
Marvell>> bootm 0x1200000


This should fail at some point (e.g. no root device) but this is a good test before proceding to the next section.

Regards.



Edited 2 time(s). Last edit at 08/18/2020 07:27AM by whitepawn.
Re: Debian installation on Netgear RN102
August 18, 2020 04:52PM
whitepawn,

In retrospect, Test 1 is not a very good one. I suspected the early printk serial had memory conflict. Thus, I removed the bootargs. But that would not help, because if the kernel is configured with earlyprintk so that code is always in effect whether we use it or not.

Test 2 was to eliminate the possibility of uInitrd loading has corrupted the uImage. Booting with uImage alone should let the kernel boot to near completion, if that were the problem (apparently not).

Looking at the memory map, my guess was confirmed. This box u-boot is the same as the Mirabox.

So I took a look at the RN102 DTS to verify. Yes, it is exactly the same as Mirabox in this regard (memory address).

So the tests were academic. If I had looked at the RN102 DTS first, I would have seen the problem right away.

=====

So the solution is to boot this box we need to use the kernel built for the Mirabox, not the one for all other MVEBU boxes.

I'll come back in a few hours.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian installation on Netgear RN102
August 19, 2020 04:41AM
Now we know which kernel will work for this box. There are 2 alternatives:

1. Follow the Mirabox installation procedure, using the RN102 DTB, and the setenvs that I posted above, to boot into USB roots. With this approach we will need to to copy the Mirabox installation procdure, and modify some steps for this box.

2. Install the kernel directly to the rootfs Debian-4.12.4-mvebu-tld-1-rootfs-bodhi.tar.bz2.

- Download and create the rootfs Debian-4.12.4-mvebu-tld-1-rootfs-bodhi.tar.bz2 on USB
- Download the kernel tarball linux-4.20.6-mvebu-mirabox-tld-12-bodhi.tar.bz2 to this rootfs USB.
- chroot into the USB rootfs Debian-4.12.4-mvebu-tld-1-rootfs-bodhi.tar.bz2. And install the linux-4.20.6-mvebu-mirabox-tld-12 kernel in this rootfs using the RN102 DTB.

Option 1 is a little slow, but it is a simple step-by-step process. If you don't have a lot of experience in Linux, then it is easier than Option 2. I will use the Mirabox installtion to make another version for this RN102 box.

Option 2 is faster. But it requires more Linux knowledge and also a Linux box/laptop to chroot into a rootfs. If you have another ARM box or ARM laptop, then this option is easy. But if you don't, and have to use a x86 box (e.g. Linux laptop) then the chroot process is a little bit more involved to prepare before you can chroot (from x86 system to ARM rootfs).

Let me know which option you'd like to take.

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



Edited 1 time(s). Last edit at 08/19/2020 04:44AM by bodhi.
Re: Debian installation on Netgear RN102
August 19, 2020 12:51PM
Just checked forum.
Now i will try to boot with your mirabox kernel and post results.
Re: Debian installation on Netgear RN102
August 19, 2020 03:48PM
I have tried with mirabox kernel and as you said it booted debian successfully.
Here is my steps if anyone interested:
Downloaded debian rootfs:
https://www.dropbox.com/s/8te2qz69peiozv3/Debian-4.12.4-mvebu-tld-1-rootfs-bodhi.tar.bz2
Downloaded kernel:
https://www.dropbox.com/s/s6ejixpr6h1xxwj/linux-4.20.6-mvebu-mirabox-tld-12-bodhi.tar.bz2
Commands i have used on my desktop linux mint 20 machine:(May be a bit messy.I will edit this section later.)I also have RPI 3 for arm based stuff btw.

cd /media/jigsaw/rootfs/
tar -xjf Debian-4.12.4-mvebu-tld-1-rootfs-bodhi.tar.bz2 
sync
cd boot/
cp -a zImage-4.12.4-mvebu-tld-1 zImage
cd /media/jigsaw/rootfs/usr/src/
mkdir mirabox
cd mirabox/
tar xf linux-4.20.6-mvebu-mirabox-tld-12-bodhi.tar.bz2 
tar -xvf linux-dtb-4.20.6-mvebu-mirabox-tld-12.tar dts/armada-370-netgear-rn102.dtb
cp zImage-4.20.6-mvebu-mirabox-tld-12 zImage.fdt
cp -a zImage-4.20.6-mvebu-mirabox-tld-12 zImage.fdt
cat dts/armada-370-netgear-rn102.dtb >> zImage.fdt
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.20.6-mvebu-mirabox-tld-12 -d zImage.fdt uImage
cd /media/jigsaw/rootfs/boot/
cp -a uImage uImage.bak
cp -a /media/jigsaw/rootfs/usr/src/mirabox/uImage .
sync

Here is bootenvs and bootlog:

BootROM 1.08
Booting from NAND flash


General initialization - Version: 1.0.0

High speed PHY - Version: 2.1.4 (COM-PHY-V20)
Update PEX Device ID 0x6710
High speed PHY - Ended Successfully
0001
DDR3 Training Sequence - Ver 5.7.1
DDR3 Training Sequence - Run without PBS.
DDR3 Training Sequence - Ended Successfully
BootROM: Image checksum verification PASSED

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


U-Boot 2011.12-gec25d27-dirty (Oct 26 2015 - 16:53:05) Marvell version: v2011.12                          2014_T2.0p1
06/23/2015 ReadyNAS-102 V2.0

Board: DB-88F6710-BP
SoC:   MV6710 A1
CPU:   Marvell PJ4B v7 UP (Rev 1) LE
       CPU    @ 1200 [MHz]
       L2     @ 600 [MHz]
       TClock @ 200 [MHz]
       DDR    @ 600 [MHz]
       DDR 16Bit Width, FastPath Memory Access
DRAM:  512 MiB

Map:   Code:            0x1feef000:0x1ff9ef34
       BSS:             0x1ffef0a0
       Stack:           0x1f9eeef8
       Heap:            0x1f9ef000:0x1feef000

NAND:  (ID 0xf12c)      128 MiB
MMC:   MRVL_MMC: 0
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01

Initialize and scan all PCI interfaces
PEX unit.port(active IF[-first bus]):
------------------------------------------
PEX 0: Root Complex Interface, Detected Link X1, GEN 2.0
PEX 1: Root Complex Interface, Detected Link X1, GEN 2.0
FPU not initialized
USB 0: Host Mode
USB 1: Host Mode
Shutting down unused interfaces:
       GBE0
       SDIO
       AUDIO
       TDM
Modules/Interfaces Detected:
       RGMII1 Phy
       PEX0 (Lane 0)
       PEX1 (Lane 1)
       SATA0 (Lane 2)
       SATA1 (Lane 3)
Net:   , egiga1 [PRIME]
Power supply plug on, please press power button!


BootROM 1.08
Booting from NAND flash


General initialization - Version: 1.0.0

High speed PHY - Version: 2.1.4 (COM-PHY-V20)
Update PEX Device ID 0x6710
High speed PHY - Ended Successfully
0000
DDR3 Training Sequence - Ver 5.7.1
DDR3 Training Sequence - Run without PBS.
DDR3 Training Sequence - Ended Successfully
BootROM: Image checksum verification PASSED
l
 __   __                      _ _
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ V /  __/ | |
|_|  |_|\__,_|_|    \_/ \___|_|_|
         _   _     ____              _
        | | | |   | __ )  ___   ___ | |_
        | | | |___|  _ \ / _ \ / _ \| __|
        | |_| |___| |_) | (_) | (_) | |_
         \___/    |____/ \___/ \___/ \__|
 ** LOADER **


U-Boot 2011.12-gec25d27-dirty (Oct 26 2015 - 16:53:05) Marvell version: v2011.12                          2014_T2.0p1
06/23/2015 ReadyNAS-102 V2.0

Board: DB-88F6710-BP
SoC:   MV6710 A1
CPU:   Marvell PJ4B v7 UP (Rev 1) LE
       CPU    @ 1200 [MHz]
       L2     @ 600 [MHz]
       TClock @ 200 [MHz]
       DDR    @ 600 [MHz]
       DDR 16Bit Width, FastPath Memory Access
DRAM:  512 MiB

Map:   Code:            0x1feef000:0x1ff9ef34
       BSS:             0x1ffef0a0
       Stack:           0x1f9eeef8
       Heap:            0x1f9ef000:0x1feef000

NAND:  (ID 0xf12c)      128 MiB
MMC:   MRVL_MMC: 0
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01

Initialize and scan all PCI interfaces
PEX unit.port(active IF[-first bus]):
------------------------------------------
PEX 0: Root Complex Interface, Detected Link X1, GEN 2.0
PEX 1: Root Complex Interface, Detected Link X1, GEN 2.0
FPU not initialized
USB 0: Host Mode
USB 1: Host Mode
Shutting down unused interfaces:
       GBE0
       SDIO
       AUDIO
       TDM
Modules/Interfaces Detected:
       RGMII1 Phy
       PEX0 (Lane 0)
       PEX1 (Lane 1)
       SATA0 (Lane 2)
       SATA1 (Lane 3)
Net:   , egiga1 [PRIME]
Power On!

FDT loaded successfully
Hit any key to stop autoboot:  0
Marvell>> <INTERRUPT>
Marvell>> <INTERRUPT>
Marvell>> <INTERRUPT>
Marvell>> setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial'
Marvell>> setenv load_uimage 'ext2load usb 0:1 0x2000000 /boot/uImage'
Marvell>> setenv load_uinitrd 'ext2load usb 0:1 0x3000000 /boot/uInitrd'
Marvell>> setenv usb_boot 'run load_uimage; if run load_uinitrd; then bootm 0x2000000 0x3000000; else bootm 0x2000000; fi'
Marvell>> setenv usb_bootcmd 'run usb_set_bootargs; run usb_boot'
Marvell>> setenv bootcmd 'usb start; run usb_bootcmd; usb stop; reset'
Marvell>> setenv fdt_skip_update yes
Marvell>> printenv
AC_Power_fail_detect=open
CASset=min
HW_version=MVT
MALLOC_len=5
Manufacturer=NETGEAR
Product=ReadyNAS 102
SKUNum=RN102
SerialNum=MASKED
Startup=Normal
UUID=adaf7396-2c8f-11e5-81d4-e8fcafe67a08
Version=V1.0
autoload=no
bootargs=console=ttyS0,115200
bootargs_end=:10.4.50.254:255.255.255.0:KW40:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=usb start; run usb_bootcmd; usb stop; reset
bootcmd_fdt=tftpboot 0x2000000 $image_name;tftpboot $fdtaddr $fdtfile;setenv bootargs $console $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_ubi=ubi part ubifs; ubifsmount rootfs; ubifsload 0x2000000 kernel; ubifsload 0x3000000 initrd.gz; bootm 0x2000000 0x3000000 0x1000000
bootdelay=0
cacheShare=no
console=console=ttyS0,115200
disL2Cache=yes
disaMvPnp=no
eeeEnable=no
enaAutoRecovery=yes
enaClockGating=yes
enaExtDisk=no
enaFPU=no
enaMonExt=no
enaWrAllo=no
envver=3
eth1addr=MASKED
eth1mtu=1500
ethact=egiga1
ethaddr=MASKED
ethmtu=1500
ethprime=egiga1
fdt_skip_update=yes
fdtaddr=0x1000000
fdtfile=armada-370-db.dtb
image_name=uImage
initrd_name=uInitrd
load_addr=0x02000000
load_uimage=ext2load usb 0:1 0x2000000 /boot/uImage
load_uinitrd=ext2load usb 0:1 0x3000000 /boot/uInitrd
loadaddr=0x02000000
mtdids=nand0=armada-nand
mtdparts=mtdparts=armada-nand:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x400000@0x800000(minirootfs),-(ubifs)
mvNetConfig=mv_net_config=1,(00:50:43:11:11:11,0:1:2:3:4),mtu=1500
mv_pon_addr=MASKED
nandEcc=1bit
netbsd_en=no
netretry=no
pcieTune=no
pexMode=rc
pxe_files_load=:default.arm-armada370-db:default.arm-armadaxp:default.arm
pxefile_addr_r=3100000
rcvrip=169.254.100.100
sata_delay_reset=0
sata_dma_mode=yes
setL2CacheWT=no
standalone=fsload $load_addr $image_name;setenv bootargs $console $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm $load_addr;
stderr=serial
stdin=serial
stdout=serial
usb0Mode=host
usb1Mode=host
usb2Mode=device
usbActive=0
usb_boot=run load_uimage; if run load_uinitrd; then bootm 0x2000000 0x3000000; else bootm 0x2000000; fi
usb_bootcmd=run usb_set_bootargs; run usb_boot
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial
vxworks_en=no
yuk_ethaddr=MASKED

Environment size: 2594/131068 bytes
Marvell>> boot
(Re)start USB...
USB:   Active port:     0
Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 2 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
Loading file "/boot/uImage" from usb device 0:1 ()
4076885 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 ()
7070236 bytes read
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-4.20.6-mvebu-mirabox-tld-1
   Created:      2020-08-19  18:36:11 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4076821 Bytes = 3.9 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 03000000 ...
   Image Name:   initramfs-4.12.4-mvebu-tld-1
   Created:      2017-08-22  11:10:43 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7070172 Bytes = 6.7 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... 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: NETGEAR ReadyNAS 102
[    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: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x400000@0x800000(minirootfs),-(ubifs) reason=normal bdtype=rn102
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 499364K/524288K available (8192K kernel code, 731K rwdata, 2072K rodata, 1024K init, 320K bss, 24924K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 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.000008] sched_clock: 32 bits at 18MHz, resolution 53ns, wraps every 114537122277ns
[    0.007240] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 101938038664 ns
[    0.018008] Console: colour dummy device 80x30
[    0.022092] Calibrating delay loop (skipped), value calculated using timer frequency.. 37.49 BogoMIPS (lpj=187492)
[    0.031583] pid_max: default: 32768 minimum: 301
[    0.035963] LSM: Security Framework initializing
[    0.040289] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.046333] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.053620] CPU: Testing write buffer coherency: ok
[    0.058447] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.117370] Setting up static identity map for 0x100000 - 0x100060
[    0.123339] mvebu-soc-id: MVEBU SoC ID=0x6710, Rev=0x1
[    0.128194] mvebu-pmsu: Initializing Power Management Service Unit
[    0.147299] rcu: Hierarchical SRCU implementation.
[    0.187301] smp: Bringing up secondary CPUs ...
[    0.191445] smp: Brought up 1 node, 1 CPU
[    0.195105] SMP: Total of 1 processors activated (37.49 BogoMIPS).
[    0.200776] CPU: All CPU(s) started in SVC mode.
[    0.205792] devtmpfs: initialized
[    0.217523] VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 6
[    0.225084] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.234375] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.240269] prandom: seed boundary self test passed
[    0.247165] prandom: 100 self tests passed
[    0.251082] pinctrl core: initialized pinctrl subsystem
[    0.258020] NET: Registered protocol family 16
[    0.262793] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.270343] audit: initializing netlink subsys (disabled)
[    0.275593] audit: type=2000 audit(0.250:1): state=initialized audit_enabled=0 res=1
[    0.284639] cpuidle: using governor ladder
[    0.289591] cpuidle: using governor menu
[    0.293404] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.388344] vgaarb: loaded
[    0.391155] SCSI subsystem initialized
[    0.398076] usbcore: registered new interface driver usbfs
[    0.403133] usbcore: registered new interface driver hub
[    0.409484] usbcore: registered new device driver usb
[    0.415203] pps_core: LinuxPPS API ver. 1 registered
[    0.420310] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.428887] PTP clock support registered
[    0.434988] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.496195] VFS: Disk quotas dquot_6.6.0
[    0.499857] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.529922] NET: Registered protocol family 2
[    0.536469] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.543476] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.550280] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.556367] TCP: Hash tables configured (established 4096 bind 4096)
[    0.562295] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.567701] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.573632] NET: Registered protocol family 1
[    0.608511] RPC: Registered named UNIX socket transport module.
[    0.613918] RPC: Registered udp transport module.
[    0.618305] RPC: Registered tcp transport module.
[    0.622599] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.628722] Unpacking initramfs...
[    1.031259] Freeing initrd memory: 6908K
[    1.035197] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.041497] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    1.052081] Initialise system trusted keyrings
[    1.057485] Key type blacklist registered
[    1.061361] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    1.067486] zbud: loaded
[    1.080768] NFS: Registering the id_resolver key type
[    1.085627] Key type id_resolver registered
[    1.089447] Key type id_legacy registered
[    1.093117] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.099332] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.223320] Key type asymmetric registered
[    1.227202] Asymmetric key parser 'x509' registered
[    1.231884] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    1.239011] io scheduler noop registered
[    1.242594] io scheduler deadline registered
[    1.246603] io scheduler cfq registered (default)
[    1.253441] armada-370-pinctrl d0018000.pin-ctrl: registered pinctrl driver
[    1.268176] mvebu-pcie soc:pcie@82000000: PCI host bridge to bus 0000:00
[    1.274318] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.279737] pci_bus 0000:00: root bus resource [mem 0xf8000000-0xffdfffff]
[    1.286351] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    1.294065] PCI: bus0: Fast back to back transfers disabled
[    1.299571] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.306970] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.315243] pci 0000:00:01.0: ASPM: current common clock configuration is broken, reconfiguring
[    1.346081] PCI: bus1: Fast back to back transfers disabled
[    1.352036] pci 0000:00:02.0: ASPM: current common clock configuration is broken, reconfiguring
[    1.386104] PCI: bus2: Fast back to back transfers disabled
[    1.391290] pci 0000:00:01.0: BAR 14: assigned [mem 0xf8000000-0xf80fffff]
[    1.397646] pci 0000:00:01.0: BAR 15: assigned [mem 0xf8100000-0xf81fffff pref]
[    1.404321] pci 0000:00:02.0: BAR 14: assigned [mem 0xf8200000-0xf82fffff]
[    1.410645] pci 0000:00:01.0: BAR 13: assigned [io  0x10000-0x10fff]
[    1.416491] pci 0000:00:01.0: BAR 6: assigned [mem 0xf8300000-0xf83007ff pref]
[    1.423087] pci 0000:00:02.0: BAR 6: assigned [mem 0xf8400000-0xf84007ff pref]
[    1.429707] pci 0000:01:00.0: BAR 6: assigned [mem 0xf8100000-0xf810ffff pref]
[    1.436321] pci 0000:01:00.0: BAR 5: assigned [mem 0xf8000000-0xf80001ff]
[    1.442522] pci 0000:01:00.0: BAR 4: assigned [io  0x10000-0x1000f]
[    1.448264] pci 0000:01:00.0: BAR 0: assigned [io  0x10010-0x10017]
[    1.453988] pci 0000:01:00.0: BAR 2: assigned [io  0x10018-0x1001f]
[    1.459729] pci 0000:01:00.0: BAR 1: assigned [io  0x10020-0x10023]
[    1.465470] pci 0000:01:00.0: BAR 3: assigned [io  0x10024-0x10027]
[    1.471195] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.475745] pci 0000:00:01.0:   bridge window [io  0x10000-0x10fff]
[    1.481470] pci 0000:00:01.0:   bridge window [mem 0xf8000000-0xf80fffff]
[    1.487684] pci 0000:00:01.0:   bridge window [mem 0xf8100000-0xf81fffff pref]
[    1.494285] pci 0000:02:00.0: BAR 0: assigned [mem 0xf8200000-0xf820ffff 64bit]
[    1.500983] pci 0000:02:00.0: BAR 2: assigned [mem 0xf8210000-0xf8210fff 64bit]
[    1.507680] pci 0000:02:00.0: BAR 4: assigned [mem 0xf8211000-0xf8211fff 64bit]
[    1.514358] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.518909] pci 0000:00:02.0:   bridge window [mem 0xf8200000-0xf82fffff]
[    1.525239] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[    1.531085] pcieport 0000:00:02.0: enabling device (0140 -> 0142)
[    1.538005] mv_xor d0060800.xor: Marvell shared XOR driver
[    1.606120] mv_xor d0060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.613266] mv_xor d0060900.xor: Marvell shared XOR driver
[    1.676115] mv_xor d0060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.841758] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.852509] printk: console [ttyS0] disabled
[    1.877918] d0012000.serial: ttyS0 at MMIO 0xd0012000 (irq = 19, base_baud = 12500000) is a 16550A
[    1.886352] printk: console [ttyS0] enabled
[    1.886352] printk: console [ttyS0] enabled
[    1.894055] printk: bootconsole [earlycon0] disabled
[    1.894055] printk: bootconsole [earlycon0] disabled
[    1.905307] ahci 0000:01:00.0: enabling device (0146 -> 0147)
[    1.910847] ahci 0000:01:00.0: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
[    1.918985] ahci 0000:01:00.0: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.939301] scsi host0: ahci
[    1.952958] scsi host1: ahci
[    1.956171] ata1: SATA max UDMA/133 abar m512@0xf8000000 port 0xf8000100 irq 42
[    1.962909] ata2: SATA max UDMA/133 abar m512@0xf8000000 port 0xf8000180 irq 42
[    1.970859] sata_mv d00a0000.sata: slots 32 ports 1
[    1.986705] scsi host2: sata_mv
[    1.990039] ata3: SATA max UDMA/133 irq 27
[    1.995437] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xf1
[    2.001297] nand: Micron MT29F1G08ABADAWP
[    2.005138] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    2.012383] Bad block table found at page 65472, version 0x01
[    2.018566] Bad block table found at page 65408, version 0x01
[    2.024093] 5 fixed-partitions partitions found on MTD device pxa3xx_nand-0
[    2.031117] Creating 5 MTD partitions on "pxa3xx_nand-0":
[    2.036182] 0x000000000000-0x000000180000 : "u-boot"
[    2.042519] 0x000000180000-0x0000001a0000 : "u-boot-env"
[    2.049619] 0x000000200000-0x000000800000 : "uImage"
[    2.056496] 0x000000800000-0x000000c00000 : "minirootfs"
[    2.063398] 0x000000c00000-0x000008000000 : "ubifs"
[    2.074911] libphy: Fixed MDIO Bus: probed
[    2.082847] libphy: orion_mdio_bus: probed
[    2.094283] mvneta d0074000.ethernet eth0: Using random mac address 32:07:97:fc:f4:2c
[    2.106039] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.112091] ehci-pci: EHCI PCI platform driver
[    2.117031] ehci-orion: EHCI orion driver
[    2.120940] orion-ehci d0050000.usb: EHCI Host Controller
[    2.126158] orion-ehci d0050000.usb: new USB bus registered, assigned bus number 1
[    2.133365] orion-ehci d0050000.usb: irq 25, io mem 0xd0050000
[    2.165015] orion-ehci d0050000.usb: USB 2.0 started, EHCI 1.00
[    2.170763] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.20
[    2.178411] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.185083] usb usb1: Product: EHCI Host Controller
[    2.189578] usb usb1: Manufacturer: Linux 4.20.6-mvebu-mirabox-tld-12 ehci_hcd
[    2.196299] usb usb1: SerialNumber: d0050000.usb
[    2.201446] hub 1-0:1.0: USB hub found
[    2.205222] hub 1-0:1.0: 1 port detected
[    2.210121] xhci_hcd 0000:02:00.0: xHCI Host Controller
[    2.215459] xhci_hcd 0000:02:00.0: new USB bus registered, assigned bus number 2
[    2.223036] xhci_hcd 0000:02:00.0: hcc params 0x200073a1 hci version 0x100 quirks 0x0000000000080010
[    2.232339] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.20
[    2.240109] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.246895] usb usb2: Product: xHCI Host Controller
[    2.251392] usb usb2: Manufacturer: Linux 4.20.6-mvebu-mirabox-tld-12 xhci-hcd
[    2.258130] usb usb2: SerialNumber: 0000:02:00.0
[    2.263275] hub 2-0:1.0: USB hub found
[    2.267076] hub 2-0:1.0: 2 ports detected
[    2.271571] xhci_hcd 0000:02:00.0: xHCI Host Controller
[    2.276731] xhci_hcd 0000:02:00.0: new USB bus registered, assigned bus number 3
[    2.283625] xhci_hcd 0000:02:00.0: Host supports USB 3.0  SuperSpeed
[    2.289683] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.297449] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.20
[    2.305137] ata2: SATA link down (SStatus 0 SControl 300)
[    2.310219] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.317066] usb usb3: Product: xHCI Host Controller
[    2.321605] usb usb3: Manufacturer: Linux 4.20.6-mvebu-mirabox-tld-12 xhci-hcd
[    2.328305] ata3: SATA link down (SStatus 0 SControl F300)
[    2.333408] usb usb3: SerialNumber: 0000:02:00.0
[    2.338506] hub 3-0:1.0: USB hub found
[    2.342204] hub 3-0:1.0: 2 ports detected
[    2.347515] usbcore: registered new interface driver usblp
[    2.353319] usbcore: registered new interface driver usb-storage
[    2.359663] mousedev: PS/2 mouse device common for all mice
[    2.366642] i2c /dev entries driver
[    2.373788] rtc-ds1307 0-0068: 'wakeup-source' is set, request for an IRQ is disabled!
[    2.385735] rtc-ds1307 0-0068: registered as rtc0
[    2.416475] orion_wdt: Initial timeout 229 sec
[    2.471204] marvell-cesa d0090000.crypto: CESA device successfully registered
[    2.478660] hidraw: raw HID events driver (C) Jiri Kosina
[    2.484712] usbcore: registered new interface driver usbhid
[    2.489961] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[    2.496175] usbhid: USB HID core driver
[    2.500271] drop_monitor: Initializing network drop monitor service
[    2.506191] ata1.00: ATA-7: ST940210AS, 3.ALC, max UDMA/100
[    2.511327] ata1.00: 78140160 sectors, multi 0: LBA48 NCQ (depth 32)
[    2.518087] NET: Registered protocol family 10
[    2.527159] ata1.00: configured for UDMA/100
[    2.533759] Segment Routing with IPv6
[    2.537645] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.544068] scsi 0:0:0:0: Direct-Access     ATA      ST940210AS       C    PQ: 0 ANSI: 5
[    2.554944] NET: Registered protocol family 17
[    2.562889] sd 0:0:0:0: [sda] 78140160 512-byte logical blocks: (40.0 GB/37.3 GiB)
[    2.572799] 8021q: 802.1Q VLAN Support v1.8
[    2.577019] Key type dns_resolver registered
[    2.581187] ThumbEE CPU extension supported.
[    2.585382] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    2.592170] sd 0:0:0:0: [sda] Write Protect is off
[    2.597194] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.605786] Registering SWP/SWPB emulation handler
[    2.612428] registered taskstats version 1
[    2.620592] Loading compiled-in X.509 certificates
[    2.625321] zswap: loaded using pool lzo/zbud
[    2.671788] Key type big_key registered
[    2.696795] Key type encrypted registered
[    2.705355] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[    2.714295] rtc-ds1307 0-0068: setting system clock to 2020-08-19 18:50:10 UTC (1597863010)
[    2.777767]  sda: sda1 sda2 sda3
[    2.785673] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    2.792862] Freeing unused kernel memory: 1024K
[    2.799298] usb 1-1: New USB device found, idVendor=0781, idProduct=5583, bcdDevice= 1.00
[    2.807134] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.813722] usb 1-1: Product: Ultra Fit
[    2.819109] Checked W+X mappings: passed, no W+X pages found
[    2.824343] Run /init as init process
[    2.827875] usb 1-1: Manufacturer: SanDisk
[    2.831662] usb 1-1: SerialNumber: 4C530000301215108532
[    2.844187] usb-storage 1-1:1.0: USB Mass Storage device detected
[    2.873724] scsi host3: usb-storage 1-1:1.0
Loading, please wait...
starting version 232
[    3.036594] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    3.044263] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    3.068866] random: udevadm: uninitialized urandom read (16 bytes read)
[    3.947760] scsi 3:0:0:0: Direct-Access     SanDisk  Ultra Fit        1.00 PQ: 0 ANSI: 6
[    3.965457] sd 3:0:0:0: [sdb] 30031872 512-byte logical blocks: (15.4 GB/14.3 GiB)
[    3.985167] sd 3:0:0:0: [sdb] Write Protect is off
[    3.999148] sd 3:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    4.056455]  sdb: sdb1
[    4.071565] sd 3:0:0:0: [sdb] Attached SCSI removable disk
[    6.005512] random: fast init done
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Warning: fsck not present, so skipping root file system
[   17.017037] EXT4-fs (sdb1): mounting ext3 file system using the ext4 subsystem
[   17.026560] EXT4-fs (sdb1): INFO: recovery required on readonly filesystem
[   17.032944] EXT4-fs (sdb1): write access will be enabled during recovery
[   17.415369] EXT4-fs (sdb1): recovery complete
[   17.430876] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Setting hostname to 'debian'...done.
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
. ok
[ ok ] Synthesizing the initial hotplug events...done.
[....] Waiting for /dev to be fully populated...[   21.364833] random: crng init done
[   21.367989] random: 7 urandom warning(s) missed due to ratelimiting
done.
[ ok ] Activating swap:.
[   25.728038] EXT4-fs (sdb1): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.29.2
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sdb1
e2fsck 1.43.4 (31-Jan-2017)
rootfs: clean, 22034/938400 files, 320750/3752704 blocks
. ok
[   26.106484] EXT4-fs (sdb1): re-mounted. Opts: errors=remount-ro
[ ok ] Will now activate lvm and md swap:done.
[info] Will now check all file systems.
fsck from util-linux 2.29.2
Checking all file systems.
LABEL=rootfs is mounted
[....] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writ[ ok .
[ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done.
[ ok .
[ ok ] Will now mount local filesystems:.
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables...done.
[ ok ] Initializing random number generator...done.
[   30.719090] mvneta d0074000.ethernet eth0: PHY [d0072004.mdio-mii:00] driver [Marvell 88E1318S]
[   30.729394] mvneta d0074000.ethernet eth0: configuring for phy/rgmii-id link mode
[   30.737671] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/32:07:97:fc:f4:2c
Sending on   LPF/eth0/32:07:97:fc:f4:2c
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
[   78.585821] mvneta d0074000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[   78.593399] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   82.748921] mvneta d0074000.ethernet eth0: Link is Down
[   83.785823] mvneta d0074000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 19
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 18
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2569 (syslogd)
. ok
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting periodic command scheduler: cron.
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting NTP server: ntpd.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2570 (klogd)
. ok
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 9 debian ttyS0

debian login: root[  101.469103] mvneta d0074000.ethernet eth0: Link is Down
[  102.505858] mvneta d0074000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
root
Password:

Login incorrect
debian login: root
Password:
Last login: Tue Aug 22 17:09:50 PDT 2017 from 192.168.0.220 on pts/0
Linux debian 4.20.6-mvebu-mirabox-tld-12 #6 SMP PREEMPT Wed Mar 13 14:43:16 PDT 2019 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.
debian
NETGEAR ReadyNAS 102
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
Debian 9.1
Wed Aug 19 11:52:32 PDT 2020 up 1 minute
root@debian:~# uname -a
Linux debian 4.20.6-mvebu-mirabox-tld-12 #6 SMP PREEMPT Wed Mar 13 14:43:16 PDT 2019 armv7l GNU/Linux
root@debian:~# lscpu
Architecture:          armv7l
Byte Order:            Little Endian
CPU(s):                1
On-line CPU(s) list:   0
Thread(s) per core:    1
Core(s) per socket:    1
Socket(s):             1
Model:                 1
Model name:            ARMv7 Processor rev 1 (v7l)
BogoMIPS:              37.49
Flags:                 half thumb fastmult vfp edsp thumbee vfpv3 vfpv3d16 tls idivt
root@debian:~# cat /proc/cpuinfo
processor       : 0
model name      : ARMv7 Processor rev 1 (v7l)
BogoMIPS        : 37.49
Features        : half thumb fastmult vfp edsp thumbee vfpv3 vfpv3d16 tls idivt
CPU implementer : 0x56
CPU architecture: 7
CPU variant     : 0x1
CPU part        : 0x581
CPU revision    : 1

Hardware        : Marvell Armada 370/XP (Device Tree)
Revision        : 0000
Serial          : 0000000000000000
root@debian:~#

I have made five mtd partition backups also, before messing up with box, will check them and mask my mac and share it in here also.Maybe helps someone who has bricked device.

Now i am fiddling around RN102 wtih debian.I want to make permanent envs because it boots now.Could you please check logs bodhi before making envs permanent?Also mirabox mtd scheme is different from RN102 i think.This box have u-boot-env mtd1 i think.

Just asking for curiosity are there any chances for more recent kernels for our boxes like 5.x.x kernel?

Issues seen:

All leds are constantly on.Maybe some scripts or drivers required.
Mac address is randomly assigned.Original mac is not recognized somehow.Maybe this helps:
/etc/network/interfaces

auto lo eth0
iface lo inet loopback
iface eth0 inet dhcp
	hwaddress ether xx:xx:xx:xx:xx:xx

No internet access.Tried to edit nameserves on /etc/resov.conf no luck.I think just a config issue, investigating.
SSH, networking and mounting drives works.
No BTRFS or VFAT support built in.BTRFS tools package must be installed i believe.Cannot test cause internet doesn't work.EXT3 and EXT4 works built in.
Fan works but i didn't tested yet cause i cannot install fancontrol.
RTC works

Many many many thanks to you bodhi.Respect.



Edited 3 time(s). Last edit at 08/19/2020 04:00PM by whitepawn.
Attachments:
open | download - netgearmtd.JPG (135.2 KB)
Re: Debian installation on Netgear RN102
August 19, 2020 05:46PM
whitepawn,

Cool! you got it running so quickly (thumb up :)

> Now i am fiddling around RN102 wtih debian.I want
> to make permanent envs because it boots now.Could
> you please check logs bodhi before making envs
> permanent?Also mirabox mtd scheme is different
> from RN102 i think.This box have u-boot-env mtd1 i
> think.

Yes, we will need to adjust the booting envs to fully access the mtds and have ability to change u-boot envs in Debian.

At this point, the kernel is using the mtd definition inside the DTS. We want to make it so it uses the bootargs (mtdparts).

>
> Just asking for curiosity are there any chances
> for more recent kernels for our boxes like 5.x.x
> kernel?

Definitely! we have not have many users running Mirabox so I was not too motivated to build newer kernel.

I'll build 5.x kernel and will rename it to something more generic for Mirabox and Netgear.

> All leds are constantly on.Maybe some scripts or
> drivers required.

This should be controlled in /etc/rc.local. See the examples I have in this file.


> Mac address is randomly assigned.Original mac is
> not recognized somehow.Maybe this helps:
>
> /etc/network/interfaces
> 
> auto lo eth0
> iface lo inet loopback
> iface eth0 inet dhcp
> 	hwaddress ether xx:xx:xx:xx:xx:xx
>

Yes, this is a known problem with some MVEBU boxes (see the release notes in a few kernel versions in the release thread (https://forum.doozan.com/read.php?2,32146).

hardcoded hwaddress is one way to workaround. Or use the script that I've included in Debian-5.2.9-mvebu-tld-1-rootfs-bodhi.tar.bz2.

> No BTRFS or VFAT support built in.BTRFS tools
> package must be installed i believe.

True. I've added these in the later MVEBU kernels.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian installation on Netgear RN102
August 19, 2020 06:27PM
About VFAT and BTRFS, iirc they were included. But BTRFS is a loadable module.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian installation on Netgear RN102
August 20, 2020 07:13AM
I will come back and show you the envs change for bootargs.

In the mean time, you can save these envs permanently at uboot prompt.

After executing the other booting envs, before booting, do a saveenv:

saveenv
boot

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian installation on Netgear RN102
August 21, 2020 03:05PM
Sorry i was busy with life:)Couldn't write.

>Definitely! we have not have many users running Mirabox so I was not too motivated to build newer kernel.

>I'll build 5.x kernel and will rename it to something more generic for Mirabox and Netgear.

I am happily willing to be a tester.

>I will come back and show you the envs change for bootargs.

>In the mean time, you can save these envs permanently at uboot prompt.

>After executing the other booting envs, before booting, do a saveenv:

saveenv
boot

Saved envs.Works as solid as rock.
I have installed OMV on this rootfs here i am attaching screenshots if someone interested.
Will share detailed instructions how to install your kernel and OMV.I have no time right now.Post here as soon as possible.
I will also test more things and share them in here.Which things work or not.
Many thanks to you bodhi again.
Regards.
Attachments:
open | download - RN102 Openmediavault1.png (87 KB)
open | download - RN102 Openmediavault2.png (98.7 KB)
Re: Debian installation on Netgear RN102
August 21, 2020 06:18PM
whitepawn,

Cool!

> Will share detailed instructions how to install
> your kernel and OMV.

I'd suggest 2 posts.

1. Installation instruction: follow the format for my Mirabox Installaiton and keep it simple (no commentary until the end of instruction).

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

You can link the discussion in this thread to the Instruction post to help explain things.

2. OMV installation.


====

Also in the first part, don't repeat the info, instead, point to the Mirabox Installation for kernel download link. I will change this as time goes by to reflect the latest kernel download link.


Quote

Download new kernel at Dropbox


linux-4.20.6-mvebu-mirabox-tld-12-bodhi.tar.bz2

md5sum
8cf3d08dee09d000cf8b50b2df2f4047
sha256sum
fc4eb7a66e2af7f17f31041581fa6d106ba3da22ec643ab80a24aa352084f201

This tarball contains 6 files:

Quote

linux-image-4.20.6-mvebu-mirabox-tld-12_12.0_armhf.deb
linux-headers-4.20.6-mvebu-mirabox-tld-12_12.0_armhf.deb
zImage-4.20.6-mvebu-mirabox-tld-12
config-4.20.6-mvebu-mirabox-tld-12
linux-dtb-4.20.6-mvebu-mirabox-tld-12.tar
linux-4.20.6-mvebu-tld-1.patch

====
edit: typo.

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



Edited 2 time(s). Last edit at 08/21/2020 06:40PM by bodhi.
tme
Re: Debian installation on Netgear RN102
August 22, 2020 04:53AM
Hi bodhi and whitepawn,

I have for some time now wanted to migrate my home file servers from Netgear Stora (I use 3 of them) running Debian to Netgear ReadyNAS RN102. Following the instructions and hints above, I yesterday successfully installed Debian on my RN102. Thank you very much for your great efforts! I look forward to test any new kernels, root file systems or utilities targeted for this device.

Debian is now running from a 4GB industrial grade USB-stick plugged into the front connector. I got the root file system from Debian-4.12.4-mvebu-tld-1-rootfs-bodhi.tar.bz2 and the kernel from linux-4.20.6-mvebu-mirabox-tld-12-bodhi.tar.bz2.

$ cat /etc/debian_version 
9.13
$ uname -a
Linux droppboksen-2 4.20.6-mvebu-mirabox-tld-12 #6 SMP PREEMPT Wed Mar 13 14:43:16 PDT 2019 armv7l GNU/Linux
$

I had to use 'saveenv' in u-boot to make the changed environmental variables persistent since the output from 'cat /proc/mtd' is very different from that of the Mirabox:

$ cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00180000 00020000 "u-boot"
mtd1: 00020000 00020000 "u-boot-env"
mtd2: 00600000 00020000 "uImage"
mtd3: 00400000 00020000 "minirootfs"
mtd4: 07400000 00020000 "ubifs"
$

After the install, I moved the USB-stick from the front connector to one of the two connectors at the back of the device. This made u-boot reset itself continuously. The two connectors at the back are USB3, while the one at the front is USB2. My guess is that the stock u-boot only support USB2, and that installing a newer version of u-boot is the only viable long term solution. The persistent NAND memory is only 128 MB, and I think reserving the storage disks for user files only is a reasonable requirement. A consequence of this shortcoming is that storage HDDs/SSDs cannot be hot-swapped since the USB-stick (at least an industrial grade one) at the front blocks the device' disk compartment door from opening fully.

U-boot output with the USB-stick at the front:

Hit any key to stop autoboot:  0 
(Re)start USB...
USB:   Active port:     0
Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 2 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
4076885 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 (usbda1)
8085930 bytes read
## Booting kernel from Legacy Image at 02000000 ...

U-boot output with the USB-stick at the back:

Hit any key to stop autoboot:  0 
(Re)start USB...
USB:   Active port:     0
Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 1 USB Device(s) found
       scanning bus for storage devices... 0 Storage Device(s) found
** Block device usb 0 not supported
** Block device usb 0 not supported
Wrong Image Format for bootm command
ERROR: can't get kernel image!
stopping USB..
resetting ...

The migration went smooth. I migrated users, groups and password following the instructions here. Installing mdadm ('apt install -y mdadm') went smooth, but I had to regenerate the uInitrd boot file:

$ cd /boot
$ mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-4.20.6-mvebu-tld-1 -d initrd.img-4.20.6-mvebu-mirabox-tld-12 uInitrd
Image Name:   initramfs-4.20.6-mvebu-tld-1
Created:      Sat Aug 22 11:41:36 2020
Image Type:   ARM Linux RAMDisk Image (gzip compressed)
Data Size:    8717023 Bytes = 8512.72 kB = 8.31 MB
Load Address: 00000000
Entry Point:  00000000
$

Then I moved the two mirroring 2 TB HDDs over. They were detected as /dev/md127 rather than as /dev/md0 on the Netgear Stora, but modifying the /etc/fstab entry accordingly was all that was needed.

$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
LABEL=rootfs    /               ext3    noatime,errors=remount-ro 0 1
tmpfs           /tmp            tmpfs   defaults          0       0
#
#
# Local addidtions
#
# mount RAID-1 (mirrored disks) as /home
/dev/md127        /home           ext4    nofail             0       2
$
$ cat /proc/mdstat
Personalities : [raid1] [linear] [multipath] [raid0] [raid6] [raid5] [raid4] [raid10] 
md127 : active raid1 sdb1[2] sda1[0]
      1953382464 blocks super 1.2 [2/2] [UU]
      bitmap: 0/15 pages [0KB], 65536KB chunk

unused devices: <none>
$
$ sudo mdadm --detail /dev/md127 
/dev/md127:
        Version : 1.2
  Creation Time : Tue May 16 07:20:59 2017
     Raid Level : raid1
     Array Size : 1953382464 (1862.89 GiB 2000.26 GB)
  Used Dev Size : 1953382464 (1862.89 GiB 2000.26 GB)
   Raid Devices : 2
  Total Devices : 2
    Persistence : Superblock is persistent

  Intent Bitmap : Internal

    Update Time : Sat Aug 22 11:02:58 2020
          State : clean 
 Active Devices : 2
Working Devices : 2
 Failed Devices : 0
  Spare Devices : 0

           Name : droppboksen:0  (local to host droppboksen)
           UUID : 6ca7ec3c:648743db:05f52d5d:4c42270a
         Events : 61776

    Number   Major   Minor   RaidDevice State
       0       8        1        0      active sync   /dev/sda1
       2       8       17        1      active sync   /dev/sdb1
$

Finally a warning: The root file system does not include the 'sudo' package. (Do 'apt install -y sudo' to install.) This creates a risk of locking one self out when migrating another file server to this device. If used, make sure 'sudo' works for all sudoers before disabling root login.
Re: Debian installation on Netgear RN102
August 22, 2020 07:46AM
tme,

Cool! Thanks for the report.

There is a little bit more to be done for this box. Mtds definition in Debian, and as you've found USB 3.0 ports do not work during booting.

I will post more after I have a chance to look ar the serial boot log closely.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian installation on Netgear RN102
August 22, 2020 04:07PM
Here are the modified envs to make the mtd partitions r/w accessable in Debian.
setenv mtdparts 'mtdparts=pxa3xx_nand-0:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x400000@0x800000(minirootfs),-(ubifs)'
setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial'

Boot into Debian and edit the config file to have the following content.

cat /etc/fw_env.config
# MTD device name	Device offset	Env. size	Flash sector size	Number of sectors
/dev/mtd1 0x00000 0x20000 0x20000

And test it
fw_printenv
If the output of fw_printenv above looks sane (same as the listing in serial console). Then do the write test.

fw_setenv test_rn102 yes
fw_printenv test_rn102

Please post the enitre serial console log up until this point for future reference.

To double check, reboot, check the envs in serial console. Boot into Debian, and do another fw_printenv to see if test_rn102=yes. If everything is OK, clear the test env
fw_setenv test_rn102

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
tme
Re: Debian installation on Netgear RN102
August 23, 2020 01:55AM
Thanks, bodhi, for your swift and detailed reply!

I will, but give me a few days. I'm away from my box.

Regards,
Trond Melen
Re: Debian on Netgear RN102
August 23, 2020 05:43AM
Hi again bodhi and trond,
It is nice to see someone uses same box with me.
It was a busy week so i haven't much time to test something.
I have never tested with back USB 3.0 ports because i plan to use them with external storage and they are fast then front USB 2.0.
I went full stock to test mdt partition debian r/w.Created rootfs usb from beginning and bootenv to stock.
Here is the log according to your hints bodhi:

BootROM 1.08
Booting from NAND flash
l

General initialization - Version: 1.0.0

High speed PHY - Version: 2.1.4 (COM-PHY-V20)
Update PEX Device ID 0x6710
High speed PHY - Ended Successfully
0000
DDR3 Training Sequence - Ver 5.7.1
DDR3 Training Sequence - Run without PBS.
DDR3 Training Sequence - Ended Successfully
BootROM: Image checksum verification PASSED
l
 __   __                      _ _
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ V /  __/ | |
|_|  |_|\__,_|_|    \_/ \___|_|_|
         _   _     ____              _
        | | | |   | __ )  ___   ___ | |_
        | | | |___|  _ \ / _ \ / _ \| __|
        | |_| |___| |_) | (_) | (_) | |_
         \___/    |____/ \___/ \___/ \__|
 ** LOADER **


U-Boot 2011.12-gec25d27-dirty (Oct 26 2015 - 16:53:05) Marvell version: v2011.12 2014_T2.0p1
06/23/2015 ReadyNAS-102 V2.0

Board: DB-88F6710-BP
SoC:   MV6710 A1
CPU:   Marvell PJ4B v7 UP (Rev 1) LE
       CPU    @ 1200 [MHz]
       L2     @ 600 [MHz]
       TClock @ 200 [MHz]
       DDR    @ 600 [MHz]
       DDR 16Bit Width, FastPath Memory Access
DRAM:  512 MiB
l
Map:   Code:            0x1feef000:0x1ff9ef34
       BSS:             0x1ffef0a0
       Stack:           0x1f9eeef8
       Heap:            0x1f9ef000:0x1feef000

NAND:  (ID 0xf12c)      128 MiB
MMC:   MRVL_MMC: 0
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01

Initialize and scan all PCI interfaces
PEX unit.port(active IF[-first bus]):
------------------------------------------
PEX 0: Root Complex Interface, Detected Link X1, GEN 2.0
PEX 1: Root Complex Interface, Detected Link X1, GEN 2.0
FPU not initialized
USB 0: Host Mode
USB 1: Host Mode
Shutting down unused interfaces:
       GBE0
       SDIO
       AUDIO
       TDM
Modules/Interfaces Detected:
       RGMII1 Phy
       PEX0 (Lane 0)
       PEX1 (Lane 1)
       SATA0 (Lane 2)
       SATA1 (Lane 3)
Net:   , egiga1 [PRIME]
Power On!

FDT loaded successfully
Hit any key to stop autoboot:  0
Marvell>> <INTERRUPT>
Marvell>> <INTERRUPT>
Marvell>> <INTERRUPT>
Marvell>> setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial init=/bin/systemd'
Marvell>> setenv load_uimage 'ext2load usb 0:1 0x2000000 /boot/uImage'
Marvell>> setenv load_uinitrd 'ext2load usb 0:1 0x3000000 /boot/uInitrd'
Marvell>> setenv usb_boot 'run load_uimage; if run load_uinitrd; then bootm 0x2000000 0x3000000; else bootm 0x2000000; fi'
Marvell>> setenv usb_bootcmd 'run usb_set_bootargs; run usb_boot'
Marvell>> setenv bootcmd 'usb start; run usb_bootcmd; usb stop; reset'
Marvell>> setenv fdt_skip_update yes
Marvell>> setenv mtdparts 'mtdparts=pxa3xx_nand-0:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x400000@0x800000(minirootfs),-(ubifs)'
Marvell>> printenv
AC_Power_fail_detect=open
CASset=min
HW_version=MVT
MALLOC_len=5
Manufacturer=NETGEAR
Product=ReadyNAS 102
SKUNum=RN102
SerialNum=MASKED
Startup=Normal
UUID=adaf7396-2c8f-11e5-81d4-e8fcafe67a08
Version=V1.0
autoload=no
bootargs=console=ttyS0,115200
bootargs_end=:10.4.50.254:255.255.255.0:KW40:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=usb start; run usb_bootcmd; usb stop; reset
bootcmd_fdt=tftpboot 0x2000000 $image_name;tftpboot $fdtaddr $fdtfile;setenv bootargs $console $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_ubi=ubi part ubifs; ubifsmount rootfs; ubifsload 0x2000000 kernel; ubifsload 0x3000000 initrd.gz; bootm 0x2000000 0x3000000 0x1000000
bootdelay=0
cacheShare=no
console=console=ttyS0,115200
disL2Cache=yes
disaMvPnp=no
eeeEnable=no
enaAutoRecovery=yes
enaClockGating=yes
enaExtDisk=no
enaFPU=no
enaMonExt=no
enaWrAllo=no
envver=3
eth1addr=MASKED
eth1mtu=1500
ethact=egiga1
ethaddr=MASKED
ethmtu=1500
ethprime=egiga1
fdt_skip_update=yes
fdtaddr=0x1000000
fdtfile=armada-370-db.dtb
image_name=uImage
initrd_name=uInitrd
load_addr=0x02000000
load_uimage=ext2load usb 0:1 0x2000000 /boot/uImage
load_uinitrd=ext2load usb 0:1 0x3000000 /boot/uInitrd
loadaddr=0x02000000
mtdids=nand0=armada-nand
mtdparts=mtdparts=pxa3xx_nand-0:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x400000@0x800000(minirootfs),-(ubifs)
mvNetConfig=mv_net_config=1,(00:50:43:11:11:11,0:1:2:3:4),mtu=1500
mv_pon_addr=MASKED
nandEcc=1bit
netbsd_en=no
netretry=no
pcieTune=no
pexMode=rc
pxe_files_load=:default.arm-armada370-db:default.arm-armadaxp:default.arm
pxefile_addr_r=3100000
rcvrip=169.254.100.100
sata_delay_reset=0
sata_dma_mode=yes
setL2CacheWT=no
standalone=fsload $load_addr $image_name;setenv bootargs $console $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm $load_addr;
stderr=serial
stdin=serial
stdout=serial
usb0Mode=host
usb1Mode=host
usb2Mode=device
usbActive=0
usb_boot=run load_uimage; if run load_uinitrd; then bootm 0x2000000 0x3000000; else bootm 0x2000000; fi
usb_bootcmd=run usb_set_bootargs; run usb_boot
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial init=/bin/systemd
vxworks_en=no
yuk_ethaddr=MASKED

Environment size: 2624/131068 bytes
Marvell>> boot
(Re)start USB...
USB:   Active port:     0
Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 2 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
Loading file "/boot/uImage" from usb device 0:1 ()
4076885 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 ()
7070236 bytes read
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-4.20.6-mvebu-mirabox-tld-1
   Created:      2020-08-19  18:36:11 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4076821 Bytes = 3.9 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 03000000 ...
   Image Name:   initramfs-4.12.4-mvebu-tld-1
   Created:      2017-08-22  11:10:43 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7070172 Bytes = 6.7 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... 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: NETGEAR ReadyNAS 102
[    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: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=pxa3xx_nand-0:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x400000@0x800000(minirootfs),-(ubifs) earlyprintk=serial init=/bin/systemd mtdparts=pxa3xx_nand-0:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x400000@0x800000(minirootfs),-(ubifs) reason=normal bdtype=rn102
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 499364K/524288K available (8192K kernel code, 731K rwdata, 2072K rodata, 1024K init, 320K bss, 24924K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 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 114537122277ns
[    0.007239] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 101938038664 ns
[    0.018004] Console: colour dummy device 80x30
[    0.022087] Calibrating delay loop (skipped), value calculated using timer frequency.. 37.49 BogoMIPS (lpj=187492)
[    0.031580] pid_max: default: 32768 minimum: 301
[    0.035960] LSM: Security Framework initializing
[    0.040287] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.046330] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.053618] CPU: Testing write buffer coherency: ok
[    0.058445] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.117367] Setting up static identity map for 0x100000 - 0x100060
[    0.123338] mvebu-soc-id: MVEBU SoC ID=0x6710, Rev=0x1
[    0.128194] mvebu-pmsu: Initializing Power Management Service Unit
[    0.147298] rcu: Hierarchical SRCU implementation.
[    0.187299] smp: Bringing up secondary CPUs ...
[    0.191444] smp: Brought up 1 node, 1 CPU
[    0.195104] SMP: Total of 1 processors activated (37.49 BogoMIPS).
[    0.200774] CPU: All CPU(s) started in SVC mode.
[    0.205792] devtmpfs: initialized
[    0.217565] VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 6
[    0.225121] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.234413] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.240304] prandom: seed boundary self test passed
[    0.247200] prandom: 100 self tests passed
[    0.251119] pinctrl core: initialized pinctrl subsystem
[    0.258062] NET: Registered protocol family 16
[    0.262886] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.270428] audit: initializing netlink subsys (disabled)
[    0.275677] audit: type=2000 audit(0.250:1): state=initialized audit_enabled=0 res=1
[    0.284735] cpuidle: using governor ladder
[    0.289685] cpuidle: using governor menu
[    0.293541] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.388340] vgaarb: loaded
[    0.391148] SCSI subsystem initialized
[    0.398084] usbcore: registered new interface driver usbfs
[    0.403141] usbcore: registered new interface driver hub
[    0.409496] usbcore: registered new device driver usb
[    0.415211] pps_core: LinuxPPS API ver. 1 registered
[    0.420320] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.428901] PTP clock support registered
[    0.435066] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.496295] VFS: Disk quotas dquot_6.6.0
[    0.499957] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.529892] NET: Registered protocol family 2
[    0.536594] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.543601] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.550409] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.556501] TCP: Hash tables configured (established 4096 bind 4096)
[    0.562428] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.567831] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.573763] NET: Registered protocol family 1
[    0.608645] RPC: Registered named UNIX socket transport module.
[    0.614052] RPC: Registered udp transport module.
[    0.618437] RPC: Registered tcp transport module.
[    0.622731] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.628857] Unpacking initramfs...
[    1.030895] Freeing initrd memory: 6908K
[    1.034734] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.041171] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    1.051759] Initialise system trusted keyrings
[    1.057172] Key type blacklist registered
[    1.061045] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    1.067171] zbud: loaded
[    1.080450] NFS: Registering the id_resolver key type
[    1.085310] Key type id_resolver registered
[    1.089130] Key type id_legacy registered
[    1.092801] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.099015] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.223683] Key type asymmetric registered
[    1.227567] Asymmetric key parser 'x509' registered
[    1.232248] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    1.239374] io scheduler noop registered
[    1.242959] io scheduler deadline registered
[    1.246970] io scheduler cfq registered (default)
[    1.253799] armada-370-pinctrl d0018000.pin-ctrl: registered pinctrl driver
[    1.267932] mvebu-pcie soc:pcie@82000000: PCI host bridge to bus 0000:00
[    1.274064] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.279899] pci_bus 0000:00: root bus resource [mem 0xf8000000-0xffdfffff]
[    1.286485] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    1.294216] PCI: bus0: Fast back to back transfers disabled
[    1.299753] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.307155] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.315440] pci 0000:00:01.0: ASPM: current common clock configuration is broken, reconfiguring
[    1.346168] PCI: bus1: Fast back to back transfers disabled
[    1.352130] pci 0000:00:02.0: ASPM: current common clock configuration is broken, reconfiguring
[    1.386185] PCI: bus2: Fast back to back transfers disabled
[    1.391372] pci 0000:00:01.0: BAR 14: assigned [mem 0xf8000000-0xf80fffff]
[    1.397730] pci 0000:00:01.0: BAR 15: assigned [mem 0xf8100000-0xf81fffff pref]
[    1.404405] pci 0000:00:02.0: BAR 14: assigned [mem 0xf8200000-0xf82fffff]
[    1.410729] pci 0000:00:01.0: BAR 13: assigned [io  0x10000-0x10fff]
[    1.416576] pci 0000:00:01.0: BAR 6: assigned [mem 0xf8300000-0xf83007ff pref]
[    1.423172] pci 0000:00:02.0: BAR 6: assigned [mem 0xf8400000-0xf84007ff pref]
[    1.429791] pci 0000:01:00.0: BAR 6: assigned [mem 0xf8100000-0xf810ffff pref]
[    1.436404] pci 0000:01:00.0: BAR 5: assigned [mem 0xf8000000-0xf80001ff]
[    1.442605] pci 0000:01:00.0: BAR 4: assigned [io  0x10000-0x1000f]
[    1.448347] pci 0000:01:00.0: BAR 0: assigned [io  0x10010-0x10017]
[    1.454071] pci 0000:01:00.0: BAR 2: assigned [io  0x10018-0x1001f]
[    1.459812] pci 0000:01:00.0: BAR 1: assigned [io  0x10020-0x10023]
[    1.465553] pci 0000:01:00.0: BAR 3: assigned [io  0x10024-0x10027]
[    1.471278] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.475828] pci 0000:00:01.0:   bridge window [io  0x10000-0x10fff]
[    1.481553] pci 0000:00:01.0:   bridge window [mem 0xf8000000-0xf80fffff]
[    1.487767] pci 0000:00:01.0:   bridge window [mem 0xf8100000-0xf81fffff pref]
[    1.494367] pci 0000:02:00.0: BAR 0: assigned [mem 0xf8200000-0xf820ffff 64bit]
[    1.501064] pci 0000:02:00.0: BAR 2: assigned [mem 0xf8210000-0xf8210fff 64bit]
[    1.507760] pci 0000:02:00.0: BAR 4: assigned [mem 0xf8211000-0xf8211fff 64bit]
[    1.514439] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.518990] pci 0000:00:02.0:   bridge window [mem 0xf8200000-0xf82fffff]
[    1.525319] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[    1.531166] pcieport 0000:00:02.0: enabling device (0140 -> 0142)
[    1.538073] mv_xor d0060800.xor: Marvell shared XOR driver
[    1.606188] mv_xor d0060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.613342] mv_xor d0060900.xor: Marvell shared XOR driver
[    1.676179] mv_xor d0060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.842949] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.852987] printk: console [ttyS0] disabled
[    1.878413] d0012000.serial: ttyS0 at MMIO 0xd0012000 (irq = 19, base_baud = 12500000) is a 16550A
[    1.886827] printk: console [ttyS0] enabled
[    1.886827] printk: console [ttyS0] enabled
[    1.894529] printk: bootconsole [earlycon0] disabled
[    1.894529] printk: bootconsole [earlycon0] disabled
[    1.905765] ahci 0000:01:00.0: enabling device (0146 -> 0147)
[    1.911300] ahci 0000:01:00.0: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
[    1.919447] ahci 0000:01:00.0: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.939778] scsi host0: ahci
[    1.953438] scsi host1: ahci
[    1.956653] ata1: SATA max UDMA/133 abar m512@0xf8000000 port 0xf8000100 irq 42
[    1.963392] ata2: SATA max UDMA/133 abar m512@0xf8000000 port 0xf8000180 irq 42
[    1.971346] sata_mv d00a0000.sata: slots 32 ports 1
[    1.987185] scsi host2: sata_mv
[    1.990525] ata3: SATA max UDMA/133 irq 27
[    1.996012] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xf1
[    2.001873] nand: Micron MT29F1G08ABADAWP
[    2.005687] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    2.013360] Bad block table found at page 65472, version 0x01
[    2.019670] Bad block table found at page 65408, version 0x01
[    2.025251] 5 cmdlinepart partitions found on MTD device pxa3xx_nand-0
[    2.031266] Creating 5 MTD partitions on "pxa3xx_nand-0":
[    2.036338] 0x000000000000-0x000000180000 : "u-boot"
[    2.042644] 0x000000180000-0x0000001a0000 : "u-boot-env"
[    2.049802] 0x000000200000-0x000000800000 : "uImage"
[    2.056543] 0x000000800000-0x000000c00000 : "minirootfs"
[    2.063441] 0x000000c00000-0x000008000000 : "ubifs"
[    2.074851] libphy: Fixed MDIO Bus: probed
[    2.082830] libphy: orion_mdio_bus: probed
[    2.094254] mvneta d0074000.ethernet eth0: Using random mac address 96:a8:1a:84:2e:26
[    2.106010] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.112063] ehci-pci: EHCI PCI platform driver
[    2.117030] ehci-orion: EHCI orion driver
[    2.120936] orion-ehci d0050000.usb: EHCI Host Controller
[    2.126155] orion-ehci d0050000.usb: new USB bus registered, assigned bus number 1
[    2.133325] orion-ehci d0050000.usb: irq 25, io mem 0xd0050000
[    2.165093] orion-ehci d0050000.usb: USB 2.0 started, EHCI 1.00
[    2.170843] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.20
[    2.178492] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.185164] usb usb1: Product: EHCI Host Controller
[    2.189660] usb usb1: Manufacturer: Linux 4.20.6-mvebu-mirabox-tld-12 ehci_hcd
[    2.196383] usb usb1: SerialNumber: d0050000.usb
[    2.201528] hub 1-0:1.0: USB hub found
[    2.205305] hub 1-0:1.0: 1 port detected
[    2.210189] xhci_hcd 0000:02:00.0: xHCI Host Controller
[    2.215540] xhci_hcd 0000:02:00.0: new USB bus registered, assigned bus number 2
[    2.223125] xhci_hcd 0000:02:00.0: hcc params 0x200073a1 hci version 0x100 quirks 0x0000000000080010
[    2.232436] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.20
[    2.240208] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.246992] usb usb2: Product: xHCI Host Controller
[    2.251489] usb usb2: Manufacturer: Linux 4.20.6-mvebu-mirabox-tld-12 xhci-hcd
[    2.258226] usb usb2: SerialNumber: 0000:02:00.0
[    2.263372] hub 2-0:1.0: USB hub found
[    2.267182] hub 2-0:1.0: 2 ports detected
[    2.271667] xhci_hcd 0000:02:00.0: xHCI Host Controller
[    2.276826] xhci_hcd 0000:02:00.0: new USB bus registered, assigned bus number 3
[    2.283719] xhci_hcd 0000:02:00.0: Host supports USB 3.0  SuperSpeed
[    2.289782] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.297551] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.20
[    2.305239] ata2: SATA link down (SStatus 0 SControl 300)
[    2.310323] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.317173] usb usb3: Product: xHCI Host Controller
[    2.321713] usb usb3: Manufacturer: Linux 4.20.6-mvebu-mirabox-tld-12 xhci-hcd
[    2.328414] ata3: SATA link down (SStatus 0 SControl F300)
[    2.333515] usb usb3: SerialNumber: 0000:02:00.0
[    2.338614] hub 3-0:1.0: USB hub found
[    2.342314] hub 3-0:1.0: 2 ports detected
[    2.347621] usbcore: registered new interface driver usblp
[    2.353437] usbcore: registered new interface driver usb-storage
[    2.359784] mousedev: PS/2 mouse device common for all mice
[    2.366684] i2c /dev entries driver
[    2.373812] rtc-ds1307 0-0068: 'wakeup-source' is set, request for an IRQ is disabled!
[    2.385861] rtc-ds1307 0-0068: registered as rtc0
[    2.416552] orion_wdt: Initial timeout 229 sec
[    2.471518] marvell-cesa d0090000.crypto: CESA device successfully registered
[    2.478971] hidraw: raw HID events driver (C) Jiri Kosina
[    2.485032] usbcore: registered new interface driver usbhid
[    2.490286] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[    2.496501] usbhid: USB HID core driver
[    2.500596] drop_monitor: Initializing network drop monitor service
[    2.506514] ata1.00: ATA-7: ST940210AS, 3.ALC, max UDMA/100
[    2.511652] ata1.00: 78140160 sectors, multi 0: LBA48 NCQ (depth 32)
[    2.518404] NET: Registered protocol family 10
[    2.528195] ata1.00: configured for UDMA/100
[    2.533989] Segment Routing with IPv6
[    2.537875] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.544289] scsi 0:0:0:0: Direct-Access     ATA      ST940210AS       C    PQ: 0 ANSI: 5
[    2.555353] NET: Registered protocol family 17
[    2.563459] sd 0:0:0:0: [sda] 78140160 512-byte logical blocks: (40.0 GB/37.3 GiB)
[    2.572354] 8021q: 802.1Q VLAN Support v1.8
[    2.577345] Key type dns_resolver registered
[    2.581559] ThumbEE CPU extension supported.
[    2.585713] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    2.592391] sd 0:0:0:0: [sda] Write Protect is off
[    2.597763] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.606323] Registering SWP/SWPB emulation handler
[    2.612963] registered taskstats version 1
[    2.621168] Loading compiled-in X.509 certificates
[    2.625915] zswap: loaded using pool lzo/zbud
[    2.671841] Key type big_key registered
[    2.696769] Key type encrypted registered
[    2.705351] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[    2.714332] rtc-ds1307 0-0068: setting system clock to 2020-08-23 10:20:14 UTC (1598178014)
[    2.785413]  sda: sda1 sda2 sda3
[    2.793203] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    2.801575] Freeing unused kernel memory: 1024K
[    2.807115] usb 1-1: New USB device found, idVendor=0781, idProduct=5583, bcdDevice= 1.00
[    2.814697] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.821588] usb 1-1: Product: Ultra Fit
[    2.826862] Checked W+X mappings: passed, no W+X pages found
[    2.832096] Run /init as init process
[    2.835642] usb 1-1: Manufacturer: SanDisk
[    2.839455] usb 1-1: SerialNumber: MASKED
[    2.852383] usb-storage 1-1:1.0: USB Mass Storage device detected
[    2.882237] scsi host3: usb-storage 1-1:1.0
Loading, please wait...
starting version 232
[    3.048575] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    3.066495] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    3.073266] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    3.947829] scsi 3:0:0:0: Direct-Access     SanDisk  Ultra Fit        1.00 PQ: 0 ANSI: 6
[    3.974103] sd 3:0:0:0: [sdb] 30031872 512-byte logical blocks: (15.4 GB/14.3 GiB)
[    3.999571] sd 3:0:0:0: [sdb] Write Protect is off
[    4.007940] sd 3:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    4.064851]  sdb: sdb1
[    4.080110] sd 3:0:0:0: [sdb] Attached SCSI removable disk
[    6.194639] random: fast init done
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Warning: fsck not present, so skipping root file system
[   16.979254] EXT4-fs (sdb1): mounting ext3 file system using the ext4 subsystem
[   17.010588] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
[   17.782819] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[   17.800481] systemd[1]: Detected architecture arm.

Welcome to Debian GNU/Linux 9 (stretch)!

[   17.845563] systemd[1]: Set hostname to <debian>.
[   18.717446] systemd[1]: rsyslog.service: Cannot add dependency job, ignoring: Unit rsyslog.service is masked.
[   18.734158] systemd[1]: Listening on RPCbind Server Activation Socket.
[  OK  ] Listening on RPCbind Server Activation Socket.
[   18.777425] systemd[1]: Created slice User and Session Slice.
[  OK  ] Created slice User and Session Slice.
[   18.816156] systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[   18.856285] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[   18.897304] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[  OK  ] Set up automount Arbitrary Executab…rmats File System Automount Point.
[   18.935991] systemd[1]: Listening on udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Reached target Paths.
[  OK  ] Reached target Encrypted Volumes.
[  OK  ] Reached target Swap.
[  OK  ] Listening on udev Control Socket.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on fsck to fsckd communication Socket.
[  OK  ] Listening on Journal Socket.
[  OK  ] Created slice System Slice.
[  OK  ] Created slice system-serial\x2dgetty.slice.
         Mounting RPC Pipe File System...
         Mounting NFSD configuration filesystem...
         Starting File System Check on Root Device...
[  OK  ] Created slice system-getty.slice.
         Starting Load Kernel Modules...
         Starting Create Static Device Nodes in /dev...
         Mounting Debug File System...
         Mounting POSIX Message Queue File System...
[  OK  ] Reached target Slices.
[  OK  ] Listening on Journal Audit Socket.
         Starting Journal Service...
[  OK  ] Mounted NFSD configuration filesystem.
[  OK  ] Mounted RPC Pipe File System.
[  OK  ] Mounted Debug File System.
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Started File System Check on Root Device.
[  OK  ] Started Load Kernel Modules.
[  OK  ] Started Create Static Device Nodes in /dev.
[  OK  ] Started File System Check Daemon to report status.
         Starting udev Kernel Device Manager...
         Starting Apply Kernel Variables...
         Starting Remount Root and Kernel File Systems...
         Starting pNFS block layout mapping daemon...
[  OK  ] Started Apply Kernel Variables.
[  OK  ] Started pNFS [   20.559296] EXT4-fs (sdb1): re-mounted. Opts: errors=remount-ro
block layout mapping daemon.
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Started udev Kernel Device Manager.
         Starting Load/Save Random Seed...
         Starting udev Coldplug all Devices...
[  OK  ] Reached target Local File Systems (Pre).
         Mounting /tmp...
[  OK  ] Started Journal Service.
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Mounted /tmp.
[  OK  ] Reached target Local File Systems.
         Starting Raise network interfaces...
         Starting Preprocess NFS configuration...
         Starting Flush Journal to Persistent Storage...
[  OK  ] Started Preprocess NFS configuration.
[   21.485903] systemd-journald[1456]: Received request to flush runtime journal from PID 1
         Starting NFSv4 ID-name mapping service...
[  OK  ] Reached target NFS client services.
[  OK  ] Started Flush Journal to Persistent Storage.
         Starting Create Volatile Files and Directories...
[  OK  ] Started NFSv4 ID-name mapping service.
[  OK  ] Started Create Volatile Files and Directories.
[  OK  ] Reached target System Time Synchronized.
         Starting Update UTMP about System Boot/Shutdown...
         Starting RPC bind portmap service...
[   22.279544] random: crng init done
[   22.282703] random: 7 urandom warning(s) missed due to ratelimiting
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Started RPC bind portmap service.
[  OK  ] Reached target RPC Port Mapper.
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Reached target System Initialization.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
         Starting Avahi mDNS/DNS-SD Stack...
[  OK  ] Started Regular background program processing daemon.
         Starting Login Service...
[  OK  ] Started D-Bus System Message Bus.
[   24.620412] mvneta d0074000.ethernet eth0: PHY [d0072004.mdio-mii:00] driver [Marvell 88E1318S]
[   24.649137] mvneta d0074000.ethernet eth0: configuring for phy/rgmii-id link mode
[   24.672285] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[  OK  ] Found device /dev/ttyS0.
[  OK  ] Started Login Service.
[   26.746016] mvneta d0074000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[   26.753596] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[  OK  ] Started Raise network interfaces.
[  OK  ] Reached target Network.
         Starting OpenBSD Secure Shell server...
         Starting NFS Mount Daemon...
[  OK  ] Reached target Network is Online.
         Starting /etc/rc.local Compatibility...
[  OK  ] Started Daily apt download activities.
[  OK  ] Started Daily apt upgrade and clean activities.
[  OK  ] Reached target Timers.
[  OK  ] Started /etc/rc.local Compatibility.
[  OK  ] Started OpenBSD Secure Shell server.
[  OK  ] Started NFS Mount Daemon.
         Starting NFS server and services...
[   38.279693] NFSD: starting 45-second grace period (net f0000021)
[  OK  ] Started NFS server and services.
[  OK  ] Reached target Remote File Systems (Pre).
[  OK  ] Reached target Remote File Systems.
         Starting Permit User Sessions...
         Starting LSB: Start NTP daemon...
         Starting LSB: Starts syslogd...
[  OK  ] Started Permit User Sessions.
[  OK  ] Started Getty on tty1.
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started LSB: Starts syslogd.
         Starting LSB: Starts klogd...
[  OK  ] Started LSB: Starts klogd.
[   43.854385] fbcon: Taking over console

Debian GNU/Linux 9 debian ttyS0

debian login: root
Password:
Last login: Sun Aug 23 03:13:05 PDT 2020 on ttyS0
Linux debian 4.20.6-mvebu-mirabox-tld-12 #6 SMP PREEMPT Wed Mar 13 14:43:16 PDT 2019 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.
debian
192.168.1.218
NETGEAR ReadyNAS 102
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
Debian 9.1
Sun Aug 23 03:21:08 PDT 2020 up
root@debian:~# cat /etc/fw_env.config
# MTD device name       Device offset   Env. size       Flash sector size      Number of sectors

/dev/mtd1               0x0000          0x80000         0x20000                4
root@debian:~# fw_printenv
Cannot read bad block mark: Invalid argument
root@debian:~# lsblk
NAME      MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda         8:0    1 37.3G  0 disk
|-sda1      8:1    1    4G  0 part
|-sda2      8:2    1  512M  0 part
`-sda3      8:3    1 32.8G  0 part
sdb         8:16   1 14.3G  0 disk
`-sdb1      8:17   1 14.3G  0 part /
mtdblock0  31:0    0  1.5M  0 disk
mtdblock1  31:1    0  128K  0 disk
mtdblock2  31:2    0    6M  0 disk
mtdblock3  31:3    0    4M  0 disk
mtdblock4  31:4    0  116M  0 disk
root@debian:~#

From your instructions bodhi env size must me 0x20000 but it seems 0x80000 maybe this is the issue?:

root@debian:~# cat /etc/fw_env.config
# MTD device name       Device offset   Env. size       Flash sector size      Number of sectors

/dev/mtd1               0x0000          0x80000         0x20000                4

I didn't proceed to write envs.
Regards.
Re: Debian on Netgear RN102
August 23, 2020 04:16PM
whitepawn,

Quote

mtdparts=mtdparts=pxa3xx_nand-0:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x400000@0x800000(minirootfs),-(ubifs)

Quote

Environment size: 2624/131068 bytes

The bootlog indicated that the envs size is 0x20000 (128K = 131072 bytes). And NAND sector size is also 128K

So the correct env definition is:

cat /etc/fw_env.config
# MTD device name	Device offset	Env. size	   Flash sector size	Number of sectors
/dev/mtd1                0x00000          0x20000           0x20000

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Netgear RN102
August 24, 2020 02:16AM
In default (stock) /etc/fw_env.config file env size is 0x80000, i edited it to 0x20000 with nano and your tests work perfectly:)Debian can read/write operations to mtd1.

Since i am impatient i have already installed omv so please ignore kernel warning messages about watchdog.If you need full stock rootfs and stock envs bootlog please tell me.Anyway here are the logs:

debian login: root
Password:
Last login: Sun Aug 23 22:40:59 PDT 2020 on ttyS0
Linux debian 4.20.6-mvebu-mirabox-tld-12 #6 SMP PREEMPT Wed Mar 13 14:43:16 PDT 2019 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.
debian
192.168.1.218
NETGEAR ReadyNAS 102
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
Debian 9.1
Sun Aug 23 23:17:57 PDT 2020 up 7 minutes
root@debian:~# fw_printenv
AC_Power_fail_detect=open
CASset=min
HW_version=MVT
MALLOC_len=5
Manufacturer=NETGEAR
Product=ReadyNAS 102
SKUNum=RN102
SerialNum=MASKED
Startup=Normal
UUID=adaf7396-2c8f-11e5-81d4-e8fcafe67a08
Version=V1.0
autoload=no
bootargs=console=ttyS0,115200
bootargs_end=:10.4.50.254:255.255.255.0:KW40:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=nand read 0x2000000 0x200000 0x400000; nand read 0x3000000 0x800000 0x400000; bootm 0x2000000 0x3000000 0x1000000
bootcmd_fdt=tftpboot 0x2000000 $image_name;tftpboot $fdtaddr $fdtfile;setenv bootargs $console $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_ubi=ubi part ubifs; ubifsmount rootfs; ubifsload 0x2000000 kernel; ubifsload 0x3000000 initrd.gz; bootm 0x2000000 0x3000000 0x1000000
bootdelay=0
cacheShare=no
console=console=ttyS0,115200
disL2Cache=yes
disaMvPnp=no
eeeEnable=no
enaAutoRecovery=yes
enaClockGating=yes
enaExtDisk=no
enaFPU=no
enaMonExt=no
enaWrAllo=no
envver=3
eth1addr=MASKED
eth1mtu=1500
ethact=egiga1
ethaddr=MASKED
ethmtu=1500
ethprime=egiga1
fdt_skip_update=no
fdtaddr=0x1000000
fdtfile=armada-370-db.dtb
image_name=uImage
initrd_name=uInitrd
load_addr=0x02000000
loadaddr=0x02000000
mtdids=nand0=armada-nand
mtdparts=mtdparts=armada-nand:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x400000@0x800000(minirootfs),-(ubifs)
mvNetConfig=mv_net_config=1,(00:50:43:11:11:11,0:1:2:3:4),mtu=1500
mv_pon_addr=MASKED
nandEcc=1bit
netbsd_en=no
netretry=no
pcieTune=no
pexMode=rc
pxe_files_load=:default.arm-armada370-db:default.arm-armadaxp:default.arm
pxefile_addr_r=3100000
rcvrip=169.254.100.100
sata_delay_reset=0
sata_dma_mode=yes
setL2CacheWT=no
standalone=fsload $load_addr $image_name;setenv bootargs $console $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm $load_addr;
stderr=serial
stdin=serial
stdout=serial
usb0Mode=host
usb1Mode=host
usb2Mode=device
usbActive=0
vxworks_en=no
yuk_ethaddr=MASKED
root@debian:~# fw_setenv test_rn102 yes
root@debian:~# fw_printenv test_rn102
test_rn102=yes
root@debian:~# init 0
         Stopping ACPI event daemon...
[  OK  ] Stopped target RPC Port Mapper.
         Starting Beep before system shutdown...
[  OK  ] Stopped target Graphical Interface.
         Stopping pNFS block layout mapping daemon...
[  OK  ] Stopped target Timers.
[  OK  ] Stopped Daily apt upgrade and clean activities.
[  OK  ] Stopped Clean PHP session files every 30 mins.
[  OK  ] Stopped Trigger anacron every hour.
[  OK  ] Stopped Daily Cleanup of Temporary Directories.
[  OK  ] Stopped Daily apt download activities.
[  OK  ] Stopped target Multi-User System.
         Stopping LSB: Starts ProFTPD daemon...
         Stopping LSB: set CPUFreq kernel parameters...
         Stopping System Logging Service...
         Stopping OpenBSD Secure Shell server...
[  OK  ] Stopped Generate the prelogin message.
         Stopping Login Service...
         Stopping A high performance web server and a reverse proxy server...
         Stopping LSB: Starts klogd...
         Stopping LSB: service and resource monitoring daemon...
         Stopping D-Bus System Message Bus...
         Stopping LSB: Start NTP daemon...
[  OK  ] Stopped target Login Prompts.
         Stopping Getty on tty1...
         Stopping Avahi mDNS/DNS-SD Stack...
         Stopping Statistics collection and monitoring daemon...
[  OK  ] Stopped The OpenMediaVault engine d…on that processes the RPC request.
         Stopping Regular background program processing daemon...
         Stopping The PHP 7.0          Stopping Serial Getty on ttyS0...
         Stopping Self Monitoring and Reporting Technology (SMART) Daemon...
[  OK  ] Stopped pNFS block layout mapping daemon.
[  OK  ] Stopped Self Monitoring and Reporting Technology (SMART) Daemon.
[  OK  ] Stopped Avahi mDNS/DNS-SD Stack.
[  OK  ] Stopped Regular background program processing daemon.
[  OK  ] Stopped ACPI event daemon.
[  OK  ] Stopped D-Bus System Message Bus.
[  OK  ] Stopped Login Service.
[  OK  ] Stopped System Logging Service.
[  OK  ] Stopped OpenBSD Secure Shell server.
[  OK  ] Stopped The PHP 7.0 FastCGI Process Manager.
[  OK  ] Stopped Getty on tty1.
[  OK  ] Stopped Serial Getty on ttyS0.
[  OK  ] Stopped Statistics collection and monitoring daemon.
[  OK  ] Started Beep before system shutdown.
[  OK  ] Stopped A high performance web server and a reverse proxy server.
[  OK  ] Stopped LSB: Starts klogd.
[  OK  ] Stopped LSB: set CPUFreq kernel parameters.
         Stopping LSB: Load kernel modules needed to enable cpufreq scaling...
         Stopping LSB: Starts syslogd...
         Stopping LSB: start or stop rrdcached...
[  OK  ] Removed slice system-serial\x2dgetty.slice.
[  OK  ] Stopped /etc/rc.local Compatibility.
         Stopping Permit User Sessions...
[  OK  ] Removed slice system-getty.slice.
[  OK  ] Stopped LSB: Start NTP daemon.
[  OK  ] Stopped LSB: Starts ProFTPD daemon.
[  OK  ] Stopped LSB: Starts syslogd.
[  OK  ] Stopped Permit User Sessions.
[  OK  ] Stopped LSB: Load kernel modules needed to enable cpufreq scaling.
[  OK  ] Stopped LSB: service and resource monitoring daemon.
[  OK  ] Stopped LSB: start or stop rrdcached.
[  OK  ] Stopped target Remote File Systems.
[  OK  ] Stopped target Remote File Systems (Pre).
         Stopping NFS server and services...
[  OK  ] Stopped target NFS client services.
[  OK  ] Stopped target Network is Online.
[  OK  ] Stopped target System Time Synchronized.
[  930.285405] nfsd: last server has exited, flushing export cache
[  OK  ] Stopped target Basic System.
[  OK  ] Stopped target Slices.
[  OK  ] Removed slice User and Session Slice.
[  OK  ] Stopped target Paths.
[  OK  ] Stopped ACPI Events Check.
[  OK  ] Stopped target Sockets.
[  OK  ] Closed Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Closed D-Bus System Message Bus Socket.
[  OK  ] Closed ACPID Listen Socket.
[  OK  ] Closed Syslog Socket.
[  OK  ] Stopped target System Initialization.
         Stopping Load/Save Random Seed...
[  OK  ] Stopped target Encrypted Volumes.
[  OK  ] Stopped Dispatch Password Requests to Console Directory Watch.
[  OK  ] Stopped Forward Password Requests to Wall Directory Watch.
[  OK  ] Stopped target Swap.
         Stopping Update UTMP about System Boot/Shutdown...
[  OK  ] Stopped Load/Save Random Seed.
[  OK  ] Stopped NFS server and services.
[  OK  ] Stopped Update UTMP about System Boot/Shutdown.
[  OK  ] Stopped Create Volatile Files and Directories.
         Stopping NFSv4 ID-name mapping service...
         Stopping NFS Mount Daemon...
[  OK  ] Stopped NFSv4 ID-name mapping service.
[  OK  ] Stopped NFS Mount Daemon.
[  OK  ] Stopped target Network.
         Stopping ifup for eth0...
         Stopping Raise network interfaces...
         Unmounting RPC Pipe File System...
[  OK  ] Unmounted RPC Pipe File System.
[  OK  ] Stopped Raise network interfaces.
[  933.072489] mvneta d0074000.ethernet eth0: Link is Down
[  OK  ] Stopped ifup for eth0.
[  OK  ] Stopped Apply Kernel Variables.
[  OK  ] Stopped Load Kernel Modules.
[  OK  ] Stopped target Local File Systems.
         Unmounting /tmp...
[  OK  ] Unmounted /tmp.
[  OK  ] Reached target Unmount All Filesystems.
[  OK  ] Stopped target Local File Systems (Pre).
         Stopping Monitoring of LVM2 mirrors…ng dmeventd or progress polling...
[  OK  ] Stopped Create Static Device Nodes in /dev.
[  OK  ] Stopped Remount Root and Kernel File Systems.
[  OK  ] Reached target Shutdown.
[  934.189504] printk: systemd-shutdow: 53 output lines suppressed due to ratelimiting
[  936.136883] systemd-shutdown[1]: Sending SIGTERM to remaining processes...
[  936.163997] systemd-journald[1461]: Received SIGTERM from PID 1 (systemd-shutdow).
[  936.206404] systemd-shutdown[1]: Sending SIGKILL to remaining processes...
[  936.231573] systemd-shutdown[1]: Unmounting file systems.
[  936.238412] systemd-shutdown[1]: Remounting '/' read-only with options 'errors=remount-ro'.
[  936.288420] EXT4-fs (sdb1): re-mounted. Opts: errors=remount-ro
[  936.309235] systemd-shutdown[1]: Remounting '/' read-only with options 'errors=remount-ro'.
[  936.317629] EXT4-fs (sdb1): re-mounted. Opts: errors=remount-ro
[  936.323204] systemd-shutdown[1]: All filesystems unmounted.
[  936.328637] systemd-shutdown[1]: Deactivating swaps.
[  936.333467] systemd-shutdown[1]: All swaps deactivated.
[  936.338516] systemd-shutdown[1]: Detaching loop devices.
[  936.351882] systemd-shutdown[1]: All loop devices detached.
[  936.431567] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[  936.436778] sd 0:0:0:0: [sda] Stopping disk
[  936.715628] reboot: Power down


BootROM 1.08
Booting from NAND flash


General initialization - Version: 1.0.0

High speed PHY - Version: 2.1.4 (COM-PHY-V20)
Update PEX Device ID 0x6710
High speed PHY - Ended Successfully
0000
DDR3 Training Sequence - Ver 5.7.1
DDR3 Training Sequence - Run without PBS.
DDR3 Training Sequence - Ended Successfully
BootROM: Image checksum verification PASSED
l
 __   __                      _ _
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ V /  __/ | |
|_|  |_|\__,_|_|    \_/ \___|_|_|
         _   _     ____              _
        | | | |   | __ )  ___   ___ | |_
        | | | |___|  _ \ / _ \ / _ \| __|
        | |_| |___| |_) | (_) | (_) | |_
         \___/    |____/ \___/ \___/ \__|
 ** LOADER **


U-Boot 2011.12-gec25d27-dirty (Oct 26 2015 - 16:53:05) Marvell version: v2011.12 2014_T2.0p1
06/23/2015 ReadyNAS-102 V2.0

Board: DB-88F6710-BP
SoC:   MV6710 A1
CPU:   Marvell PJ4B v7 UP (Rev 1) LE
       CPU    @ 1200 [MHz]
       L2     @ 600 [MHz]
       TClock @ 200 [MHz]
       DDR    @ 600 [MHz]
       DDR 16Bit Width, FastPath Memory Access
DRAM:  512 MiB

Map:   Code:            0x1feef000:0x1ff9ef34
       BSS:             0x1ffef0a0
       Stack:           0x1f9eeef8
       Heap:            0x1f9ef000:0x1feef000

NAND:  (ID 0xf12c)      128 MiB
MMC:   MRVL_MMC: 0
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01

Initialize and scan all PCI interfaces
PEX unit.port(active IF[-first bus]):
------------------------------------------
PEX 0: Root Complex Interface, Detected Link X1, GEN 2.0
PEX 1: Root Complex Interface, Detected Link X1, GEN 2.0
FPU not initialized
USB 0: Host Mode
USB 1: Host Mode
Shutting down unused interfaces:
       GBE0
       SDIO
       AUDIO
       TDM
Modules/Interfaces Detected:
       RGMII1 Phy
       PEX0 (Lane 0)
       PEX1 (Lane 1)
       SATA0 (Lane 2)
       SATA1 (Lane 3)
Net:   , egiga1 [PRIME]
Power On!

FDT loaded successfully
Hit any key to stop autoboot:  0
Marvell>> <INTERRUPT>
Marvell>> <INTERRUPT>
Marvell>> <INTERRUPT>
Marvell>> <INTERRUPT>
Marvell>> setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial init=/bin/systemd'
Marvell>> setenv load_uimage 'ext2load usb 0:1 0x2000000 /boot/uImage'
Marvell>> setenv load_uinitrd 'ext2load usb 0:1 0x3000000 /boot/uInitrd'
Marvell>> setenv usb_boot 'run load_uimage; if run load_uinitrd; then bootm 0x2000000 0x3000000; else bootm 0x2000000; fi'
Marvell>> setenv usb_bootcmd 'run usb_set_bootargs; run usb_boot'
Marvell>> setenv bootcmd 'usb start; run usb_bootcmd; usb stop; reset'
Marvell>> setenv fdt_skip_update yes
Marvell>> setenv mtdparts 'mtdparts=pxa3xx_nand-0:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x400000@0x800000(minirootfs),-(ubifs)'
Marvell>> boot
(Re)start USB...
USB:   Active port:     0
Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 2 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
Loading file "/boot/uImage" from usb device 0:1 ()
4076885 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 ()
7070236 bytes read
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-4.20.6-mvebu-mirabox-tld-1
   Created:      2020-08-19  18:36:11 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4076821 Bytes = 3.9 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 03000000 ...
   Image Name:   initramfs-4.12.4-mvebu-tld-1
   Created:      2017-08-22  11:10:43 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7070172 Bytes = 6.7 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... 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: NETGEAR ReadyNAS 102
[    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: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=pxa3xx_nand-0:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x400000@0x800000(minirootfs),-(ubifs) earlyprintk=serial init=/bin/systemd mtdparts=pxa3xx_nand-0:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x400000@0x800000(minirootfs),-(ubifs) reason=normal bdtype=rn102
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 499364K/524288K available (8192K kernel code, 731K rwdata, 2072K rodata, 1024K init, 320K bss, 24924K reserved, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 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 114537122277ns
[    0.007239] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 101938038664 ns
[    0.018005] Console: colour dummy device 80x30
[    0.022088] Calibrating delay loop (skipped), value calculated using timer frequency.. 37.49 BogoMIPS (lpj=187492)
[    0.031579] pid_max: default: 32768 minimum: 301
[    0.035960] LSM: Security Framework initializing
[    0.040286] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.046329] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.053615] CPU: Testing write buffer coherency: ok
[    0.058440] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.117367] Setting up static identity map for 0x100000 - 0x100060
[    0.123335] mvebu-soc-id: MVEBU SoC ID=0x6710, Rev=0x1
[    0.128191] mvebu-pmsu: Initializing Power Management Service Unit
[    0.147298] rcu: Hierarchical SRCU implementation.
[    0.187299] smp: Bringing up secondary CPUs ...
[    0.191444] smp: Brought up 1 node, 1 CPU
[    0.195104] SMP: Total of 1 processors activated (37.49 BogoMIPS).
[    0.200777] CPU: All CPU(s) started in SVC mode.
[    0.205792] devtmpfs: initialized
[    0.217567] VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 6
[    0.225123] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.234418] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.240309] prandom: seed boundary self test passed
[    0.247205] prandom: 100 self tests passed
[    0.251121] pinctrl core: initialized pinctrl subsystem
[    0.258058] NET: Registered protocol family 16
[    0.262863] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.270410] audit: initializing netlink subsys (disabled)
[    0.275660] audit: type=2000 audit(0.250:1): state=initialized audit_enabled=0 res=1
[    0.284718] cpuidle: using governor ladder
[    0.289669] cpuidle: using governor menu
[    0.293526] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.388346] vgaarb: loaded
[    0.391152] SCSI subsystem initialized
[    0.398081] usbcore: registered new interface driver usbfs
[    0.403138] usbcore: registered new interface driver hub
[    0.409474] usbcore: registered new device driver usb
[    0.415189] pps_core: LinuxPPS API ver. 1 registered
[    0.420288] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.428867] PTP clock support registered
[    0.435023] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.496229] VFS: Disk quotas dquot_6.6.0
[    0.499890] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.529963] NET: Registered protocol family 2
[    0.536503] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.543510] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.550319] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.556402] TCP: Hash tables configured (established 4096 bind 4096)
[    0.562325] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.567730] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.573663] NET: Registered protocol family 1
[    0.608540] RPC: Registered named UNIX socket transport module.
[    0.613948] RPC: Registered udp transport module.
[    0.618335] RPC: Registered tcp transport module.
[    0.622629] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.628750] Unpacking initramfs...
[    1.032742] Freeing initrd memory: 6908K
[    1.036670] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.042977] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    1.053599] Initialise system trusted keyrings
[    1.058995] Key type blacklist registered
[    1.062868] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    1.068996] zbud: loaded
[    1.082286] NFS: Registering the id_resolver key type
[    1.087141] Key type id_resolver registered
[    1.090961] Key type id_legacy registered
[    1.094631] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.100844] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.224417] Key type asymmetric registered
[    1.228409] Asymmetric key parser 'x509' registered
[    1.233098] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    1.240162] io scheduler noop registered
[    1.243745] io scheduler deadline registered
[    1.247750] io scheduler cfq registered (default)
[    1.254581] armada-370-pinctrl d0018000.pin-ctrl: registered pinctrl driver
[    1.269429] mvebu-pcie soc:pcie@82000000: PCI host bridge to bus 0000:00
[    1.275977] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.280990] pci_bus 0000:00: root bus resource [mem 0xf8000000-0xffdfffff]
[    1.287602] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    1.295544] PCI: bus0: Fast back to back transfers disabled
[    1.300645] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.308235] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.316474] pci 0000:00:01.0: ASPM: current common clock configuration is broken, reconfiguring
[    1.346154] PCI: bus1: Fast back to back transfers disabled
[    1.352118] pci 0000:00:02.0: ASPM: current common clock configuration is broken, reconfiguring
[    1.386144] PCI: bus2: Fast back to back transfers disabled
[    1.391330] pci 0000:00:01.0: BAR 14: assigned [mem 0xf8000000-0xf80fffff]
[    1.397687] pci 0000:00:01.0: BAR 15: assigned [mem 0xf8100000-0xf81fffff pref]
[    1.404361] pci 0000:00:02.0: BAR 14: assigned [mem 0xf8200000-0xf82fffff]
[    1.410685] pci 0000:00:01.0: BAR 13: assigned [io  0x10000-0x10fff]
[    1.416532] pci 0000:00:01.0: BAR 6: assigned [mem 0xf8300000-0xf83007ff pref]
[    1.423128] pci 0000:00:02.0: BAR 6: assigned [mem 0xf8400000-0xf84007ff pref]
[    1.429748] pci 0000:01:00.0: BAR 6: assigned [mem 0xf8100000-0xf810ffff pref]
[    1.436361] pci 0000:01:00.0: BAR 5: assigned [mem 0xf8000000-0xf80001ff]
[    1.442562] pci 0000:01:00.0: BAR 4: assigned [io  0x10000-0x1000f]
[    1.448304] pci 0000:01:00.0: BAR 0: assigned [io  0x10010-0x10017]
[    1.454028] pci 0000:01:00.0: BAR 2: assigned [io  0x10018-0x1001f]
[    1.459769] pci 0000:01:00.0: BAR 1: assigned [io  0x10020-0x10023]
[    1.465510] pci 0000:01:00.0: BAR 3: assigned [io  0x10024-0x10027]
[    1.471235] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.475785] pci 0000:00:01.0:   bridge window [io  0x10000-0x10fff]
[    1.481510] pci 0000:00:01.0:   bridge window [mem 0xf8000000-0xf80fffff]
[    1.487724] pci 0000:00:01.0:   bridge window [mem 0xf8100000-0xf81fffff pref]
[    1.494324] pci 0000:02:00.0: BAR 0: assigned [mem 0xf8200000-0xf820ffff 64bit]
[    1.501022] pci 0000:02:00.0: BAR 2: assigned [mem 0xf8210000-0xf8210fff 64bit]
[    1.507718] pci 0000:02:00.0: BAR 4: assigned [mem 0xf8211000-0xf8211fff 64bit]
[    1.514396] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.518948] pci 0000:00:02.0:   bridge window [mem 0xf8200000-0xf82fffff]
[    1.525278] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[    1.531125] pcieport 0000:00:02.0: enabling device (0140 -> 0142)
[    1.538035] mv_xor d0060800.xor: Marvell shared XOR driver
[    1.606149] mv_xor d0060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.613297] mv_xor d0060900.xor: Marvell shared XOR driver
[    1.676139] mv_xor d0060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.840209] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.851022] printk: console [ttyS0] disabled
[    1.876400] d0012000.serial: ttyS0 at MMIO 0xd0012000 (irq = 19, base_baud = 12500000) is a 16550A
[    1.884646] printk: console [ttyS0] enabled
[    1.884646] printk: console [ttyS0] enabled
[    1.892550] printk: bootconsole [earlycon0] disabled
[    1.892550] printk: bootconsole [earlycon0] disabled
[    1.903642] ahci 0000:01:00.0: enabling device (0146 -> 0147)
[    1.909980] ahci 0000:01:00.0: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
[    1.917528] ahci 0000:01:00.0: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.937861] scsi host0: ahci
[    1.951516] scsi host1: ahci
[    1.954635] ata1: SATA max UDMA/133 abar m512@0xf8000000 port 0xf8000100 irq 42
[    1.961667] ata2: SATA max UDMA/133 abar m512@0xf8000000 port 0xf8000180 irq 42
[    1.969384] sata_mv d00a0000.sata: slots 32 ports 1
[    1.985267] scsi host2: sata_mv
[    1.988608] ata3: SATA max UDMA/133 irq 27
[    1.993923] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xf1
[    2.000036] nand: Micron MT29F1G08ABADAWP
[    2.003736] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    2.011468] Bad block table found at page 65472, version 0x01
[    2.017646] Bad block table found at page 65408, version 0x01
[    2.023145] 5 cmdlinepart partitions found on MTD device pxa3xx_nand-0
[    2.029235] Creating 5 MTD partitions on "pxa3xx_nand-0":
[    2.034217] 0x000000000000-0x000000180000 : "u-boot"
[    2.040606] 0x000000180000-0x0000001a0000 : "u-boot-env"
[    2.047779] 0x000000200000-0x000000800000 : "uImage"
[    2.054401] 0x000000800000-0x000000c00000 : "minirootfs"
[    2.061412] 0x000000c00000-0x000008000000 : "ubifs"
[    2.072828] libphy: Fixed MDIO Bus: probed
[    2.080827] libphy: orion_mdio_bus: probed
[    2.092204] mvneta d0074000.ethernet eth0: Using random mac address be:b2:40:49:ff:57
[    2.103534] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.110317] ehci-pci: EHCI PCI platform driver
[    2.114639] ehci-orion: EHCI orion driver
[    2.118991] orion-ehci d0050000.usb: EHCI Host Controller
[    2.123996] orion-ehci d0050000.usb: new USB bus registered, assigned bus number 1
[    2.131378] orion-ehci d0050000.usb: irq 25, io mem 0xd0050000
[    2.165034] orion-ehci d0050000.usb: USB 2.0 started, EHCI 1.00
[    2.170785] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.20
[    2.178432] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.185156] usb usb1: Product: EHCI Host Controller
[    2.189653] usb usb1: Manufacturer: Linux 4.20.6-mvebu-mirabox-tld-12 ehci_hcd
[    2.196358] usb usb1: SerialNumber: d0050000.usb
[    2.201511] hub 1-0:1.0: USB hub found
[    2.205303] hub 1-0:1.0: 1 port detected
[    2.210250] xhci_hcd 0000:02:00.0: xHCI Host Controller
[    2.215584] xhci_hcd 0000:02:00.0: new USB bus registered, assigned bus number 2
[    2.223172] xhci_hcd 0000:02:00.0: hcc params 0x200073a1 hci version 0x100 quirks 0x0000000000080010
[    2.232474] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.20
[    2.240306] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.247050] usb usb2: Product: xHCI Host Controller
[    2.251546] usb usb2: Manufacturer: Linux 4.20.6-mvebu-mirabox-tld-12 xhci-hcd
[    2.258280] usb usb2: SerialNumber: 0000:02:00.0
[    2.263438] hub 2-0:1.0: USB hub found
[    2.267232] hub 2-0:1.0: 2 ports detected
[    2.271718] xhci_hcd 0000:02:00.0: xHCI Host Controller
[    2.276871] xhci_hcd 0000:02:00.0: new USB bus registered, assigned bus number 3
[    2.283762] xhci_hcd 0000:02:00.0: Host supports USB 3.0  SuperSpeed
[    2.289823] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.297374] ata2: SATA link down (SStatus 0 SControl 300)
[    2.302663] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.20
[    2.310375] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.317119] ata3: SATA link down (SStatus 0 SControl F300)
[    2.322331] usb usb3: Product: xHCI Host Controller
[    2.326870] usb usb3: Manufacturer: Linux 4.20.6-mvebu-mirabox-tld-12 xhci-hcd
[    2.333549] usb usb3: SerialNumber: 0000:02:00.0
[    2.338635] hub 3-0:1.0: USB hub found
[    2.342331] hub 3-0:1.0: 2 ports detected
[    2.347639] usbcore: registered new interface driver usblp
[    2.353446] usbcore: registered new interface driver usb-storage
[    2.359803] mousedev: PS/2 mouse device common for all mice
[    2.366775] i2c /dev entries driver
[    2.373902] rtc-ds1307 0-0068: 'wakeup-source' is set, request for an IRQ is disabled!
[    2.385848] rtc-ds1307 0-0068: registered as rtc0
[    2.416508] orion_wdt: Initial timeout 229 sec
[    2.471219] marvell-cesa d0090000.crypto: CESA device successfully registered
[    2.478725] hidraw: raw HID events driver (C) Jiri Kosina
[    2.484791] usbcore: registered new interface driver usbhid
[    2.490043] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 300)
[    2.496255] usbhid: USB HID core driver
[    2.500350] drop_monitor: Initializing network drop monitor service
[    2.506267] ata1.00: ATA-7: ST940210AS, 3.ALC, max UDMA/100
[    2.511404] ata1.00: 78140160 sectors, multi 0: LBA48 NCQ (depth 32)
[    2.518155] NET: Registered protocol family 10
[    2.528119] ata1.00: configured for UDMA/100
[    2.533732] Segment Routing with IPv6
[    2.537613] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.544022] scsi 0:0:0:0: Direct-Access     ATA      ST940210AS       C    PQ: 0 ANSI: 5
[    2.554918] NET: Registered protocol family 17
[    2.562827] sd 0:0:0:0: [sda] 78140160 512-byte logical blocks: (40.0 GB/37.3 GiB)
[    2.572710] 8021q: 802.1Q VLAN Support v1.8
[    2.576934] Key type dns_resolver registered
[    2.581147] ThumbEE CPU extension supported.
[    2.585347] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    2.592136] sd 0:0:0:0: [sda] Write Protect is off
[    2.597167] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.605755] Registering SWP/SWPB emulation handler
[    2.612568] registered taskstats version 1
[    2.620543] Loading compiled-in X.509 certificates
[    2.625279] zswap: loaded using pool lzo/zbud
[    2.671842] Key type big_key registered
[    2.697111] Key type encrypted registered
[    2.705807] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[    2.714723] rtc-ds1307 0-0068: setting system clock to 2020-08-24 06:31:58 UTC (1598250718)
[    2.787069]  sda: sda1 sda2 sda3
[    2.795274] sd 0:0:0:0: [sda] Attached SCSI removable disk
[    2.803101] Freeing unused kernel memory: 1024K
[    2.808656] usb 1-1: New USB device found, idVendor=0781, idProduct=5583, bcdDevice= 1.00
[    2.816504] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.823091] usb 1-1: Product: Ultra Fit
[    2.828406] Checked W+X mappings: passed, no W+X pages found
[    2.833640] Run /init as init process
[    2.837186] usb 1-1: Manufacturer: SanDisk
[    2.840972] usb 1-1: SerialNumber: MASKED
[    2.853660] usb-storage 1-1:1.0: USB Mass Storage device detected
[    2.884341] scsi host3: usb-storage 1-1:1.0
Loading, please wait...
starting version 232
[    3.052134] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    3.076464] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    3.083233] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    3.947254] scsi 3:0:0:0: Direct-Access     SanDisk  Ultra Fit        1.00 PQ: 0 ANSI: 6
[    3.980890] sd 3:0:0:0: [sdb] 30031872 512-byte logical blocks: (15.4 GB/14.3 GiB)
[    4.000607] sd 3:0:0:0: [sdb] Write Protect is off
[    4.022131] sd 3:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    4.075184]  sdb: sdb1
[    4.091463] sd 3:0:0:0: [sdb] Attached SCSI removable disk
[    6.260978] random: fast init done
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Warning: fsck not present, so skipping root file system
[   17.029775] EXT4-fs (sdb1): mounting ext3 file system using the ext4 subsystem
[   17.060891] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
[   17.904440] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
[   17.922110] systemd[1]: Detected architecture arm.

Welcome to Debian GNU/Linux 9 (stretch)!

[   17.957634] systemd[1]: Set hostname to <debian>.
[   19.436835] systemd[1]: Listening on LVM2 metadata daemon socket.
[  OK  ] Listening on LVM2 metadata daemon socket.
[   19.476077] systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
[   19.515708] systemd[1]: Reached target Swap.
[  OK  ] Reached target Swap.
[   19.547454] systemd[1]: Created slice System Slice.
[  OK  ] Created slice System Slice.
[   19.587163] systemd[1]: Created slice User and Session Slice.
[  OK  ] Created slice User and Session Slice.
[   19.625908] systemd[1]: Listening on udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
[   19.670871] systemd[1]: Mounting RPC Pipe File System...
         Mounting RPC Pipe File System...
[  OK  ] Listening on Journal Audit Socket.
         Mounting NFSD configuration filesystem...
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
         Mounting POSIX Message Queue File System...
[  OK  ] Listening on Journal Socket.
         Starting Create Static Device Nodes in /dev...
         Mounting Debug File System...
         Starting Nameserver information manager...
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Created slice system-getty.slice.
[  OK  ] Listening on Syslog Socket.
[  OK  ] Listening on Device-mapper event daemon FIFOs.
         Starting Monitoring of LVM2 mirrors…ng dmeventd or progress polling...
         Starting Journal Service...
[  OK  ] Set up automount Arbitrary Executab…rmats File System Automount Point.
[  OK  ] Listening on udev Control Socket.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Reached target Encrypted Volumes.
[  OK  ] Reached target Slices.
[  OK  ] Listening on LVM2 poll daemon socket.
         Starting Load Kernel Modules...
[  OK  ] Listening on RPCbind Server Activation Socket.
[  OK  ] Listening on fsck to fsckd communication Socket.
         Starting File System Check on Root Device...
[  OK  ] Mounted NFSD configuration filesystem.
[  OK  ] Mounted RPC Pipe File System.
[  OK  ] Mounted Debug File System.
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Started Create Static Device Nodes in /dev.
[  OK  ] Started Load Kernel Modules.
[  OK  ] Started Nameserver information manager.
[  OK  ] Started File System Check Daemon to report status.
[  OK  ] Started LVM2 metadata daemon.
         Starting Apply Kernel Variables...
         Starting udev Kernel Device Manager...
         Starting pNFS block layout mapping daemon...
[  OK  ] Started File System Check on Root Device.
[  OK  ] Started Apply Kernel Variables.
         Starting Remount Root and Kernel File Systems...
[  OK  ] Started Journal Service.
[  OK  ] Started pNFS block layout mapping daemon.
[   21.672156] EXT4-fs (sdb1): re-mounted. Opts: errors=remount-ro
[  OK  ] Started udev Kernel Device Manager.
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Started Monitoring of LVM2 mirrors,…sing dmeventd or progress polling.
         Starting Flush Journal to Persistent Storage...
         Starting Load/Save Random Seed...
         Starting udev Coldplug all Devices...
[  OK  ] Reached target Local File Systems (Pre).
         Mounting /tmp...
         Starting Initial Check File System Quotas...
[  OK  ] Mounted /tmp.
[  OK  ] Started Load/Save Random Seed.
[   22.421767] systemd-journald[1471]: Received request to flush runtime journal from PID 1
[  OK  ] Started Flush Journal to Persistent Storage.
[   22.676336] random: crng init done
[   22.679492] random: 7 urandom warning(s) missed due to ratelimiting
[  OK  ] Reached target Local File Systems.
         Starting Cleanup PHP session files...
         Starting Cleanup monit state file...
         Starting Create Volatile Files and Directories...
         Starting Raise network interfaces...
         Starting Preprocess NFS configuration...
[  OK  ] Started Initial Check File System Quotas.
[  OK  ] Started Cleanup PHP session files.
[  OK  ] Started Cleanup monit state file.
[  OK  ] Started Preprocess NFS configuration.
[  OK  ] Reached target NFS client services.
         Starting NFSv4 ID-name mapping service...
[  OK  ] Started Create Volatile Files and Directories.
[  OK  ] Reached target System Time Synchronized.
         Starting RPC bind portmap service...
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Started NFSv4 ID-name mapping service.
[  OK  ] Started RPC bind portmap service.
[  OK  ] Reached target RPC Port Mapper.
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Started udev Coldplug all Devices.
[  OK  ] Reached target System Initialization.
[  OK  ] Listening on Avahi mDNS/DNS-SD Stack Activation Socket.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Started ACPI Events Check.
[  OK  ] Reached target Paths.
[  OK  ] Started Trigger anacron every hour.
[  OK  ] Listening on ACPID Listen Socket.
[  OK  ] Started Clean PHP session files every 30 mins.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Basic System.
[  OK  ] Started Regular background program processing daemon.
[  OK  ] Started ACPI event daemon.
[  OK  ] Started Run anacron jobs.
         Starting RPC Remote Quota Server...
         Starting System Logging Service...
[  OK  ] Started Self Monitoring and Reporting Technology (SMART) Daemon.
[  OK  ] Started D-Bus System Message Bus.
         Starting Login Service...
         Starting Avahi mDNS/DNS-SD Stack...
[  OK  ] Started System Logging Service.
[  OK  ] Found device /dev/ttyS0.
[  OK  ] Started Avahi mDNS/DNS-SD Stack.
[  OK  ] Started Login Service.
[  OK  ] Started RPC Remote Quota Server.
[   28.581108] mvneta d0074000.ethernet eth0: PHY [d0072004.mdio-mii:00] driver [Marvell 88E1318S]
[   28.598658] mvneta d0074000.ethernet eth0: configuring for phy/rgmii-id link mode
[  OK  ] Found device /sys/subsystem/net/devices/eth0.
[  OK  ] Started ifup for eth0.
[   30.665815] mvneta d0074000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[  OK  ] Started Raise network interfaces.
[  OK  ] Reached target Network.
         Starting A high performance web server and a reverse proxy server...
         Starting The OpenMediaVault engine … that processes the RPC request...
         Starting The PHP 7.0 FastCGI Process Manager...
         Starting NFS Mount Daemon...
         Starting OpenBSD Secure Shell server...
[  OK  ] Reached target Network is Online.
         Starting Generate the prelogin message...
         Starting /etc/rc.local Compatibility...
[  OK  ] Started Daily apt download activities.
[  OK  ] Started Daily apt upgrade and clean activities.
[  OK  ] Reached target Timers.
[  OK  ] Started /etc/rc.local Compatibility.
[  OK  ] Started NFS Mount Daemon.
         Starting NFS server and services...
[  OK  ] Started OpenBSD Secure Shell server.
[   43.352338] NFSD: starting 45-second grace period (net f0000021)
[  OK  ] Started NFS server and services.
[  OK  ] Reached target Remote File Systems (Pre).
[  OK  ] Reached target Remote File Systems.
         Starting LSB: Start NTP daemon...
         Starting LSB: Starts syslogd...
         Starting Permit User Sessions...
         Starting LSB: Load kernel modules needed to enable cpufreq scaling...
         Starting LSB: Starts ProFTPD daemon...
         Starting LSB: start or stop rrdcached...
         Starting LSB: service and resource monitoring daemon...
[  OK  ] Started The OpenMediaVault engine d…on that processes the RPC request.
[  OK  ] Started LSB: Starts syslogd.
[  OK  ] Started Permit User Sessions.
[  OK  ] Started The PHP 7.0 FastCGI Process Manager.
[  OK  ] Started Getty on tty1.
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Reached target Login Prompts.
         Starting LSB: Starts klogd...
[  OK  ] Started LSB: service and resource monitoring daemon.
[  OK  ] Started LSB: Starts klogd.
[  OK  ] Started A high performance web server and a reverse proxy server.
[  OK  ] Started LSB: start or stop rrdcached.
         Starting Statistics collection and monitoring daemon...
[  OK  ] Started LSB: Load kernel modules needed to enable cpufreq scaling.
         Starting LSB: set CPUFreq kernel parameters...
[  OK  ] Started LSB: Starts ProFTPD daemon.
[  OK  ] Started LSB: set CPUFreq kernel parameters.
[  OK  ] Started Statistics collection and monitoring daemon.
[  OK  ] Started LSB: Start NTP daemon.
[  OK  ] Started Generate the prelogin message.
[  OK  ] Reached target Multi-User System.
         Starting Beep after system start...
         Starting watchdog daemon...
[FAILED] Failed to start watchdog daemon.
See 'systemctl status watchdog.service' for details.
         Starting watchdog keepalive daemon...
[  OK  ] Reached target Graphical Interface.
         Starting Update UTMP about System Runlevel Changes...
[FAILED] Failed to start watchdog keepalive daemon.
See 'systemctl status wd_keepalive.service' for details.
[  OK  ] Started Beep after system start.
[  OK  ] Started Update UTMP about System Runlevel Changes.
[   50.517702] fbcon: Taking over console

openmediavault 4.1.35-1 (Arrakis) debian ttyS0
Copyright (C) 2009-2020 by Volker Theile. All rights reserved.

To manage the system visit the openmediavault web control panel:

eth0: 192.168.1.218

By default the web control panel administrator account has the
username 'admin' and password 'openmediavault'.
It is recommended that you change the password for this account
within the web control panel or using the 'omv-firstaid' CLI
command.

For more information regarding this appliance, please visit the
web site: https://www.openmediavault.org

debian login: root
Password:
Last login: Sun Aug 23 23:17:56 PDT 2020 on ttyS0
Linux debian 4.20.6-mvebu-mirabox-tld-12 #6 SMP PREEMPT Wed Mar 13 14:43:16 PDT 2019 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.
debian
192.168.1.218
NETGEAR ReadyNAS 102
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
Debian 9.1
Sun Aug 23 23:32:55 PDT 2020 up
root@debian:~# fw_printenv
AC_Power_fail_detect=open
CASset=min
HW_version=MVT
MALLOC_len=5
Manufacturer=NETGEAR
Product=ReadyNAS 102
SKUNum=RN102
SerialNum=MASKED
Startup=Normal
UUID=adaf7396-2c8f-11e5-81d4-e8fcafe67a08
Version=V1.0
autoload=no
bootargs=console=ttyS0,115200
bootargs_end=:10.4.50.254:255.255.255.0:KW40:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=nand read 0x2000000 0x200000 0x400000; nand read 0x3000000 0x800000 0x400000; bootm 0x2000000 0x3000000 0x1000000
bootcmd_fdt=tftpboot 0x2000000 $image_name;tftpboot $fdtaddr $fdtfile;setenv bootargs $console $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_ubi=ubi part ubifs; ubifsmount rootfs; ubifsload 0x2000000 kernel; ubifsload 0x3000000 initrd.gz; bootm 0x2000000 0x3000000 0x1000000
bootdelay=0
cacheShare=no
console=console=ttyS0,115200
disL2Cache=yes
disaMvPnp=no
eeeEnable=no
enaAutoRecovery=yes
enaClockGating=yes
enaExtDisk=no
enaFPU=no
enaMonExt=no
enaWrAllo=no
envver=3
eth1addr=MASKED
eth1mtu=1500
ethact=egiga1
ethaddr=MASKED
ethmtu=1500
ethprime=egiga1
fdt_skip_update=no
fdtaddr=0x1000000
fdtfile=armada-370-db.dtb
image_name=uImage
initrd_name=uInitrd
load_addr=0x02000000
loadaddr=0x02000000
mtdids=nand0=armada-nand
mtdparts=mtdparts=armada-nand:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x400000@0x800000(minirootfs),-(ubifs)
mvNetConfig=mv_net_config=1,(00:50:43:11:11:11,0:1:2:3:4),mtu=1500
mv_pon_addr=MASKED
nandEcc=1bit
netbsd_en=no
netretry=no
pcieTune=no
pexMode=rc
pxe_files_load=:default.arm-armada370-db:default.arm-armadaxp:default.arm
pxefile_addr_r=3100000
rcvrip=169.254.100.100
sata_delay_reset=0
sata_dma_mode=yes
setL2CacheWT=no
standalone=fsload $load_addr $image_name;setenv bootargs $console $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm $load_addr;
stderr=serial
stdin=serial
stdout=serial
usb0Mode=host
usb1Mode=host
usb2Mode=device
usbActive=0
vxworks_en=no
yuk_ethaddr=MASKED
test_rn102=yes
root@debian:~# fw_setenv test_rn102
root@debian:~# fw_printenv
AC_Power_fail_detect=open
CASset=min
HW_version=MVT
MALLOC_len=5
Manufacturer=NETGEAR
Product=ReadyNAS 102
SKUNum=RN102
SerialNum=MASKED
Startup=Normal
UUID=adaf7396-2c8f-11e5-81d4-e8fcafe67a08
Version=V1.0
autoload=no
bootargs=console=ttyS0,115200
bootargs_end=:10.4.50.254:255.255.255.0:KW40:eth0:none
bootargs_root=root=/dev/nfs rw
bootcmd=nand read 0x2000000 0x200000 0x400000; nand read 0x3000000 0x800000 0x400000; bootm 0x2000000 0x3000000 0x1000000
bootcmd_fdt=tftpboot 0x2000000 $image_name;tftpboot $fdtaddr $fdtfile;setenv bootargs $console $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr;
bootcmd_ubi=ubi part ubifs; ubifsmount rootfs; ubifsload 0x2000000 kernel; ubifsload 0x3000000 initrd.gz; bootm 0x2000000 0x3000000 0x1000000
bootdelay=0
cacheShare=no
console=console=ttyS0,115200
disL2Cache=yes
disaMvPnp=no
eeeEnable=no
enaAutoRecovery=yes
enaClockGating=yes
enaExtDisk=no
enaFPU=no
enaMonExt=no
enaWrAllo=no
envver=3
eth1addr=MASKED
eth1mtu=1500
ethact=egiga1
ethaddr=MASKED
ethmtu=1500
ethprime=egiga1
fdt_skip_update=no
fdtaddr=0x1000000
fdtfile=armada-370-db.dtb
image_name=uImage
initrd_name=uInitrd
load_addr=0x02000000
loadaddr=0x02000000
mtdids=nand0=armada-nand
mtdparts=mtdparts=armada-nand:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x400000@0x800000(minirootfs),-(ubifs)
mvNetConfig=mv_net_config=1,(00:50:43:11:11:11,0:1:2:3:4),mtu=1500
mv_pon_addr=MASKED
nandEcc=1bit
netbsd_en=no
netretry=no
pcieTune=no
pexMode=rc
pxe_files_load=:default.arm-armada370-db:default.arm-armadaxp:default.arm
pxefile_addr_r=3100000
rcvrip=169.254.100.100
sata_delay_reset=0
sata_dma_mode=yes
setL2CacheWT=no
standalone=fsload $load_addr $image_name;setenv bootargs $console $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm $load_addr;
stderr=serial
stdin=serial
stdout=serial
usb0Mode=host
usb1Mode=host
usb2Mode=device
usbActive=0
vxworks_en=no
yuk_ethaddr=MASKED
root@debian:~#

Will this box needs anything to be tested left bodhi?I can test it before actually using as a home nas server.
BTW:I have a one week trip from today, so i will be away from box, later that i can test if anything needed.
Regards.
Re: Debian on Netgear RN102
August 24, 2020 05:22AM
All,

Looks very good! We are almost done with this box. Except LEDs control and RTC.

1. It seems that this box or the RN104 has RTC. But it is not activated by the DTS (not sure the reason). So if you know from the specs that is indeed available, then we can revisit it sometime in the future (this is not that big a deal).

2. LEDs control.

In the rootfs /etc/rc.local, I have some LEDs control examples for other boxes. That should be used as a guide to set up your box.

So list the leds

ls -l /sys/class/leds

You should see the following LED names under the /sys/class/leds:
rn102:blue:pwr
rn102:blue:sata1
rn102:blue:sata2
rn102:blue:backup

And will be able to turn on/off the LEDs or make it flash.

The power LED should be set to ON after the kernel booted (/etc/rc.local).

echo default-on >  /sys/class/leds/rn102:blue:pwr/trigger


For the SATA LEDs, the setting should be set so that any read/write access will blink the LED:

echo ide-disk1  > /sys/class/leds/rn102:blue:sata1/trigger
echo ide-disk2  > /sys/class/leds/rn102:blue:sata2/trigger

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



Edited 1 time(s). Last edit at 08/24/2020 05:58AM by bodhi.
tme
Re: Debian on Netgear RN102
August 25, 2020 03:14PM
Hi bodhi,

Reunited with my box. I can confirm whitepawn's findings on the mtd partitions. My test session listing is attached as a file.

I wondered if u-boot would find a USB-stick on the USB3 connectors at the back if the stick was USB2, so I tried this. It made no difference.

A working real-time clock to wake up the NAS after a power failure is important, since the unit does not boot at power up until the Power button is pushed. The first time I booted my ReadyNAS RN102 (before modifying the boot environment and adding a USB-stick), I got this on the console:

Marvell>> boot

NAND read: device 0 offset 0x200000, size 0x400000
 4194304 bytes read: OK

NAND read: device 0 offset 0x800000, size 0x400000
 4194304 bytes read: OK
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-4.4.140.armada.1
   Created:      2018-07-17  15:56:09 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3478912 Bytes = 3.3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 03000000 ...
   Image Name:   initramfs
   Created:      2018-09-02   7:12:34 UTC
   Image Type:   ARM Linux RAMDisk Image (lzma compressed)
   Data Size:    3390695 Bytes = 3.2 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x01000000
   Loading Kernel Image ... OK
   Using Ramdisk in place at 03000040, end 0333bd27
   Using Device Tree in place at 01000000, end 01006617
Updating device tree successful

Starting kernel ...

[    4.072201] rtc-isl12057 0-0068: _isl12057_rtc_read_time: oscillator failure bit set, continuing anyway
[    4.084075] rtc-isl12057 0-0068: _isl12057_rtc_read_time: oscillator failure bit set, continuing anyway
[    4.095438] rtc-isl12057 0-0068: _isl12057_rtc_read_time: oscillator failure bit set, continuing anyway
[    4.150062] rtc-isl12057 0-0068: _isl12057_rtc_read_time: oscillator failure bit set, continuing anyway

Starting the boot process...
Detected system type: RN102
Loading kernel modules...done
Boot mode: Normal
UBI device number 0, total 918 LEBs (116563968 bytes, 111.2 MiB), available 9 LEBs (1142784 bytes, 1.1 MiB), LEB size 126976 bytes)
Bringing up network...done
Bringing up RAID arrays...done
e2fsck 1.42.13 (17-May-2015)
0e347394_root: clean, 11164/1048576 files, 158729/1047552 blocks
Switching root to RAID device.


Welcome to ReadyNASOS 6.9.4!

So the stock kernel initializes a 'rtc-isl12057'. The complaints were triggered by an empty RTC battery, I assume. The device tree source file 'armada-370-netgear-rn102.dts' sais 'rtc@10300 { status = "disabled"; };', but further down, under 'i2c@11000', you find 'isl12057: rtc@68 { compatible = "isil,isl12057"; reg = <0x68>; wakeup-source; };'. The first entry was added and disabled by this commit

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/arch/arm/boot/dts/armada-370-netgear-rn102.dts?id=784693def2d36f525d2d259394fd39ac87fc4449

The commit message is
By default, armada-370-xp.dtsi file has internal RTC enabled.
NETGEAR ReadyNAS 102, 104 and 2120 all use an Intersil ISL12057
I2C RTC chip. The internal RTC not being disabled in the .dts
files of those devices result in the following useless first
line during boot:

[    4.500056] rtc-mv d0010300.rtc: internal RTC not ticking
[    4.505684] i2c /dev entries driver
[    4.513246] rtc-isl12057 0-0068: rtc core: registered rtc-isl12057 as rtc0

This patch marks Armada internal RTC as disabled in individual .dts
files of those devices.

So the disabled rtc@10300 is an RTC without wake-up capability internal to the Armada 370 SoC.

I tested you LED suggestions. Spot on! With one exception: The initial state of all the LEDs is 'on', but, apparently, the shadow variables of the driver are initially off:

echo none       > /sys/class/leds/rn102:blue:pwr/trigger                                                             
echo none       > /sys/class/leds/rn102:blue:pwr/trigger
echo default-on > /sys/class/leds/rn102:blue:pwr/trigger
echo none       > /sys/class/leds/rn102:blue:pwr/trigger

Only after the last command the Power LED is switched off. The first two commands makes no difference. The other LEDs behave the same. A workaround in user-land is easy, but fixing the driver is better.

In the device tree source file 'armada-370-netgear-rn102.dts' the 'default-state' is 'keep' for the Power LED, and 'on' for the others. This seems correct, so where does this go wrong? After connecting power and before hitting the power button, this is the output from u-boot on the console:

BootROM 1.08
Booting from NAND flash


General initialization - Version: 1.0.0

High speed PHY - Version: 2.1.4 (COM-PHY-V20) 
Update PEX Device ID 0x6710
High speed PHY - Ended Successfully
0001
DDR3 Training Sequence - Ver 5.7.1
DDR3 Training Sequence - Run without PBS.
DDR3 Training Sequence - Ended Successfully 
BootROM: Image checksum verification PASSED

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


U-Boot 2011.12-gec25d27-dirty (Oct 26 2015 - 16:53:05) Marvell version: v2011.12 2014_T2.0p1 
06/23/2015 ReadyNAS-102 V2.0

Board: DB-88F6710-BP
SoC:   MV6710 A1
CPU:   Marvell PJ4B v7 UP (Rev 1) LE
       CPU    @ 1200 [MHz]
       L2     @ 600 [MHz]
       TClock @ 200 [MHz]
       DDR    @ 600 [MHz]
       DDR 16Bit Width, FastPath Memory Access
DRAM:  512 MiB

Map:   Code:            0x1feef000:0x1ff9ef34
       BSS:             0x1ffef0a0
       Stack:           0x1f9eeef8
       Heap:            0x1f9ef000:0x1feef000

NAND:  (ID 0xf1ad)      128 MiB
MMC:   MRVL_MMC: 0
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01
nand_read_bbt: Bad block at 0x000001820000
nand_read_bbt: Bad block at 0x000001f00000

Initialize and scan all PCI interfaces
PEX unit.port(active IF[-first bus]):
------------------------------------------
PEX 0: Root Complex Interface, Detected Link X1, GEN 2.0
PEX 1: Root Complex Interface, Detected Link X1, GEN 2.0
FPU not initialized
USB 0: Host Mode
USB 1: Host Mode
Shutting down unused interfaces:
       GBE0
       SDIO
       AUDIO
       TDM
Modules/Interfaces Detected:
       RGMII1 Phy
       PEX0 (Lane 0)
       PEX1 (Lane 1)
       SATA0 (Lane 2)
       SATA1 (Lane 3)
Net:   , egiga1 [PRIME]
Power supply plug on, please press power button!

At this stage, all the LEDs are off. Hitting the power button and interrupting u-boot, this is added to the console:

BootROM 1.08
Booting from NAND flash


General initialization - Version: 1.0.0

High speed PHY - Version: 2.1.4 (COM-PHY-V20) 
Update PEX Device ID 0x6710
High speed PHY - Ended Successfully
0000
DDR3 Training Sequence - Ver 5.7.1
DDR3 Training Sequence - Run without PBS.
DDR3 Training Sequence - Ended Successfully 
BootROM: Image checksum verification PASSED

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


U-Boot 2011.12-gec25d27-dirty (Oct 26 2015 - 16:53:05) Marvell version: v2011.12 2014_T2.0p1 
06/23/2015 ReadyNAS-102 V2.0

Board: DB-88F6710-BP
SoC:   MV6710 A1
CPU:   Marvell PJ4B v7 UP (Rev 1) LE
       CPU    @ 1200 [MHz]
       L2     @ 600 [MHz]
       TClock @ 200 [MHz]
       DDR    @ 600 [MHz]
       DDR 16Bit Width, FastPath Memory Access
DRAM:  512 MiB

Map:   Code:            0x1feef000:0x1ff9ef34
       BSS:             0x1ffef0a0
       Stack:           0x1f9eeef8
       Heap:            0x1f9ef000:0x1feef000

NAND:  (ID 0xf1ad)      128 MiB
MMC:   MRVL_MMC: 0
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01
nand_read_bbt: Bad block at 0x000001820000
nand_read_bbt: Bad block at 0x000001f00000

Initialize and scan all PCI interfaces
PEX unit.port(active IF[-first bus]):
------------------------------------------
PEX 0: Root Complex Interface, Detected Link X1, GEN 2.0
PEX 1: Root Complex Interface, Detected Link X1, GEN 2.0
FPU not initialized
USB 0: Host Mode
USB 1: Host Mode
Shutting down unused interfaces:
       GBE0
       SDIO
       AUDIO
       TDM
Modules/Interfaces Detected:
       RGMII1 Phy
       PEX0 (Lane 0)
       PEX1 (Lane 1)
       SATA0 (Lane 2)
       SATA1 (Lane 3)
Net:   , egiga1 [PRIME]
Power On!

FDT loaded successfully
Hit any key to stop autoboot:  0 
Marvell>>

Now the Power LED is blinking at, say, 2 Hz. The Backup LED is off. The Sata1 and Sata2 LEDs are on if the corresponding disk slot is occupied, otherwise they are off.

During boot, all the LEDs are switched on. Trying to find out when this happens, I disconnected the power cable as soon as the LEDs where switched on. Before loosing power, the console said:

Marvell>> boot
(Re)start USB...
USB:   Active port:     0
Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 2 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
4076885 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 (usbda1)
8717087 bytes read
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-4.20.6-mvebu-mirabox-tld-1
   Created:      2020-08-21  19:33:05 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4076821 Bytes = 3.9 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 03000000 ...
   Image Name:   initramfs-4.20.6-mvebu-tld-1
   Created:      2020-08-22   9:41:36 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    8717023 Bytes = 8.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... 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: NETGEAR ReadyNAS 102
[    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: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=pxa3xx_nand-0:0x180000@0(u-boot),0
x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x400000@0x800000(minirootfs),-(ubifs) earlyprintk=serial mtdparts=pxa3xx_nan
d-0:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x400000@0x800000(minirootfs),-(ubifs) reason=normal 
bdtype=rn102
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 497756K/524288K available (8192K kernel code, 731K rwdata, 2072K rodata, 1024K init, 320K bss, 26532K reserv
ed, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 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 114537122277ns
[    0.007239] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 101938038664 ns
[    0.018006] Console: colour dummy device 80x30
[    0.022090] Calibrating delay loop (skipped), value calculated using timer frequency.. 37.49 BogoMIPS (lpj=187492)
[    0.031582] pid_max: default: 32768 minimum: 301
[    0.035962] LSM: Security Framework initializing
[    0.040287] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.046331] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.053619] CPU: Testing write buffer coherency: ok
[    0.058440] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.117367] Setting up static identity map for 0x100000 - 0x100060
[    0.123335] mvebu-soc-id: MVEBU SoC ID=0x6710, Rev=0x1
[    0.128190] mvebu-pmsu: Initializing Power Management Service Unit
[    0.147298] rcu: Hierarchical SRCU implementation.
[    0.187299] smp: Bringing up secondary CPUs ...
[    0.191444] smp: Brought up 1 node, 1 CPU
[    0.195104] SMP: Total of 1 processors activated (37.49 BogoMIPS).
[    0.200774] CPU: All CPU(s) started in SVC mode.
[    0.205794] devtmpfs: initialized
[    0.217547] VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 6
[    0.225108] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.234398] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.240294] prandom: seed boundary self test passed
[    0.247191] prandom: 100 self tests passed
[    0.251111] pinctrl core: initialized pinctrl subsystem
[    0.258050] NET: Registered protocol family 16
[    0.262853] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.270399] audit: initializing netlink subsys (disabled)
[    0.275654] audit: type=2000 audit(0.250:1): state=initialized audit_enabled=0 res=1
[    0.284711] cpuidle: using governor ladder
[    0.289658] cpuidle: using governor menu
[    0.293497] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.388341] vgaarb: loaded
[    0.391156] SCSI subsystem initialized
[    0.398072] usbcore: registered new interface driver usbfs
[    0.403129] usbcore: registered new interface driver hub
[    0.409467] usbcore: registered new device driver usb
[    0.415183] pps_core: LinuxPPS API ver. 1 registered
[    0.420289] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.428867] PTP clock support registered
[    0.434995] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.496142] VFS: Disk quotas dquot_6.6.0
[    0.499804] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.531367] NET: Registered protocol family 2
[    0.537221] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.544227] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.551073] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.557156] TCP: Hash tables configured (established 4096 bind 4096)
[    0.563080] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.568484] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.574417] NET: Registered protocol family 1
[    0.609303] RPC: Registered named UNIX socket transport module.
[    0.614712] RPC: Registered udp transport module.
[    0.619096] RPC: Registered tcp transport module.
[    0.623390] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.629513] Unpacking initramfs...
[    1.114703] Freeing initrd memory: 8516K
[    1.118641] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.124951] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    1.135623] Initialise system trusted keyrings
[    1.139720] Key type blacklist registered
[    1.144838] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    1.150976] zbud: loaded
[    1.164283] NFS: Registering the id_resolver key type
[    1.169142] Key type id_resolver registered
[    1.172961] Key type id_legacy registered
[    1.176734] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.182850] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.318115] Key type asymmetric registered
[    1.321864] Asymmetric key parser 'x509' registered
[    1.326754] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    1.333516] io scheduler noop registered
[    1.337346] io scheduler deadline registered
[    1.341289] io scheduler cfq registered (default)
[    1.348192] armada-370-pinctrl d0018000.pin-ctrl: registered pinctrl driver
[    1.362838] mvebu-pcie soc:pcie@82000000: PCI host bridge to bus 0000:00
[    1.369411] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.374424] pci_bus 0000:00: root bus resource [mem 0xf8000000-0xffdfffff]
[    1.381052] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    1.388916] PCI: bus0: Fast back to back transfers disabled
[    1.394017] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.401629] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.409928] pci 0000:00:01.0: ASPM: current common clock configuration is broken, reconfiguring
[    1.446120] PCI: bus1: Fast back to back transfers disabled
[    1.452079] pci 0000:00:02.0: ASPM: current common clock configuration is broken, reconfiguring
[    1.486119] PCI: bus2: Fast back to back transfers disabled
[    1.491305] pci 0000:00:01.0: BAR 14: assigned [mem 0xf8000000-0xf80fffff]
[    1.497658] pci 0000:00:01.0: BAR 15: assigned [mem 0xf8100000-0xf81fffff pref]
[    1.504333] pci 0000:00:02.0: BAR 14: assigned [mem 0xf8200000-0xf82fffff]
[    1.510657] pci 0000:00:01.0: BAR 13: assigned [io  0x10000-0x10fff]
[    1.516505] pci 0000:00:01.0: BAR 6: assigned [mem 0xf8300000-0xf83007ff pref]
[    1.523101] pci 0000:00:02.0: BAR 6: assigned [mem 0xf8400000-0xf84007ff pref]
[    1.529723] pci 0000:01:00.0: BAR 6: assigned [mem 0xf8100000-0xf810ffff pref]
[    1.536335] pci 0000:01:00.0: BAR 5: assigned [mem 0xf8000000-0xf80001ff]
[    1.542536] pci 0000:01:00.0: BAR 4: assigned [io  0x10000-0x1000f]
[    1.548278] pci 0000:01:00.0: BAR 0: assigned [io  0x10010-0x10017]
[    1.554003] pci 0000:01:00.0: BAR 2: assigned [io  0x10018-0x1001f]
[    1.559745] pci 0000:01:00.0: BAR 1: assigned [io  0x10020-0x10023]
[    1.565486] pci 0000:01:00.0: BAR 3: assigned [io  0x10024-0x10027]
[    1.571210] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.575760] pci 0000:00:01.0:   bridge window [io  0x10000-0x10fff]
[    1.581486] pci 0000:00:01.0:   bridge window [mem 0xf8000000-0xf80fffff]
[    1.587700] pci 0000:00:01.0:   bridge window [mem 0xf8100000-0xf81fffff pref]
[    1.594300] pci 0000:02:00.0: BAR 0: assigned [mem 0xf8200000-0xf820ffff 64bit]
[    1.600997] pci 0000:02:00.0: BAR 2: assigned [mem 0xf8210000-0xf8210fff 64bit]
[    1.607694] pci 0000:02:00.0: BAR 4: assigned [mem 0xf8211000-0xf8211fff 64bit]
[    1.614373] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.618924] pci 0000:00:02.0:   bridge window [mem 0xf8200000-0xf82fffff]
[    1.625253] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[    1.631100] pcieport 0000:00:02.0: enabling device (0140 -> 0142)
[    1.638021] mv_xor d0060800.xor: Marvell shared XOR driver
[    1.706124] mv_xor d0060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.713276] mv_xor d0060900.xor: Marvell shared XOR driver
[    1.776125] mv_xor d0060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.940494] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.951006] printk: console [ttyS0] disabled
[    1.976458] d0012000.serial: ttyS0 at MMIO 0xd0012000 (irq = 19, base_baud = 12500000) is a 16550A
[    1.984707] printk: console [ttyS0] enabled
[    1.984707] printk: console [ttyS0] enabled
[    1.992608] printk: bootconsole [earlycon0] disabled
[    1.992608] printk: bootconsole [earlycon0] disabled
[    2.003711] ahci 0000:01:00.0: enabling device (0146 -> 0147)
[    2.010036] ahci 0000:01:00.0: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
[    2.017590] ahci 0000:01:00.0: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    2.037919] scsi host0: ahci
[    2.051570] scsi host1: ahci
[    2.054686] ata1: SATA max UDMA/133 abar m512@0xf8000000 port 0xf8000100 irq 42
[    2.061719] ata2: SATA max UDMA/133 abar m512@0xf8000000 port 0xf8000180 irq 42
[    2.069440] sata_mv d00a0000.sata: slots 32 ports 1
[    2.085331] scsi host2: sata_mv
[    2.088679] ata3: SATA max UDMA/133 irq 27
[    2.093993] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    2.100101] nand: Hynix H27U1G8F2BTR-BC
[    2.103641] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    2.111483] Bad block table found at page 65472, version 0x01
[    2.117708] Bad block table found at page 65408, version 0x01
[    2.123166] nand_read_bbt: bad block at 0x000001820000
[    2.127982] nand_read_bbt: bad block at 0x000001f00000
[    2.132774] 5 cmdlinepart partitions found on MTD device pxa3xx_nand-0
[    2.138870] Creating 5 MTD partitions on "pxa3xx_nand-0":
[    2.143851] 0x000000000000-0x000000180000 : "u-boot"
[    2.150286] 0x000000180000-0x0000001a0000 : "u-boot-env"
[    2.157314] 0x000000200000-0x000000800000 : "uImage"
[    2.163914] 0x000000800000-0x000000c00000 : "minirootfs"
[    2.170945] 0x000000c00000-0x000008000000 : "ubifs"
[    2.182378] libphy: Fixed MDIO Bus: probed
[    2.190404] libphy: orion_mdio_bus: probed
[    2.202279] mvneta d0074000.ethernet eth0: Using random mac address 52:c8:ca:a2:a5:83
[    2.213661] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.220341] ehci-pci: EHCI PCI platform driver
[    2.224643] ehci-orion: EHCI orion driver
[    2.228972] orion-ehci d0050000.usb: EHCI Host Controller
[    2.233974] orion-ehci d0050000.usb: new USB bus registered, assigned bus number 1
[    2.241354] orion-ehci d0050000.usb: irq 25, io mem 0xd0050000
[    2.275007] orion-ehci d0050000.usb: USB 2.0 started, EHCI 1.00
[    2.280756] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.20
[    2.288456] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.295163] usb usb1: Product: EHCI Host Controller
[    2.299660] usb usb1: Manufacturer: Linux 4.20.6-mvebu-mirabox-tld-12 ehci_hcd
[    2.306381] usb usb1: SerialNumber: d0050000.usb
[    2.311548] hub 1-0:1.0: USB hub found
[    2.315333] hub 1-0:1.0: 1 port detected
[    2.320223] xhci_hcd 0000:02:00.0: xHCI Host Controller
[    2.325560] xhci_hcd 0000:02:00.0: new USB bus registered, assigned bus number 2
[    2.333146] xhci_hcd 0000:02:00.0: hcc params 0x200073a1 hci version 0x100 quirks 0x0000000000080010
[    2.342465] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.20
[    2.350302] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.357049] usb usb2: Product: xHCI Host Controller
[    2.361546] usb usb2: Manufacturer: Linux 4.20.6-mvebu-mirabox-tld-12 xhci-hcd
[    2.368283] usb usb2: SerialNumber: 0000:02:00.0
[    2.373438] hub 2-0:1.0: USB hub found
[    2.377233] hub 2-0:1.0: 2 ports detected
[    2.381717] xhci_hcd 0000:02:00.0: xHCI Host Controller
[    2.386868] xhci_hcd 0000:02:00.0: new USB bus registered, assigned bus number 3
[    2.393760] xhci_hcd 0000:02:00.0: Host supports USB 3.0  SuperSpeed
[    2.399699] ata2: SATA link down (SStatus 0 SControl 300)
[    2.404741] ata1: SATA link down (SStatus 0 SControl 300)
[    2.409885] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.417441] ata3: SATA link down (SStatus 0 SControl F300)
[    2.422833] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.20
[    2.430630] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.437392] usb usb3: Product: xHCI Host Controller
[    2.441889] usb usb3: Manufacturer: Linux 4.20.6-mvebu-mirabox-tld-12 xhci-hcd
[    2.448564] usb usb3: SerialNumber: 0000:02:00.0
[    2.453640] hub 3-0:1.0: USB hub found
[    2.457424] hub 3-0:1.0: 2 ports detected
[    2.462622] usbcore: registered new interface driver usblp
[    2.468490] usbcore: registered new interface driver usb-storage
[    2.474861] mousedev: PS/2 mouse device common for all mice
[    2.481628] i2c /dev entries driver
[    2.489244] rtc-ds1307 0-0068: 'wakeup-source' is set, request for an IRQ is disabled!
[    2.501074] rtc-ds1307 0-0068: registered as rtc0
[    2.536664] orion_wdt: Initial timeout 229 sec
[    2.595776] marvell-cesa d0090000.crypto: CESA device successfully registered
[    2.603091] hidraw: raw HID events driver (C) Jiri Kosina
[    2.609292] usbcore: registered new interface driver usbhid
[    2.614433] usbhid: USB HID core driver
[    2.619049] drop_monitor: Initializing network drop monitor service
[    2.625646] NET: Registered protocol family 10
[    2.640954] Segment Routing with IPv6
[    2.644410] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.652045] NET: Registered protocol family 17
[    2.667187] 8021q: 802.1Q VLAN Support v1.8
[    2.671168] Key type dns_resolver registered
[    2.675601] ThumbEE CPU extension supported.
[    2.679566] Registering SWP/SWPB emulation handler
[    2.685240] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    2.692849] registered taskstats version 1
[    2.697638] Loading compiled-in X.509 certificates
[    2.702269] zswap: loaded using pool lzo/zbud
[    2.752951] Key type big_key registered
[    2.780095] Key type encrypted registered
[    2.788906] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[    2.798570] rtc-ds1307 0-0068: setting system clock to 2020-08-25 18:28:16 UTC (1598380096)
[    2.809450] Freeing unused k

I did the same a second time, not interrupting u-boot this time:

Power supply plug on, please press power button!


BootROM 1.08
Booting from NAND flash


General initialization - Version: 1.0.0

High speed PHY - Version: 2.1.4 (COM-PHY-V20) 
Update PEX Device ID 0x6710
High speed PHY - Ended Successfully
0000
DDR3 Training Sequence - Ver 5.7.1
DDR3 Training Sequence - Run without PBS.
DDR3 Training Sequence - Ended Successfully 
BootROM: Image checksum verification PASSED

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


U-Boot 2011.12-gec25d27-dirty (Oct 26 2015 - 16:53:05) Marvell version: v2011.12 2014_T2.0p1 
06/23/2015 ReadyNAS-102 V2.0

Board: DB-88F6710-BP
SoC:   MV6710 A1
CPU:   Marvell PJ4B v7 UP (Rev 1) LE
       CPU    @ 1200 [MHz]
       L2     @ 600 [MHz]
       TClock @ 200 [MHz]
       DDR    @ 600 [MHz]
       DDR 16Bit Width, FastPath Memory Access
DRAM:  512 MiB

Map:   Code:            0x1feef000:0x1ff9ef34
       BSS:             0x1ffef0a0
       Stack:           0x1f9eeef8
       Heap:            0x1f9ef000:0x1feef000

NAND:  (ID 0xf1ad)      128 MiB
MMC:   MRVL_MMC: 0
Bad block table found at page 65472, version 0x01
Bad block table found at page 65408, version 0x01
nand_read_bbt: Bad block at 0x000001820000
nand_read_bbt: Bad block at 0x000001f00000

Initialize and scan all PCI interfaces
PEX unit.port(active IF[-first bus]):
------------------------------------------
PEX 0: Root Complex Interface, Detected Link X1, GEN 2.0
PEX 1: Root Complex Interface, Detected Link X1, GEN 2.0
FPU not initialized
USB 0: Host Mode
USB 1: Host Mode
Shutting down unused interfaces:
       GBE0
       SDIO
       AUDIO
       TDM
Modules/Interfaces Detected:
       RGMII1 Phy
       PEX0 (Lane 0)
       PEX1 (Lane 1)
       SATA0 (Lane 2)
       SATA1 (Lane 3)
Net:   , egiga1 [PRIME]
Power On!

FDT loaded successfully
Hit any key to stop autoboot:  0 
(Re)start USB...
USB:   Active port:     0
Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 2 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
4076885 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 (usbda1)
8717087 bytes read
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-4.20.6-mvebu-mirabox-tld-1
   Created:      2020-08-21  19:33:05 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4076821 Bytes = 3.9 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 03000000 ...
   Image Name:   initramfs-4.20.6-mvebu-tld-1
   Created:      2020-08-22   9:41:36 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    8717023 Bytes = 8.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... 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: NETGEAR ReadyNAS 102
[    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: 130048
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=pxa3xx_nand-0:0x180000@0(u-boot),0
x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x400000@0x800000(minirootfs),-(ubifs) earlyprintk=serial mtdparts=pxa3xx_nan
d-0:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x400000@0x800000(minirootfs),-(ubifs) reason=normal 
bdtype=rn102
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 497756K/524288K available (8192K kernel code, 731K rwdata, 2072K rodata, 1024K init, 320K bss, 26532K reserv
ed, 0K cma-reserved, 0K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 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 114537122277ns
[    0.007239] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 101938038664 ns
[    0.018008] Console: colour dummy device 80x30
[    0.022091] Calibrating delay loop (skipped), value calculated using timer frequency.. 37.49 BogoMIPS (lpj=187492)
[    0.031583] pid_max: default: 32768 minimum: 301
[    0.035963] LSM: Security Framework initializing
[    0.040289] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.046331] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.053617] CPU: Testing write buffer coherency: ok
[    0.058439] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.117367] Setting up static identity map for 0x100000 - 0x100060
[    0.123336] mvebu-soc-id: MVEBU SoC ID=0x6710, Rev=0x1
[    0.128191] mvebu-pmsu: Initializing Power Management Service Unit
[    0.147298] rcu: Hierarchical SRCU implementation.
[    0.187301] smp: Bringing up secondary CPUs ...
[    0.191446] smp: Brought up 1 node, 1 CPU
[    0.195107] SMP: Total of 1 processors activated (37.49 BogoMIPS).
[    0.200778] CPU: All CPU(s) started in SVC mode.
[    0.205796] devtmpfs: initialized
[    0.217548] VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 6
[    0.225104] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.234397] futex hash table entries: 256 (order: 2, 16384 bytes)
[    0.240290] prandom: seed boundary self test passed
[    0.247186] prandom: 100 self tests passed
[    0.251105] pinctrl core: initialized pinctrl subsystem
[    0.258049] NET: Registered protocol family 16
[    0.262839] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.270388] audit: initializing netlink subsys (disabled)
[    0.275642] audit: type=2000 audit(0.250:1): state=initialized audit_enabled=0 res=1
[    0.284714] cpuidle: using governor ladder
[    0.289671] cpuidle: using governor menu
[    0.293511] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.388355] vgaarb: loaded
[    0.391162] SCSI subsystem initialized
[    0.398081] usbcore: registered new interface driver usbfs
[    0.403138] usbcore: registered new interface driver hub
[    0.409504] usbcore: registered new device driver usb
[    0.415234] pps_core: LinuxPPS API ver. 1 registered
[    0.420340] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.428920] PTP clock support registered
[    0.435053] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.496233] VFS: Disk quotas dquot_6.6.0
[    0.499894] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.531154] NET: Registered protocol family 2
[    0.537031] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes)
[    0.544039] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.550868] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.556947] TCP: Hash tables configured (established 4096 bind 4096)
[    0.562868] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.568275] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.574208] NET: Registered protocol family 1
[    0.609091] RPC: Registered named UNIX socket transport module.
[    0.614499] RPC: Registered udp transport module.
[    0.618876] RPC: Registered tcp transport module.
[    0.623169] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.629294] Unpacking initramfs...
[    1.113954] Freeing initrd memory: 8516K
[    1.117883] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.124196] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    1.134815] Initialise system trusted keyrings
[    1.140209] Key type blacklist registered
[    1.144093] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    1.150251] zbud: loaded
[    1.163528] NFS: Registering the id_resolver key type
[    1.168388] Key type id_resolver registered
[    1.172208] Key type id_legacy registered
[    1.175977] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.182094] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.317064] Key type asymmetric registered
[    1.320813] Asymmetric key parser 'x509' registered
[    1.325704] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    1.332466] io scheduler noop registered
[    1.336298] io scheduler deadline registered
[    1.340242] io scheduler cfq registered (default)
[    1.347198] armada-370-pinctrl d0018000.pin-ctrl: registered pinctrl driver
[    1.361705] mvebu-pcie soc:pcie@82000000: PCI host bridge to bus 0000:00
[    1.368345] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.373358] pci_bus 0000:00: root bus resource [mem 0xf8000000-0xffdfffff]
[    1.379983] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    1.387859] PCI: bus0: Fast back to back transfers disabled
[    1.392960] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.400569] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.408854] pci 0000:00:01.0: ASPM: current common clock configuration is broken, reconfiguring
[    1.446181] PCI: bus1: Fast back to back transfers disabled
[    1.452144] pci 0000:00:02.0: ASPM: current common clock configuration is broken, reconfiguring
[    1.486178] PCI: bus2: Fast back to back transfers disabled
[    1.491362] pci 0000:00:01.0: BAR 14: assigned [mem 0xf8000000-0xf80fffff]
[    1.497718] pci 0000:00:01.0: BAR 15: assigned [mem 0xf8100000-0xf81fffff pref]
[    1.504393] pci 0000:00:02.0: BAR 14: assigned [mem 0xf8200000-0xf82fffff]
[    1.510716] pci 0000:00:01.0: BAR 13: assigned [io  0x10000-0x10fff]
[    1.516561] pci 0000:00:01.0: BAR 6: assigned [mem 0xf8300000-0xf83007ff pref]
[    1.523157] pci 0000:00:02.0: BAR 6: assigned [mem 0xf8400000-0xf84007ff pref]
[    1.529778] pci 0000:01:00.0: BAR 6: assigned [mem 0xf8100000-0xf810ffff pref]
[    1.536390] pci 0000:01:00.0: BAR 5: assigned [mem 0xf8000000-0xf80001ff]
[    1.542592] pci 0000:01:00.0: BAR 4: assigned [io  0x10000-0x1000f]
[    1.548333] pci 0000:01:00.0: BAR 0: assigned [io  0x10010-0x10017]
[    1.554057] pci 0000:01:00.0: BAR 2: assigned [io  0x10018-0x1001f]
[    1.559798] pci 0000:01:00.0: BAR 1: assigned [io  0x10020-0x10023]
[    1.565539] pci 0000:01:00.0: BAR 3: assigned [io  0x10024-0x10027]
[    1.571263] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.575812] pci 0000:00:01.0:   bridge window [io  0x10000-0x10fff]
[    1.581537] pci 0000:00:01.0:   bridge window [mem 0xf8000000-0xf80fffff]
[    1.587751] pci 0000:00:01.0:   bridge window [mem 0xf8100000-0xf81fffff pref]
[    1.594351] pci 0000:02:00.0: BAR 0: assigned [mem 0xf8200000-0xf820ffff 64bit]
[    1.601049] pci 0000:02:00.0: BAR 2: assigned [mem 0xf8210000-0xf8210fff 64bit]
[    1.607745] pci 0000:02:00.0: BAR 4: assigned [mem 0xf8211000-0xf8211fff 64bit]
[    1.614424] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.618976] pci 0000:00:02.0:   bridge window [mem 0xf8200000-0xf82fffff]
[    1.625306] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[    1.631156] pcieport 0000:00:02.0: enabling device (0140 -> 0142)
[    1.638072] mv_xor d0060800.xor: Marvell shared XOR driver
[    1.706196] mv_xor d0060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.713358] mv_xor d0060900.xor: Marvell shared XOR driver
[    1.776186] mv_xor d0060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    1.942417] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.953136] printk: console [ttyS0] disabled
[    1.978578] d0012000.serial: ttyS0 at MMIO 0xd0012000 (irq = 19, base_baud = 12500000) is a 16550A
[    1.987008] printk: console [ttyS0] enabled
[    1.987008] printk: console [ttyS0] enabled
[    1.994710] printk: bootconsole [earlycon0] disabled
[    1.994710] printk: bootconsole [earlycon0] disabled
[    2.005967] ahci 0000:01:00.0: enabling device (0146 -> 0147)
[    2.011499] ahci 0000:01:00.0: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
[    2.019652] ahci 0000:01:00.0: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    2.039976] scsi host0: ahci
[    2.053635] scsi host1: ahci
[    2.056846] ata1: SATA max UDMA/133 abar m512@0xf8000000 port 0xf8000100 irq 42
[    2.063584] ata2: SATA max UDMA/133 abar m512@0xf8000000 port 0xf8000180 irq 42
[    2.071539] sata_mv d00a0000.sata: slots 32 ports 1
[    2.087383] scsi host2: sata_mv
[    2.090729] ata3: SATA max UDMA/133 irq 27
[    2.096154] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    2.102013] nand: Hynix H27U1G8F2BTR-BC
[    2.105787] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    2.112999] Bad block table found at page 65472, version 0x01
[    2.119212] Bad block table found at page 65408, version 0x01
[    2.124668] nand_read_bbt: bad block at 0x000001820000
[    2.130010] nand_read_bbt: bad block at 0x000001f00000
[    2.134805] 5 cmdlinepart partitions found on MTD device pxa3xx_nand-0
[    2.140901] Creating 5 MTD partitions on "pxa3xx_nand-0":
[    2.145956] 0x000000000000-0x000000180000 : "u-boot"
[    2.152283] 0x000000180000-0x0000001a0000 : "u-boot-env"
[    2.159423] 0x000000200000-0x000000800000 : "uImage"
[    2.166154] 0x000000800000-0x000000c00000 : "minirootfs"
[    2.173043] 0x000000c00000-0x000008000000 : "ubifs"
[    2.184477] libphy: Fixed MDIO Bus: probed
[    2.192479] libphy: orion_mdio_bus: probed
[    2.204341] mvneta d0074000.ethernet eth0: Using random mac address a6:22:22:3d:fc:09
[    2.216010] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.222078] ehci-pci: EHCI PCI platform driver
[    2.227030] ehci-orion: EHCI orion driver
[    2.230938] orion-ehci d0050000.usb: EHCI Host Controller
[    2.236154] orion-ehci d0050000.usb: new USB bus registered, assigned bus number 1
[    2.243386] orion-ehci d0050000.usb: irq 25, io mem 0xd0050000
[    2.275080] orion-ehci d0050000.usb: USB 2.0 started, EHCI 1.00
[    2.280830] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.20
[    2.288477] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.295204] usb usb1: Product: EHCI Host Controller
[    2.299700] usb usb1: Manufacturer: Linux 4.20.6-mvebu-mirabox-tld-12 ehci_hcd
[    2.306406] usb usb1: SerialNumber: d0050000.usb
[    2.311564] hub 1-0:1.0: USB hub found
[    2.315363] hub 1-0:1.0: 1 port detected
[    2.320301] xhci_hcd 0000:02:00.0: xHCI Host Controller
[    2.325616] xhci_hcd 0000:02:00.0: new USB bus registered, assigned bus number 2
[    2.333194] xhci_hcd 0000:02:00.0: hcc params 0x200073a1 hci version 0x100 quirks 0x0000000000080010
[    2.342507] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 4.20
[    2.350338] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.357083] usb usb2: Product: xHCI Host Controller
[    2.361580] usb usb2: Manufacturer: Linux 4.20.6-mvebu-mirabox-tld-12 xhci-hcd
[    2.368316] usb usb2: SerialNumber: 0000:02:00.0
[    2.373474] hub 2-0:1.0: USB hub found
[    2.377270] hub 2-0:1.0: 2 ports detected
[    2.381754] xhci_hcd 0000:02:00.0: xHCI Host Controller
[    2.386902] xhci_hcd 0000:02:00.0: new USB bus registered, assigned bus number 3
[    2.393795] xhci_hcd 0000:02:00.0: Host supports USB 3.0  SuperSpeed
[    2.399854] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.407407] ata2: SATA link down (SStatus 0 SControl 300)
[    2.412449] ata1: SATA link down (SStatus 0 SControl 300)
[    2.417686] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 4.20
[    2.425380] ata3: SATA link down (SStatus 0 SControl F300)
[    2.430663] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.437388] usb usb3: Product: xHCI Host Controller
[    2.441946] usb usb3: Manufacturer: Linux 4.20.6-mvebu-mirabox-tld-12 xhci-hcd
[    2.448622] usb usb3: SerialNumber: 0000:02:00.0
[    2.453682] hub 3-0:1.0: USB hub found
[    2.457455] hub 3-0:1.0: 2 ports detected
[    2.462679] usbcore: registered new interface driver usblp
[    2.468549] usbcore: registered new interface driver usb-storage
[    2.474918] mousedev: PS/2 mouse device common for all mice
[    2.481683] i2c /dev entries driver
[    2.489297] rtc-ds1307 0-0068: 'wakeup-source' is set, request for an IRQ is disabled!
[    2.501133] rtc-ds1307 0-0068: registered as rtc0
[    2.536708] orion_wdt: Initial timeout 229 sec
[    2.595787] marvell-cesa d0090000.crypto: CESA device successfully registered
[    2.603091] hidraw: raw HID events driver (C) Jiri Kosina
[    2.609288] usbcore: registered new interface driver usbhid
[    2.614426] usbhid: USB HID core driver
[    2.619022] drop_monitor: Initializing network drop monitor service
[    2.625562] NET: Registered protocol family 10
[    2.640875] Segment Routing with IPv6
[    2.644331] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.651971] NET: Registered protocol family 17
[    2.667108] 8021q: 802.1Q VLAN Support v1.8
[    2.671093] Key type dns_resolver registered
[    2.675521] ThumbEE CPU extension supported.
[    2.679485] Registering SWP/SWPB emulation handler
[    2.685240] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    2.692916] registered taskstats version 1
[    2.697692] Loading compiled-in X.509 certificates
[    2.702327] zswap: loaded using pool lzo/zbud
[    2.752921] Key type big_key registered
[    2.779757] Key type encrypted registered
[    2.788527] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[    2.798172] rtc-ds1307 0-0068: setting system clock to 2020-08-25 18:32:04 UTC (1598380324)
[    2.809039] Freeing unused kernel memory: 1024K
[    2.836894] Checked W+X mappings: passed, no W+X pages found
[    2.842130] Run /init as init process

Apparently, my reaction time was marginally longer this time. It makes sense that the LEDs are turned on at:

[    2.788xxx] input: gpio-keys as /devices/platform/gpio-keys/input/input0

On the other hand, I cannot believe I reacted within a few 1/100 of a second, but maybe there is a delay somewhere? After this they remain on "forever".

To avoid getting random mac addresses at boot, I edited '/etc/network/config' as whitepawn suggested:

$ cat /etc/network/config
auto lo eth0
iface lo inet loopback
iface eth0 inet dhcp
        hwaddress ether 12:34:56:78:90:00

Preferably, the mac address should be read from the hardware, alternatively from the U-boot environment, so USB-sticks can be swapped between units.

Regards,
Trond Melen
Attachments:
open | download - test_rn102_mtd_partitions.lst (65 KB)
Re: Debian on Netgear RN102
August 25, 2020 05:15PM
Trond,

Quote

I wondered if u-boot would find a USB-stick on the USB3 connectors at the back if the stick was USB2, so I tried this. It made no difference.

Yes. I expected that, this u-boot is a little too old so I need to dig into it a bit when I have time.

Quote

Only after the last command the Power LED is switched off. The first two commands makes no difference. The other LEDs behave the same. A workaround in user-land is easy, but fixing the driver is better.

Actually the behavior you saw was correct. What we want to do is to change the DTS to make it easier to manipulate. The default "keep" is not a very good, IMO.

Quote

[ 2.798570] rtc-ds1307 0-0068: setting system clock to 2020-08-25 18:28:16 UTC (1598380096)

So the RTC is working, cool!


Quote

Preferably, the mac address should be read from the hardware, alternatively from the U-boot environment, so USB-sticks can be swapped between units.

This is a known problem for a few MVEBU boxes. I had a better work around, which I've included in the rootfs Debian-5.2.9-mvebu-tld-1-rootfs-bodhi.tar.bz2. This work around uses the u-boot env ethaddr to set the MAC address, so the rootfs is portable to all boxes of its kind..

Quote

Note3:

To enable the network dynamic IP to stay consistent after each reboot, and also for faster boot. In this rootfs, a script is executed during kernel booting (in /etc/rc.local), to detect if a local MAC address was assigned during boot, and then set the persistent MAC address to what is currently defined in u-boot env ethaddr.

/root/set_persistent_mac_address

But I will post a new version for the DTS/DTB and you can test it to see if we can fix this random MAC problem.

Quote

At this stage, all the LEDs are off. Hitting the power button and interrupting u-boot, this is added to the console:

Regarding the Power button. Since we are booting with stock u-boot, it will remain working like that in u-boot. But in Debian, it will no longer have that stock behavior. We will need to use esekeyd to control this button and do whatever we want to with it.

See the Wiki thread:
Quote
https://forum.doozan.com/read.php?2,23630
Key daemon (button control)

Multimedia keyboard daemon for Linux
How to use set up button to reboot or shutdown with Key Daemon (esekeyd)

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
tme
Re: Debian installation on Netgear RN102
August 26, 2020 02:43PM
Hi bodhi,

I think 'keep' as 'defualt-state' in the dts-file is a good thing if is to be interpreted as "read the current state of this LED and align the driver's shadow variable with it", but maybe 'keep' means something else? 'keep' as 'default-state' cannot be blamed here because the Backup LED, which 'default-state' in 'on', behaves the same way as the Power LED:
echo none       > /sys/class/leds/rn102:blue:backup/trigger
echo none       > /sys/class/leds/rn102:blue:backup/trigger
echo default-on > /sys/class/leds/rn102:blue:backup/trigger
echo none       > /sys/class/leds/rn102:blue:backup/trigger
Again, only after the last command is the Backup LED switched off. The first two commands make no difference.

The Activity LED irritates me. It is on by default if there is at least a disk in one of the two bays, and off for short moments when there is disk activity. This is the opposite of the Sata1 and Sata2 LEDs, and I would be happy to see the behaviour inverted. I belive this LED is driven by the Sata controller rather than the Armada 370 SoC. Does this mean that nothing can be done about it?

Since the Activity LED currently behaves more or less like a power on indicator, I chose to turn the Power LED off after boot if the Activity LED is already on. This is from my /etc/rc.local:
if [ -d /sys/class/leds/rn102:blue:pwr ]; then

   # Switch all the LEDs on to bring driver's shadow variables in sync with the LEDs
   echo default-on > /sys/class/leds/rn102:blue:pwr/trigger
   echo default-on > /sys/class/leds/rn102:blue:sata1/trigger
   echo default-on > /sys/class/leds/rn102:blue:sata2/trigger
   echo default-on > /sys/class/leds/rn102:blue:backup/trigger

   # Switch the Power LED off if the Activity LED is on (one power indicator is enough)
   if grep scsi1 /proc/scsi/scsi > /dev/null; then
      echo none    > /sys/class/leds/rn102:blue:pwr/trigger
   fi
   if grep scsi2 /proc/scsi/scsi > /dev/null; then
      echo none    > /sys/class/leds/rn102:blue:pwr/trigger
   fi

   # Make Sata1 and Sata2 LEDs indicate disk activity
   echo ide-disk1  > /sys/class/leds/rn102:blue:sata1/trigger
   echo ide-disk2  > /sys/class/leds/rn102:blue:sata2/trigger

   # Switch the Backup LED off
   echo none       > /sys/class/leds/rn102:blue:backup/trigger
fi

The ability to do an orderly shutdown just by pushing the power button for, say, 5 seconds is very valuable. I always missed that on the NetgearStora.

Regards,
Trond Melen
Re: Debian installation on Netgear RN102
August 26, 2020 11:28PM
Trond,

The "keep" property is what made the manipulation is a little awkward.

I will update the DTS to make everything default similar to other Kirkwood and MVEBU boxes. And you will not need to use userspace echos to trigger them.

Basically everything is off during kernel booting. Once the kernel completed booting, the System LED is on. And SATA1 and SATA2 will be off. When the each disk is accessed, its SATA LED will flash during the activity, and go back to off again.

> The ability to do an orderly shutdown just by
> pushing the power button for, say, 5 seconds is
> very valuable. I always missed that on the
> NetgearStora.

Yes, I've mentioned esekeyd above. That's how we execute some commands/scripts when a button is pushed. All 3 buttons: Power, Reset, Backup can be used on this RN102 box.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian installation on Netgear RN102
August 27, 2020 01:48AM
Here is the updated DTB (and also the DTS for reference). Copy the armada-370-netgear-rn102.dtb file to /boot/dts on your box (backup the current DTB for keepsake first).

Please comment out all the echo statements to control the LEDs that you might have currently. Reboot the box and observe the LEDs behaviors. They should be what I described in the above post.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - armada-370-netgear-rn102.dtb (14.3 KB)
open | download - armada-370-netgear-rn102.dts (5.1 KB)
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: