<stikonas>
vagrantc: I saw you were trying to build bl31.elf from source some time ago and hitting `.pmusram' will not fit in region `PMUSRAM' error. Have you managed to solve it?
<stikonas>
so ld says "region `PMUSRAM' overflowed by 104 bytes"
<vagrantc>
stikonas: no, haven't tried since
<stikonas>
ok :(
<stikonas>
well, my overflow is 30 times smaller than yours, but still a bit too much
<vagrantc>
probably some change in toolchain
<stikonas>
probably
<stikonas>
I've tried gcc 4.9 and gcc 7
<stikonas>
with exactly the same results...
<vagrantc>
i was using gcc 8, i think ... binutils is also a likely place to look
<stikonas>
well, I managed to cut about 20 bytes with -Os
<stikonas>
can try some older binutils too
* vagrantc
forgets what toolchains the atf documentation recommends
<vagrantc>
i would guess some specific linaro toolchain or something
<stikonas>
I didn't even see any documentation
<stikonas>
maybe I should look there...
<stikonas>
my toolchain is self compiled
<stikonas>
well, to be more precise, crossdev ebuild on gentoo
nOOb__ has joined #linux-rockchip
nOOb__ has quit [Remote host closed the connection]
<stikonas>
should probably try linaro then...
<vagrantc>
i was using debian sid's toolchain, but i guess i could try with the older version
<stikonas>
hmm, linaro was using gcc 4.8
<vagrantc>
or maybe try with guix, which allows for great flexibility in toolchain version selection
<stikonas>
well, I'll see. If I manage to get it compile and boot, I can let you know
<vagrantc>
cool
LargePrime has quit [Ping timeout: 272 seconds]
<vagrantc>
i'll give a quick build test with the current debian stable release, too
<vagrantc>
thanks for the reminder :)
<vagrantc>
fwiw, rk3328 bl31.elf builds fine
<stikonas>
well, that's good... I need rk3399 though :(
<stikonas>
for rockpro64
<vagrantc>
haven't actually *tested* any of these other than the allwinner ones
<vagrantc>
successfully, that is
<stikonas>
well, on my board I still have to use binary u-boot spl and this bl31.elf... u-boot image itself seems to boot
<stikonas>
well, it boots grub2 :)... After that it's like desktop...
<vagrantc>
yeah, i've got a firefly-rk3399 that needs it too
<vagrantc>
well, how about that. builds successfully on debian stretch/stable.
<stikonas>
oh, that's nice
<stikonas>
should try on debian then...
<vagrantc>
might also use different optimizations ... but that's some progress at least
<vagrantc>
is the m0 firmware still needed separate from the bl31.elf?
<stikonas>
I'm not there yet... no idea
<stikonas>
well, I just started playing with u-boot...
<stikonas>
before I was trying to get upstream kernel to build, moved rootfs to LUKS+ LVM :)
<stikonas>
vagrantc: were you using debian on aarch64?
<stikonas>
or crosscompiling?
<vagrantc>
stikonas: cross-compiling
<stikonas>
I think I'll try debootstrap first...
<stikonas>
oh ok
<vagrantc>
hmmm... would be interesting if a native build worked
<stikonas>
well, you still need arm-none-eabi crosscompiler
<vagrantc>
sure, but native for the rest
<stikonas>
well I'll try... Probably tomorrow, it's getting late in my timezone
<vagrantc>
been working on this on and off again for maybe 18 months now
<stikonas>
so long...
<vagrantc>
mostly off :)
vicencb has quit [Quit: Leaving.]
<stikonas>
vagrantc: I compiled it now but simply using that bl31.elf didn't work...
<vagrantc>
i am not surprised
<stikonas>
well, yeah, I wasn't keeping my hopes too high