Odroid HC4 sata drives not recognized

Having issues with your DietPi installation or found a bug? Post it here.
BitWise
Posts: 11
Joined: Mon May 28, 2018 1:41 am

Odroid HC4 sata drives not recognized

Post by BitWise »

Installed the current Odroid C4/HC4 image; boots fine and setup ran without an issue, but sata drives aren't recognized. Checked with another computer and both drives are functioning. Using mount, lsblk, and fdisk on the HC4 all show the microsd, but no sata drives.
User avatar
Joulinar
Posts: 4823
Joined: Sat Nov 16, 2019 12:49 am

Re: Odroid HC4 sata drives not recognized

Post by Joulinar »

Hi

thats bad if the drive is not recognized by lsblk. It means the OS did not detect the drive. There could be multiple reason. The kernel did not support the drive. There is not enough power to get the drive working. Bad cable.

Did you tried an Armbian Buster image? https://www.armbian.com/odroid-c4/
Or a plain Debian image? https://forum.odroid.com/viewtopic.php?f=203&t=38729

Would be interesting to know if this is working because DietPi is not an own operating system. It's a set of scripts on top of a base image like Armbian or plain Debian

Next to this, you could have a look to dmesg and journalctl if there are any messages related to your drive once you plugged it in.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
BitWise
Posts: 11
Joined: Mon May 28, 2018 1:41 am

Re: Odroid HC4 sata drives not recognized

Post by BitWise »

The power supply is 15V/4A recommended for the HC4 and provided by ameridroid, with no visible damage to the power supply's case or cable. Both the Armbian HC4 image and the Debian image you linked can see and mount the drive. Tested a usb hard drive and it is recognized by dietpi and mounts fine, but drives connected to the sata ports aren't detected. Checked dmesg and journalctl and the only uuids were for the microsd, nothing for sata.
User avatar
Joulinar
Posts: 4823
Joined: Sat Nov 16, 2019 12:49 am

Re: Odroid HC4 sata drives not recognized

Post by Joulinar »

so if you use the Armbian image, you can connect the SATA drive and it will be recognized?

BTW: there was a new image released for Odroid HC4 a couple of hours ago. Maybe you can give it a try. https://github.com/MichaIng/DietPi/issu ... -752116707
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
BitWise
Posts: 11
Joined: Mon May 28, 2018 1:41 am

Re: Odroid HC4 sata drives not recognized

Post by BitWise »

Yes, the sata drive is recognized and usable on both the armbian hc4 image and the debian image. As for the new dietpi image, sata drives still not recognized.
User avatar
Joulinar
Posts: 4823
Joined: Sat Nov 16, 2019 12:49 am

Re: Odroid HC4 sata drives not recognized

Post by Joulinar »

ok I forwarded the issue into the GitHub post.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
BitWise
Posts: 11
Joined: Mon May 28, 2018 1:41 am

Re: Odroid HC4 sata drives not recognized

Post by BitWise »

Alright, your help is appreciated.
User avatar
MichaIng
Site Admin
Posts: 3023
Joined: Sat Nov 18, 2017 6:21 pm

Re: Odroid HC4 sata drives not recognized

Post by MichaIng »

Could you please try this image? https://dietpi.com/meveric/images/Buste ... -C4.img.xz
There should be no package required as SATA drivers should be part of the kernel. The image above uses the same kernel, but has been successfully tested by more users and has more packages pre-installed.
BitWise
Posts: 11
Joined: Mon May 28, 2018 1:41 am

Re: Odroid HC4 sata drives not recognized

Post by BitWise »

Sata drives are recognized and usable with that image.
User avatar
MichaIng
Site Admin
Posts: 3023
Joined: Sat Nov 18, 2017 6:21 pm

Re: Odroid HC4 sata drives not recognized

Post by MichaIng »

Okay, I uploaded the new image yesterday 17:32, so probably including Cloudflare cache, in your case still the old was downloaded. Do you still have the DietPi image on an SD card? Aside of the kernel package upgrade (that is done automatically on first boot), the boot.ini on the first (FAT) partition needs to contain this part:

Code: Select all

if test "x${variant}" != "x"; then
	fatload mmc ${devno}:1 ${dtb_loadaddr} meson64_odroid${variant}.dtb
else
	fatload mmc ${devno}:1 ${dtb_loadaddr} meson64_odroidc4.dtb
fi
This loads the HC4 device tree when its booting on it, which likely is required to have the SATA port recognised. I'm having a look into the installed packages as well, but actually there should none be required as this is a kernel driver.

... ah, I see the kernel package is not the same, the upstream version yes, but the current package is a rebuild with, from what I see, some more joystick drivers added :). If you still have Meverics image running, could you try: apt update; apt full-upgrade and then do a reboot? Probably the rebuild broke SATA, at least good to rule it out.
Post Reply