Welcome! Log In Create A New Profile

Advanced

Debian on Freecom Silverstore 2 NAS

Posted by garagoyun 
Re: Debian on Freecom Silverstore 2 NAS
September 28, 2018 12:49AM
garagoyun,

Please try this new DTB.

Note that I've changed the name of the the DTS/DTB because apparently hnc-n2 is the model name. So we should name this box properly.

This version should have Power Off, 2 buttons (Power and Reset), and the hwmon device adt7473.

-bodhi
===========================
Forum Wiki
bodhi's corner
Attachments:
open | download - kirkwood-silverstore-hncn2.dtb (10.9 KB)
open | download - kirkwood-silverstore-hncn2.dts (4 KB)
Re: Debian on Freecom Silverstore 2 NAS
September 28, 2018 04:00AM
bodhi,

Results with the new DTB and amended /etc/network/interfaces :

Marvell>> 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)'
Marvell>> setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 ${mtdparts} earlyprintk=serial'
Marvell>> setenv bootcmd_usb 'usb start; ext2load usb 0:1 0x800000 /boot/uImage; ext2load usb 0:1 0x2100000 /boot/uInitrd'
Marvell>> setenv bootcmd_exec 'run set_bootargs; run bootcmd_usb; bootm 0x800000 0x2100000'
Marvell>> run bootcmd_exec
(Re)start USB...
USB:   scanning bus for devices... 2 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
1 Storage Device(s) found
....
.
......
............
.........................
...................................................
......................................................................................................
.........................................................................................................................................................................

3832719 bytes read
....
.
......
............
.........................
...................................................
......................................................................................................
.................................................................................................................................................................................................................
.....................................................................................................................................................................................................................................................................................................

7245696 bytes read
## Booting image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2018-09-28   9:47:26 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3832655 Bytes =  3.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 02100000 ...
   Image Name:   initramfs-4.12.1-kirkwood-tld-1
   Created:      2017-07-24   0:18:23 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7245632 Bytes =  6.9 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Freecom Silverstore HNCN2
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] 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] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 109424K/131072K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 21648K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0db3274   ( 717 kB)
[    0.000000]        .bss : 0xc0db9b9c - 0xc0e01e60   ( 289 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000008] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.007907] Switching to timer-based delay loop, resolution 5ns
[    0.014395] Console: colour dummy device 80x30
[    0.018973] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.029582] pid_max: default: 32768 minimum: 301
[    0.034469] Security Framework initialized
[    0.038801] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.045483] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.053546] CPU: Testing write buffer coherency: ok
[    0.059544] Setting up static identity map for 0x100000 - 0x100058
[    0.066059] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.074804] devtmpfs: initialized
[    0.082817] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.092777] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.099406] prandom: seed boundary self test passed
[    0.108888] prandom: 100 self tests passed
[    0.113052] pinctrl core: initialized pinctrl subsystem
[    0.119583] NET: Registered protocol family 16
[    0.124574] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.133210] cpuidle: using governor ladder
[    0.137442] cpuidle: using governor menu
[    0.141972] Feroceon L2: Enabling L2
[    0.145654] Feroceon L2: Cache support initialised.
[    0.151037] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.167482] No ATAGs?
[    0.178322] vgaarb: loaded
[    0.183801] SCSI subsystem initialized
[    0.188213] usbcore: registered new interface driver usbfs
[    0.193851] usbcore: registered new interface driver hub
[    0.199361] usbcore: registered new device driver usb
[    0.205754] clocksource: Switched to clocksource orion_clocksource
[    0.317780] VFS: Disk quotas dquot_6.6.0
[    0.321857] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.341373] NET: Registered protocol family 2
[    0.346681] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.353717] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.360182] TCP: Hash tables configured (established 1024 bind 1024)
[    0.366701] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.372612] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.379157] NET: Registered protocol family 1
[    0.384032] RPC: Registered named UNIX socket transport module.
[    0.390096] RPC: Registered udp transport module.
[    0.394868] RPC: Registered tcp transport module.
[    0.399677] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.406462] Unpacking initramfs...
[    1.182384] Freeing initrd memory: 7076K
[    1.186593] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.194269] audit: initializing netlink subsys (disabled)
[    1.200325] Initialise system trusted keyrings
[    1.204878] Key type blacklist registered
[    1.209038] audit: type=2000 audit(1.184:1): state=initialized audit_enabled=0 res=1
[    1.217053] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    1.223617] zbud: loaded
[    1.227432] NFS: Registering the id_resolver key type
[    1.232567] Key type id_resolver registered
[    1.236885] Key type id_legacy registered
[    1.240981] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.247773] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.254414] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    1.261765] fuse init (API version 7.26)
[    1.266192] orangefs_debugfs_init: called with debug mask: :none: :0:
[    1.273005] orangefs_init: module version upstream loaded
[    1.278501] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.565763] random: fast init done
[    8.301667] Key type asymmetric registered
[    8.306045] Asymmetric key parser 'x509' registered
[    8.311046] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    8.318629] io scheduler noop registered
[    8.322622] io scheduler deadline registered
[    8.327101] io scheduler cfq registered (default)
[    8.333371] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    8.342937] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[    8.350643] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    8.357001] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    8.363936] pci_bus 0000:00: root bus resource [bus 00-ff]
[    8.369874] PCI: bus0: Fast back to back transfers disabled
[    8.375525] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    8.405837] PCI: bus1: Fast back to back transfers disabled
[    8.411680] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    8.418660] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
[    8.426060] pci 0000:00:01.0: PCI bridge to [bus 01]
[    8.431099] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    8.438054] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    8.444878] mv_xor f1060800.xor: Marvell shared XOR driver
[    8.506656] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    8.514513] mv_xor f1060900.xor: Marvell shared XOR driver
[    8.576653] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    8.584768] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    8.592762] console [ttyS0] disabled
[    8.596547] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    8.605590] console [ttyS0] enabled
[    8.605590] console [ttyS0] enabled
[    8.612740] bootconsole [earlycon0] disabled
[    8.612740] bootconsole [earlycon0] disabled
[    8.631365] loop: module loaded
[    8.635148] sata_mv f1080000.sata: slots 32 ports 2
[    8.643349] scsi host0: sata_mv
[    8.647068] scsi host1: sata_mv
[    8.650502] ata1: SATA max UDMA/133 irq 33
[    8.654618] ata2: SATA max UDMA/133 irq 33
[    8.659653] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    8.666152] nand: Samsung NAND 128MiB 3,3V 8-bit
[    8.670795] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    8.678431] Scanning device for bad blocks
[    8.691701] Bad eraseblock 113 at 0x000000e20000
[    8.721250] Bad eraseblock 422 at 0x0000034c0000
[    8.774376] 7 cmdlinepart partitions found on MTD device orion_nand
[    8.780697] Creating 7 MTD partitions on "orion_nand":
[    8.785896] 0x000000000000-0x0000000a0000 : "uboot"
[    8.792278] 0x0000000a0000-0x0000000e0000 : "param"
[    8.798717] 0x0000000e0000-0x000000360000 : "preroot"
[    8.805297] 0x000000360000-0x0000006e0000 : "uimage"
[    8.811923] 0x0000006e0000-0x000007dc0000 : "rootfs"
[    8.819181] 0x000007dc0000-0x000008000000 : "misc"
[    8.825302] 0x000000000000-0x000008000000 : "flash"
[    8.833948] libphy: Fixed MDIO Bus: probed
[    8.839096] libphy: orion_mdio_bus: probed
[    8.843591] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    8.851151] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.857808] ehci-pci: EHCI PCI platform driver
[    8.862350] ehci-orion: EHCI orion driver
[    8.866677] orion-ehci f1050000.ehci: EHCI Host Controller
[    8.872219] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    8.880188] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    8.915786] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    8.922125] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    8.929008] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.936314] usb usb1: Product: EHCI Host Controller
[    8.941220] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    8.948004] usb usb1: SerialNumber: f1050000.ehci
[    8.953602] hub 1-0:1.0: USB hub found
[    8.957481] hub 1-0:1.0: 1 port detected
[    8.962177] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    8.967542] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    8.975386] xhci_hcd 0000:01:00.0: hcc params 0x014042cb hci version 0x96 quirks 0x00000004
[    8.984131] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    8.991012] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.998372] usb usb2: Product: xHCI Host Controller
[    9.003280] usb usb2: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[    9.010038] usb usb2: SerialNumber: 0000:01:00.0
[    9.015503] hub 2-0:1.0: USB hub found
[    9.019376] hub 2-0:1.0: 2 ports detected
[    9.024065] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    9.029396] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[    9.036986] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    9.045287] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    9.052145] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.059426] usb usb3: Product: xHCI Host Controller
[    9.064329] usb usb3: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[    9.071197] usb usb3: SerialNumber: 0000:01:00.0
[    9.076714] hub 3-0:1.0: USB hub found
[    9.080529] hub 3-0:1.0: 2 ports detected
[    9.085463] usbcore: registered new interface driver usb-storage
[    9.091918] mousedev: PS/2 mouse device common for all mice
[    9.098230] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    9.105284] i2c /dev entries driver
[    9.110806] hidraw: raw HID events driver (C) Jiri Kosina
[    9.116707] drop_monitor: Initializing network drop monitor service
[    9.123263] NET: Registered protocol family 17
[    9.128052] Key type dns_resolver registered
[    9.133262] registered taskstats version 1
[    9.137423] Loading compiled-in X.509 certificates
[    9.142302] zswap: loaded using pool lzo/zbud
[    9.158158] Key type big_key registered
[    9.165863] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    9.176170] ata1.00: ATA-7: Hitachi HDS721680PLA380, P21OABDA, max UDMA/100
[    9.183176] ata1.00: 156301488 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    9.194159] Key type encrypted registered
[    9.196017] rtc-mv f1010300.rtc: setting system clock to 2018-09-28 09:52:09 UTC (1538128329)
[    9.213742] ata1.00: configured for UDMA/100
[    9.228789] scsi 0:0:0:0: Direct-Access     ATA      Hitachi HDS72168 ABDA PQ: 0 ANSI: 5
[    9.238340] sd 0:0:0:0: [sda] 156301488 512-byte logical blocks: (80.0 GB/74.5 GiB)
[    9.247011] sd 0:0:0:0: [sda] Write Protect is off
[    9.252027] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    9.295232]  sda: sda1 sda2 sda3 sda4 sda5
[    9.302151] sd 0:0:0:0: [sda] Attached SCSI disk
[    9.315802] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    9.507454] usb 1-1: New USB device found, idVendor=03f0, idProduct=3807
[    9.514232] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    9.521467] usb 1-1: Product: c485w
[    9.524980] usb 1-1: Manufacturer: HP
[    9.528706] usb 1-1: SerialNumber: UTa224010000BA
[    9.534326] usb-storage 1-1:1.0: USB Mass Storage device detected
[    9.540903] scsi host2: usb-storage 1-1:1.0
[    9.576102] ata2: SATA link down (SStatus 0 SControl F300)
[    9.595325] Freeing unused kernel memory: 1024K
Loading, please wait...
starting version 232
[   10.158619] usbcore: registered new interface driver uas
[   10.580321] scsi 2:0:0:0: Direct-Access     HP       c485w            0.00 PQ: 0 ANSI: 2
[   10.598649] sd 2:0:0:0: [sdb] 7892040 512-byte logical blocks: (4.04 GB/3.76 GiB)
[   10.612765] sd 2:0:0:0: [sdb] Write Protect is off
[   10.623507] sd 2:0:0:0: [sdb] Asking for cache data failed
[   10.634049] sd 2:0:0:0: [sdb] Assuming drive cache: write through
Begin: Loading essential drivers ... done.
[   10.774745]  sdb: sdb1 sdb2
[   10.784998] sd 2:0:0:0: [sdb] Attached SCSI removable disk
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Warning: fsck not present, so skipping root file system
[   20.778543] EXT4-fs (sdb1): mounting ext3 file system using the ext4 subsystem
[   20.797611] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Setting hostname to 'debian'...done.
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
. ok 
[ ok [   23.055954] input: gpio_keys as /devices/platform/gpio_keys/input/input0
                                                 done.
[....] Waiting for /dev to be fully populated...[   23.341872] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[   23.485414] adt7475 0-002e: hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[   23.570037] marvell-cesa f1030000.crypto: CESA device successfully registered
[   23.571645] orion_wdt: Initial timeout 21 sec
[   23.635183] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   23.635466] sd 2:0:0:0: Attached scsi generic sg1 type 0
[   23.721715] adt7475 0-002e: ADT7473 device, revision 0
[   23.757534] adt7475 0-002e: Optional features: fan4 pwm2
[   23.845283] random: crng init done
done.
[ ok ] Activating swap:.
[   25.098317] EXT4-fs (sdb1): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.29.2
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sdb1 
e2fsck 1.43.4 (31-Jan-2017)
rootfs: clean, 14465/122160 files, 199489/488561 blocks
. ok 
[   25.359931] EXT4-fs (sdb1): re-mounted. Opts: errors=remount-ro
[ ok ] Will now activate lvm and md swap:done.
[info] Will now check all file systems.
fsck from util-linux 2.29.2
Checking all file systems.
LABEL=rootfs is mounted
[ 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 ] Setting kernel variables...done.
[ ok ] Initializing random number generator...done.
[....] Configuring network interfaces...Cannot find device "eth0"
ifup: failed to bring up eth0
failed.
[   28.826113] NET: Registered protocol family 10
[   28.834377] Segment Routing with IPv6
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1284 (syslogd)
. ok 
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1282 (klogd)
. ok 
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 9 debian ttyS0

debian login: root
Password: 
Last login: Fri Sep 28 02:31:06 PDT 2018 on ttyS0
Linux debian 4.12.1-kirkwood-tld-1 #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 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:~# cat /etc/network/interfaces 
auto lo eth0
iface lo inet loopback
iface eth0 inet dhcp
        hwaddress ether 00:01:DB:1E:24:C2
root@debian:~# ping google.com
ping: google.com: Temporary failure in name resolution
root@debian:~# ifup eth0                     
Cannot find device "eth0"
ifup: failed to bring up eth0
root@debian:~# shutdown -hP now            
INIT: Swlevel: 0
INIT: S
Broadcast message from root@debian (ttyS0) (Fri Sep 28 02:53:34 2018):

The system is going down for system halt NOW!
[info] Using makefile-style concurrent boot in runlevel 0.
[....] Stopping busybox' klogd implementation: klogd1282 (klogd)
Stopped klogd (pid 1282).
. ok 
[ ok ] Stopping Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[....] Stopping busybox' syslogd implementation: syslogd1284 (syslogd)
. ok 
[ ok ] Stopping NFS kernel daemon: mountd nfsd.
[ ok ] Unexporting directories for NFS kernel daemon....
[ ok ] Saving random seed...done.
[ ok ] Asking all remaining processes to terminate...done.
[ ok ] All processes ended within 1 seconds...done.
[ ok ] Stopping RPC port mapper daemon: rpcbind.
[ ok ] Stopping NFS common utilities: idmapd statd.
[ ok ] Deconfiguring network interfaces...done.
[info] Saving the system clock.
[info] Hardware Clock updated to Fri Sep 28 02:53:41 PDT 2018.
[....] Will now unmount temporary filesystems:umount: /tmp unmounted
. ok 
[ ok ] Will now deactivate swap:.
[  102.702767] EXT4-fs (sdb1): re-mounted. Opts: (null)
[ ok ] Mounting root filesystem read-only...done.
[info] Will now halt.
logger: socket /dev/log: Connection refused
[  104.909540] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[  104.917048] sd 0:0:0:0: [sda] Stopping disk
[  105.317824] reboot: Power down


It does power down completely now. Great job! It is still failnig to find eth0 though, so it cannot connect to internet yet.

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


Regards,
garagoyun
Re: Debian on Freecom Silverstore 2 NAS
September 28, 2018 01:50PM
garagoyun,

Strange, It acts like there is no power on the NIC, or cable is not plugged in.

[    8.843591] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4

What I am trying to do is avoid the ethaddr issue.

So we can see if the NIC is really activated first. How about using static IP, with hwaddr in it.

Something like this.

cat /etc/network/interfaces
auto lo eth0
iface lo inet loopback
#iface eth0 inet dhcp
iface eth0 inet static
        address 192.168.0.224
        netmask 255.255.255.0
        gateway 192.168.0.1
        hwaddress ether 00:01:DB:1E:24:C2

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Freecom Silverstore 2 NAS
September 28, 2018 04:14PM
bodhi Wrote:
-------------------------------------------------------
> garagoyun,
>
> Strange, It acts like there is no power on the
> NIC, or cable is not plugged in.
>
>
> [    8.843591] mv643xx_eth: MV-643xx 10/100/1000
> ethernet driver version 1.4
>
>
> What I am trying to do is avoid the ethaddr
> issue.
>
> So we can see if the NIC is really activated
> first. How about using static IP, with hwaddr in
> it.
>
> Something like this.
>
> cat /etc/network/interfaces
>
> auto lo eth0
> iface lo inet loopback
> #iface eth0 inet dhcp
> iface eth0 inet static
>         address 192.168.0.224
>         netmask 255.255.255.0
>         gateway 192.168.0.1
>         hwaddress ether 00:01:DB:1E:24:C2
>

I have adjusted above according to the information from my laptop:
~$ ip route | grep default
default via 192.168.1.254 dev wlp3s0  proto static  metric 600



Eth0 is still not up though:

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_ 
| | | |___|  _ \ / _ \ / _ \| __| 
| |_| |___| |_) | (_) | (_) | |_ 
 \___/    |____/ \___/ \___/ \__|  ** uboot_ver:v0.0.9 **

 ** MARVELL BOARD: HNC-N2 LE 

U-Boot 1.1.4 (Nov  9 2011 - 17:49:26) Marvell version: 3.5.9

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CFB00

Soc: 88F6282 A1CPU running @ 1000Mhz L2 running @ 333Mhz
SysClock = 400Mhz , TClock = 200Mhz 

DRAM (DDR3) CAS Latency = 6 tRP = 6 tRAS = 15 tRCD=6
DRAM CS[0] base 0x00000000   size 128MB 
DRAM Total size 128MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:128 MB
Found ADT7473, program PWM1 ... OK
Flash:  0 kB

Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode (5)
  Device 0 @ 0 0:
Model: Hitachi HDS721680PLA380                  Firm: P21OABDA Ser#:       PVE201ZESSYGNM
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 76319.0 MB = 74.5 GB (156301488 x 512)


CPU : Marvell Feroceon (Rev 1)
Scanning partition header:

Streaming disabled 
Write allocate disabled


USB 0: host mode
PEX 0: PCI Express Root Complex Interface
PEX interface detected Link X1
PEX 1: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0 
Marvell>> 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)'
Marvell>> setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 ${mtdparts} earlyprintk=serial'
Marvell>> setenv bootcmd_usb 'usb start; ext2load usb 0:1 0x800000 /boot/uImage; ext2load usb 0:1 0x2100000 /boot/uInitrd'
Marvell>> setenv bootcmd_exec 'run set_bootargs; run bootcmd_usb; bootm 0x800000 0x2100000'
Marvell>> run bootcmd_exec
(Re)start USB...
USB:   scanning bus for devices... 2 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
1 Storage Device(s) found
....
.
......
............
.........................
...................................................
......................................................................................................
.........................................................................................................................................................................

3832719 bytes read
....
.
......
............
.........................
...................................................
......................................................................................................
.................................................................................................................................................................................................................
.....................................................................................................................................................................................................................................................................................................

7245696 bytes read
## Booting image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2018-09-28   9:47:26 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3832655 Bytes =  3.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 02100000 ...
   Image Name:   initramfs-4.12.1-kirkwood-tld-1
   Created:      2017-07-24   0:18:23 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7245632 Bytes =  6.9 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Freecom Silverstore HNCN2
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] 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] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 109424K/131072K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 21648K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0db3274   ( 717 kB)
[    0.000000]        .bss : 0xc0db9b9c - 0xc0e01e60   ( 289 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000008] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.007907] Switching to timer-based delay loop, resolution 5ns
[    0.014395] Console: colour dummy device 80x30
[    0.018973] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.029581] pid_max: default: 32768 minimum: 301
[    0.034468] Security Framework initialized
[    0.038800] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.045483] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.053544] CPU: Testing write buffer coherency: ok
[    0.059544] Setting up static identity map for 0x100000 - 0x100058
[    0.066059] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.074806] devtmpfs: initialized
[    0.082822] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.092785] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.099410] prandom: seed boundary self test passed
[    0.108888] prandom: 100 self tests passed
[    0.113052] pinctrl core: initialized pinctrl subsystem
[    0.119591] NET: Registered protocol family 16
[    0.124585] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.133221] cpuidle: using governor ladder
[    0.137449] cpuidle: using governor menu
[    0.141972] Feroceon L2: Enabling L2
[    0.145654] Feroceon L2: Cache support initialised.
[    0.151035] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.167484] No ATAGs?
[    0.178332] vgaarb: loaded
[    0.183811] SCSI subsystem initialized
[    0.188223] usbcore: registered new interface driver usbfs
[    0.193862] usbcore: registered new interface driver hub
[    0.199372] usbcore: registered new device driver usb
[    0.205766] clocksource: Switched to clocksource orion_clocksource
[    0.317805] VFS: Disk quotas dquot_6.6.0
[    0.321874] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.341390] NET: Registered protocol family 2
[    0.346703] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.353734] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.360200] TCP: Hash tables configured (established 1024 bind 1024)
[    0.366716] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.372621] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.379167] NET: Registered protocol family 1
[    0.384046] RPC: Registered named UNIX socket transport module.
[    0.390115] RPC: Registered udp transport module.
[    0.394886] RPC: Registered tcp transport module.
[    0.399695] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.406478] Unpacking initramfs...
[    1.182554] Freeing initrd memory: 7076K
[    1.186767] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.194445] audit: initializing netlink subsys (disabled)
[    1.200504] Initialise system trusted keyrings
[    1.205059] Key type blacklist registered
[    1.209220] audit: type=2000 audit(1.184:1): state=initialized audit_enabled=0 res=1
[    1.217238] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    1.223809] zbud: loaded
[    1.227624] NFS: Registering the id_resolver key type
[    1.232762] Key type id_resolver registered
[    1.237075] Key type id_legacy registered
[    1.241162] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.247955] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.254597] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    1.261947] fuse init (API version 7.26)
[    1.266374] orangefs_debugfs_init: called with debug mask: :none: :0:
[    1.273186] orangefs_init: module version upstream loaded
[    1.278683] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.565775] random: fast init done
[    8.302275] Key type asymmetric registered
[    8.306657] Asymmetric key parser 'x509' registered
[    8.311660] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    8.319241] io scheduler noop registered
[    8.323236] io scheduler deadline registered
[    8.327717] io scheduler cfq registered (default)
[    8.333987] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    8.343560] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[    8.351273] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    8.357632] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    8.364567] pci_bus 0000:00: root bus resource [bus 00-ff]
[    8.370511] PCI: bus0: Fast back to back transfers disabled
[    8.376200] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    8.405849] PCI: bus1: Fast back to back transfers disabled
[    8.411696] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    8.418669] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
[    8.426069] pci 0000:00:01.0: PCI bridge to [bus 01]
[    8.431107] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    8.438061] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    8.444888] mv_xor f1060800.xor: Marvell shared XOR driver
[    8.506663] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    8.514524] mv_xor f1060900.xor: Marvell shared XOR driver
[    8.576666] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    8.584783] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    8.592780] console [ttyS0] disabled
[    8.596562] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    8.605607] console [ttyS0] enabled
[    8.605607] console [ttyS0] enabled
[    8.612757] bootconsole [earlycon0] disabled
[    8.612757] bootconsole [earlycon0] disabled
[    8.631388] loop: module loaded
[    8.635178] sata_mv f1080000.sata: slots 32 ports 2
[    8.643376] scsi host0: sata_mv
[    8.647100] scsi host1: sata_mv
[    8.650525] ata1: SATA max UDMA/133 irq 33
[    8.654644] ata2: SATA max UDMA/133 irq 33
[    8.659677] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    8.666178] nand: Samsung NAND 128MiB 3,3V 8-bit
[    8.670821] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    8.678458] Scanning device for bad blocks
[    8.691751] Bad eraseblock 113 at 0x000000e20000
[    8.721301] Bad eraseblock 422 at 0x0000034c0000
[    8.774429] 7 cmdlinepart partitions found on MTD device orion_nand
[    8.780750] Creating 7 MTD partitions on "orion_nand":
[    8.785948] 0x000000000000-0x0000000a0000 : "uboot"
[    8.792330] 0x0000000a0000-0x0000000e0000 : "param"
[    8.798771] 0x0000000e0000-0x000000360000 : "preroot"
[    8.805353] 0x000000360000-0x0000006e0000 : "uimage"
[    8.811975] 0x0000006e0000-0x000007dc0000 : "rootfs"
[    8.819233] 0x000007dc0000-0x000008000000 : "misc"
[    8.825343] 0x000000000000-0x000008000000 : "flash"
[    8.833991] libphy: Fixed MDIO Bus: probed
[    8.839136] libphy: orion_mdio_bus: probed
[    8.843627] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    8.851188] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.857844] ehci-pci: EHCI PCI platform driver
[    8.862386] ehci-orion: EHCI orion driver
[    8.866714] orion-ehci f1050000.ehci: EHCI Host Controller
[    8.872264] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    8.880212] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    8.915797] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    8.922136] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    8.929015] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.936321] usb usb1: Product: EHCI Host Controller
[    8.941228] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    8.948011] usb usb1: SerialNumber: f1050000.ehci
[    8.953612] hub 1-0:1.0: USB hub found
[    8.957487] hub 1-0:1.0: 1 port detected
[    8.962188] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    8.967550] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    8.975394] xhci_hcd 0000:01:00.0: hcc params 0x014042cb hci version 0x96 quirks 0x00000004
[    8.984139] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    8.991022] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.998380] usb usb2: Product: xHCI Host Controller
[    9.003289] usb usb2: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[    9.010047] usb usb2: SerialNumber: 0000:01:00.0
[    9.015511] hub 2-0:1.0: USB hub found
[    9.019386] hub 2-0:1.0: 2 ports detected
[    9.024085] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    9.029421] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[    9.037010] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    9.045313] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    9.052169] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.059452] usb usb3: Product: xHCI Host Controller
[    9.064355] usb usb3: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[    9.071223] usb usb3: SerialNumber: 0000:01:00.0
[    9.076733] hub 3-0:1.0: USB hub found
[    9.080547] hub 3-0:1.0: 2 ports detected
[    9.085474] usbcore: registered new interface driver usb-storage
[    9.091936] mousedev: PS/2 mouse device common for all mice
[    9.098250] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    9.105300] i2c /dev entries driver
[    9.110820] hidraw: raw HID events driver (C) Jiri Kosina
[    9.116709] drop_monitor: Initializing network drop monitor service
[    9.123272] NET: Registered protocol family 17
[    9.128056] Key type dns_resolver registered
[    9.133271] registered taskstats version 1
[    9.137433] Loading compiled-in X.509 certificates
[    9.142311] zswap: loaded using pool lzo/zbud
[    9.158094] Key type big_key registered
[    9.165873] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    9.176176] ata1.00: ATA-7: Hitachi HDS721680PLA380, P21OABDA, max UDMA/100
[    9.183184] ata1.00: 156301488 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    9.194065] Key type encrypted registered
[    9.195918] rtc-mv f1010300.rtc: setting system clock to 2018-09-28 22:09:36 UTC (1538172576)
[    9.213643] ata1.00: configured for UDMA/100
[    9.228699] scsi 0:0:0:0: Direct-Access     ATA      Hitachi HDS72168 ABDA PQ: 0 ANSI: 5
[    9.238258] sd 0:0:0:0: [sda] 156301488 512-byte logical blocks: (80.0 GB/74.5 GiB)
[    9.246936] sd 0:0:0:0: [sda] Write Protect is off
[    9.251948] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    9.294857]  sda: sda1 sda2 sda3 sda4 sda5
[    9.301778] sd 0:0:0:0: [sda] Attached SCSI disk
[    9.315812] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    9.507351] usb 1-1: New USB device found, idVendor=03f0, idProduct=3807
[    9.514127] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    9.521364] usb 1-1: Product: c485w
[    9.524875] usb 1-1: Manufacturer: HP
[    9.528600] usb 1-1: SerialNumber: UTa224010000BA
[    9.534226] usb-storage 1-1:1.0: USB Mass Storage device detected
[    9.540805] scsi host2: usb-storage 1-1:1.0
[    9.575970] ata2: SATA link down (SStatus 0 SControl F300)
[    9.595194] Freeing unused kernel memory: 1024K
Loading, please wait...
starting version 232
[   10.158495] usbcore: registered new interface driver uas
[   10.579963] scsi 2:0:0:0: Direct-Access     HP       c485w            0.00 PQ: 0 ANSI: 2
[   10.598042] sd 2:0:0:0: [sdb] 7892040 512-byte logical blocks: (4.04 GB/3.76 GiB)
[   10.612014] sd 2:0:0:0: [sdb] Write Protect is off
[   10.622408] sd 2:0:0:0: [sdb] Asking for cache data failed
[   10.632595] sd 2:0:0:0: [sdb] Assuming drive cache: write through
Begin: Loading essential drivers ... done.
[   10.774267]  sdb: sdb1 sdb2
[   10.784522] sd 2:0:0:0: [sdb] Attached SCSI removable disk
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Warning: fsck not present, so skipping root file system
[   20.777939] EXT4-fs (sdb1): mounting ext3 file system using the ext4 subsystem
[   20.797135] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Setting hostname to 'debian'...done.
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
. ok 
[ ok    23.060656] input: gpio_keys as /devices/platform/gpio_keys/input/input0
9m                                               done.
[....] Waiting for /dev to be fully populated...[   23.328770] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[   23.393046] adt7475 0-002e: hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[   23.393225] adt7475 0-002e: ADT7473 device, revision 0
[   23.393235] adt7475 0-002e: Optional features: fan4 pwm2
[   23.586283] orion_wdt: Initial timeout 21 sec
[   23.666750] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   23.673367] marvell-cesa f1030000.crypto: CESA device successfully registered
[   23.699856] sd 2:0:0:0: Attached scsi generic sg1 type 0
[   23.790719] random: crng init done
done.
[ ok ] Activating swap:.
[   25.096202] EXT4-fs (sdb1): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.29.2
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sdb1 
e2fsck 1.43.4 (31-Jan-2017)
rootfs: clean, 14465/122160 files, 199496/488561 blocks
. ok 
[   25.357201] EXT4-fs (sdb1): re-mounted. Opts: errors=remount-ro
[ ok ] Will now activate lvm and md swap:done.
[info] Will now check all file systems.
fsck from util-linux 2.29.2
Checking all file systems.
LABEL=rootfs is mounted
[ 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 ] Setting kernel variables...done.
[ ok ] Initializing random number generator...done.
[....] Configuring network interfaces...Cannot find device "eth0"
ifup: failed to bring up eth0
failed.
[   28.806105] NET: Registered protocol family 10
[   28.814843] Segment Routing with IPv6
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1279 (syslogd)
. ok 
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting NFS common utilities: statd idmapd.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1280 (klogd)
. ok 
[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 9 debian ttyS0

debian login: root
Password: 
Last login: Fri Sep 28 14:59:27 PDT 2018 on ttyS0
Linux debian 4.12.1-kirkwood-tld-1 #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 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:~# cat /etc/network/interfaces 
auto lo eth0
iface lo inet loopback
#iface eth0 inet dhcp
iface eth0 inet static
        address 192.168.1.224
        netmask 255.255.255.0
        gateway 192.168.1.254
        hwaddress ether 00:01:DB:1E:24:C2
root@debian:~# ping 192.168.1.176
connect: Network is unreachable
root@debian:~# ping google.com
ping: google.com: Temporary failure in name resolution
root@debian:~#

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


Regards,
garagoyun
Re: Debian on Freecom Silverstore 2 NAS
September 28, 2018 06:21PM
garagoyun,

There is a quirk in the NSA325 as far as the network chip 88E1318 is concerned, and I did not think it is applicable to this box. Perhaps it is.

I'll upload another DTS/DTB so to make it compatible to the NSA325 and see what'll happen.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Freecom Silverstore 2 NAS
September 28, 2018 06:40PM
Let's try this new version for the Network chip.

-bodhi
===========================
Forum Wiki
bodhi's corner
Attachments:
open | download - kirkwood-silverstore-hncn2.dtb (10.9 KB)
open | download - kirkwood-silverstore-hncn2.dts (10.9 KB)
Re: Debian on Freecom Silverstore 2 NAS
September 29, 2018 02:58AM
bodhi,

I have tried the new DTB, same results:


         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_ 
| | | |___|  _ \ / _ \ / _ \| __| 
| |_| |___| |_) | (_) | (_) | |_ 
 \___/    |____/ \___/ \___/ \__|  ** uboot_ver:v0.0.9 **

 ** MARVELL BOARD: HNC-N2 LE 

U-Boot 1.1.4 (Nov  9 2011 - 17:49:26) Marvell version: 3.5.9

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CFB00

Soc: 88F6282 A1CPU running @ 1000Mhz L2 running @ 333Mhz
SysClock = 400Mhz , TClock = 200Mhz 

DRAM (DDR3) CAS Latency = 6 tRP = 6 tRAS = 15 tRCD=6
DRAM CS[0] base 0x00000000   size 128MB 
DRAM Total size 128MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:128 MB
Found ADT7473, program PWM1 ... OK
Flash:  0 kB

Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode (5)
  Device 0 @ 0 0:
Model: Hitachi HDS721680PLA380                  Firm: P21OABDA Ser#:       PVE201ZESSYGNM
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 76319.0 MB = 74.5 GB (156301488 x 512)


CPU : Marvell Feroceon (Rev 1)
Scanning partition header:

Streaming disabled 
Write allocate disabled


USB 0: host mode
PEX 0: PCI Express Root Complex Interface
PEX interface detected Link X1
PEX 1: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0 
Marvell>> 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)'
Marvell>> setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 ${mtdparts} earlyprintk=serial'
Marvell>> setenv bootcmd_usb 'usb start; ext2load usb 0:1 0x800000 /boot/uImage; ext2load usb 0:1 0x2100000 /boot/uInitrd'
Marvell>> setenv bootcmd_exec 'run set_bootargs; run bootcmd_usb; bootm 0x800000 0x2100000'
Marvell>> run bootcmd_exec
(Re)start USB...
USB:   scanning bus for devices... 2 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
1 Storage Device(s) found
....
.
......
............
.........................
...................................................
......................................................................................................
.........................................................................................................................................................................

3832735 bytes read
....
.
......
............
.........................
...................................................
......................................................................................................
.................................................................................................................................................................................................................
.....................................................................................................................................................................................................................................................................................................

7245696 bytes read
## Booting image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2018-09-29   8:49:18 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3832671 Bytes =  3.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 02100000 ...
   Image Name:   initramfs-4.12.1-kirkwood-tld-1
   Created:      2017-07-24   0:18:23 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7245632 Bytes =  6.9 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Freecom Silverstore HNCN2
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] 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] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 109424K/131072K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 21648K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0db3274   ( 717 kB)
[    0.000000]        .bss : 0xc0db9b9c - 0xc0e01e60   ( 289 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000008] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.007907] Switching to timer-based delay loop, resolution 5ns
[    0.014393] Console: colour dummy device 80x30
[    0.018973] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.029581] pid_max: default: 32768 minimum: 301
[    0.034466] Security Framework initialized
[    0.038799] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.045474] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.053530] CPU: Testing write buffer coherency: ok
[    0.059542] Setting up static identity map for 0x100000 - 0x100058
[    0.066060] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.074775] devtmpfs: initialized
[    0.082792] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.092759] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.099386] prandom: seed boundary self test passed
[    0.108863] prandom: 100 self tests passed
[    0.113035] pinctrl core: initialized pinctrl subsystem
[    0.119571] NET: Registered protocol family 16
[    0.124559] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.133201] cpuidle: using governor ladder
[    0.137430] cpuidle: using governor menu
[    0.141957] Feroceon L2: Enabling L2
[    0.145636] Feroceon L2: Cache support initialised.
[    0.151019] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.167463] No ATAGs?
[    0.178312] vgaarb: loaded
[    0.183790] SCSI subsystem initialized
[    0.188203] usbcore: registered new interface driver usbfs
[    0.193834] usbcore: registered new interface driver hub
[    0.199344] usbcore: registered new device driver usb
[    0.205739] clocksource: Switched to clocksource orion_clocksource
[    0.317786] VFS: Disk quotas dquot_6.6.0
[    0.321856] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.341378] NET: Registered protocol family 2
[    0.346683] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.353717] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.360181] TCP: Hash tables configured (established 1024 bind 1024)
[    0.366700] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.372613] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.379158] NET: Registered protocol family 1
[    0.384043] RPC: Registered named UNIX socket transport module.
[    0.390106] RPC: Registered udp transport module.
[    0.394877] RPC: Registered tcp transport module.
[    0.399686] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.406471] Unpacking initramfs...
[    1.182686] Freeing initrd memory: 7076K
[    1.186900] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.194565] audit: initializing netlink subsys (disabled)
[    1.200626] Initialise system trusted keyrings
[    1.205182] Key type blacklist registered
[    1.209343] audit: type=2000 audit(1.184:1): state=initialized audit_enabled=0 res=1
[    1.217360] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    1.223929] zbud: loaded
[    1.227743] NFS: Registering the id_resolver key type
[    1.232877] Key type id_resolver registered
[    1.237188] Key type id_legacy registered
[    1.241283] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.248076] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.254716] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    1.262069] fuse init (API version 7.26)
[    1.266494] orangefs_debugfs_init: called with debug mask: :none: :0:
[    1.273307] orangefs_init: module version upstream loaded
[    1.278804] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.565747] random: fast init done
[    8.302246] Key type asymmetric registered
[    8.306630] Asymmetric key parser 'x509' registered
[    8.311634] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    8.319213] io scheduler noop registered
[    8.323210] io scheduler deadline registered
[    8.327689] io scheduler cfq registered (default)
[    8.333951] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    8.343533] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[    8.351239] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    8.357597] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    8.364532] pci_bus 0000:00: root bus resource [bus 00-ff]
[    8.370467] PCI: bus0: Fast back to back transfers disabled
[    8.376148] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    8.405822] PCI: bus1: Fast back to back transfers disabled
[    8.411662] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    8.418634] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
[    8.426033] pci 0000:00:01.0: PCI bridge to [bus 01]
[    8.431073] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    8.438028] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    8.444854] mv_xor f1060800.xor: Marvell shared XOR driver
[    8.506641] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    8.514497] mv_xor f1060900.xor: Marvell shared XOR driver
[    8.576635] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    8.584748] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    8.592750] console [ttyS0] disabled
[    8.596537] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    8.605582] console [ttyS0] enabled
[    8.605582] console [ttyS0] enabled
[    8.612732] bootconsole [earlycon0] disabled
[    8.612732] bootconsole [earlycon0] disabled
[    8.631361] loop: module loaded
[    8.635150] sata_mv f1080000.sata: slots 32 ports 2
[    8.643353] scsi host0: sata_mv
[    8.647073] scsi host1: sata_mv
[    8.650501] ata1: SATA max UDMA/133 irq 33
[    8.654618] ata2: SATA max UDMA/133 irq 33
[    8.659645] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    8.666147] nand: Samsung NAND 128MiB 3,3V 8-bit
[    8.670794] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    8.678431] Scanning device for bad blocks
[    8.691723] Bad eraseblock 113 at 0x000000e20000
[    8.721240] Bad eraseblock 422 at 0x0000034c0000
[    8.774358] 7 cmdlinepart partitions found on MTD device orion_nand
[    8.780680] Creating 7 MTD partitions on "orion_nand":
[    8.785878] 0x000000000000-0x0000000a0000 : "uboot"
[    8.792259] 0x0000000a0000-0x0000000e0000 : "param"
[    8.798706] 0x0000000e0000-0x000000360000 : "preroot"
[    8.805282] 0x000000360000-0x0000006e0000 : "uimage"
[    8.811906] 0x0000006e0000-0x000007dc0000 : "rootfs"
[    8.819158] 0x000007dc0000-0x000008000000 : "misc"
[    8.825279] 0x000000000000-0x000008000000 : "flash"
[    8.833930] libphy: Fixed MDIO Bus: probed
[    8.839074] libphy: orion_mdio_bus: probed
[    8.843582] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    8.851144] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.857800] ehci-pci: EHCI PCI platform driver
[    8.862341] ehci-orion: EHCI orion driver
[    8.866673] orion-ehci f1050000.ehci: EHCI Host Controller
[    8.872220] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    8.880171] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    8.915770] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    8.922112] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    8.928990] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.936297] usb usb1: Product: EHCI Host Controller
[    8.941202] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    8.947986] usb usb1: SerialNumber: f1050000.ehci
[    8.953586] hub 1-0:1.0: USB hub found
[    8.957463] hub 1-0:1.0: 1 port detected
[    8.962164] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    8.967526] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    8.975372] xhci_hcd 0000:01:00.0: hcc params 0x014042cb hci version 0x96 quirks 0x00000004
[    8.984110] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    8.990987] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.998346] usb usb2: Product: xHCI Host Controller
[    9.003254] usb usb2: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[    9.010012] usb usb2: SerialNumber: 0000:01:00.0
[    9.015474] hub 2-0:1.0: USB hub found
[    9.019350] hub 2-0:1.0: 2 ports detected
[    9.024041] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    9.029371] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[    9.036969] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    9.045269] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    9.052126] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.059408] usb usb3: Product: xHCI Host Controller
[    9.064311] usb usb3: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[    9.071178] usb usb3: SerialNumber: 0000:01:00.0
[    9.076689] hub 3-0:1.0: USB hub found
[    9.080503] hub 3-0:1.0: 2 ports detected
[    9.085435] usbcore: registered new interface driver usb-storage
[    9.091889] mousedev: PS/2 mouse device common for all mice
[    9.098194] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    9.105240] i2c /dev entries driver
[    9.110763] hidraw: raw HID events driver (C) Jiri Kosina
[    9.116657] drop_monitor: Initializing network drop monitor service
[    9.123220] NET: Registered protocol family 17
[    9.128002] Key type dns_resolver registered
[    9.133225] registered taskstats version 1
[    9.137387] Loading compiled-in X.509 certificates
[    9.142268] zswap: loaded using pool lzo/zbud
[    9.158002] Key type big_key registered
[    9.165844] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    9.176140] ata1.00: ATA-7: Hitachi HDS721680PLA380, P21OABDA, max UDMA/100
[    9.183140] ata1.00: 156301488 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    9.193952] Key type encrypted registered
[    9.195714] rtc-mv f1010300.rtc: setting system clock to 2018-09-29 08:51:42 UTC (1538211102)
[    9.213533] ata1.00: configured for UDMA/100
[    9.228587] scsi 0:0:0:0: Direct-Access     ATA      Hitachi HDS72168 ABDA PQ: 0 ANSI: 5
[    9.238143] sd 0:0:0:0: [sda] 156301488 512-byte logical blocks: (80.0 GB/74.5 GiB)
[    9.246823] sd 0:0:0:0: [sda] Write Protect is off
[    9.251835] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    9.290251]  sda: sda1 sda2 sda3 sda4 sda5
[    9.297206] sd 0:0:0:0: [sda] Attached SCSI disk
[    9.315792] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    9.507436] usb 1-1: New USB device found, idVendor=03f0, idProduct=3807
[    9.514213] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    9.521451] usb 1-1: Product: c485w
[    9.524962] usb 1-1: Manufacturer: HP
[    9.528687] usb 1-1: SerialNumber: UTa224010000BA
[    9.534309] usb-storage 1-1:1.0: USB Mass Storage device detected
[    9.540887] scsi host2: usb-storage 1-1:1.0
[    9.576083] ata2: SATA link down (SStatus 0 SControl F300)
[    9.595307] Freeing unused kernel memory: 1024K
Loading, please wait...
starting version 232
[   10.154034] usbcore: registered new interface driver uas
[   10.579052] scsi 2:0:0:0: Direct-Access     HP       c485w            0.00 PQ: 0 ANSI: 2
[   10.597629] sd 2:0:0:0: [sdb] 7892040 512-byte logical blocks: (4.04 GB/3.76 GiB)
[   10.611641] sd 2:0:0:0: [sdb] Write Protect is off
[   10.621993] sd 2:0:0:0: [sdb] Asking for cache data failed
[   10.632480] sd 2:0:0:0: [sdb] Assuming drive cache: write through
Begin: Loading essential drivers ... done.
[   10.773851]  sdb: sdb1 sdb2
[   10.783856] sd 2:0:0:0: [sdb] Attached SCSI removable disk
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Warning: fsck not present, so skipping root file system
[   20.777766] EXT4-fs (sdb1): mounting ext3 file system using the ext4 subsystem
[   20.796847] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Setting hostname to 'debian'...done.
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
. ok 
[....] Synthesizing the initial hotplug events...[   23.037873] input: gpio_keys as /devices/platform/gpio_keys/input/input0
[ ok                                             done.
[....] Waiting for /dev to be fully populated...[   23.334733] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[   23.437570] adt7475 0-002e: hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[   23.437750] adt7475 0-002e: ADT7473 device, revision 0
[   23.437759] adt7475 0-002e: Optional features: fan4 pwm2
[   23.577030] orion_wdt: Initial timeout 21 sec
[   23.625687] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   23.665837] sd 2:0:0:0: Attached scsi generic sg1 type 0
[   23.676626] marvell-cesa f1030000.crypto: CESA device successfully registered
[   23.991851] random: crng init done
done.
[ ok ] Activating swap:.
[   25.165899] EXT4-fs (sdb1): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.29.2
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sdb1 
e2fsck 1.43.4 (31-Jan-2017)
rootfs: clean, 14466/122160 files, 199499/488561 blocks
. ok 
[   25.426046] EXT4-fs (sdb1): re-mounted. Opts: errors=remount-ro
[ ok ] Will now activate lvm and md swap:done.
[info] Will now check all file systems.
fsck from util-linux 2.29.2
Checking all file systems.
LABEL=rootfs is mounted
[ 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 ] Setting kernel variables...done.
[ ok ] Initializing random number generator...done.
[....] Configuring network interfaces...Cannot find device "eth0"
ifup: failed to bring up eth0
failed.
[   28.869578] NET: Registered protocol family 10
[   28.876943] Segment Routing with IPv6
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1281 (syslogd)
. ok 
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting NFS common utilities: statd idmapd.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1280 (klogd)
. ok 
[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 9 debian ttyS0

debian login: root
Password: 
Last login: Fri Sep 28 15:10:07 PDT 2018 on ttyS0
Linux debian 4.12.1-kirkwood-tld-1 #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 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:~# ping google.com
ping: google.com: Temporary failure in name resolution
root@debian:~#

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


Regards,
garagoyun
Re: Debian on Freecom Silverstore 2 NAS
September 29, 2018 03:28AM
Arhgh :) The "fix" did not get any effect I hope see. It was ignored.

Will look again tomorrow.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Freecom Silverstore 2 NAS
September 29, 2018 03:55AM
garagoyun,

One more test. This time I would like you to boot back with the NSA325 DTB embedded (instead of the new DTB), and plug in the ethernet cable before powering up. And the hwaddr needs to be hardcoded inside /etc/network/interfaces.

If the behavior is what I think it is (same quirk as NSA325), then network should be up. I don't recall you did this test.

And this is the network test only. Other aspects are not relevant (they might be wrong).

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 09/29/2018 03:59AM by bodhi.
Re: Debian on Freecom Silverstore 2 NAS
September 29, 2018 04:53AM
bodhi Wrote:
-------------------------------------------------------
> garagoyun,
>
> One more test. This time I would like you to boot
> back with the NSA325 DTB embedded (instead of the
> new DTB), and plug in the ethernet cable before
> powering up. And the hwaddr needs to be hardcoded
> inside /etc/network/interfaces.
>
> If the behavior is what I think it is (same quirk
> as NSA325), then network should be up. I don't
> recall you did this test.
>
> And this is the network test only. Other aspects
> are not relevant (they might be wrong).


I have tried that. Still the same:

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_ 
| | | |___|  _ \ / _ \ / _ \| __| 
| |_| |___| |_) | (_) | (_) | |_ 
 \___/    |____/ \___/ \___/ \__|  ** uboot_ver:v0.0.9 **

 ** MARVELL BOARD: HNC-N2 LE 

U-Boot 1.1.4 (Nov  9 2011 - 17:49:26) Marvell version: 3.5.9

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CFB00

Soc: 88F6282 A1CPU running @ 1000Mhz L2 running @ 333Mhz
SysClock = 400Mhz , TClock = 200Mhz 

DRAM (DDR3) CAS Latency = 6 tRP = 6 tRAS = 15 tRCD=6
DRAM CS[0] base 0x00000000   size 128MB 
DRAM Total size 128MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:128 MB
Found ADT7473, program PWM1 ... OK
Flash:  0 kB

Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode (5)
  Device 0 @ 0 0:
Model: Hitachi HDS721680PLA380                  Firm: P21OABDA Ser#:       PVE201ZESSYGNM
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 76319.0 MB = 74.5 GB (156301488 x 512)


CPU : Marvell Feroceon (Rev 1)
Scanning partition header:

Streaming disabled 
Write allocate disabled


USB 0: host mode
PEX 0: PCI Express Root Complex Interface
PEX interface detected Link X1
PEX 1: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0 
Marvell>> 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)'
Marvell>> setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 ${mtdparts} earlyprintk=serial'
Marvell>> setenv bootcmd_usb 'usb start; ext2load usb 0:1 0x800000 /boot/uImage; ext2load usb 0:1 0x2100000 /boot/uInitrd'
Marvell>> setenv bootcmd_exec 'run set_bootargs; run bootcmd_usb; bootm 0x800000 0x2100000'
Marvell>> run bootcmd_exec
(Re)start USB...
USB:   scanning bus for devices... 2 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
1 Storage Device(s) found
....
.
......
............
.........................
...................................................
......................................................................................................
.........................................................................................................................................................................

3836140 bytes read
....
.
......
............
.........................
...................................................
......................................................................................................
.................................................................................................................................................................................................................
.....................................................................................................................................................................................................................................................................................................

7245696 bytes read
## Booting image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2018-09-29  10:37:05 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3836076 Bytes =  3.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 02100000 ...
   Image Name:   initramfs-4.12.1-kirkwood-tld-1
   Created:      2017-07-24   0:18:23 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7245632 Bytes =  6.9 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: ZyXEL NSA325
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] 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] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 109412K/131072K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 21660K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0db3274   ( 717 kB)
[    0.000000]        .bss : 0xc0db9b9c - 0xc0e01e60   ( 289 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000008] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.007908] Switching to timer-based delay loop, resolution 5ns
[    0.014403] Console: colour dummy device 80x30
[    0.018983] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.029589] pid_max: default: 32768 minimum: 301
[    0.034481] Security Framework initialized
[    0.038815] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.045491] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.053549] CPU: Testing write buffer coherency: ok
[    0.059553] Setting up static identity map for 0x100000 - 0x100058
[    0.066086] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.074826] devtmpfs: initialized
[    0.084059] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.094019] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.100646] prandom: seed boundary self test passed
[    0.110124] prandom: 100 self tests passed
[    0.114296] pinctrl core: initialized pinctrl subsystem
[    0.120836] NET: Registered protocol family 16
[    0.125828] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.134550] cpuidle: using governor ladder
[    0.138841] cpuidle: using governor menu
[    0.143340] Feroceon L2: Enabling L2
[    0.147027] Feroceon L2: Cache support initialised.
[    0.152412] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.169480] No ATAGs?
[    0.180766] vgaarb: loaded
[    0.186252] SCSI subsystem initialized
[    0.190698] usbcore: registered new interface driver usbfs
[    0.196307] usbcore: registered new interface driver hub
[    0.201805] usbcore: registered new device driver usb
[    0.208085] clocksource: Switched to clocksource orion_clocksource
[    0.320127] VFS: Disk quotas dquot_6.6.0
[    0.324202] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.343877] NET: Registered protocol family 2
[    0.349199] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.356232] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.362697] TCP: Hash tables configured (established 1024 bind 1024)
[    0.369214] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.375127] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.381681] NET: Registered protocol family 1
[    0.386568] RPC: Registered named UNIX socket transport module.
[    0.392630] RPC: Registered udp transport module.
[    0.397400] RPC: Registered tcp transport module.
[    0.402209] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.408993] Unpacking initramfs...
[    1.187058] Freeing initrd memory: 7076K
[    1.191270] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.198846] audit: initializing netlink subsys (disabled)
[    1.204785] Initialise system trusted keyrings
[    1.209355] audit: type=2000 audit(1.196:1): state=initialized audit_enabled=0 res=1
[    1.217206] Key type blacklist registered
[    1.221505] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    1.228068] zbud: loaded
[    1.231882] NFS: Registering the id_resolver key type
[    1.237016] Key type id_resolver registered
[    1.241355] Key type id_legacy registered
[    1.245455] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.252251] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.258903] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    1.266219] fuse init (API version 7.26)
[    1.270628] orangefs_debugfs_init: called with debug mask: :none: :0:
[    1.277370] orangefs_init: module version upstream loaded
[    1.282867] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.558094] random: fast init done
[    8.306536] Key type asymmetric registered
[    8.310955] Asymmetric key parser 'x509' registered
[    8.315961] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    8.323568] io scheduler noop registered
[    8.327556] io scheduler deadline registered
[    8.332038] io scheduler cfq registered (default)
[    8.338362] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    8.347932] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00
[    8.356599] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    8.362954] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    8.369914] pci_bus 0000:00: root bus resource [bus 00-ff]
[    8.375832] PCI: bus0: Fast back to back transfers disabled
[    8.381514] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    8.418167] PCI: bus1: Fast back to back transfers disabled
[    8.424012] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    8.430990] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
[    8.438388] pci 0000:00:01.0: PCI bridge to [bus 01]
[    8.443428] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    8.450383] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    8.457251] mv_xor f1060800.xor: Marvell shared XOR driver
[    8.518994] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    8.526861] mv_xor f1060900.xor: Marvell shared XOR driver
[    8.588981] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    8.597112] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    8.605157] console [ttyS0] disabled
[    8.608941] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    8.617989] console [ttyS0] enabled
[    8.617989] console [ttyS0] enabled
[    8.625140] bootconsole [earlycon0] disabled
[    8.625140] bootconsole [earlycon0] disabled
[    8.643693] loop: module loaded
[    8.647507] sata_mv f1080000.sata: slots 32 ports 2
[    8.655773] scsi host0: sata_mv
[    8.659514] scsi host1: sata_mv
[    8.662980] ata1: SATA max UDMA/133 irq 32
[    8.667104] ata2: SATA max UDMA/133 irq 32
[    8.672138] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    8.678641] nand: Samsung NAND 128MiB 3,3V 8-bit
[    8.683289] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    8.690926] Scanning device for bad blocks
[    8.704196] Bad eraseblock 113 at 0x000000e20000
[    8.733741] Bad eraseblock 422 at 0x0000034c0000
[    8.786868] 7 cmdlinepart partitions found on MTD device orion_nand
[    8.793191] Creating 7 MTD partitions on "orion_nand":
[    8.798391] 0x000000000000-0x0000000a0000 : "uboot"
[    8.804864] 0x0000000a0000-0x0000000e0000 : "param"
[    8.811391] 0x0000000e0000-0x000000360000 : "preroot"
[    8.817907] 0x000000360000-0x0000006e0000 : "uimage"
[    8.824270] 0x0000006e0000-0x000007dc0000 : "rootfs"
[    8.831577] 0x000007dc0000-0x000008000000 : "misc"
[    8.837775] 0x000000000000-0x000008000000 : "flash"
[    8.846559] libphy: Fixed MDIO Bus: probed
[    8.851735] libphy: orion_mdio_bus: probed
[    8.856266] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    8.863858] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.870513] ehci-pci: EHCI PCI platform driver
[    8.875055] ehci-orion: EHCI orion driver
[    8.879373] orion-ehci f1050000.ehci: EHCI Host Controller
[    8.884915] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    8.892878] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    8.928116] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    8.934462] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    8.941350] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.948661] usb usb1: Product: EHCI Host Controller
[    8.953565] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    8.960342] usb usb1: SerialNumber: f1050000.ehci
[    8.965985] hub 1-0:1.0: USB hub found
[    8.969860] hub 1-0:1.0: 1 port detected
[    8.974606] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    8.979968] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    8.987812] xhci_hcd 0000:01:00.0: hcc params 0x014042cb hci version 0x96 quirks 0x00000004
[    8.996548] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    9.003427] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.010789] usb usb2: Product: xHCI Host Controller
[    9.015695] usb usb2: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[    9.022453] usb usb2: SerialNumber: 0000:01:00.0
[    9.027816] hub 2-0:1.0: USB hub found
[    9.031695] hub 2-0:1.0: 2 ports detected
[    9.036290] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    9.041619] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[    9.049209] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    9.057504] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    9.064360] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.071643] usb usb3: Product: xHCI Host Controller
[    9.076544] usb usb3: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[    9.083413] usb usb3: SerialNumber: 0000:01:00.0
[    9.088821] hub 3-0:1.0: USB hub found
[    9.092642] hub 3-0:1.0: 2 ports detected
[    9.097509] usbcore: registered new interface driver usb-storage
[    9.103991] mousedev: PS/2 mouse device common for all mice
[    9.110001] i2c /dev entries driver
[    9.114559] rtc-pcf8563 0-0051: pcf8563_write_block_data: err=-6 addr=0e, data=03
[    9.122152] rtc-pcf8563 0-0051: pcf8563_probe: write error
[    9.127708] rtc-pcf8563: probe of 0-0051 failed with error -5
[    9.136424] hidraw: raw HID events driver (C) Jiri Kosina
[    9.142518] drop_monitor: Initializing network drop monitor service
[    9.149121] NET: Registered protocol family 17
[    9.153677] Key type dns_resolver registered
[    9.158979] registered taskstats version 1
[    9.163096] Loading compiled-in X.509 certificates
[    9.167967] zswap: loaded using pool lzo/zbud
[    9.178183] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    9.189382] ata1.00: ATA-7: Hitachi HDS721680PLA380, P21OABDA, max UDMA/100
[    9.196384] ata1.00: 156301488 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    9.205101] Key type big_key registered
[    9.220017] Key type encrypted registered
[    9.226173] hctosys: unable to open rtc device (rtc0)
[    9.231573] ata1.00: configured for UDMA/100
[    9.232169] scsi 0:0:0:0: Direct-Access     ATA      Hitachi HDS72168 ABDA PQ: 0 ANSI: 5
[    9.233517] sd 0:0:0:0: [sda] 156301488 512-byte logical blocks: (80.0 GB/74.5 GiB)
[    9.233605] sd 0:0:0:0: [sda] Write Protect is off
[    9.233768] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    9.291870]  sda: sda1 sda2 sda3 sda4 sda5
[    9.299013] sd 0:0:0:0: [sda] Attached SCSI disk
[    9.328124] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    9.519767] usb 1-1: New USB device found, idVendor=03f0, idProduct=3807
[    9.526543] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    9.533779] usb 1-1: Product: c485w
[    9.537290] usb 1-1: Manufacturer: HP
[    9.541021] usb 1-1: SerialNumber: UTa224010000BA
[    9.546623] usb-storage 1-1:1.0: USB Mass Storage device detected
[    9.553204] scsi host2: usb-storage 1-1:1.0
[    9.573135] ata2: SATA link down (SStatus 0 SControl F300)
[    9.592409] Freeing unused kernel memory: 1024K
Loading, please wait...
starting version 232
[   10.172449] usbcore: registered new interface driver uas
[   10.573128] scsi 2:0:0:0: Direct-Access     HP       c485w            0.00 PQ: 0 ANSI: 2
[   10.591961] sd 2:0:0:0: [sdb] 7892040 512-byte logical blocks: (4.04 GB/3.76 GiB)
[   10.605824] sd 2:0:0:0: [sdb] Write Protect is off
[   10.616198] sd 2:0:0:0: [sdb] Asking for cache data failed
[   10.628226] sd 2:0:0:0: [sdb] Assuming drive cache: write through
Begin: Loading essential drivers ... done.
[   10.768926]  sdb: sdb1 sdb2
[   10.779441] sd 2:0:0:0: [sdb] Attached SCSI removable disk
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Warning: fsck not present, so skipping root file system
[   20.800353] EXT4-fs (sdb1): mounting ext3 file system using the ext4 subsystem
[   20.819329] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Setting hostname to 'debian'...done.
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
. ok 
[ ok ] Synthesizing the initial hotplug events...done.
[   23.121442] input: gpio_keys as /devices/platform/gpio_keys/input/input0
[....] Waiting for /dev to be fully populated...[   23.374036] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[   23.501008] orion_wdt: Initial timeout 21 sec
[   23.610469] marvell-cesa f1030000.crypto: CESA device successfully registered
[   23.658862] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   23.692394] sd 2:0:0:0: Attached scsi generic sg1 type 0
[   23.763846] random: crng init done
done.
[ ok ] Activating swap:.
[   25.111347] EXT4-fs (sdb1): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.29.2
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sdb1 
e2fsck 1.43.4 (31-Jan-2017)
rootfs: clean, 14466/122160 files, 199502/488561 blocks
. ok 
[   25.386492] EXT4-fs (sdb1): re-mounted. Opts: errors=remount-ro
[ ok ] Will now activate lvm and md swap:done.
[info] Will now check all file systems.
fsck from util-linux 2.29.2
Checking all file systems.
LABEL=rootfs is mounted
[ 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 ] Setting kernel variables...done.
[ ok ] Initializing random number generator...done.
[....] Configuring network interfaces...Cannot find device "eth0"
ifup: failed to bring up eth0
failed.
[   28.835602] NET: Registered protocol family 10
[   28.842832] Segment Routing with IPv6
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1275 (syslogd)
. ok 
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting NFS common utilities: statd idmapd.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1278 (klogd)
. ok 
[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 9 debian ttyS0

debian login: root
Password: 
Last login: Sat Sep 29 01:52:16 PDT 2018 on ttyS0
Linux debian 4.12.1-kirkwood-tld-1 #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 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:~# cat /etc/network/interfaces 
auto lo eth0
iface lo inet loopback
#iface eth0 inet dhcp
iface eth0 inet static
        address 192.168.1.224
        netmask 255.255.255.0
        gateway 192.168.1.254
        hwaddress ether 00:01:DB:1E:24:C2
root@debian:~#

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


Regards,
garagoyun
Re: Debian on Freecom Silverstore 2 NAS
September 29, 2018 12:02PM
bodhi,

I found I made a mistake in the MAC address. it should have been 00:01:DB:1E:24:F2 (instead of 00:01:DB:1E:24:C2).

But even after changing that, there is still no eth0.


The original kernel does activate the network without any problems, however. :(

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


Regards,
garagoyun
Re: Debian on Freecom Silverstore 2 NAS
September 29, 2018 03:18PM
bodhi,

I had some spare time today to mess a bit with the device.

Relying on the information from https://wikidevi.com/wiki/Freecom_SilverStore I did research which other devices have the same ETH chip:
ETH chip1: Marvell 88F6282
ETH chip2: Marvell 88E1318
LAN speed: 10/100/1000
LAN ports: 1

Apparently, there are two other: Iomega StorCenter ix2-dl and Netgear ReadyNAS RND2000 v2 (Duo v2)

So I tried to boot with the DTB for the StoreCenter first. Eth0 did work this time, but there was still no internet connection.

Then I tried with the DTB for ReadyNAS. This time I was also able to connect to the internet. I am not sure if that information would be of any help. Just a note, with both DTB files there were a lot of "Bad eraseblock" warnings. I assume it could be because the other two devices have a bigger NAND flash memory. I am not sure.

[   13.443179] Bad eraseblock 1000 at 0x000007d00000
[   13.447956] Bad eraseblock 1001 at 0x000007d20000
[   13.452710] Bad eraseblock 1002 at 0x000007d40000
[   13.457488] Bad eraseblock 1003 at 0x000007d60000
[   13.462241] Bad eraseblock 1004 at 0x000007d80000
[   13.466993] Bad eraseblock 1005 at 0x000007da0000
[   13.471771] Bad eraseblock 1006 at 0x000007dc0000
[   13.476525] Bad eraseblock 1007 at 0x000007de0000
[   13.481310] Bad eraseblock 1008 at 0x000007e00000
[   13.486065] Bad eraseblock 1009 at 0x000007e20000
[   13.490841] Bad eraseblock 1010 at 0x000007e40000
[   13.495596] Bad eraseblock 1011 at 0x000007e60000
[   13.500372] Bad eraseblock 1012 at 0x000007e80000
[   13.505127] Bad eraseblock 1013 at 0x000007ea0000
[   13.509903] Bad eraseblock 1014 at 0x000007ec0000
[   13.514658] Bad eraseblock 1015 at 0x000007ee0000
[   13.519435] Bad eraseblock 1016 at 0x000007f00000
[   13.524189] Bad eraseblock 1017 at 0x000007f20000
[   13.528966] Bad eraseblock 1018 at 0x000007f40000
[   13.533719] Bad eraseblock 1019 at 0x000007f60000
[   13.538496] Bad eraseblock 1020 at 0x000007f80000
[   13.543251] Bad eraseblock 1021 at 0x000007fa0000
[   13.548036] Bad eraseblock 1022 at 0x000007fc0000
[   13.552790] Bad eraseblock 1023 at 0x000007fe0000
[   13.557563] 7 cmdlinepart partitions found on MTD device orion_nand
[   13.563859] Creating 7 MTD partitions on "orion_nand":
[   13.569057] 0x000000000000-0x0000000a0000 : "uboot"
[   13.575573] 0x0000000a0000-0x0000000e0000 : "param"
[   13.581818] 0x0000000e0000-0x000000360000 : "preroot"
[   13.588283] 0x000000360000-0x0000006e0000 : "uimage"
[   13.594650] 0x0000006e0000-0x000007dc0000 : "rootfs"
[   13.602057] 0x000007dc0000-0x000008000000 : "misc"
[   13.608425] 0x000000000000-0x000008000000 : "flash"
[   13.617290] libphy: Fixed MDIO Bus: probed
[   13.622395] libphy: orion_mdio_bus: probed
[   13.632122] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   13.738435] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:01:db:1e:24:f2
[   13.747347] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   13.753925] ehci-pci: EHCI PCI platform driver
[   13.758490] ehci-orion: EHCI orion driver
[   13.762750] orion-ehci f1050000.ehci: EHCI Host Controller
[   13.768333] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   13.776310] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[   13.807358] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   13.813660] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   13.820518] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   13.827797] usb usb1: Product: EHCI Host Controller
[   13.832700] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[   13.839459] usb usb1: SerialNumber: f1050000.ehci
[   13.844938] hub 1-0:1.0: USB hub found
[   13.848818] hub 1-0:1.0: 1 port detected
[   13.853446] xhci_hcd 0000:01:00.0: xHCI Host Controller
[   13.858798] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[   13.866607] xhci_hcd 0000:01:00.0: hcc params 0x014042cb hci version 0x96 quirks 0x00000004
[   13.875333] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[   13.882194] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   13.889475] usb usb2: Product: xHCI Host Controller
[   13.894376] usb usb2: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[   13.901132] usb usb2: SerialNumber: 0000:01:00.0
[   13.906513] hub 2-0:1.0: USB hub found
[   13.910385] hub 2-0:1.0: 2 ports detected
[   13.915032] xhci_hcd 0000:01:00.0: xHCI Host Controller
[   13.920362] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[   13.927952] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[   13.936245] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[   13.943101] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   13.950382] usb usb3: Product: xHCI Host Controller
[   13.955285] usb usb3: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[   13.962153] usb usb3: SerialNumber: 0000:01:00.0
[   13.967654] hub 3-0:1.0: USB hub found
[   13.971475] hub 3-0:1.0: 2 ports detected
[   13.976394] usbcore: registered new interface driver usb-storage
[   13.982899] mousedev: PS/2 mouse device common for all mice
[   13.989248] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[   13.996310] i2c /dev entries driver
[   14.003128] hidraw: raw HID events driver (C) Jiri Kosina
[   14.009075] drop_monitor: Initializing network drop monitor service
[   14.015636] NET: Registered protocol family 17
[   14.020434] Key type dns_resolver registered
[   14.025720] registered taskstats version 1
[   14.029881] Loading compiled-in X.509 certificates
[   14.034760] zswap: loaded using pool lzo/zbud
[   14.050395] Key type big_key registered
[   14.065025] Key type encrypted registered
[   14.071157] rtc-mv f1010300.rtc: setting system clock to 2018-09-29 21:05:03 UTC (1538255103)
[   14.084181] Freeing unused kernel memory: 1024K
Loading, please wait...
starting version 232
[   14.207455] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   14.419207] usb 1-1: New USB device found, idVendor=03f0, idProduct=3807
[   14.425974] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   14.454636] usb 1-1: Product: c485w
[   14.464865] usb 1-1: Manufacturer: HP
[   14.483502] usb 1-1: SerialNumber: UTa224010000BA
[   14.491967] usb-storage 1-1:1.0: USB Mass Storage device detected
[   14.511319] scsi host2: usb-storage 1-1:1.0
[   14.651082] rtc-rs5c372 0-0032: can't read registers
[   14.656097] rtc-rs5c372: probe of 0-0032 failed with error -5
[   15.178884] usbcore: registered new interface driver uas
Begin: Loading essential drivers ... done.
[   15.538554] scsi 2:0:0:0: Direct-Access     HP       c485w            0.00 PQ: 0 ANSI: 2
[   15.553395] sd 2:0:0:0: [sdb] 7892040 512-byte logical blocks: (4.04 GB/3.76 GiB)
[   15.568010] sd 2:0:0:0: [sdb] Write Protect is off
[   15.577036] sd 2:0:0:0: [sdb] Asking for cache data failed
[   15.587406] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[   15.728232]  sdb: sdb1 sdb2
[   15.739623] sd 2:0:0:0: [sdb] Attached SCSI removable disk
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Warning: fsck not present, so skipping root file system
[   25.319282] EXT4-fs (sdb1): mounting ext3 file system using the ext4 subsystem
[   25.338383] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Setting hostname to 'debian'...done.
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
. ok 
[....] Synthesizing the initial hotplug events...[   27.601129] input: gpio-keys as /devices/platform/gpio-keys/input/input0
[ ok                                             done.
[....] Waiting for /dev to be fully populated...[   27.855716] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[   28.085702] orion_wdt: Initial timeout 21 sec
[   28.200067] marvell-cesa f1030000.crypto: CESA device successfully registered
[   28.253217] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   28.284849] sd 2:0:0:0: Attached scsi generic sg1 type 0
[   28.366683] random: crng init done
done.
[ ok ] Activating swap:.
[   29.678623] EXT4-fs (sdb1): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.29.2
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sdb1 
e2fsck 1.43.4 (31-Jan-2017)
rootfs: clean, 14466/122160 files, 199542/488561 blocks
. ok 
[   29.940421] EXT4-fs (sdb1): re-mounted. Opts: errors=remount-ro
[ ok ] Will now activate lvm and md swap:done.
[info] Will now check all file systems.
fsck from util-linux 2.29.2
Checking all file systems.
LABEL=rootfs is mounted
[ 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 ] Setting kernel variables...done.
[ ok ] Initializing random number generator...done.
[   33.610911] NET: Registered protocol family 10
[   33.618185] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   33.624235] Segment Routing with IPv6
[   34.615608] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
[   34.625455] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ ok ] Configuring network interfaces...done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1329 (syslogd)
. 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).
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1328 (klogd)
. ok 
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 9 debian ttyS0

debian login: root
Password: 
Last login: Sat Sep 29 13:56:19 PDT 2018 on ttyS0
Linux debian 4.12.1-kirkwood-tld-1 #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 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:~# ping google.com
PING google.com(lhr35s10-in-x0e.1e100.net (2a00:1450:4009:812::200e)) 56 data bytes
64 bytes from lhr35s10-in-x0e.1e100.net (2a00:1450:4009:812::200e): icmp_seq=1 ttl=54 time=48.5 ms
64 bytes from lhr35s10-in-x0e.1e100.net (2a00:1450:4009:812::200e): icmp_seq=2 ttl=54 time=42.5 ms
64 bytes from lhr35s10-in-x0e.1e100.net (2a00:1450:4009:812::200e): icmp_seq=3 ttl=54 time=36.8 ms
64 bytes from lhr35s10-in-x0e.1e100.net (2a00:1450:4009:812::200e): icmp_seq=4 ttl=54 time=92.8 ms
64 bytes from lhr35s10-in-x0e.1e100.net (2a00:1450:4009:812::200e): icmp_seq=5 ttl=54 time=34.7 ms
^C
--- google.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4006ms
rtt min/avg/max/mdev = 34.781/51.117/92.813/21.393 ms
root@debian:~# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.224  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 2a00:23c5:7882:9700:201:dbff:fe1e:24f2  prefixlen 64  scopeid 0x0<global>
        inet6 fe80::201:dbff:fe1e:24f2  prefixlen 64  scopeid 0x20<link>
        ether 00:01:db:1e:24:f2  txqueuelen 1000  (Ethernet)
        RX packets 29  bytes 3495 (3.4 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 44  bytes 5489 (5.3 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 37  

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 4  bytes 218 (218.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 4  bytes 218 (218.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

root@debian:~#


Also, when I was looking through the GPL source, in the driver directory there two files e1000e-1.1.19 and r8168-8.020.00. Aren't those Intel and Realtek network drivers? What are they for?

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


Regards,
garagoyun



Edited 3 time(s). Last edit at 09/29/2018 03:34PM by garagoyun.
Re: Debian on Freecom Silverstore 2 NAS
September 29, 2018 03:50PM
garagoyun,

> Then I tried with the DTB for ReadyNAS. This time
> I was also able to connect to the internet. I am
> not sure if that information would be of any help.

Definitely. The GPL does not have any special patch about this network chip (unlike the NSA325 which has a patch to perform a special sequence). So I thought we only missing some info, that could be found by trial and error only. Good works :) let me take a look at that box DTS

> Just a note, with both DTB files there were a lot
> of "Bad eraseblock" warnings. I assume it could be
> because the other two devices have a bigger NAND
> flash memory. I am not sure.

This is OK. Those boxes have different NAND definition in the DTS.

> [ 13.632122] mv643xx_eth: MV-643xx 10/100/1000
> ethernet driver version 1.4
> [ 13.738435] mv643xx_eth_port mv643xx_eth_port.0
> eth0: port 0 with MAC address 00:01:db:1e:24:f2

> [ 34.615608] mv643xx_eth_port mv643xx_eth_port.0
> eth0: link up, 100 Mb/s, full duplex, flow control
> disabled

Cool!

> Also, when I was looking through the GPL source,
> in the driver directory there two files
> e1000e-1.1.19 and r8168-8.020.00. Aren't those
> Intel and Realtek network drivers? What are they
> for?

That did not ring any bell. Probably not applicable.

I'm glad we have progress on ethernet so you can upgrade the system and install packages. You can start testing Buttons, LEDs, sensor, and other aspects.

I will become very busy with real life works in the next few weeks.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Freecom Silverstore 2 NAS
September 29, 2018 04:06PM
I see, damn! they use different PHY register in this box and the ready NAS :)

No wonder it behave like there is no power into the NIC.

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 09/29/2018 04:08PM by bodhi.
Re: Debian on Freecom Silverstore 2 NAS
September 29, 2018 04:19PM
Please try this new version: ethernet, sensor, button. No LED yet.

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 09/29/2018 04:20PM by bodhi.
Attachments:
open | download - kirkwood-silverstore-hncn2.dtb (10.9 KB)
open | download - kirkwood-silverstore-hncn2.dts (4 KB)
Re: Debian on Freecom Silverstore 2 NAS
September 30, 2018 02:27AM
bodhi,

That new DBT works beautifully. The satisfaction of success haha. Thanks very much for your immense help! Really appreciated.


         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_ 
| | | |___|  _ \ / _ \ / _ \| __| 
| |_| |___| |_) | (_) | (_) | |_ 
 \___/    |____/ \___/ \___/ \__|  ** uboot_ver:v0.0.9 **

 ** MARVELL BOARD: HNC-N2 LE 

U-Boot 1.1.4 (Nov  9 2011 - 17:49:26) Marvell version: 3.5.9

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CFB00

Soc: 88F6282 A1CPU running @ 1000Mhz L2 running @ 333Mhz
SysClock = 400Mhz , TClock = 200Mhz 

DRAM (DDR3) CAS Latency = 6 tRP = 6 tRAS = 15 tRCD=6
DRAM CS[0] base 0x00000000   size 128MB 
DRAM Total size 128MB  16bit width
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:128 MB
Found ADT7473, program PWM1 ... OK
Flash:  0 kB

Marvell Serial ATA Adapter
Integrated Sata device found
[0 0 0]: Enable DMA mode (5)
  Device 0 @ 0 0:
Model: Hitachi HDS721680PLA380                  Firm: P21OABDA Ser#:       PVE201ZESSYGNM
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 76319.0 MB = 74.5 GB (156301488 x 512)


CPU : Marvell Feroceon (Rev 1)
Scanning partition header:

Streaming disabled 
Write allocate disabled


USB 0: host mode
PEX 0: PCI Express Root Complex Interface
PEX interface detected Link X1
PEX 1: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0 
Marvell>> 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)'
Marvell>> setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 ${mtdparts} earlyprintk=serial'
Marvell>> setenv bootcmd_usb 'usb start; ext2load usb 0:1 0x800000 /boot/uImage; ext2load usb 0:1 0x2100000 /boot/uInitrd'
Marvell>> setenv bootcmd_exec 'run set_bootargs; run bootcmd_usb; bootm 0x800000 0x2100000'
Marvell>> run bootcmd_exec
(Re)start USB...
USB:   scanning bus for devices... 2 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
1 Storage Device(s) found
....
.
......
............
.........................
...................................................
......................................................................................................
.........................................................................................................................................................................

3832719 bytes read
....
.
......
............
.........................
...................................................
......................................................................................................
............................................................................................................................................................................................................
....
.....................................................................................................................................................................................................................................................................................................

7245696 bytes read
## Booting image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2018-09-29  23:52:23 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3832655 Bytes =  3.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 02100000 ...
   Image Name:   initramfs-4.12.1-kirkwood-tld-1
   Created:      2017-07-24   0:18:23 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7245632 Bytes =  6.9 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Freecom Silverstore HNCN2
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] 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] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 109424K/131072K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 21648K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0db3274   ( 717 kB)
[    0.000000]        .bss : 0xc0db9b9c - 0xc0e01e60   ( 289 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000008] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.007907] Switching to timer-based delay loop, resolution 5ns
[    0.014395] Console: colour dummy device 80x30
[    0.018973] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.029582] pid_max: default: 32768 minimum: 301
[    0.034468] Security Framework initialized
[    0.038801] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.045482] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.053542] CPU: Testing write buffer coherency: ok
[    0.059544] Setting up static identity map for 0x100000 - 0x100058
[    0.066059] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.074805] devtmpfs: initialized
[    0.082818] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.092777] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.099408] prandom: seed boundary self test passed
[    0.108888] prandom: 100 self tests passed
[    0.113061] pinctrl core: initialized pinctrl subsystem
[    0.119591] NET: Registered protocol family 16
[    0.124585] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.133215] cpuidle: using governor ladder
[    0.137449] cpuidle: using governor menu
[    0.141970] Feroceon L2: Enabling L2
[    0.145654] Feroceon L2: Cache support initialised.
[    0.151037] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.167490] No ATAGs?
[    0.178323] vgaarb: loaded
[    0.183801] SCSI subsystem initialized
[    0.188213] usbcore: registered new interface driver usbfs
[    0.193844] usbcore: registered new interface driver hub
[    0.199353] usbcore: registered new device driver usb
[    0.205753] clocksource: Switched to clocksource orion_clocksource
[    0.317802] VFS: Disk quotas dquot_6.6.0
[    0.321874] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.341382] NET: Registered protocol family 2
[    0.346695] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.353726] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.360192] TCP: Hash tables configured (established 1024 bind 1024)
[    0.366710] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.372622] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.379164] NET: Registered protocol family 1
[    0.384042] RPC: Registered named UNIX socket transport module.
[    0.390108] RPC: Registered udp transport module.
[    0.394877] RPC: Registered tcp transport module.
[    0.399685] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.406469] Unpacking initramfs...
[    1.182399] Freeing initrd memory: 7076K
[    1.186612] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.194286] audit: initializing netlink subsys (disabled)
[    1.200340] Initialise system trusted keyrings
[    1.204904] Key type blacklist registered
[    1.209067] audit: type=2000 audit(1.184:1): state=initialized audit_enabled=0 res=1
[    1.217088] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    1.223653] zbud: loaded
[    1.227464] NFS: Registering the id_resolver key type
[    1.232597] Key type id_resolver registered
[    1.236912] Key type id_legacy registered
[    1.241007] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.247799] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.254439] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    1.261783] fuse init (API version 7.26)
[    1.266204] orangefs_debugfs_init: called with debug mask: :none: :0:
[    1.273015] orangefs_init: module version upstream loaded
[    1.278510] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.565762] random: fast init done
[    8.302309] Key type asymmetric registered
[    8.306693] Asymmetric key parser 'x509' registered
[    8.311694] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    8.319275] io scheduler noop registered
[    8.323270] io scheduler deadline registered
[    8.327749] io scheduler cfq registered (default)
[    8.334002] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    8.343573] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[    8.351283] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    8.357640] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    8.364576] pci_bus 0000:00: root bus resource [bus 00-ff]
[    8.370511] PCI: bus0: Fast back to back transfers disabled
[    8.376200] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    8.405837] PCI: bus1: Fast back to back transfers disabled
[    8.411680] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    8.418659] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
[    8.426060] pci 0000:00:01.0: PCI bridge to [bus 01]
[    8.431098] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    8.438053] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    8.444876] mv_xor f1060800.xor: Marvell shared XOR driver
[    8.506653] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    8.514516] mv_xor f1060900.xor: Marvell shared XOR driver
[    8.576651] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    8.584764] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    8.592759] console [ttyS0] disabled
[    8.596543] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    8.605590] console [ttyS0] enabled
[    8.605590] console [ttyS0] enabled
[    8.612741] bootconsole [earlycon0] disabled
[    8.612741] bootconsole [earlycon0] disabled
[    8.631376] loop: module loaded
[    8.635164] sata_mv f1080000.sata: slots 32 ports 2
[    8.643374] scsi host0: sata_mv
[    8.647089] scsi host1: sata_mv
[    8.650519] ata1: SATA max UDMA/133 irq 33
[    8.654636] ata2: SATA max UDMA/133 irq 33
[    8.659666] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    8.666169] nand: Samsung NAND 128MiB 3,3V 8-bit
[    8.670812] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    8.678449] Scanning device for bad blocks
[    8.691740] Bad eraseblock 113 at 0x000000e20000
[    8.721289] Bad eraseblock 422 at 0x0000034c0000
[    8.774415] 7 cmdlinepart partitions found on MTD device orion_nand
[    8.780740] Creating 7 MTD partitions on "orion_nand":
[    8.785940] 0x000000000000-0x0000000a0000 : "uboot"
[    8.792334] 0x0000000a0000-0x0000000e0000 : "param"
[    8.798787] 0x0000000e0000-0x000000360000 : "preroot"
[    8.805369] 0x000000360000-0x0000006e0000 : "uimage"
[    8.812004] 0x0000006e0000-0x000007dc0000 : "rootfs"
[    8.819264] 0x000007dc0000-0x000008000000 : "misc"
[    8.825383] 0x000000000000-0x000008000000 : "flash"
[    8.834048] libphy: Fixed MDIO Bus: probed
[    8.839191] libphy: orion_mdio_bus: probed
[    8.848974] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    8.956991] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:01:db:1e:24:f2
[    8.965948] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.972560] ehci-pci: EHCI PCI platform driver
[    8.977147] ehci-orion: EHCI orion driver
[    8.981450] orion-ehci f1050000.ehci: EHCI Host Controller
[    8.987056] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    8.995061] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    9.025795] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    9.032108] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    9.038970] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.046250] usb usb1: Product: EHCI Host Controller
[    9.051152] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    9.057908] usb usb1: SerialNumber: f1050000.ehci
[    9.063481] hub 1-0:1.0: USB hub found
[    9.067363] hub 1-0:1.0: 1 port detected
[    9.072039] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    9.077395] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    9.085204] xhci_hcd 0000:01:00.0: hcc params 0x014042cb hci version 0x96 quirks 0x00000004
[    9.093926] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    9.100785] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.108066] usb usb2: Product: xHCI Host Controller
[    9.112968] usb usb2: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[    9.119724] usb usb2: SerialNumber: 0000:01:00.0
[    9.125209] hub 2-0:1.0: USB hub found
[    9.129080] hub 2-0:1.0: 2 ports detected
[    9.133791] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    9.139128] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[    9.146717] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    9.155012] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    9.161867] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.169177] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    9.175798] ata1.00: ATA-7: Hitachi HDS721680PLA380, P21OABDA, max UDMA/100
[    9.175807] ata1.00: 156301488 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    9.183389] ata1.00: configured for UDMA/100
[    9.183987] scsi 0:0:0:0: Direct-Access     ATA      Hitachi HDS72168 ABDA PQ: 0 ANSI: 5
[    9.185258] sd 0:0:0:0: [sda] 156301488 512-byte logical blocks: (80.0 GB/74.5 GiB)
[    9.185346] sd 0:0:0:0: [sda] Write Protect is off
[    9.185510] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    9.229522] usb usb3: Product: xHCI Host Controller
[    9.234430] usb usb3: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[    9.241389] usb usb3: SerialNumber: 0000:01:00.0
[    9.246817] hub 3-0:1.0: USB hub found
[    9.250802] hub 3-0:1.0: 2 ports detected
[    9.255898]  sda: sda1 sda2 sda3 sda4 sda5
[    9.260926] usbcore: registered new interface driver usb-storage
[    9.269484] sd 0:0:0:0: [sda] Attached SCSI disk
[    9.274555] mousedev: PS/2 mouse device common for all mice
[    9.280930] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    9.288210] i2c /dev entries driver
[    9.293782] hidraw: raw HID events driver (C) Jiri Kosina
[    9.299738] drop_monitor: Initializing network drop monitor service
[    9.306337] NET: Registered protocol family 17
[    9.310888] Key type dns_resolver registered
[    9.316190] registered taskstats version 1
[    9.320309] Loading compiled-in X.509 certificates
[    9.325178] zswap: loaded using pool lzo/zbud
[    9.340772] Key type big_key registered
[    9.355419] Key type encrypted registered
[    9.361348] rtc-mv f1010300.rtc: setting system clock to 2018-09-30 07:58:32 UTC (1538294312)
[    9.425791] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    9.518818] ata2: SATA link down (SStatus 0 SControl F300)
[    9.538060] Freeing unused kernel memory: 1024K
Loading, please wait...
[    9.617463] usb 1-1: New USB device found, idVendor=090c, idProduct=1000
[    9.624229] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    9.645873] usb 1-1: Product: Flash Disk
[    9.649842] usb 1-1: Manufacturer: USB
[    9.660726] usb-storage 1-1:1.0: USB Mass Storage device detected
[    9.676261] scsi host2: usb-storage 1-1:1.0
starting version 232
[   10.132521] usbcore: registered new interface driver uas
Begin: Loading essential drivers ... done.
[   10.884303] scsi 2:0:0:0: Direct-Access     USB      Flash Disk       1100 PQ: 0 ANSI: 4
[   10.897386] sd 2:0:0:0: [sdb] 7866368 512-byte logical blocks: (4.03 GB/3.75 GiB)
[   10.910882] sd 2:0:0:0: [sdb] Write Protect is off
[   10.923385] sd 2:0:0:0: [sdb] No Caching mode page found
[   10.932508] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[   10.950467]  sdb: sdb1
[   10.958150] sd 2:0:0:0: [sdb] Attached SCSI removable disk
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Warning: fsck not present, so skipping root file system
[   20.678783] EXT4-fs (sdb1): mounting ext3 file system using the ext4 subsystem
[   20.696024] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Setting hostname to 'debian'...done.
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
. ok 
[ ok [   22.969814] input: gpio_keys as /devices/platform/gpio_keys/input/input0
                                                 done.
[....] Waiting for /dev to be fully populated...[   23.210740] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[   23.447260] adt7475 0-002e: hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[   23.476248] marvell-cesa f1030000.crypto: CESA device successfully registered
[   23.486410] orion_wdt: Initial timeout 21 sec
[   23.579242] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   23.580587] sd 2:0:0:0: Attached scsi generic sg1 type 0
[   23.677878] adt7475 0-002e: ADT7473 device, revision 0
[   23.717239] adt7475 0-002e: Optional features: fan4 pwm2
[   24.171296] random: crng init done
done.
[ ok ] Activating swap:.
[   25.005209] EXT4-fs (sdb1): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.29.2
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sdb1 
e2fsck 1.43.4 (31-Jan-2017)
rootfs: clean, 14456/246240 files, 204022/983040 blocks
. ok 
[   25.900424] EXT4-fs (sdb1): re-mounted. Opts: errors=remount-ro
[ ok ] Will now activate lvm and md swap:done.
[info] Will now check all file systems.
fsck from util-linux 2.29.2
Checking all file systems.
LABEL=rootfs is mounted
[ 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 ] Setting kernel variables...done.
[ ok ] Initializing random number generator...done.
[   30.817437] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:01:db:1e:24:f2
Sending on   LPF/eth0/00:01:db:1e:24:f2
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3
[   33.080417] NET: Registered protocol family 10
[   33.088082] Segment Routing with IPv6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 5
DHCPREQUEST of 192.168.1.181 on eth0 to 255.255.255.255 port 67
DHCPOFFER of 192.168.1.181 from 192.168.1.254
DHCPACK of 192.168.1.181 from 192.168.1.254
bound to 192.168.1.181 -- renewal in 36669 seconds.
done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1338 (syslogd)
. ok 
[ ok ] Starting NFS common utilities: statd idmapd.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting NTP server: ntpd.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1336 (klogd)
. ok 
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 9 debian ttyS0

debian login: root
Password: 
Last login: Wed Dec 31 16:01:32 PST 1969 from 192.168.0.220 on pts/0
Linux debian 4.12.1-kirkwood-tld-1 #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017 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:~# df -h
Filesystem      Size  Used Avail Use% Mounted on
udev             54M     0   54M   0% /dev
tmpfs            12M  184K   12M   2% /run
/dev/sdb1       3.7G  673M  2.8G  20% /
tmpfs           5.0M     0  5.0M   0% /run/lock
tmpfs            23M     0   23M   0% /run/shm
tmpfs            58M     0   58M   0% /tmp
root@debian:~# ping google.com
PING google.com(lhr35s01-in-x0e.1e100.net (2a00:1450:4009:801::200e)) 56 data bytes
64 bytes from lhr35s01-in-x0e.1e100.net (2a00:1450:4009:801::200e): icmp_seq=1 ttl=54 time=73.7 ms
64 bytes from lhr35s01-in-x0e.1e100.net (2a00:1450:4009:801::200e): icmp_seq=2 ttl=54 time=137 ms
64 bytes from lhr35s01-in-x0e.1e100.net (2a00:1450:4009:801::200e): icmp_seq=3 ttl=54 time=40.0 ms
64 bytes from lhr35s01-in-x0e.1e100.net (2a00:1450:4009:801::200e): icmp_seq=4 ttl=54 time=34.0 ms
64 bytes from lhr35s01-in-x0e.1e100.net (2a00:1450:4009:801::200e): icmp_seq=5 ttl=54 time=36.8 ms
^C
--- google.com ping statistics ---
5 packets transmitted, 5 received, 0% packet loss, time 4005ms
rtt min/avg/max/mdev = 34.023/64.409/137.437/39.238 ms
root@debian:~# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.181  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 2a00:23c5:7882:9700:201:dbff:fe1e:24f2  prefixlen 64  scopeid 0x0<global>
        inet6 fe80::201:dbff:fe1e:24f2  prefixlen 64  scopeid 0x20<link>
        ether 00:01:db:1e:24:f2  txqueuelen 1000  (Ethernet)
        RX packets 15  bytes 2314 (2.2 KiB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 37  bytes 5184 (5.0 KiB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
        device interrupt 37  

lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Local Loopback)
        RX packets 4  bytes 218 (218.0 B)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 4  bytes 218 (218.0 B)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

root@debian:~# cat /etc/fw_env.config  
# MTD device name       Device offset   Env. size       Flash sector size       Number of sectors
#/dev/mtd0 0xc0000 0x20000 0x20000
/dev/mtd1               0x0             0x20000         0x20000
root@debian:~# cat /etc/network/interfaces 
auto lo eth0
iface lo inet loopback
iface eth0 inet dhcp
root@debian:~# fw_printenv
Warning: Bad CRC, using default environment
bootargs=
bootcmd=
bootdelay=2
baudrate=115200
arch=sandbox
cpu=sandbox
board=sandbox
board_name=sandbox
stdin=serial,cros-ec-keyb,usbkbd
stdout=serial,vidconsole
stderr=serial,vidconsole
ethaddr=00:00:11:22:33:44
eth1addr=00:00:11:22:33:45
eth3addr=00:00:11:22:33:46
eth5addr=00:00:11:22:33:47
ipaddr=1.2.3.4
host_boot=if host dev ${devnum}; then setenv devtype host; run scan_dev_for_boot_part; fi
boot_net_pci_enum=pci enum
boot_net_usb_start=usb start
usb_boot=usb start; if usb dev ${devnum}; then setenv devtype usb; run scan_dev_for_boot_part; fi
boot_prefixes=/ /boot/
boot_scripts=boot.scr.uimg boot.scr
boot_script_dhcp=boot.scr.uimg
boot_targets=host1 host0 
boot_extlinux=sysboot ${devtype} ${devnum}:${distro_bootpart} any ${scriptaddr} ${prefix}extlinux/extlinux.conf
scan_dev_for_extlinux=if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}extlinux/extlinux.conf; then echo Found ${prefix}extlinux/extlinux.conf; run boot_extlinux; echo SCRIPT FAILED: continuing...; fi
boot_a_script=load ${devtype} ${devnum}:${distro_bootpart} ${scriptaddr} ${prefix}${script}; source ${scriptaddr}
scan_dev_for_scripts=for script in ${boot_scripts}; do if test -e ${devtype} ${devnum}:${distro_bootpart} ${prefix}${script}; then echo Found U-Boot script ${prefix}${script}; run boot_a_script; echo SCRIPT FAILED: continuing...; fi; done
scan_dev_for_boot=echo Scanning ${devtype} ${devnum}:${distro_bootpart}...; for prefix in ${boot_prefixes}; do run scan_dev_for_extlinux; run scan_dev_for_scripts; done;
scan_dev_for_boot_part=part list ${devtype} ${devnum} -bootable devplist; env exists devplist || setenv devplist 1; for distro_bootpart in ${devplist}; do if fstype ${devtype} ${devnum}:${distro_bootpart} bootfstype; then run scan_dev_for_boot; fi; done
bootcmd_host1=setenv devnum 1; run host_boot
bootcmd_host0=setenv devnum 0; run host_boot
distro_bootcmd=for target in ${boot_targets}; do run bootcmd_${target}; done
bootm_size=0x10000000
kernel_addr_r=0x1000000
fdt_addr_r=0xc00000
ramdisk_addr_r=0x2000000
scriptaddr=0x1000
pxefile_addr_r=0x2000
root@debian:~# shutdown -h now
INIT: Swlevel: 0
INIT: S
Broadcast message from root@debian (ttyS0) (Sun Sep 30 01:08:55 2018):

The system is going down for system halt NOW!
[info] Using makefile-style concurrent boot in runlevel 0.
[....] Stopping busybox' klogd implementation: klogd1336 (klogd)
Stopped klogd (pid 1336).
. ok 
[ ok ] Stopping Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[....] Stopping busybox' syslogd implementation: syslogd1338 (syslogd)
. ok 
[ ok ] Stopping NFS kernel daemon: mountd nfsd.
[ ok ] Unexporting directories for NFS kernel daemon....
[ ok ] Saving random seed...done.
[ ok ] Asking all remaining processes to terminate...done.
[ ok ] All processes ended within 1 seconds...done.
[ ok ] Stopping RPC port mapper daemon: rpcbind.
[ ok ] Stopping NFS common utilities: idmapd statd.
[info] Saving the system clock.
hwclock: Warning: unrecognized third line in adjtime file
(Expected: `UTC' or `LOCAL' or nothing.)
[info] Hardware Clock updated to Sun Sep 30 01:09:01 PDT 2018.
[....] Deconfiguring network interfaces...Removed stale PID file
Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:01:db:1e:24:f2
Sending on   LPF/eth0/00:01:db:1e:24:f2
Sending on   Socket/fallback
DHCPRELEASE on eth0 to 192.168.1.254 port 67
done.
[....] Will now unmount temporary filesystems:umount: /tmp unmounted
. ok 
[ ok ] Will now deactivate swap:.
[  640.925788] EXT4-fs (sdb1): re-mounted. Opts: (null)
[ ok ] Mounting root filesystem read-only...done.
[info] Will now halt.
logger: socket /dev/log: Connection refused
[  643.125496] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[  643.130991] sd 0:0:0:0: [sda] Stopping disk
[  643.538825] reboot: Power down
Quote
bodhi
I'm glad we have progress on ethernet so you can upgrade the system and install packages. You can start testing Buttons, LEDs, sensor, and other aspects.

I will start messing with the system, adjusting the settings etc., however my ultimate goal is to be able to boot from a hard disk (and not USB flash) without the need for serial port. I have also concerns that the built-in function could trigger at some point and wipe the hard disk off to install its tailored OS. How do I prevent that? Would I need a new u-boot and errase the content of the NAND memory permenently?

Once again, thanks very much!

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


Regards,
garagoyun
Re: Debian on Freecom Silverstore 2 NAS
September 30, 2018 03:11AM
garagoyun,

Cool :) That has definitely made this box fully functional to the point we want it to be. The rest is icing on the cake.

1. The HDD rootfs is not difficult at all. What you need to do is just remove the HDD, back it up somewhere, and clone the rootfs from the USB to it. Or use a new HDD.

Wiki thread:
https://forum.doozan.com/read.php?2,23630

Quote

Backup and Cloning rootfs

CrashPlan 4.3.0
Backup/Restore rootfs using tar command
Adjust udev rules after cloning rootfs
Stock Pogoplug rootfs
How to clone a rootfs from one Kirkwood box to another: Step 1 and Step 2
How to clone SATA rootfs to USB rootfs

2. I will help write u-boot envs that you can set to boot from the new clone HDD rootfs. It should not be interferred by stock u-boot recovery. If it did, we will see what need to be done.

3. You probably are aware of this. To test buttons: esekeyd. To test sensor: lm-sensors.

4. There are a couple LEDs control to add to the DTS. I will do that when I have a few free minutes to do so.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Freecom Silverstore 2 NAS
September 30, 2018 09:55AM
bodhi Wrote:
-------------------------------------------------------
> garagoyun,
>
> Cool :) That has definitely made this box fully
> functional to the point we want it to be. The rest
> is icing on the cake.
>

Haha I am so chuffed!

>
> 1. The HDD rootfs is not difficult at all. What
> you need to do is just remove the HDD, back it up
> somewhere, and clone the rootfs from the USB to
> it. Or use a new HDD.
>
> Wiki thread:
> https://forum.doozan.com/read.php?2,23630
>
>
Quote

Backup and Cloning rootfs
>
> CrashPlan 4.3.0
> Backup/Restore rootfs using tar command
> Adjust udev rules after cloning rootfs
> Stock Pogoplug rootfs
> How to clone a rootfs from one Kirkwood box to
> another: Step 1 and Step 2
> How to clone SATA rootfs to USB
> rootfs
>

That would be my next move. I will test on the spare 75GB I have. I do not need raid.

> 2. I will help write u-boot envs that you can set
> to boot from the new clone HDD rootfs. It should
> not be interferred by stock u-boot recovery. If it
> did, we will see what need to be done.
>

I will be glad not to use the serial port to boot from.


> 3. You probably are aware of this. To test
> buttons: esekeyd. To test sensor: lm-sensors.
>

I was not aware of esekeyd. However, had a quick look and that's what I have ended with:
root@silverdebian:~# cat /etc/default/esekeyd
# Defaults for esekeyd initscript

# Start esekeyd on boot (set it to "true" to enable)
START_ESEKEYD=true

# Daemon options, at last config location must be present
DAEMON_OPTS=/etc/esekeyd.conf
root@silverdebian:~# cat /etc/esekeyd.conf
#POWER:/sbin/shutdown -h now
#RESTART:/sbin/shutdown -r now
#POWER:/usr/bin/logger -s -i "POWER button pushed"
#RESTART:/usr/bin/logger -s -i "RESTART button pushed"
#COPY:/usr/bin/logger -s -i "COPY Button pushed"

#KEY_116:/usr/bin/logger -s -i "POWER button pushed"
KEY_116:/sbin/shutdown -h now
#KEY_408:system reset

root@silverdebian:~#

I have only two pressable buttons:
POWER button in front of the box, identified by /usr/bin/keytest as KEY_116
SYSTEM RESET pin at the back, as KEY_408, which is used to reset the whole system to initial state. Not much use of it for me to be honest.

I am happy with the result, was wondering however if it is possible to have longer press POWER button to initiate shutdown?

Regarding the lm-sensors; that and fancontrol were the first packages I downloaded straightaway. The fan noise was driving me mad :D


root@silverdebian:~# cat /etc/fancontrol
# Configuration file generated by pwmconfig, changes will be lost
INTERVAL=10
DEVPATH=hwmon1=devices/platform/ocp@f1000000/f1011000.i2c/i2c-0/0-002e
DEVNAME=hwmon1=adt7473
FCTEMPS=hwmon1/device/pwm1=hwmon1/device/temp1_input
FCFANS= hwmon1/device/pwm1=hwmon1/device/fan1_input
MINTEMP=hwmon1/device/pwm1=35
MAXTEMP=hwmon1/device/pwm1=60
MINSTART=hwmon1/device/pwm1=150
MINSTOP=hwmon1/device/pwm1=0
MAXPWM=hwmon1/device/pwm1=150
root@silverdebian:~#

Extremely silent now. the fan is audible only during boot.


> 4. There are a couple LEDs control to add to the
> DTS. I will do that when I have a few free minutes
> to do so.

Those are not crucial for me. When and if you have free minutes to look into, it would be appreciated.


One thing that is puzzling me is why the CPU is downclocked to 1000MHz:
root@silverdebian:~#  lscpu | grep MHz
CPU max MHz:           1000.0000
CPU min MHz:           0.0000
root@silverdebian:~#


Is there any restriction caused by the rest of the hardware? If not would it be safe to bring it back to its 1600MHz?

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


Regards,
garagoyun
Re: Debian on Freecom Silverstore 2 NAS
September 30, 2018 04:16PM
Quote

I have only two pressable buttons:
POWER button in front of the box, identified by /usr/bin/keytest as KEY_116
SYSTEM RESET pin at the back, as KEY_408, which is used to reset the whole system to initial state. Not much use of it for me to be honest.

I am happy with the result, was wondering however if it is possible to have longer press POWER button to initiate shutdown?

Did you test both buttons with
#POWER:/usr/bin/logger -s -i "POWER button pushed"
#RESTART:/usr/bin/logger -s -i "RESTART button pushed"


Quote

Extremely silent now. the fan is audible only during boot.

Execellent!

Quote

One thing that is puzzling me is why the CPU is downclocked to 1000MHz:

I configured this kernel to have CPU frequency governor. See if it was set to a lower setting by default.

Install cpufrequtils, and
cat /etc/default/cpufrequtils

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Freecom Silverstore 2 NAS
September 30, 2018 04:42PM
Strange! now that I thought about it, even with governor it should have shown the max higher.

root@silverdebian:~#  lscpu | grep MHz
CPU max MHz:           1000.0000
CPU min MHz:           0.0000
root@silverdebian:~#

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Freecom Silverstore 2 NAS
September 30, 2018 04:50PM
bodhi Wrote:
-------------------------------------------------------
> Strange! now that I thought about it, even with
> governor it should have shown the max higher.
>
>
> root@silverdebian:~#  lscpu | grep MHz
> CPU max MHz:           1000.0000
> CPU min MHz:           0.0000
> root@silverdebian:~#
>

I see. Stock is running this box at 1Ghz:

u-boot:
Soc: 88F6282 A1CPU running @ 1000Mhz L2 running @ 333Mhz

stock OS:
Linux version 2.6.31.8winas6282 (freecom@SS-Build-Server) (gcc version 4.4.1 (Sourcery G++ Lite 2009q3-67) ) #6 Tue Oct 16 07:18:13 EDT 2012 v0.0.7
CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
CPU: VIVT data cache, VIVT instruction cache
Machine: Feroceon-KW
Using UBoot passing parameters structure
Memory policy: ECC disabled, Data cache writeback
On node 0 totalpages: 32768
free_area_init_node: node 0, pgdat c04faa38, node_mem_map c1800000
  Normal zone: 256 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 32512 pages, LIFO batch:7
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 32512
Kernel command line: console=ttyS0,115200 mtdparts=nand_mtd:0x000a0000@0x0(uboot),0x00040000@0x000a0000(param),0x00280000@0x000e0000(preroot),0x00380000@0x00360000(uimage),0x076e0000@0x006e0000(rootfs),0x00240000@0x07dc0000(misc),128m@0x0(flash) root=/dev/ram0 rootfstype=cramfs init=/etc/rc.preroot initrd=0x800000,0x1000000
PID hash table entries: 512 (order: 9, 2048 bytes)
Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
Memory: 128MB = 128MB total
Memory: 100992KB available (4748K code, 316K data, 136K init, 0K highmem)
Hierarchical RCU implementation.
NR_IRQS:128
Console: colour dummy device 80x30
Calibrating delay loop... 992.87 BogoMIPS (lpj=4964352)


So right now your max is 1Ghz.

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 09/30/2018 04:51PM by bodhi.
Re: Debian on Freecom Silverstore 2 NAS
October 01, 2018 01:36AM
Quote
bodhi
Did you test both buttons with

POWER:/usr/bin/logger -s -i "POWER button pushed"
RESTART:/usr/bin/logger -s -i "RESTART button pushed"

Those commands are not triggered when I press the buttons. Nothing in the syslog.

I need to replace POWER and RESTART with KEY_116 and KEY_408 respectively. Which results in the following output:
root@silverdebian:~# tail -f -n 5 /var/log/syslog
Oct  1 08:05:01 silverdebian ntpd[1778]: Listening on routing socket on fd #23 for interface updates
Oct  1 08:05:02 silverdebian avahi-daemon[1703]: Server startup complete. Host name is silverdebian.local. Local service cookie is 1584089082.
Oct  1 08:06:04 silverdebian root[2000]: RESTART button pushed
Oct  1 08:06:23 silverdebian root[2002]: POWER button pushed
Oct  1 08:06:42 silverdebian root[2004]: POWER button pushed
Oct  1 08:06:42 silverdebian root[2006]: POWER button pushed
Oct  1 08:06:43 silverdebian root[2008]: POWER button pushed
Oct  1 08:06:45 silverdebian root[2010]: RESTART button pushed
Oct  1 08:06:46 silverdebian root[2012]: RESTART button pushed
Oct  1 08:06:46 silverdebian root[2014]: RESTART button pushed
Oct  1 08:06:46 silverdebian root[2016]: RESTART button pushed

So I have adjusted the commands as below:
#KEY_116:/usr/bin/logger -s -i "POWER button pushed"
KEY_116:/sbin/shutdown -h now
#KEY_408:/usr/bin/logger -s -i "RESTART button pushed"
KEY_408:/sbin/shutdown -r now

and shutting down and restarting the NAS via the buttons work. But as I mentioned the button at the back of the NAS could be pressed only with a pin, so it is not very practical.

I am happy however to have only power off button. I should not be using that button much anyway :)


Quote
bodhi

I see. Stock is running this box at 1Ghz:

u-boot:

Soc: 88F6282 A1CPU running @ 1000Mhz L2 running @ 333Mhz


The information from cpufrequtils:
root@silverdebian:~# cat /etc/default/cpufrequtils
# valid values: userspace conservative powersave ondemand performance
# get them from cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors 
GOVERNOR="ondemand"
root@silverdebian:~# cpufreq-info
cpufrequtils 008: cpufreq-info (C) Dominik Brodowski 2004-2009
Report errors and bugs to cpufreq@vger.kernel.org, please.
analyzing CPU 0:
  driver: kirkwood-cpufreq
  CPUs which run at the same hardware frequency: 0
  CPUs which need to have their frequency coordinated by software: 0
  maximum transition latency: 5.0 us.
  available frequency steps: 1000 MHz, 0 kHz
  available cpufreq governors: conservative, powersave, userspace, ondemand, performance
  current CPU frequency is 1000 MHz (asserted by call to hardware).
root@silverdebian:~#

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


Regards,
garagoyun



Edited 1 time(s). Last edit at 10/01/2018 01:45AM by garagoyun.
Re: Debian on Freecom Silverstore 2 NAS
October 01, 2018 02:45AM
garagoyun,

> I need to replace POWER and RESTART with KEY_116
> and KEY_408 respectively.

Great test! I'm aware that esekeyd seems to have problem in previous kernel/Debian versions. Your test has given me some idea to track it down in the kernel source to see if it's really the kernel fault.

> available frequency steps: 1000 MHz, 0 kHz

That's reasonable, since u-boot set the frequency to 1000 MHz. I think it is either they have falsely advertised the box CPU as 1.6Ghz, or they just flashed the wrong u-boot version and never fixed it. This is not easy to fix software-wise without rebuilding u-boot.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Freecom Silverstore 2 NAS
October 01, 2018 11:03PM
This new DTB has LEDs control. System Status and Power LEDs.

After booted into Debian

ls -l /sys/class/leds/

Test
echo none > /sys/class/leds/hncn2:green:sys/trigger
echo default-on > /sys/class/leds/hncn2:green:sys/trigger

echo none > /sys/class/leds/hncn2:green:power/trigger
echo default-on > /sys/class/leds/hncn2:green:power/trigger

-bodhi
===========================
Forum Wiki
bodhi's corner
Attachments:
open | download - kirkwood-silverstore-hncn2.dtb (11.3 KB)
open | download - kirkwood-silverstore-hncn2.dts (3.2 KB)
Re: Debian on Freecom Silverstore 2 NAS
October 02, 2018 05:59AM
Removed the post. The faults were due to "blk_update_request: I/O error, dev sda, sector 3715408".

3 usb stick memories failed until now.

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


Regards,
garagoyun



Edited 2 time(s). Last edit at 10/02/2018 03:16PM by garagoyun.
Re: Debian on Freecom Silverstore 2 NAS
October 02, 2018 08:00AM
Tests seem to be successful. Sys and Power leds turn off and on respectively:
root@debian:~# ls -l /sys/class/leds/
total 0
drwxr-xr-x  2 root root 0 Oct  2 14:47 .
drwxr-xr-x 41 root root 0 Oct  2 14:43 ..
lrwxrwxrwx  1 root root 0 Oct  2 14:47 hncn2:green:power -> ../../devices/platform/gpio-leds/leds/hncn2:green:power
lrwxrwxrwx  1 root root 0 Oct  2 14:47 hncn2:green:sys -> ../../devices/platform/gpio-leds/leds/hncn2:green:sys
root@debian:~# echo none > /sys/class/leds/hncn2:green:sys/trigger
root@debian:~# echo default-on > /sys/class/leds/hncn2:green:sys/trigger
root@debian:~# echo none > /sys/class/leds/hncn2:green:sys/trigger
root@debian:~# echo default-on > /sys/class/leds/hncn2:green:sys/trigger
root@debian:~# echo none > /sys/class/leds/hncn2:green:power/trigger
root@debian:~# echo default-on > /sys/class/leds/hncn2:green:power/trigger
root@debian:~# echo none > /sys/class/leds/hncn2:green:sys/trigger
root@debian:~# echo default-on > /sys/class/leds/hncn2:green:sys/trigger
root@debian:~# echo none > /sys/class/leds/hncn2:green:power/trigger
root@debian:~# echo default-on > /sys/class/leds/hncn2:green:power/trigger

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


Regards,
garagoyun



Edited 1 time(s). Last edit at 10/02/2018 03:19PM by garagoyun.
Re: Debian on Freecom Silverstore 2 NAS
October 02, 2018 02:13PM
bodhi,

I assume I would need the latest U-Boot for Kirkwood if I want to use Ext4?

Also, currently I am executing the following setenv commands via serial port at every boot. How do I make those permananet in uboot? Using fw_setenv?
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)'
setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 ${mtdparts} earlyprintk=serial'
setenv bootcmd_usb 'usb start; ext2load usb 0:1 0x800000 /boot/uImage; ext2load usb 0:1 0x2100000 /boot/uInitrd'
setenv bootcmd_exec 'run set_bootargs; run bootcmd_usb; bootm 0x800000 0x2100000'
run bootcmd_exec

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


Regards,
garagoyun



Edited 1 time(s). Last edit at 10/02/2018 03:21PM by garagoyun.
Re: Debian on Freecom Silverstore 2 NAS
October 02, 2018 11:12PM
Quote

Tests seem to be successful. Sys and Power leds turn off and on respectively:

Cool!

Quote

Also, currently I am executing the following setenv commands via serial port at every boot. How do I make those permananet in uboot? Using fw_setenv?
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)'
setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 ${mtdparts} earlyprintk=serial'
setenv bootcmd_usb 'usb start; ext2load usb 0:1 0x800000 /boot/uImage; ext2load usb 0:1 0x2100000 /boot/uInitrd'
setenv bootcmd_exec 'run set_bootargs; run bootcmd_usb; bootm 0x800000 0x2100000'
run bootcmd_exec

No, no with fw_setenv. Right now you have to a saveenv in serial console to make it permanent. But the bootcmd needs to be modified to make it boot automatically. So the whole set to boot usb, and then fallback to stock kernel in NAND is

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)'
setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 ${mtdparts} earlyprintk=serial'
setenv bootcmd_usb 'usb start; ext2load usb 0:1 0x800000 /boot/uImage; ext2load usb 0:1 0x2100000 /boot/uInitrd'
setenv bootcmd_exec 'run set_bootargs; run bootcmd_usb; bootm 0x800000 0x2100000'
setenv bootcmd 'run bootcmd_exec; nand reset; nand read.e 0x800000 0x00100000 0x00199800; check_crc32 PrEr; nand reset; nand read.e 0x40000 0x00380000 0x0027d400; check_crc32 KrNl; setenv bootargs $(console) $(bootargs_root);  bootm 0x40000'
boot

Run these a few times in serial console to make sure it work . And then after you are certain that everything is working as expected, do a save as the last command before boot

saveenv
boot
Re: Debian on Freecom Silverstore 2 NAS
October 03, 2018 02:07AM
garagoyun,

Boot back to stock OS, and

which blparam

If that did not find blparam, then search for it
cd /
find . -name '*blparam*'

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Freecom Silverstore 2 NAS
October 03, 2018 10:12AM
bodhi Wrote:
-------------------------------------------------------
> garagoyun,
>
> Boot back to stock OS, and
>
>
> which blparam
>
>
> If that did not find blparam, then search for it
>
> cd /
> find . -name '*blparam*'
>


The output is not from the device I am testing, as I have wiped the hard disk on it. Anyway there is no output for the commands:
~ # which blparam
~ # cd /
/ # find . -name '*blparam*'
/ #

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


Regards,
garagoyun
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: