ChanServ changed the topic of #linux-sunxi to: Allwinner/sunxi development - Did you try looking at our wiki? https://linux-sunxi.org - Don't ask to ask. Just ask and wait for an answer! - This channel is logged at https://oftc.irclog.whitequark.org/linux-sunxi
ftg has quit [Read error: Connection reset by peer]
apritzel_ has quit [Ping timeout: 480 seconds]
junari_ has joined #linux-sunxi
junari__ has quit [Ping timeout: 480 seconds]
junari__ has joined #linux-sunxi
junari_ has quit [Ping timeout: 480 seconds]
apritzel_ has joined #linux-sunxi
apritzel_ has quit [Ping timeout: 480 seconds]
apritzel_ has joined #linux-sunxi
apritzel_ has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
apritzel_ has joined #linux-sunxi
apritzel_ has quit [Ping timeout: 480 seconds]
bauen1 has quit [Ping timeout: 480 seconds]
junari_ has joined #linux-sunxi
junari__ has quit [Ping timeout: 480 seconds]
evgeny_boger has joined #linux-sunxi
bauen1 has joined #linux-sunxi
evgeny_boger has quit [Quit: evgeny_boger]
Mangy_Dog has joined #linux-sunxi
apritzel_ has joined #linux-sunxi
junari__ has joined #linux-sunxi
junari_ has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has quit []
evgeny_boger has joined #linux-sunxi
evgeny_boger1 has joined #linux-sunxi
evgeny_boger has quit [Ping timeout: 480 seconds]
evgeny_boger1 has quit [Ping timeout: 480 seconds]
JohnDoe_71Rus has joined #linux-sunxi
ftg has joined #linux-sunxi
junari__ has quit [Ping timeout: 480 seconds]
vagrantc has joined #linux-sunxi
Jookia has joined #linux-sunxi
<Hypfer> Are there any special things to consider if I'd want to load and execute toc0 for an A133 via FEL or is it like with the previous eGON format where you just load it at address xyz and then jump into that?
<Hypfer> Also, does what I just wrote make any sense or have I misunderstood something?
<Jookia> Has anyone managed to get CAN working on the T113 or D1?
<Hypfer> What I can find via google is that 2017, a ToDo item about booting toc0 via FEL was added to the wiki https://linux-sunxi.org/index.php?title=TOC0&oldid=19608
Danct12 has joined #linux-sunxi
apritzel_ has left #linux-sunxi [#linux-sunxi]
apritzel has joined #linux-sunxi
<apritzel> Hypfer: TOC0 is different in that you can't just load and jump to it
<apritzel> I don't think anyone ever attempted to provide TOC0 support for sunxi-fel
<apritzel> as in: parse the TOC0 on the host, and just upload the SPL/boot0 payload to SRAM
<apritzel> however there is code that converts between TOC0 and eGON: https://github.com/ssvb/sunxi-tools/commits/toc0
<apritzel> that might allow you make a standard eGON image out of the TOC0, and just use that
hlauer has joined #linux-sunxi
<Hypfer> apritzel will that converted image also work if secure boot is enabled or would that un-sign the image?
<Hypfer> hmmh that ruby toc2egon file doesn't like this toc0 file for some reason. chunk1_size is too large by 4 byte
<Hypfer> if I edit that check out, it still complains about the missing eGON header but maybe that's because the script expects a toc0 built by egon2toc.rb?
aat596_2 has joined #linux-sunxi
<apritzel> Hypfer: with FEL booting you actually don't need any eGON or TOC0 format, and any signatures are irrelevant, because in FEL mode you are already unlocked
<apritzel> IIUC in TOC0 the payload is just signed, not encrypted, so you can just ignore the signature and extract the SPL/boot0
<apritzel> Hypfer: ah, good point about toc2egon just being the reverse, it might indeed not be universal
<apritzel> Hypfer: if you don't mind the extra mile, check out https://source.denx.de/u-boot/u-boot/-/blob/master/tools/sunxi_toc0.c
<Hypfer> does the SPL/boot0 have some magic value as a header so that I could conceivably peel that out of the toc0 without having to parse the format?
<apritzel> or the explanation here: https://linux-sunxi.org/TOC0
<apritzel> I think the SPL payload embedded in TOC0 does not have a special header, but with the information above and a hex editor you should be able to figure out the offset
<Hypfer> oh I saw that you were the person who had some comments on the now-closed A133 PR: https://github.com/linux-sunxi/sunxi-tools/pull/192
<Hypfer> do you think that apart from code quality there are any major issues that might make this patch unsuitable for a quick test run?
<Hypfer> I seem to be able to read and write memory and also jump to adresses so I guess it should be enough?
<apritzel> A133 support in sunxi-fel? That should be good to go, maybe observing the comments
<apritzel> I had my version working on my tablet
<Hypfer> Do you still have that somewhere?
<apritzel> sure, let me check
<apritzel> Hypfer: just pushed it there
<Hypfer> thanks a lot!
<apritzel> my tablet didn't use TOC0, IIRC, so I just uplodaded boot0 and let it initialise the DRAM
<Hypfer> i suppose those parameters are hw-specific or would it also be possible to push any boot0 as long as it's the same dram type?
<apritzel> yeah, the DRAM parameters might differ, and it would outright fail if you have a different DRAM type (LPDDR3 vs. DDR3 vs. LPDDR4, for instance)
<apritzel> Hypfer: my tablet is the Teclast P80, what device do you have?
<apritzel> Hypfer: try this one: https://paste.c-net.org/JokerComrade
<apritzel> if I can trust my notes, this should be the version that returns to FEL after init'ing the DRAM
<apritzel> that blob is expecting DDR3 at 624 MHz
<Hypfer> ah okay that probably won't work here then. It's DDR4 iirc
<Hypfer> thanks though!
<Hypfer> okay I've finished a rudimentary parser for my toc0 based on the wiki but what confuses me about it is that it only has two item headers for two items of which both are type 0x010101 certificate item
<Hypfer> it is way larger than those 2x 764 byte + headers though. a full 96kb
digetx has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
<Hypfer> heh. No nvm I'm just stupid. Forgot to increment the offset :)
digetx has joined #linux-sunxi
JohnDoe_71Rus has quit []
smaeul_ has joined #linux-sunxi
smaeul has quit [Ping timeout: 480 seconds]
bauen1 has quit [Ping timeout: 480 seconds]
smaeul_ has quit []
smaeul has joined #linux-sunxi
hlauer has quit [Ping timeout: 480 seconds]
bauen1 has joined #linux-sunxi
vagrantc has quit [Quit: leaving]