Tartarus changed the topic of #u-boot to: SOURCE MOVED TO https://source.denx.de/u-boot/u-boot.git / U-Boot v2024.01, v2024.04-rc2 are OUT / Merge Window is CLOSED, next branch is CLOSED / Release v2024.04 is scheduled for 02 April 2024 / Channel archives at https://libera.irclog.whitequark.org/u-boot
edwinistrator22 has joined #u-boot
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]
Clamor has joined #u-boot
macromorgan_ has joined #u-boot
macromorgan has quit [Ping timeout: 268 seconds]
frieder has joined #u-boot
goliath has quit [Quit: SIGSEGV]
sigmaris has quit [Quit: ZNC - https://znc.in]
sigmaris has joined #u-boot
mckoan|away is now known as mckoan
ezulian has joined #u-boot
FergusL has quit [Ping timeout: 240 seconds]
Clamor has quit [Remote host closed the connection]
ikarso has joined #u-boot
Clamor has joined #u-boot
goliath has joined #u-boot
sszy has joined #u-boot
sigmaris has quit [Ping timeout: 268 seconds]
ezulian has quit [Remote host closed the connection]
sigmaris has joined #u-boot
ezulian has joined #u-boot
FergusL has joined #u-boot
FergusL has quit [Ping timeout: 252 seconds]
FergusL has joined #u-boot
FergusL has quit [Changing host]
FergusL has joined #u-boot
naoki has joined #u-boot
ac_slater has quit [Ping timeout: 255 seconds]
mmu_man has joined #u-boot
ac_slater has joined #u-boot
prabhakalad has quit [Ping timeout: 256 seconds]
prabhakalad has joined #u-boot
dsimic has quit [Ping timeout: 268 seconds]
naoki has quit [Quit: naoki]
dsimic has joined #u-boot
ldevulder has quit [Quit: Leaving]
mckoan is now known as mckoan|away
slobodan has joined #u-boot
mmu_man has quit [Ping timeout: 264 seconds]
ldevulder has joined #u-boot
prabhakalad has quit [Ping timeout: 264 seconds]
prabhakalad has joined #u-boot
f_ has quit [Ping timeout: 252 seconds]
f_ has joined #u-boot
mmu_man has joined #u-boot
tnovotny has joined #u-boot
mmu_man has quit [Ping timeout: 264 seconds]
persmule has joined #u-boot
mmu_man has joined #u-boot
<marex> pivi: that MX8MP PCIe discussion just makes me smile, all the SoM vendors are hell bent to enable it :)
<marex> pivi: this is becoming a competition who will test it first
persmule has quit [Remote host closed the connection]
persmule has joined #u-boot
persmule has quit [Remote host closed the connection]
persmule has joined #u-boot
ikarso has quit [Quit: Connection closed for inactivity]
persmule has quit [Remote host closed the connection]
persmule has joined #u-boot
davlefou has quit [Ping timeout: 246 seconds]
matthias_bgg has joined #u-boot
Stat_headcrabed has joined #u-boot
mps has quit [Ping timeout: 246 seconds]
Forty-Bot has quit [Ping timeout: 256 seconds]
davlefou has joined #u-boot
Stat_headcrabed has quit [Quit: Stat_headcrabed]
mmu_man has quit [Ping timeout: 272 seconds]
tnovotny has quit [Quit: Leaving]
mmu_man has joined #u-boot
Dr_Who has joined #u-boot
goliath has quit [Quit: SIGSEGV]
Forty-Bot has joined #u-boot
linfax has quit [Ping timeout: 264 seconds]
Clamor has quit [Ping timeout: 260 seconds]
Clamor has joined #u-boot
mmu_man has quit [Ping timeout: 264 seconds]
Stat_headcrabed has joined #u-boot
JPEW has quit [Ping timeout: 256 seconds]
JPEW has joined #u-boot
mmu_man has joined #u-boot
vagrantc has joined #u-boot
umbramalison_alt has quit [Quit: %So long and thanks for all the fish%]
Leopold has joined #u-boot
umbramalison has joined #u-boot
monstr has quit [Remote host closed the connection]
hsv_ has joined #u-boot
hsv has quit [Ping timeout: 264 seconds]
Stat_headcrabed has quit [Quit: Stat_headcrabed]
jfsimon1981 has joined #u-boot
conchuod has joined #u-boot
mps has joined #u-boot
Clamor has quit [Ping timeout: 260 seconds]
sszy has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
rvalue has quit [Ping timeout: 264 seconds]
rvalue has joined #u-boot
goliath has joined #u-boot
Clamor has joined #u-boot
ikarso has joined #u-boot
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
slobodan has quit [Ping timeout: 256 seconds]