Hi. I’m maintaining a yocto layer called meta-radxa. Currently it has support for Rockpi-4, RockPi-S and the RockPi-E. Here is the link to meta-radxa if you want to build your own image. I currently don’t have the RockPi-4 and the RockPi-E and hence I’ve not been able to test the current builds. If anyone is up for testing these builds here are the images.
I’ve updated the boot.cmd and uEnv.txt for RockPi-E in the meta-radxa layer. The board should boot up now. Anyone up for testing please use the link above and do send the debug logs. Serial console should be available on UART-2.
There was an issue with the trust.img for RockPi-4 and RockPi-E. That has been fixed and the images have been updated on the above links. I received my RockPi-E(D8W2) sample today and have tried the fixed RockPi-E builds. They work perfectly fine. So you can now build your custom image for the RockPi-E board successfully using the meta-radxa layer.
Thank you for taking time out to test the image for RockPi-4. Yes the firmware for AP6256 was missing. I’ve included the firmware to the new builds and also updated the meta-radxa layer for the same. The wifi for RockPi-4 should work now. If you want to try it out here is the link: https://www.dropbox.com/s/767wgi4ktgbo6rr/radxa-console-image-rockpi-4b-rk3399-gpt.img?dl=0
found the issue, the gadget support needs to be set as ‘Module’. the default config has it set in a ‘linked in’ to the kernel.
(I like module support, as it allows you to enable/disable specific Gadget modules.)
I think you can change the ROCK Pi S kernel commit id to 5e1be82eb296ba36f9f656a1b9ee9c2df7e5a1db in file linux-rockpi-s_4.4.bb since ROCK Pi S kernel in Radxa repo helps fixed the issue.
Hi @mattes. I’m glad you found it easy. I checked the commits in the radxa kernel repo for the rockpi-s and this has been solved there as @Stephen rightly pointed out. I’ll update the recipe to the latest commit and this should solve the problem.
Thanks again for maintaining this layer . I’m trying to generate and boot a FIT image for Rock Pi S via Yocto, and I’m not being able to boot it… I’ve moved my changes from my layer to the fitimage branch on my meta-radxa fork on github. Only the last commit (actually changing image type to fitImage) is not working (hanging after Starting kernel ....
On the first 2 commits I patch the device tree to enable uart0 without overlay and disable overlays, to prevent any overlay loading problems.
I’ve also tried to modify the load address and kernel entry point to some common addresses on the machine config by using the following resulting in an abort.
I’ll go through the commits and get back to you. From a quick glance of the commits, the first 2 seem to be fine and should not be causing this. The 3rd commit is the one I’ll need to check. I haven’t worked with fitImages but surely I’ll go through it.
@Stephen could you take a look at this when you get time?
root@rockpi-s-rk3308:~# export DISTRO=buster-testing
t.d/apt-radxa-com.list# echo “deb http://apt.radxa.com/$DISTRO/ ${DISTRO%-*} main” | sudo tee -a /etc/apt/sources.lis
deb http://apt.radxa.com/buster-testing/ buster main
root@rockpi-s-rk3308:~# wget -O - apt.radxa.com/$DISTRO/public.key | sudo apt-key add -
wget: bad address ‘apt.radxa.com’
Error: gnupg or gnupg2 do not seem to be installed,
Error: but apt-key requires gnupg or gnupg2 for this operation.
root@rockpi-s-rk3308:~# sudo apt-get update
Err:1 http://apt.radxa.com/buster-testing buster InRelease
Temporary failure resolving ‘apt.radxa.com’
Reading package lists… Done
W: Target Packages (main/binary-arm64/Packages) is configured multiple times in /etc/apt/sources.list.d/apt-radxa-com.list:2
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/apt-radxa-com.list:1 2
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/apt-radxa-com.lis2
W: Failed to fetch http://apt.radxa.com/buster-testing/dists/buster/InRelease Temporary failure resolving ‘apt.radxa.com’
W: Some index files failed to download. They have been ignored, or old ones used instead.
W: Target Packages (main/binary-arm64/Packages) is configured multiple times in /etc/apt/sources.list.d/apt-radxa-com.list:2
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/apt-radxa-com.list:1 2
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/apt-radxa-com.lis2
root@rockpi-s-rk3308:~# apt-get install io
Reading package lists… Done
Building dependency tree… Done
E: Unable to locate package io
root@rockpi-s-rk3308:~# sudo apt-get install io
Reading package lists… Done
Building dependency tree… Done
E: Unable to locate package io
Yes, the patch was added to this package now. Then, I can install “io” with “DISTRO=buster-testing”, but failed to install another, for examples “git”, “minicom”, “python3-pip”, you known those packages are commonly used.
Testing information:
root@rockpi-s-rk3308:~# sudo apt-get update
Get:1 http://apt.radxa.com/buster-testing buster InRelease [2363 B]
Get:2 http://apt.radxa.com/buster-testing buster/main arm64 Packages [48.1 kB]
Fetched 50.4 kB in 1s (32.7 kB/s)
Reading package lists… Done
root@rockpi-s-rk3308:~# sudo apt-get install io
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following NEW packages will be installed:
io
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/1102 kB of archives.
After this operation, 0 B of additional disk space will be used.
Selecting previously unselected package io.
(Reading database … 21173 files and directories currently installed.)
Preparing to unpack …/apt/archives/io_0.1_arm64.deb …
Unpacking io (0.1) …
Setting up io (0.1) …
root@rockpi-s-rk3308:~# sudo apt-get install git
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package git
root@rockpi-s-rk3308:~# sudo apt-get install python3-pip
Reading package lists… Done
Building dependency tree
Reading state information… Done
E: Unable to locate package python3-pip
In addition, I have also append the some sources in the file “/etc/apt/source.list”: