ODROIDHC4: SATA failure with Armbian Armbian_20.11.10_Odroidhc4_buster_current_5.9.14.img.xz

Post Reply
lazerdye
Posts: 3
Joined: Tue Jan 26, 2021 6:58 pm
languages_spoken: english
ODROIDs: odroidhc2, odroudxu4, odroidc2, odroidc4, odroidn2, odroidh2
Has thanked: 0
Been thanked: 2 times
Contact:

ODROIDHC4: SATA failure with Armbian Armbian_20.11.10_Odroidhc4_buster_current_5.9.14.img.xz

Post by lazerdye »

Hi, I have some issues with odroidhc4. I have the same issue with these two Armbian versions:

Armbian_20.11.10_Odroidhc4_buster_current_5.9.14.img.xz
Armbian_20.11.10_Odroidhc4_focal_current_5.9.14.img.xz

and with these two ssd drives:
Samsung SSD 860 EVO 500GB
Samsung SSD 870 QVO 1000GB

What happens is, I create a LVM partition on the disk:

Code: Select all

pvcreate /dev/sda1

Code: Select all

vgcreate tost-vg /dev/sda1

Code: Select all

lvcreate lvcreate -n perf -L 64G tost-vg
and when I create the filesystem on this lvm the system hangs:

Code: Select all

mkfs.ext4 -L perf /dev/mapper/tost--vg-perf 
after a short bit, I see this error on dmesg:

Code: Select all

[  269.282436] ata1.00: exception Emask 0x0 SAct 0x20000 SErr 0x0 action 0x6 frozen
[  269.285970] ata1.00: failed command: SEND FPDMA QUEUED
[  269.291110] ata1.00: cmd 64/01:88:00:00:00/00:00:00:00:00/a0 tag 17 ncq dma 512 out
                        res 40/00:01:00:00:00/00:00:00:00:00/00 Emask 0x4 (timeout)
[  269.306097] ata1.00: status: { DRDY }
[  269.309632] ata1: hard resetting link
[  269.786416] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)
[  269.786683] ata1.00: supports DRM functions and may not be fully accessible
[  269.788844] ata1.00: supports DRM functions and may not be fully accessible
[  269.790685] ata1.00: configured for UDMA/133
[  269.790717] ata1: EH complete
[  269.790963] ata1.00: Enabling discard_zeroes_data
Here is some more info from boot:

Code: Select all

[    0.000000] Booting Linux on physical CPU 0x0000000000 [0x411fd050]                                                                                                                
[    0.000000] Linux version 5.9.14-meson64 (root@beast) (aarch64-linux-gnu-gcc (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36)) 8.3.0, GNU ld (GNU Toolchain
 for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36)) 2.32.0.20190321) #20.11.3 SMP PREEMPT Fri Dec 11 21:02:17 CET 2020                                                        
[    0.000000] Machine model: Hardkernel ODROID-HC4                                                                                                                                   
[    0.000000] efi: UEFI not found.                                                                                                                                                   
[    0.000000] [Firmware Bug]: Kernel image misaligned at boot, please fix your bootloader!                                                                                           
[    0.000000] Reserved memory: created CMA memory pool at 0x00000000b7c00000, size 896 MiB       
I would like to know how to debug this further, can I determine if this is a hardware problem with the odroidhc4?

lazerdye
Posts: 3
Joined: Tue Jan 26, 2021 6:58 pm
languages_spoken: english
ODROIDs: odroidhc2, odroudxu4, odroidc2, odroidc4, odroidn2, odroidh2
Has thanked: 0
Been thanked: 2 times
Contact:

Re: ODROIDHC4: SATA failure with Armbian Armbian_20.11.10_Odroidhc4_buster_current_5.9.14.img.xz

Post by lazerdye »

Crickets... I might have a lead, first I tried upgrading the ssd firmware, while that was painless, it did not help. Then I found this post that suggested disabling NCQ:

Code: Select all

https://askubuntu.com/questions/133946/are-these-sata-errors-dangerous
To do that, I added this line to /boot/armbianEnv.txt:

Code: Select all

extraargs=libata.force=noncq
and updated init:

Code: Select all

sudo mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr
and reboot... Now, surprise, I can mkfs.ext4:

Code: Select all

 mkfs.ext4 /dev/mapper/tost--vg-perf 
mke2fs 1.45.5 (07-Jan-2020)
/dev/mapper/tost--vg-perf contains a ext4 file system
        created on Mon Feb  1 22:01:23 2021
Proceed anyway? (y,N) y
Discarding device blocks: done                            
Creating filesystem with 16777216 4k blocks and 4194304 inodes
Filesystem UUID: 9ec66ecb-09e6-460c-b3e2-4047b4d312f8
Superblock backups stored on blocks: 
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
        4096000, 7962624, 11239424

Allocating group tables: done                            
Writing inode tables: done                            
Creating journal (131072 blocks): done
Writing superblocks and filesystem accounting information: done  
Filesystem performance seems about the same.

I will put this machine into service and watch for any other problems!
These users thanked the author lazerdye for the post (total 2):
odroid (Tue Feb 02, 2021 12:52 pm) • igorpec (Tue Feb 02, 2021 3:55 pm)

igorpec
Posts: 992
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 59 times
Been thanked: 143 times
Contact:

Re: ODROIDHC4: SATA failure with Armbian Armbian_20.11.10_Odroidhc4_buster_current_5.9.14.img.xz

Post by igorpec »

lazerdye wrote:
Tue Feb 02, 2021 6:09 am
To do that, I added this line to /boot/armbianEnv.txt:

Code: Select all

extraargs=libata.force=noncq
and updated init:
This second part, boot script recompilation part, is not needed.

Perhaps we should just default this parameter?
ARMBIAN
Linux for ARM development boards
What is Armbian?

lazerdye
Posts: 3
Joined: Tue Jan 26, 2021 6:58 pm
languages_spoken: english
ODROIDs: odroidhc2, odroudxu4, odroidc2, odroidc4, odroidn2, odroidh2
Has thanked: 0
Been thanked: 2 times
Contact:

Re: ODROIDHC4: SATA failure with Armbian Armbian_20.11.10_Odroidhc4_buster_current_5.9.14.img.xz

Post by lazerdye »

Thanks, all I can say is in my configuration, it turned an unusable system into a working system, so personally I'd say yes, at least until it's known what's actually causing the problem.

igorpec
Posts: 992
Joined: Sat Dec 12, 2015 4:34 pm
languages_spoken: english,german,slovene
ODROIDs: XU4, HC1, C2, C1+
Has thanked: 59 times
Been thanked: 143 times
Contact:

Re: ODROIDHC4: SATA failure with Armbian Armbian_20.11.10_Odroidhc4_buster_current_5.9.14.img.xz

Post by igorpec »

lazerdye wrote:
Tue Feb 02, 2021 7:00 pm
Thanks, all I can say is in my configuration, it turned an unusable system into a working system, so personally I'd say yes, at least until it's known what's actually causing the problem.
Added: https://github.com/armbian/build/pull/2602
ARMBIAN
Linux for ARM development boards
What is Armbian?

Post Reply

Return to “Issues”

Who is online

Users browsing this forum: No registered users and 1 guest