[armbian] kernel-5.4: HC1 sata unavailable upon soft reset

Post Reply
belegdol
Posts: 8
Joined: Sat Sep 07, 2019 2:44 am
languages_spoken: english
ODROIDs: hc1
Has thanked: 0
Been thanked: 0
Contact:

[armbian] kernel-5.4: HC1 sata unavailable upon soft reset

Post by belegdol »

This was originally reported here:
https://forum.armbian.com/topic/15611-o ... disappear/
After I switched my Armbian installation from kernel-4.14 to kernel-5.4, I always have to power cycle my HC1 after a soft reset or the sata drive will not be available. This happens regardless of whether the HC1 or the XU4 dtb is selected. dmesg shows the following:

Code: Select all

[    6.180251] usbcore: registered new interface driver usb-storage
[    6.198627] scsi host0: uas
[    6.199634] usbcore: registered new interface driver uas
[    6.200731] scsi 0:0:0:0: Direct-Access     JMicron  Generic          3102 PQ: 0 ANSI: 6
[    6.211766] sd 0:0:0:0: [sda] Unit Not Ready
[    6.211785] sd 0:0:0:0: [sda] Sense Key : 0x4 [current] 
[    6.211796] sd 0:0:0:0: [sda] ASC=0x44 <<vendor>>ASCQ=0x81 
[    6.212701] sd 0:0:0:0: [sda] Read Capacity(16) failed: Result: hostbyte=0x00 driverbyte=0x08
[    6.212713] sd 0:0:0:0: [sda] Sense Key : 0x4 [current] 
[    6.212722] sd 0:0:0:0: [sda] ASC=0x44 <<vendor>>ASCQ=0x81 
[    6.213506] sd 0:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=0x00 driverbyte=0x08
[    6.213515] sd 0:0:0:0: [sda] Sense Key : 0x4 [current] 
[    6.213524] sd 0:0:0:0: [sda] ASC=0x44 <<vendor>>ASCQ=0x81 
[    6.214211] sd 0:0:0:0: [sda] 0 512-byte logical blocks: (0 B/0 B)
[    6.214220] sd 0:0:0:0: [sda] 0-byte physical blocks
[    6.214996] sd 0:0:0:0: [sda] Test WP failed, assume Write Enabled
[    6.215490] sd 0:0:0:0: [sda] Asking for cache data failed
[    6.215500] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    6.216283] sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes not a multiple of physical block size (0 bytes)
[    6.300212] sd 0:0:0:0: [sda] Unit Not Ready
[    6.300248] sd 0:0:0:0: [sda] Sense Key : 0x4 [current] 
[    6.300280] sd 0:0:0:0: [sda] ASC=0x44 <<vendor>>ASCQ=0x81 
[    6.301359] sd 0:0:0:0: [sda] Read Capacity(16) failed: Result: hostbyte=0x00 driverbyte=0x08
[    6.301391] sd 0:0:0:0: [sda] Sense Key : 0x4 [current] 
[    6.301421] sd 0:0:0:0: [sda] ASC=0x44 <<vendor>>ASCQ=0x81 
[    6.302482] sd 0:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=0x00 driverbyte=0x08
[    6.302511] sd 0:0:0:0: [sda] Sense Key : 0x4 [current] 
[    6.302540] sd 0:0:0:0: [sda] ASC=0x44 <<vendor>>ASCQ=0x81 
[    6.305851] sd 0:0:0:0: [sda] Attached SCSI disk
[    6.350199] usb 6-1: reset SuperSpeed Gen 1 USB device number 2 using xhci-hcd
[    6.449991] r8152 6-1:1.0 eth0: v1.10.11
[    6.766997] usb 6-1: reset SuperSpeed Gen 1 USB device number 2 using xhci-hcd
ETA: I manually rebuilt and updated to latest kernel from HK git (5.4.77), it did not help.

User avatar
odroid
Site Admin
Posts: 35871
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English, Korean
ODROIDs: ODROID
Has thanked: 1316 times
Been thanked: 910 times
Contact:

Re: [armbian] kernel-5.4: HC1 sata unavailable upon soft reset

Post by odroid »

You might need to compare the u-boot code with ours too.
There must be a SD card power regulator reset code in the boot loader to reset the UHS storage properly.

belegdol
Posts: 8
Joined: Sat Sep 07, 2019 2:44 am
languages_spoken: english
ODROIDs: hc1
Has thanked: 0
Been thanked: 0
Contact:

Re: [armbian] kernel-5.4: HC1 sata unavailable upon soft reset

Post by belegdol »

Thanks! Looking at the configuration [1] the following u-boot source is getting used:
https://github.com/hardkernel/u-boot/tr ... 4-v2017.05
The following patch is applied in addition:
https://github.com/armbian/build/blob/m ... tcmd.patch
This is the config:
https://github.com/armbian/build/blob/m ... id-xu4.ini
Anything in particular I should be looking for? Thanks!

[1] https://github.com/armbian/build/blob/m ... idxu4.conf

Post Reply

Return to “Other OS”

Who is online

Users browsing this forum: No registered users and 2 guests