narmstrong changed the topic of #linux-amlogic to: Amlogic mainline kernel development discussion - our wiki http://linux-meson.com/ - ml linux-amlogic@lists.infradead.org - official channel moved from Freenode - publicly logged on https://libera.irclog.whitequark.org/linux-amlogic
vagrantc has quit [Quit: leaving]
jacobk has joined #linux-amlogic
f_[xmpp] has quit [Ping timeout: 246 seconds]
<exkcmoeAdmin[m]> Which U-Boot guides
wens has quit [Ping timeout: 252 seconds]
wens has joined #linux-amlogic
JohnnyonFlame has quit [Read error: Connection reset by peer]
jacobk has quit [Ping timeout: 248 seconds]
elastic_dog has quit [Ping timeout: 246 seconds]
elastic_dog has joined #linux-amlogic
f_ has joined #linux-amlogic
<f_> exkcmoeAdmin[m]: ...
<f_> The U-Boot guides?
<exkcmoeAdmin[m]> Idk
<exkcmoeAdmin[m]> Why does the U-Boot guides tell to run dd twice?...
<f_> Why are you posting the same message I posted though..is it appservice-IRC again?
<exkcmoeAdmin[m]> I mean
<exkcmoeAdmin[m]> I dont know why does the U-Boot guides tell to run dd twice
<exkcmoeAdmin[m]> what going worg with it?
<exkcmoeAdmin[m]> narmstrong
<f_> *wrong??
<f_> I think I should upstream my KII Pro patches.
<f_> It seems to run quite well.
<exkcmoeAdmin[m]> Yeah wrong
<exkcmoeAdmin[m]> formating issue
<f_> Hmm
<f_> Ok
<f_> I can confirm amlbootsig from meson-tools works perfectly.
<f_> =)
<f_> narmstrong: Let's make fiptool work!
<narmstrong> It’s documented why, to not break the msdos partitioning
<f_> narmstrong: Ok. Thanks.
<f_> One question however. In the amlogic-boot-fip repo the makefile runs aml_chksum after running aml_encrypt_gxb. Is that required? aml_encrypt_gxb seems to do checksumming already, right?
nashpa has joined #linux-amlogic
gis has quit [Ping timeout: 252 seconds]
kenny1 has joined #linux-amlogic
iprusov_ has joined #linux-amlogic
lyudess has joined #linux-amlogic
dliviu has quit [Quit: Going away]
iprusov_ has quit [Quit: WeeChat 3.5]
kenny has quit [Ping timeout: 320 seconds]
Lyude has quit [Ping timeout: 320 seconds]
iprusov has quit [Ping timeout: 305 seconds]
montjoie has quit [Ping timeout: 305 seconds]
montjoie has joined #linux-amlogic
iprusov has joined #linux-amlogic
gis has joined #linux-amlogic
<f_> fiptool with afaerber's patches ....doesn't work.
<narmstrong> honestly, I have no idea, I haven't used gxbb for a while now
<f_> Sure, but your assumption about an FIP with custom UUIDs was correct.
<f_> Well. There's only one custom FIP UUID -- BL301.
<f_> Looks like a "fake" UUID and I think we can safely ignore that.
<f_> narmstrong: I've discovered that I was dumb. aml_chksum is libre...https://github.com/LibreELEC/aml_chksum/blob/main/aml_chksum.c
f__ has joined #linux-amlogic
f_ has quit [Read error: Connection reset by peer]
f__ is now known as f_
<f_> Sorry. Disconnected.
jacobk has joined #linux-amlogic
<f_> So yeah, anyone experienced with gxbb FIPs?
<f_> (trying to get fiptool to work correctly)
<f_> Hmm...
jacobk has quit [Ping timeout: 248 seconds]
<f_> What's the difference between bl31.bin and bl31.img?
<narmstrong> there's a header on the .img version
<f_> And that's about it, right?
<f_> So, theoretically, I could compile TF-A's bl31 and include a header, right?
<f_> And it should boot, rrrrright?
<narmstrong> hmm yep, isn't it documented in upstream tf-a ?
<f_> No idea.
<f_> IIRC it isn't.
<f_> Oh wait a second
<f_> Amlogic's fip_create seems to remove that header!
<exkcmoeAdmin[m]> so u dont need the header?
* f_ looks at diff.
<narmstrong> yep i think it's unused when you're not in secure boot mode
<exkcmoeAdmin[m]> i think it is unseed bc Amlogic's fip_create removed it
<exkcmoeAdmin[m]> *unused
<f_> So.......magic `dd` command to get rid of the header before inclusion in the FIP by using `fiptool`?
<exkcmoeAdmin[m]> oh
<exkcmoeAdmin[m]> So u mean the blx_fix thingly?
<f_> No
<f_> ?
<f_> narmstrong: Is the header located between offset 0 and 1f0?
<exkcmoeAdmin[m]> I mean this script in libercecl fip repo
<f_> exkcmoeAdmin[m]: I don't understand what you meant by "u mean the blx_fix thingly"
<f_> I know what blx_fix.sh is.
<exkcmoeAdmin[m]> Yes blx_fix.sh
<exkcmoeAdmin[m]> Is it for getting rid for the header
<f_> blx_fix.sh has nothing to do with BL31.
<exkcmoeAdmin[m]> ok
f__ has joined #linux-amlogic
f_ has quit [Killed (NickServ (GHOST command used by f__))]
f__ is now known as f_
<f_> It seems like fip_create is getting rid of the header itself, rather.
<f_> Here we go!
<f_> diff became smaller!
<f_> Will send it real quick.
* f_ loves their pastebin.
<f_> I only have this (awkward) stuff in fip_create's output
<f_> No idea if that's needed.
<f_> Wow
<f_> It boots up.
<f_> narmstrong, chewitt (if you read this from logs): All this has been tested by using the amlogic-boot-fip repo. I basically modified the makefile to try to use as much free/libre tools as possible instead of the Amlogic counterparts. At some point (if you want) I will open a PR with my changes.
<f_> That is, if GitHub will let me sign in.
<f_> Else it'll probably be an email.
* f_ likes git send-email.
<f_> I however didn't test TF-A's BL31..
<narmstrong> nice
<f_> Indeed!
<f_> Let's document all this!
<narmstrong> yup1
gabes has joined #linux-amlogic
<f_> Hope I didn't miss anything.
<exkcmoeAdmin[m]> Nice
<f_> https://gitlab.com/postmarketOS/pmaports/-/merge_requests/4046 One step forward for running U-Boot as the primary bootloader on pmOS!
<f_> :confetti:
<f_> Anyone with a KII Pro/WeTek Play2, can you please test this?
jacobk has joined #linux-amlogic
<f_> narmstrong: TF-A doesn't work though.
<narmstrong> Not sure the last time it has been tested…
<narmstrong> You’ll probably need to test older versions first en find out when it broke
<f_> I know which version to test, thanks to hexdump0815 =)
<f_> But I'll do that tomorrow, probably.
<f_> For now, cya.
f_ has quit [Quit: disconnecting...]
gabes1 has joined #linux-amlogic
gabes has quit [*.net *.split]
gabes1 is now known as gabes
jacobk has quit [Ping timeout: 252 seconds]
elastic_dog has quit [Ping timeout: 252 seconds]
elastic_dog has joined #linux-amlogic
jacobk has joined #linux-amlogic
jacobk has quit [Ping timeout: 276 seconds]
jacobk has joined #linux-amlogic