pmos/u-boot-radxa-cm5 #1126
Labels
No labels
Backport
Blocked
Edge
Enhancement
Fix
Needs action
New aport
postmarketOS
Security
Stable
User
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
forge/ayaports#1126
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Getting a truncate error similar to https://github.com/SecKatie/u-boot-rockchip/issues/1
Notwithstanding that truncate error, if I am to follow with how alpine does it, I should try to use the upstream u-boot if possible, and build arm-trusted-firmware for rk3588, following rk3399.
According to https://gitlab.collabora.com/hardware-enablement/rockchip-3588/notes-for-rockchip-3588/-/blob/main/upstream_uboot.md, rk3588 support is upstreamed, so it'll probablt a question of patching in the defconfig.
That said, I should try to get the rockchip version built first so I have a control.
rk3588 is indeed supported by arm-trusted-firmware: https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/21840 (https://www.collabora.com/news-and-blog/blog/2024/02/21/almost-a-fully-open-source-boot-chain-for-rockchips-rk3588/)
Once I want to bring up mainline, I can base the package on https://gitlab.collabora.com/hardware-enablement/rockchip-3588/debian-image-recipes
Got arm-trusted-firmware updated: https://gitlab.alpinelinux.org/alpine/aports/-/merge_requests/84545
Also looks like I'm getting u-boot-radxa-cm5 to a good place. This ressource was really helpful, as I couldn't figure out how to build the itb and itbloader file: https://opensource.rock-chips.com/wiki_Boot_option
Okay, getting somewhere. The boot process is stuck but at least a first step works!
(stuck with one line in serial: U-Boot TPL 2017.09...)
Got u-boot to a place where it goes through 3.1. Issue is with booting the kernel now:
This fails whether we use the debian kernel or alpine kernel.
It might be the case that u-boot is just to damn old. It might be a good idea to reflash the debian image, and upgrade u-boot to a newer version, and see if it works. An up-to-date branch: https://gitlab.collabora.com/hardware-enablement/rockchip-3588/u-boot
The error was caused by not setting the fdt
Okay, I now have a shell now that the serial port is set as ttyFIQ0 and added in inittab. fdt is all but working, but at least this works.
Okay, so turns out the kernel didn't actually build the required modules. WIth that done, we now have an (empty) screen.