ubuntu-rockchip icon indicating copy to clipboard operation
ubuntu-rockchip copied to clipboard

[FR] Add support for various rk3566 retro handheld devics (Anbernic/Powkiddy RG353M/P/V X55 etc) + Add build documentation

Open aenertia opened this issue 1 year ago • 4 comments

These are all mostly similar to the OrangePi3B (8/32GB or None Emmc, and 2GB Ram) with various extra dtsi/dtb for their screens and controller inputs. Thankfully most of these are now in mainline.

Ideally now that both the rk3588 and rk3566 have somewhat usable UEFI shims - moving to a standard UEFI style install would be grand, but that's a whole other ticket.

I've been trying to figure out what your buid pipeline looks like so I can add these targets myself rather than taking the orangepi3b image and hacking at it.

Any tips appreciated.

aenertia avatar May 21 '24 11:05 aenertia

I'm trying to follow the upstream ubuntu process, but sadly its pretty much not documented and relies heavily on Launchpad. Because of that it will be hard to make your own modifications to the kernel and bootloader, everything else is kind of simple.

I need to make adjustments to allow for easy kernel and bootloader development.

Joshua-Riek avatar May 22 '24 22:05 Joshua-Riek

@aenertia Talking about TODAY fixes for your problem you can compile Radxa U-boot inside armbian build for kernel 6.1 and change the boot partition inside joshua OrangePi3B image to your armbian image. it will change the board boot method and the DTB files.

hqnicolas avatar May 30 '24 20:05 hqnicolas

I have been using arkOS's ancient 4.19 BSP kernel and initrd and bootloader with the userspace ; the mainline uboot in 6.10 works with the rk3566 as used in rocknix ; I don't think the relevant DTSI's for the anbernic/powkiddy devices are in the 6.1 tree (they might be but I think they were not added to mainline until after whenever the ubuntu-rockchip 6.1 fork was made).

I was using the opi3b base. The main trick is going to be around the dtb. I think most of these boards are most similar to the evb2 dtb that's in there.

aenertia avatar May 31 '24 02:05 aenertia

@aenertia

The main trick is going to be around the dtb.

Some DTSi methods diff from mainline linux

I think you can take the anbernic/powkiddy mainline linux as an example for: USB [okay | disabled] sdmmc* [okay | disabled] VOP [okay | disabled] UART [okay | disabled] pmic enabling method pinctrl RK_Pin names RK_Pin names

and you can take Rockchip Kernel 6.1 DTS evb2 as an example for: #include method GPU enabling method rkvdec enabling method Wifi enabling method sram enabling method thermal_zones enabling method reserved_memory enabling method

This is result in a Develop image where you can debug all other Peripherals

hqnicolas avatar May 31 '24 09:05 hqnicolas

This issue has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 14 days. Thank you for your contribution!

github-actions[bot] avatar Nov 29 '24 18:11 github-actions[bot]

This issue has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.

github-actions[bot] avatar Dec 30 '24 12:12 github-actions[bot]