Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rockchip: add initial support for RK356x #7864

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Kwiboo
Copy link
Member

@Kwiboo Kwiboo commented May 21, 2023

This PR introduces initial support for Rockchip RK356x devices.

U-Boot 2023.07, scheduled for 03 July 2023, will be the first version with decent support for RK356x/RK3588.
The PR currently include and depends on #7365 and will be kept in draft state until u-boot package has been updated to 2023.07.

Main focus of this PR is:

  • Adding initial RK3568 device support to the build system
  • Update rkbin to latest version and add support for using ROCKCHIP_TPL when building U-Boot
  • Boot RK356x devices using mainline U-Boot 2023.07

There are two variants of the SoC supported using the same device, RK3566 and RK3568, they are very similar but unfortunately require unique ddr init blobs.
A new soc value is defined for the added devices in scripts/uboot_helper, this value is used when building a bootable u-boot for the targeted device.

PR will be updated with related u-boot and minimal linux patches until U-Boot 2023.07 has been released.

Future PRs will focus on improving Linux display and media stack.

@MarkusTeufelberger
Copy link

I have a https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R5C here that eventually is planned to run LibreELEC, if there is anything I can do to help/test please just comment here. Support for the device itself has ended up in Linux fairly recently (torvalds/linux@0562003), but at least it is already there. :-)

@Kwiboo Kwiboo force-pushed the rk3568-part1 branch 2 times, most recently from 170a08c to 17fe9cc Compare May 27, 2023 20:05
@Kwiboo
Copy link
Member Author

Kwiboo commented May 27, 2023

@MarkusTeufelberger thanks, I have imported the r5c/r5s device tree into my local u-boot repo and will push patches and build images that can be tested in next few days. Still some rk356x u-boot patches to finalize and submit upstream before that.

@Kwiboo Kwiboo force-pushed the rk3568-part1 branch 3 times, most recently from fd78fa9 to 99e9f0b Compare June 1, 2023 22:07
@diederikdehaas
Copy link

I have a Pine64 Quartz64 Model A and B and if there's an image to download, I'd happily test it.

@Kwiboo Kwiboo force-pushed the rk3568-part1 branch 2 times, most recently from 7bb13af to be77d9a Compare November 18, 2023 22:09
@Kwiboo Kwiboo force-pushed the rk3568-part1 branch 2 times, most recently from 1f90f47 to 3c07da8 Compare November 28, 2023 21:45
@zhangn1985
Copy link
Contributor

I tested U-boot part, success build, flash, boot.

@zhangn1985
Copy link
Contributor

is there any effort on rkvdec-v2 which used on RK3568

@MarkusTeufelberger
Copy link

u-boot is already at 2024.04 in this repo, is there still something missing to go forward with RK356x support?

@Kwiboo
Copy link
Member Author

Kwiboo commented May 7, 2024

@MarkusTeufelberger not that I know, will try to update re-test this PR later this weekend.

Both mainline U-Boot and Linux kernel should be in a good enough state for most 1080p usage last time I checked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants