Rk3582 soc broken ip node check

I have written a shell script to check which soc node is broken on rk3582 soc.

You have to flash an armbian 5.10 legacy image of rock5c because it has modified uboot to unblock all good ip cores. If you flash 6.1 vendor image, you will get gpu enabled even you have broken gpu.

How to use:

curl --silent https://cdn.haguro.top/check-rk3582.sh |bash -

Result is in Chinese, you can use google translate for your language.

6 Likes

possible bug with your script or just some diffrence between our installs. both encoders will return NO as the device to query for me should be:

/sys/devices/platform/fdbd0000.rkvenc
/sys/devices/platform/fdbe0000.rkvenc

rather than

/sys/devices/platform/fdbd0000.rkvenc-core
/sys/devices/platform/fdbe0000.rkvenc-core

it seems only decoders have the -core suffix

the other option for people that dont want to run a script from an unknown source, you can just use journalctl -b | grep <DEVICE_PATH>

I don’t know which kernel you are using.
In the devicetree that armbian is using node name is rkvenc-core:

yeah, im wrong… just booted up my other 5c lite and this one has a dead gpu but both encoders and the script works as expected.

the min spec for RK3582 is one encoder core right? possible its getting renamed when theres only one?

Yes uboot has renamed the node when disabling one decoder or encoder. I have updated the check script.

2 Likes

thanks for all your work on this

@amazingfate - is there a prebuilt image with 5.10 kernel and adjusted u-boot somewhere downloadable? i’m asking as the armbian downloads seem to focus on v6.1 and mainline only.

a lot of thanks in advance and best wishes - hexdump

1 Like

5.10 kernel can use exactly the same deivcetree from 6.1. There is no 5.10 prebuilt image but you can build one by yourself.

1 Like

If you are interested on Arch Linux, my image have this patch applied for the CM5 and Rock 5C:
https://github.com/kwankiu/archlinux-installer/releases/tag/b07

And here is the patched u-boot package with rk3582 unlocked
https://github.com/kwankiu/archlinux-installer/releases/download/kernel/uboot-radxa-rknext_2017.09-1_arm64.deb

1 Like

Sorry for the newbie question, how does OS images are created?

@kwankiu You are the only one to provide materials for rk3582 SoC on this forum :pray:
Can you please share it as an .img or at least explain how to make it “flashable” on a SPI module?

BR

I dont have a u-boot image for SPI since neither rock 5c nor cm5 came with SPI
If you really want to flash it to an SPI module (either on rock 5c’s emmc/spi socket, or an IO board for cm5) you can try dding the u-boot img and loader file contained in the deb package linked above, but it might not be as straight forward, alternatively you can put armbian’s patch to radxa’s build tool and build SPI image following radxa’s documentation.

Or if UEFI works for you, the easiest way is to flash the UEFI EDK2 image on the SPI
https://github.com/kwankiu/edk2-rk3588/releases/tag/debug

Thanks @kwankiu :pray:t2:
I’m trying to achieve netbooting on my 5C lite (with a PoE hat).
The idea is to have a U-boot running on the SPI flash module handling OS files from a TFTP & NFS server.
I’ve already done that with Rpi devices.
Unfortunately, no matter the way I tried, I can’t make my board boot.

The only one which gave me output and blinking blue LED is EDK2-porting firmware, however it seems that netboot options are only provided on REALTEK NIC equipped devices. (https://github.com/edk2-porting/edk2-rk3588/issues/181)

UPDATE