Tartarus changed the topic of #u-boot to: SOURCE MOVED TO https://source.denx.de/u-boot/u-boot.git / U-Boot v2025.07, v2025.10-rc2 are OUT / Merge Window is CLOSED, next branch is OPEN / Release v2025.10 is scheduled for 06 October 2025 / Channel archives at https://libera.irclog.whitequark.org/u-boot
Jones42 has joined #u-boot
Jones42 has quit [Ping timeout: 258 seconds]
naoki has joined #u-boot
goliath has quit [Quit: SIGSEGV]
jclsn has quit [Ping timeout: 272 seconds]
jclsn has joined #u-boot
mmu_man has quit [Ping timeout: 258 seconds]
d3thbird has quit [Ping timeout: 260 seconds]
d3thbird has joined #u-boot
mmu_man has joined #u-boot
jkridner has quit [Server closed connection]
jkridner has joined #u-boot
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #u-boot
sakman has quit [Quit: Leaving]
sakman has joined #u-boot
mmu_man has quit [Ping timeout: 256 seconds]
clamor has joined #u-boot
bradfa has quit [Server closed connection]
bradfa has joined #u-boot
monstr has joined #u-boot
monstr has quit [Ping timeout: 258 seconds]
naoki has quit [Quit: naoki]
naoki1 has joined #u-boot
naoki1 is now known as naoki
prabhakalad has quit [Ping timeout: 260 seconds]
prabhakalad has joined #u-boot
prabhakalad has quit [Ping timeout: 248 seconds]
prabhakalad has joined #u-boot
haritz has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
prabhakalad has quit [Ping timeout: 258 seconds]
prabhakalad has joined #u-boot
tlwoerner has quit [Ping timeout: 258 seconds]
tlwoerner has joined #u-boot
prabhakalad has quit [Ping timeout: 258 seconds]
prabhakalad has joined #u-boot
prabhakalad has quit [Ping timeout: 258 seconds]
prabhakalad has joined #u-boot
clamor has quit [Ping timeout: 258 seconds]
clamor has joined #u-boot
sjg1 has quit [Server closed connection]
sjg1 has joined #u-boot
tlwoerner has quit [Ping timeout: 258 seconds]
ldevulder has joined #u-boot
tlwoerner has joined #u-boot
pbrobinson has quit [Server closed connection]
pbrobinson has joined #u-boot
rgallaispou has joined #u-boot
___nick___ has joined #u-boot
warpme has joined #u-boot
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
___nick___ has joined #u-boot
___nick___ has quit [Client Quit]
___nick___ has joined #u-boot
zsoltiv_ has quit [Ping timeout: 244 seconds]
haritz has joined #u-boot
haritz has quit [Changing host]
haritz has joined #u-boot
ldevulder has quit [Quit: Leaving]
tlwoerner has quit [Ping timeout: 248 seconds]
goliath has joined #u-boot
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
tlwoerner has joined #u-boot
tlwoerner has quit [Ping timeout: 248 seconds]
tlwoerner has joined #u-boot
warpme has joined #u-boot
prabhakalad has quit [Ping timeout: 248 seconds]
prabhakalad has joined #u-boot
ldevulder has joined #u-boot
<Ermine> now that my dts building issues are resolved, u-boot spl fails to find fdt in memory
<marex> Ermine: patch lib/fdtdec.c (I think) , spam it with printf() and enable DEBUG_UART to efficiently debug this
<qschulz> Ermine: what are you flashing and at which offset?
<qschulz> I'm not sure we do this for Aarch32 platforms, but for Aarch64 we typically use a FIT image for U-Boot proper
<qschulz> so the most likely answer could be that U-boot proper was flashed at the wrong offset in memory
<qschulz> (which shouldn't happen if you use u-boot-rockchip.bin at offset 32KiB but could be a bug :) )
<qschulz> or that your U-Boot proper FIT doesn't have an FDT there (you can run mkimage -l on u-boot.itb to check for yourself)
<qschulz> mmmm doesn't seem like we have FIT support enabled by default for Aarch32 according to https://elixir.bootlin.com/u-boot/v2025.07/source/arch/arm/dts/rockchip-u-boot.dtsi
<qschulz> you'd need CONFIG_SPL_FIT and CONFIG_SPL_OPTEE_IMAGE to be enabled for that to happen
<qschulz> so you'd be using u-boot-img etype in rockchip-u-boot.dtsi file and I have no clue how binman generates this file
<qschulz> * if you do not have CONFIG_SPL_FIT and CONFIG_SPL_OPTEE_IMAGE enabled
<Ermine> qschulz: I'm flashing u-boot-rockchip at block 64 (which is 32K afaik)
<qschulz> with rkdeveloptool I guess?
<Ermine> yes
<qschulz> ok, so rkdeveloptool wl 64 u-boot-rockchip.bin should be doing what we want indeed
<Ermine> Could it be that my dts is broken in some way?
<qschulz> can you provide the full bootlog maybe?
<qschulz> as well as yuor changes on top of master branch so we can follow a bit :) ?
<qschulz> you could also push to some publicly accessible git repo every now and then if you prefer
<Ermine> I'll send a patch soon
<Ermine> There's no public repository, sorry
<Ermine> Oh, and I should have made it clear from the beginning, but anyway: I'm doing this on $dayjob
<Ermine> here's patch: https://0x0.st/KiLZ.patch (But I'm basing upon v2025.07 tag)
gsz has joined #u-boot
<qschulz> Ermine: and the rest :) ? a defconfig, changes to other files maybe? and the boot log where you can see the error (the full bootlog, not just the error)
<Ermine> oh, forgot that :]
ldevulder has quit [Ping timeout: 248 seconds]
crb has joined #u-boot
crb has quit [Remote host closed the connection]
ldevulder has joined #u-boot
Jones42 has joined #u-boot
haritz has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
<qschulz> Ermine: oh so you do have a FIT image then it seems like
<qschulz> can you mkimage -l u-boot.itb maybe?
<Ermine> Do I understand correctly that FIT != FDT?
<qschulz> absolutely
<qschulz> FDT is flattened device tree
<qschulz> FDTO is flattened device tree overlay
<qschulz> as far as I understood, FDT = DTB and FDTBO = DTBO
<qschulz> (for the terms typically used in the Linux kernel)
<qschulz> FIT is flattened image tree
<qschulz> it's a binary that has multiple binaries in it
<qschulz> it's typically an .its file as input that outputs an .itb binary file
<qschulz> you can have a FIT image for what's loaded by the SPL, typically TF-A (ATF/Bl31) + OP-TEE OS + U-Boot proper
<Jones42> (helpful tools are fdtdump and dumpimage -l)
<qschulz> you also have FIT image support for the Linux kernel as well where you can have a kernel, multiple device trees, device tree overlays, an initramfs, etc...
<Ermine> ohhh
<qschulz> it seems odd it cannot find a device tree in your U-Boot FIT image so I would start checking there actually is something there, if yes, then I don't know where to look next
<qschulz> if no, then maybe misconfiguration?
<Jones42> (you can use u-boot's iminfo command to inspect the fitimage once it has been loaded into RAM)
Poltawer has joined #u-boot
<qschulz> Jones42: you;d need to reach U-boot CLI for that to work, which Ermine hasn't managed to do just yet :)
Poltawer has quit [Quit: WeeChat 4.7.0]
<Ermine> So, I don't have u-boot.itb
<qschulz> mmmmm, the logs beg to differ
<qschulz> I think you managed to build an image that cannot work
<qschulz> but I'm confused by the SPL being able to find *some* FIT image somewhere
<qschulz> enable CONFIG_SPL_LEGACY_IMAGE_FORMAT in your defconfig
<qschulz> this should make your SPL be able to load the legacy u-boot.img which I believe is what's inside u-boot-rockchip.bin that you flash
<qschulz> probably disable CONFIG_SPL_FIT for now to not confuse it
dsimic has quit [Ping timeout: 248 seconds]
dsimic has joined #u-boot
<Ermine> Did that, now getting mmc read errors
<qschulz> can you paste the few lines of error here?
Jones42 has quit [Ping timeout: 258 seconds]
<Ermine> qschulz: https://0x0.st/Ki9w.log
mmu_man has joined #u-boot
naoki has quit [Ping timeout: 248 seconds]
naoki has joined #u-boot
Jones42 has joined #u-boot
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<qschulz> I would enable the debug messages in common/spl/spl_mmc.c to try and pinpoint where the error actually comes from
<qschulz> -38 is -ENOSYS
<qschulz> so essentially an unimplemented function
<qschulz> could be as simple as a missing symbol in your .config for example
<qschulz> but may not be related
<qschulz> could be that you hit this code path because of an error before
<qschulz> e.g. the -22 in the block read error (EINVAL)
naoki1 has joined #u-boot
naoki1 has quit [Read error: Connection reset by peer]
naoki has quit [Ping timeout: 256 seconds]
naoki has joined #u-boot
<Ermine> ... It was caused by missing legacy support in SPL
naoki has quit [Read error: Connection reset by peer]
<Ermine> I'm in u-boot proper! It hangs though
naoki has joined #u-boot
naoki1 has joined #u-boot
naoki has quit [Ping timeout: 248 seconds]
naoki1 is now known as naoki
<qschulz> it hangs where :) logs logs logs :)
Jones42 has quit [Ping timeout: 258 seconds]
rgallaispou has quit [Read error: Connection reset by peer]
<Ermine> qschulz: https://0x0.st/KipB.log
<Ermine> So I have those pinctrl messages. I guess I need to edit dts to get rid of those?
<qschulz> That would be the SPL DTB, which is not the same (on Rockchip) as the U-Boot proper DTB
<qschulz> so it may not be related
<qschulz> but fixing it is always nice
<qschulz> I assume it's missing a bunch of bootph- properties for the pinctrl nodes for the emmc node
<qschulz> (could also be pinconf nodes of those pinctrl nodes)
<qschulz> also something similar for the uart controller
jbowen has quit []
jbowen has joined #u-boot
<qschulz> then it's whack-a-mole time
<qschulz> You do not have a line starting with "Core: "
<qschulz> so it means this happens before dm_announce is called
<qschulz> also, this is all in U-Boot proper pre-relocation I believe
Jones42 has joined #u-boot
<qschulz> so maybe missing additional bootph-some-ram properties?
<Ermine> on uart node?
<qschulz> honestly not sure
rgallaispou has joined #u-boot
<qschulz> i would rather guess no (for the bootph-some-ram)
<qschulz> if your question was wrt my comment on "something similar for the uart controller" it's because you also have a pinctrl error in SPL for serial@ff690000
<qschulz> What I can tell you is that the thing I have on my PX30 board after PMIC: is Core:
<qschulz> and you don't have Core: printed
<qschulz> so it may be time to enable more verbose logging (which I never remember how to do properly :) )
<Ermine> I've just figured it out, this serial is not enabled on this board
* Ermine scratches head
<Ermine> hm, rk3288-u-boot.dtsi has clock-frequency = 2400000 for uarts. May this be a problem? Probably I don't see things due to baud differences
ldevulder has quit [Ping timeout: 248 seconds]
<Ermine> I HAVE CONSOLE
clamor has quit [Ping timeout: 248 seconds]
clamor has joined #u-boot
ldevulder has joined #u-boot
<Jones42> yay!
<Ermine> qschulz: I owe you a drink
naoki has quit [Quit: naoki]
rgolledge has quit [Ping timeout: 256 seconds]
rgolledge has joined #u-boot
mmu_man has quit [Ping timeout: 256 seconds]
Jones42 has quit [Ping timeout: 248 seconds]
mmu_man has joined #u-boot
mmu_man has quit [Ping timeout: 256 seconds]
clamor has quit [Ping timeout: 258 seconds]
ldevulder has quit [Read error: Connection reset by peer]
ldevulder has joined #u-boot
mmu_man has joined #u-boot
warpme has joined #u-boot
warpme has quit [Client Quit]
gachikuku_ has quit [Server closed connection]
gachikuku_ has joined #u-boot
Poltawer has joined #u-boot
Poltawer has quit [Quit: WeeChat 4.7.0]
Poltawer has joined #u-boot
ldevulder has quit [Quit: Leaving]
mmu_man has quit [Ping timeout: 248 seconds]
rvalue- has joined #u-boot
rvalue has quit [Ping timeout: 248 seconds]
Poltawer has quit [Ping timeout: 256 seconds]
Poltawer has joined #u-boot
mmu_man has joined #u-boot
rvalue- is now known as rvalue
warpme has joined #u-boot
Poltawer has quit [Ping timeout: 256 seconds]
Poltawer has joined #u-boot
Poltawer has quit [Ping timeout: 248 seconds]
Poltawer has joined #u-boot
Poltawer has quit [Ping timeout: 258 seconds]
Poltawer has joined #u-boot
alexeymin has quit [Remote host closed the connection]
alexeymin has joined #u-boot
gsz has quit [Quit: leaving]
Poltawer has quit [Ping timeout: 258 seconds]
Poltawer has joined #u-boot
___nick___ has quit [Ping timeout: 248 seconds]
rgallaispou has quit [Ping timeout: 248 seconds]
Poltawer has quit [Ping timeout: 248 seconds]
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Poltawer has joined #u-boot
goliath has quit [Quit: SIGSEGV]
catcream has quit [Remote host closed the connection]
catcream has joined #u-boot
Poltawer has quit [Quit: WeeChat 4.7.0]
naoki has joined #u-boot