Jump to content

Radxa rock5c - PentaHat and EMMC


Go to solution Solved by Inis,

Recommended Posts

Posted

Login, type "sudo armbianmonitor -u" and copy the URL here.  the command failed with the following error :

/usr/bin/armbianmonitor: ligne 976: iostat : commande introuvable

img used : Armbian_24.8.4_Rock-5c_bookworm_vendor_6.1.75-omv_minimal.img.xz


hardware :
https://docs.radxa.com/en/accessories/penta-sata-hat
https://docs.radxa.com/en/rock5/rock5c
4 ssd samasung evo 870

 

The image works perfectly when flashed on a SD card and booting from the SD card, the Radxa pentaHat works, the disk are powered (green led for the hat, blue led per each disk).

However, when the image is flashed on emmc, the OS boot normaly but the pentaHat does not work, the disk are not powered and not detected by the os (green led Ok, no blue led for the disk)

Does any of you have an idea why it works using the SD card and not with the emmc ? is their some settings or overlay that could help fix this issue.

I tried the radxa img for the rock5c and it works with either emmc or sd card (https://github.com/radxa-build/rock-5c/releases)

Thank you for your answers and help!

 

Posted

Probably the bootloader, when you boot from SD it uses the bootloader from the SD and when you boot from emmc it loads the bootloader from spi flash or emmc. So update the bootloader and see if it helps

Posted

I tried updating the bootloader without much sucess,
Another clue is that when i update the radxa os on the emmc (apt update && apt upgrade) then the pentaHat do not work anymore. As their is a conflict between emmc and pcie lane used by the hat ?

Posted (edited)

@Inis If that's the case you also won't be able to see the emmc memory and pentaHat at the same time after booting from SD

 

From what I can see is that SPI flash and emmc share the same pins, so the bootloader should be written to the emmc

Edited by royk
Posted

indeed it is not the case.
After further reading, their is no spi flash memory on radxa rock 5c
i have attached a some lsblk results depending on where i boot and which image.

and as i am searching for solution i found this post : https://forum.radxa.com/t/spi-loader-for-rock-5c-lite/21149
but i unsure it is of any help not i understand how i could try updating the spl loader

 

radxa-troubleshooting.mdUnavailable

Posted (edited)

@Inis I think this should work:

 

 

Follow nr 2 and use the device name of your emmc in case it's different.

 

To be sure since it works correctly when you boot from SD, you didn't update the kernel after installing to emmc?

Edited by royk
Posted (edited)

didnt update any thing, and just for the record, the emmc is not soldered and i flashed it using belena etcher.

 

I have donne the steps in the link, and i manage to boot from the emmc, but as before the pentahat is not detected / working.

 

here are the results of the dmesg | grep pci when booting from the sd card
 

  Reveal hidden contents

 here are the results of the dmesg | grep pci when booting from the emmc
 

  Reveal hidden contents


there is a discrepency between the two and considering the pentaHat connects the ssd via pcie maybe it could explain why the disk are not recognize ?

Edited by Inis
Posted (edited)

Hello, did you also posted the thread in the Radxa forum? If so, in case you didn't noticed that, I just copy the reply here and hope that could help.
https://forum.radxa.com/t/rock-5c-pentahat-and-emmc/24624

In short words, the emmc worked fine with nvme on ubuntu-rockchip.
 

After I switch from debian based Radxa OS to ubuntu-rockchip (https://github.com/Joshua-Riek/ubuntu-rockchip/releases/tag/v2.4.0), the problem is solved. Now the OS boot from emmc could use the nvme ssd connected on pcie slot.


I have tested with both 22.04 and 24.04 on Rock 5C and both of them worked fine with pcie connected nvme ssd. The corresponding kernel versions are 5.10.0-1012-rockchip and 6.1.0-1025-rockchip.


There might be some overlay issue and the case was not triggered when booting from SD card.

If you want to dig into this, then I think this thread could be discussing something similiar: 


The output of the lsblk, nvme is detected and worked fine.

ubuntu-rochip-lsblk-output.png

Edited by Lockon Stratos
Posted

If it's not the u-boot you could check for differences between the boot directory of the sd-card and emmc with: diff /dir-of-sd/boot /dir-of-emmc/boot

  • Solution
Posted

@roykAfter many hours, what fixed my issue is reverting to an older kernel .
Indeed it seems 6.1.75-vendor-rk35xx might have issue with nvme / pcie and so the penthat

the solution that worked was downgrading to the 24.8.2 version of the kernel :
 

sudo apt install linux-dtb-vendor-rk35xx=24.8.2 linux-image-vendor-rk35xx=24.8.2
reboot


for reference the solution found was in this post


https://forum.armbian.com/topic/46624-atp-update-changed-kernel-from-6106-current-rockchip-rk3588-to-6175-vendor-rk35xx-and-failed/

 

Thank you Royk for your kind help and suggestions ! it made me read / learn alot but alos helped continue to look further.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines