sputnik_ has quit [Remote host closed the connection]
sputnik_ has joined #linux-amlogic
ldevulder_ is now known as ldevulder
<mjourdan>
xdarklight: thanks! Very good news indeed.
Barada has quit [Quit: Barada]
Barada has joined #linux-amlogic
Barada has quit [Quit: Barada]
Barada has joined #linux-amlogic
kszaq has quit [Quit: Connection closed for inactivity]
sputnik_ has quit [Ping timeout: 258 seconds]
JerryXiao has quit [Ping timeout: 245 seconds]
JerryXiao has joined #linux-amlogic
random_yanek has quit [Quit: random_yanek]
JerryXiao has quit [Ping timeout: 245 seconds]
random_yanek has joined #linux-amlogic
JerryXiao has joined #linux-amlogic
random_yanek has quit [Ping timeout: 252 seconds]
Barada has quit [Quit: Barada]
random_yanek has joined #linux-amlogic
glaroque has quit [Ping timeout: 252 seconds]
<khilman>
repk: afaict, the bl2 is coming from the tarball that is fetched from baylibre github
<repk>
khilman: are you using aml_encrypt_gxl to create the FIP or gxlimg ?
<khilman>
gxlimg
<khilman>
I'm following the gxlimg docs and doing `make image`
<khilman>
which fetches the tarball from github
<khilman>
I then copy that build/fip dir, replace the bl32.img with the one I built myself, and then re-run `make image` with FIP= pointing to my copy of the build/fip dir
<repk>
ok, good. I'll retest that in a couple of hour.
<repk>
bl32 ? you meant bl31 right ?
sputnik_ has joined #linux-amlogic
<khilman>
oops, yes. I copied bl31.img from ATF build into the FIP= dir
ldevulder has quit [Quit: Leaving]
glaroque has joined #linux-amlogic
<xdarklight>
kszaq: (in case you're reading the IRC logs from whitelogger) thank you! :) my tree "works for me", it may or may not contain hacks and/or code which will never be submitted upstream. if you have a specific question then let me know and I'll try to give a more precise answer. general rule of thumb: Kevin's "integ" branches will not have any broken patches in it because we try not to submit broken patches to Kevin (https://git.kernel.
<repk>
khilman: ok good news is that I have reproduced your problem. The bl2 I used was for "BL2 Built : 11:58:42, May 27 2017" and the one producing an error is "BL2 Built : 16:20:27, Apr 19 2018". They must have changed the way they pass arguments
<repk>
what is weird is that ldevulder tried that recently (way more recently than Apr 19 2018) and it worked IIRC.
<ldevulder>
repk, I don't remember exactly the BL2 version, I'm checking
<repk>
I think I know what happened
<ldevulder>
repk, I tested on khadas vim1 and vim2, both with the same BL2 and it's this one: "BL2 Built : 20:32:17, Sep 8 2017."
<ldevulder>
so an old one
<repk>
ok
<repk>
I think it is a bl2 built in debug
<ldevulder>
I remember to have tried a more recent BL2 but I had issue (with amlogic ATF, not tested with yours)
<repk>
khilman: so yes if you can try to build bl31 with DEBUG=0 that should do it. At least it does for me
<repk>
I will send a patch to remove the assert as we do not control how bl2 has been built
<xdarklight>
that seems like a small gift for reverse engineering BL2 ;)
<ldevulder>
repk, khilman, where did you find the BL2 from Apr 2018? I would give it a try on vim1/2 :-)
<ldevulder>
I only see an old one on the baylibre github...
<ldevulder>
hmmm it seems that since kernel 5.0 mmc driver is not working anymore on khadas-vim... I'm not able to access emmc since (works well on a 4.20 kernel), maybe related to mmc changes I saw on the ML
<ldevulder>
I saw some changes on vim2 but not on vim, I will try some changes in the DT to see if I can boot