Quantcast
Channel: Linux Device Hacking
Viewing all 46949 articles
Browse latest View live

Re: Migrating Debian rootfs from Ext3 to Ext4 file system

$
0
0
JoeyPogoPlugE02 Wrote:
-------------------------------------------------------
> Had another death nearby, torn-up but we all got t
> o go sometime. And someday when my life flashes be
> fore my eyes, I hope to see it migrated LOL So I'l
> l prep this week again and read what you posted ab
> ove. I stopped by to beg time and thanks once agai
> n :-)

Sorry to hear that Joey! Take care.

Re: 2016.05 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310, HP T5325

$
0
0
hi bodhi,

> It is a weird problem
yes, really weird.

> I did not experience this at all. Mine connects to
> an unmanaged 1Gbs switch. What type of switch you
> are connecting to?
i tested with 2 cables and different switch ports.
my switch is an OfficeConnect Managed Gigabit Switch 3CDSG8 (HP 1900 Switch Series)
i use some vlans, but the tested goflex ports are unmanaged.
i think its just a little incompability in the autoneg of the actual kernel nic driver.
doesnt disturb further...

jay

Re: Install Debian on Toshiba Canvio Home NAS

$
0
0
Hi Bodhi,


I made GPIO_ACTIVE_LOW because when initially testing the GPIO pin it was giving 0 in normal state and changed to 1 when pushed. With it set GPIO_ACTIVE_HIGH and the output was reversed with a normal state of 1.

I have done some tests and GPIO_ACTIVE_LOW is correct. With it set at HIGH learnkeys shows a RESTART press without even pushing the button. Then button push is shown as release... and then the release is shown as a push again.

One thing I noticed now though is that without specifying /dev/input/event0 it did show an error 'learnkeys: can`t open /dev/input/event65534'

And on boot with a clean install of 4.4 with only esekeyd installed shows:

root@debian:~# systemctl status esekeyd.service -l
* esekeyd.service - LSB: ESE Key Daemon
   Loaded: loaded (/etc/init.d/esekeyd)
   Active: failed (Result: exit-code) since Wed 2004-07-07 12:45:03 PDT; 13 years 0 months ago
  Process: 378 ExecStart=/etc/init.d/esekeyd start (code=exited, status=1/FAILURE)

Jul 07 12:45:03 debian esekeyd[378]: Starting a multimedia keyboard daemon for Linux : esekeydESE Key Deamon 1.2.7 (SVN-r63)
Jul 07 12:45:03 debian esekeyd[378]: /usr/sbin/esekeyd: can`t open /dev/input/event65534
Jul 07 12:45:03 debian esekeyd[378]: failed!
Jul 07 12:45:03 debian systemd[1]: esekeyd.service: control process exited, code=exited status=1
Jul 07 12:45:03 debian systemd[1]: Failed to start LSB: ESE Key Daemon.
Jul 07 12:45:03 debian systemd[1]: Unit esekeyd.service entered failed state.

/dev/input has:
root@debian:~# ls -al /dev/input
total 0
drwxr-xr-x  3 root root     100 Jul  7  2004 .
drwxr-xr-x 14 root root    2780 Jul  7  2004 ..
drwxr-xr-x  2 root root      60 Jul  7  2004 by-path
crw-rw----  1 root input 13, 64 Jul  7  2004 event0
crw-rw----  1 root input 13, 63 Jul  7  2004 mice

The thing is the button press is working ok, I currently have it flashing the red LED a few times before it goes and does a reboot as expected. But I just don't know why esekeyd needed event0 specified. Only made a note of it because it took a while to get it going and it may help others?

I think it is more to do with esekeyd, but if you have any other ideas I am happy to test.


Robert

Re: 2016.05 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310, HP T5325

$
0
0
Hi jay,

> i think its just a little incompability in the aut
> oneg of the actual kernel nic driver.

It could be. Although I found unmanaged switches handle the changes in speed better (I think because they dont do anything sophisticate). I recalled when I tested the HP Thin Client T5325 I kept switching the same port for 1Gbs and 100Mbs NICs back and forth but did not see this negotiation confusion,

Re: Install Debian on Toshiba Canvio Home NAS

$
0
0
Robert,

What about your /etc/esekeyd.conf? does it have any content, such as

POWER:some_script
RESTART:some_script

Re: Install Debian on Toshiba Canvio Home NAS

$
0
0
currently just has
RESTART(press):echo timer > /sys/class/leds/canvio\:red\:05/trigger
RESTART(release):sleep 8 && /sbin/shutdown -r now
and runs ok at button press.

Re: Lenovo iomega EZ support

$
0
0
bodhi,

Reporting success.

I was able to boot the newest kernel (4.11.3-kirkwood-tld-2) at Lenovo Iomega EZ Media & Backup Center with GPT partition scheme.

One thing I'm trying to understand. Can somebody please explain why this:

ide reset; ide read 0x800000 0x5000 0x2000; ide read 0xd00000 0xA000 0x4000; bootm 0x800000 0xd00000
Fails to load initrd with message:
[    0.000000] INITRD: 0x00d00000+0x0066b000 overlaps in-use memory region - disabling initrd
this hangs @ starting kernel
ide read 0x40000 0x5000 0x2000; ide read 0x1100000 0xA000 0x4000; bootm 0x40000 0x1100000
but this works:
ide read 0x40000 0x5000 0x2000; ide read 0x6400000 0xA000 0x4000; bootm 0x40000 0x6400000 
ide read 0x40000 0x5000 0x2000; ide read 0x2100000 0xA000 0x4000; bootm 0x40000 0x2100000
Sizes:
IDE read: device 0 block # 20480, count 8192 ... 8192 blocks read: OK

IDE read: device 0 block # 40960, count 16384 ... 16384 blocks read: OK
## Booting image at 00040000 ...
   Image Name:   Linux-4.11.3-kirkwood-tld-2
   Created:      2017-07-10  12:52:04 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3914659 Bytes =  3.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK
## Loading Ramdisk Image at 02100000 ...
   Image Name:   initrd.img-4.11.3-kirkwood-tld-2
   Created:      2017-07-10  12:52:02 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6727690 Bytes =  6.4 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0

I don't understand where shall I load the kernel and initrd to not screw something up.

Re: Install Debian on Toshiba Canvio Home NAS

$
0
0
Hi Robert,

I see. So it means you need to specify RESTART(press): and RESTART(release):

but RESTART: will not work?

Re: Lenovo iomega EZ support

$
0
0
eine,

ide reset; ide read 0x800000 0x5000 0x2000; ide read 0xd00000 0xA000 0x4000; bootm 0x800000 0xd00000
ide read 0x40000 0x5000 0x2000; ide read 0x1100000 0xA000 0x4000; bootm 0x40000 0x1100000

The above might be too close to each other for stock u-boot.

ide read 0x40000 0x5000 0x2000; ide read 0x6400000 0xA000 0x4000; bootm 0x40000 0x6400000 
ide read 0x40000 0x5000 0x2000; ide read 0x2100000 0xA000 0x4000; bootm 0x40000 0x2100000

The above are far enought.

You are running with stock u-boot. Unlike modern u-boot, which reallocates the images to regions where they are lined up nicely, old u-boot does not do this well (if at all). So the addresses must be in source code or stock u-boot envs. Usually we need to play around with the locations until it works (starting point is the stock envs).

To ensure that it loads OK. Look in dmesg for messages like this:

[    0.197479] Unpacking initramfs...
[    0.670819] Freeing initrd memory: 6812K

If the kernel continues booting past these messages then it was OK. Otherwise, you will see messages about a corrupted initramfs.

And thanks for reporting success! Please post which DTS/DTB you are using.

Re: My Cloud Mirror Gen2

$
0
0
mint@mint ~/kwboot $ sudo ./kwboot -f -t -B 115200 /dev/ttyUSB0 -b u-boot-a38x-GrandTeton_2014T3_PQ-nand-uart.bin -s 0 -q 1
Sending boot message. Please reboot the target...|
Sending boot image...
  0 % [+.....................................................................]
  0 % [......................................................................]
  1 % [......................................................................]
  2 % [......................................................................]
  3 % [......................................................................]
  4 % [......................................................................]
  5 % [......................................................................]
  6 % [......................................................................]
  7 % [......................................................................]
  8 % [......................................................................]
  9 % [......................................................................]
 10 % [......................................................................]
 11 % [......................................................................]
 12 % [......................................................................]
 13 % [......................................................................]
 14 % [......................................................................]
 15 % [......................................................................]
 15 % [......................................................................]
 16 % [......................................................................]
 17 % [......................................................................]
 18 % [......................................................................]
 19 % [......................................................................]
 20 % [......................................................................]
 21 % [......................................................................]
 22 % [......................................................................]
 23 % [......................................................................]
 24 % [......................................................................]
 25 % [......................................................................]
 26 % [......................................................................]
 27 % [......................................................................]
 28 % [......................................................................]
 29 % [......................................................................]
 30 % [......................................................................]
 30 % [......................................................................]
 31 % [......................................................................]
 32 % [......................................................................]
 33 % [......................................................................]
 34 % [......................................................................]
 35 % [......................................................................]
 36 % [......................................................................]
 37 % [......................................................................]
 38 % [......................................................................]
 39 % [......................................................................]
 40 % [......................................................................]
 41 % [......................................................................]
 42 % [......................................................................]
 43 % [......................................................................]
 44 % [......................................................................]
 45 % [......................................................................]
 45 % [......................................................................]
 46 % [......................................................................]
 47 % [......................................................................]
 48 % [......................................................................]
 49 % [......................................................................]
 50 % [......................................................................]
 51 % [......................................................................]
 52 % [......................................................................]
 53 % [......................................................................]
 54 % [......................................................................]
 55 % [......................................................................]
 56 % [......................................................................]
 57 % [......................................................................]
 58 % [......................................................................]
 59 % [......................................................................]
 60 % [......................................................................]
 60 % [......................................................................]
 61 % [......................................................................]
 62 % [......................................................................]
 63 % [......................................................................]
 64 % [......................................................................]
 65 % [......................................................................]
 66 % [......................................................................]
 67 % [......................................................................]
 68 % [......................................................................]
 69 % [......................................................................]
 70 % [......................................................................]
 71 % [......................................................................]
 72 % [......................................................................]
 73 % [......................................................................]
 74 % [......................................................................]
 75 % [......................................................................]
 76 % [......................................................................]
 76 % [......................................................................]
 77 % [......................................................................]
 78 % [......................................................................]
 79 % [......................................................................]
 80 % [......................................................................]
 81 % [......................................................................]
 82 % [......................................................................]
 83 % [......................................................................]
 84 % [......................................................................]
 85 % [......................................................................]
 86 % [......................................................................]
 87 % [......................................................................]
 88 % [......................................................................]
 89 % [......................................................................]
 90 % [......................................................................]
 91 % [......................................................................]
 91 % [......................................................................]
 92 % [......................................................................]
 93 % [......................................................................]
 94 % [......................................................................]
 95 % [......................................................................]
 96 % [......................................................................]
 97 % [......................................................................]
 98 % [......................................................................]
 99 % [.........................................]
[Type Ctrl-\ + c to quit]
?
 __   __                      _ _
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ V /  __/ | |
|_|  |_|\__,_|_|    \_/ \___|_|_|
         _   _     ____              _
        | | | |   | __ )  ___   ___ | |_ 
        | | | |___|  _ \ / _ \ / _ \| __| 
        | |_| |___| |_) | (_) | (_) | |_ 
         \___/    |____/ \___/ \___/ \__| 
 ** LOADER **


U-Boot 2013.01_v1.04 (Jul 05 2017 - 16:59:05) Marvell version: 2014_T3.0p6

mvBoardIdIndexGet(boardId) = 1
Board: GrandTeton DB6820
SoC:   MV88F6820 Rev A0
       running 2 CPUs
CPU:   ARM Cortex A9 MPCore (Rev 1) LE
       CPU 0
       CPU    @ 1332 [MHz]
       L2     @ 666 [MHz]
       TClock @ 200 [MHz]
       DDR    @ 666 [MHz]
       DDR 32 Bit Width, FastPath Memory Access, DLB Enabled, ECC Disabled
DRAM:  1 GiB

Map:   Code:			0x3fece000:0x3ff95f50
       BSS:			0x3ffef254
       Stack:			0x3f9cdf20
       Heap:			0x3f9ce000:0x3fece000
raise: Signal # 8 caught
raise: Signal # 8 caught
       U-Boot Environment:	0x00000000:0x00080000 (NAND)

NAND:  ID: daad ,256 MiB
MMC:   mv_sdh: 0
PCI-e 0: Detected No Link.
USB2.0 0: Host Mode
USB3.0 0: Host Mode
USB3.0 1: Host Mode
Board configuration detected:
Creating 1 MTD partitions on "nand0":
0x00000f500000-0x00000ff00000 : "mtd=7"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    126976 bytes
UBI: smallest flash I/O unit:    2048
UBI: VID header offset:          2048 (aligned 2048)
UBI: data offset:                4096
UBI: attached mtd1 to ubi0
UBI: MTD device name:            "mtd=7"
UBI: MTD device size:            10 MiB
UBI: number of good PEBs:        80
UBI: number of bad PEBs:         0
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: available PEBs:             32
UBI: total number of reserved PEBs: 48
UBI: number of PEBs reserved for bad PEB handling: 2
UBI: max/mean erase counter: 3/0
UBIFS: mounted UBI device 0, volume 0, name "reserve2"
UBIFS: mounted read-only
UBIFS: file system size:   4063232 bytes (3968 KiB, 3 MiB, 32 LEBs)
UBIFS: journal size:       1015809 bytes (992 KiB, 0 MiB, 6 LEBs)
UBIFS: media format:       w4/r0 (latest is w4/r0)
UBIFS: default compressor: LZO
UBIFS: reserved for root:  200807 bytes (196 KiB)
Loading file '/mac_addr' to addr 0x02000000 with size 18 (0x00000012)...
Done
Set lan 2 WakeOnLan ok
Enable HD1
Enable HD2
Net:   
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   RGMII   |   In-Band    |
| egiga1 |   RGMII   |   In-Band    |
| egiga2 |   SGMII   |     0x00     |
egiga0, egiga1, egiga2 [PRIME]
Hit any key to stop autoboot:  0 
Marvell>> setenv bootdev 'usb' 
Marvell>> setenv device '0:1' 
Marvell>> setenv load_image_addr '0x02000000' 
Marvell>> setenv load_initrd_addr '0x2900000' 
Marvell>> setenv load_image 'echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/uImage' 
Marvell>> setenv load_initrd 'echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd' 
Marvell>> setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5m@0(u-boot),5m@5m(kernel),5m@10m(uRamdisk),185m@15m(image.cfs),15m@200m(rescue_fw),20m@215m(config),10m@235m(reserve1),10m@245m(reserve2)'
Marvell>> setenv bootcmd_usb 'echo Booting from USB ...; usb start; setenv fdt_skip_update yes; usb start; run usb_set_bootargs; if run load_image; then if run load_initrd; then bootm $load_image_addr $load_initrd_addr; else bootm $load_image_addr; fi; fi' 
Marvell>> run bootcmd_usb
Booting from USB ...
(Re)start USB...
USB0:   Port (usbActive) : 0	Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
(Re)start USB...
USB0:   Port (usbActive) : 0	Interface (usbType = 3) : USB XHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
       scanning usb for ethernet devices... 0 Ethernet Device(s) found
loading Image ...
3920526 bytes read in 421 ms (8.9 MiB/s)
loading uInitrd ...
6210503 bytes read in 491 ms (12.1 MiB/s)
## Booting image at 02000000 ...
## Booting kernel from Legacy Image at 02000000 ...
   Image Name:   Linux-4.9.0-mvebu-tld-12
   Created:      2017-07-09   9:45:53 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3920462 Bytes = 3.7 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 02900000 ...
   Image Name:   initramfs-4.9.0-mvebu-tld-12
   Created:      2017-02-03  23:57:32 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6210439 Bytes = 5.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.0-mvebu-tld-12 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #2 SMP PREEMPT Wed Feb 1 02:31:29 PST 2017
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt:Machine model: Western Digital MyCloud EX2 Ultra
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] ------------[ cut here ]------------
[    0.000000] WARNING: CPU: 0 PID: 0 at kernel/printk/printk.c:2612 register_console+0x3c/0x398
[    0.000000] console 'earlycon0' already registered
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 4.9.0-mvebu-tld-12 #2
[    0.000000] Hardware name: Marvell Armada 380/385 (Device Tree)
[    0.000000] [<c01160bc>] (unwind_backtrace) from [<c0110bb4>] (show_stack+0x10/0x14)
[    0.000000] [<c0110bb4>] (show_stack) from [<c04ba5a4>] (dump_stack+0x70/0x8c)
[    0.000000] [<c04ba5a4>] (dump_stack) from [<c0123ce0>] (__warn+0xc8/0xfc)
[    0.000000] [<c0123ce0>] (__warn) from [<c0123d48>] (warn_slowpath_fmt+0x34/0x44)
[    0.000000] [<c0123d48>] (warn_slowpath_fmt) from [<c0171b1c>] (register_console+0x3c/0x398)
[    0.000000] [<c0171b1c>] (register_console) from [<c0c04dc0>] (setup_early_printk+0x14/0x24)
[    0.000000] [<c0c04dc0>] (setup_early_printk) from [<c0c00478>] (do_early_param+0x6c/0xbc)
[    0.000000] [<c0c00478>] (do_early_param) from [<c013f774>] (parse_args+0x2dc/0x40c)
[    0.000000] [<c013f774>] (parse_args) from [<c0c0088c>] (parse_early_options+0x2c/0x3c)
[    0.000000] [<c0c0088c>] (parse_early_options) from [<c0c008c8>] (parse_early_param+0x2c/0x44)
[    0.000000] [<c0c008c8>] (parse_early_param) from [<c0c03350>] (setup_arch+0x4fc/0xa24)
[    0.000000] [<c0c03350>] (setup_arch) from [<c0c00934>] (start_kernel+0x50/0x390)
[    0.000000] [<c0c00934>] (start_kernel) from [<0000807c>] (0x807c)
[    0.000000] ---[ end trace 0000000000000000 ]---
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] percpu: Embedded 15 pages/cpu @ef7cc000 s30796 r8192 d22452 u61440
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: console=ttyS0,115200 libata.force=3.0G root=LABEL=rootfs earlyprintk console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5m@0(u-boot),5m@5m(kernel),5m@10m(uRamdisk),185m@15m(image.cfs),15m@200m(rescue_fw),20m@215m(config),10m@235m(reserve1),10m@245m(reserve2)
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 1019928K/1048576K available (8192K kernel code, 690K rwdata, 2052K rodata, 1024K init, 386K bss, 28648K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0daca28   ( 691 kB)
[    0.000000]        .bss : 0xc0daca28 - 0xc0e0d4f8   ( 387 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	Build-time adjustment of leaf fanout to 32.
[    0.000000] 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] mvebu_mbus: [Firmware Warn]: deprecated mbus-mvebu Device Tree, suspend/resume will not work
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000000] Switching to timer-based delay loop, resolution 40ns
[    0.000003] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.007883] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.019111] Console: colour dummy device 80x30
[    0.023627] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.034035] pid_max: default: 32768 minimum: 301
[    0.038803] Security Framework initialized
[    0.043005] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049680] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.057256] CPU: Testing write buffer coherency: ok
[    0.062347] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.068090] Setting up static identity map for 0x100000 - 0x100058
[    0.074523] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.079807] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283603] Booting CPU 1
[    0.286473] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.286531] Brought up 2 CPUs
[    0.295292] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.301613] CPU: All CPU(s) started in SVC mode.
[    0.306881] devtmpfs: initialized
[    0.312816] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320803] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330743] prandom: seed boundary self test passed
[    0.337706] prandom: 100 self tests passed
[    0.341867] pinctrl core: initialized pinctrl subsystem
[    0.347905] NET: Registered protocol family 16
[    0.353099] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.383453] cpuidle: using governor ladder
[    0.413420] cpuidle: using governor menu
[    0.417551] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.425625] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.483820] vgaarb: loaded
[    0.486857] SCSI subsystem initialized
[    0.491161] usbcore: registered new interface driver usbfs
[    0.496817] usbcore: registered new interface driver hub
[    0.502252] usbcore: registered new device driver usb
[    0.507604] media: Linux media interface: v0.10
[    0.512249] Linux video capture interface: v2.00
[    0.517943] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.554266] VFS: Disk quotas dquot_6.6.0
[    0.558339] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.573639] NET: Registered protocol family 2
[    0.578510] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.585650] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.592229] TCP: Hash tables configured (established 8192 bind 8192)
[    0.598688] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.604684] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.611223] NET: Registered protocol family 1
[    0.615914] RPC: Registered named UNIX socket transport module.
[    0.621908] RPC: Registered udp transport module.
[    0.626673] RPC: Registered tcp transport module.
[    0.631448] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.638079] Unpacking initramfs...
[    0.885875] Freeing initrd memory: 6068K (c2900000 - c2eed000)
[    0.891954] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.898715] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.908044] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.914258] audit: initializing netlink subsys (disabled)
[    0.919757] audit: type=2000 audit(0.910:1): initialized
[    0.925589] Initialise system trusted keyrings
[    0.930266] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.936835] zbud: loaded
[    0.940016] NFS: Registering the id_resolver key type
[    0.945137] Key type id_resolver registered
[    0.949402] Key type id_legacy registered
[    0.953483] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.960251] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.966817] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.974265] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.980901] orangefs_init: module version upstream loaded
[    0.988527] Key type asymmetric registered
[    0.992691] Asymmetric key parser 'x509' registered
[    0.997659] bounce: pool size: 64 pages
[    1.001659] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    1.009117] io scheduler noop registered
[    1.013106] io scheduler deadline registered
[    1.017454] io scheduler cfq registered (default)
[    1.023155] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.031841] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    1.038789] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.045113] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.052052] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.058069] PCI: bus0: Fast back to back transfers disabled
[    1.063707] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.071778] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.079959] PCI: bus1: Fast back to back transfers enabled
[    1.085636] PCI: bus2: Fast back to back transfers enabled
[    1.091240] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.096270] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.101799] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.168425] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.176045] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.238420] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.297152] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.305032] console [ttyS0] disabled
[    1.328791] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 23, base_baud = 12500000) is a 16550A
[    1.337817] console [ttyS0] enabled
[    1.337817] console [ttyS0] enabled
[    1.344930] bootconsole [earlycon0] disabled
[    1.344930] bootconsole [earlycon0] disabled
[    1.374322] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 24, base_baud = 12500000) is a 16550A
[    1.384349] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.393458] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    1.403170] scsi host0: ahci-mvebu
[    1.406906] scsi host1: ahci-mvebu
[    1.410568] ata1: FORCE: PHY spd limit set to 3.0Gbps
[    1.415636] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.423601] ata2: FORCE: PHY spd limit set to 3.0Gbps
[    1.428683] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.437170] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.445085] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xda
[    1.451481] nand: Hynix H27U2G8F2CTR-BC
[    1.455335] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.462950] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.470157] Bad block table found at page 131008, version 0x01
[    1.476358] Bad block table found at page 130944, version 0x01
[    1.482466] 8 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.488597] Creating 8 MTD partitions on "pxa3xx_nand-0":
[    1.494025] 0x000000000000-0x000000500000 : "U-Boot"
[    1.509859] 0x000000500000-0x000000a00000 : "uImage"
[    1.515595] 0x000000a00000-0x000000f00000 : "uRamdisk"
[    1.531482] 0x000000f00000-0x00000c800000 : "image.cfs"
[    1.548240] 0x00000c800000-0x00000d700000 : "rescue fw"
[    1.564239] 0x00000d700000-0x00000eb00000 : "config"
[    1.580031] 0x00000eb00000-0x00000f500000 : "reserve1"
[    1.595965] 0x00000f500000-0x00000ff00000 : "reserve2"
[    1.612510] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.619326] libphy: Fixed MDIO Bus: probed
[    1.623753] libphy: mdio_driver_register: mv88e6085
[    1.628911] libphy: orion_mdio_bus: probed
[    1.638209] mvneta f1034000.ethernet eth0: Using random mac address ea:17:7e:7f:cb:8e
[    1.646263] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.652849] ehci-pci: EHCI PCI platform driver
[    1.657355] ehci-orion: EHCI orion driver
[    1.661707] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.667056] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 1
[    1.674671] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.683284] xhci-hcd f10f0000.usb3: irq 45, io mem 0xf10f0000
[    1.689180] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.695999] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.703263] usb usb1: Product: xHCI Host Controller
[    1.708171] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.714639] usb usb1: SerialNumber: f10f0000.usb3
[    1.719760] hub 1-0:1.0: USB hub found
[    1.723547] hub 1-0:1.0: 1 port detected
[    1.727678] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.733037] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.740621] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.748825] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[    1.755643] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.759235] ata1: SATA link down (SStatus 0 SControl 320)
[    1.768355] usb usb2: Product: xHCI Host Controller
[    1.769186] ata2: SATA link down (SStatus 0 SControl 320)
[    1.778679] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.785147] usb usb2: SerialNumber: f10f0000.usb3
[    1.790234] hub 2-0:1.0: USB hub found
[    1.794020] hub 2-0:1.0: 1 port detected
[    1.798246] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.803594] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 3
[    1.811193] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.819806] xhci-hcd f10f8000.usb3: irq 46, io mem 0xf10f8000
[    1.825667] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
[    1.832542] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.839806] usb usb3: Product: xHCI Host Controller
[    1.844705] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.851183] usb usb3: SerialNumber: f10f8000.usb3
[    1.856244] hub 3-0:1.0: USB hub found
[    1.860043] hub 3-0:1.0: 1 port detected
[    1.864177] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.869531] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.877095] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.885295] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003
[    1.892128] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.899390] usb usb4: Product: xHCI Host Controller
[    1.904288] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.910836] usb usb4: SerialNumber: f10f8000.usb3
[    1.915904] hub 4-0:1.0: USB hub found
[    1.919700] hub 4-0:1.0: 1 port detected
[    1.923932] usbcore: registered new interface driver usblp
[    1.929532] usbcore: registered new interface driver usb-storage
[    1.935757] mousedev: PS/2 mouse device common for all mice
[    1.941966] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.949791] i2c /dev entries driver
[    1.965278] orion_wdt: Initial timeout 171 sec
[    1.971737] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.979116] hidraw: raw HID events driver (C) Jiri Kosina
[    1.984870] usbcore: registered new interface driver usbhid
[    1.990481] usbhid: USB HID core driver
[    1.994493] drop_monitor: Initializing network drop monitor service
[    2.000840] Netfilter messages via NETLINK v0.30.
[    2.005579] ip_set: protocol 6
[    2.008910] NET: Registered protocol family 10
[    2.013952] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.020933] NET: Registered protocol family 17
[    2.025562] 8021q: 802.1Q VLAN Support v1.8
[    2.029895] Key type dns_resolver registered
[    2.034331] ThumbEE CPU extension supported.
[    2.038638] Registering SWP/SWPB emulation handler
[    2.043980] registered taskstats version 1
[    2.048113] Loading compiled-in X.509 certificates
[    2.052961] zswap: loaded using pool lzo/zbud
[    2.102331] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[    2.113080] Key type big_key registered
[    2.120918] Key type encrypted registered
[    2.126040] armada38x-rtc f10a3800.rtc: setting system clock to 2017-07-11 03:33:35 UTC (1499744015)
[    2.136393] Freeing unused kernel memory: 1024K (c0c00000 - c0d00000)
Loading, please wait...
[    2.182348] systemd-udevd[1315]: starting version 215
[    2.188558] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.280327] usb 1-1: New USB device found, idVendor=090c, idProduct=1000
[    2.287077] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.295395] usb 1-1: Product: POLLEX 8G
[    2.299281] usb 1-1: Manufacturer: SRT
[    2.303049] usb 1-1: SerialNumber: 033113111111135234000373
[    2.309177] usb-storage 1-1:1.0: USB Mass Storage device detected
[    2.328167] scsi host2: usb-storage 1-1:1.0
[    2.487566] usbcore: registered new interface driver uas
[    3.368691] scsi 2:0:0:0: Direct-Access     SRT      POLLEX 8G        1100 PQ: 0 ANSI: 4
[    3.379215] sd 2:0:0:0: Attached scsi generic sg0 type 0
[    3.385852] sd 2:0:0:0: [sda] 15728640 512-byte logical blocks: (8.05 GB/7.50 GiB)
[    3.394147] sd 2:0:0:0: [sda] Write Protect is off
[    3.399660] sd 2:0:0:0: [sda] No Caching mode page found
[    3.404996] sd 2:0:0:0: [sda] Assuming drive cache: write through
[    3.414217]  sda: sda1
[    3.422943] sd 2:0:0:0: [sda] Attached SCSI removable disk
[    3.464013] random: fast init done
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
modprobe: module ext3 not found in modules.dep
Begin: Will now check root file system ... fsck from util-linux 2.25.2
fsck: error 2 (No such file or directory) while executing fsck.ext3 for /dev/sda1
fsck exited with status code 8
done.
Warning: File system check failed but did not detect errors
[   17.613681] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   17.622335] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
[   17.629257] EXT4-fs (sda1): write access will be enabled during recovery
[   22.755202] EXT4-fs (sda1): recovery complete
[   22.767994] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[   23.671649] systemd-udevd[1520]: starting version 215
. ok 
[ ok ] Synthesizing the initial hotplug events...done.
[ ok ] Waiting for /dev to be fully populated...done.
[ ok ] Activating swap...done.
[   24.473901] EXT4-fs (sda1): re-mounted. Opts: (null)
[ ok ] Activating lvm and md swap...done.
[....] Checking file systems...fsck from util-linux 2.25.2
done.
[ ok ] Cleaning up temporary files... /tmp.
[ ok ] Mounting local filesystems...done.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables ...done.
[   25.728704] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.1
Copyright 2004-2014 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/ea:17:7e:7f:cb:8e
Sending on   LPF/eth0/ea:17:7e:7f:cb:8e
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
[   29.928416] mvneta f1034000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   29.936301] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   34.955009] random: crng init done
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 14
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPOFFER from 192.168.2.1
DHCPACK from 192.168.2.1
bound to 192.168.2.109 -- renewal in 32458 seconds.
done.
[ ok ] Starting rpcbind daemon....
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
2462 (syslogd)
. ok 
[ ok ] Starting periodic command scheduler: cron.
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2461 (klogd)
. ok 

Debian GNU/Linux 8 debian ttyS0

debian login: root
Password: 
Last login: Sun Jul  9 17:52:15 PDT 2017 on ttyS0
Linux debian 4.9.0-mvebu-tld-12 #2 SMP PREEMPT Wed Feb 1 02:31:29 PST 2017 armv7l

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.
debian
192.168.2.109
Western Digital MyCloud EX2 Ultra
Linux version 4.9.0-mvebu-tld-12 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #2 SMP PREEMPT Wed Feb 1 02:31:29 PST 2017
 20:34:24 up 0 min,  1 user,  load average: 0.58, 0.16, 0.05
root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00500000 00020000 "U-Boot"
mtd1: 00500000 00020000 "uImage"
mtd2: 00500000 00020000 "uRamdisk"
mtd3: 0b900000 00020000 "image.cfs"
mtd4: 00f00000 00020000 "rescue fw"
mtd5: 01400000 00020000 "config"
mtd6: 00a00000 00020000 "reserve1"
mtd7: 00a00000 00020000 "reserve2"
root@debian:~# fw_printenv
Warning: Bad CRC, using default environment
bootargs=
bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm
bootdelay=3
baudrate=115200
stdin=serial,cros-ec-keyb
stdout=serial,lcd
stderr=serial,lcd
root@debian:~# dmseg
-bash: dmseg: command not found
root@debian:~# dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.0-mvebu-tld-12 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #2 SMP PREEMPT Wed Feb 1 02:31:29 PST 2017
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt:Machine model: Western Digital MyCloud EX2 Ultra
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] ------------[ cut here ]------------
[    0.000000] WARNING: CPU: 0 PID: 0 at kernel/printk/printk.c:2612 register_console+0x3c/0x398
[    0.000000] console 'earlycon0' already registered
[    0.000000] Modules linked in:
[    0.000000] CPU: 0 PID: 0 Comm: swapper Not tainted 4.9.0-mvebu-tld-12 #2
[    0.000000] Hardware name: Marvell Armada 380/385 (Device Tree)
[    0.000000] [<c01160bc>] (unwind_backtrace) from [<c0110bb4>] (show_stack+0x10/0x14)
[    0.000000] [<c0110bb4>] (show_stack) from [<c04ba5a4>] (dump_stack+0x70/0x8c)
[    0.000000] [<c04ba5a4>] (dump_stack) from [<c0123ce0>] (__warn+0xc8/0xfc)
[    0.000000] [<c0123ce0>] (__warn) from [<c0123d48>] (warn_slowpath_fmt+0x34/0x44)
[    0.000000] [<c0123d48>] (warn_slowpath_fmt) from [<c0171b1c>] (register_console+0x3c/0x398)
[    0.000000] [<c0171b1c>] (register_console) from [<c0c04dc0>] (setup_early_printk+0x14/0x24)
[    0.000000] [<c0c04dc0>] (setup_early_printk) from [<c0c00478>] (do_early_param+0x6c/0xbc)
[    0.000000] [<c0c00478>] (do_early_param) from [<c013f774>] (parse_args+0x2dc/0x40c)
[    0.000000] [<c013f774>] (parse_args) from [<c0c0088c>] (parse_early_options+0x2c/0x3c)
[    0.000000] [<c0c0088c>] (parse_early_options) from [<c0c008c8>] (parse_early_param+0x2c/0x44)
[    0.000000] [<c0c008c8>] (parse_early_param) from [<c0c03350>] (setup_arch+0x4fc/0xa24)
[    0.000000] [<c0c03350>] (setup_arch) from [<c0c00934>] (start_kernel+0x50/0x390)
[    0.000000] [<c0c00934>] (start_kernel) from [<0000807c>] (0x807c)
[    0.000000] ---[ end trace 0000000000000000 ]---
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 262144
[    0.000000] free_area_init_node: node 0, pgdat c0d97f80, node_mem_map ef7f8000
[    0.000000]   Normal zone: 1536 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 196608 pages, LIFO batch:31
[    0.000000]   HighMem zone: 65536 pages, LIFO batch:15
[    0.000000] percpu: Embedded 15 pages/cpu @ef7cc000 s30796 r8192 d22452 u61440
[    0.000000] pcpu-alloc: s30796 r8192 d22452 u61440 alloc=15*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: console=ttyS0,115200 libata.force=3.0G root=LABEL=rootfs earlyprintk console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5m@0(u-boot),5m@5m(kernel),5m@10m(uRamdisk),185m@15m(image.cfs),15m@200m(rescue_fw),20m@215m(config),10m@235m(reserve1),10m@245m(reserve2)
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 1019928K/1048576K available (8192K kernel code, 690K rwdata, 2052K rodata, 1024K init, 386K bss, 28648K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
    lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
    pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
    modules : 0xbf000000 - 0xbfe00000   (  14 MB)
      .text : 0xc0008000 - 0xc0900000   (9184 kB)
      .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
      .data : 0xc0d00000 - 0xc0daca28   ( 691 kB)
       .bss : 0xc0daca28 - 0xc0e0d4f8   ( 387 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	Build-time adjustment of leaf fanout to 32.
[    0.000000] 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] mvebu_mbus: [Firmware Warn]: deprecated mbus-mvebu Device Tree, suspend/resume will not work
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000000] Switching to timer-based delay loop, resolution 40ns
[    0.000003] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.007883] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.019111] Console: colour dummy device 80x30
[    0.023627] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.034035] pid_max: default: 32768 minimum: 301
[    0.038803] Security Framework initialized
[    0.043005] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049680] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.057256] CPU: Testing write buffer coherency: ok
[    0.062347] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.068090] Setting up static identity map for 0x100000 - 0x100058
[    0.074523] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.079807] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283603] Booting CPU 1
[    0.286473] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.286531] Brought up 2 CPUs
[    0.295292] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.301613] CPU: All CPU(s) started in SVC mode.
[    0.306881] devtmpfs: initialized
[    0.312816] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320803] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330743] prandom: seed boundary self test passed
[    0.337706] prandom: 100 self tests passed
[    0.341867] pinctrl core: initialized pinctrl subsystem
[    0.347905] NET: Registered protocol family 16
[    0.353099] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.383453] cpuidle: using governor ladder
[    0.413420] cpuidle: using governor menu
[    0.417551] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.425625] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.483820] vgaarb: loaded
[    0.486857] SCSI subsystem initialized
[    0.490843] libata version 3.00 loaded.
[    0.491161] usbcore: registered new interface driver usbfs
[    0.496817] usbcore: registered new interface driver hub
[    0.502252] usbcore: registered new device driver usb
[    0.507604] media: Linux media interface: v0.10
[    0.512249] Linux video capture interface: v2.00
[    0.517943] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.554266] VFS: Disk quotas dquot_6.6.0
[    0.558339] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.573639] NET: Registered protocol family 2
[    0.578510] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.585650] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.592229] TCP: Hash tables configured (established 8192 bind 8192)
[    0.598688] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.604684] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.611223] NET: Registered protocol family 1
[    0.615914] RPC: Registered named UNIX socket transport module.
[    0.621908] RPC: Registered udp transport module.
[    0.626673] RPC: Registered tcp transport module.
[    0.631448] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.637952] PCI: CLS 0 bytes, default 64
[    0.638079] Unpacking initramfs...
[    0.885875] Freeing initrd memory: 6068K (c2900000 - c2eed000)
[    0.891954] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.898715] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.908044] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.914258] audit: initializing netlink subsys (disabled)
[    0.919757] audit: type=2000 audit(0.910:1): initialized
[    0.925589] Initialise system trusted keyrings
[    0.930266] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.936835] zbud: loaded
[    0.940016] NFS: Registering the id_resolver key type
[    0.945137] Key type id_resolver registered
[    0.949402] Key type id_legacy registered
[    0.953483] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.960251] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.966817] jffs2: version 2.2. (NAND) (SUMMARY)  \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.
[    0.974265] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.980901] orangefs_init: module version upstream loaded
[    0.988527] Key type asymmetric registered
[    0.992691] Asymmetric key parser 'x509' registered
[    0.997659] bounce: pool size: 64 pages
[    1.001659] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    1.009117] io scheduler noop registered
[    1.013106] io scheduler deadline registered
[    1.017454] io scheduler cfq registered (default)
[    1.023155] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.031841] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    1.038789] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.045113] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.052052] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.057597] pci_bus 0000:00: scanning bus
[    1.057622] pci 0000:00:01.0: [11ab:6820] type 01 class 0x060400
[    1.057654] pci 0000:00:01.0: calling pci_fixup_ide_bases+0x0/0x3c
[    1.057845] pci 0000:00:02.0: [11ab:6820] type 01 class 0x060400
[    1.057869] pci 0000:00:02.0: calling pci_fixup_ide_bases+0x0/0x3c
[    1.058060] pci_bus 0000:00: fixups for bus
[    1.058069] PCI: bus0: Fast back to back transfers disabled
[    1.063702] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 0
[    1.063707] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.071774] pci 0000:00:02.0: scanning [bus 00-00] behind bridge, pass 0
[    1.071778] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.079840] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 1
[    1.079949] pci_bus 0000:01: scanning bus
[    1.079956] pci_bus 0000:01: fixups for bus
[    1.079959] PCI: bus1: Fast back to back transfers enabled
[    1.085504] pci_bus 0000:01: bus scan returning with max=01
[    1.085510] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.085518] pci 0000:00:02.0: scanning [bus 00-00] behind bridge, pass 1
[    1.085626] pci_bus 0000:02: scanning bus
[    1.085633] pci_bus 0000:02: fixups for bus
[    1.085636] PCI: bus2: Fast back to back transfers enabled
[    1.091194] pci_bus 0000:02: bus scan returning with max=02
[    1.091199] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    1.091205] pci_bus 0000:00: bus scan returning with max=02
[    1.091212] pci 0000:00:01.0: fixup irq: got 0
[    1.091216] pci 0000:00:01.0: assigning IRQ 00
[    1.091222] pci 0000:00:02.0: fixup irq: got 0
[    1.091226] pci 0000:00:02.0: assigning IRQ 00
[    1.091240] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.096270] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.101347] pcieport 0000:00:01.0: enabling bus mastering
[    1.101386] pcieport 0000:00:02.0: enabling bus mastering
[    1.101799] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.168425] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.176045] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.238420] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.297152] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.305032] console [ttyS0] disabled
[    1.328791] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 23, base_baud = 12500000) is a 16550A
[    1.337817] console [ttyS0] enabled
[    1.344930] bootconsole [earlycon0] disabled
[    1.374322] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 24, base_baud = 12500000) is a 16550A
[    1.384349] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.393458] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    1.403170] scsi host0: ahci-mvebu
[    1.406906] scsi host1: ahci-mvebu
[    1.410568] ata1: FORCE: PHY spd limit set to 3.0Gbps
[    1.415636] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.423601] ata2: FORCE: PHY spd limit set to 3.0Gbps
[    1.428683] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.437170] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.445085] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xda
[    1.451481] nand: Hynix H27U2G8F2CTR-BC
[    1.455335] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.462950] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.470157] Bad block table found at page 131008, version 0x01
[    1.476358] Bad block table found at page 130944, version 0x01
[    1.482466] 8 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.488597] Creating 8 MTD partitions on "pxa3xx_nand-0":
[    1.494025] 0x000000000000-0x000000500000 : "U-Boot"
[    1.509859] 0x000000500000-0x000000a00000 : "uImage"
[    1.515595] 0x000000a00000-0x000000f00000 : "uRamdisk"
[    1.531482] 0x000000f00000-0x00000c800000 : "image.cfs"
[    1.548240] 0x00000c800000-0x00000d700000 : "rescue fw"
[    1.564239] 0x00000d700000-0x00000eb00000 : "config"
[    1.580031] 0x00000eb00000-0x00000f500000 : "reserve1"
[    1.595965] 0x00000f500000-0x00000ff00000 : "reserve2"
[    1.612510] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.619326] libphy: Fixed MDIO Bus: probed
[    1.623753] libphy: mdio_driver_register: mv88e6085
[    1.628911] libphy: orion_mdio_bus: probed
[    1.638209] mvneta f1034000.ethernet eth0: Using random mac address ea:17:7e:7f:cb:8e
[    1.646263] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.652849] ehci-pci: EHCI PCI platform driver
[    1.657355] ehci-orion: EHCI orion driver
[    1.661707] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.667056] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 1
[    1.674671] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.683284] xhci-hcd f10f0000.usb3: irq 45, io mem 0xf10f0000
[    1.689180] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.695999] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.703263] usb usb1: Product: xHCI Host Controller
[    1.708171] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.714639] usb usb1: SerialNumber: f10f0000.usb3
[    1.719760] hub 1-0:1.0: USB hub found
[    1.723547] hub 1-0:1.0: 1 port detected
[    1.727678] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.733037] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.740621] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.748825] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[    1.755643] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.759235] ata1: SATA link down (SStatus 0 SControl 320)
[    1.768355] usb usb2: Product: xHCI Host Controller
[    1.769186] ata2: SATA link down (SStatus 0 SControl 320)
[    1.778679] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.785147] usb usb2: SerialNumber: f10f0000.usb3
[    1.790234] hub 2-0:1.0: USB hub found
[    1.794020] hub 2-0:1.0: 1 port detected
[    1.798246] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.803594] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 3
[    1.811193] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.819806] xhci-hcd f10f8000.usb3: irq 46, io mem 0xf10f8000
[    1.825667] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
[    1.832542] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.839806] usb usb3: Product: xHCI Host Controller
[    1.844705] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.851183] usb usb3: SerialNumber: f10f8000.usb3
[    1.856244] hub 3-0:1.0: USB hub found
[    1.860043] hub 3-0:1.0: 1 port detected
[    1.864177] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.869531] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.877095] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.885295] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003
[    1.892128] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.899390] usb usb4: Product: xHCI Host Controller
[    1.904288] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.910836] usb usb4: SerialNumber: f10f8000.usb3
[    1.915904] hub 4-0:1.0: USB hub found
[    1.919700] hub 4-0:1.0: 1 port detected
[    1.923932] usbcore: registered new interface driver usblp
[    1.929532] usbcore: registered new interface driver usb-storage
[    1.935757] mousedev: PS/2 mouse device common for all mice
[    1.941966] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.949791] i2c /dev entries driver
[    1.965278] orion_wdt: Initial timeout 171 sec
[    1.971737] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.979116] hidraw: raw HID events driver (C) Jiri Kosina
[    1.984870] usbcore: registered new interface driver usbhid
[    1.990481] usbhid: USB HID core driver
[    1.994493] drop_monitor: Initializing network drop monitor service
[    2.000840] Netfilter messages via NETLINK v0.30.
[    2.005579] ip_set: protocol 6
[    2.008910] NET: Registered protocol family 10
[    2.013952] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.020933] NET: Registered protocol family 17
[    2.025562] 8021q: 802.1Q VLAN Support v1.8
[    2.029895] Key type dns_resolver registered
[    2.034331] ThumbEE CPU extension supported.
[    2.038638] Registering SWP/SWPB emulation handler
[    2.043980] registered taskstats version 1
[    2.048113] Loading compiled-in X.509 certificates
[    2.052961] zswap: loaded using pool lzo/zbud
[    2.102331] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[    2.113080] Key type big_key registered
[    2.120918] Key type encrypted registered
[    2.126040] armada38x-rtc f10a3800.rtc: setting system clock to 2017-07-11 03:33:35 UTC (1499744015)
[    2.135322] PM: Hibernation image not present or could not be loaded.
[    2.136393] Freeing unused kernel memory: 1024K (c0c00000 - c0d00000)
[    2.182348] systemd-udevd[1315]: starting version 215
[    2.188558] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.280327] usb 1-1: New USB device found, idVendor=090c, idProduct=1000
[    2.287077] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.295395] usb 1-1: Product: POLLEX 8G
[    2.299281] usb 1-1: Manufacturer: SRT
[    2.303049] usb 1-1: SerialNumber: 033113111111135234000373
[    2.309177] usb-storage 1-1:1.0: USB Mass Storage device detected
[    2.328167] scsi host2: usb-storage 1-1:1.0
[    2.487566] usbcore: registered new interface driver uas
[    3.368691] scsi 2:0:0:0: Direct-Access     SRT      POLLEX 8G        1100 PQ: 0 ANSI: 4
[    3.379215] sd 2:0:0:0: Attached scsi generic sg0 type 0
[    3.385852] sd 2:0:0:0: [sda] 15728640 512-byte logical blocks: (8.05 GB/7.50 GiB)
[    3.394147] sd 2:0:0:0: [sda] Write Protect is off
[    3.398996] sd 2:0:0:0: [sda] Mode Sense: 43 00 00 00
[    3.399660] sd 2:0:0:0: [sda] No Caching mode page found
[    3.404996] sd 2:0:0:0: [sda] Assuming drive cache: write through
[    3.414217]  sda: sda1
[    3.422943] sd 2:0:0:0: [sda] Attached SCSI removable disk
[    3.464013] random: fast init done
[   17.613681] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   17.622335] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
[   17.629257] EXT4-fs (sda1): write access will be enabled during recovery
[   22.755202] EXT4-fs (sda1): recovery complete
[   22.767994] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   23.671649] systemd-udevd[1520]: starting version 215
[   24.473901] EXT4-fs (sda1): re-mounted. Opts: (null)
[   25.728704] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   29.928416] mvneta f1034000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   29.936301] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   34.955009] random: crng init done
root@debian:~#

I changed uboot env as below but still bad crc error.
setenv bootdev 'usb'

setenv device '0:1'

setenv load_image_addr '0x02000000'

setenv load_initrd_addr '0x2900000'

setenv load_image 'echo loading Image ...; ext2load $bootdev $device $load_image_addr /boot/uImage'

setenv load_initrd 'echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd'

setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial mtdparts=armada-nand:5m@0(u-boot),5m@5m(kernel),5m@10m(uRamdisk),185m@15m(image.cfs),15m@200m(rescue_fw),20m@215m(config),10m@235m(reserve1),10m@245m(reserve2)'

setenv bootcmd_usb 'echo Booting from USB ...; usb start; setenv fdt_skip_update yes; usb start; run usb_set_bootargs; if run load_image; then if run load_initrd; then bootm $load_image_addr $load_initrd_addr; else bootm $load_image_addr; fi; fi'

run bootcmd_usb

Re: My Cloud Mirror Gen2

$
0
0
mcmg2,

Your bootlog looks really good.

You can safely ignore this error about printk for now.

[    0.000000] WARNING: CPU: 0 PID: 0 at kernel/printk/printk.c:2612 register_console+0x3c/0x398

I like this particular part about the mtd partitions. Those have been allocated successful, similar to the NAS326:

[    1.437170] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.445085] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xda
[    1.451481] nand: Hynix H27U2G8F2CTR-BC
[    1.455335] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.462950] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.470157] Bad block table found at page 131008, version 0x01
[    1.476358] Bad block table found at page 130944, version 0x01
[    1.482466] 8 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.488597] Creating 8 MTD partitions on "pxa3xx_nand-0":
[    1.494025] 0x000000000000-0x000000500000 : "U-Boot"
[    1.509859] 0x000000500000-0x000000a00000 : "uImage"
[    1.515595] 0x000000a00000-0x000000f00000 : "uRamdisk"
[    1.531482] 0x000000f00000-0x00000c800000 : "image.cfs"
[    1.548240] 0x00000c800000-0x00000d700000 : "rescue fw"
[    1.564239] 0x00000d700000-0x00000eb00000 : "config"
[    1.580031] 0x00000eb00000-0x00000f500000 : "reserve1"
[    1.595965] 0x00000f500000-0x00000ff00000 : "reserve2"

Linux version 4.9.0-mvebu-tld-12 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #2 SMP PREEMPT Wed Feb 1 02:31:29 PST 2017
 20:34:24 up 0 min,  1 user,  load average: 0.58, 0.16, 0.05
root@debian:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00500000 00020000 "U-Boot"
mtd1: 00500000 00020000 "uImage"
mtd2: 00500000 00020000 "uRamdisk"
mtd3: 0b900000 00020000 "image.cfs"
mtd4: 00f00000 00020000 "rescue fw"
mtd5: 01400000 00020000 "config"
mtd6: 00a00000 00020000 "reserve1"
mtd7: 00a00000 00020000 "reserve2"

This CRC error is expected. You are booting with hmartin's u-boot build. And you have not set the envs permanently. So it will always give you the CRC error.

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

To save the envs (therefore get rid of the CRC error), and to make it boot automatically to the new Debian rootfs on USB, you will need to follow hmartin's instruction (not my instruction in the WD My Cloud EX4100 thread). I cannot advice you how to do that, because I have not looked at how hmartin built this patched u-boot, and where is the envs located at.

For now, kwboot and set the envs temporarily, is what you have do to boot into Debian. It's done. Run it this way and do whatever you want, install new packages,... And we'll see if hmartin will get back to this thread in a couple weeks.

Re: Install Debian on Toshiba Canvio Home NAS

$
0
0
hi Bodhi,

It will restart just fine fine with RESTART:/sbin/shutdown -r now.
The RESTART(press): and RESTART(release): were how the config was described when running 'learnkeys /etc/esekeyd.conf /dev/input/event0'.
root@debian:~# learnkeys /etc/esekeyd.conf /dev/input/event0
learnkeys (ESE Key Deamon 1.2.7, SVN-r63)

Pres ANY (fun)key... or Ctrl-C to exit...

key RESTART stored in config file
key RESTART stored in config file
^C
Caught signal 2, writing config file and exiting...
root@debian:~#
I have been over the DTS again and made some subtle changes but it still has the esekeyd can`t open /dev/input/event65534 if /dev/input/event0 is not included. I was hopeful by adding #include <dt-bindings/input/input.h> but alas no difference. The slightly changed file is attached anyhow.

I don't know the relevance of event65534. I am beginning to wonder if it is related to the 'kirkwood-pinctrl f1010000.pin-controller: unknown pinctrl group' error these kirkwood-6192 have. I had a look online for the pogoplug v4 with esekeyd and the one I found actually had set the event0 added too in the config ! link.

Do you know of any kirkwood-88f6702/6192 that are running esekeyd?


Robert

Re: Install Debian on Toshiba Canvio Home NAS

$
0
0
Robert,

> I don't know the relevance of event65534. I am beg
> inning to wonder if it is related to the 'kirkwood
> -pinctrl f1010000.pin-controller: unknown pinctrl
> group' error these kirkwood-6192 has

Now it might be a clue there. My Pogo V4 does not have these errors anymore.

>
> Do you know of any kirkwood-88f6702/6192 that are
> running esekeyd?

I do! I have 3 Pogo V4 (6192) running 24/7 with esekeyd working (same version that you have). And one NSA310S (6702) running esekeyd. That's why I thought something is not righ. The Pogo V4 has one button: EJECT. The NSA310S has 3 buttons (Power, Restart, Copy), all working with esekeyd.

Let me get the data points and post here.

Re: Install Debian on Toshiba Canvio Home NAS

$
0
0
Pogo V4:

cat /etc/esekeyd.conf
# Pogo V4 keys
#
EJECTCD:/usr/bin/logger -s -i "EJECT button pushed"

Jul  9 18:29:08 pogov4p user.notice logger[2528]: EJECT button pushed

cat /etc/default/esekeyd
# Defaults for esekeyd initscript

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

# Daemon options, at last config location must be present
DAEMON_OPTS=/etc/esekeyd.conf

Re: Install Debian on Toshiba Canvio Home NAS

$
0
0
Pogo V4 DTS

cat /usr/src/linux-4.11.3-tld/arch/arm/boot/dts/kirkwood-pogoplug_v4.dts
/* 
 * Device tree file for the Pogoplug V4/Mobile
 *
 * Copyright (c) 2016, bodhi <mibodhi@gmail.com>
 *
 */

/dts-v1/;

#include "kirkwood.dtsi"
#include "kirkwood-6192.dtsi"

/ {
	model = "Pogoplug v4";
	compatible = "cloudengines,pogoplug-v4", "cloudengines,pogoplug-mobile", "marvell,kirkwood-88f6192", "marvell,kirkwood";

	memory {
		device_type = "memory";
		reg = <0x00000000 0x8000000>;
	};

	chosen {
		bootargs = "console=ttyS0,115200";
		stdout-path = &uart0;
	};

	ocp@f1000000 {
		pinctrl: pin-controller@10000 {
			pmx_led_green: pmx-led-green {
				marvell,pins = "mpp22";
				marvell,function = "gpio";
			};
			pmx_led_red: pmx-led-red {
				marvell,pins = "mpp24";
				marvell,function = "gpio";
			};
			pmx_button_eject: pmx-button-eject {
				marvell,pins = "mpp29";
				marvell,function = "gpio";
			};
			/*pmx_usb_power_enable: pmx-usb-power-enable {
				marvell,pins = "mpp29";
				marvell,function = "gpio";
			};*/
		};

		serial@12000 {
			status = "ok";
		};

		sata@80000 {
			status = "okay";
			nr-ports = <2>;
		};

		mvsdio@90000 {
			pinctrl-0 = <&pmx_sdio>;
			pinctrl-names = "default";
			status = "okay";
			cd-gpios = <&gpio0 27 GPIO_ACTIVE_HIGH>;
			/* No WP GPIO */
		};
	};

	gpio-leds {
		compatible = "gpio-leds";
		pinctrl-0 = <&pmx_led_red &pmx_led_green>;
		pinctrl-names = "default";

		health {
			label = "status:green:health";
			gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
			default-state = "keep";
		};
		fault {
			label = "status:red:fault";
			gpios = <&gpio0 24 GPIO_ACTIVE_LOW>;
		};
	};

	gpio_keys {
		compatible = "gpio-keys";
		#address-cells = <1>;
		#size-cells = <0>;
		pinctrl-0 = <&pmx_button_eject>;
		pinctrl-names = "default";

		button@1 {
			label = "Eject Button";
			linux,code = <KEY_EJECTCD>;
			gpios = <&gpio0 29 GPIO_ACTIVE_LOW>;
		};
	};

	/*regulators {
		compatible = "simple-bus";
		#address-cells = <1>;
		#size-cells = <0>;
		pinctrl-0 = <&pmx_usb_power_enable>;
		pinctrl-names = "default";

		usb_power: regulator@1 {
			compatible = "regulator-fixed";
			reg = <1>;
			regulator-name = "USB Power";
			regulator-min-microvolt = <5000000>;
			regulator-max-microvolt = <5000000>;
			enable-active-high;
			regulator-always-on;
			regulator-boot-on;
			gpio = <&gpio0 29 GPIO_ACTIVE_HIGH>;
		};
	};*/
};

&nand {
	status = "okay";

	partition@0 {
		label = "u-boot";
		reg = <0x0000000 0x200000>;
	};

	partition@200000 {
		label = "uImage";
		reg = <0x200000 0x300000>;
	};

	partition@500000 {
		label = "uImage2";
		reg = <0x500000 0x300000>;
	};

	partition@800000 {
		label = "failsafe";
		reg = <0x800000 0x800000>;
	};

	partition@1000000 {
		label = "root";
		reg = <0x1000000 0x7000000>;
	};
};

&mdio {
	status = "okay";

	ethphy0: ethernet-phy@0 {
		reg = <0>;
	};
};

&eth0 {
	status = "okay";
	ethernet0-port@0 {
		phy-handle = <&ethphy0>;
	};
};

&pciec {
	status = "okay";
};

&pcie0 {
	status = "okay";
};

Re: WD MyCloud Mirror Gen2 (BWVZ, GrandTeton)

$
0
0
root@debian:~/mcm-daemon# make
cc -c -o mcm-daemon.o mcm-daemon.c -Wall -I. -Iiniparser/src -I/usr/include
mcm-daemon.c:34:19: fatal error: errno.h: No such file or directory
 #include <errno.h>
                   ^
compilation terminated.
Makefile:24: recipe for target 'mcm-daemon.o' failed
make: *** [mcm-daemon.o] Error 1

I am trying to compile mcm-daemon from nas but compilation terminated.

there is errno.h available /usr/include/asm/errno.h

root@debian:~/mcm-daemon# cat /usr/include/asm/errno.h
#ifndef _ASM_GENERIC_ERRNO_H
#define _ASM_GENERIC_ERRNO_H

#include <asm-generic/errno-base.h>

#define	EDEADLK		35	/* Resource deadlock would occur */
#define	ENAMETOOLONG	36	/* File name too long */
#define	ENOLCK		37	/* No record locks available */
#define	ENOSYS		38	/* Function not implemented */
#define	ENOTEMPTY	39	/* Directory not empty */
#define	ELOOP		40	/* Too many symbolic links encountered */
#define	EWOULDBLOCK	EAGAIN	/* Operation would block */
#define	ENOMSG		42	/* No message of desired type */
#define	EIDRM		43	/* Identifier removed */
#define	ECHRNG		44	/* Channel number out of range */
#define	EL2NSYNC	45	/* Level 2 not synchronized */
#define	EL3HLT		46	/* Level 3 halted */
#define	EL3RST		47	/* Level 3 reset */
#define	ELNRNG		48	/* Link number out of range */
#define	EUNATCH		49	/* Protocol driver not attached */
#define	ENOCSI		50	/* No CSI structure available */
#define	EL2HLT		51	/* Level 2 halted */
#define	EBADE		52	/* Invalid exchange */
#define	EBADR		53	/* Invalid request descriptor */
#define	EXFULL		54	/* Exchange full */
#define	ENOANO		55	/* No anode */
#define	EBADRQC		56	/* Invalid request code */
#define	EBADSLT		57	/* Invalid slot */

#define	EDEADLOCK	EDEADLK

#define	EBFONT		59	/* Bad font file format */
#define	ENOSTR		60	/* Device not a stream */
#define	ENODATA		61	/* No data available */
#define	ETIME		62	/* Timer expired */
#define	ENOSR		63	/* Out of streams resources */
#define	ENONET		64	/* Machine is not on the network */
#define	ENOPKG		65	/* Package not installed */
#define	EREMOTE		66	/* Object is remote */
#define	ENOLINK		67	/* Link has been severed */
#define	EADV		68	/* Advertise error */
#define	ESRMNT		69	/* Srmount error */
#define	ECOMM		70	/* Communication error on send */
#define	EPROTO		71	/* Protocol error */
#define	EMULTIHOP	72	/* Multihop attempted */
#define	EDOTDOT		73	/* RFS specific error */
#define	EBADMSG		74	/* Not a data message */
#define	EOVERFLOW	75	/* Value too large for defined data type */
#define	ENOTUNIQ	76	/* Name not unique on network */
#define	EBADFD		77	/* File descriptor in bad state */
#define	EREMCHG		78	/* Remote address changed */
#define	ELIBACC		79	/* Can not access a needed shared library */
#define	ELIBBAD		80	/* Accessing a corrupted shared library */
#define	ELIBSCN		81	/* .lib section in a.out corrupted */
#define	ELIBMAX		82	/* Attempting to link in too many shared libraries */
#define	ELIBEXEC	83	/* Cannot exec a shared library directly */
#define	EILSEQ		84	/* Illegal byte sequence */
#define	ERESTART	85	/* Interrupted system call should be restarted */
#define	ESTRPIPE	86	/* Streams pipe error */
#define	EUSERS		87	/* Too many users */
#define	ENOTSOCK	88	/* Socket operation on non-socket */
#define	EDESTADDRREQ	89	/* Destination address required */
#define	EMSGSIZE	90	/* Message too long */
#define	EPROTOTYPE	91	/* Protocol wrong type for socket */
#define	ENOPROTOOPT	92	/* Protocol not available */
#define	EPROTONOSUPPORT	93	/* Protocol not supported */
#define	ESOCKTNOSUPPORT	94	/* Socket type not supported */
#define	EOPNOTSUPP	95	/* Operation not supported on transport endpoint */
#define	EPFNOSUPPORT	96	/* Protocol family not supported */
#define	EAFNOSUPPORT	97	/* Address family not supported by protocol */
#define	EADDRINUSE	98	/* Address already in use */
#define	EADDRNOTAVAIL	99	/* Cannot assign requested address */
#define	ENETDOWN	100	/* Network is down */
#define	ENETUNREACH	101	/* Network is unreachable */
#define	ENETRESET	102	/* Network dropped connection because of reset */
#define	ECONNABORTED	103	/* Software caused connection abort */
#define	ECONNRESET	104	/* Connection reset by peer */
#define	ENOBUFS		105	/* No buffer space available */
#define	EISCONN		106	/* Transport endpoint is already connected */
#define	ENOTCONN	107	/* Transport endpoint is not connected */
#define	ESHUTDOWN	108	/* Cannot send after transport endpoint shutdown */
#define	ETOOMANYREFS	109	/* Too many references: cannot splice */
#define	ETIMEDOUT	110	/* Connection timed out */
#define	ECONNREFUSED	111	/* Connection refused */
#define	EHOSTDOWN	112	/* Host is down */
#define	EHOSTUNREACH	113	/* No route to host */
#define	EALREADY	114	/* Operation already in progress */
#define	EINPROGRESS	115	/* Operation now in progress */
#define	ESTALE		116	/* Stale file handle */
#define	EUCLEAN		117	/* Structure needs cleaning */
#define	ENOTNAM		118	/* Not a XENIX named type file */
#define	ENAVAIL		119	/* No XENIX semaphores available */
#define	EISNAM		120	/* Is a named type file */
#define	EREMOTEIO	121	/* Remote I/O error */
#define	EDQUOT		122	/* Quota exceeded */

#define	ENOMEDIUM	123	/* No medium found */
#define	EMEDIUMTYPE	124	/* Wrong medium type */
#define	ECANCELED	125	/* Operation Canceled */
#define	ENOKEY		126	/* Required key not available */
#define	EKEYEXPIRED	127	/* Key has expired */
#define	EKEYREVOKED	128	/* Key has been revoked */
#define	EKEYREJECTED	129	/* Key was rejected by service */

/* for robust mutexes */
#define	EOWNERDEAD	130	/* Owner died */
#define	ENOTRECOVERABLE	131	/* State not recoverable */

#define ERFKILL		132	/* Operation not possible due to RF-kill */

#define EHWPOISON	133	/* Memory page has hardware error */

#endif

what am I missing??

Re: Debian on QiZhiTong 501mv2

$
0
0
bodhi Wrote:
-------------------------------------------------------
> youxiaojie Wrote:
> --------------------------------------------------
> -----
> >
> > MB302 #mii info
> > PHY 0x01: OUI = 0x5043, Model = 0x24, Rev = 0x00
> ,
> > 1000baseT, FDX //plugged to pc
> > MB302 #ping 192.168.1.10
> > Using egiga1 device
> > host 192.168.1.10 is alive
> > MB302 #mii info
> > PHY 0x01: OUI = 0x5043, Model = 0x24, Rev = 0x00
> ,
> > 10baseT, HDX //unplugged
> > MB302 #mii info
> > PHY 0x01: OUI = 0x5043, Model = 0x24, Rev = 0x00
> ,
> > 1000baseT, FDX //plugged to router
> > MB302 #
> >
> >
> > ok, I make it 1000Mbps. pingable ether through s
> wi
> > tch or direct connexion.
> >
> > 20170408 16:32 CST
>
> Good job :) keep going. When you got stuck somewhe
> re, post the question.

Hi bodhi,
As the lede update the kernel to 4.9.x,the 88e6161 switch stop working again,below is the kernel log:


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

Reading data from 0x4ffe00 -- 100% complete.
 4194304 bytes read: OK
## Booting image at 02000000 ...
   Image Name:   ARM LEDE Linux-4.9.36
   Created:      2017-07-08  21:19:31 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2027604 Bytes =  1.9 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.36 (Wacke@HOME-Server) (gcc version 7.1.0 (LEDE GCC 7.1.0 r4235-61eb18d3f7) ) #0 Sat Jul 8 21:19:31 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: QiZhiTong 501M V2
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,9600
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 513276K/524288K available (4418K kernel code, 281K rwdata, 1208K rodata, 248K init, 225K bss, 11012K 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 : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0458dc8   (4420 kB)
[    0.000000]       .init : 0xc0588000 - 0xc05c6000   ( 248 kB)
[    0.000000]       .data : 0xc05c6000 - 0xc060c540   ( 282 kB)
[    0.000000]        .bss : 0xc060c540 - 0xc0644970   ( 226 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    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.000087] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    0.090092] pid_max: default: 32768 minimum: 301
[    0.090226] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090245] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.091034] CPU: Testing write buffer coherency: ok
[    0.091408] Setting up static identity map for 0x81e0 - 0x821c
[    0.091674] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x2
[    0.096847] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.096874] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.096985] pinctrl core: initialized pinctrl subsystem
[    0.098091] NET: Registered protocol family 16
[    0.098829] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.100380] cpuidle: using governor ladder
[    0.100715] Feroceon L2: Enabling L2
[    0.100755] Feroceon L2: Cache support initialised.
[    0.101032] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.101139] [Firmware Info]: /ocp@f1000000/ethernet-controller@76000/ethernet1-port@0: local-mac-address is not set
[    0.106041] No ATAGs?
[    0.126316] SCSI subsystem initialized
[    0.127238] usbcore: registered new interface driver usbfs
[    0.127335] usbcore: registered new interface driver hub
[    0.127416] usbcore: registered new device driver usb
[    0.129868] clocksource: Switched to clocksource orion_clocksource
[    0.147993] NET: Registered protocol family 2
[    0.148681] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.148758] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.148831] TCP: Hash tables configured (established 4096 bind 4096)
[    0.148975] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.149005] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.149210] NET: Registered protocol family 1
[    0.152485] Crashlog allocated RAM at address 0x3f00000
[    0.153012] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.162570] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.162585] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.171478] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.171494] io scheduler noop registered
[    0.171503] io scheduler deadline registered (default)
[    0.172828] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.216307] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.217423] console [ttyS0] disabled
[    0.217494] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A
[    5.218748] console [ttyS0] enabled
[    5.261699] sata_mv f1080000.sata: slots 32 ports 1
[    5.322665] scsi host0: sata_mv
[    5.360753] ata1: SATA max UDMA/133 irq 32
[    5.410348] nand: device found, Manufacturer ID: 0x20, Chip ID: 0x76
[    5.486435] nand: ST Micro NAND 64MiB 3,3V 8-bit
[    5.541736] nand: 64 MiB, SLC, erase size: 16 KiB, page size: 512, OOB size: 16
[    5.629342] Scanning device for bad blocks
[    5.809076] Bad eraseblock 2455 at 0x00000265c000
[    5.952634] 3 ofpart partitions found on MTD device orion_nand
[    6.022539] Creating 3 MTD partitions on "orion_nand":
[    6.084106] 0x000000000000-0x000000100000 : "u-boot"
[    6.145509] 0x000000100000-0x000000500000 : "kernel"
[    6.206449] 0x000000500000-0x000004000000 : "ubi"
[    6.267732] libphy: Fixed MDIO Bus: probed
[    6.316807] libphy: mdio_driver_register: mv88e6085
[    6.375537] libphy: orion_mdio_bus: probed
[    6.424768] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    6.507682] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:90:0b:19:ee:25
[    6.612609] mv643xx_eth_port mv643xx_eth_port.1 eth1: port 0 with MAC address 00:90:0b:19:ee:26
[    6.716941] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.795094] ehci-pci: EHCI PCI platform driver
[    6.848395] ehci-orion: EHCI orion driver
[    6.896511] orion-ehci f1050000.ehci: EHCI Host Controller
[    6.962206] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    7.054094] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[    7.149893] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    7.222625] hub 1-0:1.0: USB hub found
[    7.267554] ata1: SATA link down (SStatus 0 SControl F300)
[    7.333492] hub 1-0:1.0: 1 port detected
[    7.381007] usbcore: registered new interface driver usb-storage
[    7.453263] rtc-mv f1010300.rtc: invalid RTC date, resetting to January 1st, 2013
[    7.543202] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    7.625629] i2c /dev entries driver
[    7.668199] orion_wdt: Initial timeout 21 sec
[    7.721023] mvsdio f1090000.mvsdio: Got CD GPIO
[    7.835630] marvell-cesa f1030000.crypto: CESA device successfully registered
[    7.922043] NET: Registered protocol family 10
[    7.977256] NET: Registered protocol family 17
[    8.030612] Distributed Switch Architecture driver version 0.1
[    8.101239] dsa dsa@0: switch 0x161 detected: Marvell 88E6161, revision 2
[    8.182764] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    8.268239] libphy: mv88e6xxx SMI: probed
[    8.316279] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: detected a Marvell 88E6161 switch
[    8.418951] random: fast init done
[    8.530925] hub 1-1:1.0: USB hub found
[    8.577118] hub 1-1:1.0: 2 ports detected
[    8.684623] dsa dsa@0 lan1: no phy at 0
[    8.730513] dsa dsa@0 lan1: failed to connect to port 0: -19
[    8.798303] mv643xx_eth_port mv643xx_eth_port.0 eth0: error -19 setting up slave phy
[    8.892152] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: can't create dsa slave device for port 0(lan1): -19
[    9.012813] dsa dsa@0 lan2: no phy at 1
[    9.058730] dsa dsa@0 lan2: failed to connect to port 1: -19
[    9.126515] mv643xx_eth_port mv643xx_eth_port.0 eth0: error -19 setting up slave phy
[    9.220246] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: can't create dsa slave device for port 1(lan2): -19
[    9.340886] dsa dsa@0 lan3: no phy at 2
[    9.386815] dsa dsa@0 lan3: failed to connect to port 2: -19
[    9.454618] mv643xx_eth_port mv643xx_eth_port.0 eth0: error -19 setting up slave phy
[    9.548303] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: can't create dsa slave device for port 2(lan3): -19
[    9.668873] dsa dsa@0 lan4: no phy at 3
[    9.714819] dsa dsa@0 lan4: failed to connect to port 3: -19
[    9.782620] mv643xx_eth_port mv643xx_eth_port.0 eth0: error -19 setting up slave phy
[    9.876292] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: can't create dsa slave device for port 3(lan4): -19
[    9.996879] dsa dsa@0 aux: no phy at 4
[   10.041777] dsa dsa@0 aux: failed to connect to port 4: -19
[   10.108535] mv643xx_eth_port mv643xx_eth_port.0 eth0: error -19 setting up slave phy
[   10.202232] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: can't create dsa slave device for port 4(aux): -19
[   10.321108] 8021q: 802.1Q VLAN Support v1.8
[   10.374745] UBI: auto-attach mtd2
[   10.414491] ubi0: attaching mtd2
[   10.780000] ubi0: scanning is finished
[   10.837309] ubi0: attached mtd2 (name "ubi", size 59 MiB)
[   10.902052] ubi0: PEB size: 16384 bytes (16 KiB), LEB size: 15872 bytes
[   10.981283] ubi0: min./max. I/O unit sizes: 512/512, sub-page size 256
[   11.059513] ubi0: VID header offset: 256 (aligned 256), data offset: 512
[   11.139814] ubi0: good PEBs: 3775, bad PEBs: 1, corrupted PEBs: 0
[   11.212834] ubi0: user volume: 2, internal volumes: 1, max. volumes count: 92
[   11.298347] ubi0: max/mean erase counter: 2/0, WL threshold: 4096, image sequence number: 1944562274
[   11.407822] ubi0: available PEBs: 0, total reserved PEBs: 3775, PEBs reserved for bad PEB handling: 79
[   11.520057] ubi0: background thread "ubi_bgt0d" started, PID 928
[   11.592765] block ubiblock0_0: created from ubi0:0(rootfs)
[   11.658449] ubiblock: device ubiblock0_0 (rootfs) set to be root filesystem
[   11.741893] rtc-mv f1010300.rtc: setting system clock to 2013-01-01 07:30:38 UTC (1357025438)
[   11.849226] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[   11.935643] Freeing unused kernel memory: 248K (c0588000 - c05c6000)
[   12.011789] This architecture does not have kernel memory protection.
[   12.468476] init: Console is alive
[   12.509386] init: - watchdog -
[   12.586961] init: - preinit -
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[   16.669118] mount_root: loading kmods from internal overlay
[   16.742047] mount_root: failed to launch kmodloader from internal overlay
[   17.246647] UBIFS (ubi0:1): recovery needed
[   17.296939] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 991
[   17.401698] UBIFS (ubi0:1): recovery completed
[   17.455036] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[   17.548907] UBIFS (ubi0:1): LEB size: 15872 bytes (15 KiB), min./max. I/O unit sizes: 512 bytes/512 bytes
[   17.663576] UBIFS (ubi0:1): FS size: 18141696 bytes (17 MiB, 1143 LEBs), journal size 904704 bytes (0 MiB, 57 LEBs)
[   17.788672] UBIFS (ubi0:1): reserved for root: 856876 bytes (836 KiB)
[   17.865850] UBIFS (ubi0:1): media format: w4/r0 (latest is w4/r0), UUID 02F58B8F-FB81-4062-A392-A88D1F70FEB1, small LPT model
[   18.003790] block: attempting to load /tmp/ubifs_cfg/upper/etc/config/fstab
[   18.089520] block: extroot: not configured
[   18.138712] UBIFS (ubi0:1): un-mount UBI device 0
[   18.195013] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" stops
[   18.280441] UBIFS (ubi0:1): background thread "ubifs_bgt0_1" started, PID 993
[   18.370784] UBIFS (ubi0:1): UBIFS: mounted UBI device 0, volume 1, name "rootfs_data"
[   18.464569] UBIFS (ubi0:1): LEB size: 15872 bytes (15 KiB), min./max. I/O unit sizes: 512 bytes/512 bytes
[   18.579246] UBIFS (ubi0:1): FS size: 18141696 bytes (17 MiB, 1143 LEBs), journal size 904704 bytes (0 MiB, 57 LEBs)
[   18.704337] UBIFS (ubi0:1): reserved for root: 856876 bytes (836 KiB)
[   18.781519] UBIFS (ubi0:1): media format: w4/r0 (latest is w4/r0), UUID 02F58B8F-FB81-4062-A392-A88D1F70FEB1, small LPT model
[   19.119249] block: attempting to load /tmp/ubifs_cfg/upper/etc/config/fstab
[   19.204742] block: extroot: not configured
[   19.255001] mount_root: switching to ubifs overlay
[   19.320062] urandom-seed: Seeding with /etc/urandom.seed
[   19.443355] procd: - early -
[   19.478369] procd: - watchdog -
[   20.559439] procd: - watchdog -
[   20.598323] procd: - ubus -
[   20.825977] procd: - init -
Please press Enter to activate this console.
[  116.349916] random: crng init done

and the latest dts file:
/*
 * Marvell RD88F6181 A Board descrition
 *
 * Andrew Lunn <andrew@lunn.ch>
 *
 * This file is licensed under the terms of the GNU General Public
 * License version 2.  This program is licensed "as is" without any
 * warranty of any kind, whether express or implied.
 *
 * This file contains the definitions for the board with the A0 or
 * higher stepping of the SoC. The ethernet switch does not have a
 * "wan" port.
 */

/dts-v1/;
#include "kirkwood.dtsi"
#include "kirkwood-6281.dtsi"

/ {
	model = "QiZhiTong 501M V2";
	compatible = "qizhitong,501m_v2","marvell,rd88f6281-a", "marvell,rd88f6281","marvell,kirkwood-88f6281", "marvell,kirkwood";

	chosen {
		bootargs = "console=ttyS0,9600n8 earlyprintk";
	};

	mbus {
		pcie-controller {
			status = "okay";

			pcie@1,0 {
				status = "okay";
			};

		};
	};

	ocp@f1000000 {
		pinctrl: pin-controller@10000 {
			pinctrl-names = "default";

			pmx_sdio_cd: pmx-sdio-cd {
				marvell,pins = "mpp28";
				marvell,function = "gpio";
			};
		};

		serial@12000 {
			status = "okay";

		};

		sata@80000 {
			status = "okay";
			nr-ports = <1>;
		};

		mvsdio@90000 {
			pinctrl-0 = <&pmx_sdio &pmx_sdio_cd>;
			pinctrl-names = "default";
			status = "okay";
			cd-gpios = <&gpio0 28 GPIO_ACTIVE_HIGH>;
			/* No WP GPIO */
		};
	};
	
	dsa@0 {
		compatible = "marvell,dsa";
		#address-cells = <2>;
		#size-cells = <0>;
		
		interrupts = <10>;
		dsa,ethernet = <&eth0port>;
		dsa,mii-bus = <&mdio>;

		switch@0 {
			#address-cells = <1>;
			#size-cells = <0>;
			status = "okay";
			reg = <10 0>;
			
			port@0 {
				reg = <0>;
				label = "lan1";
			};

			port@1 {
			       reg = <1>;
			       label = "lan2";
			};

			port@2 {
			       reg = <2>;
			       label = "lan3";
			};

			port@3 {
			       reg = <3>;
			       label = "lan4";
			};

			port@4 {
				reg = <4>;
				label = "aux";
			};

			port@5 {
			       reg = <5>;
			       label = "cpu";
			};
		};
	};
};

&nand {
	status = "okay";

	partition@0 {
		label = "u-boot";
		reg = <0x0000000 0x100000>;
		read-only;
	};

	partition@100000 {
		label = "kernel";
		reg = <0x0100000 0x400000>;
	};

	partition@500000 {
		label = "ubi";
		reg = <0x0500000 0x3b00000>;
	};
};

&mdio {
	status = "okay";
};

&eth0 {
	status = "okay";	
	ethernet0-port@0 {
		speed = <1000>;
		duplex = <1>;
	};
};

&eth1 {
	status = "okay";	
};

the boot log of debian:
## Booting image at 00800000 ...
   Image Name:   Linux-4.11.3-kirkwood-tld-2
   Created:      2017-07-11  13:03:23 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3912680 Bytes =  3.7 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.11.3-kirkwood-tld-2 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Tue Jun 6 17:01:17 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: QiZhiTong 501M V2
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: rootdelay=1 root=/ noinitrd console=ttyS0,9600 rootwait
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 506312K/524288K available (8192K kernel code, 786K rwdata, 2016K rodata, 1024K init, 280K bss, 17976K 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 : 0xe0800000 - 0xff800000   ( 496 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 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 - 0xc0dc49b4   ( 787 kB)
[    0.000000]        .bss : 0xc0dc49b4 - 0xc0e0acc8   ( 281 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    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.000007] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000456] Console: colour dummy device 80x30
[    0.000490] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    0.090106] pid_max: default: 32768 minimum: 301
[    0.090311] Security Framework initialized
[    0.090434] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090453] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.091308] CPU: Testing write buffer coherency: ok
[    0.092302] Setting up static identity map for 0x100000 - 0x100058
[    0.092533] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x2
[    0.095988] devtmpfs: initialized
[    0.100436] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.100461] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.100762] prandom: seed boundary self test passed
[    0.104514] prandom: 100 self tests passed
[    0.104525] pinctrl core: initialized pinctrl subsystem
[    0.105709] NET: Registered protocol family 16
[    0.106552] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.108091] cpuidle: using governor ladder
[    0.108152] cpuidle: using governor menu
[    0.108569] Feroceon L2: Enabling L2
[    0.108610] Feroceon L2: Cache support initialised.
[    0.108934] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.109039] [Firmware Info]: /ocp@f1000000/ethernet-controller@76000/ethernet1-port@0: local-mac-address is not set
[    0.114174] No ATAGs?
[    0.123156] vgaarb: loaded
[    0.123472] SCSI subsystem initialized
[    0.123955] usbcore: registered new interface driver usbfs
[    0.124030] usbcore: registered new interface driver hub
[    0.124111] usbcore: registered new device driver usb
[    0.125211] clocksource: Switched to clocksource orion_clocksource
[    0.217434] VFS: Disk quotas dquot_6.6.0
[    0.217514] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.228166] NET: Registered protocol family 2
[    0.228946] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.229022] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.229092] TCP: Hash tables configured (established 4096 bind 4096)
[    0.229267] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.229298] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.229514] NET: Registered protocol family 1
[    0.229957] RPC: Registered named UNIX socket transport module.
[    0.229970] RPC: Registered udp transport module.
[    0.229977] RPC: Registered tcp transport module.
[    0.229984] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.230391] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.231314] audit: initializing netlink subsys (disabled)
[    0.231767] Initialise system trusted keyrings
[    0.231911] audit: type=2000 audit(0.220:1): state=initialized audit_enabled=0 res=1
[    0.231980] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    0.232069] zbud: loaded
[    0.233055] NFS: Registering the id_resolver key type
[    0.233082] Key type id_resolver registered
[    0.233091] Key type id_legacy registered
[    0.233108] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.233117] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.233619] Key type cifs.spnego registered
[    0.233639] Key type cifs.idmap registered
[    0.233652] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.233913] fuse init (API version 7.26)
[    0.234298] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.234576] orangefs_init: module version upstream loaded
[    0.234587] SGI XFS with ACLs, security attributes, realtime, no debug enabled
[    2.555218] random: fast init done
[    4.344272] Key type asymmetric registered
[    4.344288] Asymmetric key parser 'x509' registered
[    4.344356] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 249)
[    4.344368] io scheduler noop registered
[    4.344376] io scheduler deadline registered
[    4.344449] io scheduler cfq registered (default)
[    4.345737] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    4.347518] mvebu-pcie mbus@f1000000:pcie-controller@82000000: PCI host bridge to bus 0000:00
[    4.347538] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    4.347552] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    4.347565] pci_bus 0000:00: root bus resource [bus 00-ff]
[    4.347877] PCI: bus0: Fast back to back transfers disabled
[    4.347901] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    4.348061] PCI: bus1: Fast back to back transfers enabled
[    4.348132] pci 0000:00:01.0: PCI bridge to [bus 01]
[    4.348339] pcie_pme: probe of 0000:00:01.0:pcie001 failed with error -22
[    4.348786] mv_xor f1060800.xor: Marvell shared XOR driver
[    4.406002] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    4.406227] mv_xor f1060900.xor: Marvell shared XOR driver
[    4.466000] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy sg intr )
[    4.466457] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    4.467735] console [ttyS0] disabled
[    4.467796] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A
[   12.284535] console [ttyS0] enabled
[   12.336919] loop: module loaded
[   12.375014] sata_mv f1080000.sata: slots 32 ports 1
[   12.435361] scsi host0: sata_mv
[   12.473207] ata1: SATA max UDMA/133 irq 32
[   12.522882] nand: device found, Manufacturer ID: 0x20, Chip ID: 0x76
[   12.599012] nand: ST Micro NAND 64MiB 3,3V 8-bit
[   12.654288] nand: 64 MiB, SLC, erase size: 16 KiB, page size: 512, OOB size: 16
[   12.741896] Scanning device for bad blocks
[   12.921919] Bad eraseblock 2455 at 0x00000265c000
[   12.978241] ata1: SATA link down (SStatus 0 SControl F300)
[   13.131174] 3 ofpart partitions found on MTD device orion_nand
[   13.201029] Creating 3 MTD partitions on "orion_nand":
[   13.262584] 0x000000000000-0x000000100000 : "u-boot"
[   13.323381] 0x000000100000-0x000000300000 : "uImage"
[   13.384243] 0x000000300000-0x000000800000 : "rootfs"
[   13.446337] libphy: Fixed MDIO Bus: probed
[   13.496345] libphy: orion_mdio_bus: probed
[   13.545406] mdio_bus f1072004.mdio-bus-mii: /ocp@f1000000/mdio-bus@72004/switch@0 has invalid PHY address
[   13.660061] mdio_bus f1072004.mdio-bus-mii: /ocp@f1000000/mdio-bus@72004/ethernet-phy@1 has invalid PHY address
[   13.780988] mdio_bus f1072004.mdio-bus-mii: scan phy switch at address 0
[   13.861304] mdio_bus f1072004.mdio-bus-mii: scan phy switch at address 1
[   13.941608] mdio_bus f1072004.mdio-bus-mii: scan phy switch at address 2
[   14.021917] mdio_bus f1072004.mdio-bus-mii: scan phy switch at address 3
[   14.102223] mdio_bus f1072004.mdio-bus-mii: scan phy switch at address 4
[   14.182530] mdio_bus f1072004.mdio-bus-mii: scan phy switch at address 5
[   14.262837] mdio_bus f1072004.mdio-bus-mii: scan phy switch at address 6
[   14.343145] mdio_bus f1072004.mdio-bus-mii: scan phy switch at address 7
[   14.423456] mdio_bus f1072004.mdio-bus-mii: scan phy switch at address 8
[   14.503761] mdio_bus f1072004.mdio-bus-mii: scan phy switch at address 9
[   14.584066] mdio_bus f1072004.mdio-bus-mii: scan phy switch at address 10
[   14.665416] mdio_bus f1072004.mdio-bus-mii: scan phy switch at address 11
[   14.746764] mdio_bus f1072004.mdio-bus-mii: scan phy switch at address 12
[   14.828114] mdio_bus f1072004.mdio-bus-mii: scan phy switch at address 13
[   14.909462] mdio_bus f1072004.mdio-bus-mii: scan phy switch at address 14
[   14.990812] mdio_bus f1072004.mdio-bus-mii: scan phy switch at address 15
[   15.072161] mdio_bus f1072004.mdio-bus-mii: scan phy switch at address 16
[   15.153595] mdio_bus f1072004.mdio-bus-mii: scan phy switch at address 17
[   15.234970] mdio_bus f1072004.mdio-bus-mii: scan phy switch at address 18
[   15.316313] mdio_bus f1072004.mdio-bus-mii: scan phy switch at address 19
[   15.397662] mdio_bus f1072004.mdio-bus-mii: scan phy switch at address 20
[   15.479013] mdio_bus f1072004.mdio-bus-mii: scan phy switch at address 21
[   15.560358] mdio_bus f1072004.mdio-bus-mii: scan phy switch at address 22
[   15.641707] mdio_bus f1072004.mdio-bus-mii: scan phy switch at address 23
[   15.723056] mdio_bus f1072004.mdio-bus-mii: scan phy switch at address 24
[   15.804405] mdio_bus f1072004.mdio-bus-mii: scan phy switch at address 25
[   15.885755] mdio_bus f1072004.mdio-bus-mii: scan phy switch at address 26
[   15.967104] mdio_bus f1072004.mdio-bus-mii: scan phy switch at address 27
[   16.048453] mdio_bus f1072004.mdio-bus-mii: scan phy switch at address 28
[   16.129831] mdio_bus f1072004.mdio-bus-mii: scan phy switch at address 29
[   16.211153] mdio_bus f1072004.mdio-bus-mii: scan phy switch at address 30
[   16.292500] mdio_bus f1072004.mdio-bus-mii: scan phy switch at address 31
[   16.373851] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 0
[   16.460580] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 1
[   16.547778] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 2
[   16.634569] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 3
[   16.721304] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 4
[   16.808083] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 5
[   16.894817] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 6
[   16.981514] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 7
[   17.068249] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 8
[   17.155073] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 9
[   17.241764] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 10
[   17.329457] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 11
[   17.417192] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 12
[   17.504972] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 13
[   17.592708] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 14
[   17.680489] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 15
[   17.768181] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 16
[   17.855918] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 17
[   17.943698] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 18
[   18.031390] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 19
[   18.119127] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 20
[   18.206906] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 21
[   18.294643] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 22
[   18.382423] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 23
[   18.470116] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 24
[   18.557852] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 25
[   18.645632] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 26
[   18.733324] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 27
[   18.821061] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 28
[   18.908841] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 29
[   18.996577] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 30
[   19.084357] mdio_bus f1072004.mdio-bus-mii: scan phy ethernet-phy at address 31
[   19.172305] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   19.255196] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:90:0b:19:ee:25
[   20.455749] mv643xx_eth_port mv643xx_eth_port.1 eth1: port 0 with MAC address 00:90:0b:19:ee:26
[   20.560141] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   20.638383] ehci-pci: EHCI PCI platform driver
[   20.691643] ehci-orion: EHCI orion driver
[   20.739772] orion-ehci f1050000.ehci: EHCI Host Controller
[   20.805465] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   20.897375] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[   20.995243] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   21.067441] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[   21.148834] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   21.235415] usb usb1: Product: EHCI Host Controller
[   21.293838] usb usb1: Manufacturer: Linux 4.11.3-kirkwood-tld-2 ehci_hcd
[   21.374143] usb usb1: SerialNumber: f1050000.ehci
[   21.431115] hub 1-0:1.0: USB hub found
[   21.476084] hub 1-0:1.0: 1 port detected
[   21.523861] mousedev: PS/2 mouse device common for all mice
[   21.591173] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[   21.673769] i2c /dev entries driver
[   21.716452] hidraw: raw HID events driver (C) Jiri Kosina
[   21.781540] drop_monitor: Initializing network drop monitor service
[   21.857061] NET: Registered protocol family 17
[   21.910935] dsa dsa@0: switch 0x161 detected: Marvell 88E6161, revision 2
[   21.992252] usb 1-1: new high-speed USB device number 2 using orion-ehci
[   22.105361] libphy: mv88e6xxx SMI: probed
[   22.153572] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: detected a Marvell 88E6161 switch
[   22.295766] usb 1-1: New USB device found, idVendor=04cc, idProduct=1520
[   22.376095] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[   22.462538] hub 1-1:1.0: USB hub found
[   22.507649] hub 1-1:1.0: 2 ports detected
[   22.658969] dsa dsa@0 lan1: no phy at 0
[   22.704947] dsa dsa@0 lan1: failed to connect to port 0: -19
[   22.772767] mv643xx_eth_port mv643xx_eth_port.0 eth0: error -19 setting up slave phy
[   22.895379] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: can't create dsa slave device for port 0(lan1): -19
[   23.015873] dsa dsa@0 lan2: no phy at 1
[   23.061783] dsa dsa@0 lan2: failed to connect to port 1: -19
[   23.129635] mv643xx_eth_port mv643xx_eth_port.0 eth0: error -19 setting up slave phy
[   23.245266] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: can't create dsa slave device for port 1(lan2): -19
[   23.365759] dsa dsa@0 lan3: no phy at 2
[   23.411754] dsa dsa@0 lan3: failed to connect to port 2: -19
[   23.479535] mv643xx_eth_port mv643xx_eth_port.0 eth0: error -19 setting up slave phy
[   23.595265] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: can't create dsa slave device for port 2(lan3): -19
[   23.715749] dsa dsa@0 lan4: no phy at 3
[   23.761731] dsa dsa@0 lan4: failed to connect to port 3: -19
[   23.829512] mv643xx_eth_port mv643xx_eth_port.0 eth0: error -19 setting up slave phy
[   23.945265] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: can't create dsa slave device for port 3(lan4): -19
[   24.065709] dsa dsa@0 aux: no phy at 4
[   24.110582] dsa dsa@0 aux: failed to connect to port 4: -19
[   24.177304] mv643xx_eth_port mv643xx_eth_port.0 eth0: error -19 setting up slave phy
[   24.295264] mv643xx_eth_port mv643xx_eth_port.0 eth0: [0]: can't create dsa slave device for port 4(aux): -19
[   24.414193] Key type dns_resolver registered
[   24.466146] registered taskstats version 1
[   24.515257] Loading compiled-in X.509 certificates
[   24.572641] zswap: loaded using pool lzo/zbud
[   24.627497] Key type big_key registered
[   24.675375] Key type encrypted registered
[   24.724896] rtc-mv f1010300.rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
[   24.826453] Waiting 1 sec before mounting root device...
[   25.925262] Waiting for root device /...


I think we need to modify the dts file again,any idea to fix this?Thanks.

Re: Lenovo iomega EZ support

$
0
0
bondi,

You're right. I have those lines in my dmsg:
79:[    0.226469] Unpacking initramfs...
80:[    0.887839] Freeing initrd memory: 7472K

Is it safe to assume, that this is correct ?
ide read 0x40000 0x5000 0x2000; ide read 0x2100000 0xA000 0x4000; bootm 0x40000 0x2100000

My notes:
Well, everything looks outstanding. Nice freakin' work mate!

I used: Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2 and linux-4.11.3-kirkwood-tld-2-bodhi.tar.bz2 downloaded from this page.

Disk layout:
root@iomega:/# parted 
GNU Parted 3.2
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) unit MiB                                                         
(parted) print                                                            
Model: ATA WDC WD20EFRX-68A (scsi)
Disk /dev/sda: 1907729MiB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start     End         Size        File system     Name    Flags
 1      128MiB    4224MiB     4096MiB     linux-swap(v1)  swap
 2      4224MiB   45184MiB    40960MiB    ext4            rootfs  boot, esp
 3      45184MiB  1907729MiB  1862545MiB  btrfs

u-boot reconfiguration, everything else is stock besides:
setenv bootargs 'root=/dev/sda2 init=/bin/systemd fsck.mode=force fsck.repair=yes console=ttyS0,115200 mtdparts=spi_flash:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2)'
setenv bootcmd 'ide read 0x40000 0x5000 0x2000; ide read 0x2100000 0xA000 0x4000; bootm 0x40000 0x2100000'

Creating uImage & uInitrd and putting it to the disk
root@iomega:/boot# ls -l
total 60120
drwxr-xr-x 3 root root     4096 Jul 10 14:13 4.4.0
-rw-r--r-- 1 root root   151392 Jun  7 00:49 config-4.11.3-kirkwood-tld-2
drwxr-xr-x 2 root root     4096 May 29 18:12 dts
-rw-r--r-- 1 root root  7647474 Jul 11 09:29 initrd.img-4.11.3-kirkwood-tld-2
-rw-r--r-- 1 root root   147478 Jun  6 23:06 linux-4.11.3-kirkwood-tld-2.patch
-rw-r--r-- 1 root root  1269760 Jun  7 00:26 linux-dtb-4.11.3-kirkwood-tld-2.tar
-rw-r--r-- 1 root root  8372354 Jun  7 05:17 linux-headers-4.11.3-kirkwood-tld-2_2.0_armel.deb
-rw-r--r-- 1 root root 18124538 Jun  7 05:00 linux-image-4.11.3-kirkwood-tld-2_2.0_armel.deb
-rw------- 1 root root  2537435 Jun  7 04:54 System.map-4.11.3-kirkwood-tld-2
-rw-r--r-- 1 root root  3914723 Jul 11 09:29 uImage
-rw-r--r-- 1 root root  7647538 Jul 11 09:29 uInitrd
-rw------- 1 root root  3901568 Jun  7 04:54 vmlinuz-4.11.3-kirkwood-tld-2
-rwxr-xr-x 1 root root  3901568 Jun  7 02:02 zImage-4.11.3-kirkwood-tld-2
-rwxr-xr-x 1 root root  3914659 Jul 11 09:29 zImage.fdt


cd /boot
update-initramfs -uv
cp -a zImage-4.11.3-kirkwood-tld-2 zImage.fdt
cat dts/kirkwood-lenovo-ix2-ng.dtb >> zImage.fdt
mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initrd.img-4.11.3-kirkwood-tld-2 -d initrd.img-4.11.3-kirkwood-tld-2 uInitrd
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.11.3-kirkwood-tld-2 -d zImage.fdt uImage
dd if=uImage of=/dev/sda bs=1MiB seek=10
dd if=uInitrd of=/dev/sda bs=1MiB seek=20

I've upgraded it to Debian 9 Strech without a glitch!
Console output after update: https://pastebin.com/2gDzk5Ea

Power button fix:
root@nsa310:~# apt-get install esekeyd

root@nsa310:~# cat /etc/default/esekeyd 
# Defaults for esekeyd initscript

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

# Daemon options, at last config location must be present
DAEMON_OPTS=/etc/esekeyd.conf

root@nsa310:~# cat /etc/esekeyd.conf 
#
# ESE Key Deamon 1.2.7 config file
#

#
# example 1: to run mutt in xterm we must set DISPLAY
#            so the command line will be as follows:
#MAIL:/bin/sh -c "DISPLAY=:0 xterm -e mutt"
#
# example 2: turn on/off GPS reciever when lid is open/closed
#RADIO(press):echo 1 >/sys/device/platform/gps/gps_power
#RADIO(release):echo 0 >/sys/device/platform/gps/gps_power
#
# example 3: run nautilus when both left meta and e keys are press
#LEFTMETA+E:nautilus
#

#POWER(press): /usr/bin/logger -s -i "POWER button pushed"
POWER:/sbin/shutdown -h now

Leds:
root@iomega:/# cat /etc/rc.local 
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.

# turn on LED

echo 1 > /sys/devices/platform/gpio-leds/leds/ix2:blue:hdd/brightness
echo 0 > /sys/devices/platform/gpio-leds/leds/ix2\:red\:hdd1/brightness 
echo 0 > /sys/devices/platform/gpio-leds/leds/ix2:red:hdd2/brightness
echo 1 > /sys/devices/platform/gpio-leds/leds/ix2:red:sys/brightness
echo 0 > /sys/devices/platform/gpio-leds/leds/ix2:white:sys/brightness

echo "disk-activity" > /sys/devices/platform/gpio-leds/leds/ix2:blue:hdd/trigger

There's small problem with /run filesystem (it's size - it's too small - during systemd service reloading). It's recommended to:
mount -t tmpfs tmpfs /run -o remount,size=32M,nosuid,noexec,relatime,mode=755
Before doing any apt-get upgrade. (it concerns Debian 9 Stretch only)

fstab & mem usage
root@iomega:/# cat /etc/fstab 
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
/dev/sda2      /               ext4    noatime,errors=remount-ro 0 1
tmpfs          /tmp            tmpfs   defaults          0       0
UUID=776a2dc8-2749-4f98-91bf-785682dcf506       /storage/       btrfs   noatime,nodiratime      0       2

root@iomega:/# free -h
              total        used        free      shared  buff/cache   available
Mem:           114M         19M        2.8M        332K         92M         89M
Swap:          4.0G        5.5M        4.0G

Performance:
I did fast iscsi benchmark, by:
root@iomega:/# apt -y install tgt dkms 

root@iomega:/# cat /etc/tgt/conf.d/target01.conf
<target iomega:storage>
    # provided devicce as a iSCSI target
    backing-store /dev/sda3
    MaxRecvDataSegmentLength 131072
    MaxXmitDataSegmentLength 131072
    MaxBurstLength 262144
    FirstBurstLength 262144
    TargetRecvDataSegmentLength=262144
    InitiatorRecvDataSegmentLength=262144
    MaxOutstandingUnexpectedPDUs=0
    MaxOutstandingR2T=1
    MaxCommands=128
</target>

# on the initiator
iscsiadm -m discovery -p iomega -t st -D
iscsiadm -m node --targetname iomega:storage --portal "iomega:3260" --login
Resulting in ~35-40 MiB/s read/write throughput (when dding from/to the device from initiator site like dd if=... of=... bs=1MiB). CPU seems to be the bottleneck. IMHO performance difference is hardly noticeable between Debian 7 with 2.6.31.8 kernel and Debian 9 with 4.11.3. But feature matrix and stability are insane for 50$ box...

Sensors:
root@iomega:/boot# sensors
kirkwood_thermal-virtual-0
Adapter: Virtual device
temp1:        +74.1°C

S.M.A.R.T.
root@iomega:/boot# smartctl -d sat -a /dev/sda       
smartctl 6.6 2016-05-31 r4324 [armv5tel-linux-4.11.3-kirkwood-tld-2] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Family:     Western Digital Red
Device Model:     WDC WD20EFRX-68AX9N0
Serial Number:    WD-WCC300508923
LU WWN Device Id: 5 0014ee 003990a15
Firmware Version: 80.00A80
User Capacity:    2,000,398,934,016 bytes [2.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   ACS-2 (minor revision not indicated)
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 3.0 Gb/s)
Local Time is:    Tue Jul 11 14:11:09 2017 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED

General SMART Values:
Offline data collection status:  (0x82) Offline data collection activity
                                        was completed without error.
                                        Auto Offline Data Collection: Enabled.
Self-test execution status:      (   0) The previous self-test routine completed
                                        without error or no self-test has ever 
                                        been run.
Total time to complete Offline 
data collection:                (25320) seconds.
Offline data collection
capabilities:                    (0x7b) SMART execute Offline immediate.
                                        Auto Offline data collection on/off support.
                                        Suspend Offline collection upon new
                                        command.
                                        Offline surface scan supported.
                                        Self-test supported.
                                        Conveyance Self-test supported.
                                        Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                                        power-saving mode.
                                        Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                                        General Purpose Logging supported.
Short self-test routine 
recommended polling time:        (   2) minutes.
Extended self-test routine
recommended polling time:        ( 256) minutes.
Conveyance self-test routine
recommended polling time:        (   5) minutes.
SCT capabilities:              (0x70bd) SCT Status supported.
                                        SCT Error Recovery Control supported.
                                        SCT Feature Control supported.
                                        SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x002f   200   200   051    Pre-fail  Always       -       0
  3 Spin_Up_Time            0x0027   190   172   021    Pre-fail  Always       -       3475
  4 Start_Stop_Count        0x0032   092   092   000    Old_age   Always       -       8287
  5 Reallocated_Sector_Ct   0x0033   188   188   140    Pre-fail  Always       -       368
  7 Seek_Error_Rate         0x002e   200   200   000    Old_age   Always       -       0
  9 Power_On_Hours          0x0032   056   056   000    Old_age   Always       -       32547
 10 Spin_Retry_Count        0x0032   100   100   000    Old_age   Always       -       0
 11 Calibration_Retry_Count 0x0032   100   100   000    Old_age   Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       147
192 Power-Off_Retract_Count 0x0032   200   200   000    Old_age   Always       -       59
193 Load_Cycle_Count        0x0032   198   198   000    Old_age   Always       -       8227
194 Temperature_Celsius     0x0022   101   099   000    Old_age   Always       -       46
196 Reallocated_Event_Count 0x0032   027   027   000    Old_age   Always       -       173
197 Current_Pending_Sector  0x0032   200   200   000    Old_age   Always       -       0
198 Offline_Uncorrectable   0x0030   200   200   000    Old_age   Offline      -       0
199 UDMA_CRC_Error_Count    0x0032   200   200   000    Old_age   Always       -       0
200 Multi_Zone_Error_Rate   0x0008   200   200   000    Old_age   Offline      -       0

SMART Error Log Version: 1
No Errors Logged

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%     32273         -
# 2  Short offline       Completed without error       00%     32249         -
# 3  Short offline       Completed without error       00%     32225         -
# 4  Short offline       Completed without error       00%     32201         -
# 5  Short offline       Completed without error       00%     32177         -
# 6  Short offline       Completed without error       00%     32153         -
# 7  Short offline       Completed without error       00%     32129         -
# 8  Extended offline    Completed without error       00%     32112         -
# 9  Short offline       Completed without error       00%     32105         -
#10  Short offline       Completed without error       00%     32081         -
#11  Short offline       Completed without error       00%     32059         -
#12  Short offline       Completed without error       00%     32033         -
#13  Short offline       Completed without error       00%     32009         -
#14  Short offline       Completed without error       00%     31986         -
#15  Short offline       Completed without error       00%     31962         -
#16  Extended offline    Completed without error       00%     31945         -
#17  Short offline       Completed without error       00%     31939         -
#18  Short offline       Completed without error       00%     31915         -
#19  Short offline       Completed without error       00%     31891         -
#20  Short offline       Completed without error       00%     31867         -
#21  Short offline       Completed without error       00%     31843         -

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

What doesn't work?
root@iomega:/# dmesg | grep mtd
15:[    0.000000] Kernel command line: root=/dev/sda2 init=/bin/systemd fsck.mode=force fsck.repair=yes console=ttyS0,115200 mtdparts=spi_flash:0x7e000@0(u-boot),0x1000@0x7f000(env),0x1000@0x7e000(env2)
126:[    5.771446] mtd: partition "u-boot" doesn't end on an erase block -- force read-only
128:[    5.785973] mtd: partition "u-boot env2" doesn't start on an erase block boundary -- force read-only
130:[    5.801826] mtd: partition "u-boot env" doesn't start on an erase block boundary -- force read-only
root@iomega:/# 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@iomega:/#
I've read in the other thread that dts is bad, unfortunately I don't have the necessary knowledge to fix it. Please let me know if someone is willing to fix it and needs testing environment. I still have somewhere patched sources for 2.6.31.8 if it helps somehow.

Re: Lenovo iomega EZ support

$
0
0
eine,

> You're right. I have those lines in my dmsg:
>
> 79:[    0.226469] Unpacking initramfs...
> 80:[    0.887839] Freeing initrd memory: 7472K
>
>
> Is it safe to assume, that this is correct ?
>
> ide read 0x40000 0x5000 0x2000; ide read 0x2100000
> 0xA000 0x4000; bootm 0x40000 0x2100000
>

Yes. It is correct.

And everything looks great! thanks for posting all these info.

> What doesn't work?

1. LEDs: working, but you can use better trigger with these format

echo default-on > /sys/class/leds/ix2:white:sys/trigger
echo ide-disk1 >  > /sys/class/leds/ix2:blue:hdd/trigger

2. mtd partition

Please find out what type of SPI flash,... any info you can.

I'll be back.

Re: Debian on WD MyCloud EX 4100

$
0
0
bodhi,

i set the mac adresses i found in stock.
strange that they are the same, only difference between egiga0 and egiga1 is the interrupt.
well, i set it in debian /etc/network/interfaces and tried

port 1 doesnt work
port 2 works out of the box as eth0

poweroff doesnt work as wanted from ssh. so it is not an uart connection issue.
Viewing all 46949 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>