Welcome! Log In Create A New Profile

Advanced

Debian on Freecom Silverstore 2 NAS

Posted by garagoyun 
Re: Debian on Freecom Silverstore 2 NAS
October 03, 2018 05:52PM
garagoyun,

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

That's what I expected. But I thought it's worth a conformation.

To set u-boo envs in Debian, we would need solve that CRC checksum error (basically your u-boot envs are not accessible in Linux right now).

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Freecom Silverstore 2 NAS
October 04, 2018 07:33AM
bodhi Wrote:
-------------------------------------------------------

>
> That's what I expected. But I thought it's worth a
> conformation.
>
> To set u-boo envs in Debian, we would need solve
> that CRC checksum error (basically your u-boot
> envs are not accessible in Linux right now).


Let me know if you would need any tests and info provided. It might be a silly question but what would you be trying to achieve?

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


Regards,
garagoyun
Re: Debian on Freecom Silverstore 2 NAS
October 04, 2018 03:07PM
garagoyun,

We still have this issue, so currently you can only list and modify u-boot envs in serial console.

root@debian:~# fw_printenv
Warning: Bad CRC, using default environment

I need to look at the u-boot GPL source to see if there is any peculiar reason. So far I have only needed to look at the kernel pacthes!

That blparam search was just to cover all bases (some really old stock Kirkwood u-boot circa 2009 uses this).

In the mean time, let's double check the mtds in stock and the mtds in the new kernel to see if there is any difference.

I think I have only seen stock dmesg in the linked posts, but not your actual stock dmesg. So if you could still log in stock OS, it would better to see that log.

Please get the output of these in stock and in Debian.
dmesg
cat /proc/mtd
cat /etc/fw_env.config

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Freecom Silverstore 2 NAS
October 04, 2018 05:36PM
bodhi Wrote:
-------------------------------------------------------

> Please get the output of these in stock and in
> Debian.
>
> dmesg
> cat /proc/mtd
> cat /etc/fw_env.config
>

Please see attached.
/etc/fw_env.config are the same as I have amended in debian to match the stock

I also just now run fw_printenv command on the debian and received the following:
root@silverdebian:~# fw_printenv
Environment does not start on (erase) block boundary

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


Regards,
garagoyun
Attachments:
open | download - stock (13.7 KB)
open | download - debian (20.9 KB)
Re: Debian on Freecom Silverstore 2 NAS
October 04, 2018 10:23PM
garagoyun,

Stock

/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"

Debian

root@silverdebian:~# cat /etc/fw_env.config
# MTD device name       Device offset   Env. size       Flash sector size       Number of sectors
/dev/mtd1 0xc0 0x20000 0x20000

root@silverdebian:~# 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"

The fw_env.config is incorrect in Debian. Should be
root@silverdebian:~# cat /etc/fw_env.config
# MTD device name       Device offset   Env. size       Flash sector size       Number of sectors
/dev/mtd1    0x0   0x20000     0x20000

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Freecom Silverstore 2 NAS
October 05, 2018 02:06AM
bodhi,

Thanks! Corrected now.
root@silverdebian:~# cat /etc/fw_env.config 
# MTD device name       Device offset   Env. size       Flash sector size       Number of sectors
/dev/mtd1 0x0 0x20000 0x20000
root@silverdebian:~# 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@silverdebian:~#

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


Regards,
garagoyun
Re: Debian on Freecom Silverstore 2 NAS
October 05, 2018 03:27AM
garagoyun,

That's put us back to where we were with the problem. And this is the last issue, which seems always taking the longest time to solve :))

I'm going to upload another DTB version. In the mean time, you could do a compare between the 2 mtd1s.

In stock and in Debian (x = stock|debian).

nanddump --noecc --omitoob  -f mtd1.silverstore.x /dev/mtd1
ls -l mtd1.silverstore.x

And then do a binary diff
diff mtd1.silverstore.stock mtd1.silverstore.debian
See if they are identical.

If stock does not have nanddump, you can download it here:
https://forum.doozan.com/read.php?3,27280

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



Edited 1 time(s). Last edit at 10/05/2018 03:32AM by bodhi.
Re: Debian on Freecom Silverstore 2 NAS
October 05, 2018 05:20AM
bodhi,

Stock:
~ # nanddump --noecc --omitoob  -f mtd1.silverstore.stock /dev/mtd1
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x00040000...
~ # ls -l mtd1.silverstore.stock
-rw-------    1 root     root        262144 Oct  5 13:06 mtd1.silverstore.stock


Debian:
root@silverdebian:~# nanddump --noecc --omitoob  -f mtd1.silverstore.debian /dev/mtd1
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x00040000...
root@silverdebian:~# ls -l mtd1.silverstore.debian
-rw-r--r-- 1 root root 262144 Oct  5 12:10 mtd1.silverstore.debian


Diff:
root@silverdebian:~# diff mtd1.silverstore.stock mtd1.silverstore.debian
Binary files mtd1.silverstore.stock and mtd1.silverstore.debian differ

So, I used:
diff --text mtd1.silverstore.stock mtd1.silverstore.debian >> output.txt

Output attached, I am not sure if it is useful.

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


Regards,
garagoyun
Attachments:
open | download - output.txt (512.1 KB)
Re: Debian on Freecom Silverstore 2 NAS
October 05, 2018 03:38PM
garagoyun ,

It looks as though the Debian mtd0 partition has nothing on it!

Please do a hex dump/editor on both stock's and Debian's mtd nanddump files to see if that is true, and we can see the envs reside in flash a little bit better.

It might be a bug. But we need to verify one more item with a new DTB.

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



Edited 1 time(s). Last edit at 10/05/2018 05:59PM by bodhi.
Re: Debian on Freecom Silverstore 2 NAS
October 05, 2018 06:03PM
bodhi Wrote:
-------------------------------------------------------
> garagoyun ,
>
> It looks as though the Debian mtd0 partition has
> nothing on it! Please a hex dump/editor on both
> stock's and Debian's mtd nanddump files to see if
> that is true, and we can see the envs reside in
> flash a little bit better.
>
> It might be a bug. But we need to verify one more
> item with a new DTB.


I have attached the hex for each mtd nanddump files and a diff file:
diff -u mtd1.silverstore.stock.txt mtd1.silverstore.debian.txt >> hexdiff-u.txt

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


Regards,
garagoyun
Attachments:
open | download - mtd1.silverstore.stock.txt (11.6 KB)
open | download - mtd1.silverstore.debian.txt (13.1 KB)
open | download - hexdiff-u.txt (8.2 KB)
Re: Debian on Freecom Silverstore 2 NAS
October 05, 2018 08:45PM
garagoyun,

That's a little odd. I'd expected to see something like this using hexedit.

00000000   82 45 2E B3  62 6F 6F 74  61 72 67 73  3D 63 6F 6E  73 6F 6C 65  3D 74 74 79  53 30 2C 31  31 35 32 30  30 20 6D 74  64 70 61 72  74 73 3D 6E  .E..bootargs=console=ttyS0,115200 mtdparts=n
0000002C   61 6E 64 5F  6D 74 64 3A  30 78 31 30  30 30 30 30  28 75 62 6F  6F 74 29 2C  30 78 38 30  30 30 30 28  75 62 6F 6F  74 5F 65 6E  76 29 2C 30  and_mtd:0x100000(uboot),0x80000(uboot_env),0
00000058   78 38 30 30  30 30 28 6B  65 79 5F 73  74 6F 72 65  29 2C 30 78  38 30 30 30  30 28 69 6E  66 6F 29 2C  30 78 41 30  30 30 30 30  28 65 74 63  x80000(key_store),0x80000(info),0xA00000(etc
00000084   29 2C 30 78  41 30 30 30  30 30 28 6B  65 72 6E 65  6C 5F 31 29  2C 30 78 32  46 43 30 30  30 30 28 72  6F 6F 74 66  73 31 29 2C  30 78 41 30  ),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA0
000000B0   30 30 30 30  28 6B 65 72  6E 65 6C 5F  32 29 2C 30  78 32 46 43  30 30 30 30  28 72 6F 6F  74 66 73 32  29 20 72 6F  6F 74 3D 2F  64 65 76 2F  0000(kernel_2),0x2FC0000(rootfs2) root=/dev/
000000DC   6E 66 73 20  72 77 20 69  6E 69 74 3D  2F 69 6E 69  74 00 62 61  75 64 72 61  74 65 3D 31  31 35 32 30  30 00 6C 6F  61 64 73 5F  65 63 68 6F  nfs rw init=/init.baudrate=115200.loads_echo
00000108   3D 30 00 72  6F 6F 74 70  61 74 68 3D  2F 73 72 76  2F 75 62 75  6E 74 75 00  6E 65 74 6D  61 73 6B 3D  32 35 35 2E  32 35 35 2E  32 35 35 2E  =0.rootpath=/srv/ubuntu.netmask=255.255.255.
00000134   30 00 6E 61  6E 64 45 63  63 3D 31 62  69 74 00 4D  4F 44 45 4C  5F 49 44 3D  41 45 30 33  00 50 52 4F  44 55 43 54  5F 4E 41 4D  45 3D 4E 53  0.nandEcc=1bit.MODEL_ID=AE03.PRODUCT_NAME=NS
00000160   41 2D 33 32  35 76 32 00  46 45 41 54  55 52 45 5F  42 49 54 3D  30 30 00 43  4F 4E 54 52  59 5F 54 59  50 45 3D 46  46 00 56 45  4E 44 4F 52  A-325v2.FEATURE_BIT=00.CONTRY_TYPE=FF.VENDOR
0000018C   5F 4E 41 4D  45 3D 4D 69  74 72 61 53  74 61 72 20  54 65 63 68  6E 6F 6C 6F  67 79 20 43  6F 72 70 2E  00 72 75 6E  5F 64 69 61  67 3D 79 65  _NAME=MitraStar Technology Corp..run_diag=ye
000001B8   73 00 65 74  68 61 64 64  72 3D 31 30  3A 37 42 3A  45 46 3A 36  37 3A 33 37  3A 34 32 00  63 6F 6E 73  6F 6C 65 3D  63 6F 6E 73  6F 6C 65 3D  s.ethaddr=10:7B:EF:67:37:42.console=console=
000001E4   74 74 79 53  30 2C 31 31  35 32 30 30  20 6D 74 64  70 61 72 74  73 3D 6E 61  6E 64 5F 6D  74 64 3A 30  78 63 30 30  30 30 40 30  28 75 62 6F  ttyS0,115200 mtdparts=nand_mtd:0xc0000@0(ubo
00000210   6F 74 29 72  6F 2C 30 78  37 66 30 30  30 30 30 40  30 78 31 30  30 30 30 30  28 72 6F 6F  74 29 00 65  74 68 70 72  69 6D 65 3D  65 67 69 67  ot)ro,0x7f00000@0x100000(root).ethprime=egig
0000023C   61 30 00 62  6F 6F 74 61  72 67 73 5F  72 6F 6F 74  3D 72 6F 6F  74 3D 2F 64  65 76 2F 6E  66 73 20 72  77 00 62 6F  6F 74 61 72  67 73 5F 65  a0.bootargs_root=root=/dev/nfs rw.bootargs_e
00000268   6E 64 3D 3A  3A 3A 44 42  38 38 46 58  58 38 31 3A  65 74 68 30  3A 6E 6F 6E  65 00 69 6D  61 67 65 5F  6E 61 6D 65  3D 75 49 6D  61 67 65 00  nd=:::DB88FXX81:eth0:none.image_name=uImage.
00000294   73 74 61 6E  64 61 6C 6F  6E 65 3D 66  73 6C 6F 61  64 20 30 78  32 30 30 30  30 30 30 20  24 28 69 6D  61 67 65 5F  6E 61 6D 65  29 3B 73 65  standalone=fsload 0x2000000 $(image_name);se
000002C0   74 65 6E 76  20 62 6F 6F  74 61 72 67  73 20 24 28  63 6F 6E 73  6F 6C 65 29  20 72 6F 6F  74 3D 2F 64  65 76 2F 6D  74 64 62 6C  6F 63 6B 30  tenv bootargs $(console) root=/dev/mtdblock0

On the right handside, it shows the textual representation of the hex. i.e this NAND area contains u-boot envs, as we can see.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Freecom Silverstore 2 NAS
October 05, 2018 08:52PM
Here is the new DTB. Hope this is the one!


I would like you to do 2 tests.

1. Append this DTB as you did. And boot into Debian and

cat /proc/cmdline
cat /proc/mtd
cat /etc/fw_env.config
fw_printenv

2. If test 1 did not show the u-boot envs , and still show Bad CRC error, then do this test

- reboot
- interrupt serial console and enter the boot envs like you did in test 1 to boot Debian on USB. But this time, clear the mtdparts before boot

setenv mtdparts
boot

And then in Debian,

cat /proc/cmdline
cat /proc/mtd
cat /etc/fw_env.config
fw_printenv


Please post serial console log output of both tests here.

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



Edited 1 time(s). Last edit at 10/05/2018 10:12PM by bodhi.
Attachments:
open | download - kirkwood-silverstore-hncn2.dtb (11.2 KB)
open | download - kirkwood-silverstore-hncn2.dts (3 KB)
Re: Debian on Freecom Silverstore 2 NAS
October 06, 2018 03:43AM
bodhi Wrote:
-------------------------------------------------------
> garagoyun,
>
> That's a little odd. I'd expected to see something
> like this using hexedit.
>
> On the right handside, it shows the textual
> representation of the hex. i.e this NAND area
> contains u-boot envs, as we can see.

Sorry, I used hexdump without ASCII.

I have attached the new output now. Now should be better to read :)

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


Regards,
garagoyun
Attachments:
open | download - mtd1.silverstore.stock-c.txt (19.1 KB)
open | download - mtd1.silverstore.debian-c.txt (21.6 KB)
open | download - diff_output-c.txt (13.2 KB)
Re: Debian on Freecom Silverstore 2 NAS
October 06, 2018 03:30PM
bodhi Wrote:
-------------------------------------------------------
> Here is the new DTB. Hope this is the one!
>
>
> I would like you to do 2 tests.
>
> 1. Append this DTB as you did. And boot into
> Debian and
>
>
> cat /proc/cmdline
> cat /proc/mtd
> cat /etc/fw_env.config
> fw_printenv
>

root@silverdebian:~# cat /proc/cmdline
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
root@silverdebian:~# 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"
root@silverdebian:~# cat /etc/fw_env.config
# MTD device name       Device offset   Env. size       Flash sector size       Number of sectors
/dev/mtd1 0x0 0x20000 0x20000
root@silverdebian:~# 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@silverdebian:~#


> 2. If test 1 did not show the u-boot envs , and
> still show Bad CRC error, then do this test
>
> - reboot
> - interrupt serial console and enter the boot envs
> like you did in test 1 to boot Debian on USB. But
> this time, clear the mtdparts before boot
>
>
> setenv mtdparts
> boot
>
>
> And then in Debian,
>
>
> cat /proc/cmdline
> cat /proc/mtd
> cat /etc/fw_env.config
> fw_printenv
>


         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ 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>> setenv bootcmd 'run bootcmd_exec; nand reset; nand read.e 0x800000 0x00100000 0x00199800; check_crc32 PrEr; nand reset; nand read.e 0x40000 0x00380000 0x0027d400; check_crc32 KrNl; setenv bootargs $(console) $(bootargs_root);  bootm 0x40000'
Marvell>> setenv mtdparts
Marvell>> boot
(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
....
.
......
............
.........................
...................................................
......................................................................................................
.........................................................................................................................................................................

3833021 bytes read
....
.
......
............
.........................
...................................................
......................................................................................................
.................................................................................................................................................................................................................
..................................................................................................................................................................................................................................................................................................................................................

7708860 bytes read
## Booting image at 00800000 ...
   Image Name:   Linux-4.12.1-kirkwood-tld-1
   Created:      2018-10-06  21:09:25 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3832957 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:      2018-10-05  21:11:16 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7708796 Bytes =  7.4 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.12.1-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Sat Jul 15 21:40:50 PDT 2017
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Freecom Silverstore HNCN2
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 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: 108968K/131072K available (8192K kernel code, 716K rwdata, 1972K rodata, 1024K init, 288K bss, 22104K 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.029580] pid_max: default: 32768 minimum: 301
[    0.034470] Security Framework initialized
[    0.038805] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.045482] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.053542] CPU: Testing write buffer coherency: ok
[    0.059544] Setting up static identity map for 0x100000 - 0x100058
[    0.066057] mvebu-soc-id: MVEBU SoC ID=0x6282, Rev=0x1
[    0.074792] devtmpfs: initialized
[    0.082842] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.092801] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.099442] prandom: seed boundary self test passed
[    0.108923] prandom: 100 self tests passed
[    0.113096] pinctrl core: initialized pinctrl subsystem
[    0.119619] NET: Registered protocol family 16
[    0.124574] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.133216] cpuidle: using governor ladder
[    0.137450] cpuidle: using governor menu
[    0.141933] Feroceon L2: Enabling L2
[    0.145619] Feroceon L2: Cache support initialised.
[    0.150991] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.167562] No ATAGs?
[    0.178448] vgaarb: loaded
[    0.183931] SCSI subsystem initialized
[    0.188344] usbcore: registered new interface driver usbfs
[    0.193971] usbcore: registered new interface driver hub
[    0.199484] usbcore: registered new device driver usb
[    0.205858] clocksource: Switched to clocksource orion_clocksource
[    0.317868] VFS: Disk quotas dquot_6.6.0
[    0.321943] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.341416] NET: Registered protocol family 2
[    0.346737] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.353769] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.360234] TCP: Hash tables configured (established 1024 bind 1024)
[    0.366752] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.372665] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.379215] NET: Registered protocol family 1
[    0.384101] RPC: Registered named UNIX socket transport module.
[    0.390166] RPC: Registered udp transport module.
[    0.394937] RPC: Registered tcp transport module.
[    0.399745] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.406529] Unpacking initramfs...
[    1.225039] Freeing initrd memory: 7532K
[    1.229275] NetWinder Floating Point Emulator V0.97 (double precision)
[    1.236986] audit: initializing netlink subsys (disabled)
[    1.242990] Initialise system trusted keyrings
[    1.247566] audit: type=2000 audit(1.226:1): state=initialized audit_enabled=0 res=1
[    1.255413] Key type blacklist registered
[    1.259717] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[    1.266362] zbud: loaded
[    1.270104] NFS: Registering the id_resolver key type
[    1.275244] Key type id_resolver registered
[    1.279579] Key type id_legacy registered
[    1.283670] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    1.290465] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    1.297125] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    1.304442] fuse init (API version 7.26)
[    1.308881] orangefs_debugfs_init: called with debug mask: :none: :0:
[    1.315691] orangefs_init: module version upstream loaded
[    1.321191] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.565866] random: fast init done
[    8.344684] Key type asymmetric registered
[    8.349167] Asymmetric key parser 'x509' registered
[    8.354168] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    8.361786] io scheduler noop registered
[    8.365779] io scheduler deadline registered
[    8.370253] io scheduler cfq registered (default)
[    8.376566] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    8.386142] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[    8.393773] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    8.400138] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    8.407100] pci_bus 0000:00: root bus resource [bus 00-ff]
[    8.413003] PCI: bus0: Fast back to back transfers disabled
[    8.418691] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    8.455941] PCI: bus1: Fast back to back transfers disabled
[    8.461785] pci 0000:00:01.0: BAR 14: assigned [mem 0xe0000000-0xe00fffff]
[    8.468763] pci 0000:01:00.0: BAR 0: assigned [mem 0xe0000000-0xe0001fff 64bit]
[    8.476162] pci 0000:00:01.0: PCI bridge to [bus 01]
[    8.481201] pci 0000:00:01.0:   bridge window [mem 0xe0000000-0xe00fffff]
[    8.488155] pcieport 0000:00:01.0: enabling device (0140 -> 0142)
[    8.494995] mv_xor f1060800.xor: Marvell shared XOR driver
[    8.556761] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    8.564619] mv_xor f1060900.xor: Marvell shared XOR driver
[    8.626758] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    8.634863] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    8.642879] console [ttyS0] disabled
[    8.646666] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    8.655711] console [ttyS0] enabled
[    8.655711] console [ttyS0] enabled
[    8.662862] bootconsole [earlycon0] disabled
[    8.662862] bootconsole [earlycon0] disabled
[    8.681476] loop: module loaded
[    8.685287] sata_mv f1080000.sata: slots 32 ports 2
[    8.693491] scsi host0: sata_mv
[    8.697204] scsi host1: sata_mv
[    8.700645] ata1: SATA max UDMA/133 irq 33
[    8.704766] ata2: SATA max UDMA/133 irq 33
[    8.709788] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    8.716293] nand: Samsung NAND 128MiB 3,3V 8-bit
[    8.720932] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    8.728569] Scanning device for bad blocks
[    8.741842] Bad eraseblock 113 at 0x000000e20000
[    8.771395] Bad eraseblock 422 at 0x0000034c0000
[    8.824540] 7 ofpart partitions found on MTD device orion_nand
[    8.830426] Creating 7 MTD partitions on "orion_nand":
[    8.835602] 0x000000000000-0x0000000a0000 : "U-Boot"
[    8.842113] 0x0000000a0000-0x0000000e0000 : "Param"
[    8.848566] 0x0000000e0000-0x000000360000 : "Preroot"
[    8.855192] 0x000000360000-0x0000006e0000 : "uImage"
[    8.861785] 0x0000006e0000-0x000007dc0000 : "Rootfs"
[    8.869044] 0x000007dc0000-0x000008000000 : "Misc"
[    8.875198] 0x000000000000-0x000008000000 : "Flash"
[    8.883890] libphy: Fixed MDIO Bus: probed
[    8.889031] libphy: orion_mdio_bus: probed
[    8.898862] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    9.007079] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:01:db:1e:24:f2
[    9.016037] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    9.022653] ehci-pci: EHCI PCI platform driver
[    9.027223] ehci-orion: EHCI orion driver
[    9.031515] orion-ehci f1050000.ehci: EHCI Host Controller
[    9.037121] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    9.045093] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    9.075901] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    9.082212] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    9.089073] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.096353] usb usb1: Product: EHCI Host Controller
[    9.101256] usb usb1: Manufacturer: Linux 4.12.1-kirkwood-tld-1 ehci_hcd
[    9.108010] usb usb1: SerialNumber: f1050000.ehci
[    9.113605] hub 1-0:1.0: USB hub found
[    9.117483] hub 1-0:1.0: 1 port detected
[    9.122167] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    9.127521] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 2
[    9.135332] xhci_hcd 0000:01:00.0: hcc params 0x014042cb hci version 0x96 quirks 0x00000004
[    9.144045] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
[    9.150905] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.158186] usb usb2: Product: xHCI Host Controller
[    9.163089] usb usb2: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[    9.169843] usb usb2: SerialNumber: 0000:01:00.0
[    9.175345] hub 2-0:1.0: USB hub found
[    9.179220] hub 2-0:1.0: 2 ports detected
[    9.183889] xhci_hcd 0000:01:00.0: xHCI Host Controller
[    9.189220] xhci_hcd 0000:01:00.0: new USB bus registered, assigned bus number 3
[    9.196812] usb usb3: We don't know the algorithms for LPM for this host, disabling LPM.
[    9.205104] usb usb3: New USB device found, idVendor=1d6b, idProduct=0003
[    9.211962] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    9.219271] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    9.225892] ata1.00: ATA-7: Hitachi HDS721680PLA380, P21OABDA, max UDMA/100
[    9.225901] ata1.00: 156301488 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    9.233484] ata1.00: configured for UDMA/100
[    9.234073] scsi 0:0:0:0: Direct-Access     ATA      Hitachi HDS72168 ABDA PQ: 0 ANSI: 5
[    9.235326] sd 0:0:0:0: [sda] 156301488 512-byte logical blocks: (80.0 GB/74.5 GiB)
[    9.235415] sd 0:0:0:0: [sda] Write Protect is off
[    9.235578] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    9.279584] usb usb3: Product: xHCI Host Controller
[    9.284490] usb usb3: Manufacturer: Linux 4.12.1-kirkwood-tld-1 xhci-hcd
[    9.291448] usb usb3: SerialNumber: 0000:01:00.0
[    9.297426]  sda: sda1 sda2 sda3
[    9.301281] hub 3-0:1.0: USB hub found
[    9.307118] sd 0:0:0:0: [sda] Attached SCSI disk
[    9.311788] hub 3-0:1.0: 2 ports detected
[    9.316795] usbcore: registered new interface driver usb-storage
[    9.323254] mousedev: PS/2 mouse device common for all mice
[    9.329641] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    9.336933] i2c /dev entries driver
[    9.342951] hidraw: raw HID events driver (C) Jiri Kosina
[    9.348865] drop_monitor: Initializing network drop monitor service
[    9.355421] NET: Registered protocol family 17
[    9.360015] Key type dns_resolver registered
[    9.365228] registered taskstats version 1
[    9.369386] Loading compiled-in X.509 certificates
[    9.374255] zswap: loaded using pool lzo/zbud
[    9.389877] Key type big_key registered
[    9.404541] Key type encrypted registered
[    9.410454] rtc-mv f1010300.rtc: setting system clock to 2018-10-06 21:20:44 UTC (1538860844)
[    9.475896] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    9.568922] ata2: SATA link down (SStatus 0 SControl F300)
[    9.588162] Freeing unused kernel memory: 1024K
Loading, please wait...
[    9.666989] usb 1-1: New USB device found, idVendor=0781, idProduct=5530
[    9.673756] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    9.695138] usb 1-1: Product: Cruzer
[    9.703613] usb 1-1: Manufacturer: SanDisk
[    9.715983] usb 1-1: SerialNumber: 431701078BE16843
starting version[    9.726274] usb-storage 1-1:1.0: USB Mass Storage device detected
 232
[    9.755999] scsi host2: usb-storage 1-1:1.0
[    9.781050] usbcore: registered new interface driver uas
[   10.817083] scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer           8.02 PQ: 0 ANSI: 0 CCS
Begin: Loading essential drivers ... done.
[   10.835164] sd 2:0:0:0: [sdb] 31301631 512-byte logical blocks: (16.0 GB/14.9 GiB)
[   10.850919] sd 2:0:0:0: [sdb] Write Protect is off
[   10.862564] sd 2:0:0:0: [sdb] No Caching mode page found
[   10.871854] sd 2:0:0:0: [sdb] Assuming drive cache: write through
[   10.892115]  sdb: sdb1
[   10.901278] 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 ... [   20.921490] PM: Starting manual resume from disk
done.
Begin: Will now check root file system ... fsck from util-linux 2.29.2
[/sbin/fsck.ext3 (1) -- /dev/sdb1] fsck.ext3 -a -C0 /dev/sdb1 
rootfs: clean, 57344/979200 files, 664387/3912192 blocks
done.
[   21.153437] EXT4-fs (sdb1): mounting ext3 file system using the ext4 subsystem
[   21.173768] 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 'silverdebian'...done.
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
. ok 
[ ok ] Synthesizing the initial hotplug events...[   23.592370] input: gpio_keys as /devices/platform/gpio_keys/input/input0
done.
[....] Waiting for /dev to be fully populated...[   23.897761] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[   24.174042] random: crng init done
[   24.181318] marvell-cesa f1030000.crypto: CESA device successfully registered
[   24.202782] adt7475 0-002e: hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[   24.202965] adt7475 0-002e: ADT7473 device, revision 0
[   24.202973] adt7475 0-002e: Optional features: fan4 pwm2
[   24.369073] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   24.399449] orion_wdt: Initial timeout 21 sec
[   24.406847] sd 2:0:0:0: Attached scsi generic sg1 type 0
done.
[....] Activating swap:swapon: /dev/sda2: found[   25.696184] Adding 2097148k swap on /dev/sda2.  Priority:-1 extents:1 across:2097148k FS
 signature [pagesize=4096, signature=swap]
swapon: /dev/sda2: pagesize=4096, swapsize=2147483648, devsize=2147483648
swapon /dev/sda2
. ok 
[   25.889345] EXT4-fs (sdb1): re-mounted. Opts: errors=remount-ro
[....] Will now activate lvm and md swap:swapon: /dev/sda2: already active -- ignored
done.
[info] Will now check all file systems.
fsck from util-linux 2.29.2
Checking all file systems.
LABEL=rootfs is not mounted
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sda1 
e2fsck 1.43.4 (31-Jan-2017)
rootfs: clean, 11/983040 files, 87697/3932160 blocks
UUID=99345340-953b-46ca-a756-de62ef325bda is not mounted
[/sbin/fsck.ext4 (1) -- /DataVolume] fsck.ext4 -y -C0 /dev/sda3 
e2fsck 1.43.4 (31-Jan-2017)
/dev/sda3: clean, 4711/3776512 files, 410525/15080977 blocks
[ 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 .
[   28.277518] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: (null)
[ ok ] Will now mount local filesystems:.
[....] Will now activate swapfile swap:swapon: /dev/sda2: already active -- ignored
done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables...done.
[ ok ] Initializing random number generator...done.
[   31.540458] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:01:db:1e:24:f2
Sending on   LPF/eth0/00:01:db:1e:24:f2
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
[   36.836195] NET: Registered protocol family 10
[   36.844443] Segment Routing with IPv6
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 12
DHCPREQUEST of 192.168.1.181 on eth0 to 255.255.255.255 port 67
DHCPOFFER of 192.168.1.181 from 192.168.1.254
DHCPACK of 192.168.1.181 from 192.168.1.254
bound to 192.168.1.181 -- renewal in 39344 seconds.
done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
[ ok ] Setting sensors limits...done.
[ ok ] Setting up X socket directories... /tmp/.X11-unix /tmp/.ICE-unix.
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1397 (syslogd)
. ok 
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[....] Starting a multimedia keyboard daemon for Linux : esekeydESE Key Deamon 1.2.7 (SVN-r63)
. ok 
[ ok ] Starting cgroup management daemon: cgmanager.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1400 (klogd)
. ok 
[ ok ] Starting fan speed regulator: fancontrol.
[ ok ] Starting cgroup management proxy daemon: cgproxy.
[ ok ] Starting NFS common utilities: statd idmapd.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 9 silverdebian ttyS0

silverdebian login: root
Password: 
Last login: Sat Oct  6 22:14:12 BST 2018 on ttyS0
Linux silverdebian 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.
[  205.711111] systemd-logind[2010]: Watching system buttons on /dev/input/event0 (gpio_keys)
[  205.728949] systemd-logind[2010]: New seat seat0.

root@silverdebian:~# cat /proc/cmdline
console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial
root@silverdebian:~# cat /proc/mtd         
dev:    size   erasesize  name
mtd0: 000a0000 00020000 "U-Boot"
mtd1: 00040000 00020000 "Param"
mtd2: 00280000 00020000 "Preroot"
mtd3: 00380000 00020000 "uImage"
mtd4: 076e0000 00020000 "Rootfs"
mtd5: 00240000 00020000 "Misc"
mtd6: 08000000 00020000 "Flash"
root@silverdebian:~# cat /etc/fw_env.config
# MTD device name       Device offset   Env. size       Flash sector size       Number of sectors
/dev/mtd1 0x0 0x20000 0x20000
root@silverdebian:~# 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@silverdebian:~#


> Please post serial console log output of both
> tests here.

"Warning: Bad CRC, using default environment" is still there.

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


Regards,
garagoyun
Re: Debian on Freecom Silverstore 2 NAS
October 06, 2018 03:58PM
garagoyun,

That's really a strange problem. Everything seems to be OK in the hex listing. The tests with new DTB is to cover the case where it might be a bug in how the DTB were parsed and populated by the kernel.

OK. This DTS is done. So I declare a success :) .... with one caveat that we cannot chang envs in Debian yet. Note that u-boot envs does not affect the box operation after the kernel has booted.

I will need to take a look at the u-boot GPL source to see why. It will be slow coming, perhaps in a few weeks.


1. So for a brand new box, the installation instruction starting point is from stock OS, where we can set u-boot envs to boot with new Debian rootfs.

2. The next thing to do is:

a. Set up envs to boot with HDD rootfs. Let me know when you are ready.

b. Try kwboot this box with serial console. It's an exercise to see if it can be used to rescue the box when u-boot in NAND was all messed up.

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



Edited 1 time(s). Last edit at 10/06/2018 04:01PM by bodhi.
Re: Debian on Freecom Silverstore 2 NAS
October 06, 2018 05:38PM
bodhi Wrote:
-------------------------------------------------------

> 2. The next thing to do is:
>
> a. Set up envs to boot with HDD rootfs. Let me
> know when you are ready.

Yes, anytime. I have managed to kill already 4 USB memory sticks :)

> b. Try kwboot this box with serial console. It's
> an exercise to see if it can be used to rescue the
> box when u-boot in NAND was all messed up.

Would I need to use any particular u-boot image with kwboot?

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


Regards,
garagoyun
Re: Debian on Freecom Silverstore 2 NAS
October 06, 2018 05:54PM
garagoyun,

You can use the nanddump mtd0 to kwboot it. Remember to use -p option on the kwboot command.

nanddump --noecc --omitoob  -f mtd0.silverstore.stock /dev/mtd0

The kwboot command would be:

kwboot  -t -B 115200 /dev/ttyUSB0 -b mtd0.silverstore.stock  -p

Note that is hard to recognize if the u-boot running is the one you loaded through serial, or the one in NAND :) But if you see it is transfered gradually and boot, I would say it's the u-boot image you've loaded. The only way to be 100% certain is to load a recompile stock u-boot, or new u-boot. However, if kwboot is conected and transfers the payload, then it is still a good test.

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



Edited 1 time(s). Last edit at 10/06/2018 05:56PM by bodhi.
Re: Debian on Freecom Silverstore 2 NAS
October 07, 2018 05:10AM
bodhi Wrote:
-------------------------------------------------------
> garagoyun,
>
> You can use the nanddump mtd0 to kwboot it.
> Remember to use -p option on the kwboot command.
>
>
> nanddump --noecc --omitoob  -f
> mtd0.silverstore.stock /dev/mtd0
>
>
> The kwboot command would be:
>
>
> kwboot  -t -B 115200 /dev/ttyUSB0 -b
> mtd0.silverstore.stock  -p
>
>
> Note that is hard to recognize if the u-boot
> running is the one you loaded through serial, or
> the one in NAND :) But if you see it is transfered
> gradually and boot, I would say it's the u-boot
> image you've loaded. The only way to be 100%
> certain is to load a recompile stock u-boot, or
> new u-boot. However, if kwboot is conected and
> transfers the payload, then it is still a good
> test.


bodhi,

Currently, the u-boot is on mtd1 so it should be:
nanddump --noecc --omitoob  -f mtd1.silverstore.stock /dev/mtd1
And not /dev/mtd0 Correct?

Similar, the next command should be mtd1?
kwboot  -t -B 115200 /dev/ttyUSB0 -b > mtd1.silverstore.stock  -p

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


Regards,
garagoyun
Re: Debian on Freecom Silverstore 2 NAS
October 07, 2018 05:53AM
garagoyun,

>
> Currently, the u-boot is on mtd1 so it should be:
>
> nanddump --noecc --omitoob  -f
> mtd1.silverstore.stock /dev/mtd1
>
> And not /dev/mtd0 Correct?
>
> Similar, the next command should be mtd1?
>
> kwboot  -t -B 115200 /dev/ttyUSB0 -b >
> mtd1.silverstore.stock  -p
>

No, u-boot is on mtd0, u-boot envs are on mtd1.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Freecom Silverstore 2 NAS
October 07, 2018 08:36AM
bodhi,

Good thing I have asked. I was a bit confused. I will test that shortly, but first wanted to inform you that I have tried saving the env to boot automatically from USB with saveenv command. Strangely, it would still boot to stock kernel after reboot.

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ 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>> 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
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 0x2100000 /boot/uInitrd
bootcmd_exec=run set_bootargs; run bootcmd_usb; bootm 0x800000 0x2100000
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: 2449/131067 bytes
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>> setenv bootcmd 'run bootcmd_exec; nand reset; nand read.e 0x800000 0x00100000 0x00199800; check_crc32 PrEr; nand reset; nand read.e 0x40000 0x00380000 0x0027d400; check_crc32 KrNl; setenv bootargs $(console) $(bootargs_root);  bootm 0x40000'
Marvell>> saveenv
Saving Environment to NAND...
Erasing redundant Nand... 0x000c0000 0x000c0000
Writing to redundant Nand... Erasing Nand...Writing to Nand... done
Marvell>> printenv
Unknown command 'printenv' - try 'help'
Marvell>> 
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; 
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 0x2100000 /boot/uInitrd
bootcmd_exec=run set_bootargs; run bootcmd_usb; bootm 0x800000 0x2100000
bootcmd=run bootcmd_exec; nand reset; nand read.e 0x800000 0x00100000 0x00199800; check_crc32 PrEr; nand reset; nand read.e 0x40000 0x00380000 0x0027d400; check_crc32 KrNl; setenv bootargs $(console) $(bootargs_root); bootm 0x40000

Environment size: 2464/131067 bytes
Marvell>> boot

..................................

[  111.542768] reboot: Restarting system

And after reboot it is still loading the 2.6 kernel:
         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ 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 

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
scsi 0:0:0:0: Direct-Access     Hitachi  HDS721680PLA380  P21O PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] Sector size 0 reported, assuming 512.
sd 0:0:0:0: [sda] 156301488 512-byte logical blocks: (80.0 GB/74.5 GiB)
sd 0:0:0:0: [sda] 0-byte physical blocks
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] Write Protect is off
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
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.
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"
 sda:
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
 sda1 sda2 sda3
sd 0:0:0:0: [sda] Sector size 0 reported, assuming 512.
sd 0:0:0:0: [sda] 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
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-10-07 12:18:52 UTC (1538914732)
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
1       1049kB  16GB    16GB    ext3                               
2       16GB    18GB    2147MB  linux-swap                         
3       18GB    80GB    62GB    ext3                               
DSK1_RES:0
DSK2_RES:1
DSK3_RES:1
DSK4_RES:1
DSK1_S_RES:1
DSK2_S_RES:0
DSK3_S_RES:0
DSK4_S_RES:0
CHK_RES:1
MD0CHK_RES:1
P1 DEVCNT:1 RES:0
port 1:foreign
init started:  BusyBox v1.1.1 (2008.10.08-08:58+0000) multi-call binary
Starting pid 747, 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: link down
egiga0: started
# scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer           8.02 PQ: 0 ANSI: 0 CCS
sd 2:0:0:0: Attached scsi generic sg1 type 0
sd 2:0:0:0: [sdb] 31301631 512-byte logical blocks: (16.0 GB/14.9 GiB)
sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sd 2:0:0:0: [sdb] Assuming drive cache: write through
 sdb: sdb1
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sd 2:0:0:0: [sdb] Attached SCSI removable disk
egiga0: link up, full duplex, speed 10 Mbps
reboot
Sending SIGKILL to all processes.
Please stand by while rebooting the system.
md: stopping all md devices.
sd 0:0:0:0: [sda] Synchronizing SCSI cache
Restarting system.
Reseting !!

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


Regards,
garagoyun
Re: Debian on Freecom Silverstore 2 NAS
October 07, 2018 09:00AM
bodhi Wrote:
-------------------------------------------------------
> garagoyun,
>
> You can use the nanddump mtd0 to kwboot it.
> Remember to use -p option on the kwboot command.
>
>
> nanddump --noecc --omitoob  -f
> mtd0.silverstore.stock /dev/mtd0
>
>
> The kwboot command would be:
>
>
> kwboot  -t -B 115200 /dev/ttyUSB0 -b
> mtd0.silverstore.stock  -p
>
>
> Note that is hard to recognize if the u-boot
> running is the one you loaded through serial, or
> the one in NAND :) But if you see it is transfered
> gradually and boot, I would say it's the u-boot
> image you've loaded. The only way to be 100%
> certain is to load a recompile stock u-boot, or
> new u-boot. However, if kwboot is conected and
> transfers the payload, then it is still a good
> test.


bodhi,

It looks that the u-boot was transferred to the device via kwboot:

~/kwboot-tool$ ./kwboot  -t -B 115200 /dev/ttyUSB0 -b mtd0.silverstore.stock  -p
Sending boot message. Please reboot the target.../
Sending boot image...
  0 % [......................................................................]
  1 % [......................................................................]
  2 % [......................................................................]
  4 % [......................................................................]
  5 % [......................................................................]
  6 % [......................................................................]
  8 % [......................................................................]
  9 % [......................................................................]
 10 % [......................................................................]
 12 % [......................................................................]
 13 % [......................................................................]
 15 % [......................................................................]
 16 % [......................................................................]
 17 % [......................................................................]
 19 % [......................................................................]
 20 % [......................................................................]
 21 % [......................................................................]
 23 % [......................................................................]
 24 % [......................................................................]
 25 % [......................................................................]
 27 % [......................................................................]
 28 % [......................................................................]
 30 % [......................................................................]
 31 % [......................................................................]
 32 % [......................................................................]
 34 % [......................................................................]
 35 % [......................................................................]
 36 % [......................................................................]
 38 % [......................................................................]
 39 % [......................................................................]
 41 % [......................................................................]
 42 % [......................................................................]
 43 % [......................................................................]
 45 % [......................................................................]
 46 % [......................................................................]
 47 % [......................................................................]
 49 % [......................................................................]
 50 % [......................................................................]
 51 % [......................................................................]
 53 % [......................................................................]
 54 % [......................................................................]
 56 % [......................................................................]
 57 % [......................................................................]
 58 % [......................................................................]
 60 % [......................................................................]
 61 % [......................................................................]
 62 % [......................................................................]
 64 % [......................................................................]
 65 % [......................................................................]
 67 % [......................................................................]
 68 % [......................................................................]
 69 % [......................................................................]
 71 % [......................................................................]
 72 % [......................................................................]
 73 % [......................................................................]
 75 % [......................................................................]
 76 % [......................................................................]
 77 % [......................................................................]
 79 % [......................................................................]
 80 % [......................................................................]
 82 % [......................................................................]
 83 % [......................................................................]
 84 % [......................................................................]
 86 % [......................................................................]
 87 % [......................................................................]
 88 % [......................................................................]
 90 % [......................................................................]
 91 % [......................................................................]
 92 % [......................................................................]
 94 % [......................................................................]
 95 % [......................................................................]
 97 % [......................................................................]
 98 % [......................................................................]
 99 % [..........]
[Type Ctrl-\ + c to quit]

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

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


Regards,
garagoyun
Re: Debian on Freecom Silverstore 2 NAS
October 07, 2018 04:24PM
garagoyun,

1. bootcmd issue: let's see if bootcmd was reset by stock. Sometime they intentionally do that in stock u-boot.
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 0x2100000 /boot/uInitrd
bootcmd_exec=run set_bootargs; run bootcmd_usb; bootm 0x800000 0x2100000
bootcmd=run bootcmd_exec; nand reset; nand read.e 0x800000 0x00100000 0x00199800; check_crc32 PrEr; nand reset; nand read.e 0x40000 0x00380000 0x0027d400; check_crc32 KrNl; setenv bootargs $(console) $(bootargs_root); bootm 0x40000

Environment size: 2464/131067 bytes
Marvell>> boot

..................................

[  111.542768] reboot: Restarting system

And after reboot it is still loading the 2.6 kernel:

Now, if you power up, interrupt serial console and
printenv
Does it show the new env or stock env? please post the listing.


2. kwboot:

Excellent! when it loaded like that, chance is that the running u-boot is the image we've just loaded. But we cannot tell the difference :).

You can try kwboot with uboot.2017.07-tld-1.nsa325.mtd0.kwb from the u-boot realease thread:

https://forum.doozan.com/read.php?3,12381

Since the memory size is different, it will not run too far (we don't want it to anyway). But we might be able to see the u-boot banner. And if we get to the count down, interrupt it, and do reset to get back to restart stock u-boot booting. If it hangs after started, you need to recycle the power.

reset

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Freecom Silverstore 2 NAS
October 07, 2018 04:57PM
bodhi Wrote:
-------------------------------------------------------
> garagoyun,
>
> 1. bootcmd issue: let's see if bootcmd was reset
> by stock. Sometime they intentionally do that in
> stock u-boot.
>
> 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 0x2100000
> /boot/uInitrd
> bootcmd_exec=run set_bootargs; run bootcmd_usb;
> bootm 0x800000 0x2100000
> bootcmd=run bootcmd_exec; nand reset; nand read.e
> 0x800000 0x00100000 0x00199800; check_crc32 PrEr;
> nand reset; nand read.e 0x40000 0x00380000
> 0x0027d400; check_crc32 KrNl; setenv bootargs
> $(console) $(bootargs_root); bootm 0x40000
> 
> Environment size: 2464/131067 bytes
> Marvell>> boot
> 
> ..................................
> 
> [  111.542768] reboot: Restarting system
> 
> And after reboot it is still loading the 2.6
> kernel:
>
>
> Now, if you power up, interrupt serial console
> and
>
> printenv
>
> Does it show the new env or stock env? please post
> the listing.

I had the output in my previous post:

         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ 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>> 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
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 0x2100000 /boot/uInitrd
bootcmd_exec=run set_bootargs; run bootcmd_usb; bootm 0x800000 0x2100000
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: 2449/131067 bytes

It has both the new and stock env. I suspect that could be the reason the stock envs are taking over.

Interestingly, if I interrupt and just type 'run bootcmd_exec' and enter without repeating the other setenvs, the device boots from the USB.

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


Regards,
garagoyun



Edited 2 time(s). Last edit at 10/07/2018 05:36PM by garagoyun.
Re: Debian on Freecom Silverstore 2 NAS
October 07, 2018 05:29PM
bodhi,

I have tried with the mtd0 for NSA325. As you mentioned it did not go too far, however at the end it states some info regarding U-Boot 2017.07-tld-1. I assume it is on its own a success :)
~/kwboot-tool$ ./kwboot  -t -B 115200 /dev/ttyUSB0 -b uboot.2017.07-tld-1.nsa325.mtd0.kwb  -p    
Sending boot message. Please reboot the target...|
Sending boot image...
  0 % [......................................................................]
  1 % [......................................................................]
  3 % [......................................................................]
  5 % [......................................................................]
  6 % [......................................................................]
  8 % [......................................................................]
 10 % [......................................................................]
 11 % [......................................................................]
 13 % [......................................................................]
 15 % [......................................................................]
 17 % [......................................................................]
 18 % [......................................................................]
 20 % [......................................................................]
 22 % [......................................................................]
 23 % [......................................................................]
 25 % [......................................................................]
 27 % [......................................................................]
 29 % [......................................................................]
 30 % [......................................................................]
 32 % [......................................................................]
 34 % [......................................................................]
 35 % [......................................................................]
 37 % [......................................................................]
 39 % [......................................................................]
 41 % [......................................................................]
 42 % [......................................................................]
 44 % [......................................................................]
 46 % [......................................................................]
 47 % [......................................................................]
 49 % [......................................................................]
 51 % [......................................................................]
 53 % [......................................................................]
 54 % [......................................................................]
 56 % [......................................................................]
 58 % [......................................................................]
 59 % [......................................................................]
 61 % [......................................................................]
 63 % [......................................................................]
 64 % [......................................................................]
 66 % [......................................................................]
 68 % [......................................................................]
 70 % [......................................................................]
 71 % [......................................................................]
 73 % [......................................................................]
 75 % [......................................................................]
 76 % [......................................................................]
 78 % [......................................................................]
 80 % [......................................................................]
 82 % [......................................................................]
 83 % [......................................................................]
 85 % [......................................................................]
 87 % [......................................................................]
 88 % [......................................................................]
 90 % [......................................................................]
 92 % [......................................................................]
 94 % [......................................................................]
 95 % [......................................................................]
 97 % [......................................................................]
 99 % [....................................]
[Type Ctrl-\ + c to quit]


U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03 -0700)
ZyXEL NSA325 2-Bay Power Media Server

SoC:   Kirkwood 88F6282_A1
DRAM:  512 MiB

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


Regards,
garagoyun
Re: Debian on Freecom Silverstore 2 NAS
October 07, 2018 05:34PM
garagoyun,

Quote

>
> I have tried with the mtd0 for NSA325. As you
> mentioned it did not go too far, however at the
> end it states some info regarding U-Boot
> 2017.07-tld-1. I assume it is on its own a success
> :)

>
> U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:42:03
> -0700)
> ZyXEL NSA325 2-Bay Power Media Server
>
> SoC: Kirkwood 88F6282_A1
> DRAM: 512 MiB
>
>
> [/code]


Cool :) that means kwboot works. Now we know this rescue mechanism is working.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Freecom Silverstore 2 NAS
October 07, 2018 05:53PM
garagoyun Wrote:


> 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;

> It has both the new and stock env. I suspect that
> could be the reason the stock envs are taking
> over.

> Interestingly, if I interrupt and just type 'run
> bootcmd_exec' and enter without repeating the
> other setenvs, the device boots from the USB.

Yes. saveenv worked in that it saves all new envs to NAND. But when the box starts, bootcmd got restored to stock (only bootcmd). This is quite common with stock u-boot whether it is intenionally or not (I suspect that it was sloppy coding, not intentional).


Until I can find out where that happens in u-boot code, and what to do to negate that problem. We need serial console to boot the new rootfs (We cannot flash new uImage to NAND yet, because of their checksum check).

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on Freecom Silverstore 2 NAS
October 07, 2018 11:54PM
Yes. Just what I'd expect to see. The best I can say about that it is a very sloppy chunk of code :)

....

+       setenv("bootcmd", buff);
+}
+#else

So it got reset to a hardcoded bootcmd at each boot.

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



Edited 1 time(s). Last edit at 10/08/2018 12:27AM by bodhi.
Re: Debian on Freecom Silverstore 2 NAS
October 08, 2018 12:55AM
garagoyun,

Power up, interrupt serial console and

setenv bootargs_root 'root=/dev/ram0 rootfstype=cramfs init=/etc/rc.preroot initrd=0x800000,0x1000000; echo Booting Stock ...; '
boot

See if that Booting Stock... message will appear in the output. It will boot to stock.

If the message does show in the boot log then reboot. Interrupt serial console and

setenv bootargs_root 'root=/dev/ram0 rootfstype=cramfs init=/etc/rc.preroot initrd=0x800000,0x1000000; echo Booting Debian...; if run bootcmd_exec; then; fi; echo Booting Stock ...; '
boot
See if that message Booting Debian... will appear in the bootlog. It will boot to Debian USB.

If it booted into Debian then, reboot, interrupt serial console, then

setenv bootargs_root 'root=/dev/ram0 rootfstype=cramfs init=/etc/rc.preroot initrd=0x800000,0x1000000; echo Booting Debian...  ; if run bootcmd_exec; then; fi; echo Booting Stock ...; '
saveenv
boot

From now on, it will boot into Debian.

If it does, then I've broken this u-boot hardcoded sequence :)


Note: there is a litlle more finetuning to do to boot back to stock after this.

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



Edited 1 time(s). Last edit at 10/08/2018 12:59AM by bodhi.
Re: Debian on Freecom Silverstore 2 NAS
October 08, 2018 05:37AM
bodhi,

Output from the first test as requested:
>
> setenv bootargs_root 'root=/dev/ram0
> rootfstype=cramfs init=/etc/rc.preroot
> initrd=0x800000,0x1000000; echo Booting Stock ...;
> '
> boot
>

        __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ 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 bootargs_root 'root=/dev/ram0 rootfstype=cramfs init=/etc/rc.preroot initrd=0x800000,0x1000000; echo Booting Stock ...; '
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; echo Booting Stock ...;
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  :   868.000 MB/sec
   8regs     :   685.200 MB/sec
   32regs    :   700.000 MB/sec
xor: using function: arm4regs (868.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
scsi 0:0:0:0: Direct-Access     Hitachi  HDS721680PLA380  P21O PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] Sector size 0 reported, assuming 512.
sd 0:0:0:0: [sda] 156301488 512-byte logical blocks: (80.0 GB/74.5 GiB)
sd 0:0:0:0: [sda] 0-byte physical blocks
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] Write Protect is off
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
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.
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"
 sda:
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
 sda1 sda2 sda3
sd 0:0:0:0: [sda] Sector size 0 reported, assuming 512.
sd 0:0:0:0: [sda] 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
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-10-08 11:12:43 UTC (1538997163)
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
1       1049kB  16GB    16GB    ext3                               
2       16GB    18GB    2147MB  linux-swap                         
3       18GB    80GB    62GB    ext3                               
DSK1_RES:0
DSK2_RES:1
DSK3_RES:1
DSK4_RES:1
DSK1_S_RES:1
DSK2_S_RES:0
DSK3_S_RES:0
DSK4_S_RES:0
CHK_RES:1
MD0CHK_RES:1
P1 DEVCNT:1 RES:0
port 1:foreign
init started:  BusyBox v1.1.1 (2008.10.08-08:58+0000) multi-call binary
Starting pid 747, 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: link up, full duplex, speed 100 Mbps
egiga0: started
# scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer           8.02 PQ: 0 ANSI: 0 CCS
sd 2:0:0:0: Attached scsi generic sg1 type 0
sd 2:0:0:0: [sdb] 31301631 512-byte logical blocks: (16.0 GB/14.9 GiB)
sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sd 2:0:0:0: [sdb] Assuming drive cache: write through
 sdb: sdb1
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sd 2:0:0:0: [sdb] Attached SCSI removable disk
egiga0: link down
egiga0: link up, full duplex, speed 100 Mbps
egiga0: link down
egiga0: link up, full duplex, speed 100 Mbps
egiga0: link down
egiga0: link up, full duplex, speed 100 Mbps
egiga0: link down
egiga0: link up, full duplex, speed 100 Mbps
egiga0: link down
egiga0: link up, full duplex, speed 10 Mbps




Output from the second test:
>
> setenv bootargs_root 'root=/dev/ram0
> rootfstype=cramfs init=/etc/rc.preroot
> initrd=0x800000,0x1000000; echo Booting Debian...;
> if run bootcmd_exec; then; fi; echo Booting Stock
> ...; '
> boot
>


         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ 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 bootargs_root 'root=/dev/ram0 rootfstype=cramfs init=/etc/rc.preroot initrd=0x800000,0x1000000; echo Booting Debian...; if run bootcmd_exec; then; fi; echo Booting Stock ...; '
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; echo Booting Debian...; if run bootcmd_exec; then; fi; echo Booting Stock ...;
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  :   868.000 MB/sec
   8regs     :   685.200 MB/sec
   32regs    :   700.000 MB/sec
xor: using function: arm4regs (868.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
scsi 0:0:0:0: Direct-Access     Hitachi  HDS721680PLA380  P21O PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] Sector size 0 reported, assuming 512.
sd 0:0:0:0: [sda] 156301488 512-byte logical blocks: (80.0 GB/74.5 GiB)
sd 0:0:0:0: [sda] 0-byte physical blocks
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 0:0:0:0: [sda] Write Protect is off
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
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.
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"
 sda:
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
 sda1 sda2 sda3
sd 0:0:0:0: [sda] Sector size 0 reported, assuming 512.
sd 0:0:0:0: [sda] 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
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-10-08 11:16:14 UTC (1538997374)
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
1       1049kB  16GB    16GB    ext3                               
2       16GB    18GB    2147MB  linux-swap                         
3       18GB    80GB    62GB    ext3                               
DSK1_RES:0
DSK2_RES:1
DSK3_RES:1
DSK4_RES:1
DSK1_S_RES:1
DSK2_S_RES:0
DSK3_S_RES:0
DSK4_S_RES:0
CHK_RES:1
MD0CHK_RES:1
P1 DEVCNT:1 RES:0
port 1:foreign
init started:  BusyBox v1.1.1 (2008.10.08-08:58+0000) multi-call binary
Starting pid 747, 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: link down
egiga0: started
# scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer           8.02 PQ: 0 ANSI: 0 CCS
sd 2:0:0:0: Attached scsi generic sg1 type 0
sd 2:0:0:0: [sdb] 31301631 512-byte logical blocks: (16.0 GB/14.9 GiB)
sd 2:0:0:0: [sdb] Write Protect is off
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sd 2:0:0:0: [sdb] Assuming drive cache: write through
 sdb: sdb1
sd 2:0:0:0: [sdb] Assuming drive cache: write through
sd 2:0:0:0: [sdb] Attached SCSI removable disk
egiga0: link up, full duplex, speed 100 Mbps
egiga0: link down
egiga0: link up, full duplex, speed 100 Mbps
egiga0: link down
egiga0: link up, full duplex, speed 100 Mbps
egiga0: link down
egiga0: link up, full duplex, speed 100 Mbps
egiga0: link down

It is still booting to stock only. :(
It seems after boot command it is checking to execute first from the NAND. If i execute 'run bootcmd_exec' instead it does boot Debian.


> Note: there is a little more finetuning to do to
> boot back to stock after this.

I do not mind, to be honest. I wouldn't need to boot back to stock. You can find those devices currently as low as £10 (without any hard disk) on the internet. The device is not that powerful and with an old kernel, its usage would be only as a relict on one of my shelves :D Now, however, with Debian installed I have several applications running on it. Still in testing phase, but it is amazing how this 6 years old NAS is coping with so many services running at the same time.

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


Regards,
garagoyun
Re: Debian on Freecom Silverstore 2 NAS
October 08, 2018 05:56AM
Damn! I was so sure that would work:))

Ah... That was the wrong variable. Be back tomorrow!

Yes. It is amazing what these small boxes can do with the right software!

-bodhi
===========================
Forum Wiki
bodhi's corner
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: