Welcome! Log In Create A New Profile

Advanced

Debian on Freecom Silverstore 2 NAS

Posted by garagoyun 
Debian on Freecom Silverstore 2 NAS
September 22, 2018 04:33PM
Hi,

Quite recently I have acquired two NAS units "SiverStore 2" manufactured by Freecom. The units are EOL, so no updates on the software side since 2012. However, I have received the root password from the technical support at freecom and via ssh successfully installed Optware-ng and a chrooted debian wheezy. The units itself has a custom-made operating system with kernel 2.6.31, which is quite outdated and does not have many modules, only the bare minimum that is needed to operate that NAS. I have tried to research online if the operating system on those units could be replaced with a Debian for example, however, it seems those units were not very popular so not much luck. Some info could be found here:

https://wikidevi.com/wiki/Freecom_SilverStore
and
http://www.ezplanet.net/xwiki/bin/view/KnowledgeBase/SilverstoreNAS

As far as I understand the unit is similar to NSA325, however, apparently the stock bootloader is locked to boot only Stock OS. I am not sure if that's the case, hence I wanted to hear your opinion on the matter and maybe an advice. I hope I could either use the stock uboot with a new kernel and Debian or maybe the stock uboot could be replaced with another one. I have two of those NAS units, so I could sacrifice one of them for that project :) I should receive a UART cable on Monday or Tuesday hopefully. Until then I can provide with the following information:

/etc # cat fw_env.config
# Configuration file for fw_(printenv/saveenv) utility.
# Up to two entries are valid, in this case the redundand
# environment sector is assumed present.

# MTD device name Device offset Env. size  Flash sector size
/dev/mtd1    0x0   0x20000     0x20000

~ # cat /proc/mtd
dev:    size   erasesize  name
mtd0: 000a0000 00020000 "uboot"
mtd1: 00040000 00020000 "param"
mtd2: 00280000 00020000 "preroot"
mtd3: 00380000 00020000 "uimage"
mtd4: 076e0000 00020000 "rootfs"
mtd5: 00240000 00020000 "misc"
mtd6: 08000000 00020000 "flash"

/tmp # fw_printenv
baudrate=115200
loads_echo=0
ipaddr=10.4.52.165
serverip=10.4.52.7
rootpath=/srv/ubuntu
netmask=255.255.255.0
run_diag=yes
MALLOC_len=1
ethprime=egiga0
bootargs_root=root=/dev/ram0 rootfstype=cramfs init=/etc/rc.preroot initrd=0x800000,0x1000000
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end); bootm 0x2000000;
lcd0_enable=0
lcd0_params=640x480-16@60
ethmtu=1500
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
image_multi=yes
mfgmodel=HNC-N2
uboot_ver=v0.0.9
preroot_ver=0.1.0
serial_number=5563U01001G247001D5J0D1
opid=Z11101935
ethaddr=00:01:DB:1E:24:F2
serialNo=560722483400721
modelname=56072
runintime=10000
ftpserver=10.41.34.121
testfile=100M
mfgtest_state=final_tested_ok
mkraid5=preok
ftpserver_ip=10.41.87.42
ftpserver_user=admin
ftpserver_passwd=admin
ftpserver_path=/log/mfg_autotest.tgz
ntpserver_ip=pool.ntp.org
ethact=egiga0
fw_ver=2001.4110
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=no
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
console=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) 
bootcmd_f=nand reset; nand read.e 0x800000 0x00100000 0x00199800; check_crc32 PrEr; 
bootcmd=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; 
bootdelay=3
disaMvPnp=no
enaAutoRecovery=yes
pcieTune=no
pcieTune1=no


If you need any other information, please let me know. Your help would be appreciated, as I would like to give those devices some new life.


Regards

garagoyun



Edited 1 time(s). Last edit at 09/22/2018 05:49PM by garagoyun.
Re: U-Boot Kirkwood for Freecom Silverstore 2 NAS?
September 22, 2018 04:57PM
garagoyun,


> As far as I understand the unit is similar to
> NSA325, however, apparently the stock bootloader
> is locked to boot only Stock OS. I am not sure if
> that's the case, hence I wanted to hear your
> opinion on the matter and maybe an advice.

By the look of info you got inside stock OS and the links,

- I don't think u-boot is locked at all.
- It has a different u-boot version from the NSA325.
- u-boot envs can be modified to boot Debian


> I hope
> I could either use the stock uboot with a new
> kernel and Debian

This should be feasible. New U-Boot is always a lot more works to do. So running Debian should be the first thing we'd want to do.

> I should receive a UART cable on
> Monday or Tuesday hopefully.

That would be best. When you try to bring up a box to run new kernel, serial console is a must have.

> If you need any other information, please let me
> know. Your help would be appreciated, as I would
> like to give those devices some new life.

In stock OS get output of these and post here:
dmesg
mount

While waiting for serial module converter, you can create a new USB rootfs using Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 from the release thread:

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

Quote

Updated 24 Jul 2017:

Basic Debian stretch Kirkwood rootfs for most Kirwood plugs:

- tarball size: 188M
- install size: 488M
- The init system used in this rootfs is sysvinit . To boot with systemd, see note 2 below.
- Installed packages: nano, avahi, ntp, busybox-syslogd (log to RAM), htop, isc-dhcp-client, dialog, bzip2, nfs server/client, iperf, ethtool, sysvinit-core, sysvinit, and sysvinit-utils.
- see LED controls in /etc/rc.local, and /etc/init.d/halt
- see some useful aliases in /root/.profile
- root password: root

Download at Dropbox:

Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2

md5:
bf3d29569943875df348fb5ca03b348c
sha256:
4ed5714fdb123cdb40e973f3d0754e91cd199b75a9874018f2b5dc9cfa8ae8bb

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: U-Boot Kirkwood for Freecom Silverstore 2 NAS?
September 22, 2018 04:59PM
And perhaps changing the thread title to: Debian on Freecom Silverstore 2 NAS. I'll move it to the Debian subforum.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Freecom Silverstore 2 NAS
September 22, 2018 05:36PM
Hi bodhi,

Appreciated. I was not expecting such an immediate reply. And apologies for the wrong subforum. I was not sure where to post. Please feel free to move it into an appropriate one.

Quote

By the look of info you got inside stock OS and the links,

- I don't think u-boot is locked at all.
- It has a different u-boot version from the NSA325.
- u-boot envs can be modified to boot Debian

Yes, I have access via ssh and have been able to test building on the unit and installing packages via Optware. But the kernel is quite old.

I have a fair bit understanding of Linux, but that is not my speciality. I didn't think the u-boot was locked either, as I tested modifying some of the envs and after a reboot they preserved. Hence I thought I should post here and ask for a professional advice.

Quote

While waiting for serial module converter, you can create a new USB rootfs using Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 from the release thread:

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

Great I will do it now.

Below requested information:

~ # dmesg
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)
Security Framework initialized
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
xor: measuring software checksum speed
   arm4regs  :   903.600 MB/sec
   8regs     :   685.200 MB/sec
   32regs    :   700.000 MB/sec
xor: using function: arm4regs (903.600 MB/sec)
NET: Registered protocol family 16
Feroceon L2: Enabling L2
Feroceon L2: Cache support initialised.

CPU Interface
-------------
SDRAM_CS0 ....base 00000000, size 128MB 
SDRAM_CS1 ....disable
SDRAM_CS2 ....disable
SDRAM_CS3 ....disable
PEX0_MEM ....base e0000000, size 128MB 
PEX0_IO ....base f2000000, size   1MB 
PEX1_MEM ....base e8000000, size 128MB 
PEX1_IO ....base f2100000, size   1MB 
INTER_REGS ....base f1000000, size   1MB 
NFLASH_CS ....base fa000000, size   2MB 
SPI_CS ....base f4000000, size  16MB 
BOOT_ROM_CS ....no such
DEV_BOOTCS ....no such
CRYPT_ENG ....base f0000000, size   2MB 

  Marvell Development Board (LSP Version KW_LSP_5.1.3_patch18)-- HNC-N2  Soc: MV88F6282 Rev 1 LE

 Detected Tclk 200000000 and SysClk 400000000 
MV Buttons Device Load
Marvell USB EHCI Host controller #0: c403e740
PEX0 interface detected Link X1
PEX1 interface detected no Link.
pci 0000:00:01.0: reg 10 64bit mmio: [0x90000000-0x90001fff]
pci 0000:00:01.0: PME# supported from D0 D3hot
pci 0000:00:01.0: PME# disabled
PCI: bus0: Fast back to back transfers disabled
PCI: bus1: Fast back to back transfers enabled
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
raid6: int32x1     73 MB/s
raid6: int32x2     91 MB/s
raid6: int32x4     89 MB/s
raid6: int32x8     91 MB/s
raid6: using algorithm int32x2 (91 MB/s)
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
NET: Registered protocol family 1
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (junk in compressed archive); looks like an initrd
Freeing initrd memory: 16384K
rtc mv_rtc: rtc core: registered kw-rtc as rtc0
RTC registered
XOR registered 4 channels
XOR 2nd invalidate WA enabled
cesadev_init(c000ed14)
mvCesaInit: sessions=640, queue=64, pSram=f0000000
MV Buttons Driver Load
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
SGI XFS with security attributes, large block/inode numbers, no debug enabled
SGI XFS Quota Management subsystem
msgmni has been set to 229
alg: No test for cipher_null (cipher_null-generic)
alg: No test for ecb(cipher_null) (ecb-cipher_null)
alg: No test for digest_null (digest_null-generic)
alg: No test for compress_null (compress_null-generic)
alg: No test for stdrng (krng)
alg: No test for hmac(digest_null) (hmac(digest_null-generic))
async_tx: api initialized (sync-only)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered
io scheduler anticipatory registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
console [ttyS0] enabled
brd: module loaded
loop: module loaded
Integrated Sata device found
IRQ 21/mvSata: IRQF_DISABLED is not guaranteed on shared IRQs
scsi0 : Marvell SCSI to SATA adapter
scsi1 : Marvell SCSI to SATA adapter
scsi 0:0:0:0: Direct-Access     Seagate  ST2000DM001-1ER1 HP51 PQ: 0 ANSI: 5
scsi 1:0:0:0: Direct-Access     Seagate  ST2000DM001-1ER1 CC62 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] Sector size 0 reported, assuming 512.
sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
sd 0:0:0:0: [sda] 0-byte physical blocks
sd 1:0:0:0: [sdb] Sector size 0 reported, assuming 512.
sd 1:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
sd 1:0:0:0: [sdb] 0-byte physical blocks
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 23 00 10 00
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, supports DPO and FUA
sd 0:0:0:0: [sda] Sector size 0 reported, assuming 512.
sd 1:0:0:0: Attached scsi generic sg1 type 0
sd 1:0:0:0: [sdb] Write Protect is off
sd 1:0:0:0: [sdb] Mode Sense: 23 00 10 00
Loading Marvell Ethernet Driver:
  o Cached descriptors in DRAM
  o DRAM SW cache-coherency
  o 2 Giga ports supported
  o Single RX Queue support - ETH_DEF_RXQ=0
  o Single TX Queue support - ETH_DEF_TXQ=0
  o TCP segmentation offload (TSO) supported
  o Large Receive offload (LRO) supported
  o Receive checksum offload supported
  o Transmit checksum offload supported
  o Network Fast Processing (Routing) supported - (Disabled)
  o Proc tool API enabled
  o SKB Reuse supported - (Disabled)
  o SKB Recycle supported - (Disabled)
  o Rx descripors: q0=256
  o Tx descripors: q0=532
  o Loading network interface(s):
     o register under mv88fx_eth platform
 sda:     o egiga0, ifindex = 2, GbE port = 0

Warning: Giga 1 is Powered Off

mvFpRuleDb (c5248000): 1024 entries, 4096 bytes
sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, supports DPO and FUA
sd 1:0:0:0: [sdb] Sector size 0 reported, assuming 512.
NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 290 at 0x000002440000
Bad eraseblock 675 at 0x000005460000
7 cmdlinepart partitions found on MTD device nand_mtd
Using command line partition definition
Creating 7 MTD partitions on "nand_mtd":
0x000000000000-0x0000000a0000 : "uboot"
 sdb:
0x0000000a0000-0x0000000e0000 : "param"
0x0000000e0000-0x000000360000 : "preroot"
 sda1 sda2 sda3 sda4
Disk 0 Not Found
Disk 1 Not Found
0x000000360000-0x0000006e0000 : "uimage"
0x0000006e0000-0x000007dc0000 : "rootfs"
sd 0:0:0:0: [sda] Sector size 0 reported, assuming 512.
0x000007dc0000-0x000008000000 : "misc"
sd 0:0:0:0: [sda] Attached SCSI disk
0x000000000000-0x000008000000 : "flash"
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_marvell ehci_marvell.70059: Marvell Orion EHCI
ehci_marvell ehci_marvell.70059: new USB bus registered, assigned bus number 1
 sdb1 sdb2 sdb3 sdb4
sd 1:0:0:0: [sdb] Sector size 0 reported, assuming 512.
sd 1:0:0:0: [sdb] Attached SCSI disk
ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100
ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
xhci_hcd 0000:00:01.0: xHCI Host Controller
xhci_hcd 0000:00:01.0: new USB bus registered, assigned bus number 2
xhci_hcd 0000:00:01.0: irq 9, io mem 0xe0000000
usb usb2: config 1 interface 0 altsetting 0 endpoint 0x81 has no SuperSpeed companion descriptor
usb usb2: configuration #1 chosen from 1 choice
xHCI xhci_add_endpoint called for root hub
xHCI xhci_check_bandwidth called for root hub
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 4 ports detected
usbcore: registered new interface driver usblp
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
usbcore: registered new interface driver ums-usbat
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
adt7473_detect....
adt7473 0-002e: adt7473 chip found
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-devel@redhat.com
dm_crypt using the OCF package.
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
!!!! wrong MPP 6 setting !!!!
++++ wrong initial value for GPP36, fixed it by wixgpio
TCP cubic registered
NET: Registered protocol family 17
NET: Registered protocol family 5
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
rtc mv_rtc: setting system clock to 2018-09-21 12:32:55 UTC (1537533175)
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: invalid raid superblock magic on sda4
md: sda4 does not have a valid v0.90 superblock, not importing!
md: invalid raid superblock magic on sdb4
md: sdb4 does not have a valid v0.90 superblock, not importing!
md: Scanned 8 and added 6 devices.
md: autorun ...
md: considering sdb3 ...
md:  adding sdb3 ...
md: sdb2 has different UUID to sdb3
md: sdb1 has different UUID to sdb3
md:  adding sda3 ...
md: sda2 has different UUID to sdb3
md: sda1 has different UUID to sdb3
md: created md2
md: bind<sda3>
md: bind<sdb3>
md: running: <sdb3><sda3>
raid1: raid set md2 active with 2 out of 2 mirrors
md2: detected capacity change from 0 to 536805376
md: considering sdb2 ...
md:  adding sdb2 ...
md: sdb1 has different UUID to sdb2
md:  adding sda2 ...
md: sda1 has different UUID to sdb2
md: created md1
md: bind<sda2>
md: bind<sdb2>
md: running: <sdb2><sda2>
raid1: raid set md1 active with 2 out of 2 mirrors
md1: detected capacity change from 0 to 4294901760
md: considering sdb1 ...
md:  adding sdb1 ...
md:  adding sda1 ...
md: created md0
md: bind<sda1>
md: bind<sdb1>
md: running: <sdb1><sda1>
raid1: raid set md0 active with 2 out of 2 mirrors
md0: detected capacity change from 0 to 2147418112
md: ... autorun DONE.
RAMDISK: cramfs filesystem found at block 0
RAMDISK: Loading 1636KiB [1 disk] into ram disk... done.
VFS: Mounted root (cramfs filesystem) readonly on device 1:0.
Freeing init memory: 136K
 md0: unknown partition table
kjournald starting.  Commit interval 5 seconds
EXT3 FS on md0, internal journal
EXT3-fs: mounted filesystem with writeback data mode.
 md2: unknown partition table
kjournald starting.  Commit interval 5 seconds
EXT3 FS on md2, internal journal
EXT3-fs: mounted filesystem with writeback data mode.
 md1: unknown partition table
Adding 2097136k swap on /dev/md1.  Priority:-1 extents:1 across:2097136k 
egiga0: link down
egiga0: started
egiga0: link up, full duplex, speed 1 Gbps
md: bind<sda5>
md: bind<sdb5>
raid0: looking at sdb5
raid0:   comparing sdb5(3893328896)
 with sdb5(3893328896)
raid0:   END
raid0:   ==> UNIQUE
raid0: 1 zones
raid0: looking at sda5
raid0:   comparing sda5(3893328896)
 with sdb5(3893328896)
raid0:   EQUAL
raid0: FINAL 1 zones
raid0: done.
raid0 : md_size is 7786657792 sectors.
******* md4 configuration *********
zone0=[sda5/sdb5/]
        zone offset=0kb device offset=0kb size=3893328896kb
**********************************

md4: detected capacity change from 0 to 3986768789504
 md4: unknown partition table
EXT4-fs (md4): barriers disabled
kjournald2 starting: pid 2170, dev md4:8, commit interval 5 seconds
EXT4-fs (md4): internal journal on md4:8
EXT4-fs (md4): delayed allocation enabled
EXT4-fs: file extents enabled
EXT4-fs: mballoc enabled
EXT4-fs (md4): mounted filesystem with ordered data mode
ufsd: module license 'Commercial product' taints kernel.
Disabling lock debugging due to kernel taint
ufsd: driver 8.4 (010_A)  LBD=ON with ioctl loaded at bf000000
NTFS read/write support included
Hfs+/HfsX read/write support included
Built for: freecom_marvell_lsp_5.1.3_kconf_2011-04-12
egiga0: stopped
egiga0: link down
egiga0: started
egiga0: link up, full duplex, speed 1 Gbps
nfsd: last server has exited, flushing export cache
EXT4-fs: mballoc: 4 blocks 2 reqs (2 success)
EXT4-fs: mballoc: 2 extents scanned, 0 goal hits, 2 2^N hits, 0 breaks, 0 lost
EXT4-fs: mballoc: 8 generated and it took 0
EXT4-fs: mballoc: 0 preallocated, 0 discarded
md: md4 stopped.
md: unbind<sdb5>
md: export_rdev(sdb5)
md: unbind<sda5>
md: export_rdev(sda5)
md4: detected capacity change from 3986768789504 to 0
md: bind<sda5>
md4: detected capacity change from 0 to 1993384518144
 md4: unknown partition table
md: bind<sdb5>
md5: detected capacity change from 0 to 1993384518144
 md5: unknown partition table
EXT4-fs (md4): barriers disabled
kjournald2 starting: pid 15362, dev md4:8, commit interval 5 seconds
EXT4-fs (md4): internal journal on md4:8
EXT4-fs (md4): delayed allocation enabled
EXT4-fs: file extents enabled
EXT4-fs: mballoc enabled
EXT4-fs (md4): mounted filesystem with ordered data mode
EXT4-fs (md5): barriers disabled
kjournald2 starting: pid 18440, dev md5:8, commit interval 5 seconds
EXT4-fs (md5): internal journal on md5:8
EXT4-fs (md5): delayed allocation enabled
EXT4-fs: file extents enabled
EXT4-fs: mballoc enabled
EXT4-fs (md5): mounted filesystem with ordered data mode
egiga0: link down
egiga0: link up, full duplex, speed 1 Gbps
autoipd uses obsolete (PF_INET,SOCK_PACKET)
egiga0: link down
egiga0: link up, full duplex, speed 1 Gbps
egiga0: link down
egiga0: link up, full duplex, speed 1 Gbps
egiga0: link down
egiga0: link up, full duplex, speed 1 Gbps


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


Regards



Edited 1 time(s). Last edit at 09/22/2018 05:50PM by garagoyun.
Re: Debian on Freecom Silverstore 2 NAS
September 22, 2018 09:19PM
garagoyun,

Cool! this box is almost a NSA325 clone except for u-boot.

And u-boot is old, so you will need to do Step 4 while creating the USB rootfs, using the NSA325 DTB.


Quote

4. Create uImage with embedded DTB for booting with older u-boots (2012 or earlier). Skip this step if you have installed the latest U-Boot for Kirkwood (or are installing this u-boot at the same time).

Please replace kirkwood-goflexnet.dtb below with the correct DTB name for your box (see the folder /media/sdb1/boot/dts for the exact spelling of your Kirkwood box name).

Generate the uImage with DTB embedded inside:
cd /media/sdb1/boot
cp -a zImage-4.12.1-kirkwood-tld-1 zImage.fdt

# here we replace kirkwood-goflexnet.dtb name with NSA325
cat dts/kirkwood-nsa325.dtb >> zImage.fdt

mv uImage uImage.orig
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.12.1-kirkwood-tld-1 -d zImage.fdt uImage
sync

If your Linux box does not have mkimage, then install it

apt-get install u-boot-tools

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Freecom Silverstore 2 NAS
September 23, 2018 03:43AM
bodhi,

I actually used kirkwood-db-88f6282.dtb for step 4. I will overwrite it now with kirkwood-nsa325.dtb.

In addition, to be able to boot that kernel I assume current envs should be amended or new ones added?


Regards
garagoyun
Re: Debian on Freecom Silverstore 2 NAS
September 23, 2018 01:10PM
garagoyun,

> In addition, to be able to boot that kernel I
> assume current envs should be amended or new ones
> added?

Yes, new envs are needed. After you've connected serial console,

- Attach the new USB rootfs. Power up, interrupt u-boot at count down.
- Run a few commands:

printenv
bdinfo
help
usb start
boot
Please post the entire serial console log here.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Freecom Silverstore 2 NAS
September 23, 2018 06:06PM
Hi bodhi,

Just to double check with you, I have ordered the following UART converter, however, I am not sure if it is the correct one:

https://www.ebay.co.uk/itm/Converter-Cable-UART-PL2303HX-USB-To-RS232-USB-to-COM-NEW-Adapter-TTL-Module/282966197680

Just in case I have ordered today another one:

https://www.ebay.co.uk/itm/USB-2-0-to-TTL-UART-5PIN-Module-Serial-Converter-CP2102-STC-PRGMR-Free-cable-UK/142889944512

Which one is the correct converter?

Regards
garagoyun
Re: Debian on Freecom Silverstore 2 NAS
September 23, 2018 06:18PM
garagoyun,

Both are correct. The CP2xxx is easier to use, though.

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

Quote

Serial Console & JTAG console

Repair Pogo E02 with Raspberry PI (JTAG) and OpenOCD
Serial Port connector - what are people using to make it work
Serial Console hookup - GoFlex Net (external link)
Serial Console hookup - Pogoplug E02 and Pogoplug Pro V3 (external link)
OSX Serial/Net Console
Use Phone Jack - Phone Jack Serial Console Pics
Adding serial connector to Pogoplug Mobile (external link)
WD Mycloud EX2100/4100 Serial Console pic1, also pic2, pic3
Dreamplug Serial Console
How to unbrick your box using serial console with kwboot
kwboot on Mac OSX 10

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



Edited 1 time(s). Last edit at 09/24/2018 05:26AM by bodhi.
Re: Debian on Freecom Silverstore 2 NAS
September 24, 2018 02:57PM
bodhi,

It seems it did not boot from the usb for some reason. Bellow the results from the commands:

Booting without USB rootfs:

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ 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


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 

NAND read: device 0 offset 0x100000, size 0x199800

Reading data from 0x299000 -- 100% complete.
 1677312 bytes read: OK
Calculate CRC32:
crc32 checksum Pass

NAND read: device 0 offset 0x380000, size 0x27d400

Reading data from 0x5fd000 -- 100% complete.
 2610176 bytes read: OK
Calculate CRC32:
crc32 checksum Pass
## Booting image at 00040000 ...
   Image Name:   Linux-2.6.31.8winas6282
   Created:      2012-10-16  11:18:32 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2608424 Bytes =  2.5 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux.................................................................................................................................................................. done, booting the kernel.
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
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)
Security Framework initialized
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
xor: measuring software checksum speed
   arm4regs  :   903.600 MB/sec
   8regs     :   685.200 MB/sec
   32regs    :   700.000 MB/sec
xor: using function: arm4regs (903.600 MB/sec)
NET: Registered protocol family 16
Feroceon L2: Enabling L2
Feroceon L2: Cache support initialised.

CPU Interface
-------------
SDRAM_CS0 ....base 00000000, size 128MB 
SDRAM_CS1 ....disable
SDRAM_CS2 ....disable
SDRAM_CS3 ....disable
PEX0_MEM ....base e0000000, size 128MB 
PEX0_IO ....base f2000000, size   1MB 
PEX1_MEM ....base e8000000, size 128MB 
PEX1_IO ....base f2100000, size   1MB 
INTER_REGS ....base f1000000, size   1MB 
NFLASH_CS ....base fa000000, size   2MB 
SPI_CS ....base f4000000, size  16MB 
BOOT_ROM_CS ....no such
DEV_BOOTCS ....no such
CRYPT_ENG ....base f0000000, size   2MB 

  Marvell Development Board (LSP Version KW_LSP_5.1.3_patch18)-- HNC-N2  Soc: MV88F6282 Rev 1 LE

 Detected Tclk 200000000 and SysClk 400000000 
MV Buttons Device Load
Marvell USB EHCI Host controller #0: c403e740
PEX0 interface detected Link X1
PEX1 interface detected no Link.
pci 0000:00:01.0: PME# supported from D0 D3hot
pci 0000:00:01.0: PME# disabled
PCI: bus0: Fast back to back transfers disabled
PCI: bus1: Fast back to back transfers enabled
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
raid6: int32x1     73 MB/s
raid6: int32x2     91 MB/s
raid6: int32x4     89 MB/s
raid6: int32x8     91 MB/s
raid6: using algorithm int32x2 (91 MB/s)
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
NET: Registered protocol family 1
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (junk in compressed archive); looks like an initrd
Freeing initrd memory: 16384K
rtc mv_rtc: rtc core: registered kw-rtc as rtc0
RTC registered
XOR registered 4 channels
XOR 2nd invalidate WA enabled
cesadev_init(c000ed14)
mvCesaInit: sessions=640, queue=64, pSram=f0000000
MV Buttons Driver Load
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
SGI XFS with security attributes, large block/inode numbers, no debug enabled
SGI XFS Quota Management subsystem
msgmni has been set to 229
alg: No test for cipher_null (cipher_null-generic)
alg: No test for ecb(cipher_null) (ecb-cipher_null)
alg: No test for digest_null (digest_null-generic)
alg: No test for compress_null (compress_null-generic)
alg: No test for stdrng (krng)
alg: No test for hmac(digest_null) (hmac(digest_null-generic))
async_tx: api initialized (sync-only)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered
io scheduler anticipatory registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
console [ttyS0] enabled
brd: module loaded
loop: module loaded
Integrated Sata device found
IRQ 21/mvSata: IRQF_DISABLED is not guaranteed on shared IRQs
scsi0 : Marvell SCSI to SATA adapter
scsi1 : Marvell SCSI to SATA adapter
Loading Marvell Ethernet Driver:
  o Cached descriptors in DRAM
  o DRAM SW cache-coherency
  o 2 Giga ports supported
  o Single RX Queue support - ETH_DEF_RXQ=0
  o Single TX Queue support - ETH_DEF_TXQ=0
  o TCP segmentation offload (TSO) supported
  o Large Receive offload (LRO) supported
  o Receive checksum offload supported
  o Transmit checksum offload supported
  o Network Fast Processing (Routing) supported - (Disabled)
  o Proc tool API enabled
  o SKB Reuse supported - (Disabled)
  o SKB Recycle supported - (Disabled)
  o Rx descripors: q0=256
  o Tx descripors: q0=532
  o Loading network interface(s):
     o register under mv88fx_eth platform
     o egiga0, ifindex = 2, GbE port = 0

Warning: Giga 1 is Powered Off

mvFpRuleDb (c5243000): 1024 entries, 4096 bytes
NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 113 at 0x000000e20000
Bad eraseblock 422 at 0x0000034c0000
7 cmdlinepart partitions found on MTD device nand_mtd
Using command line partition definition
Creating 7 MTD partitions on "nand_mtd":
0x000000000000-0x0000000a0000 : "uboot"
0x0000000a0000-0x0000000e0000 : "param"
0x0000000e0000-0x000000360000 : "preroot"
0x000000360000-0x0000006e0000 : "uimage"
0x0000006e0000-0x000007dc0000 : "rootfs"
0x000007dc0000-0x000008000000 : "misc"
0x000000000000-0x000008000000 : "flash"
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_marvell ehci_marvell.70059: Marvell Orion EHCI
ehci_marvell ehci_marvell.70059: new USB bus registered, assigned bus number 1
ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100
ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
xhci_hcd 0000:00:01.0: xHCI Host Controller
xhci_hcd 0000:00:01.0: new USB bus registered, assigned bus number 2
xhci_hcd 0000:00:01.0: irq 9, io mem 0xe0000000
usb usb2: config 1 interface 0 altsetting 0 endpoint 0x81 has no SuperSpeed companion descriptor
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 4 ports detected
usbcore: registered new interface driver usblp
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
usbcore: registered new interface driver ums-usbat
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
adt7473_detect....
adt7473 0-002e: adt7473 chip found
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-devel@redhat.com
dm_crypt using the OCF package.
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
!!!! wrong MPP 6 setting !!!!
++++ wrong initial value for GPP36, fixed it by wixgpio
TCP cubic registered
NET: Registered protocol family 17
NET: Registered protocol family 5
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
rtc mv_rtc: setting system clock to 2018-09-24 19:23:46 UTC (1537817026)
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
RAMDISK: cramfs filesystem found at block 0
RAMDISK: Loading 1636KiB [1 disk] into ram disk... done.
VFS: Mounted root (cramfs filesystem) readonly on device 1:0.
Freeing init memory: 136K
Enter Pre-Root FileSystem:
FW_UPDATE_FLAG_RES:1
FNSA_MODE : ## Error: "FNSA_PRO" not defined
BOARDTEST_FALG:0
DSK1_RES:1
DSK2_RES:1
DSK3_RES:1
DSK4_RES:1
DSK1_S_RES:
DSK2_S_RES:
DSK3_S_RES:
DSK4_S_RES:
CHK_RES:1
MD0CHK_RES:1
init started:  BusyBox v1.1.1 (2008.10.08-08:58+0000) multi-call binary
Starting pid 696, console /dev/ttyS0: '/etc/init.d/rcS'
Starting network...
Starting inetd... OK
NOT_DEF_RES:0
EXT3-fs: unable to read superblock
FAT: unable to read boot sector
EXT3-fs: unable to read superblock
EXT2-fs: unable to read superblock
EXT4-fs (md0): unable to read superblock
FAT: unable to read boot sector
FAT: unable to read boot sector
egiga0: started
#

Booting with USB rootfs (tried the rear USB2. USB3 slot is not recognising the flash memory):
Marvell>> printenv
baudrate=115200
loads_echo=0
ipaddr=10.4.52.165
serverip=10.4.52.7
rootpath=/srv/ubuntu
netmask=255.255.255.0
run_diag=yes
MALLOC_len=1
ethprime=egiga0
bootargs_root=root=/dev/ram0 rootfstype=cramfs init=/etc/rc.preroot initrd=0x800000,0x1000000
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end); bootm 0x2000000;
lcd0_enable=0
lcd0_params=640x480-16@60
ethmtu=1500
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
image_multi=yes
mfgmodel=HNC-N2
uboot_ver=v0.0.9
preroot_ver=0.1.0
serial_number=5563U01001G247001D5J0D1
opid=Z11101935
ethaddr=00:01:DB:1E:24:F2
serialNo=560722483400721
modelname=56072
runintime=10000
ftpserver=10.41.34.121
testfile=100M
mfgtest_state=final_tested_ok
mkraid5=preok
ftpserver_ip=10.41.87.42
ftpserver_user=admin
ftpserver_passwd=admin
ftpserver_path=/log/mfg_autotest.tgz
ntpserver_ip=pool.ntp.org
ethact=egiga0
fw_ver=2001.4110
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=no
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
console=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) 
bootcmd_f=nand reset; nand read.e 0x800000 0x00100000 0x00199800; check_crc32 PrEr; 
bootcmd=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; 
bootdelay=3
disaMvPnp=no
enaAutoRecovery=yes
pcieTune=no
pcieTune1=no

Environment size: 1945/131067 bytes
Marvell>>

Marvell>> bdinfo
Unknown command 'bdinfo' - try 'help'
Marvell>>

Marvell>> help
?       - alias for 'help'
SatR - sample at reset sub-system, relevent for DB only
base    - print or set address offset
boot    - boot default, i.e., run 'bootcmd'
bootd   - boot default, i.e., run 'bootcmd'
bootext2    dev:boot_part1,boot_part2 addr boot_image linux_dev_name 
bootm   - boot application image from memory
bootp   - boot image via network using BootP/TFTP protocol
bubt    - Burn an image on the Boot Nand Flash.
check_crc32   - checksum calculation
chpart  - change active partition
cmp     - memory compare
cmpm    - Compare Memory
cp      - memory copy
cpumap - Display CPU memory mapping settings.
crc32   - checksum calculation
date    - get/set/reset date & time
dclk    - Display the MV device CLKs.
diskboot- boot from IDE device
echo    - echo args to console
eeprom  - EEPROM sub-system
erase   - erase FLASH memory
ext2load- load binary file from a Ext2 filesystem
ext2ls  - list files in a directory (default /)
fatinfo - print information about filesystem
fatload - load binary file from a dos filesystem
fatls   - list files in a directory (default /)
fi      - Find value in the memory.
flinfo  - print FLASH memory information
fsinfo  - print information about filesystems
fsload  - load binary file from a filesystem image
g       - start application at cached address 'addr'(default addr 0x40000)
go      - start application at address 'addr'
help    - print online help
icrc32  - checksum calculation
ide     - IDE sub-system
iloop   - infinite loop on address range
imd     - i2c memory display
iminfo  - print header information for application image
imm[.b, .s, .w, .l]     - i2c memory modify (auto-incrementing)
imw     - memory write (fill)
inm     - memory modify (constant address)
iprobe  - probe to discover valid I2C chip addresses
ir      - reading and changing MV internal register values.
loop    - infinite loop on address range
ls      - list files in a directory (default /)
map     - Diasplay address decode windows
md      - memory display
me      - PCI master enable
mm      - memory modify (auto-incrementing)
mmcinit - init mmc card
mp      - map PCI BAR
mtdparts- define flash/nand partitions
mtest   - simple RAM test
mw      - memory write (fill)
nand                   - NAND sub-system
nboot   - boot from NAND device
nbubt   - Burn a boot loader image on the Boot Nand Flash.
nm      - memory modify (constant address)
pci     - list and access PCI Configuration Space
phyRead - Read PCI-E Phy register
pciePhyWrite    - Write PCI-E Phy register
phyRead - Read Phy register
phyWrite        - Write Phy register
ping    - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
protect - enable or disable FLASH write protection
rarpboot- boot image via network using RARP/TFTP protocol
rcvr    - Satrt recovery process (Distress Beacon with TFTP server)
reset   - Perform RESET of the CPU
resetenv        - Return all environment variable to default.
run     - run commands in an environment variable
saveenv - save environment variables to persistent storage
se      - PCI Slave enable
setenv  - set environment variables
sflash  - read, write or erase the external SPI Flash.
sg      - scanning the PHYs status
sp      - Scan PCI bus.
switchRegRead   - Read switch register
switchRegWrite  - Write switch register
Temp    - read chip Tj temp
tftpboot- boot image via network using TFTP protocol
usb     - USB sub-system
usbboot - boot from USB device
version - print monitor version
Marvell>>

Marvell>> usb start
(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
Marvell>>

Marvell>> boot

NAND read: device 0 offset 0x100000, size 0x199800

Reading data from 0x299000 -- 100% complete.
 1677312 bytes read: OK
Calculate CRC32:
crc32 checksum Pass

NAND read: device 0 offset 0x380000, size 0x27d400

Reading data from 0x5fd000 -- 100% complete.
 2610176 bytes read: OK
Calculate CRC32:
crc32 checksum Pass
## Booting image at 00040000 ...
   Image Name:   Linux-2.6.31.8winas6282
   Created:      2012-10-16  11:18:32 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2608424 Bytes =  2.5 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux.................................................................................................................................................................. done, booting the kernel.
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
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)
Security Framework initialized
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
xor: measuring software checksum speed
   arm4regs  :   904.000 MB/sec
   8regs     :   685.200 MB/sec
   32regs    :   700.000 MB/sec
xor: using function: arm4regs (904.000 MB/sec)
NET: Registered protocol family 16
Feroceon L2: Enabling L2
Feroceon L2: Cache support initialised.

CPU Interface
-------------
SDRAM_CS0 ....base 00000000, size 128MB 
SDRAM_CS1 ....disable
SDRAM_CS2 ....disable
SDRAM_CS3 ....disable
PEX0_MEM ....base e0000000, size 128MB 
PEX0_IO ....base f2000000, size   1MB 
PEX1_MEM ....base e8000000, size 128MB 
PEX1_IO ....base f2100000, size   1MB 
INTER_REGS ....base f1000000, size   1MB 
NFLASH_CS ....base fa000000, size   2MB 
SPI_CS ....base f4000000, size  16MB 
BOOT_ROM_CS ....no such
DEV_BOOTCS ....no such
CRYPT_ENG ....base f0000000, size   2MB 

  Marvell Development Board (LSP Version KW_LSP_5.1.3_patch18)-- HNC-N2  Soc: MV88F6282 Rev 1 LE

 Detected Tclk 200000000 and SysClk 400000000 
MV Buttons Device Load
Marvell USB EHCI Host controller #0: c403e740
PEX0 interface detected Link X1
PEX1 interface detected no Link.
pci 0000:00:01.0: PME# supported from D0 D3hot
pci 0000:00:01.0: PME# disabled
PCI: bus0: Fast back to back transfers disabled
PCI: bus1: Fast back to back transfers enabled
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
raid6: int32x1     73 MB/s
raid6: int32x2     91 MB/s
raid6: int32x4     89 MB/s
raid6: int32x8     91 MB/s
raid6: using algorithm int32x2 (91 MB/s)
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 4096 (order: 3, 32768 bytes)
TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
TCP reno registered
NET: Registered protocol family 1
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (junk in compressed archive); looks like an initrd
Freeing initrd memory: 16384K
rtc mv_rtc: rtc core: registered kw-rtc as rtc0
RTC registered
XOR registered 4 channels
XOR 2nd invalidate WA enabled
cesadev_init(c000ed14)
mvCesaInit: sessions=640, queue=64, pSram=f0000000
MV Buttons Driver Load
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
SGI XFS with security attributes, large block/inode numbers, no debug enabled
SGI XFS Quota Management subsystem
msgmni has been set to 229
alg: No test for cipher_null (cipher_null-generic)
alg: No test for ecb(cipher_null) (ecb-cipher_null)
alg: No test for digest_null (digest_null-generic)
alg: No test for compress_null (compress_null-generic)
alg: No test for stdrng (krng)
alg: No test for hmac(digest_null) (hmac(digest_null-generic))
async_tx: api initialized (sync-only)
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered
io scheduler anticipatory registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
console [ttyS0] enabled
brd: module loaded
loop: module loaded
Integrated Sata device found
IRQ 21/mvSata: IRQF_DISABLED is not guaranteed on shared IRQs
scsi0 : Marvell SCSI to SATA adapter
scsi1 : Marvell SCSI to SATA adapter
Loading Marvell Ethernet Driver:
  o Cached descriptors in DRAM
  o DRAM SW cache-coherency
  o 2 Giga ports supported
  o Single RX Queue support - ETH_DEF_RXQ=0
  o Single TX Queue support - ETH_DEF_TXQ=0
  o TCP segmentation offload (TSO) supported
  o Large Receive offload (LRO) supported
  o Receive checksum offload supported
  o Transmit checksum offload supported
  o Network Fast Processing (Routing) supported - (Disabled)
  o Proc tool API enabled
  o SKB Reuse supported - (Disabled)
  o SKB Recycle supported - (Disabled)
  o Rx descripors: q0=256
  o Tx descripors: q0=532
  o Loading network interface(s):
     o register under mv88fx_eth platform
     o egiga0, ifindex = 2, GbE port = 0

Warning: Giga 1 is Powered Off

mvFpRuleDb (c5243000): 1024 entries, 4096 bytes
NAND device: Manufacturer ID: 0xec, Chip ID: 0xf1 (Samsung NAND 128MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 113 at 0x000000e20000
Bad eraseblock 422 at 0x0000034c0000
7 cmdlinepart partitions found on MTD device nand_mtd
Using command line partition definition
Creating 7 MTD partitions on "nand_mtd":
0x000000000000-0x0000000a0000 : "uboot"
0x0000000a0000-0x0000000e0000 : "param"
0x0000000e0000-0x000000360000 : "preroot"
0x000000360000-0x0000006e0000 : "uimage"
0x0000006e0000-0x000007dc0000 : "rootfs"
0x000007dc0000-0x000008000000 : "misc"
0x000000000000-0x000008000000 : "flash"
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci_marvell ehci_marvell.70059: Marvell Orion EHCI
ehci_marvell ehci_marvell.70059: new USB bus registered, assigned bus number 1
ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100
ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
xhci_hcd 0000:00:01.0: xHCI Host Controller
xhci_hcd 0000:00:01.0: new USB bus registered, assigned bus number 2
xhci_hcd 0000:00:01.0: irq 9, io mem 0xe0000000
usb usb2: config 1 interface 0 altsetting 0 endpoint 0x81 has no SuperSpeed companion descriptor
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 4 ports detected
usbcore: registered new interface driver usblp
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
usbcore: registered new interface driver ums-datafab
usbcore: registered new interface driver ums-freecom
usbcore: registered new interface driver ums-jumpshot
usbcore: registered new interface driver ums-sddr09
usbcore: registered new interface driver ums-sddr55
usbcore: registered new interface driver ums-usbat
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
adt7473_detect....
adt7473 0-002e: adt7473 chip found
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
md: raid10 personality registered for level 10
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-devel@redhat.com
dm_crypt using the OCF package.
usbcore: registered new interface driver usbhid
usbhid: v2.6:USB HID core driver
!!!! wrong MPP 6 setting !!!!
++++ wrong initial value for GPP36, fixed it by wixgpio
TCP cubic registered
NET: Registered protocol family 17
NET: Registered protocol family 5
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
rtc mv_rtc: setting system clock to 2018-09-24 19:35:27 UTC (1537817727)
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
RAMDISK: cramfs filesystem found at block 0
RAMDISK: Loading 1636KiB [1 disk] into ram disk... done.
VFS: Mounted root (cramfs filesystem) readonly on device 1:0.
Freeing init memory: 136K
usb 1-1: new high speed USB device using ehci_marvell and address 2
Enter Pre-Root FileSystem:
usb 1-1: configuration #1 chosen from 1 choice
scsi2 : SCSI emulation for USB Mass Storage devices
FW_UPDATE_FLAG_RES:1
FNSA_MODE : ## Error: "FNSA_PRO" not defined
BOARDTEST_FALG:0
DSK1_RES:1
DSK2_RES:1
DSK3_RES:1
DSK4_RES:1
DSK1_S_RES:
DSK2_S_RES:
DSK3_S_RES:
DSK4_S_RES:
CHK_RES:1
MD0CHK_RES:1
init started:  BusyBox v1.1.1 (2008.10.08-08:58+0000) multi-call binary
Starting pid 702, console /dev/ttyS0: '/etc/init.d/rcS'
Starting network...
Starting inetd... OK
NOT_DEF_RES:0
EXT3-fs: unable to read superblock
FAT: unable to read boot sector
EXT3-fs: unable to read superblock
EXT2-fs: unable to read superblock
EXT4-fs (md0): unable to read superblock
FAT: unable to read boot sector
FAT: unable to read boot sector
egiga0: started
# scsi 2:0:0:0: Direct-Access     HP       c485w            0.00 PQ: 0 ANSI: 2
sd 2:0:0:0: Attached scsi generic sg0 type 0
sd 2:0:0:0: [sda] 7892040 512-byte logical blocks: (4.04 GB/3.76 GiB)
sd 2:0:0:0: [sda] Write Protect is off
sd 2:0:0:0: [sda] Assuming drive cache: write through
sd 2:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1 sda2
sd 2:0:0:0: [sda] Assuming drive cache: write through
sd 2:0:0:0: [sda] Attached SCSI removable disk

I believe I have created the USB rootfs correctly. Formated the USB with gparted to ext3 and then followed the installation with root 'su -' priveliges on KDE Neon.


Regards
Re: Debian on Freecom Silverstore 2 NAS
September 24, 2018 07:00PM
I need to write a few envs for you to boot USB. Will do that later this evening PST.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Freecom Silverstore 2 NAS
September 25, 2018 02:01AM
garagoyun,

Power up, interrupt serial console at count down, and execute:

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 0x1100000 /boot/uInitrd'
setenv bootcmd_exec 'run set_bootargs; run bootcmd_usb; bootm 0x800000 0x1100000'
run bootcmd_exec

Please post the entire serial console log here.

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



Edited 2 time(s). Last edit at 09/25/2018 02:36AM by bodhi.
Re: Debian on Freecom Silverstore 2 NAS
September 25, 2018 03:14AM
bodhi,

It gives kernel panic at the end:

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 0x1100000 /boot/uInitrd'
Marvell>> setenv bootcmd_exec 'run set_bootargs; run bootcmd_usb; bootm 0x800000 0x1100000'
Marvell>> printenv
baudrate=115200
loads_echo=0
ipaddr=10.4.52.165
serverip=10.4.52.7
rootpath=/srv/ubuntu
netmask=255.255.255.0
run_diag=yes
MALLOC_len=1
ethprime=egiga0
bootargs_root=root=/dev/ram0 rootfstype=cramfs init=/etc/rc.preroot initrd=0x800000,0x1000000
bootargs_end=:::DB88FXX81:eth0:none
image_name=uImage
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end); bootm 0x2000000;
lcd0_enable=0
lcd0_params=640x480-16@60
ethmtu=1500
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
image_multi=yes
mfgmodel=HNC-N2
uboot_ver=v0.0.9
preroot_ver=0.1.0
serial_number=5563U01001G247001D5J0D1
opid=Z11101935
ethaddr=00:01:DB:1E:24:F2
serialNo=560722483400721
modelname=56072
runintime=10000
ftpserver=10.41.34.121
testfile=100M
mfgtest_state=final_tested_ok
mkraid5=preok
ftpserver_ip=10.41.87.42
ftpserver_user=admin
ftpserver_passwd=admin
ftpserver_path=/log/mfg_autotest.tgz
ntpserver_ip=pool.ntp.org
ethact=egiga0
fw_ver=2001.4110
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=no
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
console=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) 
bootcmd_f=nand reset; nand read.e 0x800000 0x00100000 0x00199800; check_crc32 PrEr; 
bootcmd=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; 
bootdelay=3
disaMvPnp=no
enaAutoRecovery=yes
pcieTune=no
pcieTune1=no
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)
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 ${mtdparts} earlyprintk=serial
bootcmd_usb=usb start; ext2load usb 0:1 0x800000 /boot/uImage; ext2load usb 0:1 0x1100000 /boot/uInitrd
bootcmd_exec=run set_bootargs; run bootcmd_usb; bootm 0x800000 0x1100000

Environment size: 2449/131067 bytes
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
....
.
......
............
.........................
...................................................
......................................................................................................
.........................................................................................................................................................................

3835065 bytes read
....
.
......
............
.........................
...................................................
......................................................................................................
.................................................................................................................................................................................................................
.....................................................................................................................................................................................................................................................................................................

7245696 bytes read
## Booting image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2018-09-23   9:15:33 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3835001 Bytes =  3.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 01100000 ...
   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: D-Link DNS-325 NAS (Rev A1)
[    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: 109432K/131072K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 21640K 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.018974] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.029581] pid_max: default: 32768 minimum: 301
[    0.034470] Security Framework initialized
[    0.038807] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.045483] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.053539] CPU: Testing write buffer coherency: ok
[    0.059544] Setting up static identity map for 0x100000 - 0x100058
[    0.066074] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.074824] devtmpfs: initialized
[    0.083947] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.093907] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.100522] prandom: seed boundary self test passed
[    0.110003] prandom: 100 self tests passed
[    0.114175] pinctrl core: initialized pinctrl subsystem
[    0.120726] NET: Registered protocol family 16
[    0.125815] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.134516] cpuidle: using governor ladder
[    0.138805] cpuidle: using governor menu
[    0.143396] Feroceon L2: Enabling L2
[    0.147079] Feroceon L2: Cache support initialised.
[    0.152459] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.169542] No ATAGs?
[    0.180821] vgaarb: loaded
[    0.186304] SCSI subsystem initialized
[    0.190744] usbcore: registered new interface driver usbfs
[    0.196376] usbcore: registered new interface driver hub
[    0.201892] usbcore: registered new device driver usb
[    0.208339] clocksource: Switched to clocksource orion_clocksource
[    0.320382] VFS: Disk quotas dquot_6.6.0
[    0.324459] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.344060] NET: Registered protocol family 2
[    0.349382] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.356412] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.362879] TCP: Hash tables configured (established 1024 bind 1024)
[    0.369395] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.375308] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.381854] NET: Registered protocol family 1
[    0.386744] RPC: Registered named UNIX socket transport module.
[    0.392812] RPC: Registered udp transport module.
[    0.397581] RPC: Registered tcp transport module.
[    0.402390] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.409175] Unpacking initramfs...
[    0.412653] Initramfs unpacking failed: junk in compressed archive
[    0.443600] Freeing initrd memory: 7076K
[    0.447862] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.455472] audit: initializing netlink subsys (disabled)
[    0.461430] Initialise system trusted keyrings
[    0.466011] Key type blacklist registered
[    0.470170] audit: type=2000 audit(0.452:1): state=initialized audit_enabled=0 res=1
[    0.478136] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    0.484777] zbud: loaded
[    0.488574] NFS: Registering the id_resolver key type
[    0.493709] Key type id_resolver registered
[    0.497960] Key type id_legacy registered
[    0.502118] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.508939] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.515576] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.522926] fuse init (API version 7.26)
[    0.527288] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.534067] orangefs_init: module version upstream loaded
[    0.539559] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.558348] random: fast init done
[    7.553028] Key type asymmetric registered
[    7.557198] Asymmetric key parser 'x509' registered
[    7.562511] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    7.570108] io scheduler noop registered
[    7.574105] io scheduler deadline registered
[    7.578590] io scheduler cfq registered (default)
[    7.584661] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    7.601769] loop: module loaded
[    7.606752] libphy: Fixed MDIO Bus: probed
[    7.611875] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    7.618529] ehci-pci: EHCI PCI platform driver
[    7.623106] ehci-orion: EHCI orion driver
[    7.627435] usbcore: registered new interface driver usb-storage
[    7.633914] mousedev: PS/2 mouse device common for all mice
[    7.639963] i2c /dev entries driver
[    7.643959] kirkwood-cpufreq kirkwood-cpufreq: Unable to get cpuclk
[    7.650385] kirkwood-cpufreq: probe of kirkwood-cpufreq failed with error -22
[    7.658087] hidraw: raw HID events driver (C) Jiri Kosina
[    7.663991] drop_monitor: Initializing network drop monitor service
[    7.670610] NET: Registered protocol family 17
[    7.675221] Key type dns_resolver registered
[    7.680632] registered taskstats version 1
[    7.684800] Loading compiled-in X.509 certificates
[    7.689752] zswap: loaded using pool lzo/zbud
[    7.696845] Key type big_key registered
[    7.703006] Key type encrypted registered
[    7.708627] hctosys: unable to open rtc device (rtc0)
[    8.826919] Unable to handle kernel paging request at virtual address c8000000
[    8.834197] pgd = c0004000
[    8.836977] [c8000000] *pgd=00000000
[    8.840630] Internal error: Oops: 5 [#1] PREEMPT ARM
[    8.845652] Modules linked in:
[    8.848785] CPU: 0 PID: 1 Comm: swapper Not tainted 4.12.1-kirkwood-tld-1 #1
[    8.855881] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[    8.862199] task: c7832e00 task.stack: c7834000
[    8.866804] PC is at crc32_be+0x6c/0x160
[    8.870795] LR is at 0xc0950bd0
[    8.874013] pc : [<c0584814>]    lr : [<c0950bd0>]    psr: 20000053
[    8.874013] sp : c7835ef0  ip : c09522fc  fp : 00000000
[    8.885605] r10: c0db9ba0  r9 : c0c4b838  r8 : 350a8909
[    8.890893] r7 : 00000000  r6 : c7fffffc  r5 : 1d3e9e27  r4 : 00000007
[    8.897477] r3 : 29557681  r2 : 1e1bdfbc  r1 : c115f354  r0 : 5b6f37a9
[    8.904061] Flags: nzCv  IRQs on  FIQs off  Mode SVC_32  ISA ARM  Segment none
[    8.911335] Control: 0005397f  Table: 00004000  DAC: 00000053
[    8.917141] Process swapper (pid: 1, stack limit = 0xc7834190)
[    8.923033] Stack: (0xc7835ef0 to 0xc7836000)
[    8.927461] 5ee0:                                     c115f358 f0defde7 d9a895ed c0c59544
[    8.935689] 5f00: 00000000 c0c3f8f0 00000007 c0c3f8bc 000000b8 c010178c 00000000 c01334d0
[    8.943914] 5f20: 00000000 c0299eec 00000000 c0aeb5e0 000000b8 00000007 00000007 c0aec440
[    8.952140] 5f40: 000000b7 c0aec440 c7ffcde2 c7ffcdee c0d0bc24 00000007 c0c4b830 000000b8
[    8.960364] 5f60: 00000007 c0c4b834 000000b8 c0c59544 c0db9ba0 c0c00e18 00000007 00000007
[    8.968589] 5f80: 00000000 c0c005ac 00000000 c08331f8 00000000 00000000 00000000 00000000
[    8.976814] 5fa0: 00000000 c0833200 00000000 c01070f0 00000000 00000000 00000000 00000000
[    8.985039] 5fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[    8.993265] 5fe0: 00000000 00000000 00000000 00000000 00000013 00000000 ffffffff ffffffff
[    9.001505] [<c0584814>] (crc32_be) from [<c0c3f8f0>] (of_fdt_raw_init+0x34/0x78)
[    9.009047] [<c0c3f8f0>] (of_fdt_raw_init) from [<c010178c>] (do_one_initcall+0xa8/0x158)
[    9.017280] [<c010178c>] (do_one_initcall) from [<c0c00e18>] (kernel_init_freeable+0x198/0x260)
[    9.026034] [<c0c00e18>] (kernel_init_freeable) from [<c0833200>] (kernel_init+0x8/0x10c)
[    9.034267] [<c0833200>] (kernel_init) from [<c01070f0>] (ret_from_fork+0x14/0x24)
[    9.041892] Code: e1a05002 e59fe0f4 e3550000 0a00002b (e5963004) 
[    9.048043] ---[ end trace c4eaecad9cc63122 ]---
[    9.052809] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    9.052809] 
[    9.062084] ---[ end Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[    9.062084] 


Re: Debian on Freecom Silverstore 2 NAS
September 25, 2018 03:58AM
garagoyun,

[    0.000000] OF: fdt: Machine model: D-Link DNS-325 NAS (Rev A1)
Wrong DTB was appended to uImage!

This is the right one to append:
/boot/dts/kirkwood-nsa325.dtb

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Freecom Silverstore 2 NAS
September 25, 2018 03:59AM
Also the load address of uInitrd needs adjustment.

Le's try this:
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

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



Edited 1 time(s). Last edit at 09/25/2018 04:00AM by bodhi.
Re: Debian on Freecom Silverstore 2 NAS
September 25, 2018 05:33AM
Quote

[ 0.000000] OF: fdt: Machine model: D-Link DNS-325 NAS (Rev A1)

My bad.


Below output with correct DTB and the new adjustments:

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-25  11:38:11 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.014402] 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.034480] Security Framework initialized
[    0.038817] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.045500] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.053556] CPU: Testing write buffer coherency: ok
[    0.059563] Setting up static identity map for 0x100000 - 0x100058
[    0.066094] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.074814] devtmpfs: initialized
[    0.084027] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.093986] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.100610] prandom: seed boundary self test passed
[    0.110090] prandom: 100 self tests passed
[    0.114261] pinctrl core: initialized pinctrl subsystem
[    0.120802] NET: Registered protocol family 16
[    0.125793] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.134517] cpuidle: using governor ladder
[    0.138805] cpuidle: using governor menu
[    0.143296] Feroceon L2: Enabling L2
[    0.146975] Feroceon L2: Cache support initialised.
[    0.152361] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.169428] No ATAGs?
[    0.180702] vgaarb: loaded
[    0.186179] SCSI subsystem initialized
[    0.190622] usbcore: registered new interface driver usbfs
[    0.196229] usbcore: registered new interface driver hub
[    0.201727] usbcore: registered new device driver usb
[    0.208022] clocksource: Switched to clocksource orion_clocksource
[    0.320047] VFS: Disk quotas dquot_6.6.0
[    0.324125] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.343788] NET: Registered protocol family 2
[    0.349106] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.356136] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.362600] TCP: Hash tables configured (established 1024 bind 1024)
[    0.369119] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.375032] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.381585] NET: Registered protocol family 1
[    0.386466] RPC: Registered named UNIX socket transport module.
[    0.392534] RPC: Registered udp transport module.
[    0.397305] RPC: Registered tcp transport module.
[    0.402114] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.408896] Unpacking initramfs...
[    1.187054] Freeing initrd memory: 7076K
[    1.191268] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.198850] audit: initializing netlink subsys (disabled)
[    1.204797] Initialise system trusted keyrings
[    1.209373] audit: type=2000 audit(1.196:1): state=initialized audit_enabled=0 res=1
[    1.217230] Key type blacklist registered
[    1.221531] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    1.228169] zbud: loaded
[    1.231914] NFS: Registering the id_resolver key type
[    1.237041] Key type id_resolver registered
[    1.241373] Key type id_legacy registered
[    1.245472] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.252268] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.258920] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    1.266235] fuse init (API version 7.26)
[    1.270651] orangefs_debugfs_init: called with debug mask: :none: :0:
[    1.277395] orangefs_init: module version upstream loaded
[    1.282891] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.558031] random: fast init done
[    8.306008] Key type asymmetric registered
[    8.310423] Asymmetric key parser 'x509' registered
[    8.315425] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    8.323030] io scheduler noop registered
[    8.327020] io scheduler deadline registered
[    8.331505] io scheduler cfq registered (default)
[    8.337725] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    8.347392] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00
[    8.356053] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    8.362409] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    8.369369] pci_bus 0000:00: root bus resource [bus 00-ff]
[    8.375288] PCI: bus0: Fast back to back transfers disabled
[    8.380971] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    8.418105] PCI: bus1: Fast back to back transfers disabled
[    8.423952] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    8.430928] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
[    8.438328] pci 0000:00:01.0: PCI bridge to [bus 01]
[    8.443367] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    8.450324] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    8.457188] mv_xor f1060800.xor: Marvell shared XOR driver
[    8.518923] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    8.526792] mv_xor f1060900.xor: Marvell shared XOR driver
[    8.588916] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    8.597052] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    8.605096] console [ttyS0] disabled
[    8.608882] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    8.617928] console [ttyS0] enabled
[    8.617928] console [ttyS0] enabled
[    8.625078] bootconsole [earlycon0] disabled
[    8.625078] bootconsole [earlycon0] disabled
[    8.643629] loop: module loaded
[    8.647449] sata_mv f1080000.sata: slots 32 ports 2
[    8.655715] scsi host0: sata_mv
[    8.659462] scsi host1: sata_mv
[    8.662927] ata1: SATA max UDMA/133 irq 32
[    8.667043] ata2: SATA max UDMA/133 irq 32
[    8.672077] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    8.678580] nand: Samsung NAND 128MiB 3,3V 8-bit
[    8.683227] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    8.690864] Scanning device for bad blocks
[    8.704135] Bad eraseblock 113 at 0x000000e20000
[    8.733678] Bad eraseblock 422 at 0x0000034c0000
[    8.786803] 7 cmdlinepart partitions found on MTD device orion_nand
[    8.793122] Creating 7 MTD partitions on "orion_nand":
[    8.798321] 0x000000000000-0x0000000a0000 : "uboot"
[    8.804788] 0x0000000a0000-0x0000000e0000 : "param"
[    8.811310] 0x0000000e0000-0x000000360000 : "preroot"
[    8.817826] 0x000000360000-0x0000006e0000 : "uimage"
[    8.824180] 0x0000006e0000-0x000007dc0000 : "rootfs"
[    8.831479] 0x000007dc0000-0x000008000000 : "misc"
[    8.837677] 0x000000000000-0x000008000000 : "flash"
[    8.846460] libphy: Fixed MDIO Bus: probed
[    8.851642] libphy: orion_mdio_bus: probed
[    8.856143] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    8.863729] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.870382] ehci-pci: EHCI PCI platform driver
[    8.874926] ehci-orion: EHCI orion driver
[    8.879242] orion-ehci f1050000.ehci: EHCI Host Controller
[    8.884784] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    8.892808] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    8.928054] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    8.934404] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    8.941290] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.948600] usb usb1: Product: EHCI Host Controller
[    8.953505] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    8.960283] usb usb1: SerialNumber: f1050000.ehci
[    8.965926] hub 1-0:1.0: USB hub found
[    8.969802] hub 1-0:1.0: 1 port detected
[    8.974544] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    8.979905] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    8.987750] xhci_hcd 0000:01:00.0: hcc params 0x014042cb hci version 0x96 quirks 0x00000004
[    8.996486] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    9.003369] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.010678] ata1: SATA link down (SStatus 0 SControl F300)
[    9.016366] usb usb2: Product: xHCI Host Controller
[    9.021297] usb usb2: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[    9.028058] usb usb2: SerialNumber: 0000:01:00.0
[    9.033430] hub 2-0:1.0: USB hub found
[    9.037240] hub 2-0:1.0: 2 ports detected
[    9.041900] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    9.047172] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[    9.054781] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    9.063130] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    9.069987] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.077241] usb usb3: Product: xHCI Host Controller
[    9.082279] usb usb3: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[    9.089043] usb usb3: SerialNumber: 0000:01:00.0
[    9.094419] hub 3-0:1.0: USB hub found
[    9.098300] hub 3-0:1.0: 2 ports detected
[    9.103168] usbcore: registered new interface driver usb-storage
[    9.109649] mousedev: PS/2 mouse device common for all mice
[    9.115598] i2c /dev entries driver
[    9.120238] rtc-pcf8563 0-0051: pcf8563_write_block_data: err=-6 addr=0e, data=03
[    9.127765] rtc-pcf8563 0-0051: pcf8563_probe: write error
[    9.133383] rtc-pcf8563: probe of 0-0051 failed with error -5
[    9.142106] hidraw: raw HID events driver (C) Jiri Kosina
[    9.147949] drop_monitor: Initializing network drop monitor service
[    9.154751] NET: Registered protocol family 17
[    9.159350] Key type dns_resolver registered
[    9.164610] registered taskstats version 1
[    9.168776] Loading compiled-in X.509 certificates
[    9.173659] zswap: loaded using pool lzo/zbud
[    9.189572] Key type big_key registered
[    9.204294] Key type encrypted registered
[    9.210723] hctosys: unable to open rtc device (rtc0)
[    9.328058] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    9.339915] ata2: SATA link down (SStatus 0 SControl F300)
[    9.359273] Freeing unused kernel memory: 1024K
Loading, please wait...
starting version 232
[    9.519708] usb 1-1: New USB device found, idVendor=03f0, idProduct=3807
[    9.526477] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    9.548115] usb 1-1: Product: c485w
[    9.551643] usb 1-1: Manufacturer: HP
[    9.555324] usb 1-1: SerialNumber: UTa224010000BA
[    9.586370] usb-storage 1-1:1.0: USB Mass Storage device detected
[    9.610593] scsi host2: usb-storage 1-1:1.0
[    9.620363] usbcore: registered new interface driver uas
Begin: Loading essential drivers ... done.
[   10.649302] scsi 2:0:0:0: Direct-Access     HP       c485w            0.00 PQ: 0 ANSI: 2
[   10.664394] sd 2:0:0:0: [sda] 7892040 512-byte logical blocks: (4.04 GB/3.76 GiB)
[   10.678508] sd 2:0:0:0: [sda] Write Protect is off
[   10.688175] sd 2:0:0:0: [sda] Asking for cache data failed
[   10.693733] sd 2:0:0:0: [sda] Assuming drive cache: write through
[   10.838115]  sda: sda1 sda2
[   10.847991] sd 2:0:0:0: [sda] 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.439786] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   20.458797] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.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.
[   22.751693] input: gpio_keys as /devices/platform/gpio_keys/input/input0
[....] Waiting for /dev to be fully populated...[   23.002882] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[   23.219134] marvell-cesa f1030000.crypto: CESA device successfully registered
[   23.253525] orion_wdt: Initial timeout 21 sec
[   23.276381] sd 2:0:0:0: Attached scsi generic sg0 type 0
done.
[ ok ] Activating swap:.
[   24.584188] EXT4-fs (sda1): 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/sda1 
e2fsck 1.43.4 (31-Jan-2017)
rootfs: clean, 14455/122160 files, 186838/488561 blocks
. ok 
[   24.858430] EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
[   25.374409] random: crng init done
[ 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...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/

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

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

exiting.
ifup: failed to bring up eth0
failed.
[   28.558384] NET: Registered protocol family 10
[   28.567099] 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...
1286 (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...
1285 (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: 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:~#

Shutdown output:
root@debian:/# shutdown -hP now
INIT: Slevel: 0
INIT: S
Broadcast message from root@debian (ttyS0) (Wed Dec 31 16:13:51 1969):

The system is going down for system halt NOW!
[info] Using makefile-style concurrent boot in runlevel 0.
[....] Stopping busybox' klogd implementation: klogd1285 (klogd)
Stopped klogd (pid 1285).
. ok 
[ ok ] Stopping Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[....] Stopping busybox' syslogd implementation: syslogd1286 (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: Cannot access the Hardware Clock via any known method.
hwclock: Use the --debug option to see the details of our search for an access method.
[ ok ] Deconfiguring network interfaces...done.
[....] Will now unmount temporary filesystems:umount: /tmp unmounted
. ok 
[ ok ] Will now deactivate swap:.
[  838.133511] EXT4-fs (sda1): re-mounted. Opts: (null)
[ ok ] Mounting root filesystem read-only...done.
[info] Will now halt.
logger: socket /dev/log: Connection refused
[  840.357321] reboot: Power down
[  843.561153] ------------[ cut here ]------------
[  843.565815] WARNING: CPU: 0 PID: 1901 at drivers/power/reset/gpio-poweroff.c:45 SyS_reboot+0x14c/0x1f8
[  843.575160] Modules linked in: ipv6 evdev sg orion_wdt marvell_cesa kirkwood_thermal gpio_keys uio_pdrv_genirq uio fixed uas
[  843.586468] CPU: 0 PID: 1901 Comm: halt Not tainted 4.12.1-kirkwood-tld-1 #1
[  843.593542] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[  843.599865] [<c010ea54>] (unwind_backtrace) from [<c010ab48>] (show_stack+0x10/0x14)
[  843.607659] [<c010ab48>] (show_stack) from [<c0118454>] (__warn+0xd0/0xfc)
[  843.614578] [<c0118454>] (__warn) from [<c0118524>] (warn_slowpath_null+0x1c/0x24)
[  843.622192] [<c0118524>] (warn_slowpath_null) from [<c0136a20>] (SyS_reboot+0x14c/0x1f8)
[  843.630326] [<c0136a20>] (SyS_reboot) from [<c0107040>] (ret_fast_syscall+0x0/0x38)
[  843.638017] ---[ end trace c1217acda0ec1663 ]---


Success so far. I have logged on, I have not tried to do the update however.


Regards,
garagoyun



Edited 2 time(s). Last edit at 09/25/2018 07:00AM by garagoyun.
Re: Debian on Freecom Silverstore 2 NAS
September 25, 2018 05:05PM
That was a excellent looking boot! Looks like most are working properly, except for a few devices. And those problems are probably due to the differences between this box and the NSA325.

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

ifup: failed to bring up eth0
Is the ethernet cable plugged in? it it was, then this box might have a different network chip.

Update: Wikidevi said it has the same chip "ETH chip2: Marvell 88E1318"

RTC
[    9.120238] rtc-pcf8563 0-0051: pcf8563_write_block_data: err=-6 addr=0e, data=03
[    9.127765] rtc-pcf8563 0-0051: pcf8563_probe: write error
[    9.133383] rtc-pcf8563: probe of 0-0051 failed with error -5

hwclock: Cannot access the Hardware Clock via any known method.
hwclock: Use the --debug option to see the details of our search for an access method.
This is expected. This box most likely does not use the pcf8563 for RTC.

SATA
[    8.647449] sata_mv f1080000.sata: slots 32 ports 2
[    8.655715] scsi host0: sata_mv
[    8.659462] scsi host1: sata_mv
[    8.662927] ata1: SATA max UDMA/133 irq 32
[    8.667043] ata2: SATA max UDMA/133 irq 32

[    9.339915] ata2: SATA link down (SStatus 0 SControl F300)

Are the SATA drives still in the box? or unplugged?

Power Off
[  840.357321] reboot: Power down
[  843.561153] ------------[ cut here ]------------
Power off GPIO might be different for this box.

Update: OTOH, if the box was shudown properly then this error is a don't care.

====

At this point, even though it looks great. I'd say it is best if you can find the GPL source from Freecom. It will make the rest of issues easier to solve.

I will use those info to create a new DTS for this box. As of now, I could remove those different devices to make the new DTS, but we know it is not quite complete.

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



Edited 2 time(s). Last edit at 09/26/2018 02:11AM by bodhi.
Re: Debian on Freecom Silverstore 2 NAS
September 26, 2018 04:15AM
I've updated the post above.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Freecom Silverstore 2 NAS
September 26, 2018 06:34AM
bodhi,

Previous tests were done just with the motherboard without the SATA drive and internet attached.

Below is the output with a drive and internet connection:

        __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ 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 1 0]: Enable DMA mode (5)
  Device 1 @ 0 1:
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-25  11:38:11 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.007907] Switching to timer-based delay loop, resolution 5ns
[    0.014402] 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.034480] Security Framework initialized
[    0.038817] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.045500] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.053556] CPU: Testing write buffer coherency: ok
[    0.059564] Setting up static identity map for 0x100000 - 0x100058
[    0.066094] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.074839] devtmpfs: initialized
[    0.084067] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.094028] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.100658] prandom: seed boundary self test passed
[    0.110140] prandom: 100 self tests passed
[    0.114313] pinctrl core: initialized pinctrl subsystem
[    0.120853] NET: Registered protocol family 16
[    0.125844] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.134575] cpuidle: using governor ladder
[    0.138867] cpuidle: using governor menu
[    0.143364] Feroceon L2: Enabling L2
[    0.147044] Feroceon L2: Cache support initialised.
[    0.152429] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.169495] No ATAGs?
[    0.180775] vgaarb: loaded
[    0.186258] SCSI subsystem initialized
[    0.190699] usbcore: registered new interface driver usbfs
[    0.196306] usbcore: registered new interface driver hub
[    0.201807] usbcore: registered new device driver usb
[    0.208091] clocksource: Switched to clocksource orion_clocksource
[    0.320130] VFS: Disk quotas dquot_6.6.0
[    0.324209] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.343881] NET: Registered protocol family 2
[    0.349198] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.356231] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.362696] TCP: Hash tables configured (established 1024 bind 1024)
[    0.369213] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.375127] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.381678] NET: Registered protocol family 1
[    0.386559] RPC: Registered named UNIX socket transport module.
[    0.392620] RPC: Registered udp transport module.
[    0.397391] RPC: Registered tcp transport module.
[    0.402199] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.408984] Unpacking initramfs...
[    1.187095] Freeing initrd memory: 7076K
[    1.191312] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.198893] audit: initializing netlink subsys (disabled)
[    1.204839] Initialise system trusted keyrings
[    1.209418] audit: type=2000 audit(1.196:1): state=initialized audit_enabled=0 res=1
[    1.217267] Key type blacklist registered
[    1.221565] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    1.228208] zbud: loaded
[    1.231949] NFS: Registering the id_resolver key type
[    1.237084] Key type id_resolver registered
[    1.241417] Key type id_legacy registered
[    1.245515] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.252310] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.258965] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    1.266281] fuse init (API version 7.26)
[    1.270688] orangefs_debugfs_init: called with debug mask: :none: :0:
[    1.277431] orangefs_init: module version upstream loaded
[    1.282927] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.558100] random: fast init done
[    8.306351] Key type asymmetric registered
[    8.310766] Asymmetric key parser 'x509' registered
[    8.315772] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    8.323377] io scheduler noop registered
[    8.327365] io scheduler deadline registered
[    8.331847] io scheduler cfq registered (default)
[    8.338067] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    8.347738] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00
[    8.356402] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    8.362764] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    8.369724] pci_bus 0000:00: root bus resource [bus 00-ff]
[    8.375649] PCI: bus0: Fast back to back transfers disabled
[    8.381332] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    8.418175] PCI: bus1: Fast back to back transfers disabled
[    8.424023] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    8.430998] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
[    8.438406] pci 0000:00:01.0: PCI bridge to [bus 01]
[    8.443445] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    8.450400] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    8.457267] mv_xor f1060800.xor: Marvell shared XOR driver
[    8.518994] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    8.526863] mv_xor f1060900.xor: Marvell shared XOR driver
[    8.588985] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    8.597130] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    8.605171] console [ttyS0] disabled
[    8.608959] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    8.618007] console [ttyS0] enabled
[    8.618007] console [ttyS0] enabled
[    8.625157] bootconsole [earlycon0] disabled
[    8.625157] bootconsole [earlycon0] disabled
[    8.643702] loop: module loaded
[    8.647515] sata_mv f1080000.sata: slots 32 ports 2
[    8.655777] scsi host0: sata_mv
[    8.659526] scsi host1: sata_mv
[    8.662998] ata1: SATA max UDMA/133 irq 32
[    8.667121] ata2: SATA max UDMA/133 irq 32
[    8.672148] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    8.678651] nand: Samsung NAND 128MiB 3,3V 8-bit
[    8.683297] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    8.690935] Scanning device for bad blocks
[    8.704204] Bad eraseblock 113 at 0x000000e20000
[    8.733748] Bad eraseblock 422 at 0x0000034c0000
[    8.786875] 7 cmdlinepart partitions found on MTD device orion_nand
[    8.793199] Creating 7 MTD partitions on "orion_nand":
[    8.798400] 0x000000000000-0x0000000a0000 : "uboot"
[    8.804867] 0x0000000a0000-0x0000000e0000 : "param"
[    8.811386] 0x0000000e0000-0x000000360000 : "preroot"
[    8.817906] 0x000000360000-0x0000006e0000 : "uimage"
[    8.824269] 0x0000006e0000-0x000007dc0000 : "rootfs"
[    8.831572] 0x000007dc0000-0x000008000000 : "misc"
[    8.837776] 0x000000000000-0x000008000000 : "flash"
[    8.846565] libphy: Fixed MDIO Bus: probed
[    8.851742] libphy: orion_mdio_bus: probed
[    8.856267] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    8.863861] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.870520] ehci-pci: EHCI PCI platform driver
[    8.875064] ehci-orion: EHCI orion driver
[    8.879378] orion-ehci f1050000.ehci: EHCI Host Controller
[    8.884924] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    8.892875] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    8.928123] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    8.934476] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    8.941358] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.948670] usb usb1: Product: EHCI Host Controller
[    8.953574] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    8.960352] usb usb1: SerialNumber: f1050000.ehci
[    8.965995] hub 1-0:1.0: USB hub found
[    8.969871] hub 1-0:1.0: 1 port detected
[    8.974613] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    8.979977] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    8.987823] xhci_hcd 0000:01:00.0: hcc params 0x014042cb hci version 0x96 quirks 0x00000004
[    8.996552] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    9.003429] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.010737] ata1: SATA link down (SStatus 0 SControl F300)
[    9.016428] usb usb2: Product: xHCI Host Controller
[    9.021359] usb usb2: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[    9.028118] usb usb2: SerialNumber: 0000:01:00.0
[    9.033491] hub 2-0:1.0: USB hub found
[    9.037311] hub 2-0:1.0: 2 ports detected
[    9.041973] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    9.047240] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[    9.054848] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    9.063197] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    9.070055] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.077311] usb usb3: Product: xHCI Host Controller
[    9.082349] usb usb3: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[    9.089112] usb usb3: SerialNumber: 0000:01:00.0
[    9.094492] hub 3-0:1.0: USB hub found
[    9.098369] hub 3-0:1.0: 2 ports detected
[    9.103234] usbcore: registered new interface driver usb-storage
[    9.109717] mousedev: PS/2 mouse device common for all mice
[    9.115665] i2c /dev entries driver
[    9.120301] rtc-pcf8563 0-0051: pcf8563_write_block_data: err=-6 addr=0e, data=03
[    9.127826] rtc-pcf8563 0-0051: pcf8563_probe: write error
[    9.133442] rtc-pcf8563: probe of 0-0051 failed with error -5
[    9.142154] hidraw: raw HID events driver (C) Jiri Kosina
[    9.148005] drop_monitor: Initializing network drop monitor service
[    9.154814] NET: Registered protocol family 17
[    9.159411] Key type dns_resolver registered
[    9.164672] registered taskstats version 1
[    9.168836] Loading compiled-in X.509 certificates
[    9.173710] zswap: loaded using pool lzo/zbud
[    9.189566] Key type big_key registered
[    9.204240] Key type encrypted registered
[    9.210669] hctosys: unable to open rtc device (rtc0)
[    9.328128] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    9.508139] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    9.516767] ata2.00: ATA-7: Hitachi HDS721680PLA380, P21OABDA, max UDMA/100
[    9.523842] ata2.00: 156301488 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    9.532140] usb 1-1: New USB device found, idVendor=03f0, idProduct=3807
[    9.539034] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    9.546218] usb 1-1: Product: c485w
[    9.549772] usb 1-1: Manufacturer: HP
[    9.553458] usb 1-1: SerialNumber: UTa224010000BA
[    9.558902] ata2.00: configured for UDMA/100
[    9.563475] usb-storage 1-1:1.0: USB Mass Storage device detected
[    9.570050] scsi host2: usb-storage 1-1:1.0
[    9.574810] scsi 1:0:0:0: Direct-Access     ATA      Hitachi HDS72168 ABDA PQ: 0 ANSI: 5
[    9.585884] sd 1:0:0:0: [sda] 156301488 512-byte logical blocks: (80.0 GB/74.5 GiB)
[    9.594036] sd 1:0:0:0: [sda] Write Protect is off
[    9.599072] sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    9.642246]  sda: sda1 sda2 sda3 sda4 sda5
[    9.649106] sd 1:0:0:0: [sda] Attached SCSI disk
[    9.657344] Freeing unused kernel memory: 1024K
Loading, please wait...
starting version 232
[   10.273626] usbcore: registered new interface driver uas
[   10.652743] scsi 2:0:0:0: Direct-Access     HP       c485w            0.00 PQ: 0 ANSI: 2
[   10.672084] sd 2:0:0:0: [sdb] 7892040 512-byte logical blocks: (4.04 GB/3.76 GiB)
[   10.685948] sd 2:0:0:0: [sdb] Write Protect is off
[   10.697075] sd 2:0:0:0: [sdb] Asking for cache data failed
[   10.708215] sd 2:0:0:0: [sdb] Assuming drive cache: write through
Begin: Loading essential drivers ... done.
[   10.849424]  sdb: sdb1 sdb2
[   10.859687] 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.909852] EXT4-fs (sdb1): mounting ext3 file system using the ext4 subsystem
[   20.928952] 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...[   23.229489] input: gpio_keys as /devices/platform/gpio_keys/input/input0
done.
[....] Waiting for /dev to be fully populated...[   23.489109] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[   23.619559] orion_wdt: Initial timeout 21 sec
[   23.720121] marvell-cesa f1030000.crypto: CESA device successfully registered
[   23.756983] sd 1:0:0:0: Attached scsi generic sg0 type 0
[   23.788579] sd 2:0:0:0: Attached scsi generic sg1 type 0
[   23.974969] random: crng init done
done.
[ ok ] Activating swap:.
[   25.199390] 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/122160 files, 186844/488561 blocks
. ok 
[   25.484241] 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...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/

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

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

exiting.
ifup: failed to bring up eth0
failed.
[   29.191549] NET: Registered protocol family 10
[   29.198808] 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...
1296 (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...
1295 (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: Wed Dec 31 16:09:31 PST 1969 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:~# apt-get get update
E: Invalid operation get
root@debian:~# apt-get update    
Err:1 http://ftp.us.debian.org/debian stretch InRelease
  Temporary failure resolving 'ftp.us.debian.org'
Err:2 http://security.debian.org stretch/updates InRelease            
  Temporary failure resolving 'security.debian.org'
Err:3 http://http.debian.net/debian stretch-updates InRelease         
  Temporary failure resolving 'http.debian.net'
Reading package lists... Done     
W: Failed to fetch http://ftp.us.debian.org/debian/dists/stretch/InRelease  Temporary failure resolving 'ftp.us.debian.org'
W: Failed to fetch http://security.debian.org/dists/stretch/updates/InRelease  Temporary failure resolving 'security.debian.org'
W: Failed to fetch http://http.debian.net/debian/dists/stretch-updates/InRelease  Temporary failure resolving 'http.debian.net'
W: Some index files failed to download. They have been ignored, or old ones used instead.
root@debian:~# ping google.com
ping: google.com: Temporary failure in name resolution
root@debian:~# poweroff

Broadcast message from root@debian (ttyS0) (Wed Dec 31 16:01:59 1969):

The system is going down for system halt NOW!
INIT: Switching to runlevel: 0
INIT: Sending processe[info] Using makefile-style concurrent boot in runlevel 0.
[....] Stopping busybox' klogd implementation: klogd1295 (klogd)
Stopped klogd (pid 1295).
. ok 
[ ok ] Stopping Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[....] Stopping busybox' syslogd implementation: syslogd1296 (syslogd)
. ok 
[ ok ] Stopping NFS kernel daemon: mountd nfsd.
[ ok ] Unexporting directories for NFS kernel daemon....
[ ok ] Asking all remaining processes to terminate...done.
[ ok ] All processes ended within 1 seconds...done.
[ ok ] Saving random seed...done.
[ ok ] Stopping RPC port mapper daemon: rpcbind.
[ ok ] Deconfiguring network interfaces...done.
[ ok ] Stopping NFS common utilities: idmapd statd.
[info] Saving the system clock.
hwclock: Cannot access the Hardware Clock via any known method.
hwclock: Use the --debug option to see the details of our search for an access method.
[....] Will now unmount temporary filesystems:umount: /tmp unmounted
. ok 
[ ok ] Will now deactivate swap:.
[  127.011702] EXT4-fs (sdb1): re-mounted. Opts: (null)
[ ok ] Mounting root filesystem read-only...done.
[info] Will now halt.
logger: socket /dev/log: Connection refused
[  127.647148] ata2: exception Emask 0x10 SAct 0x0 SErr 0x180000 action 0x6 frozen
[  127.654539] ata2: edma_err_cause=02000020 pp_flags=00000003, SError=00180000
[  127.661647] ata2: SError: { 10B8B Dispar }
[  127.665774] ata2: hard resetting link
[  127.999759] ata2: SATA link down (SStatus 0 SControl F300)
[  129.220929] sd 1:0:0:0: [sda] Synchronizing SCSI cache
[  133.048130] ata2: hard resetting link
[  133.379738] ata2: SATA link down (SStatus 0 SControl F300)
[  133.385266] ata2: limiting SATA link speed to 1.5 Gbps
[  138.408122] ata2: hard resetting link
[  138.739730] ata2: SATA link down (SStatus 0 SControl F310)
[  138.745255] ata2.00: disabled
[  138.748286] ata2: EH complete
[  138.751283] ata2.00: detaching (SCSI 1:0:0:0)
[  138.758339] sd 1:0:0:0: [sda] Synchronize Cache(10) failed: Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
[  138.768628] sd 1:0:0:0: [sda] Stopping disk
[  138.772894] sd 1:0:0:0: [sda] Start/Stop Unit failed: Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
[  138.784362] sd 1:0:0:0: [sda] Synchronizing SCSI cache
[  138.809031] sd 1:0:0:0: [sda] Synchronize Cache(10) failed: Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
[  138.819370] sd 1:0:0:0: [sda] Stopping disk
[  138.823633] sd 1:0:0:0: [sda] Start/Stop Unit failed: Result: hostbyte=DID_BAD_TARGET driverbyte=DRIVER_OK
[  138.833762] reboot: Power down
[  142.037517] ------------[ cut here ]------------
[  142.042171] WARNING: CPU: 0 PID: 1922 at drivers/power/reset/gpio-poweroff.c:45 SyS_reboot+0x14c/0x1f8
[  142.051517] Modules linked in: ipv6 evdev sg marvell_cesa orion_wdt kirkwood_thermal gpio_keys uio_pdrv_genirq uio fixed uas
[  142.062824] CPU: 0 PID: 1922 Comm: halt Not tainted 4.12.1-kirkwood-tld-1 #1
[  142.069900] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[  142.076221] [<c010ea54>] (unwind_backtrace) from [<c010ab48>] (show_stack+0x10/0x14)
[  142.084016] [<c010ab48>] (show_stack) from [<c0118454>] (__warn+0xd0/0xfc)
[  142.090934] [<c0118454>] (__warn) from [<c0118524>] (warn_slowpath_null+0x1c/0x24)
[  142.098548] [<c0118524>] (warn_slowpath_null) from [<c0136a20>] (SyS_reboot+0x14c/0x1f8)
[  142.106684] [<c0136a20>] (SyS_reboot) from [<c0107040>] (ret_fast_syscall+0x0/0x38)
[  142.114374] ---[ end trace 662011aadd5f19d4 ]---


I have the GPL source from Freecom. I will PM you shortly.



Regards,
garagoyun
Re: Debian on Freecom Silverstore 2 NAS
September 27, 2018 04:35PM
garagoyun,

Let's try this initial DTB version. It does not have any new info from GPL yet. However, I've removed wrong devices so hopefully the network and RTC will be OK.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - kirkwood-silverstore.dtb (13.6 KB)
open | download - kirkwood-silverstore.dts (6.4 KB)
Re: Debian on Freecom Silverstore 2 NAS
September 27, 2018 04:37PM
[  138.833762] reboot: Power down
[  142.037517] ------------[ cut here ]------------
[  142.042171] WARNING: CPU: 0 PID: 1922 at drivers/power/reset/gpio-poweroff.c:45 SyS_reboot+0x14c/0x1f8
[  142.051517] Modules linked in: ipv6 evdev sg marvell_cesa orion_wdt kirkwood_thermal gpio_keys uio_pdrv_genirq uio fixed uas
[  142.062824] CPU: 0 PID: 1922 Comm: halt Not tainted 4.12.1-kirkwood-tld-1 #1
[  142.069900] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[  142.076221] [<c010ea54>] (unwind_backtrace) from [<c010ab48>] (show_stack+0x10/0x14)
[  142.084016] [<c010ab48>] (show_stack) from [<c0118454>] (__warn+0xd0/0xfc)
[  142.090934] [<c0118454>] (__warn) from [<c0118524>] (warn_slowpath_null+0x1c/0x24)
[  142.098548] [<c0118524>] (warn_slowpath_null) from [<c0136a20>] (SyS_reboot+0x14c/0x1f8)
[  142.106684] [<c0136a20>] (SyS_reboot) from [<c0107040>] (ret_fast_syscall+0x0/0x38)
[  142.114374] ---[ end trace 662011aadd5f19d4 ]---

Did the box power down completely after this?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Freecom Silverstore 2 NAS
September 27, 2018 04:43PM
bodhi,

Quote

Did the box power down completely after this?

No, it did not.

I will check the DTB version shortly.


Regards,
garagoyun
Re: Debian on Freecom Silverstore 2 NAS
September 27, 2018 05:13PM
Below the output with the silverstore dtb:

        __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ 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
....
.
......
............
.........................
...................................................
......................................................................................................
.........................................................................................................................................................................

3835526 bytes read
....
.
......
............
.........................
...................................................
......................................................................................................
.................................................................................................................................................................................................................
.....................................................................................................................................................................................................................................................................................................

7245696 bytes read
## Booting image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2018-09-27  21:51:23 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3835462 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
[    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: 109416K/131072K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 21656K 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.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.034477] Security Framework initialized
[    0.038806] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.045482] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.053537] CPU: Testing write buffer coherency: ok
[    0.059541] Setting up static identity map for 0x100000 - 0x100058
[    0.066066] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.074784] devtmpfs: initialized
[    0.083782] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.093743] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.100357] prandom: seed boundary self test passed
[    0.109840] prandom: 100 self tests passed
[    0.114011] pinctrl core: initialized pinctrl subsystem
[    0.120559] NET: Registered protocol family 16
[    0.125564] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.134239] cpuidle: using governor ladder
[    0.138529] cpuidle: using governor menu
[    0.143016] Feroceon L2: Enabling L2
[    0.146699] Feroceon L2: Cache support initialised.
[    0.152101] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.169353] No ATAGs?
[    0.180616] vgaarb: loaded
[    0.186095] SCSI subsystem initialized
[    0.190520] usbcore: registered new interface driver usbfs
[    0.196158] usbcore: registered new interface driver hub
[    0.201675] usbcore: registered new device driver usb
[    0.207952] clocksource: Switched to clocksource orion_clocksource
[    0.319948] VFS: Disk quotas dquot_6.6.0
[    0.324021] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.343723] NET: Registered protocol family 2
[    0.349034] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.356067] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.362534] TCP: Hash tables configured (established 1024 bind 1024)
[    0.369051] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.374963] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.381515] NET: Registered protocol family 1
[    0.386392] RPC: Registered named UNIX socket transport module.
[    0.392455] RPC: Registered udp transport module.
[    0.397227] RPC: Registered tcp transport module.
[    0.402036] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.408824] Unpacking initramfs...
[    1.186977] Freeing initrd memory: 7076K
[    1.191191] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.198751] audit: initializing netlink subsys (disabled)
[    1.204710] Initialise system trusted keyrings
[    1.209287] audit: type=2000 audit(1.196:1): state=initialized audit_enabled=0 res=1
[    1.217156] Key type blacklist registered
[    1.221451] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    1.228092] zbud: loaded
[    1.231821] NFS: Registering the id_resolver key type
[    1.236960] Key type id_resolver registered
[    1.241296] Key type id_legacy registered
[    1.245387] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.252181] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.258834] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    1.266151] fuse init (API version 7.26)
[    1.270558] orangefs_debugfs_init: called with debug mask: :none: :0:
[    1.277299] orangefs_init: module version upstream loaded
[    1.282796] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.557961] random: fast init done
[    8.306009] Key type asymmetric registered
[    8.310424] Asymmetric key parser 'x509' registered
[    8.315426] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    8.323030] io scheduler noop registered
[    8.327020] io scheduler deadline registered
[    8.331494] io scheduler cfq registered (default)
[    8.337734] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    8.347389] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[    8.355104] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    8.361459] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    8.368419] pci_bus 0000:00: root bus resource [bus 00-ff]
[    8.374347] PCI: bus0: Fast back to back transfers disabled
[    8.380037] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    8.418037] PCI: bus1: Fast back to back transfers disabled
[    8.423882] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    8.430859] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
[    8.438259] pci 0000:00:01.0: PCI bridge to [bus 01]
[    8.443298] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    8.450253] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    8.457118] mv_xor f1060800.xor: Marvell shared XOR driver
[    8.518846] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    8.526723] mv_xor f1060900.xor: Marvell shared XOR driver
[    8.588843] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    8.596968] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    8.605002] console [ttyS0] disabled
[    8.608788] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    8.617833] console [ttyS0] enabled
[    8.617833] console [ttyS0] enabled
[    8.624985] bootconsole [earlycon0] disabled
[    8.624985] bootconsole [earlycon0] disabled
[    8.643534] loop: module loaded
[    8.647339] sata_mv f1080000.sata: slots 32 ports 2
[    8.655608] scsi host0: sata_mv
[    8.659348] scsi host1: sata_mv
[    8.662801] ata1: SATA max UDMA/133 irq 33
[    8.666922] ata2: SATA max UDMA/133 irq 33
[    8.671953] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    8.678456] nand: Samsung NAND 128MiB 3,3V 8-bit
[    8.683098] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    8.690735] Scanning device for bad blocks
[    8.704019] Bad eraseblock 113 at 0x000000e20000
[    8.733534] Bad eraseblock 422 at 0x0000034c0000
[    8.786661] 7 cmdlinepart partitions found on MTD device orion_nand
[    8.792986] Creating 7 MTD partitions on "orion_nand":
[    8.798181] 0x000000000000-0x0000000a0000 : "uboot"
[    8.804637] 0x0000000a0000-0x0000000e0000 : "param"
[    8.811170] 0x0000000e0000-0x000000360000 : "preroot"
[    8.817717] 0x000000360000-0x0000006e0000 : "uimage"
[    8.824057] 0x0000006e0000-0x000007dc0000 : "rootfs"
[    8.831360] 0x000007dc0000-0x000008000000 : "misc"
[    8.837554] 0x000000000000-0x000008000000 : "flash"
[    8.846334] libphy: Fixed MDIO Bus: probed
[    8.851517] libphy: orion_mdio_bus: probed
[    8.856035] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    8.863629] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    8.870287] ehci-pci: EHCI PCI platform driver
[    8.874833] ehci-orion: EHCI orion driver
[    8.879148] orion-ehci f1050000.ehci: EHCI Host Controller
[    8.884691] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    8.892713] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    8.927984] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    8.934328] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    8.941213] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    8.948522] usb usb1: Product: EHCI Host Controller
[    8.953428] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    8.960206] usb usb1: SerialNumber: f1050000.ehci
[    8.965847] hub 1-0:1.0: USB hub found
[    8.969728] hub 1-0:1.0: 1 port detected
[    8.974468] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    8.979827] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    8.987682] xhci_hcd 0000:01:00.0: hcc params 0x014042cb hci version 0x96 quirks 0x00000004
[    8.996418] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    9.003298] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.010661] usb usb2: Product: xHCI Host Controller
[    9.015567] usb usb2: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[    9.022324] usb usb2: SerialNumber: 0000:01:00.0
[    9.027736] hub 2-0:1.0: USB hub found
[    9.031610] hub 2-0:1.0: 2 ports detected
[    9.036201] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    9.041533] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[    9.049125] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    9.057416] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    9.064273] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.071559] usb usb3: Product: xHCI Host Controller
[    9.076458] usb usb3: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[    9.083324] usb usb3: SerialNumber: 0000:01:00.0
[    9.088693] hub 3-0:1.0: USB hub found
[    9.092516] hub 3-0:1.0: 2 ports detected
[    9.097393] usbcore: registered new interface driver usb-storage
[    9.103868] mousedev: PS/2 mouse device common for all mice
[    9.110203] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    9.117266] i2c /dev entries driver
[    9.124387] hidraw: raw HID events driver (C) Jiri Kosina
[    9.130309] drop_monitor: Initializing network drop monitor service
[    9.136868] NET: Registered protocol family 17
[    9.141656] Key type dns_resolver registered
[    9.146916] registered taskstats version 1
[    9.151078] Loading compiled-in X.509 certificates
[    9.155956] zswap: loaded using pool lzo/zbud
[    9.171851] Key type big_key registered
[    9.178069] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    9.187046] ata1.00: ATA-7: Hitachi HDS721680PLA380, P21OABDA, max UDMA/100
[    9.199408] ata1.00: 156301488 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    9.208017] Key type encrypted registered
[    9.213948] rtc-mv f1010300.rtc: setting system clock to 2018-09-27 21:55:25 UTC (1538085325)
[    9.224945] ata1.00: configured for UDMA/100
[    9.239996] scsi 0:0:0:0: Direct-Access     ATA      Hitachi HDS72168 ABDA PQ: 0 ANSI: 5
[    9.249592] sd 0:0:0:0: [sda] 156301488 512-byte logical blocks: (80.0 GB/74.5 GiB)
[    9.258310] sd 0:0:0:0: [sda] Write Protect is off
[    9.263339] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    9.313497]  sda: sda1 sda2 sda3 sda4 sda5
[    9.320603] sd 0:0:0:0: [sda] Attached SCSI disk
[    9.328018] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    9.519602] usb 1-1: New USB device found, idVendor=03f0, idProduct=3807
[    9.526377] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    9.533614] usb 1-1: Product: c485w
[    9.537127] usb 1-1: Manufacturer: HP
[    9.540857] usb 1-1: SerialNumber: UTa224010000BA
[    9.546443] usb-storage 1-1:1.0: USB Mass Storage device detected
[    9.553020] scsi host2: usb-storage 1-1:1.0
[    9.588163] ata2: SATA link down (SStatus 0 SControl F300)
[    9.607384] Freeing unused kernel memory: 1024K
Loading, please wait...
starting version 232
[   10.202361] usbcore: registered new interface driver uas
[   10.572212] scsi 2:0:0:0: Direct-Access     HP       c485w            0.00 PQ: 0 ANSI: 2
[   10.590669] sd 2:0:0:0: [sdb] 7892040 512-byte logical blocks: (4.04 GB/3.76 GiB)
[   10.605533] sd 2:0:0:0: [sdb] Write Protect is off
[   10.614895] sd 2:0:0:0: [sdb] Asking for cache data failed
[   10.627874] sd 2:0:0:0: [sdb] Assuming drive cache: write through
Begin: Loading essential drivers ... done.
[   10.768637]  sdb: sdb1 sdb2
[   10.778771] 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.819690] EXT4-fs (sdb1): mounting ext3 file system using the ext4 subsystem
[   20.838786] 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.165706] input: gpio_keys as /devices/platform/gpio_keys/input/input0
[....] Waiting for /dev to be fully populated...[   23.390259] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[   23.636717] marvell-cesa f1030000.crypto: CESA device successfully registered
[   23.673694] orion_wdt: Initial timeout 21 sec
[   23.728543] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   23.758814] sd 2:0:0:0: Attached scsi generic sg1 type 0
[   23.826794] random: crng init done
done.
[ ok ] Activating swap:.
[   25.177558] 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, 14460/122160 files, 199472/488561 blocks
. ok 
[   25.439200] 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...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/

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

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

exiting.
ifup: failed to bring up eth0
failed.
[   29.131272] NET: Registered protocol family 10
[   29.138546] 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...
1289 (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...
1288 (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: Wed Dec 31 16:00:42 PST 1969 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:~# shutdown -Ph now
INIT: Slevel: 0
INIT: S
Broadcast message from root@debian (ttyS0) (Thu Sep 27 14:57:21 2018):

The system is going down for system halt NOW!
[info] Using makefile-style concurrent boot in runlevel 0.
[ ok ] Stopping Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[....] Stopping busybox' klogd implementation: klogd1288 (klogd)
Stopped klogd (pid 1288).
. ok 
[....] Stopping busybox' syslogd implementation: syslogd1289 (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.
hwclock: Warning: unrecognized third line in adjtime file
(Expected: `UTC' or `LOCAL' or nothing.)
[info] Hardware Clock updated to Thu Sep 27 14:57:27 PDT 2018.
[....] Will now unmount temporary filesystems:umount: /tmp unmounted
. ok 
[ ok ] Will now deactivate swap:.
[  131.714289] EXT4-fs (sdb1): re-mounted. Opts: (null)
[ ok ] Mounting root filesystem read-only...done.
[info] Will now halt.
logger: socket /dev/log: Connection refused
[  133.921985] sd 0:0:0:0: [sda] Synchronizing SCSI cache
[  133.927413] sd 0:0:0:0: [sda] Stopping disk
[  134.332600] reboot: Power down
[  137.536353] ------------[ cut here ]------------
[  137.541014] WARNING: CPU: 0 PID: 1917 at drivers/power/reset/gpio-poweroff.c:45 SyS_reboot+0x14c/0x1f8
[  137.550359] Modules linked in: ipv6 evdev sg orion_wdt marvell_cesa kirkwood_thermal gpio_keys uio_pdrv_genirq uio fixed uas
[  137.561667] CPU: 0 PID: 1917 Comm: halt Not tainted 4.12.1-kirkwood-tld-1 #1
[  137.568741] Hardware name: Marvell Kirkwood (Flattened Device Tree)
[  137.575065] [<c010ea54>] (unwind_backtrace) from [<c010ab48>] (show_stack+0x10/0x14)
[  137.582858] [<c010ab48>] (show_stack) from [<c0118454>] (__warn+0xd0/0xfc)
[  137.589777] [<c0118454>] (__warn) from [<c0118524>] (warn_slowpath_null+0x1c/0x24)
[  137.597390] [<c0118524>] (warn_slowpath_null) from [<c0136a20>] (SyS_reboot+0x14c/0x1f8)
[  137.605526] [<c0136a20>] (SyS_reboot) from [<c0107040>] (ret_fast_syscall+0x0/0x38)
[  137.613215] ---[ end trace 7b04317237d99ace ]---

Still no eth0. Could the interface be identified as egiga0 instead by anychance?

After 'shutdown -hP now' command the lights on the device are still on eventhough everything else seems to be quiet.

Regards,
garagoyun
Re: Debian on Freecom Silverstore 2 NAS
September 27, 2018 05:31PM
OK so the RTC is working

[    9.213948] rtc-mv f1010300.rtc: setting system clock to 2018-09-27 21:55:25 UTC (1538085325)

[info] Hardware Clock updated to Thu Sep 27 14:57:27 PDT 2018.

Regarding ethernet, I forgot an important detail.

Log in to Debian and edit /etc/fw_env.config to have the same definition as you found in stock

Quote

/etc # cat fw_env.config
# Configuration file for fw_(printenv/saveenv) utility.
# Up to two entries are valid, in this case the redundand
# environment sector is assumed present.

# MTD device name Device offset Env. size Flash sector size
/dev/mtd1 0x0 0x20000 0x20000

And then
fw_printenv
Please post the listing here.

And if the listing looks good (same as in stock), you can reboot right away and see if ethernet is working after the system coming up.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Freecom Silverstore 2 NAS
September 27, 2018 05:37PM
Quote

After 'shutdown -hP now' command the lights on the device are still on eventhough everything else seems to be quiet.

It means power off is working. The fan and HDD shutdown. I've seen that warning before but need to look it up in old notes.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Freecom Silverstore 2 NAS
September 27, 2018 05:41PM
This box also has a hardware monitoring chip: adt7473.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Debian on Freecom Silverstore 2 NAS
September 27, 2018 05:54PM
bodhi,

I have amended /etc/fw_env.config. See the output for fw_printenv below:
root@debian:~# cat /etc/fw_env.config 
# MTD device name       Device offset   Env. size       Flash sector size       Number of sectors
/dev/mtd1               0x0             0x20000         0x20000
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:~#


Regards,
garagoyun
Re: Debian on Freecom Silverstore 2 NAS
September 27, 2018 05:58PM
bodhi Wrote:
-------------------------------------------------------
> This box also has a hardware monitoring chip:
> adt7473.


Yes, that's the one.



Regards,
garagoyun
Re: Debian on Freecom Silverstore 2 NAS
September 27, 2018 06:06PM
bodhi Wrote:
-------------------------------------------------------

> And then
>
> fw_printenv
>
> Please post the listing here.
>
> And if the listing looks good (same as in stock),
> you can reboot right away and see if ethernet is
> working after the system coming up.


In the original listing:
ethaddr=00:01:DB:1E:24:C2

Currently:
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



Regards,
garagoyun
Re: Debian on Freecom Silverstore 2 NAS
September 27, 2018 06:31PM
garagoyun ,

Warning: Bad CRC, using default environment

We don't have the correct ethaddr yet beause it cannot be read yet.

To work around for now to get network going so you can SSH in.

cat /etc/network/interfaces
auto lo eth0
iface lo inet loopback
iface eth0 inet dhcp
	hwaddress ether 00:01:DB:1E:24:C2

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

Your Email:


Subject:


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