Rock5b has a full featured typec port, which gives a lot of possibilities to user. And rock5b is the only SBC with this feature. But this feature is not well supported on linux. I’ve been investigating the typec port since I received the rock5b v1.3 developer edition at July 2022. Although issues are not solved thoroughly, I can give some advice on how to avoid pd power issues.
There are two issues:
A, board will get into boot loop(the led will get on and off when pd power is plugged in). This is because it take too much time (longer than 5 seconds) when kernel driver starts to do the negotiation, and the pd power will hard reset the pd state machine, which leads to power down.
B, When system is on nvme ssd, I can’t get into DP alt mode(I am using a typec monitor to power the board, and after system is up the monitor is lighted up). I don’t know why it happends. This issue is solved by changing to a 10 gbs typec cable.
And there are two fixes now:
1, Patch1 makes pd negotiation faster in kernel driver. This will make things better, but doesn’t work all the time. I still get boot loop when system is on NVME SSD.
2, Patch2 will do pd negotiation at u-boot so that kernel will continue with the pd state negotiated by u-boot. But this patch will break DP alt mode because the pd driver in u-boot doesn’t support dp alt mode and DFP/UFP detection.
Patch1 is already merged into the kernel repo of armbian. Here is two versions of u-boot, one has patch2 applied, the other one doesn’t have patch2 applied: uboot.zip (2.1 MB)
If you don’t need dp alt mode and just want your board working with pd power, install linux-u-boot-rock-5b-legacy_23.08.0-trunk--2017.09-Sbf47-P987b-He8c0-Vf9d0-Be203_arm64.deb
under dir pd
, and run command sudo armbian-install
to update the bootloader on SD/eMMC or MTD Flash.
If you want dp alt mode, you can install linux-u-boot-rock-5b-legacy_23.08.0-trunk--2017.09-Sbf47-Pbd5c-He8c0-Vf9d0-Be203_arm64.deb
under dir no-pd
, and run command sudo armbian-install
to update the bootloader on SD/eMMC or MTD Flash. Note: this deb file should be the same as the one in the latest armbian image, you don’t need to install it if you are using the latest 23.05 armbian.
For the dp alt mode issue when my system is on NVME SSD, I have given up trying it. I use nvme mounted as /home partiton and use emmc as my root partition. It’s working fine now. I need a 10gbs typec cable to make dp alt mode work with NVME SSD.