Welcome! Log In Create A New Profile

Advanced

Debian on Freecom Silverstore 2 NAS

Posted by garagoyun 
Re: Debian on Freecom Silverstore 2 NAS
October 30, 2020 08:38AM
bodhi,

I could no find anything unusual with MV_BOOTSIZE_4M

In ./u-boot-3.5.9/board/mv_feroceon/mv_kw/mv_main.c:
#if defined(MV_BOOTSIZE_4M)
        flashSize = _4M;
#elif defined(MV_BOOTSIZE_8M)
        flashSize = _8M;
#elif defined(MV_BOOTSIZE_16M)
        flashSize = _16M;
#elif defined(MV_BOOTSIZE_32M)
        flashSize = _32M;
#elif defined(MV_BOOTSIZE_64M)
        flashSize = _64M;
#endif



./u-boot-3.5.9/include/config.mk in the build directory is as below:
ARCH   = arm
CPU    = arm926ejs
BOARD  = config_kw
VENDOR = mv_feroceon
MV_OUTPUT = db88f6282bp
MV_FLAGS += -DMV88F6282
MV_FLAGS += -DDB_88F6282A
MV_IMAGE_FLAGS = -DMV_SEC_256K
MV_IMAGE_FLAGS += -DMV_BOOTSIZE_16M
MV_IMAGE_FLAGS += -DMV_LARGE_PAGE
MV_FLAGS += -DMV_BOOTROM
MV_FLAGS += -DMV_MMC
MV_DDR_FREQ = 400ddr2db
CROSS_COMPILE = 
MV_DDR_FREQ = 400ddr3db
MV_FLAGS += -DMV_USB -DCONFIG_CMD_USB
MV_USB=y
MV_FLAGS += -DMV_NAND_BOOT
MV_FLAGS += -DMV_NAND
NAND_BOOT =y
MV_FLAGS += -DHNCN2_BOARD
CPPFLAGS += $(MV_IMAGE_FLAGS) $(MV_FLAGS)

MV_IMAGE_FLAGS += -DMV_BOOTSIZE_16M it looks like it is set as 16MB during compilation.

---------------------------------


Regards,
garagoyun
Re: Debian on Freecom Silverstore 2 NAS
November 05, 2020 02:24AM
bodhi,

After scratching my head for few days I tried generik's uboot (which he has provided two years ago) and it booted the new kernel image (5.2) without issues. As I already have the original uboot GPL source (based on uboot 1.1.4) I decided to try and build a new uboot. So I have cloned your uboot 2017 repo on github. Considering Freecom HNC-N2 should be simmilar to Zyxel NSA325, I have created the required files based on NSA325.

Below is the full log:
$ ./kwboot  -t -B 115200 /dev/ttyUSB0 -b u-boot-2020.11.04.kwb -p
Sending boot message. Please reboot the target...-
Sending boot image...
  0 % [......................................................................]
  1 % [......................................................................]
  3 % [......................................................................]
  5 % [......................................................................]
  7 % [......................................................................]
  8 % [......................................................................]
 10 % [......................................................................]
 12 % [......................................................................]
 14 % [......................................................................]
 16 % [......................................................................]
 17 % [......................................................................]
 19 % [......................................................................]
 21 % [......................................................................]
 23 % [......................................................................]
 24 % [......................................................................]
 26 % [......................................................................]
 28 % [......................................................................]
 30 % [......................................................................]
 32 % [......................................................................]
 33 % [......................................................................]
 35 % [......................................................................]
 37 % [......................................................................]
 39 % [......................................................................]
 41 % [......................................................................]
 42 % [......................................................................]
 44 % [......................................................................]
 46 % [......................................................................]
 48 % [......................................................................]
 49 % [......................................................................]
 51 % [......................................................................]
 53 % [......................................................................]
 55 % [......................................................................]
 57 % [......................................................................]
 58 % [......................................................................]
 60 % [......................................................................]
 62 % [......................................................................]
 64 % [......................................................................]
 66 % [......................................................................]
 67 % [......................................................................]
 69 % [......................................................................]
 71 % [......................................................................]
 73 % [......................................................................]
 74 % [......................................................................]
 76 % [......................................................................]
 78 % [......................................................................]
 80 % [......................................................................]
 82 % [......................................................................]
 83 % [......................................................................]
 85 % [......................................................................]
 87 % [......................................................................]
 89 % [......................................................................]
 91 % [......................................................................]
 92 % [......................................................................]
 94 % [......................................................................]
 96 % [......................................................................]
 98 % [......................................................................]
 99 % [.....]
[Type Ctrl-\ + c to quit]


U-Boot 2017.07-g697f50bf18-dirty (Nov 04 2020 - 19:29:07 +0000)
FREECOM SILVERSTORE HNC-N2 2-Bay NAS

SoC:   Kirkwood 88F6282_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  128 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0
PHY reset timed out
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot:  0 
HNCN2> 
HNCN2> 
HNCN2> 
HNCN2> bdinfo
arch_number = 0x00001426
boot_params = 0x00000100
DRAM bank   = 0x00000000
-> start    = 0x00000000
-> size     = 0x08000000
eth0name    = egiga0
ethaddr     = 52:3b:20:9c:11:51
current eth = egiga0
ip_addr     = 192.168.0.231
baudrate    = 115200 bps
TLB addr    = 0x07FF0000
relocaddr   = 0x07F2F000
reloc off   = 0x0792F000
irq_sp      = 0x07B0EEF0
sp start    = 0x07B0EEE0
HNCN2> 
HNCN2> 
HNCN2> 
HNCN2> pri
arcNumber=4495
baudrate=115200
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; reset
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm$load_uimage_addr; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
console=console=ttyS0,115200
device=0:1
devices=usb ide
disks=0 1 2 3
dtb_file=/boot/dts/silverstore-hncn2.dtb
ethact=egiga0
ethaddr=52:3b:20:9c:11:51
if_netconsole=ping $serverip
ipaddr=192.168.0.231
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:0x100000(uboot),0x80000(stock_uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2)
partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
serverip=192.168.0.220
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_ready_retry=15

Environment size: 3018/131068 bytes
HNCN2> 
HNCN2> 
HNCN2> 
HNCN2> version

U-Boot 2017.07-g697f50bf18-dirty (Nov 04 2020 - 19:29:07 +0000)
FREECOM SILVERSTORE HNC-N2 2-Bay NAS
arm-buildroot-linux-gnueabi-gcc.br_real (Buildroot 2018.02-rc2-00006-g39101b7) 6.4.0
GNU ld (GNU Binutils) 2.29.1
HNCN2> 
HNCN2> 
HNCN2> 
HNCN2> setenv mtdparts 'mtdparts=orion_nand:0x000a0000@0x0(uboot),0x00040000@0x000a0000(param),0x00280000@0x000e0000(preroot),0x00380000@0x00360000(uimage),0x076e0000@0x006e0000(rootfs),0x00240000@0x07dc0000(misc),128m@0x0(flash)'
HNCN2> setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 ${mtdparts} earlyprintk=serial' 
HNCN2> setenv bootcmd_usb 'usb start; ext2load usb 0:1 0x800000 /boot/uImage; ext2load usb 0:1 0x2100000 /boot/uInitrd'
HNCN2> setenv bootcmd_exec 'run set_bootargs; run bootcmd_usb; bootm 0x800000 0x2100000'
HNCN2> run bootcmd_exec
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found
4976168 bytes read in 1629 ms (2.9 MiB/s)
9713936 bytes read in 1558 ms (5.9 MiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.2.9-kirkwood-tld-1
   Created:      2020-10-26   9:49:15 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4976104 Bytes = 4.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02100000 ...
   Image Name:   initramfs-5.2.9-kirkwood-tld-1
   Created:      2019-08-25   2:22:50 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9713872 Bytes = 9.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
   Loading Ramdisk to 071ca000, end 07b0d8d0 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.2.9-kirkwood-tld-1 (root@tldDebian) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)) #1 PREEMPT Sat Aug 17 15:00:56 PDT 2019
[    0.000000][    T0] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000][    T0] CPU: VIVT data cache, VIVT instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Freecom Silverstore HNCN2
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:0x000a0000@0x0(uboot),0x00040000@0x000a0000(param),0x00280000@0x000e0000(preroot),0x00380000@0x00360000(uimage),0x076e0000@0x006e0000(rootfs),0x00240000@0x07dc0000(misc),128m@0x0(flash) earlyprintk=serial
[    0.000000][    T0] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000][    T0] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000][    T0] Memory: 104828K/131072K available (9216K kernel code, 868K rwdata, 3400K rodata, 1024K init, 301K bss, 26244K reserved, 0K cma-reserved)
[    0.000000][    T0] random: get_random_u32 called from cache_alloc_refill+0x38c/0x928 with crng_init=0
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0]  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] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000010][    T0] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.008603][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.016117][    T0] Console: colour dummy device 80x30
[    0.021372][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.032703][    T0] pid_max: default: 32768 minimum: 301
[    0.038457][    T0] LSM: Security Framework initializing
[    0.044044][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.051459][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.060258][    T0] *** VALIDATE proc ***
[    0.064572][    T0] *** VALIDATE cgroup1 ***
[    0.068931][    T0] *** VALIDATE cgroup2 ***
[    0.073322][    T0] CPU: Testing write buffer coherency: ok
[    0.080860][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.088111][    T1] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.094343][    T1] rcu: Hierarchical SRCU implementation.
[    0.103730][    T1] devtmpfs: initialized
[    0.114621][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.125299][    T1] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.132496][    T1] xor: measuring software checksum speed
[    0.228632][    T1]    arm4regs  :   903.200 MB/sec
[    0.328627][    T1]    8regs     :   542.000 MB/sec
[    0.428630][    T1]    32regs    :   788.000 MB/sec
[    0.433539][    T1] xor: using function: arm4regs (903.200 MB/sec)
[    0.439799][    T1] prandom: seed boundary self test passed
[    0.450466][    T1] prandom: 100 self tests passed
[    0.455286][    T1] pinctrl core: initialized pinctrl subsystem
[    0.462885][    T1] NET: Registered protocol family 16
[    0.468720][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.477254][    T1] audit: initializing netlink subsys (disabled)
[    0.484773][   T14] audit: type=2000 audit(0.470:1): state=initialized audit_enabled=0 res=1
[    0.493418][    T1] cpuidle: using governor ladder
[    0.498315][    T1] cpuidle: using governor menu
[    0.503681][    T1] Feroceon L2: Enabling L2
[    0.508022][    T1] Feroceon L2: Cache support initialised.
[    0.521236][    T1] No ATAGs?
[    2.568612][    C0] random: fast init done
[    7.642493][   T71] alg: No test for lzo-rle (lzo-rle-generic)
[    7.649024][   T73] alg: No test for lzo-rle (lzo-rle-scomp)
[    7.829338][    T1] raid6: int32x8  gen()   106 MB/s
[    7.999030][    T1] raid6: int32x8  xor()    72 MB/s
[    8.168890][    T1] raid6: int32x4  gen()   107 MB/s
[    8.338789][    T1] raid6: int32x4  xor()    69 MB/s
[    8.509137][    T1] raid6: int32x2  gen()   110 MB/s
[    8.678695][    T1] raid6: int32x2  xor()    78 MB/s
[    8.849085][    T1] raid6: int32x1  gen()    83 MB/s
[    9.018751][    T1] raid6: int32x1  xor()    57 MB/s
[    9.023738][    T1] raid6: using algorithm int32x2 gen() 110 MB/s
[    9.029878][    T1] raid6: .... xor() 78 MB/s, rmw enabled
[    9.035387][    T1] raid6: using intx1 recovery algorithm
[    9.041114][    T1] vgaarb: loaded
[    9.045109][    T1] SCSI subsystem initialized
[    9.050190][    T1] usbcore: registered new interface driver usbfs
[    9.056464][    T1] usbcore: registered new interface driver hub
[    9.062641][    T1] usbcore: registered new device driver usb
[    9.068657][    T1] pps_core: LinuxPPS API ver. 1 registered
[    9.074340][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    9.084255][    T1] PTP clock support registered
[    9.090502][    T1] clocksource: Switched to clocksource orion_clocksource
[   10.337678][    T1] VFS: Disk quotas dquot_6.6.0
[   10.342468][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[   10.361848][    T1] NET: Registered protocol family 2
[   10.367895][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[   10.376407][    T1] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[   10.384185][    T1] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[   10.391339][    T1] TCP: Hash tables configured (established 1024 bind 1024)
[   10.398523][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes)
[   10.405132][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[   10.412425][    T1] NET: Registered protocol family 1
[   10.418232][    T1] RPC: Registered named UNIX socket transport module.
[   10.424983][    T1] RPC: Registered udp transport module.
[   10.430413][    T1] RPC: Registered tcp transport module.
[   10.435864][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   10.443060][    T1] PCI: CLS 0 bytes, default 32
[   10.447977][    T1] Trying to unpack rootfs image as initramfs...
[   11.465494][    T1] Freeing initrd memory: 9488K
[   11.470394][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[   11.479142][    T1] Initialise system trusted keyrings
[   11.484401][    T1] Key type blacklist registered
[   11.489375][    T1] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[   11.496752][    T1] zbud: loaded
[   11.501380][    T1] NFS: Registering the id_resolver key type
[   11.507178][    T1] Key type id_resolver registered
[   11.512174][    T1] Key type id_legacy registered
[   11.516915][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[   11.524383][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   11.531827][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[   11.539870][    T1] fuse: init (API version 7.31)
[   11.545093][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[   11.552518][    T1] orangefs_init: module version upstream loaded
[   11.558642][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, no debug enabled
[   11.587504][    T1] async_tx: api initialized (async)
[   11.592709][    T1] Key type asymmetric registered
[   11.597525][    T1] Asymmetric key parser 'x509' registered
[   11.603296][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[   11.613283][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[   11.623731][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[   11.632140][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[   11.638358][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[   11.645999][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[   11.653144][    T1] pci 0000:00:01.0: [11ab:6282] type 01 class 0x060400
[   11.659917][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[   11.669068][    T1] PCI: bus0: Fast back to back transfers disabled
[   11.675424][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[   11.684422][    T1] pci 0000:01:00.0: [1033:0194] type 00 class 0x0c0330
[   11.691238][    T1] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00001fff 64bit]
[   11.698910][    T1] pci 0000:01:00.0: PME# supported from D0 D3hot
[   11.705226][    T1] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s x1 link at 0000:00:01.0 (capable of 4.000 Gb/s with 5 GT/s x1 link)
[   11.741990][    T1] PCI: bus1: Fast back to back transfers disabled
[   11.748304][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[   11.755907][    T1] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[   11.763550][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0100000-0xe01007ff pref]
[   11.771546][    T1] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
[   11.779607][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[   11.785330][    T1] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[   11.792998][    T1] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[   11.799905][    T1] pci 0000:01:00.0: enabling device (0140 -> 0142)
[   11.807007][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[   11.871487][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   11.881931][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[   11.951494][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   11.962283][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   11.970980][    T1] printk: console [ttyS0] disabled
[   11.976043][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[   11.985869][    T1] printk: console [ttyS0] enabled
[   11.985869][    T1] printk: console [ttyS0] enabled
[   11.995725][    T1] printk: bootconsole [earlycon0] disabled
[   11.995725][    T1] printk: bootconsole [earlycon0] disabled
[   12.016145][    T1] loop: module loaded
[   12.020742][    T1] sata_mv f1080000.sata: slots 32 ports 2
[   12.029589][    T1] scsi host0: sata_mv
[   12.034201][    T1] scsi host1: sata_mv
[   12.038407][    T1] ata1: SATA max UDMA/133 irq 33
[   12.043294][    T1] ata2: SATA max UDMA/133 irq 33
[   12.049264][    T1] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[   12.056501][    T1] nand: Samsung NAND 128MiB 3,3V 8-bit
[   12.061873][    T1] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[   12.070189][    T1] Scanning device for bad blocks
[   12.086016][    T1] Bad eraseblock 113 at 0x000000e20000
[   12.121201][    T1] Bad eraseblock 422 at 0x0000034c0000
[   12.184668][    T1] 7 cmdlinepart partitions found on MTD device orion_nand
[   12.191690][    T1] Creating 7 MTD partitions on "orion_nand":
[   12.197555][    T1] 0x000000000000-0x0000000a0000 : "uboot"
[   12.204734][    T1] 0x0000000a0000-0x0000000e0000 : "param"
[   12.211848][    T1] 0x0000000e0000-0x000000360000 : "preroot"
[   12.219092][    T1] 0x000000360000-0x0000006e0000 : "uimage"
[   12.226276][    T1] 0x0000006e0000-0x000007dc0000 : "rootfs"
[   12.233955][    T1] 0x000007dc0000-0x000008000000 : "misc"
[   12.240989][    T1] 0x000000000000-0x000008000000 : "flash"
[   12.250008][    T1] libphy: Fixed MDIO Bus: probed
[   12.255832][    T1] libphy: orion_mdio_bus: probed
[   12.277272][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   12.285509][    T1] mv643xx_eth_port mv643xx_eth_port.0: DMA mask not set
[   12.293627][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 52:3b:20:9c:11:51
[   12.303396][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   12.310770][    T1] ehci-pci: EHCI PCI platform driver
[   12.316042][    T1] ehci-orion: EHCI orion driver
[   12.321103][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[   12.327389][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   12.336056][    T1] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[   12.370534][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   12.377647][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[   12.386713][  T112] ata1: SATA link down (SStatus 0 SControl F300)
[   12.392971][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   12.401023][    T1] usb usb1: Product: EHCI Host Controller
[   12.406632][    T1] usb usb1: Manufacturer: Linux 5.2.9-kirkwood-tld-1 ehci_hcd
[   12.414143][    T1] usb usb1: SerialNumber: f1050000.ehci
[   12.420342][    T1] hub 1-0:1.0: USB hub found
[   12.424928][    T1] hub 1-0:1.0: 1 port detected
[   12.430595][    T1] xhci_hcd 0000:01:00.0: xHCI Host Controller
[   12.436574][    T1] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[   12.445104][    T1] xhci_hcd 0000:01:00.0: hcc params 0x014042cb hci version 0x96 quirks 0x0000000000000004
[   12.455534][    T1] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[   12.464578][    T1] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   12.472563][    T1] usb usb2: Product: xHCI Host Controller
[   12.478170][    T1] usb usb2: Manufacturer: Linux 5.2.9-kirkwood-tld-1 xhci-hcd
[   12.485536][    T1] usb usb2: SerialNumber: 0000:01:00.0
[   12.491554][    T1] hub 2-0:1.0: USB hub found
[   12.496083][    T1] hub 2-0:1.0: 2 ports detected
[   12.501518][    T1] xhci_hcd 0000:01:00.0: xHCI Host Controller
[   12.507484][    T1] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[   12.515698][    T1] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[   12.522859][    T1] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[   12.532025][    T1] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.02
[   12.541065][    T1] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   12.549021][    T1] usb usb3: Product: xHCI Host Controller
[   12.554643][    T1] usb usb3: Manufacturer: Linux 5.2.9-kirkwood-tld-1 xhci-hcd
[   12.562010][    T1] usb usb3: SerialNumber: 0000:01:00.0
[   12.568008][    T1] hub 3-0:1.0: USB hub found
[   12.572587][    T1] hub 3-0:1.0: 2 ports detected
[   12.578239][    T1] usbcore: registered new interface driver usb-storage
[   12.585468][    T1] mousedev: PS/2 mouse device common for all mice
[   12.592521][    T1] rtc-mv f1010300.rtc: registered as rtc0
[   12.598287][    T1] i2c /dev entries driver
[   12.604354][    T1] device-mapper: uevent: version 1.0.3
[   12.610024][    T1] device-mapper: ioctl: 4.40.0-ioctl (2019-01-18) initialised: dm-devel@redhat.com
[   12.619952][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[   12.627305][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[   12.634734][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[   12.642366][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[   12.649238][    T1] device-mapper: raid: Loading target version 1.14.0
[   12.656593][    T1] kirkwood-pinctrl f1010000.pin-controller: unsupported function gpio on pin mpp7
[   12.665759][    T1] pinctrl core: failed to register map default (0): invalid type given
[   12.673952][    T1] leds-gpio: probe of gpio-leds failed with error -22
[   12.680935][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[   12.687790][    T1] drop_monitor: Initializing network drop monitor service
[   12.695227][    T1] NET: Registered protocol family 17
[   12.700786][    T1] Key type dns_resolver registered
[   12.706852][    T1] registered taskstats version 1
[   12.711738][    T1] Loading compiled-in X.509 certificates
[   12.717368][    T1] zswap: loaded using pool lzo/zbud
[   12.742973][  T114] ata2: SATA link down (SStatus 0 SControl F300)
[   12.790633][   T15] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   12.844875][    T1] Key type big_key registered
[   12.898639][    T1] Key type encrypted registered
[   12.905879][    T1] rtc-mv f1010300.rtc: setting system clock to 2020-11-05T07:30:26 UTC (1604561426)
[   12.919343][    T1] Freeing unused kernel memory: 1024K
[   12.951389][    T1] Checked W+X mappings: passed, no W+X pages found
[   12.957803][    T1] Run /init as init process
[   13.001957][   T15] usb 1-1: New USB device found, idVendor=0781, idProduct=5530, bcdDevice= 2.00
[   13.011725][   T15] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   13.019642][   T15] usb 1-1: Product: Cruzer
Loading, please [   13.031009][   T15] usb 1-1: Manufacturer: SanDisk
wait...
[   13.036601][   T15] usb 1-1: SerialNumber: 431701078BE16843
[   13.049946][   T15] usb-storage 1-1:1.0: USB Mass Storage device detected
[   13.077380][   T15] scsi host2: usb-storage 1-1:1.0
Starting version 241
[   14.091686][    T7] scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer           8.02 PQ: 0 ANSI: 0 CCS
[   14.112007][   T23] sd 2:0:0:0: [sda] 31301631 512-byte logical blocks: (16.0 GB/14.9 GiB)
[   14.127690][   T23] sd 2:0:0:0: [sda] Write Protect is off
[   14.141004][   T23] sd 2:0:0:0: [sda] No Caching mode page found
[   14.147052][   T23] sd 2:0:0:0: [sda] Assuming drive cache: write through
[   14.174232][   T23]  sda: sda1
[   14.182744][   T23] sd 2:0:0:0: [sda] Attached SCSI removable disk
[   14.245337][  T174] usbcore: registered new interface driver uas
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.33.1
[/sbin/fsck.ext3 (1) -- /dev/sda1] fsck.ext3 -a -C0 /dev/sda1 
rootfs: clean, 15189/979200 files, 290272/3912192 blocks
done.
[   25.122126][  T192] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   25.168887][  T192] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.93 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Starting hotplug events dispatcher: systemd-udevd.
[ ok ] Synthesizing the initial hotplug events (subsystems)...done.
[ ok ] Synthesizing the initial hotplug events (devices)...[   28.510252][  T385] input: gpio_keys as /devices/platform/gpio_keys/input/input0
done.
[....] Waiting for /dev to be fully populated...[   28.609894][  T384] systemd-udevd[384]: Using default interface naming scheme 'v240'.
[   28.754128][  T384] systemd-udevd[384]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   29.117505][  T372] watchdog: f1020300.watchdog-timer: driver supplied timeout (4294967295) out of range
[   29.134996][    C0] random: crng init done
[   29.191577][  T373] adt7475 0-002e: hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[   29.291505][  T372] watchdog: f1020300.watchdog-timer: falling back to default timeout (21)
[   29.405049][  T373] adt7475 0-002e: ADT7473 device, revision 0
[   29.441121][  T372] orion_wdt: Initial timeout 21 sec
[   29.527372][  T373] adt7475 0-002e: Optional features: fan4 pwm2
[   29.586882][  T384] sd 2:0:0:0: Attached scsi generic sg0 type 0
[   29.593153][  T374] marvell-cesa f1030000.crypto: CESA device successfully registered
[   29.806679][  T385] systemd-udevd[385]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
done.
[ ok ] Setting hostname to 'debian'...done.
[ ok ] Activating swap:.
[   31.212883][  T594] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[info] Will now check all file systems.
fsck from util-linux 2.33.1
Checking all file systems.
LABEL=rootfs is mounted
[ ok ] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable..
[ 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 ] Starting Setting kernel variables: sysctl.
[ ok ] Initializing random number generator...done.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/52:3b:20:9c:11:51
Sending on   LPF/eth0/52:3b:20:9c:11:51
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 16
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
No DHCPOFFERS received.
No working leases in persistent database - sleeping.
done.
[....] Starting RPC port mapper daemon: rpcbind[   96.970650][ T1200] NET: Registered protocol family 10
[   96.977878][ T1200] Segment Routing with IPv6
. ok 
[ 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...
1336 (syslogd)
. ok 
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1363 (klogd)
. ok 
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting NFS common utilities: statd idmapd.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 10 debian ttyS0

debian login: root
Password: 
Last login: Sun Nov  1 09:45:56 PST 2020 on ttyS0
Linux debian 5.2.9-kirkwood-tld-1 #1 PREEMPT Sat Aug 17 15:00:56 PDT 2019 armv5tel

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@debian:~#

The kernel boots, I have not done any further testing.

Does the log look ok?

---------------------------------


Regards,
garagoyun
Re: Debian on Freecom Silverstore 2 NAS
November 05, 2020 04:30PM
garagoyun,

Looks great! of course with the usual GPIO differences between these Kirkwood boxes. But it is definitely good enough to replace the stock u-boot on this box.

[   12.665759][    T1] pinctrl core: failed to register map default (0): invalid type given
[   12.673952][    T1] leds-gpio: probe of gpio-leds failed with error -22

When it comes down to certain functionalities that are GPIO related you could control them directly in userspace (using /sys/class/leds). Or better yet, modify the u-boot GPIO definitions in the DTS to make them functional in the kerneI. I assume that from way back couple years ago, we used the NSA325 DTS as a base to write this Silverstore 2 NAS DTS, and did not try to complete the GPIO modification?


I do have a suggestion to change the booting envs that you did above in serial console (to make it better conforming with my default set of envs). Will be back to post that.

Good works :)

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Freecom Silverstore 2 NAS
November 14, 2020 12:59PM
bodhi,

I have modified the dts according to the information gathered previously combining with the information I have gathered from the gpl source.

Below is the boot log:

gft@X220:~/Downloads/Silver/kwboot-tool$ ./kwboot  -t -B 115200 /dev/ttyUSB0 -b u-boot-2020.11.13.kwb -p
Sending boot message. Please reboot the target.../
Sending boot image...
  0 % [......................................................................]
  1 % [......................................................................]
  3 % [......................................................................]
  5 % [......................................................................]
  7 % [......................................................................]
  8 % [......................................................................]
 10 % [......................................................................]
 12 % [......................................................................]
 14 % [......................................................................]
 16 % [......................................................................]
 17 % [......................................................................]
 19 % [......................................................................]
 21 % [......................................................................]
 23 % [......................................................................]
 24 % [......................................................................]
 26 % [......................................................................]
 28 % [......................................................................]
 30 % [......................................................................]
 32 % [......................................................................]
 33 % [......................................................................]
 35 % [......................................................................]
 37 % [......................................................................]
 39 % [......................................................................]
 41 % [......................................................................]
 42 % [......................................................................]
 44 % [......................................................................]
 46 % [......................................................................]
 48 % [......................................................................]
 49 % [......................................................................]
 51 % [......................................................................]
 53 % [......................................................................]
 55 % [......................................................................]
 57 % [......................................................................]
 58 % [......................................................................]
 60 % [......................................................................]
 62 % [......................................................................]
 64 % [......................................................................]
 65 % [......................................................................]
 67 % [......................................................................]
 69 % [......................................................................]
 71 % [......................................................................]
 73 % [......................................................................]
 74 % [......................................................................]
 76 % [......................................................................]
 78 % [......................................................................]
 80 % [......................................................................]
 82 % [......................................................................]
 83 % [......................................................................]
 85 % [......................................................................]
 87 % [......................................................................]
 89 % [......................................................................]
 90 % [......................................................................]
 92 % [......................................................................]
 94 % [......................................................................]
 96 % [......................................................................]
 98 % [......................................................................]
 99 % [.........]
[Type Ctrl-\ + c to quit]


U-Boot 2017.07-g697f50bf18-dirty (Nov 13 2020 - 21:02:54 +0000)
FREECOM SILVERSTORE HNC-N2 2-Bay NAS

SoC:   Kirkwood 88F6282_A1
DRAM:  128 MiB
WARNING: Caches not enabled
NAND:  128 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0
PHY reset timed out
MV88E1318 PHY initialized on egiga0
Hit any key to stop autoboot:  0 
HNCN2> setenv mtdparts 'mtdparts=orion_nand:0x000a0000@0x0(uboot),0x00040000@0x000a0000(param),0x00280000@0x000e0000(preroot),0x00380000@0x00360000(uimage),0x076e0000@0x006e0000(rootfs),0x00240000@0x07dc0000(misc),128m@0x0(flash)'
HNCN2> setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 ${mtdparts} earlyprintk=serial' 
HNCN2> setenv bootcmd_usb 'usb start; ext2load usb 0:1 0x800000 /boot/uImage; ext2load usb 0:1 0x2100000 /boot/uInitrd'
HNCN2> setenv bootcmd_exec 'run set_bootargs; run bootcmd_usb; bootm 0x800000 0x2100000'
HNCN2> run bootcmd_exec 
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 
Use USB retry period from the environment: 15 second(s)
1 Storage Device(s) found
4976452 bytes read in 1168 ms (4.1 MiB/s)
9713936 bytes read in 1205 ms (7.7 MiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.2.9-kirkwood-tld-1
   Created:      2020-11-14  18:25:10 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4976388 Bytes = 4.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02100000 ...
   Image Name:   initramfs-5.2.9-kirkwood-tld-1
   Created:      2019-08-25   2:22:50 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9713872 Bytes = 9.3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
   Loading Ramdisk to 071ca000, end 07b0d8d0 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.2.9-kirkwood-tld-1 (root@tldDebian) (gcc version 6.3.0 20170516 (Debian 6.3.0-18+deb9u1)) #1 PREEMPT Sat Aug 17 15:00:56 PDT 2019
[    0.000000][    T0] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000][    T0] CPU: VIVT data cache, VIVT instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Freecom Silverstore HNCN2
[    0.000000][    T0] printk: bootconsole [earlycon0] enabled
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 32512
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:0x000a0000@0x0(uboot),0x00040000@0x000a0000(param),0x00280000@0x000e0000(preroot),0x00380000@0x00360000(uimage),0x076e0000@0x006e0000(rootfs),0x00240000@0x07dc0000(misc),128m@0x0(flash) earlyprintk=serial
[    0.000000][    T0] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000][    T0] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000][    T0] Memory: 104828K/131072K available (9216K kernel code, 868K rwdata, 3400K rodata, 1024K init, 301K bss, 26244K reserved, 0K cma-reserved)
[    0.000000][    T0] random: get_random_u32 called from cache_alloc_refill+0x38c/0x928 with crng_init=0
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0]  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] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000010][    T0] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.008603][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.016111][    T0] Console: colour dummy device 80x30
[    0.021365][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.032693][    T0] pid_max: default: 32768 minimum: 301
[    0.038445][    T0] LSM: Security Framework initializing
[    0.044035][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.051442][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.060233][    T0] *** VALIDATE proc ***
[    0.064544][    T0] *** VALIDATE cgroup1 ***
[    0.068905][    T0] *** VALIDATE cgroup2 ***
[    0.073294][    T0] CPU: Testing write buffer coherency: ok
[    0.080818][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.088071][    T1] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.094308][    T1] rcu: Hierarchical SRCU implementation.
[    0.103691][    T1] devtmpfs: initialized
[    0.114708][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.125384][    T1] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.132576][    T1] xor: measuring software checksum speed
[    0.228631][    T1]    arm4regs  :   902.400 MB/sec
[    0.328628][    T1]    8regs     :   542.000 MB/sec
[    0.428634][    T1]    32regs    :   788.400 MB/sec
[    0.433548][    T1] xor: using function: arm4regs (902.400 MB/sec)
[    0.439810][    T1] prandom: seed boundary self test passed
[    0.450484][    T1] prandom: 100 self tests passed
[    0.455302][    T1] pinctrl core: initialized pinctrl subsystem
[    0.462878][    T1] NET: Registered protocol family 16
[    0.468708][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.477229][    T1] audit: initializing netlink subsys (disabled)
[    0.484775][   T14] audit: type=2000 audit(0.470:1): state=initialized audit_enabled=0 res=1
[    0.493414][    T1] cpuidle: using governor ladder
[    0.498317][    T1] cpuidle: using governor menu
[    0.503689][    T1] Feroceon L2: Enabling L2
[    0.508030][    T1] Feroceon L2: Cache support initialised.
[    0.521240][    T1] No ATAGs?
[    2.568612][    C0] random: fast init done
[    7.642378][   T71] alg: No test for lzo-rle (lzo-rle-generic)
[    7.648876][   T73] alg: No test for lzo-rle (lzo-rle-scomp)
[    7.829344][    T1] raid6: int32x8  gen()   106 MB/s
[    7.999044][    T1] raid6: int32x8  xor()    72 MB/s
[    8.168985][    T1] raid6: int32x4  gen()   107 MB/s
[    8.338788][    T1] raid6: int32x4  xor()    69 MB/s
[    8.508879][    T1] raid6: int32x2  gen()   110 MB/s
[    8.678694][    T1] raid6: int32x2  xor()    78 MB/s
[    8.849086][    T1] raid6: int32x1  gen()    83 MB/s
[    9.018754][    T1] raid6: int32x1  xor()    57 MB/s
[    9.023747][    T1] raid6: using algorithm int32x2 gen() 110 MB/s
[    9.029887][    T1] raid6: .... xor() 78 MB/s, rmw enabled
[    9.035395][    T1] raid6: using intx1 recovery algorithm
[    9.041124][    T1] vgaarb: loaded
[    9.045129][    T1] SCSI subsystem initialized
[    9.050212][    T1] usbcore: registered new interface driver usbfs
[    9.056482][    T1] usbcore: registered new interface driver hub
[    9.062659][    T1] usbcore: registered new device driver usb
[    9.068670][    T1] pps_core: LinuxPPS API ver. 1 registered
[    9.074357][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    9.084273][    T1] PTP clock support registered
[    9.090510][    T1] clocksource: Switched to clocksource orion_clocksource
[   10.337639][    T1] VFS: Disk quotas dquot_6.6.0
[   10.342433][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[   10.361831][    T1] NET: Registered protocol family 2
[   10.367867][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes)
[   10.376380][    T1] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[   10.384160][    T1] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[   10.391312][    T1] TCP: Hash tables configured (established 1024 bind 1024)
[   10.398495][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes)
[   10.405107][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[   10.412394][    T1] NET: Registered protocol family 1
[   10.418214][    T1] RPC: Registered named UNIX socket transport module.
[   10.424965][    T1] RPC: Registered udp transport module.
[   10.430386][    T1] RPC: Registered tcp transport module.
[   10.435838][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[   10.443034][    T1] PCI: CLS 0 bytes, default 32
[   10.447950][    T1] Trying to unpack rootfs image as initramfs...
[   11.465426][    T1] Freeing initrd memory: 9488K
[   11.470325][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[   11.479083][    T1] Initialise system trusted keyrings
[   11.484349][    T1] Key type blacklist registered
[   11.489323][    T1] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[   11.496699][    T1] zbud: loaded
[   11.501329][    T1] NFS: Registering the id_resolver key type
[   11.507131][    T1] Key type id_resolver registered
[   11.512133][    T1] Key type id_legacy registered
[   11.516880][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[   11.524348][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[   11.531793][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[   11.539837][    T1] fuse: init (API version 7.31)
[   11.545050][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[   11.552474][    T1] orangefs_init: module version upstream loaded
[   11.558599][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, no debug enabled
[   11.587618][    T1] async_tx: api initialized (async)
[   11.592823][    T1] Key type asymmetric registered
[   11.597638][    T1] Asymmetric key parser 'x509' registered
[   11.603407][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[   11.613394][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[   11.623843][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[   11.632253][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[   11.638473][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[   11.646112][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[   11.653259][    T1] pci 0000:00:01.0: [11ab:6282] type 01 class 0x060400
[   11.660029][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[   11.669217][    T1] PCI: bus0: Fast back to back transfers disabled
[   11.675573][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[   11.684560][    T1] pci 0000:01:00.0: [1033:0194] type 00 class 0x0c0330
[   11.691369][    T1] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x00001fff 64bit]
[   11.699041][    T1] pci 0000:01:00.0: PME# supported from D0 D3hot
[   11.705356][    T1] pci 0000:01:00.0: 2.000 Gb/s available PCIe bandwidth, limited by 2.5 GT/s x1 link at 0000:00:01.0 (capable of 4.000 Gb/s with 5 GT/s x1 link)
[   11.742030][    T1] PCI: bus1: Fast back to back transfers disabled
[   11.748347][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[   11.755954][    T1] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[   11.763602][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0100000-0xe01007ff pref]
[   11.771598][    T1] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
[   11.779659][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[   11.785382][    T1] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[   11.793051][    T1] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[   11.799956][    T1] pci 0000:01:00.0: enabling device (0140 -> 0142)
[   11.807063][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[   11.871504][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   11.881965][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[   11.951499][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[   11.962276][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   11.970927][    T1] printk: console [ttyS0] disabled
[   11.975990][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[   11.985813][    T1] printk: console [ttyS0] enabled
[   11.985813][    T1] printk: console [ttyS0] enabled
[   11.995673][    T1] printk: bootconsole [earlycon0] disabled
[   11.995673][    T1] printk: bootconsole [earlycon0] disabled
[   12.016115][    T1] loop: module loaded
[   12.020705][    T1] sata_mv f1080000.sata: slots 32 ports 2
[   12.029558][    T1] scsi host0: sata_mv
[   12.034165][    T1] scsi host1: sata_mv
[   12.038362][    T1] ata1: SATA max UDMA/133 irq 33
[   12.043249][    T1] ata2: SATA max UDMA/133 irq 33
[   12.049298][    T1] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[   12.056491][    T1] nand: Samsung NAND 128MiB 3,3V 8-bit
[   12.061864][    T1] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[   12.070179][    T1] Scanning device for bad blocks
[   12.085989][    T1] Bad eraseblock 113 at 0x000000e20000
[   12.121160][    T1] Bad eraseblock 422 at 0x0000034c0000
[   12.184627][    T1] 7 cmdlinepart partitions found on MTD device orion_nand
[   12.191654][    T1] Creating 7 MTD partitions on "orion_nand":
[   12.197521][    T1] 0x000000000000-0x0000000a0000 : "uboot"
[   12.204716][    T1] 0x0000000a0000-0x0000000e0000 : "param"
[   12.211847][    T1] 0x0000000e0000-0x000000360000 : "preroot"
[   12.219060][    T1] 0x000000360000-0x0000006e0000 : "uimage"
[   12.226270][    T1] 0x0000006e0000-0x000007dc0000 : "rootfs"
[   12.233969][    T1] 0x000007dc0000-0x000008000000 : "misc"
[   12.240976][    T1] 0x000000000000-0x000008000000 : "flash"
[   12.250007][    T1] libphy: Fixed MDIO Bus: probed
[   12.255833][    T1] libphy: orion_mdio_bus: probed
[   12.277627][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   12.285852][    T1] mv643xx_eth_port mv643xx_eth_port.0: DMA mask not set
[   12.293919][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 52:3b:20:9c:11:51
[   12.303683][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   12.311056][    T1] ehci-pci: EHCI PCI platform driver
[   12.316320][    T1] ehci-orion: EHCI orion driver
[   12.321385][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[   12.327689][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   12.336369][    T1] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[   12.370542][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   12.377318][  T112] ata1: SATA link down (SStatus 0 SControl F300)
[   12.383908][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[   12.393019][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   12.401012][    T1] usb usb1: Product: EHCI Host Controller
[   12.406758][    T1] usb usb1: Manufacturer: Linux 5.2.9-kirkwood-tld-1 ehci_hcd
[   12.414159][    T1] usb usb1: SerialNumber: f1050000.ehci
[   12.420304][    T1] hub 1-0:1.0: USB hub found
[   12.424894][    T1] hub 1-0:1.0: 1 port detected
[   12.430479][    T1] xhci_hcd 0000:01:00.0: xHCI Host Controller
[   12.436546][    T1] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[   12.445079][    T1] xhci_hcd 0000:01:00.0: hcc params 0x014042cb hci version 0x96 quirks 0x0000000000000004
[   12.455511][    T1] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.02
[   12.464552][    T1] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   12.472536][    T1] usb usb2: Product: xHCI Host Controller
[   12.478136][    T1] usb usb2: Manufacturer: Linux 5.2.9-kirkwood-tld-1 xhci-hcd
[   12.485510][    T1] usb usb2: SerialNumber: 0000:01:00.0
[   12.491514][    T1] hub 2-0:1.0: USB hub found
[   12.496038][    T1] hub 2-0:1.0: 2 ports detected
[   12.501493][    T1] xhci_hcd 0000:01:00.0: xHCI Host Controller
[   12.507467][    T1] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[   12.515682][    T1] xhci_hcd 0000:01:00.0: Host supports USB 3.0 SuperSpeed
[   12.522850][    T1] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[   12.532017][    T1] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003, bcdDevice= 5.02
[   12.541056][    T1] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   12.549012][    T1] usb usb3: Product: xHCI Host Controller
[   12.554636][    T1] usb usb3: Manufacturer: Linux 5.2.9-kirkwood-tld-1 xhci-hcd
[   12.562011][    T1] usb usb3: SerialNumber: 0000:01:00.0
[   12.567993][    T1] hub 3-0:1.0: USB hub found
[   12.572578][    T1] hub 3-0:1.0: 2 ports detected
[   12.578228][    T1] usbcore: registered new interface driver usb-storage
[   12.585484][    T1] mousedev: PS/2 mouse device common for all mice
[   12.592540][    T1] rtc-mv f1010300.rtc: registered as rtc0
[   12.598306][    T1] i2c /dev entries driver
[   12.604351][    T1] device-mapper: uevent: version 1.0.3
[   12.610045][    T1] device-mapper: ioctl: 4.40.0-ioctl (2019-01-18) initialised: dm-devel@redhat.com
[   12.619973][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[   12.627332][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[   12.634762][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[   12.642389][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[   12.649255][    T1] device-mapper: raid: Loading target version 1.14.0
[   12.657671][    T1] hidraw: raw HID events driver (C) Jiri Kosina
[   12.664254][    T1] drop_monitor: Initializing network drop monitor service
[   12.671685][    T1] NET: Registered protocol family 17
[   12.677187][    T1] Key type dns_resolver registered
[   12.683716][    T1] registered taskstats version 1
[   12.688585][    T1] Loading compiled-in X.509 certificates
[   12.694243][    T1] zswap: loaded using pool lzo/zbud
[   12.790615][   T15] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   12.816490][    T1] Key type big_key registered
[   12.869977][    T1] Key type encrypted registered
[   12.877272][    T1] rtc-mv f1010300.rtc: setting system clock to 2020-11-14T18:28:08 UTC (1605378488)
[   12.910565][  T114] ata2: SATA link up 1.5 Gbps (SStatus 113 SControl F300)
[   12.922157][  T114] ata2.00: ATA-8: ST3500312CS, SC13, max UDMA/133
[   12.928465][  T114] ata2.00: 976773168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   12.942753][  T114] ata2.00: configured for UDMA/133
[   12.958356][   T23] scsi 1:0:0:0: Direct-Access     ATA      ST3500312CS      SC13 PQ: 0 ANSI: 5
[   12.968526][    T7] sd 1:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/466 GiB)
[   12.977333][    T7] sd 1:0:0:0: [sda] Write Protect is off
[   12.983106][    T7] sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   13.011503][   T15] usb 1-1: New USB device found, idVendor=0781, idProduct=5530, bcdDevice= 2.00
[   13.020445][   T15] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   13.028363][   T15] usb 1-1: Product: Cruzer
[   13.032692][   T15] usb 1-1: Manufacturer: SanDisk
[   13.037515][   T15] usb 1-1: SerialNumber: 431701078BE16843
[   13.043976][   T15] usb-storage 1-1:1.0: USB Mass Storage device detected
[   13.051354][   T15] scsi host2: usb-storage 1-1:1.0
[   13.134784][    T7]  sda: sda1 sda2 sda3 sda4 sda5
[   13.142507][    T7] sd 1:0:0:0: [sda] Attached SCSI disk
[   13.151568][    T1] Freeing unused kernel memory: 1024K
[   13.171287][    T1] Checked W+X mappings: passed, no W+X pages found
[   13.177679][    T1] Run /init as init process
Loading, please wait...
Starting version 241
[   14.091750][    T7] scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer           8.02 PQ: 0 ANSI: 0 CCS
[   14.122439][   T23] sd 2:0:0:0: [sdb] 31301631 512-byte logical blocks: (16.0 GB/14.9 GiB)
[   14.151199][   T23] sd 2:0:0:0: [sdb] Write Protect is off
[   14.163583][   T23] sd 2:0:0:0: [sdb] No Caching mode page found
[   14.169685][   T23] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[   14.215556][   T23]  sdb: sdb1
[   14.224809][   T23] sd 2:0:0:0: [sdb] Attached SCSI removable disk
[   14.422127][  T164] usbcore: registered new interface driver uas
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.33.1
[/sbin/fsck.ext3 (1) -- /dev/sdb1] fsck.ext3 -a -C0 /dev/sdb1 
rootfs: clean, 17136/979200 files, 302482/3912192 blocks
done.
[   25.432190][  T190] EXT4-fs (sdb1): mounting ext3 file system using the ext4 subsystem
[   25.479448][  T190] 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.93 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Starting hotplug events dispatcher: systemd-udevd.
[ ok ] Synthesizing the initial hotplug events (subsystems)...done.
[....] Synthesizing the initial hotplug events (devices)...[   28.610919][    C0] random: crng init done
[   28.832690][  T373] input: gpio_keys as /devices/platform/gpio_keys/input/input0
done.
[....] Waiting for /dev to be fully populated...[   29.101661][  T403] systemd-udevd[403]: Using default interface naming scheme 'v240'.
[   29.235290][  T403] systemd-udevd[403]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   29.514357][  T370] watchdog: f1020300.watchdog-timer: driver supplied timeout (4294967295) out of range
[   29.601324][  T372] adt7475 0-002e: hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[   29.737055][  T370] watchdog: f1020300.watchdog-timer: falling back to default timeout (21)
[   29.830889][  T388] sd 1:0:0:0: Attached scsi generic sg0 type 0
[   29.851124][  T372] adt7475 0-002e: ADT7473 device, revision 0
[   29.856995][  T372] adt7475 0-002e: Optional features: fan4 pwm2
[   29.880686][  T370] orion_wdt: Initial timeout 21 sec
[   29.938363][  T389] marvell-cesa f1030000.crypto: CESA device successfully registered
[   29.949005][  T388] sd 2:0:0:0: Attached scsi generic sg1 type 0
[   30.237997][  T372] systemd-udevd[372]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
done.
[ ok ] Setting hostname to 'debian'...done.
[ ok ] Activating swap:.
[   31.756072][  T593] EXT4-fs (sdb1): re-mounted. Opts: errors=remount-ro
[info] Will now check all file systems.
fsck from util-linux 2.33.1
Checking all file systems.
LABEL=rootfs is mounted
[ ok ] Done checking file systems. A log is being saved in /var/log/fsck/checkfs if that location is writable..
[ 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 ] Starting Setting kernel variables: sysctl.
[ ok ] Initializing random number generator...done.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/52:3b:20:9c:11:51
Sending on   LPF/eth0/52:3b:20:9c:11:51
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 7
[   37.251440][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 9
DHCPOFFER of 192.168.1.228 from 192.168.1.254
DHCPREQUEST for 192.168.1.228 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.1.228 from 192.168.1.254
bound to 192.168.1.228 -- renewal in 37021 seconds.
[   44.585062][ T1146] NET: Registered protocol family 10
[   44.592604][ T1146] Segment Routing with IPv6
done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
[ ok ] Setting sensors limits...done.
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1375 (syslogd)
. ok 
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1402 (klogd)
. ok 
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting fan speed regulator: fancontrol.
[ ok ] Starting NFS common utilities: statd idmapd.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 10 debian ttyS0

debian login: root
Password: 
Last login: Sat Nov 14 10:20:36 PST 2020 on ttyS0
Linux debian 5.2.9-kirkwood-tld-1 #1 PREEMPT Sat Aug 17 15:00:56 PDT 2019 armv5tel

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
root@debian:~# mount -t debugfs debugfs /sys/kernel/debug
root@debian:~# cat /sys/kernel/debug/gpio
gpiochip0: GPIOs 0-31, parent: platform/f1010100.gpio, f1010100.gpio:
 gpio-7   (hncn2:sata0:red     ) out lo 
 gpio-13  (hncn2:sata1:red     ) out lo 
 gpio-28  (regulators:regulator) out hi 
 gpio-29  (Reset Button        ) in  hi (act lo) - IRQ edge  (clear  )

gpiochip1: GPIOs 32-49, parent: platform/f1010140.gpio, f1010140.gpio:
 gpio-36  (gpio_poweroff       ) out lo 
 gpio-37  (hncn2:red:status    ) out lo 
 gpio-38  (hncn2:white:status  ) out hi 
 gpio-39  (hncn2:white:power   ) out lo 
 gpio-49  (Power Button        ) in  hi (act lo) - IRQ edge  (clear  )
root@debian:~# ls -l /sys/class/leds/
total 0
drwxr-xr-x  2 root root 0 Nov 14 10:28 .
drwxr-xr-x 44 root root 0 Nov 14 10:28 ..
lrwxrwxrwx  1 root root 0 Nov 14 10:30 hncn2:red:status -> ../../devices/platform/gpio-leds/leds/hncn2:red:status
lrwxrwxrwx  1 root root 0 Nov 14 10:30 hncn2:sata0:red -> ../../devices/platform/gpio-leds/leds/hncn2:sata0:red
lrwxrwxrwx  1 root root 0 Nov 14 10:30 hncn2:sata1:red -> ../../devices/platform/gpio-leds/leds/hncn2:sata1:red
lrwxrwxrwx  1 root root 0 Nov 14 10:30 hncn2:white:power -> ../../devices/platform/gpio-leds/leds/hncn2:white:power
lrwxrwxrwx  1 root root 0 Nov 14 10:30 hncn2:white:status -> ../../devices/platform/gpio-leds/leds/hncn2:white:status
root@debian:~#

I have attached my dts.
I am not sure about the regulator and HDD2 control. In yours and generiks dts HDD2 control was assigned to gpio1 15 and mpp47. I could not find any reference in the gpl source. I could see only:

case 28:	//HDD Power control, default high

and

 MV_BOARD_GPP_INFO rd88f6282aInfoBoardGppInfo[] = 
        /* {{MV_BOARD_GPP_CLASS devClass, MV_U8 gppPinNum}} */
-       {{BOARD_GPP_HDD_POWER, 35},
+       {{BOARD_GPP_WPS_BUTTON, 29},
+       {BOARD_GPP_HDD_POWER, 35},
        {BOARD_GPP_FAN_POWER, 34},
        {BOARD_GPP_USB_VBUS, 37},
        {BOARD_GPP_USB_VBUS_EN, 37}

I would appreciate, if you could go through the attached dts and let me know if it needs correction...



I have also attached hncn2.h and hncn2.c from my u-boot. They are based on nsa325. MPPs have been adjusted as per changes in the GPL sourse:
 /* HNCN2 board base on DB-88F6282A-BP */
-#define DB_88F6282A_MPP0_7                   	0x21111111
+#define DB_88F6282A_MPP0_7                   	0x01111111
 #define DB_88F6282A_MPP8_15                   	0x44003311
 #define DB_88F6282A_MPP16_23                   	0x33331144
 #define DB_88F6282A_MPP24_31                   	0x33003333
 #define DB_88F6282A_MPP32_39                   	0x00000033
 #define DB_88F6282A_MPP40_47                   	0x00000000
 #define DB_88F6282A_MPP48_55                   	0x00000000
-#define DB_88F6282A_OE_LOW                       (~(BIT7+BIT13+BIT28))
+#define DB_88F6282A_OE_LOW                       (~(BIT7+BIT13+BIT14+BIT15+BIT16+BIT17+BIT28))
 #define DB_88F6282A_OE_HIGH                      (~(BIT16+BIT5+BIT6+BIT4))
-#define DB_88F6282A_OE_VAL_LOW                   (BIT7+BIT13+BIT28)
+#define DB_88F6282A_OE_VAL_LOW                   (BIT28)
 #define DB_88F6282A_OE_VAL_HIGH                  (BIT16+BIT6)

---------------------------------


Regards,
garagoyun



Edited 3 time(s). Last edit at 11/14/2020 03:22PM by garagoyun.
Attachments:
open | download - hncn2.h (1.9 KB)
open | download - hncn2.c (5.9 KB)
open | download - kirkwood-silverstore-hncn2.dts (5.9 KB)
Re: Debian on Freecom Silverstore 2 NAS
December 05, 2020 04:23PM
garagoyun,

The kirkwood-silverstore-hncn2.dts looks good! will incorporate it in the next release.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
random3487
Re: Debian on Freecom Silverstore 2 NAS
February 09, 2022 09:24AM
Hi garagoyun,

I found your post while searching for a solution for my nfs mounting issues (openhabian amanda backup to nas storage via nfs).
Luckily, it's finally mounted, but it can't be used to store backups because of missing permissions.
The advice after the error was to change owner right to the target filesystem ("/home/openhabian/backup" is the mountet path on my raspberry):

sudo chown --verbose --recursive backup:backup /home/openhabian/backup

But this must be excecuted on the nfs server.

More details:
Amanda backup needs owner rights to the storage. The openhabian documentation says something about
no_root_squash

Quote
Another specific thing to watch out for when configuring your export share on the NFS server is to add the no_root_squash option (that's the name on a generic Linux box, depending on your server OS or UI it might have a different name but it'll be available, too). Its function is to NOT map accesses of userID 0 (root) to some other UID as your server will do by default.
(https://www.openhab.org/docs/installation/openhabian-amanda.html#storage-preparation)

So I tried other ways. I can access the NAS via ssh. The mount command outputs the following:

$ mount
rootfs on / type rootfs (rw)
/dev/root on /old type cramfs (ro,relatime)
proc on /old/proc type proc (rw,relatime)
none on /old/sys type sysfs (rw,relatime)
/dev/md0 on / type ext3 (rw,noatime,errors=continue,data=writeback)
proc on /proc type proc (rw,relatime)
sys on /sys type sysfs (rw,relatime)
/dev/pts on /dev/pts type devpts (rw,relatime,mode=600)
tmpfs on /dev/shm type tmpfs (rw,relatime)
/dev/md2 on /misc type ext3 (rw,relatime,errors=continue,data=writeback)
/dev/md4 on /DataVolume type ext4 (rw,noatime,nodiratime,barrier=0,data=ordered,usrquota,grpquota)
/dev/md4 on /shares/Public type ext4 (rw,noatime,nodiratime,barrier=0,data=ordered,usrquota,grpquota)
/dev/md4 on /shares/Download type ext4 (rw,noatime,nodiratime,barrier=0,data=ordered,usrquota,grpquota)
/dev/md4 on /shares/Musik type ext4 (rw,noatime,nodiratime,barrier=0,data=ordered,usrquota,grpquota)
/dev/md4 on /shares/Videos type ext4 (rw,noatime,nodiratime,barrier=0,data=ordered,usrquota,grpquota)
/dev/md4 on /shares/Backup type ext4 (rw,noatime,nodiratime,barrier=0,data=ordered,usrquota,grpquota)
/dev/md4 on /shares/Dateien type ext4 (rw,noatime,nodiratime,barrier=0,data=ordered,usrquota,grpquota)
/dev/md4 on /shares/Pictures type ext4 (rw,noatime,nodiratime,barrier=0,data=ordered,usrquota,grpquota)
/dev/md4 on /shares/openhab_backup type ext4 (rw,noatime,nodiratime,barrier=0,data=ordered,usrquota,grpquota)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)

openhab_backup is my backup target. But without root user i have no chance. You wrote you've got the root user from Freecom Support.

So my final question: Do you still have the credentials, and would you like to share?

Kind regards
random3487
Re: Debian on Freecom Silverstore 2 NAS
February 09, 2022 11:16AM
Hi random3487,

I am not sure why do you need the root login for Freecom Silverstore 2 NAS, if you are using raspberry?

---------------------------------


Regards,
garagoyun
Re: Debian on Freecom Silverstore 2 NAS
February 14, 2022 02:24PM
Because of the missing no_root_squash option on my NAS.
BrollyLSSJ
Re: Debian on Freecom Silverstore 2 NAS
February 08, 2023 02:41PM
Hi garagoyun,

do you still have the root password and can share it? I got a SilverStore 2-Drive NAS last week and it has the latest firmware (2001.4130 from December 2012) and would like to delete files on it, which the normal admin user cannot do.
Re: Debian on Freecom Silverstore 2 NAS
February 08, 2023 02:59PM
Hi,

Yes, I do. PM me and I will share with you.

---------------------------------


Regards,
garagoyun
BrollyLSSJ
Re: Debian on Freecom Silverstore 2 NAS
February 14, 2023 03:21PM
Hi garagoyun,

sorry for the late reply. I was not at home at the weekend. Thank you for the offer. I got the password also from the support (and a new tool to reinstall the official Firmware). Both worked fine. Is there an easy step by step guide to install Debian arm on the Freecom Silver Store 2-Drive NAS in case freecom is too limited? Best case for me would be via official Firmware update via website. Or via the official Firmware recovery tool.
Re: Debian on Freecom Silverstore 2 NAS
February 15, 2023 05:48AM
Hi Brolly,

To install Debian arm on this device you would need to replace the stock uboot. Are you comfortable doing that? You can replace using ssh. See the discussions following this link https://forum.doozan.com/read.php?2,68094,72724#msg-72724
I can upload my latest uboot, however, I have not tested if it can boot the original OS. It does boot Debian arm.

Then you will need to install the rootfs as described here: https://forum.doozan.com/read.php?2,12096

Let me know if that helps.

---------------------------------


Regards,
garagoyun
BrollyLSSJ
Re: Debian on Freecom Silverstore 2 NAS
February 15, 2023 06:08AM
Hi garagoyun,

thank you for the answer. No, I am not familiar with uboot and the other stuff. I can follow tutorials and links, but since I am not familiar with this device I will stick at the official release for the time being and tinker with that (and its NFS v3 and Samba 3.5.6 with SMB2 support) to see if I get enough performance for just a backup store (to store my backup images). If that is not enough I think I will need to tinker more around with the guides on this site (though would be nice if there was a newer officially uBoot release which supports the official Freecom OS).

Really appreciating you for taking the time to answer my questions and requests.
Re: Debian on Freecom Silverstore 2 NAS
February 15, 2023 07:11AM
Hi Brolly,

Last time I communicated with Freecom support it was over 4 years ago. They were kind to share with me the source code. This device is EoL, I doubt there would be any further support for it. Hence, such projects as this one here exist.

You can find generik's uboot 'u-boot-silverstore.kwb ' here: https://forum.doozan.com/read.php?2,68094,73369#msg-73369

My fork of Bodhi's kirkwood uboot with added support for Freecom SilverStore HNC-N2 is here: https://github.com/m-rzb/u-boot-kirkwood

And you can find my u-boot also attached below.

---------------------------------


Regards,
garagoyun



Edited 1 time(s). Last edit at 02/15/2023 05:02PM by garagoyun.
Attachments:
open | download - u-boot.kwb (490.9 KB)
Re: Debian on Freecom Silverstore 2 NAS
February 15, 2023 02:24PM
Brolly,

> If that
> is not enough I think I will need to tinker more
> around with the guides on this site

If you have serial console connected, it is easy and non-destructive to try the Debian rootfs on USB. Using garagoyun's u-boot build and kwboot over UART, and set a few ens, and boot into Debian.

https://forum.doozan.com/read.php?2,68094,111039#msg-111039

Just a reboot or power cycle, and you will be back to stock FW.

> (though would
> be nice if there was a newer officially uBoot
> release which supports the official Freecom OS).

You should run Debian and forget about stock OS. Stock FW is too old and have a lot of security holes. If you do stick with stock FW, it should strictly be used inside local network only. Even that is still not fully safe.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
BrollyLSSJ
Re: Debian on Freecom Silverstore 2 NAS
February 17, 2023 12:36PM
Thank you both bodhi and garagoyun,

no, I do not have a serial cable (maybe deep somewhere in a box, need to look that up, but probably not). Yes, I know that it is old and unsecure. I will use it only locally (without Internet) only and connected and powered on only when needed. My primary NAS is a Synology DS1817, where I am trying to install UrBackup. My Secondary Box is an old QNAP TS419P+ (bought 2012, Security Updates from January 2023).

With official I did not mean official from the vendor. I meant it should be flashable via the Web UI like the official firmware. Was bad wording from me. I backupped both your files from you last post and also saved a copy of the command to use, but at the moment I have other priorities with my Primary and Secondary NASes.
Re: Debian on Freecom Silverstore 2 NAS
February 17, 2023 02:24PM
> With official I did not mean official from the
> vendor. I meant it should be flashable via the Web
> UI like the official firmware. Was bad wording
> from me.

I see. I don't have that automated for any Kirkwood boxes. My original intention was to help users learning something about embedded Linux boot process by going through the manual installation steps. Long ago, we did attempt to automate using script and then abandoned that effort. I think it is too easily bricking boxes with quirks .

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
BrollyLSSJ
Re: Debian on Freecom Silverstore 2 NAS
February 18, 2023 08:27AM
@bodhi

That is understandable and I completely am on your side for the learning purpose.

As for the UART / Serial connection: I do not see a RS232 port on the NAS and it does not seem to be documented anywhere in any official manual. Is it somewhere "under the hood" or would the USB 2.0 port on the back be usable for that serial connection? Or should a Serial connection over the Ethernet RJ45 port work? If the answer to either the USB 2.0 port or Ethernet RJ45 port being used as Serial Connector is yes, I could have a cable. Atleast I ordered 2x USB to RJ45 serial cable (one has an FTDI chip build in) and a Cisco Ethernet Rollover cable (RJ45 to RJ45) in November 2021, but never used them (so need to find them).
Re: Debian on Freecom Silverstore 2 NAS
February 18, 2023 02:06PM
Brolly,


Ususally it's on the board with a 4-pin header, and you'd use your own serial module converter. Some boxes (e.g. Sheevaplug, Mirabox) have a micro USB port outside, since the serial module converter is built-in.

garagoyun should be able to help you about UART.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Freecom Silverstore 2 NAS
February 18, 2023 02:37PM
Brolly,

You will need to open the device. The pins are on the board. See attached a copy of the webpage that helped me to find the pins etc.

---------------------------------


Regards,
garagoyun
Attachments:
open | download - EzPlanet - KnowledgeBase - SilverstoreNAS.pdf (413.8 KB)
BrollyLSSJ
Re: Debian on Freecom Silverstore 2 NAS
February 19, 2023 04:32AM
Thank you both for the answers and the PDF. Should one of my USB to RJ45 or RJ45 to RJ45 Roll Over Cable work with that port or do I need a custom cable? If the latter I probably won't do it (I am not technically versed / skilled enough to create a cable on my own and have not enough knowledge to buy a fitting cable). If I would try to do it it will be way ahead in the future when I have more time. I have other priorities at the moment.
Re: Debian on Freecom Silverstore 2 NAS
February 19, 2023 01:53PM
The Wiki thread

Quote

Unbricking with Serial Console & JTAG console

How to unbrick your box using serial console with kwboot
Repair Pogo E02 with Raspberry PI (JTAG) and OpenOCD
Serial Port connector - what are people using to make it work

The converter and 3 wires cost about 3 USD (take 3 weeks shipping from China).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
BrollyLSSJ
Re: Debian on Freecom Silverstore 2 NAS
February 21, 2023 05:45AM
Thank you bodhi,

can you maybe link some ready to use product I could buy? I have some free USB 2.0 ports on my computer, but could also use the Ethernet port (need to temporarily remove the Ethernet cable then on my computer). I do not have a soldering machine at home and back in my apprenticeship I hated it (had to solder some SCART cables back then). Or an exact description / name I could use to search German Stores (or amazon Germany). I do not mind if it is a little-bit more expensive if it works as it should and I do only need to use it plug n play and do not need to create one tool myself.
Re: Debian on Freecom Silverstore 2 NAS
February 21, 2023 07:06AM
BrollyLSSJ
Re: Debian on Freecom Silverstore 2 NAS
March 07, 2023 07:55AM
Hi garagoyun,

Sorry for the late reply. I was on vacation and have a cold (probably until the end of the week).

That seems to be available on German Amazon also and to be cheaper there:

https://www.amazon.de/s?k=Cp2102+USB+2.0+to+TTL+UART+5pin+Module+Serial+Converter+STC+PRGMR+Cable

That was indeed helpful as it looks like I do not need to solder anything and can just use it. Now I can take a look and open my device and if it looks like on the picture just order that cable and adapter.
BrollyLSSJ
Re: Debian on Freecom Silverstore 2 NAS
March 10, 2023 04:56AM
I ordered the 6 PIN solution (Amazon Choice). It should arrive earlier because it is already in the amazon warehouse (and it states delivery is done by amazon) and not from China (and it was also cheaper then the First adapter and said to be more reliable because of the CP2104 chip instead of the CP2102 chip). I assume I only need to remove the screws from the chassis on the fan site or do I also need to remove the front where the drive bays are located?
Re: Debian on Freecom Silverstore 2 NAS
March 10, 2023 05:32AM
Hi,

If I do remember correctly, you will have to remove back and front. Leave the fan, no need to detach it from the main board. If you look at the PDF I have previously attached, you will find the pin connections. I have not soldered any cables, however, the space is quite tight. You will need to figure out how to attach the cables to the pins.

Good luck!

---------------------------------


Regards,
garagoyun
BrollyLSSJ
Re: Debian on Freecom Silverstore 2 NAS
March 17, 2023 05:26PM
Hi garagoyun,

thank you. I was able to remove the front and also partly the back (I had the green plate mounted on the metal in my hand). Sadly the connectors from the adapter are too thick, even though I am not sure if they really are the standard size (like 2.54mm) or smaller (I would guess 1mm by 1mm), so I was not able to connect all for cable ports to the NAS. Maybe I should have used force on the cable, but I did not want to do that. I need to investigate if there are other cable with "smaller" "plugs" available.
Re: Debian on Freecom Silverstore 2 NAS
March 17, 2023 05:35PM
Brolly,

> I am not
> sure if they really are the standard size (like
> 2.54mm) or smaller (I would guess 1mm by 1mm), so
> I was not able to connect all for cable ports to
> the NAS. Maybe I should have used force on the
> cable, but I did not want to do that. I need to
> investigate if there are other cable with
> "smaller" "plugs" available.

Sounds like microJST header to me. garagoyun can confirm that? But a few Kirkwood boxes like Dockstar, Dreamplug do use microJST, ie. not 2.54mm (JST)

Yes, dont force it. Before garagoyun confirm, if you take pic and post it I will be able to tell.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Freecom Silverstore 2 NAS
March 18, 2023 03:27PM
Hi,

I am not sure if the header is microJST. There is a picture of the connection in the PDF I have attached in one of my previous posts. I certainly had to modify and adapt what I had at the time. I cannot remember now...

---------------------------------


Regards,
garagoyun
Author:

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: