Comments (18)
Ok nice. Thanks I'll make changes to fix it in master + kirkstone
from meta-sunxi.
@retpolanne please try to build on atf-fixes
branch and let me know so can merge it. Thanks.
from meta-sunxi.
I added IMAGE_FSTYPES += "wic.xz"
to my local.conf and it seems that, even though the xz has "rootfs" on its name, it contains u-boot as well. However, it doesn't boot:
U-Boot SPL 2023.04-gfd4ed6b (Apr 03 2023 - 20:38:50 +0000)
DRAM: 1024 MiB
Trying to boot from MMC1
Seems to be related to this?
https://forum.pine64.org/showthread.php?tid=15653
from meta-sunxi.
Do you use master branch for building an image please? usually such log means something is wrong with ATF.
from meta-sunxi.
Yes, I did use master. I don't really see ATF logs before u-boot though.
For sending the image to sd card, I ended up using this:
sudo bmaptool copy --bmap orange-pi-one-plus/tmp/deploy/images/orange-pi-one-plus/core-image-minimal-orange-pi-one-plus.rootfs.wic.bmap orange-pi-one-plus/tmp/deploy/images/orange-pi-one-plus/core-image-minimal-orange-pi-one-plus.rootfs.wic.gz /dev/sdb
from meta-sunxi.
I'm little puzzled why you have u-boot 2023.04. I build master for bananapi m64 and I have:
U-Boot SPL 2022.10-g4debc57 (Oct 03 2022 - 19:25:32 +0000)
DRAM: 2048 MiB
Trying to boot from MMC1
NOTICE: BL31: v2.8(release):v2.8-dirty
NOTICE: BL31: Built : 18:12:00, Nov 21 2022
NOTICE: BL31: Detected Allwinner A64/H64/R18 SoC (1689)
NOTICE: BL31: Found U-Boot DTB at 0x20abde8, model: BananaPi-M64
from meta-sunxi.
I'll try do do a clean build.
from meta-sunxi.
Update - I did a clean build and everything is still on the master, but I still see u-boot as 2023.04.
from meta-sunxi.
OK seems my poky master was not up to date. Checking now.
from meta-sunxi.
Also work:
U-Boot SPL 2023.04-gfd4ed6b (Apr 03 2023 - 20:38:50 +0000)
DRAM: 2048 MiB
Trying to boot from MMC1
NOTICE: BL31: lts-v2.8.6(release):lts-v2.8.6-dirty
NOTICE: BL31: Built : 17:57:15, Apr 21 2023
NOTICE: BL31: Detected Allwinner A64/H64/R18 SoC (1689)
NOTICE: BL31: Found U-Boot DTB at 0x20b1ce0, model: BananaPi-M64
Could it be that transition to mainline atf break something on H6 maybe?
from meta-sunxi.
Can you please try to build kirkstone branch instead just to verify if it boots? Thanks.
from meta-sunxi.
Can you please try to build kirkstone branch instead just to verify if it boots? Thanks.
I also tried that, unfortunately it didn't boot :(
from meta-sunxi.
This is the atf compilation step:
NOTE: trusted-firmware-a-2.8.6-r0 do_compile: make -j 12 LD=aarch64-poky-linux-ld CC=aarch64-poky-linux-gcc V=1 E=0 BUILD_BASE=/home/retpolanne/Dev/orange-pi-one-plus-image/orange-pi-one-plus/tmp/work/orange_pi_one_plus-poky-linux/trusted-firmware-a/2.8.6-r0/build PLAT=sun50i_a64 OPENSSL_DIR=/home/retpolanne/Dev/orange-pi-one-plus-image/orange-pi-one-plus/tmp/work/orange_pi_one_plus-poky-linux/trusted-firmware-a/2.8.6-r0/recipe-sysroot-native//usr HOSTCC=gcc RUNTIME_SYSROOT=/home/retpolanne/Dev/orange-pi-one-plus-image/orange-pi-one-plus/tmp/work/orange_pi_one_plus-poky-linux/trusted-firmware-a/2.8.6-r0/recipe-sysroot -C /home/retpolanne/Dev/orange-pi-one-plus-image/orange-pi-one-plus/tmp/work/orange_pi_one_plus-poky-linux/trusted-firmware-a/2.8.6-r0/git bl31
This is the the PLAT:
PLAT=sun50i_a64
Shouldn't this be sun50i_h6
for H6?
from meta-sunxi.
Holy Cow!!! It booted:
diff --git a/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend b/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend
index fc0d715..99655d4 100644
--- a/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend
+++ b/recipes-bsp/trusted-firmware-a/trusted-firmware-a_%.bbappend
@@ -1,6 +1,6 @@
COMPATIBLE_MACHINE = "(sun50i|sun50i-h616)"
-TFA_PLATFORM:sun50i = "sun50i_a64"
+TFA_PLATFORM:sun50i = "sun50i_h6"
TFA_PLATFORM:sun50i-h616 = "sun50i_h616"
TFA_BUILD_TARGET = "bl31"
(ps: this is a quick hack)
from meta-sunxi.
@nandra Please let me know if you need help testing on H6 :)
from meta-sunxi.
Sure thanks.
from meta-sunxi.
Hey @nandra ! Thanks for that :). atf-fixes
booted just fine!
from meta-sunxi.
Pushed to master. Closing.
from meta-sunxi.
Related Issues (20)
- ATF Build failed for OrangePi PC2 HOT 4
- Build fails for master branch and OPi Zero 2 HOT 9
- Bad qtwebengine performance with lima HOT 7
- wic for sunxi64 HOT 9
- USB not working on BananaPi M2 Zero HOT 4
- Question: DT Overlays HOT 3
- Patch errors when baking HOT 1
- Ethernet not working on Orange Pi One Plus (H6) HOT 5
- Support for OrangePI zero 3 HOT 49
- Upcoming mainline kernels support HOT 9
- meta-sunxi depends on meta-sunxi error HOT 6
- Can't boot Orange PI Zero 2W HOT 1
- i2c kernel panic on A20-OLinuXino-LIME during poweroff HOT 6
- orange-pi-zero2 build no longer works HOT 5
- [OrangePi PC2] Wrong place for dtb in boot partition HOT 3
- please create scarthgap branch. thx HOT 4
- nanopi-r1 machine fails to build in u-boot for kirkstone (missing dts) HOT 7
- Legacy sunxi Kernel/U-Boot HOT 4
- olinuxino-a20lime2-emmc: pya20 SRC_URI entry mapping.h: file could not be found HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meta-sunxi.