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 - Publicly Logged on https://irclog.whitequark.org/linux-amlogic
<khilman> repk: oops, I spoke to soon (booted the wrong SD card)
<khilman> I'm actually getting this when booting the ATF + uboot I just built:
<khilman> I added some more debug and arg1=0
<khilman> I built ATF with DEBUG=1 and in gxlimg, I built `make image` using DEBUG=1 also
mag has joined #linux-amlogic
_whitelogger has joined #linux-amlogic
Barada has joined #linux-amlogic
Darkmatter66 has quit [Ping timeout: 268 seconds]
Darkmatter66 has joined #linux-amlogic
Barada has quit [Quit: Barada]
Barada has joined #linux-amlogic
<repk> khilman: hm weird. Do you use an old bl2 by any chance ?
<repk> or even a bl2 for gxbb
ldevulder_ has quit [Ping timeout: 245 seconds]
ldevulder_ has joined #linux-amlogic
sputnik_ has quit [Remote host closed the connection]
sputnik_ has joined #linux-amlogic
ldevulder_ is now known as ldevulder
sputnik_ has quit [Read error: Connection reset by peer]
sputnik__ has joined #linux-amlogic
sputnik_ has joined #linux-amlogic
sputnik__ has quit [Ping timeout: 244 seconds]
vdehors_ has joined #linux-amlogic
kszaq has joined #linux-amlogic
<kszaq> xdarklight: Can you tell me how usable is https://github.com/xdarklight/linux/tree/meson-mx-integration-5.3-20190512 ? Amazing work BTW on meson8 upstreaming!
ldevulder has quit [Ping timeout: 258 seconds]
ldevulder has joined #linux-amlogic
ldevulder_ has joined #linux-amlogic
ldevulder has quit [Ping timeout: 258 seconds]
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.
<xdarklight> org/pub/scm/linux/kernel/git/khilman/linux-amlogic.git/) ;)
<xdarklight> that link was cut in half... here we go again: https://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-amlogic.git/
return0e has quit [Ping timeout: 244 seconds]
return0e has joined #linux-amlogic
ldevulder has joined #linux-amlogic
<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...
<repk> oh no unfortunately this one breaks secondary CPU boot
<ldevulder> repk, thx
<ldevulder> this BL2 seems to be on vim2 but not on vim1, as there is no support for ddr3 @ 768Mhz in it, only 912Mhz
glaroque has quit [Quit: Leaving.]
Elpaulo has quit [Read error: Connection reset by peer]
Elpaulo has joined #linux-amlogic
<repk> ah no silly me booting secondary CPU is still fine with this "new" BL2/BL30.
<repk> So yes building with DEBUG=0 or removing the assert should do the trick
sputnik_ has quit [Remote host closed the connection]
sputnik_ has joined #linux-amlogic
<khilman> repk: DEBUG=0 for both ATF and the gxlimg `make image` step?
<khilman> repk: DEBUG=0 worked, thanks. But I think the better fix (as you suggested) is just to remove that assert, so I've tried that and submitted a PR: https://github.com/ARM-software/arm-trusted-firmware/pull/1929
<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
<khilman> ldevulder: can you try the integ branch of my tree: https://git.kernel.org/pub/scm/linux/kernel/git/khilman/linux-amlogic.git
<khilman> repk: oh, looks like they switched from github, change submitted to their new gerrit: https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/1111
TheAssassin has quit [Read error: Connection reset by peer]
TheAssassin has joined #linux-amlogic
return0e_ has joined #linux-amlogic
return0e has quit [Ping timeout: 252 seconds]