Cloudshell 2 using usb-storage instead of uas

Moderators: mdrjr, odroid

Cloudshell 2 using usb-storage instead of uas

Unread postby 1actobacillus » Sat Aug 26, 2017 2:29 pm

Hi, I have a Cloudshell 2, however the usb driver used is usb-storage instead of uas. From the dmesg output, It seems that the uas driver is loaded after the Cloudshell 2 Jmicron controller is loaded. Any advice for me?

uname -a output
Code: Select all
Linux odroid 4.9.44-56 #1 SMP PREEMPT Thu Aug 24 10:38:35 UTC 2017 armv7l armv7l armv7l GNU/Linux


lsusb -t output
Code: Select all
root@odroid:/etc# lsusb -t
/:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Vendor Specific Class, Driver=r8152, 5000M
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/2p, 5000M
        |__ Port 1: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/2p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=exynos-ohci/3p, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=exynos-ehci/3p, 480M
root@odroid:/etc#


Dmesg output:
Code: Select all
root@odroid:/etc# dmesg
[    0.000000] Booting Linux on physical CPU 0x100
[    0.000000] Linux version 4.9.44-56 (root@1604_builder_armhf) (gcc version 4.9.4 (Ubuntu/Linaro 4.9.4-2ubuntu1~16.04) ) #1 SMP PREEMPT Thu Aug 24 10:38:35 UTC 2017
[    0.000000] CPU: ARMv7 Processor [410fc073] revision 3 (ARMv7), cr=30c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt:Machine model: Hardkernel Odroid XU4
[    0.000000] cma: Reserved 128 MiB at 0x00000000b6800000
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] Samsung CPU ID: 0xe5422001
[    0.000000] On node 0 totalpages: 518656
[    0.000000] free_area_init_node: node 0, pgdat c104b100, node_mem_map eee25000
[    0.000000]   Normal zone: 1728 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 196608 pages, LIFO batch:31
[    0.000000]   HighMem zone: 322048 pages, LIFO batch:31
[    0.000000] Running under secure firmware.
[    0.000000] percpu: Embedded 14 pages/cpu @eed7f000 s26700 r8192 d22452 u57344
[    0.000000] pcpu-alloc: s26700 r8192 d22452 u57344 alloc=14*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 [0] 4 [0] 5 [0] 6 [0] 7
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 516928
[    0.000000] Kernel command line: console=tty1 console=ttySAC2,115200n8 root=UUID=e139ce78-9841-40fe-8823-96a304a09859 rootwait ro fsck.repair=yes net.ifnames=0  HPD=true vout=hdmi usbhid.quirks=0x0eef:0x0005:0x0004 smsc95xx.macaddr=00:1e:06:61:7a:39 false governor=performance s5p_mfc.mem=16M
[    0.000000] hdmi: using HDMI mode
[    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: 1903336K/2074624K available (8192K kernel code, 303K rwdata, 2044K rodata, 2048K init, 310K bss, 40216K reserved, 131072K cma-reserved, 1157120K 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 - 0xc0a00000   (10208 kB)
                     .init : 0xc0e00000 - 0xc1000000   (2048 kB)
                     .data : 0xc1000000 - 0xc104bd60   ( 304 kB)
                      .bss : 0xc104d000 - 0xc109a90c   ( 311 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=8, Nodes=1
[    0.000000] hperf_hmp: fast CPUs mask: 000000F0
[    0.000000] hperf_hmp: slow CPUs mask: 0000000F
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]    Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] Switching to timer-based delay loop, resolution 41ns
[    0.000000] clocksource: mct-frc: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 79635851949 ns
[    0.000007] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 89478484971ns
[    0.001810] arm_arch_timer: Architected cp15 timer(s) running at 24.00MHz (phys).
[    0.001832] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x588fe9dc0, max_idle_ns: 440795202592 ns
[    0.001853] sched_clock: 56 bits at 24MHz, resolution 41ns, wraps every 4398046511097ns
[    0.001867] Ignoring duplicate/late registration of read_current_timer delay
[    0.002111] Console: colour dummy device 80x30
[    0.003014] console [tty1] enabled
[    0.003057] Calibrating delay loop (skipped), value calculated using timer frequency.. 48.00 BogoMIPS (lpj=120000)
[    0.003111] pid_max: default: 32768 minimum: 301
[    0.003292] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.003329] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.004277] CPU: Testing write buffer coherency: ok
[    0.005123] CPU0: update cpu_capacity 551
[    0.005163] CPU0: thread -1, cpu 0, socket 1, mpidr 80000100
[    0.005302] Setting up static identity map for 0x40200000 - 0x40200058
[    0.005883] ARM CCI driver probed
[    0.006122] Exynos MCPM support installed
[    0.090324] CPU1: update cpu_capacity 551
[    0.090332] CPU1: thread -1, cpu 1, socket 1, mpidr 80000101
[    0.091276] CPU2: update cpu_capacity 551
[    0.091283] CPU2: thread -1, cpu 2, socket 1, mpidr 80000102
[    0.092145] CPU3: update cpu_capacity 551
[    0.092152] CPU3: thread -1, cpu 3, socket 1, mpidr 80000103
[    0.093075] CPU4: update cpu_capacity 1496
[    0.093083] CPU4: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.094254] CPU5: update cpu_capacity 1496
[    0.094261] CPU5: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.095266] CPU6: update cpu_capacity 1496
[    0.095272] CPU6: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.096205] CPU7: update cpu_capacity 1496
[    0.096211] CPU7: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.096316] Brought up 8 CPUs
[    0.096559] SMP: Total of 8 processors activated (384.00 BogoMIPS).
[    0.096583] CPU: All CPU(s) started in HYP mode.
[    0.096603] CPU: Virtualization extensions available.
[    0.097314] devtmpfs: initialized
[    0.122299] VFP support v0.3: implementor 41 architecture 4 part 30 variant f rev 0
[    0.122503] hperf_hmp: registered cpufreq transition notifier
[    0.122675] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302231375000 ns
[    0.122722] futex hash table entries: 2048 (order: 5, 131072 bytes)
[    0.125625] pinctrl core: initialized pinctrl subsystem
[    0.127422] NET: Registered protocol family 16
[    0.129710] DMA: preallocated 1024 KiB pool for atomic coherent allocations
[    0.144359] cpuidle: using governor menu
[    0.160310] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.160348] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.168846] exynos-audss-clk 3810000.audss-clock-controller:: epll 180633609
[    0.170889] iommu: Adding device 10850000.g2d: to group 0
[    0.178423] iommu: Adding device 11000000.codec: to group 1
[    0.203471] iommu: Adding device 14450000.mixer: to group 2
[    0.203928] iommu: Adding device 11c00000.rotator: to group 3
[    0.208473] iommu: Adding device 13e00000.video-scaler: to group 4
[    0.208928] iommu: Adding device 13e10000.video-scaler: to group 5
[    0.209388] iommu: Adding device 11f50000.jpeg: to group 6
[    0.209846] iommu: Adding device 11f60000.jpeg: to group 7
[    0.210158] EXYNOS5420 PMU initialized
[    0.246023] SCSI subsystem initialized
[    0.246292] usbcore: registered new interface driver usbfs
[    0.246377] usbcore: registered new interface driver hub
[    0.246551] usbcore: registered new device driver usb
[    0.247212] i2c-gpio soc:i2c-hdmi:: using pins 177 (SDA) and 178 (SCL)
[    0.247783] s3c-i2c 12c70000.i2c:: slave address 0x00
[    0.247813] s3c-i2c 12c70000.i2c:: bus frequency set to 378 KHz
[    0.248095] s3c-i2c 12c70000.i2c:: i2c-1: S3C I2C adapter
[    0.248542] media: Linux media interface: v0.10
[    0.248609] Linux video capture interface: v2.00
[    0.249062] Advanced Linux Sound Architecture Driver Initialized.
[    0.250194] clocksource: Switched to clocksource mct-frc
[    0.250380] VFS: Disk quotas dquot_6.6.0
[    0.250462] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.264473] NET: Registered protocol family 2
[    0.265134] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.265262] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.265434] TCP: Hash tables configured (established 8192 bind 8192)
[    0.265502] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.265555] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.265786] NET: Registered protocol family 1
[    0.266342] RPC: Registered named UNIX socket transport module.
[    0.266368] RPC: Registered udp transport module.
[    0.266390] RPC: Registered tcp transport module.
[    0.266412] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.266636] Trying to unpack rootfs image as initramfs...
[    0.578089] Freeing initrd memory: 5448K
[    0.578414] kvm [1]: 8-bit VMID
[    0.578438] kvm [1]: IDMAP page: 40201000
[    0.578461] kvm [1]: HYP VA range: c0000000:ffffffff
[    0.579278] kvm [1]: Hyp mode initialized successfully
[    0.579351] kvm [1]: vgic-v2@10484000
[    0.579721] kvm [1]: vgic interrupt IRQ16
[    0.579766] kvm [1]: virtual timer IRQ60
[    0.583392] workingset: timestamp_bits=14 max_order=19 bucket_order=5
[    0.597240] NFS: Registering the id_resolver key type
[    0.597287] Key type id_resolver registered
[    0.597310] Key type id_legacy registered
[    0.597341] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.597400] romfs: ROMFS MTD (C) 2007 Red Hat, Inc.
[    0.601405] bounce: pool size: 64 pages
[    0.601652] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.601847] io scheduler noop registered
[    0.601874] io scheduler deadline registered
[    0.602283] io scheduler cfq registered (default)
[    0.604520] 12130000.phy: supply vbus not found, using dummy regulator
[    0.605597] 12100000.phy: supply vbus not found, using dummy regulator
[    0.605680] 12100000.phy: supply vbus-boost not found, using dummy regulator
[    0.606080] 12500000.phy: supply vbus not found, using dummy regulator
[    0.606167] 12500000.phy: supply vbus-boost not found, using dummy regulator
[    0.611332] dma-pl330 3880000.adma: Loaded driver for PL330 DMAC-241330
[    0.611364] dma-pl330 3880000.adma:    DBUFF-4x8bytes Num_Chans-6 Num_Peri-16 Num_Events-6
[    0.614712] dma-pl330 121a0000.pdma: Loaded driver for PL330 DMAC-241330
[    0.614743] dma-pl330 121a0000.pdma:    DBUFF-32x4bytes Num_Chans-8 Num_Peri-32 Num_Events-32
[    0.618092] dma-pl330 121b0000.pdma: Loaded driver for PL330 DMAC-241330
[    0.618124] dma-pl330 121b0000.pdma:    DBUFF-32x4bytes Num_Chans-8 Num_Peri-32 Num_Events-32
[    0.619154] dma-pl330 10800000.mdma: Loaded driver for PL330 DMAC-241330
[    0.619184] dma-pl330 10800000.mdma:    DBUFF-64x8bytes Num_Chans-8 Num_Peri-1 Num_Events-32
[    0.686766] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.689317] 12c00000.serial:: ttySAC0 at MMIO 0x12c00000 (irq = 80, base_baud = 0) is a S3C6400/10
[    0.689757] 12c10000.serial:: ttySAC1 at MMIO 0x12c10000 (irq = 81, base_baud = 0) is a S3C6400/10
[    0.690212] 12c20000.serial:: ttySAC2 at MMIO 0x12c20000 (irq = 82, base_baud = 0) is a S3C6400/10
[    1.607409] console [ttySAC2] enabled
[    1.611425] 12c30000.serial:: ttySAC3 at MMIO 0x12c30000 (irq = 83, base_baud = 0) is a S3C6400/10
[    1.621481] [drm] Initialized
[    1.624482] exynos-hdmi 14530000.hdmi:: Failed to get supply 'vdd': -517
[    1.630442] s5p-g2d 10850000.g2d:: The Exynos G2D (ver 4.1) successfully probed.
[    1.638229] exynos-rot 11c00000.rotator:: The exynos rotator is probed successfully
[    1.645399] exynos-drm-ipp exynos-drm-ipp: drm ipp registered successfully.
[    1.656029] mali 11800000.mali:: GPU identified as 0x0620 r0p1 status 0
[    1.661908] devfreq 11800000.mali:: Couldn't update frequency transition information.
[    1.669050] mali 11800000.mali:: could not find power_model node
[    1.675651] mali 11800000.mali:: Probed as mali0
[    1.693306] brd: module loaded
[    1.703591] loop: module loaded
[    1.706095] libphy: Fixed MDIO Bus: probed
[    1.709707] usbcore: registered new interface driver r8152
[    1.714878] usbcore: registered new interface driver cdc_ether
[    1.720669] usbcore: registered new interface driver cdc_subset
[    1.727059] exynos-dwc3 soc:usb3-0:: no suspend clk specified
[    1.732331] exynos-dwc3 soc:usb3-1:: no suspend clk specified
[    1.739221] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.744456] ehci-exynos: EHCI EXYNOS driver
[    1.748989] exynos-ehci 12110000.usb:: EHCI Host Controller
[    1.754189] exynos-ehci 12110000.usb:: new USB bus registered, assigned bus number 1
[    1.762127] exynos-ehci 12110000.usb:: irq 94, io mem 0x12110000
[    1.780224] exynos-ehci 12110000.usb:: USB 2.0 started, EHCI 1.00
[    1.785065] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.791638] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.798831] usb usb1: Product: EHCI Host Controller
[    1.803673] usb usb1: Manufacturer: Linux 4.9.44-56 ehci_hcd
[    1.809305] usb usb1: SerialNumber: 12110000.usb:
[    1.814686] hub 1-0:1.0: USB hub found
[    1.817747] hub 1-0:1.0: 3 ports detected
[    1.822625] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.827861] ohci-exynos: OHCI EXYNOS driver
[    1.832243] exynos-ohci 12120000.usb:: USB Host Controller
[    1.837487] exynos-ohci 12120000.usb:: new USB bus registered, assigned bus number 2
[    1.845313] exynos-ohci 12120000.usb:: irq 94, io mem 0x12120000
[    1.914436] usb usb2: New USB device found, idVendor=1d6b, idProduct=0001
[    1.919780] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.927888] usb usb2: Product: USB Host Controller
[    1.931734] usb usb2: Manufacturer: Linux 4.9.44-56 ohci_hcd
[    1.937364] usb usb2: SerialNumber: 12120000.usb:
[    1.942692] hub 2-0:1.0: USB hub found
[    1.945801] hub 2-0:1.0: 3 ports detected
[    1.951310] usbcore: registered new interface driver usb-storage
[    1.956599] mousedev: PS/2 mouse device common for all mice
[    1.962926] i2c /dev entries driver
[    1.967731] LDO4: mapping for mode 1 not defined
[    1.971356] LDO27: mapping for mode 1 not defined
[    1.975616] LDO28: mapping for mode 1 not defined
[    1.980286] LDO30: mapping for mode 1 not defined
[    1.987974] random: fast init done
[    1.998909] vdd_ldo9: Bringing 3300000uV into 3000000-3000000uV
[    2.014851] vdd_ldo15: Bringing 3300000uV into 3100000-3100000uV
[    2.027758] vdd_sd: Bringing 3300000uV into 2800000-2800000uV
[    2.086021] s5m-rtc s2mps14-rtc: rtc core: registered s5m-rtc as rtc0
[    2.093843] IR NEC protocol handler initialized
[    2.096935] IR RC5(x/sz) protocol handler initialized
[    2.101952] IR RC6 protocol handler initialized
[    2.106456] IR JVC protocol handler initialized
[    2.110962] IR Sony protocol handler initialized
[    2.115555] IR SANYO protocol handler initialized
[    2.120233] IR Sharp protocol handler initialized
[    2.124895] IR MCE Keyboard/mouse protocol handler initialized
[    2.130721] IR XMP protocol handler initialized
[    2.136207] s5p-jpeg 11f50000.jpeg:: encoder device registered as /dev/video20
[    2.142613] s5p-jpeg 11f50000.jpeg:: decoder device registered as /dev/video21
[    2.149627] s5p-jpeg 11f50000.jpeg:: Samsung S5P JPEG codec
[    2.155508] s5p-jpeg 11f60000.jpeg:: encoder device registered as /dev/video22
[    2.162545] s5p-jpeg 11f60000.jpeg:: decoder device registered as /dev/video23
[    2.169556] s5p-jpeg 11f60000.jpeg:: Samsung S5P JPEG codec
[    2.193385] s5p-mfc 11000000.codec:: preallocated 16 MiB buffer for the firmware and context buffers
[    2.201301] s5p-mfc 11000000.codec:: decoder registered as /dev/video10
[    2.207825] s5p-mfc 11000000.codec:: encoder registered as /dev/video11
[    2.239877] s3c2410-wdt 101d0000.watchdog:: watchdog inactive, reset disabled, irq disabled
[    2.247836] device-mapper: ioctl: 4.35.0-ioctl (2016-06-23) initialised: dm-devel@redhat.com
[    2.268361] sdhci: Secure Digital Host Controller Interface driver
[    2.273075] sdhci: Copyright(c) Pierre Ossman
[    2.277602] Synopsys Designware Multimedia Card Interface Driver
[    2.283924] dwmmc_exynos 12200000.mmc:: IDMAC supports 32-bit address mode.
[    2.290374] dwmmc_exynos 12200000.mmc:: Using internal DMA controller.
[    2.296824] dwmmc_exynos 12200000.mmc:: Version ID is 250a
[    2.302299] dwmmc_exynos 12200000.mmc:: DW MMC controller at irq 97,64 bit host data width,64 deep fifo
[    2.311759] dwmmc_exynos 12200000.mmc:: Got CD GPIO
[    2.316534] dwmmc_exynos 12200000.mmc:: allocated mmc-pwrseq
[    2.346568] mmc_host mmc0: Bus speed (slot 0) = 50000000Hz (slot req 400000Hz, actual 396825HZ div = 63)
[    2.370394] dwmmc_exynos 12200000.mmc:: 1 slots initialized
[    2.374686] dwmmc_exynos 12220000.mmc:: IDMAC supports 32-bit address mode.
[    2.381483] dwmmc_exynos 12220000.mmc:: Using internal DMA controller.
[    2.387955] dwmmc_exynos 12220000.mmc:: Version ID is 250a
[    2.393426] dwmmc_exynos 12220000.mmc:: DW MMC controller at irq 98,64 bit host data width,64 deep fifo
[    2.425631] mmc_host mmc1: Bus speed (slot 0) = 50000000Hz (slot req 400000Hz, actual 396825HZ div = 63)
[    2.450241] dwmmc_exynos 12220000.mmc:: 1 slots initialized
[    2.455515] s5p-secss 10830000.sss:: s5p-sss driver registered
[    2.460364] hidraw: raw HID events driver (C) Jiri Kosina
[    2.465965] usbcore: registered new interface driver usbhid
[    2.471066] usbhid: USB HID core driver
[    2.485354] exynos-nocp: new NoC Probe device registered: 10ca1000.nocp:
[    2.490705] exynos-nocp: new NoC Probe device registered: 10ca1400.nocp:
[    2.497364] exynos-nocp: new NoC Probe device registered: 10ca1800.nocp:
[    2.504342] exynos-nocp: new NoC Probe device registered: 10ca1c00.nocp:
[    2.515162] odroid-audio sound:: dit-hifi <-> 3830000.i2s: mapping ok
[    2.521439] NET: Registered protocol family 17
[    2.524550] NET: Registered protocol family 15
[    2.529010] Key type dns_resolver registered
[    2.533598] Registering SWP/SWPB emulation handler
[    2.538332] registered taskstats version 1
[    2.551695] mmc_host mmc1: Bus speed (slot 0) = 50000000Hz (slot req 50000000Hz, actual 50000000HZ div = 0)
[    2.560301] Key type encrypted registered
[    2.615900] [drm] Exynos DRM: using 14450000.mixer: device for DMA mapping operations
[    2.622584] exynos-drm exynos-drm: bound 14450000.mixer: (ops 0xc0a5112c)
[    2.629303] exynos-drm exynos-drm: bound 14530000.hdmi: (ops 0xc0a51304)
[    2.635699] [drm] Supports vblank timestamp caching Rev 2 (21.10.2013).
[    2.642285] [drm] No driver support for vblank timestamp query.
[    2.648647] [drm] Initialized exynos 1.0.0 20110530 on minor 0
[    2.654345] exynos-dwc3 soc:usb3-0:: no suspend clk specified
[    2.667600] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
[    2.668121] mmc1: new ultra high speed DDR50 SDHC card at address aaaa
[    2.674408] mmcblk1: mmc1:aaaa SL16G 14.8 GiB
[    2.679794]  mmcblk1: p1 p2
[    2.685322] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 3
[    2.693189] xhci-hcd xhci-hcd.2.auto: hcc params 0x0220f04c hci version 0x100 quirks 0x00010010
[    2.701636] xhci-hcd xhci-hcd.2.auto: irq 146, io mem 0x12000000
[    2.707690] usb usb3: New USB device found, idVendor=1d6b, idProduct=0002
[    2.714340] usb usb3: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.721534] usb usb3: Product: xHCI Host Controller
[    2.726380] usb usb3: Manufacturer: Linux 4.9.44-56 xhci-hcd
[    2.732013] usb usb3: SerialNumber: xhci-hcd.2.auto
[    2.737223] hub 3-0:1.0: USB hub found
[    2.740610] hub 3-0:1.0: 1 port detected
[    2.744702] xhci-hcd xhci-hcd.2.auto: xHCI Host Controller
[    2.749955] xhci-hcd xhci-hcd.2.auto: new USB bus registered, assigned bus number 4
[    2.757624] usb usb4: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.765724] usb usb4: New USB device found, idVendor=1d6b, idProduct=0003
[    2.772400] usb usb4: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.779587] usb usb4: Product: xHCI Host Controller
[    2.784438] usb usb4: Manufacturer: Linux 4.9.44-56 xhci-hcd
[    2.790068] usb usb4: SerialNumber: xhci-hcd.2.auto
[    2.795284] hub 4-0:1.0: USB hub found
[    2.798655] hub 4-0:1.0: 1 port detected
[    2.802985] exynos-dwc3 soc:usb3-1:: no suspend clk specified
[    2.809986] xhci-hcd xhci-hcd.5.auto: xHCI Host Controller
[    2.814007] xhci-hcd xhci-hcd.5.auto: new USB bus registered, assigned bus number 5
[    2.821854] xhci-hcd xhci-hcd.5.auto: hcc params 0x0220f04c hci version 0x100 quirks 0x00010010
[    2.830320] xhci-hcd xhci-hcd.5.auto: irq 147, io mem 0x12400000
[    2.836374] usb usb5: New USB device found, idVendor=1d6b, idProduct=0002
[    2.843028] usb usb5: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.850221] usb usb5: Product: xHCI Host Controller
[    2.855059] usb usb5: Manufacturer: Linux 4.9.44-56 xhci-hcd
[    2.860703] usb usb5: SerialNumber: xhci-hcd.5.auto
[    2.865896] hub 5-0:1.0: USB hub found
[    2.869287] hub 5-0:1.0: 1 port detected
[    2.873396] xhci-hcd xhci-hcd.5.auto: xHCI Host Controller
[    2.878649] xhci-hcd xhci-hcd.5.auto: new USB bus registered, assigned bus number 6
[    2.886313] usb usb6: We don't know the algorithms for LPM for this host, disabling LPM.
[    2.894414] usb usb6: New USB device found, idVendor=1d6b, idProduct=0003
[    2.901087] usb usb6: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    2.908281] usb usb6: Product: xHCI Host Controller
[    2.913128] usb usb6: Manufacturer: Linux 4.9.44-56 xhci-hcd
[    2.918761] usb usb6: SerialNumber: xhci-hcd.5.auto
[    2.923986] hub 6-0:1.0: USB hub found
[    2.927358] hub 6-0:1.0: 1 port detected
[    2.932217] rtc rtc1: invalid alarm value: 1900-1-6 0:0:0
[    2.936719] s3c-rtc 101e0000.rtc:: rtc core: registered s3c as rtc1
[    2.944064] exynos-bus: new bus device registered: soc:bus_wcore: ( 84000 KHz ~ 400000 KHz)
[    2.951661] exynos-bus: new bus device registered: soc:bus_noc: ( 67000 KHz ~ 100000 KHz)
[    2.959692] exynos-bus: new bus device registered: soc:bus_fsys_apb: (100000 KHz ~ 200000 KHz)
[    2.968153] exynos-bus: new bus device registered: soc:bus_fsys: (100000 KHz ~ 200000 KHz)
[    2.976552] exynos-bus: new bus device registered: soc:bus_fsys2: ( 75000 KHz ~ 150000 KHz)
[    2.984980] exynos-bus: new bus device registered: soc:bus_mfc: ( 96000 KHz ~ 333000 KHz)
[    2.993073] exynos-bus: new bus device registered: soc:bus_gen: ( 89000 KHz ~ 267000 KHz)
[    3.001089] exynos-bus: new bus device registered: soc:bus_peri: ( 67000 KHz ~  67000 KHz)
[    3.009508] exynos-bus: new bus device registered: soc:bus_g2d: ( 84000 KHz ~ 333000 KHz)
[    3.017599] exynos-bus: new bus device registered: soc:bus_g2d_acp: ( 67000 KHz ~ 267000 KHz)
[    3.026094] exynos-bus: new bus device registered: soc:bus_jpeg: ( 75000 KHz ~ 300000 KHz)
[    3.034319] exynos-bus: new bus device registered: soc:bus_jpeg_apb: ( 84000 KHz ~ 167000 KHz)
[    3.042793] exynos-bus: new bus device registered: soc:bus_disp1_fimd: (120000 KHz ~ 200000 KHz)
[    3.051596] exynos-bus: new bus device registered: soc:bus_disp1: (120000 KHz ~ 300000 KHz)
[    3.059919] exynos-bus: new bus device registered: soc:bus_gscl_scaler: (150000 KHz ~ 300000 KHz)
[    3.068871] exynos-bus: new bus device registered: soc:bus_mscl: ( 84000 KHz ~ 400000 KHz)
[    3.077152] input: gpio_keys: as /devices/platform/gpio_keys:/input/input0
[    3.084664] Power domain power-domain@10044120 disable failed
[    3.089948] s5m-rtc s2mps14-rtc: setting system clock to 2017-08-26 05:18:58 UTC (1503724738)
[    3.100063] ALSA device list:
[    3.101571]   #0: odroid-snd
[    3.105895] Freeing unused kernel memory: 2048K
[    3.195344] usb 4-1: new SuperSpeed USB device number 2 using xhci-hcd
[    3.225298] usb 4-1: New USB device found, idVendor=05e3, idProduct=0616
[    3.230534] usb 4-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    3.237638] usb 4-1: Product: USB3.0 Hub
[    3.241530] usb 4-1: Manufacturer: GenesysLogic
[    3.254237] hub 4-1:1.0: USB hub found
[    3.256830] hub 4-1:1.0: 2 ports detected
[    3.340212] usb 3-1: new high-speed USB device number 2 using xhci-hcd
[    3.494843] usb 3-1: New USB device found, idVendor=05e3, idProduct=0610
[    3.500248] usb 3-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[    3.507190] usb 3-1: Product: USB2.0 Hub
[    3.511557] usb 3-1: Manufacturer: GenesysLogic
[    3.526306] hub 3-1:1.0: USB hub found
[    3.529226] hub 3-1:1.0: 2 ports detected
[    3.850203] usb 3-1.1: new high-speed USB device number 3 using xhci-hcd
[    4.055313] usb 6-1: new SuperSpeed USB device number 2 using xhci-hcd
[    4.081262] usb 6-1: New USB device found, idVendor=0bda, idProduct=8153
[    4.086514] usb 6-1: New USB device strings: Mfr=1, Product=2, SerialNumber=6
[    4.093617] usb 6-1: Product: USB 10/100/1000 LAN
[    4.098288] usb 6-1: Manufacturer: Realtek
[    4.102363] usb 6-1: SerialNumber: 000001000000
[    4.278417] usb 6-1: reset SuperSpeed USB device number 2 using xhci-hcd
[    4.371433] r8152 6-1:1.0 eth0: v1.08.8
[    4.486755] EXT4-fs (mmcblk1p2): mounted filesystem without journal. Opts: (null)
[    4.625315] usb 4-1.1: new SuperSpeed USB device number 3 using xhci-hcd
[    4.651289] usb 4-1.1: New USB device found, idVendor=152d, idProduct=0561
[    4.656742] usb 4-1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=5
[    4.664034] usb 4-1.1: Product: External Disk 3.0
[    4.668664] usb 4-1.1: Manufacturer: JMicron
[    4.672920] usb 4-1.1: SerialNumber: DB0123456A31
[    4.678983] usb-storage 4-1.1:1.0: USB Mass Storage device detected
[    4.684318] scsi host0: usb-storage 4-1.1:1.0
[    4.796628] NET: Registered protocol family 10
[    4.821226] systemd[1]: systemd 229 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN)
[    4.838040] systemd[1]: Detected architecture arm.
[    4.873529] systemd[1]: Set hostname to <odroid>.
[    5.163526] systemd[1]: Reached target Swap.
[    5.180556] systemd[1]: Created slice System Slice.
[    5.220285] systemd[1]: Listening on fsck to fsckd communication Socket.
[    5.245258] systemd[1]: Reached target Encrypted Volumes.
[    5.265247] systemd[1]: Reached target Remote File Systems (Pre).
[    5.290259] systemd[1]: Reached target Remote File Systems.
[    5.315585] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[    5.581729] EXT4-fs (mmcblk1p2): re-mounted. Opts: errors=remount-ro
[    5.716053] scsi 0:0:0:0: Direct-Access     JMicron                   0003 PQ: 0 ANSI: 6
[    5.723590] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    5.728011] sd 0:0:0:0: [sda] Very big device. Trying to use READ CAPACITY(16).
[    5.735556] sd 0:0:0:0: [sda] 7814037168 512-byte logical blocks: (4.00 TB/3.64 TiB)
[    5.743393] sd 0:0:0:0: [sda] Write Protect is off
[    5.747721] sd 0:0:0:0: [sda] Mode Sense: 47 00 10 08
[    5.748155] sd 0:0:0:0: [sda] No Caching mode page found
[    5.753015] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    5.754942] sd 0:0:0:0: [sda] Very big device. Trying to use READ CAPACITY(16).
[    5.761684] sd 0:0:0:0: [sda] Very big device. Trying to use READ CAPACITY(16).
[    5.763628] sd 0:0:0:0: [sda] Attached SCSI disk
[    5.833309] fbtft: module is from the staging directory, the quality is unknown, you have been warned.
[    5.846190] fbtft_device: module is from the staging directory, the quality is unknown, you have been warned.
[    5.855472] spidev spi1.0: spidev spi1.0 1000kHz 8 bits mode=0x00
[    5.861310] spi spi1.1: ads7846 spi1.1 1000kHz 8 bits mode=0x00
[    5.867280] spidev spi1.0: Deleting spi1.0
[    5.871666] fbtft_device: GPIOS used by 'hktft9340':
[    5.876150] fbtft_device: 'reset' = GPIO21
[    5.880227] fbtft_device: 'dc' = GPIO22
[    5.884019] fbtft_device: 'led' = GPIO18
[    5.887945] spi spi1.1: ads7846 spi1.1 1000kHz 8 bits mode=0x00
[    5.893829] spi spi1.0: fb_ili9340 spi1.0 40000kHz 8 bits mode=0x00
[    6.372167] systemd-journald[262]: Received request to flush runtime journal from PID 1
[    6.517425] fb_ili9340: module is from the staging directory, the quality is unknown, you have been warned.
[    6.689804] gpiomem-exynos 13400000.gpiomem:: Initialised: GPIO register area is 2
[    6.691639] gpiomem-exynos 13400000.gpiomem:: Initialised: Registers at 0x13400000
[    6.691649] gpiomem-exynos 13400000.gpiomem:: Initialised: Registers at 0x14010000
[    7.064055] Console: switching to colour frame buffer device 40x15
[    7.064242] graphics fb0: fb_ili9340 frame buffer, 320x240, 150 KiB video memory, 4 KiB DMA buffer memory, fps=20, spi1.0 at 40 MHz
[    7.338811] usbcore: registered new interface driver uas
[    7.840956] random: crng init done
[    9.180284] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    9.213888] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   10.295721] r8152 6-1:1.0 eth0: carrier on
[   10.295777] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
root@odroid:/etc#
1actobacillus
 
Posts: 3
Joined: Sat Aug 26, 2017 2:24 pm
languages_spoken: english
ODROIDs: xu4

Re: Cloudshell 2 using usb-storage instead of uas

Unread postby neal » Tue Aug 29, 2017 5:03 pm

Because of unstable, the firmware of JMS561 doesn't have UAS mode at the moment.
Please wait until JMicron release it. it will be soon.
neal
 
Posts: 67
Joined: Fri Apr 14, 2017 10:02 am
languages_spoken: english

Re: Cloudshell 2 using usb-storage instead of uas

Unread postby 1actobacillus » Wed Aug 30, 2017 10:16 am

Thanks for the information :) Is there a forum thread where I can get updates on the new firmware's release?

neal wrote:Because of unstable, the firmware of JMS561 doesn't have UAS mode at the moment.
Please wait until JMicron release it. it will be soon.
1actobacillus
 
Posts: 3
Joined: Sat Aug 26, 2017 2:24 pm
languages_spoken: english
ODROIDs: xu4

Re: Cloudshell 2 using usb-storage instead of uas

Unread postby neal » Wed Aug 30, 2017 4:47 pm

I will show you the link in this thread when the new firmware released.

1actobacillus wrote:Thanks for the information :) Is there a forum thread where I can get updates on the new firmware's release?
neal
 
Posts: 67
Joined: Fri Apr 14, 2017 10:02 am
languages_spoken: english

Re: Cloudshell 2 using usb-storage instead of uas

Unread postby 1actobacillus » Sat Sep 02, 2017 12:11 am

Thank you!

neal wrote:I will show you the link in this thread when the new firmware released.

1actobacillus wrote:Thanks for the information :) Is there a forum thread where I can get updates on the new firmware's release?
1actobacillus
 
Posts: 3
Joined: Sat Aug 26, 2017 2:24 pm
languages_spoken: english
ODROIDs: xu4

Re: Cloudshell 2 using usb-storage instead of uas

Unread postby aphirst » Wed Oct 04, 2017 6:11 am

I take it there's been no update from JMicron yet?
aphirst
 
Posts: 24
Joined: Sun Sep 24, 2017 6:35 pm
languages_spoken: english, german
ODROIDs: XU4, C2

Re: Cloudshell 2 using usb-storage instead of uas

Unread postby neal » Thu Oct 05, 2017 5:14 pm

Not yet. but I believe that JMicron tries to solve the problems.
Maybe we could get a new firmware at the end of long holidays.
neal
 
Posts: 67
Joined: Fri Apr 14, 2017 10:02 am
languages_spoken: english

Re: Cloudshell 2 using usb-storage instead of uas

Unread postby aphirst » Thu Oct 05, 2017 8:14 pm

@neal - Fair enough. Will/would the update process (as and when a firmware update does indeed become available) necessitate using a Windows machine? I think I read something to that effect somewhere, but can't seem to find it again now.
aphirst
 
Posts: 24
Joined: Sun Sep 24, 2017 6:35 pm
languages_spoken: english, german
ODROIDs: XU4, C2

Re: Cloudshell 2 using usb-storage instead of uas

Unread postby neal » Tue Oct 24, 2017 12:29 pm

A firmware upgrade is available for CloudShell2.
You can check it follow the link.
https://wiki.odroid.com/accessory/add-o ... re_upgrade
neal
 
Posts: 67
Joined: Fri Apr 14, 2017 10:02 am
languages_spoken: english

Re: Cloudshell 2 using usb-storage instead of uas

Unread postby aphirst » Tue Oct 24, 2017 7:06 pm

Wonderful! I'll try this this afternoon.

To clarify, the instructions say to connect up the Cloudshell2 to a Windows PC, but does that also mean that the XU4 should be disconnected? I would assume so, but I'd rather ask first.
aphirst
 
Posts: 24
Joined: Sun Sep 24, 2017 6:35 pm
languages_spoken: english, german
ODROIDs: XU4, C2

Re: Cloudshell 2 using usb-storage instead of uas

Unread postby neal » Tue Oct 24, 2017 7:35 pm

To clarify, the instructions say to connect up the Cloudshell2 to a Windows PC, but does that also mean that the XU4 should be disconnected? I would assume so, but I'd rather ask first.


Yes...You should do this first. and I will update it at wiki.

0. Pull out the 40pin header where connected between XU4 and Cloudshell2 board.
It cut the power on XU4.
neal
 
Posts: 67
Joined: Fri Apr 14, 2017 10:02 am
languages_spoken: english

Re: Cloudshell 2 using usb-storage instead of uas

Unread postby odroid » Tue Oct 24, 2017 7:51 pm

neal wrote:0. Pull out the 40pin header where connected between XU4 and Cloudshell2 board.
It cut the power on XU4.


It must be "30pin ribbon cable". ;)
User avatar
odroid
Site Admin
 
Posts: 25311
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Cloudshell 2 using usb-storage instead of uas

Unread postby aphirst » Tue Oct 24, 2017 8:50 pm

I'm unable to download the file https://wiki.odroid.com/_media/internal ... 61_fws.zip (Step 5 of the Wiki instructions)

I get a plaintext page saying just "Forbidden".
aphirst
 
Posts: 24
Joined: Sun Sep 24, 2017 6:35 pm
languages_spoken: english, german
ODROIDs: XU4, C2

Re: Cloudshell 2 using usb-storage instead of uas

Unread postby odroid » Tue Oct 24, 2017 9:00 pm

We will fix the link tomorrow.
Meanwhile, use this attached firmware file.
jsm561_fws.zip
(771.69 KiB) Downloaded 11 times
User avatar
odroid
Site Admin
 
Posts: 25311
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Cloudshell 2 using usb-storage instead of uas

Unread postby aphirst » Tue Oct 24, 2017 9:29 pm

Thanks a lot! I'll go test this now in a few minutes, and will report back once I've done.

Also, in JMMassProd.ini, there's an old setting left behind presumably from one of you guys,

WriteFileName=C:\Users\Simon\Desktop\.....

which causes a (hopefully innocuous) error on starting the flashing tool. It might be worth double checking what's left in those .ini files in the distributed archives.
aphirst
 
Posts: 24
Joined: Sun Sep 24, 2017 6:35 pm
languages_spoken: english, german
ODROIDs: XU4, C2

Re: Cloudshell 2 using usb-storage instead of uas

Unread postby neal » Tue Oct 24, 2017 9:38 pm

I fixed the link properly.
Sorry to bother you. :(
neal
 
Posts: 67
Joined: Fri Apr 14, 2017 10:02 am
languages_spoken: english

Re: Cloudshell 2 using usb-storage instead of uas

Unread postby aphirst » Tue Oct 24, 2017 10:29 pm

It's quite alright.

I had to edit the .ini provided in the "firmware" download such that it actually pointed to the correct directory (it was also pointing to some "Simon" related folder, so the real issue is that the .ini files don't seem to do things in terms of relative paths).

I've updated the firmware and as far as I can see, it's now using uas mode! I'll report once again later on the actual performance once I have a bit more time, since I'm getting rushed into a few other RL activities right now. But the board isn't bricked, so things definitely do work after flashing. :)
aphirst
 
Posts: 24
Joined: Sun Sep 24, 2017 6:35 pm
languages_spoken: english, german
ODROIDs: XU4, C2

Re: Cloudshell 2 using usb-storage instead of uas

Unread postby aphirst » Fri Nov 03, 2017 5:29 pm

OK, so, things seemed to be working fine, but I'm afraid to say that that's in fact not really the case.

Several times over the last few days, my XU4 has unmounted all connected disks, in all but one instances during a large (50GB+) copy/rsync operation via the LAN (onto a disk in the CloudShell2, from some other networked machine).

I originally suspected something else, but once I finally bothered to dig through systemd logs, the references to UAS at the moment of failure force me to consider this to be the prime suspect.

https://ptpb.pw/a5gw.txt journalctl output during such a failure, from last night
https://ptpb.pw/4drD.txt same timescale, except with -o verbose

I hope to hear back from you soon, and of course if there's any additional info you need please don't hesitate to ask. I'm keen for this to be fixed (not just for me) as soon as possible, and will also be looking into how to temporary get the device to use usb-storage mode again to verify that the issue doesn't occur there.
aphirst
 
Posts: 24
Joined: Sun Sep 24, 2017 6:35 pm
languages_spoken: english, german
ODROIDs: XU4, C2

Re: Cloudshell 2 using usb-storage instead of uas

Unread postby aphirst » Fri Nov 03, 2017 7:22 pm

I'm really struggling to disable UAS for further testing.

From lsusb:
Bus 004 Device 006: ID 152d:0561 JMicron Technology Corp. / JMicron USA Technology Corp. JMS551 - Sharkoon SATA QuickPort Duo

From lsusb -t
|__ Port 2: Dev 6, If 0, Class=Mass Storage, Driver=uas, 5000M

In /etc/modprobe.d/cloudshell-uas.conf:
options usb-storage quirks=152d:0561:u

On my kernel command line in boot.txt:
setenv bootargs "console=tty1 console=ttySAC2,115200n8 root=PARTUUID=${uuid} rw rootwait smsc95xx.macaddr=${macaddr} ${videoconfig} usb-storage.quirks=0x152d:0x0561:u"

Is there anything else I can try so that I can test usb-storage again with this?
aphirst
 
Posts: 24
Joined: Sun Sep 24, 2017 6:35 pm
languages_spoken: english, german
ODROIDs: XU4, C2

Re: Cloudshell 2 using usb-storage instead of uas

Unread postby aphirst » Sat Nov 04, 2017 2:26 am

I get the same issue when I remove the "0x" parts, and when I replace usb-storage with usb_storage - uas is still used, thus preventing me from testing usb-storage with this device.
aphirst
 
Posts: 24
Joined: Sun Sep 24, 2017 6:35 pm
languages_spoken: english, german
ODROIDs: XU4, C2

Re: Cloudshell 2 using usb-storage instead of uas

Unread postby odroid » Sat Nov 04, 2017 9:32 am

Show us your full dmesg output.
User avatar
odroid
Site Admin
 
Posts: 25311
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Cloudshell 2 using usb-storage instead of uas

Unread postby neal » Sat Nov 04, 2017 3:43 pm

aphirst wrote:Is there anything else I can try so that I can test usb-storage again with this?


I added " usb-storage.quirks=0x152d:0x0561:u" at end of bootargs in boot.ini.
And this show me uas driver is not loaded.
Code: Select all
root@odroidxu4:~# uname -a
Linux odroidxu4 4.9.57-odroidxu4 #9 SMP PREEMPT Sat Oct 21 06:41:47 PDT 2017 armv7l GNU/Linux
root@odroidxu4:~# cat /boot/boot.ini | grep usb-storage
setenv bootargs "${bootrootfs} ${videoconfig} smsc95xx.macaddr=${macaddr} governor=${governor} ${hdmi_phy_control} usb-storage.quirks=${usbstoragequirks} ${extraargs} usb-storage.quirks=0x152d:0x0561:u"
root@odroidxu4:~# lsusb -t
/:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Vendor Specific Class, Driver=r8152, 5000M
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/2p, 5000M
        |__ Port 1: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/2p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=exynos-ohci/3p, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=exynos-ehci/3p, 480M
root@odroidxu4:~#
neal
 
Posts: 67
Joined: Fri Apr 14, 2017 10:02 am
languages_spoken: english

Re: Cloudshell 2 using usb-storage instead of uas

Unread postby aphirst » Sat Nov 04, 2017 5:46 pm

@odroid https://ptpb.pw/xL60 journalctl output from boot
https://ptpb.pw/pLRF dmesg output, I can provide more info if it's difficult to work out what's happening with which disks (in total I have 7 disks connected via 3 adapters).
EDIT: If you wanted dmesg output from the UAS crashing, I don't currently have anything more than I posted previously. Perhaps later I can re-reproduce and get some more info. But make sure you're explicit about which dmesg output (pertaining to which issue) you'd like.

@neal, Is that with or without anything specified in a .conf file under modprobe.d?
aphirst
 
Posts: 24
Joined: Sun Sep 24, 2017 6:35 pm
languages_spoken: english, german
ODROIDs: XU4, C2

Re: Cloudshell 2 using usb-storage instead of uas

Unread postby odroid » Sun Nov 05, 2017 2:55 pm

If UAS was disabled correctly, "lsusb -t" will show you Port 1: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage, 5000M.
Please check it first.
User avatar
odroid
Site Admin
 
Posts: 25311
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Cloudshell 2 using usb-storage instead of uas

Unread postby aphirst » Sun Nov 05, 2017 8:08 pm

Indeed, and that's how I knew that UAS wasn't being correctly disabled, despite me adding what I did to the boot.txt and/or the modprobe.d conf files.

I'll try again today.
aphirst
 
Posts: 24
Joined: Sun Sep 24, 2017 6:35 pm
languages_spoken: english, german
ODROIDs: XU4, C2

Re: Cloudshell 2 using usb-storage instead of uas

Unread postby aphirst » Mon Nov 06, 2017 7:15 pm

OK.

@neal - I've done exactly what you've done, but I don't get the end result of usb-storage being used.

Code: Select all
[alarm@alarm ~]$ uname -a
Linux alarm 4.9.58-1-ARCH #1 SMP PREEMPT Tue Oct 24 01:17:56 UTC 2017 armv7l GNU/Linux
[alarm@alarm ~]$ cat /boot/boot.ini | grep usb-storage
cat: /boot/boot.ini: No such file or directory
[alarm@alarm ~]$ cat /boot/boot.txt | grep usb-storage
setenv bootargs "console=tty1 console=ttySAC2,115200n8 root=PARTUUID=${uuid} rw rootwait smsc95xx.macaddr=${macaddr} ${videoconfig} usb-storage.quirks=0x152d:0x0561:u"
[alarm@alarm ~]$ lsusb -t
/:  Bus 06.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Vendor Specific Class, Driver=r8152, 5000M
/:  Bus 05.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/2p, 5000M
        |__ Port 1: Dev 3, If 0, Class=Hub, Driver=hub/4p, 5000M
            |__ Port 1: Dev 4, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
            |__ Port 3: Dev 5, If 0, Class=Mass Storage, Driver=uas, 5000M
        |__ Port 2: Dev 6, If 0, Class=Mass Storage, Driver=uas, 5000M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/2p, 480M
        |__ Port 1: Dev 3, If 0, Class=Hub, Driver=hub/4p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=exynos-ohci/3p, 12M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=exynos-ehci/3p, 480M
[alarm@alarm ~]$ lsusb
Bus 006 Device 002: ID 0bda:8153 Realtek Semiconductor Corp. RTL8153 Gigabit Ethernet Adapter
Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 004 Device 006: ID 152d:0561 JMicron Technology Corp. / JMicron USA Technology Corp. JMS551 - Sharkoon SATA QuickPort Duo
Bus 004 Device 005: ID 0bc2:3312 Seagate RSS LLC SRD00F2 Expansion Desktop Drive (STBV)
Bus 004 Device 004: ID 152d:0567 JMicron Technology Corp. / JMicron USA Technology Corp. JMS567 SATA 6Gb/s bridge
Bus 004 Device 003: ID 05e3:0612 Genesys Logic, Inc. Hub
Bus 004 Device 002: ID 05e3:0616 Genesys Logic, Inc. hub
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 003: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 003 Device 002: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub


Also, dmesg output. https://ptpb.pw/OmgS.txt

Please advise.
aphirst
 
Posts: 24
Joined: Sun Sep 24, 2017 6:35 pm
languages_spoken: english, german
ODROIDs: XU4, C2

Re: Cloudshell 2 using usb-storage instead of uas

Unread postby aphirst » Mon Nov 06, 2017 7:20 pm

Meanwhile, was there anything indicative of the actual UAS problem in this post viewtopic.php?f=147&t=28086&p=206110#p205852 ?
Dmesg output from a failure instance: https://ptpb.pw/PbCL

It's probably worth pointing out that when trying to reboot the system when this occurs, the machine refuses to go down, necessitating a hard reset. This is with various watchdog settings enabled, so I'd also appreciate some advice on how to be able to actually force a reboot when I'm off-site.
aphirst
 
Posts: 24
Joined: Sun Sep 24, 2017 6:35 pm
languages_spoken: english, german
ODROIDs: XU4, C2

Re: Cloudshell 2 using usb-storage instead of uas

Unread postby aphirst » Mon Nov 06, 2017 10:16 pm

Important update: I hadn't realised that after updating /boot/boot.txt, I was also supposed to run mkscr. I did this, rebooted, and the CloudShell2 board is now using usb-storage.
aphirst
 
Posts: 24
Joined: Sun Sep 24, 2017 6:35 pm
languages_spoken: english, german
ODROIDs: XU4, C2

Re: Cloudshell 2 using usb-storage instead of uas

Unread postby odroid » Tue Nov 07, 2017 10:42 am

I think one of your storage is still working in UAS mode.
Code: Select all
        |__ Port 1: Dev 3, If 0, Class=Hub, Driver=hub/4p, 5000M
            |__ Port 1: Dev 4, If 0, Class=Mass Storage, Driver=usb-storage, 5000M
            |__ Port 3: Dev 5, If 0, Class=Mass Storage, Driver=uas, 5000M


Did you compile boot.txt to boot.scr? I don't use ArchLinux and I'm not sure how it works.
User avatar
odroid
Site Admin
 
Posts: 25311
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: Cloudshell 2 using usb-storage instead of uas

Unread postby aphirst » Tue Nov 07, 2017 7:08 pm

Yes, @odroid. My attempt to set back to usb-storage was hindered by my forgetting to run mkscr, which compiles boot.txt into boot.scr. The CS2 is now, as mentioned, running back in usb-storage mode again, but this still doesn't help work out what was wrong with UAS in the first place (though in any case it's clear to me that the issue is most likely firmware-side).

As can be seen in my normal lsusb output, I have several different USB-SATA bridges connected all at once: the CS2, a 4-bay HDD dock (some other JMicron chip, uses usb-storage), and a single HDD in an enclosure (don't remember the manufacturer, but it uses UAS).
aphirst
 
Posts: 24
Joined: Sun Sep 24, 2017 6:35 pm
languages_spoken: english, german
ODROIDs: XU4, C2

Re: Cloudshell 2 using usb-storage instead of uas

Unread postby tobetter » Tue Nov 07, 2017 7:28 pm

Maybe you can cat '/proc/cmdline' whether "usb-storage.quirks=0x152d:0x0561:u" is applied on the boot. If I understand correctly the output of "lsusb -t" and "lsusb" in your post, it seems the disk which uses "uas" might be this one. If so, you may be able to change it to likely "usb-storage.quirks=0x152d:0x0561:u,0x0bc2:0x3312:u". I haven't tested it, but just guessing it from the driver itself.
Code: Select all
Bus 004 Device 005: ID 0bc2:3312 Seagate RSS LLC SRD00F2 Expansion Desktop Drive (STBV)
tobetter
 
Posts: 2085
Joined: Mon Feb 25, 2013 10:55 am
Location: Kitchener, ON, Canada
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1

Re: Cloudshell 2 using usb-storage instead of uas

Unread postby aphirst » Tue Nov 07, 2017 8:02 pm

@tobetter Yep, it was by viewing /proc/cmdline that I realised it wasn't being applied, and ultimately led me to the conclusion that I forgot to recompile boot.scr. And regarding that Seagate enclosure which still uses UAS, that isn't a problem. My issues with UAS remain exclusively related to the CS2.

(It feels like we're getting hung up on this one point which seems already resolved. Of course, it's useful to be sure that anyone else can revert back to this, but in my opinion the material issue should be working out why the newly-implemented UAS doesn't work, and if it's irreparable, getting the device quick pushed upstream to the kernel, since it's not a good idea to have an assortment of CS2 boards floating around on the market, some of which "support" UAS but are broken when they do.)
aphirst
 
Posts: 24
Joined: Sun Sep 24, 2017 6:35 pm
languages_spoken: english, german
ODROIDs: XU4, C2

Re: Cloudshell 2 using usb-storage instead of uas

Unread postby aphirst » Tue Nov 07, 2017 11:10 pm

Alas, yet more problems, even when using usb-storage.

Now, both disks on the CloudShell2 board refuse to mount, or even show their UUIDs (lsblk -f). This behaviour persists across reboots (which I had to force via sysrq, since doing a normal "reboot" just hangs the system).

https://ptpb.pw/ImsW.txt Dmesg output
https://ptpb.pw/jK0V tail end of journalctl -xe
aphirst
 
Posts: 24
Joined: Sun Sep 24, 2017 6:35 pm
languages_spoken: english, german
ODROIDs: XU4, C2

Re: Cloudshell 2 using usb-storage instead of uas

Unread postby odroid » Thu Nov 09, 2017 8:26 am

Can you try our Ubuntu minimal image to narrow down root causes?
https://wiki.odroid.com/odroid-xu4/os_i ... .9/minimal
Because we don't use ArchLinux, it is not easy to support you efficiently.
User avatar
odroid
Site Admin
 
Posts: 25311
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID


Return to CloudShell

Who is online

Users browsing this forum: No registered users and 2 guests