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

Re: Debian on WD MyCloud EX 4100

$
0
0
And the bad news is I could not yet figure out from the GPL, whether this box has GPIO Poweroff or not. This is needed so we will be able to power off the box.

Re: Debian on WD MyCloud EX 4100

$
0
0
bodhi,

the mac adresses seem to be generated at boot.
i noticed this already in stock firmware that the mac adresses seem to be different on every boot.

after updating the debian system and rebooting ifconfig gives me the following

eth0 Link encap:Ethernet HWaddr 9a:09:78:fd:ca:84
inet addr:192.168.178.46 Bcast:192.168.178.255 Mask:255.255.255.0
inet6 addr: fe80::9809:78ff:fefd:ca84/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:119 errors:0 dropped:0 overruns:0 frame:0
TX packets:57 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:532
RX bytes:11415 (11.1 KiB) TX bytes:8349 (8.1 KiB)
Interrupt:36

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

Re: My Cloud Mirror Gen2

$
0
0
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'
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 490 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
[    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.000004] 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.019112] Console: colour dummy device 80x30
[    0.023628] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.034036] pid_max: default: 32768 minimum: 301
[    0.038804] Security Framework initialized
[    0.043006] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049681] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.057258] CPU: Testing write buffer coherency: ok
[    0.062350] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.068091] Setting up static identity map for 0x100000 - 0x100058
[    0.074521] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.079804] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283604] Booting CPU 1
[    0.286475] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.286532] Brought up 2 CPUs
[    0.295294] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.301614] CPU: All CPU(s) started in SVC mode.
[    0.306885] devtmpfs: initialized
[    0.312771] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320755] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330692] prandom: seed boundary self test passed
[    0.337655] prandom: 100 self tests passed
[    0.341816] pinctrl core: initialized pinctrl subsystem
[    0.347850] NET: Registered protocol family 16
[    0.353009] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.383453] cpuidle: using governor ladder
[    0.413420] cpuidle: using governor menu
[    0.417536] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.425610] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.483819] vgaarb: loaded
[    0.486858] SCSI subsystem initialized
[    0.491156] usbcore: registered new interface driver usbfs
[    0.496812] usbcore: registered new interface driver hub
[    0.502247] usbcore: registered new device driver usb
[    0.507598] media: Linux media interface: v0.10
[    0.512242] Linux video capture interface: v2.00
[    0.517922] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.554187] VFS: Disk quotas dquot_6.6.0
[    0.558258] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.573535] NET: Registered protocol family 2
[    0.578403] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.585545] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.592140] TCP: Hash tables configured (established 8192 bind 8192)
[    0.598601] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.604596] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.611149] NET: Registered protocol family 1
[    0.615837] RPC: Registered named UNIX socket transport module.
[    0.621830] RPC: Registered udp transport module.
[    0.626596] RPC: Registered tcp transport module.
[    0.631385] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.638023] Unpacking initramfs...
[    0.885851] Freeing initrd memory: 6068K (c2900000 - c2eed000)
[    0.891957] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.898730] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.908074] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.914285] audit: initializing netlink subsys (disabled)
[    0.919790] audit: type=2000 audit(0.910:1): initialized
[    0.925621] Initialise system trusted keyrings
[    0.930300] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.936870] zbud: loaded
[    0.940049] NFS: Registering the id_resolver key type
[    0.945171] Key type id_resolver registered
[    0.949436] Key type id_legacy registered
[    0.953517] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.960281] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.966845] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.974289] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.980927] orangefs_init: module version upstream loaded
[    0.988534] Key type asymmetric registered
[    0.992698] Asymmetric key parser 'x509' registered
[    0.997667] bounce: pool size: 64 pages
[    1.001667] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    1.009126] io scheduler noop registered
[    1.013114] io scheduler deadline registered
[    1.017463] io scheduler cfq registered (default)
[    1.023155] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.031823] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    1.038772] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.045095] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.052034] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.058042] PCI: bus0: Fast back to back transfers disabled
[    1.063679] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.071751] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.079932] PCI: bus1: Fast back to back transfers enabled
[    1.085607] PCI: bus2: Fast back to back transfers enabled
[    1.091211] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.096242] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.101767] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.168404] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.176022] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.238391] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.296777] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.304734] console [ttyS0] disabled
[    1.328476] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 23, base_baud = 12500000) is a 16550A
[    1.337504] console [ttyS0] enabled
[    1.337504] console [ttyS0] enabled
[    1.344604] bootconsole [earlycon0] disabled
[    1.344604] bootconsole [earlycon0] disabled
[    1.373980] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 24, base_baud = 12500000) is a 16550A
[    1.383998] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.393108] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    1.402790] scsi host0: ahci-mvebu
[    1.406516] scsi host1: ahci-mvebu
[    1.410173] ata1: FORCE: PHY spd limit set to 3.0Gbps
[    1.415249] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.423212] ata2: FORCE: PHY spd limit set to 3.0Gbps
[    1.428295] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.436787] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.444695] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xda
[    1.451091] nand: Hynix H27U2G8F2CTR-BC
[    1.454945] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.462560] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.469769] Bad block table found at page 131008, version 0x01
[    1.475967] Bad block table found at page 130944, version 0x01
[    1.482069] 8 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.488200] Creating 8 MTD partitions on "pxa3xx_nand-0":
[    1.493627] 0x000000000000-0x000000500000 : "U-Boot"
[    1.509457] 0x000000500000-0x000000a00000 : "uImage"
[    1.525183] 0x000000a00000-0x000000f00000 : "uRamdisk"
[    1.541078] 0x000000f00000-0x00000c800000 : "image.cfs"
[    1.557798] 0x00000c800000-0x00000d700000 : "rescue fw"
[    1.573813] 0x00000d700000-0x00000eb00000 : "config"
[    1.589607] 0x00000eb00000-0x00000f500000 : "reserve1"
[    1.605530] 0x00000f500000-0x00000ff00000 : "reserve2"
[    1.622079] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.628901] libphy: Fixed MDIO Bus: probed
[    1.633327] libphy: mdio_driver_register: mv88e6085
[    1.638430] libphy: orion_mdio_bus: probed
[    1.647959] mvneta f1034000.ethernet eth0: Using random mac address 9e:d4:26:33:24:1a
[    1.656016] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.662597] ehci-pci: EHCI PCI platform driver
[    1.667104] ehci-orion: EHCI orion driver
[    1.671447] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.676797] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 1
[    1.684411] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.693022] xhci-hcd f10f0000.usb3: irq 45, io mem 0xf10f0000
[    1.698913] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.705733] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.712997] usb usb1: Product: xHCI Host Controller
[    1.717896] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.724374] usb usb1: SerialNumber: f10f0000.usb3
[    1.729493] hub 1-0:1.0: USB hub found
[    1.733283] hub 1-0:1.0: 1 port detected
[    1.737414] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.742773] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.750358] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.758565] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[    1.759227] ata1: SATA link down (SStatus 0 SControl 320)
[    1.769178] ata2: SATA link down (SStatus 0 SControl 320)
[    1.776247] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.783510] usb usb2: Product: xHCI Host Controller
[    1.788417] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.794885] usb usb2: SerialNumber: f10f0000.usb3
[    1.799970] hub 2-0:1.0: USB hub found
[    1.803756] hub 2-0:1.0: 1 port detected
[    1.807990] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.813338] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 3
[    1.820934] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.829533] xhci-hcd f10f8000.usb3: irq 46, io mem 0xf10f8000
[    1.835396] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
[    1.842352] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.849628] usb usb3: Product: xHCI Host Controller
[    1.854528] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.861005] usb usb3: SerialNumber: f10f8000.usb3
[    1.866073] hub 3-0:1.0: USB hub found
[    1.869872] hub 3-0:1.0: 1 port detected
[    1.874009] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.879362] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.886929] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.895140] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003
[    1.901970] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.909304] usb usb4: Product: xHCI Host Controller
[    1.914203] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.920681] usb usb4: SerialNumber: f10f8000.usb3
[    1.925747] hub 4-0:1.0: USB hub found
[    1.929544] hub 4-0:1.0: 1 port detected
[    1.933779] usbcore: registered new interface driver usblp
[    1.939378] usbcore: registered new interface driver usb-storage
[    1.945598] mousedev: PS/2 mouse device common for all mice
[    1.951814] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.959705] i2c /dev entries driver
[    1.975164] orion_wdt: Initial timeout 171 sec
[    1.981593] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.988978] hidraw: raw HID events driver (C) Jiri Kosina
[    1.994735] usbcore: registered new interface driver usbhid
[    2.000347] usbhid: USB HID core driver
[    2.004365] drop_monitor: Initializing network drop monitor service
[    2.010713] Netfilter messages via NETLINK v0.30.
[    2.015450] ip_set: protocol 6
[    2.018787] NET: Registered protocol family 10
[    2.023821] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.030805] NET: Registered protocol family 17
[    2.035435] 8021q: 802.1Q VLAN Support v1.8
[    2.039770] Key type dns_resolver registered
[    2.044191] ThumbEE CPU extension supported.
[    2.048499] Registering SWP/SWPB emulation handler
[    2.053825] registered taskstats version 1
[    2.057957] Loading compiled-in X.509 certificates
[    2.062804] zswap: loaded using pool lzo/zbud
[    2.111841] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[    2.122562] Key type big_key registered
[    2.130450] Key type encrypted registered
[    2.135579] armada38x-rtc f10a3800.rtc: setting system clock to 2017-07-09 11:21:42 UTC (1499599302)
[    2.145944] Freeing unused kernel memory: 1024K (c0c00000 - c0d00000)
Loading, please wait...
[    2.191854] systemd-udevd[1315]: starting version 215
[    2.198013] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.290290] usb 1-1: New USB device found, idVendor=090c, idProduct=1000
[    2.297041] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.305334] usb 1-1: Product: POLLEX 8G
[    2.309211] usb 1-1: Manufacturer: SRT
[    2.312979] usb 1-1: SerialNumber: 033113111111135234000373
[    2.319103] usb-storage 1-1:1.0: USB Mass Storage device detected
[    2.335489] scsi host2: usb-storage 1-1:1.0
[    2.479908] usbcore: registered new interface driver uas
[    3.368653] scsi 2:0:0:0: Direct-Access     SRT      POLLEX 8G        1100 PQ: 0 ANSI: 4
[    3.379416] sd 2:0:0:0: Attached scsi generic sg0 type 0
[    3.385091] sd 2:0:0:0: [sda] 15728640 512-byte logical blocks: (8.05 GB/7.50 GiB)
[    3.393830] sd 2:0:0:0: [sda] Write Protect is off
[    3.399344] sd 2:0:0:0: [sda] No Caching mode page found
[    3.404681] sd 2:0:0:0: [sda] Assuming drive cache: write through
[    3.413691]  sda: sda1
[    3.418386] sd 2:0:0:0: [sda] Attached SCSI removable disk
[    3.457617] 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.613718] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   17.622373] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
[   17.629297] EXT4-fs (sda1): write access will be enabled during recovery
[   17.671725] EXT4-fs (sda1): recovery complete
[   17.684412] 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[   18.604414] 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.
[   19.905031] 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.
[   21.178679] 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/9e:d4:26:33:24:1a
Sending on   LPF/eth0/9e:d4:26:33:24:1a
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
[   25.368394] mvneta f1034000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   25.376278] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   33.770652] random: crng init done
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
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 40836 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...
2444 (syslogd)
. ok 
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting system message bus: dbus.
[ ok ] Starting periodic command scheduler: cron.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2443 (klogd)
. ok 

Debian GNU/Linux 8 debian ttyS0

debian login:

looks like it boots ok.

Re: Debian on WD MyCloud EX 4100

$
0
0
saschadd,

> the mac adresses seem to be generated at boot.
> i noticed this already in stock firmware that the
> mac adresses seem to be different on every boot.

Yes. That's why you need to specify the real ones inside /etc/network/interfaces. This is a side effect of our setup to protect the DTB from corruption by stock u-boot.

Re: My Cloud Mirror Gen2

$
0
0
debian login: root
Password: 
Last login: Fri Feb  3 22:22:51 PST 2017 from 192.168.0.100 on pts/0
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
 04:26:58 up 5 min,  1 user,  load average: 0.01, 0.06, 0.03
root@debian:~# printenv
SHELL=/bin/bash
TERM=linux
HUSHLOGIN=FALSE
USER=root
MAIL=/var/mail/root
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PWD=/root
SHLVL=1
HOME=/root
LOGNAME=root
_=/usr/bin/printenv
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:~# 

Re: Debian on WD MyCloud EX 4100

$
0
0
bodhi Wrote:
-------------------------------------------------------
> Yes. That's why you need to specify the real ones
> inside /etc/network/interfaces. This is a side eff
> ect of our setup to protect the DTB from corrupti
> on by stock u-boot.

good to know ;)
do i have to do it now or can i just leave it like that for now?

Re: Install Debian on Toshiba Canvio Home NAS

$
0
0
hi,

After updating to linux-4.11.3 the ethernet stopped working with 'Failed to bring up eth0.' I have made some changes to the DTS and it is fixed now, and it is still working ok in 4.4.0 too. The updated DTS, DTB and 4.11.3 boot log are attached.

A couple of notes:
The pinctrll warnings are less and CESA device is registered ok now, thanks for the fixes.

The SPI partitions set out in the DTS would not work in 4.4 but they get setup ok on 4.11. They could be defined in uboot and added as boot args in 4.4 which may be the preferred option anyhow?
setenv mtdids 'nor0=spi0.0'
setenv mtdparts 'mtdparts=spi0.0:504k(uboot),4k(param),4k(param2)'

Esekeyd would not pick up the restart button by default. I had to edit /etc/default/esekeyd to input event0 to get it to work.
DAEMON_OPTS="/etc/esekeyd.conf /dev/input/event0"

The NAS has RTC hardware but no battery so the system time would get messed up when the power was disconnected. I could not find an ready-made way to get around it so ended up using 'fake-hwclock' software which saves the time on shutdown and just edited it slightly so the startup script would update the real hwclock on boot so at least it will have a sane time. It is not connected to the Internet so tvheadend does the time syncing over the DVB-T network.
DATE=$(< /etc/fake-hwclock.data)
hwclock --set --date="$DATE" --utc --noadjfile

I will donate this thing to a family member and not sure how they will treat it so I have set it to do a file check on each boot with boot arg fsck.mode=force and edit /etc/default/rcS with FSCKFIX=yes. I would look into creating a readonly boot image for it if I had more time.

But otherwise it is working ok and quite a good little gadget now with TV tuner and 2Tb storage shared over the network.


Robert

Re: Cloning from SATA to USB rootfs

$
0
0
@Bodhi: I strongly don't recommend using a cp utility to copy/backup a live filesystem as you mentioned above in f section. The reason is simply a live filesystem contains /proc subdirectory whose files may and/or may not be copied (Hint: do a google search on this). If one must use the cp utility to copy/backup a live filesystem, perhaps perusing this discussion thread to learn more about what other copy utility, i.e. rsync, etc., can do in this matter.

FYI, my preference to copy and/or backup a Linux filesystem is to use tar over cp utility, (see my post).

Re: Debian on WD MyCloud EX 4100

$
0
0
saschadd,

> > Yes. That's why you need to specify the real one
> s
> > inside /etc/network/interfaces. This is a side e
> ff
> > ect of our setup to protect the DTB from corrup
> ti
> > on by stock u-boot.
>
> good to know ;)
> do i have to do it now or can i just leave it like
> that for now?

You should set up the network interfaces and use SSH. To make sure things are working OK.

Re: Install Debian on Toshiba Canvio Home NAS

$
0
0
Robert,

> They coul
> d be defined in uboot and added as boot args in 4.
> 4 which may be the preferred option anyhow?
>
> setenv mtdids 'nor0=spi0.0'
> setenv mtdparts 'mtdparts=spi0.0:504k(uboot),4k(pa
> ram),4k(param2)'
>

It is prefered to use bootargs (more flexible)

> Esekeyd would not pick up the restart button by de
> fault. I had to edit /etc/default/esekeyd to input
> event0 to get it to work.
>
> DAEMON_OPTS="/etc/esekeyd.conf /dev/input/event0"
>
>

This might have something to do with the DTS. I'll look to see if I can spot anything.

> But otherwise it is working ok and quite a good li
> ttle gadget now with TV tuner and 2Tb storage shar
> ed over the network.
>

Cool! thanks for the updates.

Re: Install Debian on Toshiba Canvio Home NAS

$
0
0
Robert,

The Reset button looks fine in DTS. So I don't see why it would not work. 2 items to doublecheck

1. Is the GPIO_ACTIVE_LOW correct?

reset {
			    label = "Reset Button";
			    linux,code = <KEY_RESTART>;
			    gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
			};
		};


2. Is the button key name correct?

cat /etc/esekeyd.conf | grep RESTART
RESTART:/usr/bin/logger -s -i "RESTART button pushed"

Re: WD MyCloud Mirror Gen2 (BWVZ, GrandTeton)

$
0
0
kwboot works and debian boots ok. how do I save it to nand?
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'
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 490 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
[    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.000004] 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.019112] Console: colour dummy device 80x30
[    0.023628] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.034036] pid_max: default: 32768 minimum: 301
[    0.038804] Security Framework initialized
[    0.043006] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049681] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.057258] CPU: Testing write buffer coherency: ok
[    0.062350] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.068091] Setting up static identity map for 0x100000 - 0x100058
[    0.074521] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.079804] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283604] Booting CPU 1
[    0.286475] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.286532] Brought up 2 CPUs
[    0.295294] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.301614] CPU: All CPU(s) started in SVC mode.
[    0.306885] devtmpfs: initialized
[    0.312771] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320755] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330692] prandom: seed boundary self test passed
[    0.337655] prandom: 100 self tests passed
[    0.341816] pinctrl core: initialized pinctrl subsystem
[    0.347850] NET: Registered protocol family 16
[    0.353009] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.383453] cpuidle: using governor ladder
[    0.413420] cpuidle: using governor menu
[    0.417536] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.425610] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.483819] vgaarb: loaded
[    0.486858] SCSI subsystem initialized
[    0.491156] usbcore: registered new interface driver usbfs
[    0.496812] usbcore: registered new interface driver hub
[    0.502247] usbcore: registered new device driver usb
[    0.507598] media: Linux media interface: v0.10
[    0.512242] Linux video capture interface: v2.00
[    0.517922] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.554187] VFS: Disk quotas dquot_6.6.0
[    0.558258] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.573535] NET: Registered protocol family 2
[    0.578403] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.585545] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.592140] TCP: Hash tables configured (established 8192 bind 8192)
[    0.598601] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.604596] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.611149] NET: Registered protocol family 1
[    0.615837] RPC: Registered named UNIX socket transport module.
[    0.621830] RPC: Registered udp transport module.
[    0.626596] RPC: Registered tcp transport module.
[    0.631385] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.638023] Unpacking initramfs...
[    0.885851] Freeing initrd memory: 6068K (c2900000 - c2eed000)
[    0.891957] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.898730] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.908074] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.914285] audit: initializing netlink subsys (disabled)
[    0.919790] audit: type=2000 audit(0.910:1): initialized
[    0.925621] Initialise system trusted keyrings
[    0.930300] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.936870] zbud: loaded
[    0.940049] NFS: Registering the id_resolver key type
[    0.945171] Key type id_resolver registered
[    0.949436] Key type id_legacy registered
[    0.953517] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.960281] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.966845] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.974289] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.980927] orangefs_init: module version upstream loaded
[    0.988534] Key type asymmetric registered
[    0.992698] Asymmetric key parser 'x509' registered
[    0.997667] bounce: pool size: 64 pages
[    1.001667] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    1.009126] io scheduler noop registered
[    1.013114] io scheduler deadline registered
[    1.017463] io scheduler cfq registered (default)
[    1.023155] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.031823] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    1.038772] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.045095] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.052034] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.058042] PCI: bus0: Fast back to back transfers disabled
[    1.063679] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.071751] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.079932] PCI: bus1: Fast back to back transfers enabled
[    1.085607] PCI: bus2: Fast back to back transfers enabled
[    1.091211] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.096242] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.101767] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.168404] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.176022] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.238391] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.296777] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.304734] console [ttyS0] disabled
[    1.328476] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 23, base_baud = 12500000) is a 16550A
[    1.337504] console [ttyS0] enabled
[    1.337504] console [ttyS0] enabled
[    1.344604] bootconsole [earlycon0] disabled
[    1.344604] bootconsole [earlycon0] disabled
[    1.373980] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 24, base_baud = 12500000) is a 16550A
[    1.383998] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.393108] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    1.402790] scsi host0: ahci-mvebu
[    1.406516] scsi host1: ahci-mvebu
[    1.410173] ata1: FORCE: PHY spd limit set to 3.0Gbps
[    1.415249] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.423212] ata2: FORCE: PHY spd limit set to 3.0Gbps
[    1.428295] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.436787] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.444695] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xda
[    1.451091] nand: Hynix H27U2G8F2CTR-BC
[    1.454945] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.462560] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.469769] Bad block table found at page 131008, version 0x01
[    1.475967] Bad block table found at page 130944, version 0x01
[    1.482069] 8 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.488200] Creating 8 MTD partitions on "pxa3xx_nand-0":
[    1.493627] 0x000000000000-0x000000500000 : "U-Boot"
[    1.509457] 0x000000500000-0x000000a00000 : "uImage"
[    1.525183] 0x000000a00000-0x000000f00000 : "uRamdisk"
[    1.541078] 0x000000f00000-0x00000c800000 : "image.cfs"
[    1.557798] 0x00000c800000-0x00000d700000 : "rescue fw"
[    1.573813] 0x00000d700000-0x00000eb00000 : "config"
[    1.589607] 0x00000eb00000-0x00000f500000 : "reserve1"
[    1.605530] 0x00000f500000-0x00000ff00000 : "reserve2"
[    1.622079] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.628901] libphy: Fixed MDIO Bus: probed
[    1.633327] libphy: mdio_driver_register: mv88e6085
[    1.638430] libphy: orion_mdio_bus: probed
[    1.647959] mvneta f1034000.ethernet eth0: Using random mac address 9e:d4:26:33:24:1a
[    1.656016] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.662597] ehci-pci: EHCI PCI platform driver
[    1.667104] ehci-orion: EHCI orion driver
[    1.671447] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.676797] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 1
[    1.684411] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.693022] xhci-hcd f10f0000.usb3: irq 45, io mem 0xf10f0000
[    1.698913] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.705733] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.712997] usb usb1: Product: xHCI Host Controller
[    1.717896] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.724374] usb usb1: SerialNumber: f10f0000.usb3
[    1.729493] hub 1-0:1.0: USB hub found
[    1.733283] hub 1-0:1.0: 1 port detected
[    1.737414] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.742773] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.750358] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.758565] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[    1.759227] ata1: SATA link down (SStatus 0 SControl 320)
[    1.769178] ata2: SATA link down (SStatus 0 SControl 320)
[    1.776247] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.783510] usb usb2: Product: xHCI Host Controller
[    1.788417] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.794885] usb usb2: SerialNumber: f10f0000.usb3
[    1.799970] hub 2-0:1.0: USB hub found
[    1.803756] hub 2-0:1.0: 1 port detected
[    1.807990] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.813338] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 3
[    1.820934] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.829533] xhci-hcd f10f8000.usb3: irq 46, io mem 0xf10f8000
[    1.835396] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
[    1.842352] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.849628] usb usb3: Product: xHCI Host Controller
[    1.854528] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.861005] usb usb3: SerialNumber: f10f8000.usb3
[    1.866073] hub 3-0:1.0: USB hub found
[    1.869872] hub 3-0:1.0: 1 port detected
[    1.874009] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.879362] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.886929] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.895140] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003
[    1.901970] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.909304] usb usb4: Product: xHCI Host Controller
[    1.914203] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.920681] usb usb4: SerialNumber: f10f8000.usb3
[    1.925747] hub 4-0:1.0: USB hub found
[    1.929544] hub 4-0:1.0: 1 port detected
[    1.933779] usbcore: registered new interface driver usblp
[    1.939378] usbcore: registered new interface driver usb-storage
[    1.945598] mousedev: PS/2 mouse device common for all mice
[    1.951814] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.959705] i2c /dev entries driver
[    1.975164] orion_wdt: Initial timeout 171 sec
[    1.981593] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.988978] hidraw: raw HID events driver (C) Jiri Kosina
[    1.994735] usbcore: registered new interface driver usbhid
[    2.000347] usbhid: USB HID core driver
[    2.004365] drop_monitor: Initializing network drop monitor service
[    2.010713] Netfilter messages via NETLINK v0.30.
[    2.015450] ip_set: protocol 6
[    2.018787] NET: Registered protocol family 10
[    2.023821] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.030805] NET: Registered protocol family 17
[    2.035435] 8021q: 802.1Q VLAN Support v1.8
[    2.039770] Key type dns_resolver registered
[    2.044191] ThumbEE CPU extension supported.
[    2.048499] Registering SWP/SWPB emulation handler
[    2.053825] registered taskstats version 1
[    2.057957] Loading compiled-in X.509 certificates
[    2.062804] zswap: loaded using pool lzo/zbud
[    2.111841] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[    2.122562] Key type big_key registered
[    2.130450] Key type encrypted registered
[    2.135579] armada38x-rtc f10a3800.rtc: setting system clock to 2017-07-09 11:21:42 UTC (1499599302)
[    2.145944] Freeing unused kernel memory: 1024K (c0c00000 - c0d00000)
Loading, please wait...
[    2.191854] systemd-udevd[1315]: starting version 215
[    2.198013] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.290290] usb 1-1: New USB device found, idVendor=090c, idProduct=1000
[    2.297041] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.305334] usb 1-1: Product: POLLEX 8G
[    2.309211] usb 1-1: Manufacturer: SRT
[    2.312979] usb 1-1: SerialNumber: 033113111111135234000373
[    2.319103] usb-storage 1-1:1.0: USB Mass Storage device detected
[    2.335489] scsi host2: usb-storage 1-1:1.0
[    2.479908] usbcore: registered new interface driver uas
[    3.368653] scsi 2:0:0:0: Direct-Access     SRT      POLLEX 8G        1100 PQ: 0 ANSI: 4
[    3.379416] sd 2:0:0:0: Attached scsi generic sg0 type 0
[    3.385091] sd 2:0:0:0: [sda] 15728640 512-byte logical blocks: (8.05 GB/7.50 GiB)
[    3.393830] sd 2:0:0:0: [sda] Write Protect is off
[    3.399344] sd 2:0:0:0: [sda] No Caching mode page found
[    3.404681] sd 2:0:0:0: [sda] Assuming drive cache: write through
[    3.413691]  sda: sda1
[    3.418386] sd 2:0:0:0: [sda] Attached SCSI removable disk
[    3.457617] 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.613718] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   17.622373] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
[   17.629297] EXT4-fs (sda1): write access will be enabled during recovery
[   17.671725] EXT4-fs (sda1): recovery complete
[   17.684412] 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[   18.604414] 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.
[   19.905031] 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.
[   21.178679] 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/9e:d4:26:33:24:1a
Sending on   LPF/eth0/9e:d4:26:33:24:1a
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
[   25.368394] mvneta f1034000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   25.376278] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   33.770652] random: crng init done
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
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 40836 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...
2444 (syslogd)
. ok 
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting system message bus: dbus.
[ ok ] Starting periodic command scheduler: cron.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2443 (klogd)
. ok 

Debian GNU/Linux 8 debian ttyS0

debian login: root
Password: 
Last login: Fri Feb  3 22:22:51 PST 2017 from 192.168.0.100 on pts/0
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
 04:26:58 up 5 min,  1 user,  load average: 0.01, 0.06, 0.03
root@debian:~# printenv
SHELL=/bin/bash
TERM=linux
HUSHLOGIN=FALSE
USER=root
MAIL=/var/mail/root
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
PWD=/root
SHLVL=1
HOME=/root
LOGNAME=root
_=/usr/bin/printenv
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:~# 

Re: Cloning from SATA to USB rootfs

$
0
0
habibie,

As the saying goes: a little knowledge is a dangerous thing. But since we are only doing this as hobby, no harm will be caused by your advice, only some wasted time googling :))

Re: My Cloud Mirror Gen2

$
0
0
mcmg2,

It looks fine. But you should try to get rid of that DTS error in dmesg.

Re: Install Debian on Toshiba Canvio Home NAS

$
0
0
hi Bodhi,

The reset button is working as expected so the DTS settings should be ok.

I got caught out because I thought esekeyd listened on all input/events but it just would not respond to the button push. Once I told it specifically event0 with the DAEMON_OPTS= then it worked as expected. Learnkeys finds RESTART(press): and RESTART(release):



Robert

Re: My Cloud Mirror Gen2

$
0
0
sorry, I am not linux user, I just followed your instruction so please advise me how to save env and remove error in mtd.

Debian GNU/Linux 8 debian ttyS0

debian login: root
Password: 
Last login: Sun Jul  9 04:26:58 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
 15:06:04 up 0 min,  1 user,  load average: 0.45, 0.11, 0.04
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
[    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.000004] 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.019110] Console: colour dummy device 80x30
[    0.023626] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.034034] pid_max: default: 32768 minimum: 301
[    0.038802] Security Framework initialized
[    0.043004] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049679] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.057255] 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.074522] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.079806] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283605] Booting CPU 1
[    0.286476] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.286533] Brought up 2 CPUs
[    0.295295] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.301616] CPU: All CPU(s) started in SVC mode.
[    0.306884] devtmpfs: initialized
[    0.312798] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320782] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330722] prandom: seed boundary self test passed
[    0.337684] prandom: 100 self tests passed
[    0.341846] pinctrl core: initialized pinctrl subsystem
[    0.347879] NET: Registered protocol family 16
[    0.353056] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.383455] cpuidle: using governor ladder
[    0.413422] cpuidle: using governor menu
[    0.417538] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.425611] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.483820] vgaarb: loaded
[    0.486860] SCSI subsystem initialized
[    0.490846] libata version 3.00 loaded.
[    0.491164] usbcore: registered new interface driver usbfs
[    0.496819] usbcore: registered new interface driver hub
[    0.502254] usbcore: registered new device driver usb
[    0.507605] media: Linux media interface: v0.10
[    0.512250] Linux video capture interface: v2.00
[    0.517929] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.554105] VFS: Disk quotas dquot_6.6.0
[    0.558178] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.573486] NET: Registered protocol family 2
[    0.578361] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.585501] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.592101] TCP: Hash tables configured (established 8192 bind 8192)
[    0.598563] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.604558] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.611111] NET: Registered protocol family 1
[    0.615817] RPC: Registered named UNIX socket transport module.
[    0.621812] RPC: Registered udp transport module.
[    0.626577] RPC: Registered tcp transport module.
[    0.631367] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.637864] PCI: CLS 0 bytes, default 64
[    0.638007] Unpacking initramfs...
[    0.886072] Freeing initrd memory: 6068K (c2900000 - c2eed000)
[    0.892176] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.898948] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.908282] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.914495] audit: initializing netlink subsys (disabled)
[    0.920009] audit: type=2000 audit(0.910:1): initialized
[    0.925840] Initialise system trusted keyrings
[    0.930527] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.937093] zbud: loaded
[    0.940278] NFS: Registering the id_resolver key type
[    0.945398] Key type id_resolver registered
[    0.949665] Key type id_legacy registered
[    0.953747] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.960530] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.967094] jffs2: version 2.2. (NAND) (SUMMARY)  \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.
[    0.974546] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.981197] orangefs_init: module version upstream loaded
[    0.988875] Key type asymmetric registered
[    0.993038] Asymmetric key parser 'x509' registered
[    0.998035] bounce: pool size: 64 pages
[    1.002021] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    1.009478] io scheduler noop registered
[    1.013467] io scheduler deadline registered
[    1.017814] io scheduler cfq registered (default)
[    1.023527] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.032205] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    1.039167] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.045491] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.052430] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.057995] pci_bus 0000:00: scanning bus
[    1.058021] pci 0000:00:01.0: [11ab:6820] type 01 class 0x060400
[    1.058052] pci 0000:00:01.0: calling pci_fixup_ide_bases+0x0/0x3c
[    1.058243] pci 0000:00:02.0: [11ab:6820] type 01 class 0x060400
[    1.058267] pci 0000:00:02.0: calling pci_fixup_ide_bases+0x0/0x3c
[    1.058436] pci_bus 0000:00: fixups for bus
[    1.058445] PCI: bus0: Fast back to back transfers disabled
[    1.064079] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 0
[    1.064084] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.072152] pci 0000:00:02.0: scanning [bus 00-00] behind bridge, pass 0
[    1.072157] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.080233] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 1
[    1.080344] pci_bus 0000:01: scanning bus
[    1.080350] pci_bus 0000:01: fixups for bus
[    1.080354] PCI: bus1: Fast back to back transfers enabled
[    1.085898] pci_bus 0000:01: bus scan returning with max=01
[    1.085904] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.085912] pci 0000:00:02.0: scanning [bus 00-00] behind bridge, pass 1
[    1.086020] pci_bus 0000:02: scanning bus
[    1.086027] pci_bus 0000:02: fixups for bus
[    1.086030] PCI: bus2: Fast back to back transfers enabled
[    1.091590] pci_bus 0000:02: bus scan returning with max=02
[    1.091596] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[    1.091602] pci_bus 0000:00: bus scan returning with max=02
[    1.091608] pci 0000:00:01.0: fixup irq: got 0
[    1.091613] pci 0000:00:01.0: assigning IRQ 00
[    1.091618] pci 0000:00:02.0: fixup irq: got 0
[    1.091622] pci 0000:00:02.0: assigning IRQ 00
[    1.091637] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.096667] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.101757] pcieport 0000:00:01.0: enabling bus mastering
[    1.101798] pcieport 0000:00:02.0: enabling bus mastering
[    1.102211] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.168406] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.176025] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.238413] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.297457] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.305365] console [ttyS0] disabled
[    1.329126] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 23, base_baud = 12500000) is a 16550A
[    1.338168] console [ttyS0] enabled
[    1.345256] bootconsole [earlycon0] disabled
[    1.374600] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 24, base_baud = 12500000) is a 16550A
[    1.384639] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.393764] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    1.403463] scsi host0: ahci-mvebu
[    1.407196] scsi host1: ahci-mvebu
[    1.410870] ata1: FORCE: PHY spd limit set to 3.0Gbps
[    1.415945] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.423909] ata2: FORCE: PHY spd limit set to 3.0Gbps
[    1.429005] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.437495] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.445406] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xda
[    1.451815] nand: Hynix H27U2G8F2CTR-BC
[    1.455670] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.463285] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.470505] Bad block table found at page 131008, version 0x01
[    1.476707] Bad block table found at page 130944, version 0x01
[    1.482805] 8 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.488949] Creating 8 MTD partitions on "pxa3xx_nand-0":
[    1.494379] 0x000000000000-0x000000500000 : "U-Boot"
[    1.500192] 0x000000500000-0x000000a00000 : "uImage"
[    1.515918] 0x000000a00000-0x000000f00000 : "uRamdisk"
[    1.531804] 0x000000f00000-0x00000c800000 : "image.cfs"
[    1.548574] 0x00000c800000-0x00000d700000 : "rescue fw"
[    1.564570] 0x00000d700000-0x00000eb00000 : "config"
[    1.580372] 0x00000eb00000-0x00000f500000 : "reserve1"
[    1.596296] 0x00000f500000-0x00000ff00000 : "reserve2"
[    1.612850] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.619676] libphy: Fixed MDIO Bus: probed
[    1.624107] libphy: mdio_driver_register: mv88e6085
[    1.629218] libphy: orion_mdio_bus: probed
[    1.638634] mvneta f1034000.ethernet eth0: Using random mac address 26:f4:94:97:3a:55
[    1.646688] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.653332] ehci-pci: EHCI PCI platform driver
[    1.657843] ehci-orion: EHCI orion driver
[    1.662210] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.667560] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 1
[    1.675186] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.683795] xhci-hcd f10f0000.usb3: irq 45, io mem 0xf10f0000
[    1.689693] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.696514] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.703779] usb usb1: Product: xHCI Host Controller
[    1.708698] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.715166] usb usb1: SerialNumber: f10f0000.usb3
[    1.720284] hub 1-0:1.0: USB hub found
[    1.724073] hub 1-0:1.0: 1 port detected
[    1.728236] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.733579] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.741171] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.749386] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[    1.756205] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.763469] usb usb2: Product: xHCI Host Controller
[    1.768388] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.769220] ata1: SATA link down (SStatus 0 SControl 320)
[    1.779167] ata2: SATA link down (SStatus 0 SControl 320)
[    1.785716] usb usb2: SerialNumber: f10f0000.usb3
[    1.790825] hub 2-0:1.0: USB hub found
[    1.794608] hub 2-0:1.0: 1 port detected
[    1.798835] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.804183] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 3
[    1.811796] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.820394] xhci-hcd f10f8000.usb3: irq 46, io mem 0xf10f8000
[    1.826256] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
[    1.833111] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.840418] usb usb3: Product: xHCI Host Controller
[    1.845318] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.851807] usb usb3: SerialNumber: f10f8000.usb3
[    1.856881] hub 3-0:1.0: USB hub found
[    1.860677] hub 3-0:1.0: 1 port detected
[    1.864811] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.870180] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.877750] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.885955] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003
[    1.892795] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.900058] usb usb4: Product: xHCI Host Controller
[    1.904958] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.911512] usb usb4: SerialNumber: f10f8000.usb3
[    1.916578] hub 4-0:1.0: USB hub found
[    1.920374] hub 4-0:1.0: 1 port detected
[    1.924605] usbcore: registered new interface driver usblp
[    1.930219] usbcore: registered new interface driver usb-storage
[    1.936449] mousedev: PS/2 mouse device common for all mice
[    1.942548] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.950557] i2c /dev entries driver
[    1.966025] orion_wdt: Initial timeout 171 sec
[    1.972513] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.979898] hidraw: raw HID events driver (C) Jiri Kosina
[    1.985641] usbcore: registered new interface driver usbhid
[    1.991268] usbhid: USB HID core driver
[    1.995279] drop_monitor: Initializing network drop monitor service
[    2.001621] Netfilter messages via NETLINK v0.30.
[    2.006371] ip_set: protocol 6
[    2.009662] NET: Registered protocol family 10
[    2.014704] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.021751] NET: Registered protocol family 17
[    2.026382] 8021q: 802.1Q VLAN Support v1.8
[    2.030722] Key type dns_resolver registered
[    2.035142] ThumbEE CPU extension supported.
[    2.039449] Registering SWP/SWPB emulation handler
[    2.044766] registered taskstats version 1
[    2.048911] Loading compiled-in X.509 certificates
[    2.053758] zswap: loaded using pool lzo/zbud
[    2.107349] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[    2.118237] Key type big_key registered
[    2.126212] Key type encrypted registered
[    2.131464] armada38x-rtc f10a3800.rtc: setting system clock to 2017-07-09 22:05:11 UTC (1499637911)
[    2.140742] PM: Hibernation image not present or could not be loaded.
[    2.141848] Freeing unused kernel memory: 1024K (c0c00000 - c0d00000)
[    2.187150] systemd-udevd[1315]: starting version 215
[    2.193305] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.280324] usb 1-1: New USB device found, idVendor=090c, idProduct=1000
[    2.287062] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.294385] usb 1-1: Product: POLLEX 8G
[    2.305426] usb 1-1: Manufacturer: SRT
[    2.309219] usb 1-1: SerialNumber: 033113111111135234000373
[    2.322215] usb-storage 1-1:1.0: USB Mass Storage device detected
[    2.336489] scsi host2: usb-storage 1-1:1.0
[    2.494070] usbcore: registered new interface driver uas
[    3.368671] scsi 2:0:0:0: Direct-Access     SRT      POLLEX 8G        1100 PQ: 0 ANSI: 4
[    3.379375] sd 2:0:0:0: Attached scsi generic sg0 type 0
[    3.386387] sd 2:0:0:0: [sda] 15728640 512-byte logical blocks: (8.05 GB/7.50 GiB)
[    3.395036] sd 2:0:0:0: [sda] Write Protect is off
[    3.399885] sd 2:0:0:0: [sda] Mode Sense: 43 00 00 00
[    3.400540] sd 2:0:0:0: [sda] No Caching mode page found
[    3.405877] sd 2:0:0:0: [sda] Assuming drive cache: write through
[    3.415158]  sda: sda1
[    3.423907] sd 2:0:0:0: [sda] Attached SCSI removable disk
[    3.465622] random: fast init done
[   17.613701] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   17.631296] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[   18.553428] systemd-udevd[1520]: starting version 215
[   19.943773] EXT4-fs (sda1): re-mounted. Opts: (null)
[   21.208663] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   25.368402] mvneta f1034000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   25.376287] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   34.402777] random: crng init done

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 % [......................................................................]
 14 % [......................................................................]
 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 % [......................................................................]
 75 % [......................................................................]
 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'
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
[    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.000004] 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.023628] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.034036] pid_max: default: 32768 minimum: 301
[    0.038805] Security Framework initialized
[    0.043006] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049681] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.057258] CPU: Testing write buffer coherency: ok
[    0.062352] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.068095] Setting up static identity map for 0x100000 - 0x100058
[    0.074525] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.079809] mvebu-pmsu: Initializing Power Management Service Unit
[    0.283605] Booting CPU 1
[    0.286476] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.286533] Brought up 2 CPUs
[    0.295294] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.301615] CPU: All CPU(s) started in SVC mode.
[    0.306883] devtmpfs: initialized
[    0.312773] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.320760] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.330698] prandom: seed boundary self test passed
[    0.337660] prandom: 100 self tests passed
[    0.341821] pinctrl core: initialized pinctrl subsystem
[    0.347860] NET: Registered protocol family 16
[    0.353037] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.383454] cpuidle: using governor ladder
[    0.413422] cpuidle: using governor menu
[    0.417537] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.425610] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.483818] vgaarb: loaded
[    0.486861] SCSI subsystem initialized
[    0.491165] usbcore: registered new interface driver usbfs
[    0.496821] usbcore: registered new interface driver hub
[    0.502256] usbcore: registered new device driver usb
[    0.507608] media: Linux media interface: v0.10
[    0.512252] Linux video capture interface: v2.00
[    0.517934] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.554085] VFS: Disk quotas dquot_6.6.0
[    0.558157] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.573487] NET: Registered protocol family 2
[    0.578360] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.585501] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.592102] TCP: Hash tables configured (established 8192 bind 8192)
[    0.598565] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.604560] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.611118] NET: Registered protocol family 1
[    0.615811] RPC: Registered named UNIX socket transport module.
[    0.621809] RPC: Registered udp transport module.
[    0.626575] RPC: Registered tcp transport module.
[    0.631366] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.638008] Unpacking initramfs...
[    0.885762] Freeing initrd memory: 6068K (c2900000 - c2eed000)
[    0.891867] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.898641] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.907979] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.914190] audit: initializing netlink subsys (disabled)
[    0.919700] audit: type=2000 audit(0.910:1): initialized
[    0.925528] Initialise system trusted keyrings
[    0.930217] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.936786] zbud: loaded
[    0.939974] NFS: Registering the id_resolver key type
[    0.945094] Key type id_resolver registered
[    0.949361] Key type id_legacy registered
[    0.953442] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.960225] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.966789] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.974241] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.980888] orangefs_init: module version upstream loaded
[    0.988524] Key type asymmetric registered
[    0.992687] Asymmetric key parser 'x509' registered
[    0.997656] bounce: pool size: 64 pages
[    1.001667] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    1.009124] io scheduler noop registered
[    1.013113] io scheduler deadline registered
[    1.017460] io scheduler cfq registered (default)
[    1.023173] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    1.031843] mvebu-pcie soc:pcie-controller: PCI host bridge to bus 0000:00
[    1.038807] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    1.045131] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    1.052070] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.058099] PCI: bus0: Fast back to back transfers disabled
[    1.063737] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.071807] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.080004] PCI: bus1: Fast back to back transfers enabled
[    1.085679] PCI: bus2: Fast back to back transfers enabled
[    1.091285] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.096316] pci 0000:00:02.0: PCI bridge to [bus 02]
[    1.101854] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.168408] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.176027] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.238419] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    1.296650] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    1.304565] console [ttyS0] disabled
[    1.328335] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 23, base_baud = 12500000) is a 16550A
[    1.337363] console [ttyS0] enabled
[    1.337363] console [ttyS0] enabled
[    1.344466] bootconsole [earlycon0] disabled
[    1.344466] bootconsole [earlycon0] disabled
[    1.373870] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 24, base_baud = 12500000) is a 16550A
[    1.383916] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.393042] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    1.402745] scsi host0: ahci-mvebu
[    1.406480] scsi host1: ahci-mvebu
[    1.410155] ata1: FORCE: PHY spd limit set to 3.0Gbps
[    1.415231] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 42
[    1.423195] ata2: FORCE: PHY spd limit set to 3.0Gbps
[    1.428290] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 42
[    1.436777] pxa3xx-nand f10d0000.flash: This platform can't do DMA on this device
[    1.444673] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xda
[    1.451080] nand: Hynix H27U2G8F2CTR-BC
[    1.454933] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.462547] pxa3xx-nand f10d0000.flash: ECC strength 16, ECC step size 2048
[    1.469768] Bad block table found at page 131008, version 0x01
[    1.475969] Bad block table found at page 130944, version 0x01
[    1.482068] 8 ofpart partitions found on MTD device pxa3xx_nand-0
[    1.488212] Creating 8 MTD partitions on "pxa3xx_nand-0":
[    1.493640] 0x000000000000-0x000000500000 : "U-Boot"
[    1.509469] 0x000000500000-0x000000a00000 : "uImage"
[    1.525206] 0x000000a00000-0x000000f00000 : "uRamdisk"
[    1.541109] 0x000000f00000-0x00000c800000 : "image.cfs"
[    1.557873] 0x00000c800000-0x00000d700000 : "rescue fw"
[    1.573889] 0x00000d700000-0x00000eb00000 : "config"
[    1.589677] 0x00000eb00000-0x00000f500000 : "reserve1"
[    1.605600] 0x00000f500000-0x00000ff00000 : "reserve2"
[    1.622162] m25p80 spi0.0: unrecognized JEDEC id bytes: ff, ff, ff
[    1.628987] libphy: Fixed MDIO Bus: probed
[    1.633415] libphy: mdio_driver_register: mv88e6085
[    1.638566] libphy: orion_mdio_bus: probed
[    1.648239] mvneta f1034000.ethernet eth0: Using random mac address 76:53:1c:88:3e:39
[    1.656293] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.662890] ehci-pci: EHCI PCI platform driver
[    1.667399] ehci-orion: EHCI orion driver
[    1.671766] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.677116] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 1
[    1.684745] xhci-hcd f10f0000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.693349] xhci-hcd f10f0000.usb3: irq 45, io mem 0xf10f0000
[    1.699244] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.706064] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.713330] usb usb1: Product: xHCI Host Controller
[    1.718255] usb usb1: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.724723] usb usb1: SerialNumber: f10f0000.usb3
[    1.729840] hub 1-0:1.0: USB hub found
[    1.733633] hub 1-0:1.0: 1 port detected
[    1.737765] xhci-hcd f10f0000.usb3: xHCI Host Controller
[    1.743136] xhci-hcd f10f0000.usb3: new USB bus registered, assigned bus number 2
[    1.750721] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.758936] usb usb2: New USB device found, idVendor=1d6b, idProduct=0003
[    1.759241] ata1: SATA link down (SStatus 0 SControl 320)
[    1.769195] ata2: SATA link down (SStatus 0 SControl 320)
[    1.776617] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.783891] usb usb2: Product: xHCI Host Controller
[    1.788798] usb usb2: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.795267] usb usb2: SerialNumber: f10f0000.usb3
[    1.800363] hub 2-0:1.0: USB hub found
[    1.804148] hub 2-0:1.0: 1 port detected
[    1.808381] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.813729] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 3
[    1.821340] xhci-hcd f10f8000.usb3: hcc params 0x0a000990 hci version 0x100 quirks 0x00010010
[    1.829955] xhci-hcd f10f8000.usb3: irq 46, io mem 0xf10f8000
[    1.835815] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
[    1.842698] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.849966] usb usb3: Product: xHCI Host Controller
[    1.854865] usb usb3: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.861353] usb usb3: SerialNumber: f10f8000.usb3
[    1.866417] hub 3-0:1.0: USB hub found
[    1.870217] hub 3-0:1.0: 1 port detected
[    1.874352] xhci-hcd f10f8000.usb3: xHCI Host Controller
[    1.879719] xhci-hcd f10f8000.usb3: new USB bus registered, assigned bus number 4
[    1.887286] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    1.895491] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003
[    1.902331] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.909593] usb usb4: Product: xHCI Host Controller
[    1.914492] usb usb4: Manufacturer: Linux 4.9.0-mvebu-tld-12 xhci-hcd
[    1.921046] usb usb4: SerialNumber: f10f8000.usb3
[    1.926112] hub 4-0:1.0: USB hub found
[    1.929910] hub 4-0:1.0: 1 port detected
[    1.934145] usbcore: registered new interface driver usblp
[    1.939758] usbcore: registered new interface driver usb-storage
[    1.945979] mousedev: PS/2 mouse device common for all mice
[    1.952178] armada38x-rtc f10a3800.rtc: rtc core: registered f10a3800.rtc as rtc0
[    1.960015] i2c /dev entries driver
[    1.975495] orion_wdt: Initial timeout 171 sec
[    1.981937] marvell-cesa f1090000.crypto: CESA device successfully registered
[    1.989321] hidraw: raw HID events driver (C) Jiri Kosina
[    1.995066] usbcore: registered new interface driver usbhid
[    2.000693] usbhid: USB HID core driver
[    2.004709] drop_monitor: Initializing network drop monitor service
[    2.011056] Netfilter messages via NETLINK v0.30.
[    2.015794] ip_set: protocol 6
[    2.019135] NET: Registered protocol family 10
[    2.024171] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
[    2.031157] NET: Registered protocol family 17
[    2.035786] 8021q: 802.1Q VLAN Support v1.8
[    2.040127] Key type dns_resolver registered
[    2.044548] ThumbEE CPU extension supported.
[    2.048853] Registering SWP/SWPB emulation handler
[    2.054175] registered taskstats version 1
[    2.058322] Loading compiled-in X.509 certificates
[    2.063171] zswap: loaded using pool lzo/zbud
[    2.113358] usb 1-1: new high-speed USB device number 2 using xhci-hcd
[    2.124170] Key type big_key registered
[    2.132011] Key type encrypted registered
[    2.137126] armada38x-rtc f10a3800.rtc: setting system clock to 2017-07-10 00:49:28 UTC (1499647768)
[    2.147495] Freeing unused kernel memory: 1024K (c0c00000 - c0d00000)
Loading, please wait...
[    2.193697] systemd-udevd[1315]: starting version 215
[    2.199854] random: systemd-udevd: uninitialized urandom read (16 bytes read)
[    2.290307] usb 1-1: New USB device found, idVendor=090c, idProduct=1000
[    2.297046] usb 1-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.305674] usb 1-1: Product: POLLEX 8G
[    2.309574] usb 1-1: Manufacturer: SRT
[    2.313342] usb 1-1: SerialNumber: 033113111111135234000373
[    2.319569] usb-storage 1-1:1.0: USB Mass Storage device detected
[    2.335935] scsi host2: usb-storage 1-1:1.0
[    2.520679] usbcore: registered new interface driver uas
[    3.368683] scsi 2:0:0:0: Direct-Access     SRT      POLLEX 8G        1100 PQ: 0 ANSI: 4
[    3.379192] sd 2:0:0:0: Attached scsi generic sg0 type 0
[    3.386224] sd 2:0:0:0: [sda] 15728640 512-byte logical blocks: (8.05 GB/7.50 GiB)
[    3.394520] sd 2:0:0:0: [sda] Write Protect is off
[    3.400023] sd 2:0:0:0: [sda] No Caching mode page found
[    3.405359] sd 2:0:0:0: [sda] Assuming drive cache: write through
[    3.414537]  sda: sda1
[    3.422727] sd 2:0:0:0: [sda] Attached SCSI removable disk
[    3.464876] 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.653681] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[   17.671227] 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[   18.584624] 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.
[   19.349714] 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.
[   20.618695] 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/76:53:1c:88:3e:39
Sending on   LPF/eth0/76:53:1c:88:3e:39
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
[   24.808400] mvneta f1034000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
[   24.816284] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
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 33883 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...
2453 (syslogd)
. ok 
[ ok ] Starting periodic command scheduler: cron.
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[....] Starting system message b[   29.108726] random: crng init done
[ ok bus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
2451 (klogd)
. ok 

Debian GNU/Linux 8 debian ttyS0

debian login:

even without the patch, it boots ok.

./kwboot -f -t -B 115200 /dev/ttyUSB0 -b u-boot-a38x-GrandTeton_2014T3_PQ-nand-uart.bin -s 0 -q 1

Re: Install Debian on Toshiba Canvio Home NAS

$
0
0
Robert,

I understood that from what you said before. But I found it strange that esekeyd does not sense RESTART button where it should. This usually is related to the GPIO. You have the gpio_key and the button defined in the DTS. It looks fine to me.

reset {
			    label = "Reset Button";
			    linux,code = <KEY_RESTART>;
			    gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
			};
		};

	gpio_keys {
		compatible = "gpio-keys";
		#address-cells = <1>;
		#size-cells = <0>;
        pinctrl-0 = <&pmx_reset_button>;
		pinctrl-names = "default";
		
            reset {
			    label = "Reset Button";
			    linux,code = <KEY_RESTART>;
			    gpios = <&gpio0 21 GPIO_ACTIVE_LOW>;
			};
		};

So by this definition, esekeyd should have been triggered by the GPIO 21. And the RESTART button action should have executed some_script as esekeyd.conf specified. There should be no input event processing needed.

/etc/esekeyd.conf
RESTART:some_script

Have you tried playing with this GPIO?
gpios = <&gpio0 21 GPIO_ACTIVE_HIGH>;

Re: My Cloud Mirror Gen2

$
0
0
mcmg2,

> sorry, I am not linux user, I just followed your i
> nstruction so please advise me how to save env and
> remove error in mtd.

hmartin is the thread starter and has been helping you. So it is bad form for me to take over this role :) let him help you. I'll be glad to answer questions when asked. Only when hmartin can no longer do this then I might jump in and help.

Besides, I'm still have some unfinished issues in the WD MYCloud EX4100 thread:
http://forum.doozan.com/read.php?2,34103,35397#msg-35397

Re: Migrating Debian rootfs from Ext3 to Ext4 file system

$
0
0
Had another death nearby, torn-up but we all got to go sometime. And someday when my life flashes before my eyes, I hope to see it migrated LOL So I'll prep this week again and read what you posted above. I stopped by to beg time and thanks once again :-)
Viewing all 46958 articles
Browse latest View live


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