<javier__>
dlan: that's only if is built with CONFIG_OF_LIBFDT and I thought hardkernel u-boot didn't even support it
<javier__>
but I haven't looked at hardkernel u-boot tree in a while so probably I'm wrong on my assumptions and it supports both DTB and loading zImages now
daniels has quit [Ping timeout: 250 seconds]
daniels has joined #linux-exynos
LanDi has joined #linux-exynos
amitk has joined #linux-exynos
LanDi has quit [Quit: fui !]
amitk has quit [Ping timeout: 240 seconds]
amitk has joined #linux-exynos
afaerber_ has joined #linux-exynos
afaerber has quit [Ping timeout: 240 seconds]
<javier__>
mdrjr: hi, a silly question but on exynos boards that uses trustzone, what imposes the layout of the bl1,bl2,u-boot and tzsw binaries in the SD?
<javier__>
mdrjr: I'm asking because the space you have for the u-boot binary in the XU3 is rather limited, only 334K afaict if you don't want u-boot to overwrite the tzsw binary
<javier__>
mdrjr: my uneducated guess is that it's an arbitrary offset defined in the BL1/DRM or BL2/SPL binary and can be changed if someone provides a different signed binary? or am I completely wrong here?
<mdrjr>
javier__: you can change that on u-boot sources.. nothing special here :)
<sjoerd>
mdrjr: oh does u-boot load the tzsw?
<mdrjr>
no.
<sjoerd>
mdrjr: Then how can you chagne it in the u-boot sources?
<mdrjr>
you can change where u-boot binary is... move it after tzsw
<sjoerd>
How will the other parts know where to load u-boot from though?
<mdrjr>
bl2 loads u-boot and bl2 is the spl extract from u-boot.bin
<mdrjr>
so... :)
<sjoerd>
Oh, is bl2 not signed?
<mdrjr>
sadly it is.. but we can sign it...
<sjoerd>
In thta case, it would be great if you could provide a bl2 which loads u-boot from behind the tzsw :)
<sjoerd>
I'm looking at upstream u-boot on the XU3 and it seems quite tricky currently to have it just the right size
<sjoerd>
with the patch from Hyungwon, if you build it with his config it's really on the limit (and that doesn't have much features in u-boot)
<mdrjr>
sjoerd: do you get upstream u-boot to boot up on XU3?
<sjoerd>
Yeah
<sjoerd>
patches hav ebeen posted on the u-boot list for that
<sjoerd>
i've just been testing them today as i got an XU3 now
<mdrjr>
interesting... have you tried upstream uboot + upstream kernel (smk5420)
<mdrjr>
and see if I all the cpu's get up?
<sjoerd>
I haven't yet
<sjoerd>
I'm still playing with the u-boot setup :)
<sjoerd>
Had some fun today as gcc-4.7compiles the binary slightly too big
<mdrjr>
Please do that and notify me the results are very important
<sjoerd>
and it does seem to get stuck on initializing the emmc (with an SD card it's happy)
<sjoerd>
mdrjr: sure :)
<sjoerd>
It'll probalby be tomorrow before i get to that though
<mdrjr>
stuck on initializing eMMC.. hmm.. I need to check the sources
<mdrjr>
but its most likely power haven't got to the eMMC yet
<mdrjr>
it needs 2 power lines to run
<sjoerd>
well it does load u-boot from the emmc at least
<mdrjr>
from *boot0 ?
<sjoerd>
yeah
<sjoerd>
Might be that u-boot reinitialises something and doesn't power it on ofcourse
<javier__>
mdrjr: sorry I was out for a bit
* javier__
reads the backlog
<javier__>
mdrjr: yeah, that's why I asked if the BL1/DRM or BL2/SPL needed to be changed to load the u-boot image since we can't change those ;)
<mdrjr>
javier__: as I said, bl2 needs to be signed sadly.... but we can sign it for you :)
<javier__>
mdrjr: I know, that's why I asked you :)
<javier__>
mdrjr: that would be great indeed since as sjoerd said the size constraint is a little tight
<javier__>
mdrjr: btw, khilman tested Odroid Xu3 with mainline kernel (but using exynos5420-smdk5420 DTS)
<javier__>
mdrjr: dunno which u-boot was using though but he had issues bringing all the cores
<sjoerd>
afaik hardkernels one
<javier__>
mdrjr: fyi linux-samsung ml thread is "[PATCH] ARM: exynos_defconfig: disable CONFIG_EXYNOS5420_MCPM; not stable"
<mdrjr>
javier__: I'm very aware of that
<javier__>
mdrjr: ok
<mdrjr>
I just choose to not be part of this... :P
<sjoerd>
mdrjr: so will you build a signed bl2 for us with a different u-boot load address?
<mdrjr>
sure, just send me the bl2 and I'll sign it