LibreELEC.tv icon indicating copy to clipboard operation
LibreELEC.tv copied to clipboard

Rockchip: switch to mainline u-boot

Open Kwiboo opened this issue 5 years ago • 10 comments

This PR switches Rockchip project to use mainline u-boot instead of vendor u-boot. bootloader/install has been reworked and most parts dealing with what blob to use has been moved to the rkbin package.

The following blobs is used after this PR:

  • RK3288: no blobs
  • RK3328: bl31.elf and ddr.bin ddr init blob is used because open-source alternative is causing an unstable HDMI signal
  • RK3399: bl31.elf

This needs more runtime testing on different rockchip devices, I have runtime tested on:

  • RK3288 Tinker Board S
  • RK3328 Rock64
  • RK3399 RockPi 4

Kwiboo avatar Oct 11 '20 14:10 Kwiboo

Allwinner project needs following changes: http://ix.io/2AqL (build tested only)

jernejsk avatar Oct 11 '20 21:10 jernejsk

I've done some testing with the two patches in this tree https://github.com/chewitt/u-boot/commits/2020.10-patches with newer Amlogic devices and so far no problems.

chewitt avatar Oct 12 '20 01:10 chewitt

@jernejsk @chewitt thanks! I have updated the u-boot v2020.10 commit with your changes and did a quick scripts/unpack check. I will create a new PR with the update to v2020.10 and let this PR only handle the rockchip switch to mainline u-boot.

Kwiboo avatar Oct 12 '20 16:10 Kwiboo

Hi @Kwiboo

we've tested this patch set, rebased on master with U-Boot 2021.01 on @petr-chlupaty's Rockpro64 board and can confirm that Rockpro64 (RK3399) works well too.

It's actually better, because the Rockchip's U-Boot seems to do something to the ethernet PHY that dramatically increases packet loss on 1Gbps media. (Sorry, I haven't traced the issue down, given the boot loader update just fixes things and I've seen forum posts that indicate it's a known issue on some revisions of the board.)

Thanks for your work on this.

Lubo

lkundrak avatar Feb 23 '21 19:02 lkundrak

Anyone working on an updated patch? Would be very useful to have mainline u-boot working for RK3328/RK3399 devices.

mo123 avatar Jun 25 '21 14:06 mo123

@knaerzche any news here ?

CvH avatar Dec 25 '21 12:12 CvH

Anyone working on a newer u-boot for Rockchip devices? I see LibreELEC still uses u-boot from 12 Sep 2018, stock Rockchip u-boot which is very ancient.

A year ago I tested u-boot 2021.04 and everything worked fine on RK3399 ROC-PC-PLUS, RK3328 ROC-PC. With current 2018 u-boot, RK3328 ROC-PC which is already in mainline kernel and merged into LibreELEC kernel package, can't boot since it needs 'rock64-rk3328_defconfig' and 2018 u-boot only has evb-rk3328_defconfig which is unbootable on it.

Armbian already uses 2021.07 u-boot and all supported Rockchip devices seem to work fine with it. Perhaps it's packages and patches can be used?

mo123 avatar Feb 23 '22 14:02 mo123

@knaerzche any news here ?

fliegenderfish avatar Mar 05 '22 10:03 fliegenderfish

Could someone confirm that this project is dead? Thats what it seems to me! Thanks ...

fliegenderfish avatar Mar 29 '22 22:03 fliegenderfish

Could someone confirm that this project is dead? Thats what it seems to me! Thanks

fliegenderfish avatar May 21 '22 11:05 fliegenderfish

superseeded by https://github.com/LibreELEC/LibreELEC.tv/pull/6885

CvH avatar Sep 11 '22 09:09 CvH