Quantcast
Channel: Linux Device Hacking
Viewing all articles
Browse latest Browse all 3248

Using mSATA device on PogoPlug Pro (no replies)

$
0
0
I have finally gotten around to trying to use the SATA to mSATA adapter on one of my PogoPlug Pros. I have been using this system with an eSATA drive successfully for over a year. I first used a USB to SATA adapter to connect the mSATA to SATA adapter with a SanDisk X300 MSATA 128GB SSD as /dev/sdb. I used fdisk to create the /dev/sdb1 partition and then formatted as ext3 with rootfs label and mounted as /media/usb0. I then ran rsync to sync the data from / to /media/usb0. To verify the copy I then removed the eSATA drive and booted again with the USB to SATA adapter. This boot was successful. I then disconnected the USB to SATA adapter and plugged the mSATA to SATA adapter directly to the SATA connector on the PogoPlug Pro. This resulted in the following issue:

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.4.54-oxnas-tld-1 (root@tldDebian) (gcc version 4.
9.2 (Debian 4.9.2-10) ) #2 SMP PREEMPT Sat Mar 18 23:09:58 PDT 2017
[    0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr
=00c5787d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instructio
n cache
[    0.000000] Machine model: Pogoplug V3 Pro
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] DT missing boot CPU MPIDR[23:0], fall back to default cpu_logical
_map
[    0.000000] PERCPU: Embedded 12 pages/cpu @c7eda000 s17696 r8192 d23264 u4915
2
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pag
es: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=41000000.nand:14m(boot),-(data)
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 116928K/131072K available (6410K kernel code, 288K rwdata, 1908K rodata, 224K init, 247K bss, 14144K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0827e14   (8320 kB)
[    0.000000]       .init : 0xc0828000 - 0xc0860000   ( 224 kB)
[    0.000000]       .data : 0xc0860000 - 0xc08a8378   ( 289 kB)
[    0.000000]        .bss : 0xc08a8378 - 0xc08e6350   ( 248 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:160
[    0.000000] clocksource: rps_clocksource_timer: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 19112603332 ns
[    0.000007] sched_clock: 24 bits at 390kHz, resolution 2560ns, wraps every 21474835200ns
[    0.000166] Console: colour dummy device 80x30
[    0.000197] Calibrating delay loop... 339.14 BogoMIPS (lpj=1695744)
[    0.050017] pid_max: default: 32768 minimum: 301
[    0.050186] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.050204] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.051020] Initializing cgroup subsys net_cls
[    0.051102] CPU: Testing write buffer coherency: ok
[    0.051522] Setting up static identity map for 0x60008220 - 0x60008258
[    0.190131] Brought up 2 CPUs
[    0.190154] SMP: Total of 2 processors activated (678.29 BogoMIPS).
[    0.190942] devtmpfs: initialized
[    0.196119] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.196162] futex hash table entries: 512 (order: 2, 16384 bytes)
[    0.196472] prandom: seed boundary self test passed
[    0.200888] prandom: 100 self tests passed
[    0.200916] pinctrl core: initialized pinctrl subsystem
[    0.201743] NET: Registered protocol family 16
[    0.202301] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.230016] cpuidle: using governor ladder
[    0.260011] cpuidle: using governor menu
[    0.265290] gpio-oxnas 44000000.gpio: at address c8848000
[    0.265687] gpio-oxnas 44100000.gpio: at address c884a000
[    0.266275] pinctrl-oxnas pinctrl: initialized OX820 pinctrl driver
[    0.390064] oxnas-pcie 47c00000.pcie-controller: PCIe version/deviceID 0x82510b5
[    0.390184] oxnas-pcie 47c00000.pcie-controller: link up
[    0.390510] oxnas-pcie 47c00000.pcie-controller: PCI host bridge to bus 0000:00
[    0.390535] pci_bus 0000:00: root bus resource [mem 0x48000000-0x49ffffff]
[    0.390556] pci_bus 0000:00: root bus resource [mem 0x4a000000-0x4bdfffff pref]
[    0.390574] pci_bus 0000:00: root bus resource [io  0x0000-0xfffff]
[    0.390594] pci_bus 0000:00: root bus resource [bus 00-7f]
[    0.391155] PCI: bus0: Fast back to back transfers disabled
[    0.391244] pci 0000:00:00.0: BAR 0: assigned [mem 0x48000000-0x4800ffff]
[    0.391708] vgaarb: loaded
[    0.392202] SCSI subsystem initialized
[    0.393077] usbcore: registered new interface driver usbfs
[    0.393187] usbcore: registered new interface driver hub
[    0.393338] usbcore: registered new device driver usb
[    0.393546] pps_core: LinuxPPS API ver. 1 registered
[    0.393561] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.393605] PTP clock support registered
[    0.395786] clocksource: Switched to clocksource rps_clocksource_timer
[    0.414374] NET: Registered protocol family 2
[    0.415260] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.415303] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.415339] TCP: Hash tables configured (established 1024 bind 1024)
[    0.415439] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.415482] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.415746] NET: Registered protocol family 1
[    0.416281] RPC: Registered named UNIX socket transport module.
[    0.416302] RPC: Registered udp transport module.
[    0.416312] RPC: Registered tcp transport module.
[    0.416322] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.416716] Unpacking initramfs...
[    0.818803] Freeing initrd memory: 3764K (c7a7f000 - c7e2c000)
[    0.820528] Initialise system trusted keyring
[    0.852869] zbud: loaded
[    0.871400] NFS: Registering the id_resolver key type
[    0.871472] Key type id_resolver registered
[    0.871485] Key type id_legacy registered
[    0.871528] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.871552] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.872494] fuse init (API version 7.23)
[    0.874572] Key type big_key registered
[    0.964474] Key type asymmetric registered
[    0.964510] Asymmetric key parser 'x509' registered
[    0.964646] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.964672] io scheduler noop registered
[    0.964692] io scheduler deadline registered
[    0.964756] io scheduler cfq registered (default)
[    0.965409] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.966924] console [ttyS0] disabled
[    0.967022] 44200000.uart: ttyS0 at MMIO 0x44200000 (irq = 6, base_baud = 390625) is a 16550A
[    1.549816] console [ttyS0] enabled
[    1.564503] loop: module loaded
[    1.569605] scsi host0: sata_oxnas
[    1.573486] ata1: SATA max UDMA/133 irq 7
[    1.577569] sata_oxnas: resetting SATA core
[    1.578588] nand: Could not find valid ONFI parameter page; aborting
[    1.578629] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    1.578634] nand: Hynix NAND 128MiB 3,3V 8-bit
[    1.578644] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.578659] Scanning device for bad blocks
[    1.660935] 2 cmdlinepart partitions found on MTD device 41000000.nand
[    1.667440] Creating 2 MTD partitions on "41000000.nand":
[    1.672849] 0x000000000000-0x000000e00000 : "boot"
[    1.679559] 0x000000e00000-0x000008000000 : "data"
[    1.686845] oxnas-gmac 40400000.ethernet: no reset control found
[    1.692869] stmmac - user ID: 0x12, Synopsys ID: 0x35
[    1.697891]  Ring mode enabled
[    1.700943]  DMA HW capability register supported
[    1.705448]  Enhanced/Alternate descriptors
[    1.709780]  Enabled extended descriptors
[    1.713779]  RX Checksum Offload Engine supported (type 2)
[    1.719232]  TX Checksum insertion supported
[    1.723486]  Wake-Up On Lan supported
[    1.727129]  Enable RX Mitigation via HW Watchdog Timer
[    1.748510] libphy: stmmac: probed
[    1.751964] eth%d: PHY ID 001cc914 at 0 IRQ POLL (stmmac-0:00) active
[    1.758379] eth%d: PHY ID 001cc914 at 3 IRQ POLL (stmmac-0:03)
[    1.765104] PPP generic driver version 2.4.2
[    1.769786] rt2800pci 0000:00:00.0: enabling device (0140 -> 0142)
[    1.776153] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 3090, rev 3213 detected
[    1.787386] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 0005 detected
[    1.796523] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.803079] ehci-pci: EHCI PCI platform driver
[    1.807877] oxnas-ehci 40200100.ehci: EHCI Host Controller
[    1.813434] oxnas-ehci 40200100.ehci: new USB bus registered, assigned bus number 1
[    1.821263] oxnas-ehci 40200100.ehci: irq 10, io mem 0x40200100
[    1.840145] oxnas-ehci 40200100.ehci: USB 2.0 started, EHCI 1.00
[    1.846456] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.853255] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.860464] usb usb1: Product: EHCI Host Controller
[    1.865318] usb usb1: Manufacturer: Linux 4.4.54-oxnas-tld-1 ehci_hcd
[    1.871741] usb usb1: SerialNumber: 40200100.ehci
[    1.877419] hub 1-0:1.0: USB hub found
[    1.881285] hub 1-0:1.0: 2 ports detected
[    1.886430] usbcore: registered new interface driver cdc_acm
[    1.892106] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    1.900216] usbcore: registered new interface driver cdc_wdm
[    1.906009] usbcore: registered new interface driver usb-storage
[    1.912220] usbcore: registered new interface driver usbserial
[    1.918110] usbcore: registered new interface driver usbserial_generic
[    1.924718] usbserial: USB Serial support registered for generic
[    1.931161] mousedev: PS/2 mouse device common for all mice
[    1.936890] i2c /dev entries driver
[    1.941788] hidraw: raw HID events driver (C) Jiri Kosina
[    1.947422] usbcore: registered new interface driver usbhid
[    1.953011] usbhid: USB HID core driver
[    1.958873] NET: Registered protocol family 10
[    1.980892] sit: IPv6 over IPv4 tunneling driver
[    1.986554] NET: Registered protocol family 17
[    1.991541] Key type dns_resolver registered
[    1.997122] registered taskstats version 1
[    2.001274] Loading compiled-in X.509 certificates
[    2.006167] zswap: loaded using pool lzo/zbud
[    2.025674] Key type encrypted registered
[    2.129999] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    2.136806] ata1.00: ATA-9: SanDisk X300 MSATA 128GB, X3520012, max UDMA/133
[    2.143869] ata1.00: 250069680 sectors, multi 1: LBA48 NCQ (depth 0/32)
[    2.220134] usb 1-1: new high-speed USB device number 2 using oxnas-ehci
[    2.371911] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    2.378588] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    2.385725] usb 1-1: Product: USB2.0 Hub
[    2.390743] hub 1-1:1.0: USB hub found
[    2.394913] hub 1-1:1.0: 4 ports detected
[    2.680133] usb 1-1.4: new high-speed USB device number 3 using oxnas-ehci
[    2.792409] usb 1-1.4: New USB device found, idVendor=05e3, idProduct=0718
[    2.799262] usb 1-1.4: New USB device strings: Mfr=0, Product=1, SerialNumber=2
[    2.806568] usb 1-1.4: Product: USB Storage
[    2.810752] usb 1-1.4: SerialNumber: 000000000033
[    2.816604] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[    2.823377] scsi host1: usb-storage 1-1.4:1.0
[    3.821539] scsi 1:0:0:0: Direct-Access     USB TO I DE/SATA Device   0041 PQ: 0 ANSI: 0
[    3.834109] sd 1:0:0:0: [sda] Test WP failed, assume Write Enabled
[    3.841730] sd 1:0:0:0: [sda] Asking for cache data failed
[    3.847203] sd 1:0:0:0: [sda] Assuming drive cache: write through
[    3.859356] sd 1:0:0:0: [sda] Attached SCSI disk
[   17.150005] ata1.00: qc timeout (cmd 0xef)
[   17.154088] sata_oxnas: resetting SATA core
[   17.510000] ata1.00: failed to set xfermode (err_mask=0x5)
[   18.020001] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[   33.020008] ata1.00: qc timeout (cmd 0xef)
[   33.024087] sata_oxnas: resetting SATA core
[   33.380006] ata1.00: failed to set xfermode (err_mask=0x5)
[   33.385479] ata1.00: limiting speed to UDMA/133:PIO3
[   33.900003] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[   48.900008] ata1.00: qc timeout (cmd 0xef)
[   48.904087] sata_oxnas: resetting SATA core
[   49.260011] ata1.00: failed to set xfermode (err_mask=0x5)
[   49.265477] ata1.00: disabled
[   49.268444] sata_oxnas: resetting SATA core
[   49.282869] ata1: exception Emask 0x10 SAct 0x0 SErr 0x20000 action 0xe frozen t4
[   49.290352] ata1: SError: { PHYInt }
[   49.293926] ata1: hard resetting link
[   50.200007] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[   50.206799] ata1.00: ATA-9: SanDisk X300 MSATA 128GB, X3520012, max UDMA/133
[   50.213862] ata1.00: 250069680 sectors, multi 1: LBA48 NCQ (depth 0/32)
[   65.220011] ata1.00: qc timeout (cmd 0xef)
[   65.224094] sata_oxnas: resetting SATA core
[   65.580019] ata1.00: failed to set xfermode (err_mask=0x5)
[   65.585495] ata1: hard resetting link
[   66.090007] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[   81.090012] ata1.00: qc timeout (cmd 0xef)
[   81.094092] sata_oxnas: resetting SATA core
[   81.450014] ata1.00: failed to set xfermode (err_mask=0x5)
[   81.455488] ata1.00: limiting speed to UDMA/133:PIO3
[   81.460467] ata1: hard resetting link
[   81.970014] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[   96.970017] ata1.00: qc timeout (cmd 0xef)
[   96.974097] sata_oxnas: resetting SATA core
[   97.330019] ata1.00: failed to set xfermode (err_mask=0x5)
[   97.335482] ata1.00: disabled
[   97.338449] sata_oxnas: resetting SATA core
[   97.352872] ata1: exception Emask 0x10 SAct 0x0 SErr 0x20000 action 0xe frozen t3
[   97.360368] ata1: SError: { PHYInt }
[   97.363944] ata1: hard resetting link
[   98.270018] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[   98.276807] ata1.00: ATA-9: SanDisk X300 MSATA 128GB, X3520012, max UDMA/133
[   98.283868] ata1.00: 250069680 sectors, multi 1: LBA48 NCQ (depth 0/32)
[  113.290022] ata1.00: qc timeout (cmd 0xef)
[  113.294103] sata_oxnas: resetting SATA core
[  113.650027] ata1.00: failed to set xfermode (err_mask=0x5)
[  113.655498] ata1: hard resetting link
[  114.160023] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  129.160028] ata1.00: qc timeout (cmd 0xef)
[  129.164106] sata_oxnas: resetting SATA core
[  129.520028] ata1.00: failed to set xfermode (err_mask=0x5)
[  129.525496] ata1.00: limiting speed to UDMA/133:PIO3
[  129.530475] ata1: hard resetting link
[  130.040023] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  145.040030] ata1.00: qc timeout (cmd 0xef)
[  145.044111] sata_oxnas: resetting SATA core
[  145.400033] ata1.00: failed to set xfermode (err_mask=0x5)
[  145.405496] ata1.00: disabled
[  145.408460] sata_oxnas: resetting SATA core
[  145.422894] ata1: exception Emask 0x10 SAct 0x0 SErr 0x20000 action 0xe frozen t2
[  145.430379] ata1: SError: { PHYInt }
[  145.433953] ata1: hard resetting link
[  146.340029] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  146.346810] ata1.00: ATA-9: SanDisk X300 MSATA 128GB, X3520012, max UDMA/133
[  146.353871] ata1.00: 250069680 sectors, multi 1: LBA48 NCQ (depth 0/32)
[  161.360033] ata1.00: qc timeout (cmd 0xef)
[  161.364111] sata_oxnas: resetting SATA core
[  161.720035] ata1.00: failed to set xfermode (err_mask=0x5)
[  161.725509] ata1: hard resetting link
[  162.230036] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[  177.230039] ata1.00: qc timeout (cmd 0xef)
[  177.234117] sata_oxnas: resetting SATA core
[  177.590039] ata1.00: failed to set xfermode (err_mask=0x5)
[  177.595512] ata1.00: limiting speed to UDMA/133:PIO3
[  177.600488] ata1: hard resetting link
[  178.110033] ata1: SATA link up 1.5 Gbp

As can be seen in the above output the SATA core keeps resetting and getting a timeout.

I also have tried a Micron M550 64GB mSATA SSD with similar results. The only apparent difference is the Micron SSD prints the following line before the line identifying the Micron device:

[   50.236515] ata1.00: supports DRM functions and may not be fully accessible

For those who have successfully used an mSATA with the PogoPlug Pro what device did you use? I thought a SanDisk and/or a Micron would be a safe choice, but obviously its not.

Ray

Viewing all articles
Browse latest Browse all 3248

Trending Articles