wooosaiiii has quit [Remote host closed the connection]
wooosaiiii has joined #u-boot
ungeskriptet has joined #u-boot
Poltawer has quit [Quit: WeeChat 4.6.1]
sszy has joined #u-boot
LainIwakura has joined #u-boot
apritzel has joined #u-boot
clamor has quit [Ping timeout: 260 seconds]
ikarso has quit [Quit: Connection closed for inactivity]
LainIwakura has quit [Quit: Client closed]
enok has quit [Remote host closed the connection]
enok has joined #u-boot
monstr has joined #u-boot
ikarso has joined #u-boot
goliath has joined #u-boot
<dormito>
I'm running into some clock related issues: so I "#define DEBUG" at the top of drivers/clk/clk-uclass.c, however now my i.mxrt1170 dies on boot. Because it appears to be trying to write to the uart... (about clocking changinge) while reconfiguring the UARTs clock. obviously this won't work, but does u-boot already have any approach for resolving this sort of paradox?
<dormito>
I was thinking, mabye change the debug() macro to feed debug_cond() a function call instead of the const _DEBUG... Maybe by making log.h's _DEBUG define only if it's not already defined...
<marex>
dormito: is that on next ? does it happen on 2025.04 ?
<sjg1>
Tartarus: It seems to work without the header and I don't immediately see any need for avoiding U-Boot's malloc() in that file
mmu_man has joined #u-boot
mmu_man has quit [Client Quit]
mmu_man has joined #u-boot
<dormito>
marex: the clocking problem I am trying to debug is related to changes I made. But I'm wonder if u-boots framework has a way to both "enable a verbose debug block" and prevent it from killing the system when it would print at an inopertune time
<marex>
dormito: if the UART driver did not resolve clock yet, then the UART driver is not probed at all and not used at all
<dormito>
specifically you can see it's trying to mess with 'lpuart1_sel' ... which is the very uart it's printing out of.
<dormito>
my changes are currently based off: 32c9a6518dcef9b4250461e70b2c719101a305ef (which is a stupid place for them, but I think I was checking if upstream had effected my code, and forgot to go back to a saner commit base)
<marex>
dormito: I did some changes to the imx clock code, they are in next and current master, so try 2025.04 and see if that unbreaks things
<dormito>
oh nice. did you change imxrt1170_clk_probe ? that code block looked suspicous to me, but I'm not familiar enough with u-boots clocking to know how it should be done (though it feels like much of that function should be represented in the device tree)
<marex>
dormito: maybe a bit
<dormito>
hmmm. may take a while to test that. will either need to wait till I got back to where the device is located, or figure out how to inject u-boot live over a openocd/gdb session
haritz has joined #u-boot
haritz has joined #u-boot
monstr has quit [Remote host closed the connection]
monstr has joined #u-boot
jmasson has joined #u-boot
jmasson has left #u-boot [#u-boot]
naoki has quit [Quit: naoki]
clamor has joined #u-boot
<soxrok2212>
marex: not slotted. the SPD is hardcoded afaik
enok has quit [Quit: enok]
enok71 has joined #u-boot
enok71 is now known as enok
KREYREN has joined #u-boot
enok has quit [Ping timeout: 248 seconds]
ldevulder has quit [Ping timeout: 268 seconds]
ldevulder has joined #u-boot
dsimic has quit [Ping timeout: 252 seconds]
dsimic has joined #u-boot
<marex>
soxrok2212: then maybe just write the SPD EEPROM blob content (there might be some generator for that) and extract timing parameters from the DRAM chip datasheet
<soxrok2212>
im stuck creating the odt config... its ddr3 whereas the odt_config struct expects params2, which is apparently only used for ddr4
KREYREN has quit [Remote host closed the connection]
KREYREN has joined #u-boot
mmu_man has joined #u-boot
Jones42 has quit [Ping timeout: 272 seconds]
<soxrok2212>
marex: so theres an option to disable dram and run u-boot in l2 cache; i tried this just to get around the ddr config for now. it starts and prints "U-Boot <version/build>" but that's it. im not very familiar with the process here/.. do you have any places where i should look to start debugging?
<soxrok2212>
s/have/know
<marex>
er ... how big is your L2 ?
<soxrok2212>
according to one of the commits adding octeon support, 4mb
<soxrok2212>
its a guess... soc in this board is cn7030. that commit was 73xx
<marex>
soxrok2212: ha ... common/board_{r,f}.c ... add printf("%s[%d]\n", __func__, __LINE__); ... that automatically prints function name and line number for you
<marex>
spam these files and see how far it gets
<marex>
also ... do you use u-boot/master for this ?
<soxrok2212>
master, yep
rvalue has quit [Read error: Connection reset by peer]