Welcome! Log In Create A New Profile

Advanced

From Stock to Debian on Netgear RN102 in 2024...

Posted by SuperPoney 
SuperPoney
From Stock to Debian on Netgear RN102 in 2024...
March 10, 2024 12:11PM
Hello,

I'm trying to install Debian on my Ready NAS 102.
I've been following all steps in the pinned thead of your forum. But When I boot from my USB drive connected in front of my NAS I always fall in the (initramfs) prompt and not a debian login prompt.

I've trying to boot from stock to Debian-6.6.2-mvebu-tld-1-rootfs-bodhi.tar.bz2.
Here are the steps I've made :
mkfs -t ext3 -L rootfs /dev/sda
mount /dev/sda1 /media/eric/sda
cd /media/eric/sda/
tar -xjf /home/eric/Desktop/Debian-6.6.2-mvebu-tld-1-rootfs-bodhi.tar.bz2
cd /media/eric/sda/boot
cp -a uImage uImage.orig
cp -a zImage-6.6.2-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-6.6.2-mvebu-tld-1 -d zImage.fdt uImage
cd
sync
sync
umount /media/eric/sda

Then plug the USB drive into to NAS and boot

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'
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
boot

=> fall into (initramfs) prompt.


Then I've trying to boot from stock to Debian-5.2.9-mvebu-tld-1-rootfs-bodhi.tar.bz2 with kernel linux-5.8.5-mvebu-370xp-tld-1-bodhi.tar.bz2 and another try with kernel linux-5.19.2-mvebu-370xp-tld-1-bodhi.tar.bz2.

Here are the steps I've made :

mkfs -t ext3 -L rootfs /dev/sda
mount /dev/sda /media/eric/sda
cd /media/eric/sda/
tar -xjf /home/eric/Desktop/Debian-5.2.9-mvebu-tld-1-rootfs-bodhi.tar.bz2
#kernel
mkdir -p /media/eric/rootfs/usr/src/kernel
cd /media/eric/rootfs/usr/src/kernel
cp /home/eric/Desktop/linux-5.2.9-mvebu-370xp-tld-1-bodhi.tar.bz2 .
tar xf linux-5.2.9-mvebu-370xp-tld-1-bodhi.tar.bz2
tar -xvf linux-dtb-5.2.9-mvebu-370xp-tld-1.tar dts/armada-370-netgear-rn102.dtb
cp -a zImage-5.2.9-mvebu-370xp-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-370xp-tld-1 -d zImage.fdt uImage
cd /media/eric/rootfs/boot
cp -a /media/eric/rootfs/usr/src/kernel/uImage .
sync
sync
sync
cd
umount /media/eric/rootfs

Then plug the USB drive into to NAS and boot

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'
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
boot

=> fall into (initramfs) prompt.

Here is the full boot log from the NAS :

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:

Marvell>> printenv
AC_Power_fail_detect=open
CASset=min
HW_version=MVT
MALLOC_len=5
Manufacturer=NETGEAR
Product=ReadyNAS 102
SKUNum=RN102
SerialNum=3ERD51EJ00892
Startup=Normal
UUID=3ab1586c-9e2a-11e4-ae60-e8fcafe56b90
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=E8:FC:AF:E5:6B:90
eth1mtu=1500
ethact=egiga1
ethaddr=00:50:43:00:02:02
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=00:50:43:00:00:02
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=00:00:00:EE:51:81

Environment size: 2292/131068 bytes
Marvell>> setenv mtdparts 'mtdparts=pxa3xx_nand-0:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x400000@0x800000(minirootfs),-(ubifs)'
Marvell>> setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts 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>> 
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 (rootfs)
5418806 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 (rootfs)
9488618 bytes read
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-5.19.2-mvebu-370xp-tld-1
   Created:      2024-03-10  16:51:15 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5418742 Bytes = 5.2 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 ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.8.5-mvebu-370xp-tld-1 (root@tldDebianVM) (arm-linux-gnueabihf-gcc (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04) 7.5.0, GNU ld (GNU Binutils for Ubuntu) 2.30) #1.0 SMP PREEMPT Mon Aug 31 00:00:32 PDT 2020
[    0.000000][    T0] CPU: ARMv7 Processor [561f5811] revision 1 (ARMv7), cr=10c5387d
[    0.000000][    T0] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000][    T0] OF: fdt: Machine model: NETGEAR ReadyNAS 102
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000][    T0]   HighMem  empty
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000][    T0] CPU: All CPU(s) started in SVC mode.
[    0.000000][    T0] percpu: Embedded 20 pages/cpu s53068 r8192 d20660 u81920
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 130048
[    0.000000][    T0] 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 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][    T0] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 493620K/524288K available (10240K kernel code, 1012K rwdata, 3072K rodata, 1024K init, 342K bss, 30668K reserved, 0K cma-reserved, 0K highmem)
[    0.000000][    T0] random: get_random_u32 called from ____cache_alloc+0x338/0x794 with crng_init=0
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] rcu: 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=1.
[    0.000000][    T0] 	Trampoline variant of Tasks RCU enabled.
[    0.000000][    T0] 	Rude variant of Tasks RCU enabled.
[    0.000000][    T0] 	Tracing variant of Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] rcu: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=1
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] L2C: DT/platform modifies aux control register: 0x12086300 -> 0x1a086302
[    0.000000][    T0] Aurora cache controller enabled, 4 ways, 256 kB
[    0.000000][    T0] Aurora: CACHE_ID 0x00000100, AUX_CTRL 0x1a086302
[    0.000000][    T0] Switching to timer-based delay loop, resolution 53ns
[    0.000006][    T0] sched_clock: 32 bits at 18MHz, resolution 53ns, wraps every 114537122277ns
[    0.007874][    T0] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 101938038664 ns
[    0.019292][    T0] Console: colour dummy device 80x30
[    0.024010][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 37.49 BogoMIPS (lpj=187492)
[    0.034140][    T0] pid_max: default: 32768 minimum: 301
[    0.039205][    T0] LSM: Security Framework initializing
[    0.044153][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.051482][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.060281][    T0] CPU: Testing write buffer coherency: ok
[    0.065718][    T1] CPU0: thread -1, cpu 0, socket -1, mpidr 0
[    0.072047][    T1] Setting up static identity map for 0x100000 - 0x100060
[    0.078739][    T1] mvebu-soc-id: MVEBU SoC ID=0x6710, Rev=0x1
[    0.084171][    T1] mvebu-pmsu: Initializing Power Management Service Unit
[    0.090699][    T1] rcu: Hierarchical SRCU implementation.
[    0.098525][    T1] smp: Bringing up secondary CPUs ...
[    0.103413][    T1] smp: Brought up 1 node, 1 CPU
[    0.107709][    T1] SMP: Total of 1 processors activated (37.49 BogoMIPS).
[    0.114027][    T1] CPU: All CPU(s) started in SVC mode.
[    0.119569][    T1] devtmpfs: initialized
[    0.128128][    T1] VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 6
[    0.137066][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.146834][    T1] futex hash table entries: 256 (order: 2, 16384 bytes, linear)
[    0.154042][    T1] xor: measuring software checksum speed
[    0.258573][    T1]    arm4regs  :  1103.200 MB/sec
[    0.358570][    T1]    8regs     :   671.200 MB/sec
[    0.458567][    T1]    32regs    :  1062.400 MB/sec
[    0.463020][    T1] xor: using function: arm4regs (1103.200 MB/sec)
[    0.468785][    T1] prandom: seed boundary self test passed
[    0.477388][    T1] prandom: 100 self tests passed
[    0.481802][    T1] pinctrl core: initialized pinctrl subsystem
[    0.488937][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.489676][    T1] NET: Registered protocol family 16
[    0.502514][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.510407][    T1] audit: initializing netlink subsys (disabled)
[    0.516375][   T31] audit: type=2000 audit(0.490:1): state=initialized audit_enabled=0 res=1
[    0.526668][    T1] cpuidle: using governor ladder
[    0.532697][    T1] cpuidle: using governor menu
[    0.537187][    T1] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.809631][    T1] raid6: int32x8  gen()   214 MB/s
[    0.978984][    T1] raid6: int32x8  xor()   135 MB/s
[    1.148635][    T1] raid6: int32x4  gen()   224 MB/s
[    1.318707][    T1] raid6: int32x4  xor()   151 MB/s
[    1.488580][    T1] raid6: int32x2  gen()   414 MB/s
[    1.658565][    T1] raid6: int32x2  xor()   217 MB/s
[    1.828602][    T1] raid6: int32x1  gen()   430 MB/s
[    1.998587][    T1] raid6: int32x1  xor()   201 MB/s
[    2.003118][    T1] raid6: using algorithm int32x1 gen() 430 MB/s
[    2.008691][    T1] raid6: .... xor() 201 MB/s, rmw enabled
[    2.013776][    T1] raid6: using intx1 recovery algorithm
[    2.020101][    T1] vgaarb: loaded
[    2.025075][    T1] SCSI subsystem initialized
[    2.030335][    T1] usbcore: registered new interface driver usbfs
[    2.036033][    T1] usbcore: registered new interface driver hub
[    2.043223][    T1] usbcore: registered new device driver usb
[    2.049930][    T1] mc: Linux media interface: v0.10
[    2.055352][    T1] videodev: Linux video capture interface: v2.00
[    2.061831][    T1] pps_core: LinuxPPS API ver. 1 registered
[    2.067000][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    2.076737][    T1] PTP clock support registered
[    2.084545][    T1] clocksource: Switched to clocksource armada_370_xp_clocksource
[    3.073755][    T1] VFS: Disk quotas dquot_6.6.0
[    3.078137][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    3.112966][    T1] NET: Registered protocol family 2
[    3.120517][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear)
[    3.129256][    T1] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    3.137304][    T1] TCP bind hash table entries: 4096 (order: 3, 32768 bytes, linear)
[    3.144493][    T1] TCP: Hash tables configured (established 4096 bind 4096)
[    3.151586][    T1] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[    3.158411][    T1] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[    3.165652][    T1] NET: Registered protocol family 1
[    3.171030][    T1] RPC: Registered named UNIX socket transport module.
[    3.177170][    T1] RPC: Registered udp transport module.
[    3.182098][    T1] RPC: Registered tcp transport module.
[    3.187046][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    3.193564][    T1] PCI: CLS 0 bytes, default 64
[    3.198184][    T1] Trying to unpack rootfs image as initramfs...
[    3.809746][    T1] Freeing initrd memory: 9268K
[    3.814249][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    3.821238][    T1] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    3.832246][    T1] Initialise system trusted keyrings
[    3.839058][    T1] Key type blacklist registered
[    3.843589][    T1] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    3.850410][    T1] zbud: loaded
[    3.855296][    T1] NFS: Registering the id_resolver key type
[    3.860571][    T1] Key type id_resolver registered
[    3.865276][    T1] Key type id_legacy registered
[    3.869593][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    3.876508][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    3.883255][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    3.891554][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    3.898488][    T1] orangefs_init: module version upstream loaded
[    3.976231][    T1] async_tx: api initialized (async)
[    3.980864][    T1] Key type asymmetric registered
[    3.985312][    T1] Asymmetric key parser 'x509' registered
[    3.990748][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
[    3.998374][    T1] io scheduler bfq registered
[    4.005479][    T1] armada-370-pinctrl d0018000.pin-ctrl: registered pinctrl driver
[    4.022405][    T1] mvebu-pcie soc:pcie@82000000: PCI host bridge to bus 0000:00
[    4.029689][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[    4.035746][    T1] pci_bus 0000:00: root bus resource [mem 0xf8000000-0xffdfffff]
[    4.042660][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    4.049343][    T1] pci 0000:00:01.0: [11ab:6710] type 01 class 0x060400
[    4.055584][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    4.062945][    T1] pci 0000:00:02.0: [11ab:6710] type 01 class 0x060400
[    4.069316][    T1] pci 0000:00:02.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    4.077620][    T1] PCI: bus0: Fast back to back transfers disabled
[    4.083356][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    4.091555][    T1] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    4.099963][    T1] pci 0000:01:00.0: [1b4b:9170] type 00 class 0x010601
[    4.106374][    T1] pci 0000:01:00.0: reg 0x10: [io  0xfffffff8-0xffffffff]
[    4.112741][    T1] pci 0000:01:00.0: reg 0x14: [io  0xfffffffc-0xffffffff]
[    4.119213][    T1] pci 0000:01:00.0: reg 0x18: [io  0xfffffff8-0xffffffff]
[    4.125670][    T1] pci 0000:01:00.0: reg 0x1c: [io  0xfffffffc-0xffffffff]
[    4.132035][    T1] pci 0000:01:00.0: reg 0x20: [io  0xfffffff0-0xffffffff]
[    4.138455][    T1] pci 0000:01:00.0: reg 0x24: [mem 0x40000000-0x400001ff]
[    4.144882][    T1] pci 0000:01:00.0: reg 0x30: [mem 0xd0000000-0xd000ffff pref]
[    4.151657][    T1] pci 0000:01:00.0: Enabling fixed DMA alias to 00.1
[    4.157726][    T1] pci 0000:01:00.0: PME# supported from D3hot
[    4.163590][    T1] pci 0000:00:01.0: ASPM: current common clock configuration is inconsistent, reconfiguring
[    4.195641][    T1] PCI: bus1: Fast back to back transfers disabled
[    4.201380][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    4.208478][    T1] pci 0000:02:00.0: [1b73:1009] type 00 class 0x0c0330
[    4.214824][    T1] pci 0000:02:00.0: reg 0x10: [mem 0x42000000-0x4200ffff 64bit]
[    4.221671][    T1] pci 0000:02:00.0: reg 0x18: [mem 0x42010000-0x42010fff 64bit]
[    4.228621][    T1] pci 0000:02:00.0: reg 0x20: [mem 0x42011000-0x42011fff 64bit]
[    4.235625][    T1] pci 0000:02:00.0: supports D1
[    4.239924][    T1] pci 0000:02:00.0: PME# supported from D0 D1 D3hot D3cold
[    4.246881][    T1] pci 0000:00:02.0: ASPM: current common clock configuration is inconsistent, reconfiguring
[    4.285637][    T1] PCI: bus2: Fast back to back transfers disabled
[    4.291375][    T1] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    4.298198][    T1] pci 0000:00:01.0: BAR 14: assigned [mem 0xf8000000-0xf80fffff]
[    4.305170][    T1] pci 0000:00:02.0: BAR 14: assigned [mem 0xf8100000-0xf81fffff]
[    4.312084][    T1] pci 0000:00:01.0: BAR 13: assigned [io  0x10000-0x10fff]
[    4.318569][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xf8200000-0xf82007ff pref]
[    4.325821][    T1] pci 0000:00:02.0: BAR 6: assigned [mem 0xf8300000-0xf83007ff pref]
[    4.333057][    T1] pci 0000:01:00.0: BAR 6: assigned [mem 0xf8000000-0xf800ffff pref]
[    4.340306][    T1] pci 0000:01:00.0: BAR 5: assigned [mem 0xf8010000-0xf80101ff]
[    4.347162][    T1] pci 0000:01:00.0: BAR 4: assigned [io  0x10000-0x1000f]
[    4.353521][    T1] pci 0000:01:00.0: BAR 0: assigned [io  0x10010-0x10017]
[    4.359898][    T1] pci 0000:01:00.0: BAR 2: assigned [io  0x10018-0x1001f]
[    4.366275][    T1] pci 0000:01:00.0: BAR 1: assigned [io  0x10020-0x10023]
[    4.372634][    T1] pci 0000:01:00.0: BAR 3: assigned [io  0x10024-0x10027]
[    4.379011][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[    4.384180][    T1] pci 0000:00:01.0:   bridge window [io  0x10000-0x10fff]
[    4.390557][    T1] pci 0000:00:01.0:   bridge window [mem 0xf8000000-0xf80fffff]
[    4.397415][    T1] pci 0000:02:00.0: BAR 0: assigned [mem 0xf8100000-0xf810ffff 64bit]
[    4.404749][    T1] pci 0000:02:00.0: BAR 2: assigned [mem 0xf8110000-0xf8110fff 64bit]
[    4.412064][    T1] pci 0000:02:00.0: BAR 4: assigned [mem 0xf8111000-0xf8111fff 64bit]
[    4.419395][    T1] pci 0000:00:02.0: PCI bridge to [bus 02]
[    4.424583][    T1] pci 0000:00:02.0:   bridge window [mem 0xf8100000-0xf81fffff]
[    4.431538][    T1] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[    4.437885][    T1] pcieport 0000:00:02.0: enabling device (0140 -> 0142)
[    4.445396][    T1] mv_xor d0060800.xor: Marvell shared XOR driver
[    4.515916][    T1] mv_xor d0060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    4.526935][    T1] mv_xor d0060900.xor: Marvell shared XOR driver
[    4.595918][    T1] mv_xor d0060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    4.799412][    T1] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    4.810525][    T1] printk: console [ttyS0] disabled
[    4.836769][    T1] d0012000.serial: ttyS0 at MMIO 0xd0012000 (irq = 19, base_baud = 12500000) is a 16550A
[    4.845837][    T1] printk: console [ttyS0] enabled
[    4.845837][    T1] printk: console [ttyS0] enabled
[    4.854891][    T1] printk: bootconsole [earlycon0] disabled
[    4.854891][    T1] printk: bootconsole [earlycon0] disabled
[    4.867584][    T1] ahci 0000:01:00.0: enabling device (0146 -> 0147)
[    4.873824][    T1] ahci 0000:01:00.0: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
[    4.882791][    T1] ahci 0000:01:00.0: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    4.894276][    T1] scsi host0: ahci
[    4.898944][    T1] scsi host1: ahci
[    4.902992][    T1] ata1: SATA max UDMA/133 abar m512@0xf8010000 port 0xf8010100 irq 42
[    4.910795][    T1] ata2: SATA max UDMA/133 abar m512@0xf8010000 port 0xf8010180 irq 42
[    4.919773][    T1] sata_mv d00a0000.sata: slots 32 ports 1
[    4.927790][    T1] scsi host2: sata_mv
[    4.932100][    T1] ata3: SATA max UDMA/133 irq 27
[    4.938204][    T1] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xf1
[    4.945765][    T1] nand: Micron MT29F1G08ABADAWP
[    4.950110][    T1] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    4.958628][    T1] Bad block table found at page 65472, version 0x01
[    4.965272][    T1] Bad block table found at page 65408, version 0x01
[    4.971535][    T1] 5 cmdlinepart partitions found on MTD device pxa3xx_nand-0
[    4.978286][    T1] Creating 5 MTD partitions on "pxa3xx_nand-0":
[    4.983907][    T1] 0x000000000000-0x000000180000 : "u-boot"
[    4.991421][    T1] 0x000000180000-0x0000001a0000 : "u-boot-env"
[    4.999774][    T1] 0x000000200000-0x000000800000 : "uImage"
[    5.007849][    T1] 0x000000800000-0x000000c00000 : "minirootfs"
[    5.016272][    T1] 0x000000c00000-0x000008000000 : "ubifs"
[    5.026235][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    5.034098][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    5.048515][    T1] libphy: Fixed MDIO Bus: probed
[    5.058159][    T1] libphy: orion_mdio_bus: probed
[    5.080064][    T1] mvneta d0074000.ethernet eth0: Using random mac address d6:80:a4:bc:c6:ee
[    5.092541][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.099822][    T1] ehci-pci: EHCI PCI platform driver
[    5.105171][    T1] ehci-orion: EHCI orion driver
[    5.109723][    T1] orion-ehci d0050000.usb: EHCI Host Controller
[    5.115741][    T1] orion-ehci d0050000.usb: new USB bus registered, assigned bus number 1
[    5.123660][    T1] orion-ehci d0050000.usb: irq 25, io mem 0xd0050000
[    5.154605][    T1] orion-ehci d0050000.usb: USB 2.0 started, EHCI 1.00
[    5.161093][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.08
[    5.169460][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.176828][    T1] usb usb1: Product: EHCI Host Controller
[    5.182017][    T1] usb usb1: Manufacturer: Linux 5.8.5-mvebu-370xp-tld-1 ehci_hcd
[    5.189057][    T1] usb usb1: SerialNumber: d0050000.usb
[    5.195098][    T1] hub 1-0:1.0: USB hub found
[    5.199591][    T1] hub 1-0:1.0: 1 port detected
[    5.205447][    T1] xhci_hcd 0000:02:00.0: xHCI Host Controller
[    5.211479][    T1] xhci_hcd 0000:02:00.0: new USB bus registered, assigned bus number 2
[    5.219912][    T1] xhci_hcd 0000:02:00.0: hcc params 0x200073a1 hci version 0x100 quirks 0x0000000000080010
[    5.230035][    T1] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.08
[    5.238425][    T1] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.245798][ T1198] ata2: SATA link down (SStatus 0 SControl 300)
[    5.251486][ T1194] ata1: SATA link down (SStatus 0 SControl 300)
[    5.257163][    T1] usb usb2: Product: xHCI Host Controller
[    5.262403][    T1] usb usb2: Manufacturer: Linux 5.8.5-mvebu-370xp-tld-1 xhci-hcd
[    5.269429][ T1209] ata3: SATA link down (SStatus 0 SControl F300)
[    5.275204][    T1] usb usb2: SerialNumber: 0000:02:00.0
[    5.281146][    T1] hub 2-0:1.0: USB hub found
[    5.285656][    T1] hub 2-0:1.0: 2 ports detected
[    5.291100][    T1] xhci_hcd 0000:02:00.0: xHCI Host Controller
[    5.297009][    T1] xhci_hcd 0000:02:00.0: new USB bus registered, assigned bus number 3
[    5.304484][    T1] xhci_hcd 0000:02:00.0: Host supports USB 3.0 SuperSpeed
[    5.311232][    T1] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    5.319649][    T1] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.08
[    5.327978][    T1] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.335327][    T1] usb usb3: Product: xHCI Host Controller
[    5.340464][    T1] usb usb3: Manufacturer: Linux 5.8.5-mvebu-370xp-tld-1 xhci-hcd
[    5.347483][    T1] usb usb3: SerialNumber: 0000:02:00.0
[    5.353322][    T1] hub 3-0:1.0: USB hub found
[    5.357806][    T1] hub 3-0:1.0: 2 ports detected
[    5.363890][    T1] usbcore: registered new interface driver usblp
[    5.370581][    T1] usbcore: registered new interface driver usb-storage
[    5.377809][    T1] mousedev: PS/2 mouse device common for all mice
[    5.385730][    T1] i2c /dev entries driver
[    5.394142][    T1] rtc-ds1307 0-0068: 'wakeup-source' is set, request for an IRQ is disabled!
[    5.407654][    T1] rtc-ds1307 0-0068: registered as rtc0
[    5.413671][    T1] rtc-ds1307 0-0068: setting system clock to 2024-03-10T16:53:39 UTC (1710089619)
[    5.456313][    T1] orion_wdt: Initial timeout 229 sec
[    5.462741][    T1] device-mapper: uevent: version 1.0.3
[    5.468695][    T1] device-mapper: ioctl: 4.42.0-ioctl (2020-02-27) initialised: dm-devel@redhat.com
[    5.477977][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    5.484839][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    5.491576][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    5.498615][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    5.504948][    T1] device-mapper: raid: Loading target version 1.15.1
[    5.518475][    T1] marvell-cesa d0090000.crypto: CESA device successfully registered
[    5.526558][    T1] hid: raw HID events driver (C) Jiri Kosina
[    5.533209][    T1] usbcore: registered new interface driver usbhid
[    5.539504][    T1] usbhid: USB HID core driver
[    5.544404][    T1] drop_monitor: Initializing network drop monitor service
[    5.552153][    T1] NET: Registered protocol family 10
[    5.558420][    T1] Segment Routing with IPv6
[    5.562447][    T1] RPL Segment Routing with IPv6
[    5.566935][   T20] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    5.574121][    T1] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    5.582650][    T1] NET: Registered protocol family 17
[    5.588443][    T1] 8021q: 802.1Q VLAN Support v1.8
[    5.593025][    T1] Key type dns_resolver registered
[    5.597990][    T1] ThumbEE CPU extension supported.
[    5.602575][    T1] Registering SWP/SWPB emulation handler
[    5.608203][    T1] registered taskstats version 1
[    5.612642][    T1] Loading compiled-in X.509 certificates
[    5.618195][    T1] zswap: loaded using pool lzo/zbud
[    5.623327][    T1] Key type ._fscrypt registered
[    5.627834][    T1] Key type .fscrypt registered
[    5.632090][    T1] Key type fscrypt-provisioning registered
[    5.640346][    T1] Key type big_key registered
[    5.668579][    T1] Key type encrypted registered
[    5.677660][    T1] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[    5.688835][    T1] Freeing unused kernel memory: 1024K
[    5.716680][    T1] Checked W+X mappings: passed, no W+X pages found
[    5.722565][    T1] Run /init as init process
[    5.766632][   T20] usb 1-1: New USB device found, idVendor=152d, idProduct=0576, bcdDevice=41.01
[    5.779421][   T20] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
Loading, please wait...
[    5.792635][   T20] usb 1-1: Product: ANKEJE USB3.0
[    5.802503][   T20] usb 1-1: Manufacturer: ANKEJE USB3.0
[    5.813034][   T20] usb 1-1: SerialNumber: DD56419883014
Starting version 241
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.
Begin: Waiting for root file system ... Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
Begin: Running /scripts/local-block ... done.
done.
Gave up waiting for root file system device.  Common problems:
 - Boot args (cat /proc/cmdline)
   - Check rootdelay= (did the system wait long enough?)
 - Missing modules (cat /proc/modules; ls /dev)
ALERT!  LABEL=rootfs does not exist.  Dropping to a shell!


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

(initramfs)

Did someone with a successful Debian install on this system helps me ?

Best regards.
Re: From Stock to Debian on Netgear RN102 in 2024...
March 10, 2024 02:16PM
SuperPoney,

> I've trying to boot from stock to
> Debian-6.6.2-mvebu-tld-1-rootfs-bodhi.tar.bz2.
> Here are the steps I've made :
>
> mkfs -t ext3 -L rootfs /dev/sda
> mount /dev/sda1 /media/eric/sda
> cd /media/eric/sda/
> tar -xjf
> /home/eric/Desktop/Debian-6.6.2-mvebu-tld-1-rootfs-bodhi.tar.bz2
> cd /media/eric/sda/boot
> cp -a uImage uImage.orig
> cp -a zImage-6.6.2-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-6.6.2-mvebu-tld-1 -d zImage.fdt uImage
> cd
> sync
> sync
> umount /media/eric/sda
>

Were you root user (not sudo) the whole time you create the rootfs as above? Also how did you create the partition before formatting it? using command fdisk or a GUI?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
SuperPoney
Re: From Stock to Debian on Netgear RN102 in 2024...
March 13, 2024 05:37AM
Hello bodji.
Thank you for your time and quick response.
After recreating my USB drive several times I've finally found the problem.

I cannot boot because the RN102 cannot find the usb 0:1 partition on my USB drive; So I had to change :

Marvell>> setenv load_uimage 'ext2load usb 0:1 0x2000000 /boot/uImage'
Marvell>> setenv load_uinitrd 'ext2load usb 0:1 0x3000000 /boot/uInitrd'

With :
Marvell>> setenv load_uimage 'ext2load usb 0:0 0x2000000 /boot/uImage'
Marvell>> setenv load_uinitrd 'ext2load usb 0:0 0x3000000 /boot/uInitrd'


Now I can boot from th USB drive :

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  0
Marvell>> bb  
Marvell>> 
Marvell>> 
Marvell>> 
Marvell>> 
Marvell>> setenv mtdparts 'mtdparts=pxa3xx_nand-0:0x180000@0(u-boot),0x20000@0x180000(u-boot-env),0x600000@0x200000(uImage),0x400000@0x800000(minirootfs),-(ubifs)'
Marvell>> setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial'
Marvell>> setenv load_uimage 'ext2load usb 0:0 0x2000000 /boot/uImage'
Marvell>> setenv load_uinitrd 'ext2load usb 0:0 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>> 
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
Loading file "/boot/uImage" from usb device 0
5073558 bytes read
Loading file "/boot/uInitrd" from usb device 0
5257173 bytes read
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-5.8.5-mvebu-370xp-tld-1
   Created:      2024-03-13   8:20:41 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5073494 Bytes = 4.8 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 03000000 ...
   Image Name:   initramfs-6.6.2-mvebu-tld-1
   Created:      2023-12-12  22:03:52 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    5257109 Bytes = 5 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.19.2-mvebu-370xp-tld-1 (root@tldDebian) (gcc (Debian 10.2.1-6) 10.2.1 20210110, GNU ld (GNU Binutils for Debian) 2.35.2) #1.0 PREEMPT Sun Aug 21 14:07:19 PDT 2022
[    0.000000][    T0] CPU: ARMv7 Processor [561f5811] revision 1 (ARMv7), cr=10c5387d
[    0.000000][    T0] CPU: PIPT / VIPT nonaliasing data cache, PIPT instruction cache
[    0.000000][    T0] OF: fdt: Machine model: NETGEAR ReadyNAS 102
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000][    T0]   HighMem  empty
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000][    T0] CPU: All CPU(s) started in SVC mode.
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 130048
[    0.000000][    T0] 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 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][    T0] Unknown kernel command line parameters "reason=normal bdtype=rn102", will be passed to user space.
[    0.000000][    T0] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 495148K/524288K available (10240K kernel code, 1494K rwdata, 3404K rodata, 1024K init, 468K bss, 29140K reserved, 0K cma-reserved, 0K highmem)
[    0.000000][    T0] trace event string verifier disabled
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0] 	Trampoline variant of Tasks RCU enabled.
[    0.000000][    T0] 	Tracing variant of Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] L2C: DT/platform modifies aux control register: 0x12086300 -> 0x1a086302
[    0.000000][    T0] Aurora cache controller enabled, 4 ways, 256 kB
[    0.000000][    T0] Aurora: CACHE_ID 0x00000100, AUX_CTRL 0x1a086302
[    0.000000][    T0] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[    0.000000][    T0] kfence: initialized - using 2097152 bytes for 255 objects at 0x(ptrval)-0x(ptrval)
[    0.000000][    T0] Switching to timer-based delay loop, resolution 53ns
[    0.000001][    T0] sched_clock: 32 bits at 19MHz, resolution 53ns, wraps every 114537122277ns
[    0.007873][    T0] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 101938038664 ns
[    0.019427][    T0] Console: colour dummy device 80x30
[    0.024155][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 37.49 BogoMIPS (lpj=187492)
[    0.034277][    T0] pid_max: default: 32768 minimum: 301
[    0.039464][    T0] LSM: Security Framework initializing
[    0.044505][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.051840][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.060634][    T0] CPU: Testing write buffer coherency: ok
[    0.067271][    T1] cblist_init_generic: Setting adjustable number of callback queues.
[    0.074560][    T1] cblist_init_generic: Setting shift to 0 and lim to 1.
[    0.080912][    T1] cblist_init_generic: Setting shift to 0 and lim to 1.
[    0.087290][    T1] Setting up static identity map for 0x100000 - 0x100060
[    0.093955][    T1] mvebu-soc-id: MVEBU SoC ID=0x6710, Rev=0x1
[    0.099419][    T1] mvebu-pmsu: Initializing Power Management Service Unit
[    0.105912][    T1] rcu: Hierarchical SRCU implementation.
[    0.110951][    T1] rcu: 	Max phase no-delay instances is 1000.
[    0.117655][    T1] devtmpfs: initialized
[    0.126270][    T1] VFP support v0.3: implementor 56 architecture 2 part 20 variant 9 rev 6
[    0.134371][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.144014][    T1] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.151011][    T1] prandom: seed boundary self test passed
[    0.158623][    T1] prandom: 100 self tests passed
[    0.163001][    T1] pinctrl core: initialized pinctrl subsystem
[    0.170164][    T1] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[    0.177316][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.185028][    T1] audit: initializing netlink subsys (disabled)
[    0.191653][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.191925][   T17] audit: type=2000 audit(0.170:1): state=initialized audit_enabled=0 res=1
[    0.205833][    T1] cpuidle: using governor ladder
[    0.210255][    T1] cpuidle: using governor menu
[    0.214690][    T1] hw-breakpoint: debug architecture 0x4 unsupported.
[    0.220772][    T1] mvebu-pmsu: CPU idle is currently broken: disabling
[    0.608552][    T1] raid6: int32x8  gen()   212 MB/s
[    0.948548][    T1] raid6: int32x4  gen()   232 MB/s
[    1.288564][    T1] raid6: int32x2  gen()   360 MB/s
[    1.628547][    T1] raid6: int32x1  gen()   408 MB/s
[    1.633090][    T1] raid6: using algorithm int32x1 gen() 408 MB/s
[    1.988547][    T1] raid6: .... xor() 171 MB/s, rmw enabled
[    1.993644][    T1] raid6: using intx1 recovery algorithm
[    2.009776][    T1] SCSI subsystem initialized
[    2.014481][    T1] usbcore: registered new interface driver usbfs
[    2.028651][    T1] usbcore: registered new interface driver hub
[    2.034209][    T1] usbcore: registered new device driver usb
[    2.048990][    T1] pps_core: LinuxPPS API ver. 1 registered
[    2.054162][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    2.078577][    T1] PTP clock support registered
[    2.089999][    T1] vgaarb: loaded
[    2.099143][    T1] clocksource: Switched to clocksource armada_370_xp_clocksource
[    2.119523][    T1] VFS: Disk quotas dquot_6.6.0
[    2.123828][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    2.160607][    T1] NET: Registered PF_INET protocol family
[    2.165998][    T1] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    2.189626][    T1] tcp_listen_portaddr_hash hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    2.198327][    T1] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    2.219209][    T1] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    2.226966][    T1] TCP bind hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    2.249197][    T1] TCP: Hash tables configured (established 4096 bind 4096)
[    2.256006][    T1] MPTCP token hash table entries: 512 (order: 0, 6144 bytes, linear)
[    2.279297][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    2.285915][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    2.309371][    T1] NET: Registered PF_UNIX/PF_LOCAL protocol family
[    2.315956][    T1] RPC: Registered named UNIX socket transport module.
[    2.329190][    T1] RPC: Registered udp transport module.
[    2.334127][    T1] RPC: Registered tcp transport module.
[    2.339055][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    2.359164][    T1] PCI: CLS 0 bytes, default 64
[    2.363774][   T31] Trying to unpack rootfs image as initramfs...
[    2.389479][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    2.396379][    T1] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    2.519730][    T1] Initialise system trusted keyrings
[    2.524504][    T1] Key type blacklist registered
[    2.540094][    T1] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    2.546742][    T1] zbud: loaded
[    2.569662][    T1] NFS: Registering the id_resolver key type
[    2.574972][    T1] Key type id_resolver registered
[    2.589248][    T1] Key type id_legacy registered
[    2.593670][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    2.609237][    T1] nfs4flexfilelayout_init: NFSv4 Flexfile Layout Driver Registering...
[    2.616651][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    2.779637][    T1] xor: measuring software checksum speed
[    2.799294][    T1]    arm4regs        :  1148 MB/sec
[    2.819247][    T1]    8regs           :   964 MB/sec
[    2.849393][    T1]    32regs          :  1113 MB/sec
[    2.854039][    T1] xor: using function: arm4regs (1148 MB/sec)
[    2.869397][    T1] async_tx: api initialized (async)
[    2.874045][    T1] Key type asymmetric registered
[    2.878421][    T1] Asymmetric key parser 'x509' registered
[    2.912455][   T31] Freeing initrd memory: 5136K
[    2.948893][    T1] alg: self-tests for CTR-KDF (hmac(sha256)) passed
[    2.955640][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 245)
[    2.963611][    T1] io scheduler bfq registered
[    2.970928][    T1] armada-370-pinctrl d0018000.pin-ctrl: registered pinctrl driver
[    2.984933][    T1] debugfs: Directory 'd0018100.gpio' with parent 'regmap' already present!
[    2.995083][    T1] debugfs: Directory 'd0018140.gpio' with parent 'regmap' already present!
[    3.006805][    T1] mvebu-pcie soc:pcie@82000000: host bridge /soc/pcie@82000000 ranges:
[    3.016551][    T1] mvebu-pcie soc:pcie@82000000:      MEM 0x00d0040000..0x00d0041fff -> 0x0000040000
[    3.025188][    T1] mvebu-pcie soc:pcie@82000000:      MEM 0x00d0080000..0x00d0081fff -> 0x0000080000
[    3.033847][    T1] mvebu-pcie soc:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    3.042812][    T1] mvebu-pcie soc:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    3.051753][    T1] mvebu-pcie soc:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    3.060700][    T1] mvebu-pcie soc:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0200000000
[    3.069772][    T1] mvebu-pcie soc:pcie@82000000: pcie0.0: legacy INTx interrupts cannot be masked individually, /soc/pcie@82000000/pcie@1,0 does not contain intx interrupt
[    3.083899][    T1] mvebu-pcie soc:pcie@82000000: pcie1.0: legacy INTx interrupts cannot be masked individually, /soc/pcie@82000000/pcie@2,0 does not contain intx interrupt
[    3.098464][    T1] mvebu-pcie soc:pcie@82000000: PCI host bridge to bus 0000:00
[    3.105554][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[    3.111313][    T1] pci_bus 0000:00: root bus resource [mem 0xd0040000-0xd0041fff] (bus address [0x00040000-0x00041fff])
[    3.121287][    T1] pci_bus 0000:00: root bus resource [mem 0xd0080000-0xd0081fff] (bus address [0x00080000-0x00081fff])
[    3.131254][    T1] pci_bus 0000:00: root bus resource [mem 0xf8000000-0xffdfffff]
[    3.138171][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    3.144735][    T1] pci 0000:00:01.0: [11ab:6710] type 01 class 0x060400
[    3.151536][    T1] pci 0000:00:02.0: [11ab:6710] type 01 class 0x060400
[    3.159718][    T1] PCI: bus0: Fast back to back transfers disabled
[    3.165466][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    3.173500][    T1] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    3.181971][    T1] pci 0000:01:00.0: [1b4b:9170] type 00 class 0x010601
[    3.188116][    T1] pci 0000:01:00.0: reg 0x10: [io  0xfffffff8-0xffffffff]
[    3.194827][    T1] pci 0000:01:00.0: reg 0x14: [io  0xfffffffc-0xffffffff]
[    3.201304][    T1] pci 0000:01:00.0: reg 0x18: [io  0xfffffff8-0xffffffff]
[    3.207675][    T1] pci 0000:01:00.0: reg 0x1c: [io  0xfffffffc-0xffffffff]
[    3.214087][    T1] pci 0000:01:00.0: reg 0x20: [io  0xfffffff0-0xffffffff]
[    3.220493][    T1] pci 0000:01:00.0: reg 0x24: [mem 0x40000000-0x400001ff]
[    3.226863][    T1] pci 0000:01:00.0: reg 0x30: [mem 0xd0000000-0xd000ffff pref]
[    3.233669][    T1] pci 0000:01:00.0: Enabling fixed DMA alias to 00.1
[    3.239722][    T1] pci 0000:01:00.0: PME# supported from D3hot
[    3.245628][    T1] pci 0000:00:01.0: ASPM: current common clock configuration is inconsistent, reconfiguring
[    3.280310][    T1] PCI: bus1: Fast back to back transfers disabled
[    3.286052][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    3.293185][    T1] pci 0000:02:00.0: [1b73:1009] type 00 class 0x0c0330
[    3.299660][    T1] pci 0000:02:00.0: reg 0x10: [mem 0x42000000-0x4200ffff 64bit]
[    3.306517][    T1] pci 0000:02:00.0: reg 0x18: [mem 0x42010000-0x42010fff 64bit]
[    3.313458][    T1] pci 0000:02:00.0: reg 0x20: [mem 0x42011000-0x42011fff 64bit]
[    3.320432][    T1] pci 0000:02:00.0: supports D1
[    3.324734][    T1] pci 0000:02:00.0: PME# supported from D0 D1 D3hot D3cold
[    3.331728][    T1] pci 0000:00:02.0: ASPM: current common clock configuration is inconsistent, reconfiguring
[    3.370210][    T1] PCI: bus2: Fast back to back transfers disabled
[    3.375952][    T1] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    3.382733][    T1] pci 0000:00:01.0: BAR 14: assigned [mem 0xf8000000-0xf80fffff]
[    3.389714][    T1] pci 0000:00:02.0: BAR 14: assigned [mem 0xf8100000-0xf81fffff]
[    3.396634][    T1] pci 0000:00:01.0: BAR 13: assigned [io  0x10000-0x10fff]
[    3.403190][    T1] pci 0000:01:00.0: BAR 6: assigned [mem 0xf8000000-0xf800ffff pref]
[    3.410448][    T1] pci 0000:01:00.0: BAR 5: assigned [mem 0xf8010000-0xf80101ff]
[    3.417290][    T1] pci 0000:01:00.0: BAR 4: assigned [io  0x10000-0x1000f]
[    3.423667][    T1] pci 0000:01:00.0: BAR 0: assigned [io  0x10010-0x10017]
[    3.430043][    T1] pci 0000:01:00.0: BAR 2: assigned [io  0x10018-0x1001f]
[    3.436407][    T1] pci 0000:01:00.0: BAR 1: assigned [io  0x10020-0x10023]
[    3.442782][    T1] pci 0000:01:00.0: BAR 3: assigned [io  0x10024-0x10027]
[    3.449285][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[    3.454460][    T1] pci 0000:00:01.0:   bridge window [io  0x10000-0x10fff]
[    3.460845][    T1] pci 0000:00:01.0:   bridge window [mem 0xf8000000-0xf80fffff]
[    3.467696][    T1] pci 0000:02:00.0: BAR 0: assigned [mem 0xf8100000-0xf810ffff 64bit]
[    3.475031][    T1] pci 0000:02:00.0: BAR 2: assigned [mem 0xf8110000-0xf8110fff 64bit]
[    3.482363][    T1] pci 0000:02:00.0: BAR 4: assigned [mem 0xf8111000-0xf8111fff 64bit]
[    3.489695][    T1] pci 0000:00:02.0: PCI bridge to [bus 02]
[    3.494869][    T1] pci 0000:00:02.0:   bridge window [mem 0xf8100000-0xf81fffff]
[    3.501954][    T1] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[    3.508312][    T1] pcieport 0000:00:02.0: enabling device (0140 -> 0142)
[    3.515805][    T1] mv_xor d0060800.xor: Marvell shared XOR driver
[    3.580433][    T1] mv_xor d0060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    3.591575][    T1] mv_xor d0060900.xor: Marvell shared XOR driver
[    3.660600][    T1] mv_xor d0060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    3.927859][    T1] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    3.942448][    T1] printk: console [ttyS0] disabled
[    3.970477][    T1] d0012000.serial: ttyS0 at MMIO 0xd0012000 (irq = 29, base_baud = 12500000) is a 16550A
[    3.979608][    T1] printk: console [ttyS0] enabled
[    3.979608][    T1] printk: console [ttyS0] enabled
[    3.988604][    T1] printk: bootconsole [earlycon0] disabled
[    3.988604][    T1] printk: bootconsole [earlycon0] disabled
[    4.002275][    T1] ahci 0000:01:00.0: enabling device (0146 -> 0147)
[    4.008530][    T1] ahci 0000:01:00.0: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
[    4.018849][    T1] ahci 0000:01:00.0: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    4.031517][    T1] scsi host0: ahci
[    4.036573][    T1] scsi host1: ahci
[    4.041014][    T1] ata1: SATA max UDMA/133 abar m512@0xf8010000 port 0xf8010100 irq 31
[    4.048410][    T1] ata2: SATA max UDMA/133 abar m512@0xf8010000 port 0xf8010180 irq 31
[    4.057966][    T1] sata_mv d00a0000.sata: slots 32 ports 1
[    4.067224][    T1] scsi host2: sata_mv
[    4.071799][    T1] ata3: SATA max UDMA/133 irq 32
[    4.078586][    T1] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xf1
[    4.086570][    T1] nand: Micron MT29F1G08ABADAWP
[    4.091087][    T1] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    4.099459][    T1] Bad block table found at page 65472, version 0x01
[    4.105939][    T1] Bad block table found at page 65408, version 0x01
[    4.112249][    T1] 5 cmdlinepart partitions found on MTD device pxa3xx_nand-0
[    4.118911][    T1] Creating 5 MTD partitions on "pxa3xx_nand-0":
[    4.124572][    T1] 0x000000000000-0x000000180000 : "u-boot"
[    4.132120][    T1] 0x000000180000-0x0000001a0000 : "u-boot-env"
[    4.141135][    T1] 0x000000200000-0x000000800000 : "uImage"
[    4.149827][    T1] 0x000000800000-0x000000c00000 : "minirootfs"
[    4.158768][    T1] 0x000000c00000-0x000008000000 : "ubifs"
[    4.169603][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[    4.177483][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[    4.225527][    T1] mvneta d0074000.ethernet eth0: Using random mac address 5a:bb:0f:0f:d6:3c
[    4.238680][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.246438][    T1] ehci-pci: EHCI PCI platform driver
[    4.251742][    T1] ehci-orion: EHCI orion driver
[    4.256390][    T1] orion-ehci d0050000.usb: EHCI Host Controller
[    4.262489][    T1] orion-ehci d0050000.usb: new USB bus registered, assigned bus number 1
[    4.270588][    T1] orion-ehci d0050000.usb: irq 35, io mem 0xd0050000
[    4.299196][    T1] orion-ehci d0050000.usb: USB 2.0 started, EHCI 1.00
[    4.305640][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.19
[    4.313989][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    4.321351][    T1] usb usb1: Product: EHCI Host Controller
[    4.326527][    T1] usb usb1: Manufacturer: Linux 5.19.2-mvebu-370xp-tld-1 ehci_hcd
[    4.333641][    T1] usb usb1: SerialNumber: d0050000.usb
[    4.339684][    T1] hub 1-0:1.0: USB hub found
[    4.344464][    T1] hub 1-0:1.0: 1 port detected
[    4.350608][    T1] usbcore: registered new interface driver usblp
[    4.357968][    T1] usbcore: registered new interface driver usb-storage
[    4.365412][    T1] mousedev: PS/2 mouse device common for all mice
[    4.373900][    T1] i2c_dev: i2c /dev entries driver
[    4.383653][  T664] ata2: SATA link down (SStatus 0 SControl 300)
[    4.390180][  T659] ata1: SATA link down (SStatus 0 SControl 300)
[    4.396049][    T1] rtc-ds1307 0-0068: 'wakeup-source' is set, request for an IRQ is disabled!
[    4.404075][  T676] ata3: SATA link down (SStatus 0 SControl F300)
[    4.414633][    T1] rtc-ds1307 0-0068: registered as rtc0
[    4.422478][    T1] rtc-ds1307 0-0068: setting system clock to 2024-03-13T10:23:22 UTC (1710325402)
[    4.461074][    T1] orion_wdt: Initial timeout 229 sec
[    4.468462][    T1] device-mapper: uevent: version 1.0.3
[    4.474296][    T1] device-mapper: ioctl: 4.47.0-ioctl (2022-07-28) initialised: dm-devel@redhat.com
[    4.483696][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[    4.490676][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[    4.497422][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[    4.504294][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[    4.510610][    T1] device-mapper: raid: Loading target version 1.15.1
[    4.524063][    T1] marvell-cesa d0090000.crypto: CESA device successfully registered
[    4.532260][    T1] hid: raw HID events driver (C) Jiri Kosina
[    4.539580][    T1] usbcore: registered new interface driver usbhid
[    4.545375][    T1] usbhid: USB HID core driver
[    4.551432][    T1] drop_monitor: Initializing network drop monitor service
[    4.558389][    T1] NET: Registered PF_INET6 protocol family
[    4.566103][    T1] Segment Routing with IPv6
[    4.570382][    T1] RPL Segment Routing with IPv6
[    4.574814][    T1] In-situ OAM (IOAM) with IPv6
[    4.579329][    T1] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    4.587617][    T1] NET: Registered PF_PACKET protocol family
[    4.594223][    T1] 8021q: 802.1Q VLAN Support v1.8
[    4.598804][    T1] Key type dns_resolver registered
[    4.603808][    T1] ThumbEE CPU extension supported.
[    4.608399][    T1] Registering SWP/SWPB emulation handler
[    4.614137][    T1] registered taskstats version 1
[    4.618582][    T1] Loading compiled-in X.509 certificates
[    4.624886][    T1] zswap: loaded using pool lzo/zbud
[    4.629636][   T60] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    4.637204][    T1] Key type ._fscrypt registered
[    4.641646][    T1] Key type .fscrypt registered
[    4.645938][    T1] Key type fscrypt-provisioning registered
[    4.654733][    T1] Key type big_key registered
[    4.687812][    T1] Key type encrypted registered
[    4.703468][    T1] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[    4.715908][    T1] Freeing unused kernel image (initmem) memory: 1024K
[    4.741287][    T1] Checked W+X mappings: passed, no W+X pages found
[    4.747187][    T1] Run /init as init process
Loading, please wait...
[    4.830751][   T60] usb 1-1: New USB device found, idVendor=0781, idProduct=5571, bcdDevice= 1.00
[    4.838980][   T60] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    4.850741][   T60] usb 1-1: Product: Cruzer Fit
[    4.855029][   T60] usb 1-1: Manufacturer: SanDisk
[    4.872391][   T60] usb 1-1: SerialNumber: 4C530001151025117080
[    4.886419][   T60] usb-storage 1-1:1.0: USB Mass Storage device detected
[    4.900082][   T60] scsi host3: usb-storage 1-1:1.0
Starting systemd-udevd version 252.19-1~deb12u1
[    5.940681][   T35] scsi 3:0:0:0: Direct-Access     SanDisk  Cruzer Fit       1.00 PQ: 0 ANSI: 6
[    5.964735][   T27] sd 3:0:0:0: [sda] 61341696 512-byte logical blocks: (31.4 GB/29.3 GiB)
[    5.981018][   T27] sd 3:0:0:0: [sda] Write Protect is off
[    5.999319][   T27] sd 3:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    6.028760][   T27] sd 3:0:0:0: [sda] Attached SCSI removable disk
[    6.715932][  T977] mvneta d0074000.ethernet end1: renamed from eth0
[    6.742548][  T976] mtdblock: MTD device 'u-boot' is NAND, please consider using UBI block devices instead.
[    6.758319][  T975] mtdblock: MTD device 'u-boot-env' is NAND, please consider using UBI block devices instead.
[    6.769087][  T983] mtdblock: MTD device 'uImage' is NAND, please consider using UBI block devices instead.
[    6.790278][  T974] mtdblock: MTD device 'ubifs' is NAND, please consider using UBI block devices instead.
[    6.819764][  T985] mtdblock: MTD device 'minirootfs' is NAND, please consider using UBI block devices instead.
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.
Begin: Will now check root file system ... fsck from util-linux 2.38.1
[/sbin/fsck.ext3 (1) -- /dev/sda] fsck.ext3 -a -C0 /dev/sda 
rootfs: clean, 25887/1916928 files, 380270/7667712 blocks
done.
[   18.420097][ T1003] EXT4-fs (sda): mounting ext3 file system using the ext4 subsystem
[   18.542698][ T1003] EXT4-fs (sda): mounted filesystem with ordered data mode. Quota mode: none.
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.

INIT: version 3.06 booting


INIT: No inittab.d directory found

Using makefile-style concurrent boot in runlevel S.
Setting hostname to 'debian'...done.
Starting hotplug events dispatcher: systemd-udevd.
Synthesizing the initial hotplug events (subsystems)...done.
Synthesizing the initial hotplug events (devices)...done.
Waiting for /dev to be fully populated...[   22.400471][ T1136] mtdblock: MTD device 'u-boot-env' is NAND, please consider using UBI block devices instead.
[   22.417825][ T1140] mtdblock: MTD device 'u-boot' is NAND, please consider using UBI block devices instead.
[   22.468877][ T1138] mtdblock: MTD device 'uImage' is NAND, please consider using UBI block devices instead.
[   22.522864][ T1141] mtdblock: MTD device 'minirootfs' is NAND, please consider using UBI block devices instead.
[   22.581610][ T1140] mtdblock: MTD device 'ubifs' is NAND, please consider using UBI block devices instead.
done.
Activating swap:.
[   25.649446][ T1282] EXT4-fs (sda): re-mounted. Quota mode: none.
Will now check all file systems.
Checking all file systems.
LABEL=rootfs is mounted
Done checking file systems.
Log is being saved in /var/log/fsck/checkfs if that location is writable.
Cleaning up temporary files...Cleaning /tmp...done.
 /tmp.
[   27.136827][  T961] random: crng init done
Will now mount local filesystems:.
Will now activate swapfile swap, if any:done.
Checking minimum space in /tmp...done.
Cleaning up temporary files....
Starting Setting kernel variables: sysctl.
Initializing random number generator...done.
Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.3-P1
Copyright 2004-2022 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Cannot find device "eth0"
Failed to get interface index: No such device

If you think you have received this message due to a bug rather
than a configuration issue please read the section on submitting
bugs on either our web page at www.isc.org or in the README file
before submitting a bug.  These pages explain the proper
process and the information we find helpful for debugging.

exiting.
ifup: failed to bring up eth0
failed.
Starting RPC port mapper daemon: rpcbind.
Starting NFS common utilities: statd idmapd.
Cleaning up temporary files....

INIT: Entering runlevel: 2

Using makefile-style concurrent boot in runlevel 2.
Not starting NFS kernel daemon: no exports ... (warning).
Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1771 (syslogd)
.
Starting periodic command scheduler: cron.
Starting system message bus: dbus.
Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
Starting NTP server: ntpd2024-03-13T03:23:51 ntpd[1826]: INIT: ntpd ntpsec-1.2.2: Starting
2024-03-13T03:23:51 ntpd[1826]: INIT: Command line: /usr/sbin/ntpd -p /var/run/ntpd.pid -g -u 104:109
.
Starting NTP server: ntpd.
Starting OpenBSD Secure Shell server: sshdsshd: no hostkeys available -- exiting.

 failed!
Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1797 (klogd)
.
Running local boot scripts (/etc/rc.local)

This is a good step.

I have no network (as you can see in the previouslog). Maybe because I'm booting with kernel "Linux-5.8.5-mvebu-370xp-tld-1" on "initramfs-6.6.2-mvebu-tld-1". I've tryed with kernel "Linux-6.6.2-mvebu-tld-1" I've created but this one is stuck at boot :

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
5195211 bytes read
Loading file "/boot/uInitrd" from usb device 0
5257173 bytes read
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-6.6.2-mvebu-tld-1
   Created:      2024-03-13   8:25:12 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5195147 Bytes = 5 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 03000000 ...
   Image Name:   initramfs-6.6.2-mvebu-tld-1
   Created:      2023-12-12  22:03:52 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    5257109 Bytes = 5 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...


I'm keeping my investigations...
SuperPoney
Re: From Stock to Debian on Netgear RN102 in 2024...
March 13, 2024 12:08PM
Continuing my setup, I was able to bring network.
For an unknown reason in my box the network card under "initramfs-6.6.2-mvebu-tld-1" (Debain 12) is named "end1" and not "end0" :

ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: end1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1024
    link/ether 7e:ae:eb:77:74:3f brd ff:ff:ff:ff:ff:ff
3: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000
    link/sit 0.0.0.0 brd 0.0.0.0
4: ip6tnl0@NONE: <NOARP> mtu 1452 qdisc noop state DOWN group default qlen 1000
    link/tunnel6 :: brd :: permaddr 4a9f:f73:a239::

So I had to change §etc/network/interfaces from
rename /end0=eth0
auto lo eth0
iface lo inet loopback
iface eth0 inet dhcp

to

rename /end1=eth0
auto lo eth0
iface lo inet loopback
iface eth0 inet dhcp

and then "ifup -a" to bring the network.
Re: From Stock to Debian on Netgear RN102 in 2024...
March 13, 2024 02:46PM
SuperPoney,

> Continuing my setup, I was able to bring network.
> For an unknown reason in my box the network card
> under "initramfs-6.6.2-mvebu-tld-1" (Debain 12) is
> named "end1" and not "end0" :

That was because your u-boot envs set it up to use egiga1.
Net:   , egiga1 [PRIME]
Power On!

FDT loaded successfully
Hit any key to stop autoboot:

Marvell>> printenv

eth1addr=E8:FC:AF:E5:6B:90
eth1mtu=1500
ethact=egiga1
ethaddr=00:50:43:00:02:02
ethmtu=1500
ethprime=egiga1

You could correct it in serial console if you need to. Otherwise keep using the current mods
rename /end1=eth0

And your current MAC address is one randomly generated by the kernel:
ip addr
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: end1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN group default qlen 1024
    link/ether 7e:ae:eb:77:74:3f brd ff:ff:ff:ff:ff:ff
3: sit0@NONE: <NOARP> mtu 1480 qdisc noop state DOWN group default qlen 1000
    link/sit 0.0.0.0 brd 0.0.0.0
4: ip6tnl0@NONE: <NOARP> mtu 1452 qdisc noop state DOWN group default qlen 1000
    link/tunnel6 :: brd :: permaddr 4a9f:f73:a239::

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
SuperPoney
Re: From Stock to Debian on Netgear RN102 in 2024...
March 13, 2024 03:18PM
Thank for the advice.
I'll check the random MAC address, I've found all the info on your forum.

Thank for what you are doing for the community, this is priceless!
Re: From Stock to Debian on Netgear RN102 in 2024...
March 13, 2024 03:35PM
Random MAC issue mentioned in the release thread

Quote

Updated 16 Dec 2023:

Rootfs Debian-6.6.2-mvebu-tld-1-rootfs-bodhi.tar.bz2 has been uploaded.

Basic Debian bookworm armhf rootfs for most MVEBU Armada NAS:
....


Note 6. Persistent MAC address (Optional):

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

To keep using the kernel generated local MAC address (if local MAC address was generated in your box) then chmod this script to non-executable.
chmod -x /root/set_persistent_mac_address

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

Your Email:


Subject:


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