edwinistrator2 has quit [Ping timeout: 264 seconds]
edwinistrator22 is now known as edwinistrator2
rvalue has quit [Ping timeout: 264 seconds]
<xypron>
Tartarus: U-Boot SPL loads the device-tree immediately after the kernel leaving no space for the BSS section. Before relocation we don't zero out the BSS section (which looks like another bug to me). On RISC-V I have seen that the initialization of the debug UART which writes a local static variable in the BSS section corrupts the device-tree. To me the cleanest solution would be adding an offset between main U-Boot image and DT for the BSS section. Writing a
<xypron>
load address for the DT into the .itb would look like the cleanest approach to me.
<xypron>
cf. spl_fit_append_fdt()
rvalue has joined #u-boot
Gravis_ is now known as Gravis
<Tartarus>
xypron: First thing is, we don't enforce proper alignment of the device tree in SPL, and aren't we relocating the device tree? Also, the Image should say how big the BSS is, and so we don't overlap
<Tartarus>
Sounds like we aren't relocating the device tree and that's the, or at least a, problem
<xypron>
Tartarus: where should the BSS size info be in u-boot.itb?
<Tartarus>
No, the kernel Image says what the BSS size is, and we use that to ensure we don't overlap
<xypron>
Tartarus: the conflict occurs before relocating U-Boot. Nothing to do with any OS kernel.
<Tartarus>
Why did you say "kernel" ? You lost me
<xypron>
You said kernel first.
<xypron>
Sorry
<xypron>
SPL loads DT directly after main U-Boot
<xypron>
leaving no space for BSS
<Tartarus>
Yes, and we don't have the DT properly aligned
<Tartarus>
Sounds like you need to set / change some of the SPL_BSS* options?
<xypron>
do other archs but RISC-V relocate the DT?
<Tartarus>
I have vague feelings that RISC-V isn't doing some things right, based on as a tangent, disabling device tree relocation for the kernel
<xypron>
SPL_BSS options would not have an effect on spl_fit.c?
<Tartarus>
afk dinner
slobodan has quit [Ping timeout: 255 seconds]
<xypron>
Tartarus: I see bunches of variables explictely assigned to the data section, e.g. `static int has_been_read __section(".data");` This looks like a work-around for no initializing the BSS section.
<Tartarus>
no, those are very special cases for pre-DDR init stuff and crt0.S should be init'd BSS, iirc. afk dinner, really, now.
naoki has quit [Quit: naoki]
qschulz has quit [Remote host closed the connection]
qschulz has joined #u-boot
flyback has quit [Quit: Leaving]
flyback has joined #u-boot
sigmaris has quit [Ping timeout: 260 seconds]
sigmaris has joined #u-boot
mmu_man has quit [Ping timeout: 246 seconds]
flyback has quit [Quit: Leaving]
F0rTex has quit [Ping timeout: 272 seconds]
F0rTex has joined #u-boot
flyback has joined #u-boot
jclsn has quit [Ping timeout: 255 seconds]
jclsn has joined #u-boot
LeSpocky has quit [Ping timeout: 264 seconds]
LeSpocky has joined #u-boot
hays has joined #u-boot
edwinistrator20 has joined #u-boot
edwinistrator2 has quit [Ping timeout: 272 seconds]
edwinistrator20 is now known as edwinistrator2
Clamor has joined #u-boot
monstr has joined #u-boot
goliath has joined #u-boot
linfax has joined #u-boot
Clamor has quit [Read error: Connection reset by peer]
frieder has quit [Remote host closed the connection]
macromorgan_ is now known as macromorgan
ezulian has quit [Ping timeout: 272 seconds]
Clamor has quit [Ping timeout: 272 seconds]
Clamor has joined #u-boot
<pivi>
marex: I am all in for enabling it! and it was already tested on verdin imx8mp :-)
<pivi>
marex: I just wanted to said it loudly that there is no real drawback on enaling it in the default config
<pivi>
marex: we had in the past concern about size and/or bootime, but 32k in the binary size from my point of view is no point discussing. I am just happy linaro is using our board
Clamor has quit [Read error: Connection reset by peer]
<pivi>
marex: I could hit marcel phisically, unfortunately he is not in the office this week :-)
jfsimon1981 has quit [Remote host closed the connection]
jfsimon1981 has joined #u-boot
ikarso has quit [Quit: Connection closed for inactivity]
hsv_ is now known as hsv
<marex>
pivi: no no no nono ... it is clear you did not want that enabled on your board, so it has to be enabled on another board instead :)
<marex>
pivi: I already have a candidate board
* marex
makes small crater in F5 while waiting for V2
goliath has quit [Quit: SIGSEGV]
<pivi>
marex: you know that we can enable this on every board we want, there is not much value in the ius primae noctis ;-)
ikarso has joined #u-boot
naoki has joined #u-boot
jfsimon1981 has quit [Remote host closed the connection]
mmu_man has quit [Ping timeout: 264 seconds]
prabhakalad has quit [Quit: Konversation terminated!]
prabhakalad has joined #u-boot
<marex>
pivi: oh that was good :)
mmu_man has joined #u-boot
<marex>
pivi: was nice to laugh hard again, now back to CI, yay