<pivi>
Jones42: on colibri imx6/imx6ull, correct, what's the actual issue you have?
<pivi>
Jones42: the reason for having an SPL is just to have the memory configured by code, and not with the DCD. For colibri-imx6ull is not required, so SPL is not used
linfax has quit [Ping timeout: 264 seconds]
KREYREN has joined #u-boot
<Jones42>
cambrian_invader, pivi: I'm currently trying to port a board with an imx6dl (loosely based on sabresd) from 2022-04-imx to mainline.
<Jones42>
I'm slowly advancing, but I still don't really understand the rationale behind doing the DRAM init in the DCD or the SPL. (or, in the case of the colibri-imx6ull: why the decision was to *not* use the SPL)
<Jones42>
What's the (dis)advantage of doing that? is there any documentation where I can learn the implications of either solution?
<Jones42>
thanks a lot
<cambrian_invader>
using DCD is a bit simpler, since you don't have a two-stage boot process
<pivi>
Jones42: I can tell you the rationale for colibri imx6/imx6ull. colibri-imx6 needs different configuration for the memory, and we did not want to have different binaries
<cambrian_invader>
but it is less flexible, since you cannot have logic to e.g. change configuration based on the board
<pivi>
Jones42: colibri-imx6ull does not need it, so we kept it simple, as cambrian_invader wrote
<cambrian_invader>
also the algorithms SPL uses are slightly different from what NXP's tool generates, so you may have better stability with one or the other
enok has quit [Ping timeout: 260 seconds]
<Jones42>
Ah,ok, so having a single binary and letting the the SPL choose the DRAM config makes sense for me, thanks. So the DCD-Data for the (multi-target-)SPL is then some "one size fits all" that works on each device?
<pivi>
Jones42: something like that you cannot do with the static DCD approach
<pivi>
Jones42: with SPL you can (if you want). this is the rationale for the decision on colibri-imx6/imx6ull
<pivi>
Jones42: I'm sure that there are other reasons for one approach of the other, with pro and cons ...
<Jones42>
pivi, cambrian_invader: thanks a lot. that's giving me something to think about!
<pivi>
Jones42: just something obvious, SPL on imx6/imx6ull/... is running from the SOC internal RAM, this is the reason it can do the memory configuration. a full blown u-boot will not fit there
<pivi>
Jones42: just ignore me if this was already known to you, but I felt like this is something valuable for you to know
<Jones42>
pivi thanks, that's something i've already somewhat figured out ;-) . But any piece of information is appreciated. The documentation is already quite good, but I'm often lacking the reasons behind design desicions. For example, knowing the DCD-Mechanism that sets up the DRAM, the whole reaon of having a SPL became much less clear to me.
<mps>
ahem, /usr/lib/gcc/aarch64-alpine-linux-musl/13.2.1/../../../../aarch64-alpine-linux-musl/bin/ld: cannot find -ltinfo: No such file or directory
<mps>
in 'make tools-all'
<mps>
this happened when trying to build kwboot
<calebccff>
mps: are you building on an arm64 host?
<mps>
but I already had enough glasees or red wine to continue, sorry
<mps>
calebccff: yes
f_ is now known as funderscore
funderscore is now known as f_
<calebccff>
mps: so libtinfo is just ncurses, on Arch Linux its literally a symlink to libncursesw.so.6, seems like this is a packaging issue in Alpine
<calebccff>
mps: while we're here, seems the "ncurses-libs" library in alpine is empty (guessing a broken amove)
<mps>
calebccff: yes, I see now
<mps>
ohm, I upgraded it yesterday and didn't noticed this
<mps>
uhm you are right
<mps>
thank you
<mps>
have to fix it tomorrow
<calebccff>
mps: oh it seems the -libs package being empty is intentional. But yeah np, happy to help :)
<mps>
(I hate these helpers like amove)
<calebccff>
mps: "shell as a package description language" was a big mistake imo
Clamor has quit [Read error: Connection reset by peer]
<calebccff>
chimera linux are doing cool stuff
<mps>
if it intentionally empty then it shouldn't exists at all, imnsho
<calebccff>
it's for compat, i guess it used to be a thing