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
luka177 has quit [Ping timeout: 255 seconds]
montjoie has quit [Ping timeout: 250 seconds]
montjoie has joined #linux-amlogic
jkl has quit [Server closed connection]
jkl has joined #linux-amlogic
hays has joined #linux-amlogic
_whitelogger has quit [Ping timeout: 240 seconds]
phh has quit [Changing host]
_whitelogger has joined #linux-amlogic
dlan has joined #linux-amlogic
dlan has quit [Changing host]
dlan has joined #linux-amlogic
wens has joined #linux-amlogic
wens_ has quit [Ping timeout: 240 seconds]
cottsay has joined #linux-amlogic
mdrjr has joined #linux-amlogic
jkl has joined #linux-amlogic
elastic_dog has joined #linux-amlogic
montjoie has joined #linux-amlogic
mdrjr has quit [Ping timeout: 255 seconds]
mdrjr has joined #linux-amlogic
wens has quit [Ping timeout: 255 seconds]
wens has joined #linux-amlogic
luka177 has joined #linux-amlogic
hays has joined #linux-amlogic
Danct12 has joined #linux-amlogic
luka177 has quit [Read error: Connection reset by peer]
luka177 has joined #linux-amlogic
f11f12 has joined #linux-amlogic
ldevulder has joined #linux-amlogic
JohnnyonFlame has joined #linux-amlogic
ldevulder has quit [Remote host closed the connection]
ldevulder has joined #linux-amlogic
luka177 has quit [Ping timeout: 240 seconds]
luka177 has joined #linux-amlogic
ldevulder has quit [Read error: Connection reset by peer]
ldevulder has joined #linux-amlogic
Cheaterman has quit [Server closed connection]
Cheaterman has joined #linux-amlogic
JohnnyonFlame has quit [Read error: Connection reset by peer]
ldevulder has quit [Quit: Leaving]
luka177 has quit [Read error: Connection reset by peer]
luka177 has joined #linux-amlogic
anessen97 has quit [Quit: The Lounge - https://thelounge.chat]
ldevulder has joined #linux-amlogic
anessen97 has joined #linux-amlogic
f_ has joined #linux-amlogic
<f_> Still working on ACSBaby
<f_> Will push now
<f_> It can parse the ACS footer. The rest can be worked on later.
montjoie has quit [Ping timeout: 260 seconds]
montjoie has joined #linux-amlogic
luka177 has quit [Ping timeout: 260 seconds]
<f_> Oh look!
<f_> I can analyse my eMMC backup (if I set the right offset)
<f_> Example output!
luka177 has joined #linux-amlogic
<f_> narmstrong: ^
<f_> BTW: the `-t u-boot` isn't needed. If you don't specify the image type it will try to find it automatically (by e.g. looking for an "@AML" header (=> u-boot.bin), the "Built :" string at the top (=> acs.bin))
<f_> (and otherwise assume it's a BL2)
<f_> Works quite well enough. If it can't find the right image type you can force it to think it's e.g. a U-Boot binary.
ndufresne has joined #linux-amlogic
<f_> Aaand it can generate C files as well!
<f_> Will push
<f_> There
<f_> narmstrong: Want to test on random binaries?
<narmstrong> f_: nice :-) is it for gxbb only ?
<f_> No idea
<f_> Might work on other non-gxbb ACS binaries.
<f_> narmstrong: Does it work? =)
<narmstrong> if you want some binaries of all u-boot mainline supported boards ==> https://gitlab.com/superna9999/amlogic-u-boot-autotest/-/jobs/4451686616/artifacts/browse/results/
<narmstrong> help yoursefl!
<f_> Thanks a lot!
<f_> But for U-Boot binaries you do need to specify the offset which...sucks
<f_> Else it defaults to 0xa4e0, and prints a warning.
<f_> (which happens to be the offset where it's found on a U-Boot p201 binary)
<f_> I mostly tested on a p201 U-Boot binary, but I also tested on my KII Pro eMMC backup and it seems to work fine there as well.
<f_> Let's test a non-gxbb board!
luka177 has quit [Ping timeout: 240 seconds]
<f_> Oh
<f_> The offset seems to differ even on acs.bin binaries..
luka177 has joined #linux-amlogic
<f_> But still! I can specify the offset with -o!
<f_> With the right offset it seems to work as well!
<narmstrong> cool!
<f_> That's with the WeTek Core2 acs.bin
<f_> And it works with the Beelink GT1 acs.bin as well!
<f_> So it does work on non-gxbb boards.
<f_> narmstrong: And try with `-f c`!
<f_> https://bin.vitali64.duckdns.org/6489bd5d that's with a p201 acs.bin
<f_> I get the same output with the WeTek Core2 acs.bin
<f_> *Play2
luka177 has quit [Ping timeout: 246 seconds]
luka177 has joined #linux-amlogic
<narmstrong> I don't think they changed the ACS format
<f_> Me either.
<f_> But now I can try to dump all C structures defined!
<f_> The addresses in memory actually point to `struct`s!
<f_> And when reading in a hex dump I can actually see meaningful data!
<f_> So, all that to say: this is going to be easy.
<narmstrong> I hope it will be!
<f_> What's going to be hard, is writing code in a clean way
<f_> But the actual logic is going to be easy
<f_> Just read the bytes, copy in a struct, call it a day, repeat.
<f_> The size will vary though
<f_> Also took the time to copy-paste Amlogic's timing.h file and clean it up.
<f_> I won't treat `char`s as integers like Amlogic.
psydroid has quit [Read error: Connection reset by peer]
exkcmoeadmin[m] has quit [Read error: Connection reset by peer]
tomeu has quit [Read error: Connection reset by peer]
BlueMatt[m] has quit [Read error: Connection reset by peer]
maku has quit [Read error: Connection reset by peer]
<f_> Let's not talk until appservice-IRC undies.
<f_> ;)
BlueMatt[m] has joined #linux-amlogic
<f_> At least one survived.
psydroid has joined #linux-amlogic
<f_> Another one
exkcmoeadmin[m] has joined #linux-amlogic
maku has joined #linux-amlogic
<f_> 2 more!!
tomeu has joined #linux-amlogic
kenny has quit [Quit: WeeChat 3.8]
kenny has joined #linux-amlogic
<f11f12> f_: I have a partial ACS parser
<f11f12> so far only used for g12a/g12b
luka177 has quit [Ping timeout: 240 seconds]
luka177 has joined #linux-amlogic
<f_> Oh really?
<f_> Can I take a look at it?
<f11f12> of course.
<f_> Thanks a lot!
f_[xmpp] has joined #linux-amlogic
JohnnyonFlame has joined #linux-amlogic
tetrakist_ is now known as tetrakist
luka177 has quit [Ping timeout: 256 seconds]
luka177 has joined #linux-amlogic
luka177 has quit [Ping timeout: 260 seconds]
luka177 has joined #linux-amlogic
montjoie has quit [Ping timeout: 240 seconds]
montjoie has joined #linux-amlogic
luka177 has quit [Ping timeout: 240 seconds]
luka177 has joined #linux-amlogic
ldevulder has quit [Quit: Leaving]
luka177 has quit [Read error: Connection reset by peer]
luka177 has joined #linux-amlogic
luka177 has quit [Read error: Connection reset by peer]
f_ has quit [Quit: zzz]
Stricted has quit [Server closed connection]
Stricted has joined #linux-amlogic
luka177 has joined #linux-amlogic
luka177 has quit [Read error: Connection reset by peer]
luka177 has joined #linux-amlogic