Tartarus changed the topic of #u-boot to: SOURCE MOVED TO https://source.denx.de/u-boot/u-boot.git / U-Boot v2024.07 is OUT / Merge Window is OPEN, next branch is CLOSED / Release v2024.10 is scheduled for 07 October 2024 / Channel archives at https://libera.irclog.whitequark.org/u-boot
rockosov has quit [Ping timeout: 246 seconds]
rockosov has joined #u-boot
qschulz has quit [Read error: Connection reset by peer]
zibolo has quit [Ping timeout: 260 seconds]
qschulz has joined #u-boot
zibolo has joined #u-boot
Jones42 has joined #u-boot
mmu_man has quit [Ping timeout: 264 seconds]
Jones42 has quit [Ping timeout: 264 seconds]
ikarso has quit [Quit: Connection closed for inactivity]
naoki has joined #u-boot
joeskb7 has quit [Ping timeout: 264 seconds]
jclsn has quit [Ping timeout: 268 seconds]
jclsn has joined #u-boot
calebccff has joined #u-boot
macromorgan has quit [Ping timeout: 268 seconds]
macromorgan has joined #u-boot
atka has quit [Quit: WeeChat 4.3.3]
macromorgan has quit [Read error: Connection reset by peer]
macromorgan has joined #u-boot
grs has joined #u-boot
MrCryo has joined #u-boot
joeskb7 has joined #u-boot
ikarso has joined #u-boot
<CounterPillow> cambrian_invader: does it do that for any constant, or just 0/NULL specifically? Amazing footgun either way
persmule has joined #u-boot
slow99 has quit [Quit: slow99]
slow99 has joined #u-boot
enok has joined #u-boot
MrCryo has quit [Remote host closed the connection]
enok has quit [Ping timeout: 246 seconds]
dhruvag2000 has joined #u-boot
enok has joined #u-boot
goliath has joined #u-boot
<quinq> 17:31:31 LeSpocky$ ERROR: do not initialise globals to NULL
<quinq> 17:32:10 cambrian_invader$ null-initialized constants can get merged by the linker
<quinq> A global isn't a constant, if your linker think they are, fix or ditch it
warpme has joined #u-boot
ldevulder has joined #u-boot
enok has quit [Ping timeout: 268 seconds]
frieder has joined #u-boot
prabhakalad has joined #u-boot
<LeSpocky> quinq: was late already for me yesterday, you're right, globals are not constants, and for constants it makes sense to let the linker merge those, right? so there must be a different reason for that checkpatch warning
<LeSpocky> the check is ported from linux checkpatch, so I better investigate there
<quinq> LeSpocky, yeah it does :)
<quinq> good luck!
<LeSpocky> (check for external initialisers)
<quinq> I mean it's a code choice, initializing a global is just redundant
<quinq> s/initializing a global/& to 0,NULL/
<LeSpocky> redundant? then who or what initializes that global?
<quinq> It depends on your platform, most likely the CRT :)
<quinq> But by C standard, they are
<quinq> Who actually does it is an implementation details
<quinq> s/details/detail/
<LeSpocky> if it is platform and/or implementation dependend, then why not initializing it explicitly in code?
<LeSpocky> code size?
<quinq> The implementation is platform dependant, but the guarantee is standard
<LeSpocky> okay so then I would have to look in the C standard on globals initialization, maybe if I get bored later ;-=
<LeSpocky> for the actual code, I had a debug print now before first use and the global variable was set to NULL there
<LeSpocky> just for trying
mmu_man has joined #u-boot
<LeSpocky> here it is, section 6.7.8 Initialization of C99 standard: "If an object that has static storage duration is not initialized explicitly,
<LeSpocky> then … it has pointer type, it is initialized to a null pointer;"
<quinq> Yeah, but also it doesn't have to be static, it can be external, but then it's treated as static in terms of initialization :)
<LeSpocky> quinq: thanks for pointing me :-)
<quinq> You're welcome, glab I could share my little knowledge about it
<quinq> *glad
sszy has joined #u-boot
matthias_bgg has joined #u-boot
<Kasreyn> sjg1: does the Odroid XU3 have SPI NOR flash chip? :)
<Kasreyn> maybe this will work then? "cat E5250.nbl1.bin > nv_image-snow.bin && truncate -s 8192 nv_image-snow.bin && cat spl/smdk5250-spl.bin >> nv_image-snow.bin && truncate -s 24576 nv_image-snow.bin && cat u-boot-dtb.bin >> nv_image-snow.bin"
<Kasreyn> my XE303 is not stable (software is randomly segfaulting -> apps closing in X11) so i moved on to XE503 Exynos Octa 5420
<Kasreyn> i think it's faulty hardware (the eMMC is no longer responding)
<Kasreyn> the XE503 is stable when running it with Debian (hexdump release) https://github.com/hexdump0815/imagebuilder/releases/tag/230924-02
<Kasreyn> more cores & more RAM but .. different layout when it comes to SPI NOR
<Kasreyn> i might mod the XE503 SPI chip with wires (not going risk bricking it)
ungeskriptet3 has joined #u-boot
rvalue has quit [Read error: Connection reset by peer]
ungeskriptet has quit [Ping timeout: 264 seconds]
ungeskriptet3 is now known as ungeskriptet
rvalue has joined #u-boot
rockosov has quit [Quit: WeeChat 3.4-dev]
rockosov has joined #u-boot
Jones42 has joined #u-boot
dhruvag2000 has quit [Quit: Connection closed for inactivity]
MrCryo has joined #u-boot
Jones42_ has joined #u-boot
Jones42 has quit [Ping timeout: 255 seconds]
MrCryo has quit [Remote host closed the connection]
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Jones42__ has joined #u-boot
Jones42_ has quit [Ping timeout: 255 seconds]
xroumegue has quit [Ping timeout: 255 seconds]
Jones42__ is now known as Jones42
xroumegue has joined #u-boot
eballetbo has joined #u-boot
naoki has quit [Quit: naoki]
warpme has joined #u-boot
mmu_man has quit [Ping timeout: 268 seconds]
matthias_bgg has quit [Ping timeout: 256 seconds]
rvalue has quit [Quit: ZNC - https://znc.in]
rvalue has joined #u-boot
mmu_man has joined #u-boot
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
warpme has joined #u-boot
flygoat7 is now known as flygoat
gsz has joined #u-boot
dsimic has quit [Ping timeout: 268 seconds]
dsimic has joined #u-boot
Hypfer6 has joined #u-boot
Jones42 has quit [Ping timeout: 240 seconds]
mckoan is now known as mckoan|away
mmu_man has quit [Ping timeout: 255 seconds]
stefanro has quit [Quit: Leaving.]
LordKalma has quit [Quit: Ping timeout (120 seconds)]
LordKalma has joined #u-boot
Stat_headcrabed has joined #u-boot
mmu_man has joined #u-boot
vagrantc has joined #u-boot
mmu_man has quit [Ping timeout: 264 seconds]
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
ungeskriptet has quit [Quit: Contact links: https://david-w.eu]
ungeskriptet has joined #u-boot
sauce has quit []
frieder has quit [Remote host closed the connection]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #u-boot
sauce has joined #u-boot
Kasreyn has quit [Quit: leaving]
mrnuke has quit [Remote host closed the connection]
mrnuke has joined #u-boot
goliath has quit [Quit: SIGSEGV]
sszy has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
mrnuke has quit [Ping timeout: 240 seconds]
goliath has joined #u-boot
Stat_headcrabed has quit [Quit: Stat_headcrabed]
mrnuke has joined #u-boot
alan_o has quit [Remote host closed the connection]
alan_o has joined #u-boot
f_[xmpp] has quit [Quit: Gateway shutdown]
enok has joined #u-boot
enok has quit [Ping timeout: 260 seconds]
enok has joined #u-boot
gsz has quit [Ping timeout: 268 seconds]
mmu_man has joined #u-boot
ldevulder has quit [Quit: Leaving]
shoragan has quit [Quit: quit]
redbrain has quit [Read error: Connection reset by peer]
redbrain has joined #u-boot
enok has quit [Ping timeout: 260 seconds]
<Tartarus> Ah the "joy" of not running some tests, ever, in CI :(
<Tartarus> When test_log_format was added in 2017, the expected output was "NOTICE.arch,file.c:123-func() msg"
<Tartarus> But CMD_LOG isn't enabled today at least, so this test is skipped even on sandbox
<Tartarus> Testing this on real HW right now:
<Tartarus> Testing this on real HW right now:
<Tartarus> "NOTICE.arch,file.c:123- func() msg" is the output
<marex> Tartarus: tsk tsk ... and when you are done with all the discussion and fixing all the feedback, would you extend tests/ (TM) ?
<marex> Tartarus: that said ... I noticed similar thing on Intel Arria10 recently, uncompiled code, not compiled even in CI (sigh) did bitrot
<marex> Tartarus: maybe we need some code compile coverage tool to check if we dont have dead code ?
<Tartarus> Hard to say? I am not a fan of the kernels randconfig
goliath has quit [Quit: SIGSEGV]
<marex> Tartarus: is there a tool to analyze current compile coverage ?
<marex> Tartarus: sjg1 was going on about something python something for one of the *man tools, which I have in my backlog