Code Monkey home page Code Monkey logo

Comments (18)

nandra avatar nandra commented on August 11, 2024 1

Ok nice. Thanks I'll make changes to fix it in master + kirkstone

from meta-sunxi.

nandra avatar nandra commented on August 11, 2024 1

@retpolanne please try to build on atf-fixes branch and let me know so can merge it. Thanks.

from meta-sunxi.

retpolanne avatar retpolanne commented on August 11, 2024

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.

nandra avatar nandra commented on August 11, 2024

Do you use master branch for building an image please? usually such log means something is wrong with ATF.

from meta-sunxi.

retpolanne avatar retpolanne commented on August 11, 2024

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.

nandra avatar nandra commented on August 11, 2024

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.

retpolanne avatar retpolanne commented on August 11, 2024

I'll try do do a clean build.

from meta-sunxi.

retpolanne avatar retpolanne commented on August 11, 2024

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.

nandra avatar nandra commented on August 11, 2024

OK seems my poky master was not up to date. Checking now.

from meta-sunxi.

nandra avatar nandra commented on August 11, 2024

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.

nandra avatar nandra commented on August 11, 2024

Can you please try to build kirkstone branch instead just to verify if it boots? Thanks.

from meta-sunxi.

retpolanne avatar retpolanne commented on August 11, 2024

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.

retpolanne avatar retpolanne commented on August 11, 2024

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.

retpolanne avatar retpolanne commented on August 11, 2024

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.

retpolanne avatar retpolanne commented on August 11, 2024

@nandra Please let me know if you need help testing on H6 :)

from meta-sunxi.

nandra avatar nandra commented on August 11, 2024

Sure thanks.

from meta-sunxi.

retpolanne avatar retpolanne commented on August 11, 2024

Hey @nandra ! Thanks for that :). atf-fixes booted just fine!

from meta-sunxi.

nandra avatar nandra commented on August 11, 2024

Pushed to master. Closing.

from meta-sunxi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.