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-rc1 are OUT / Merge Window is CLOSED, next branch is CLOSED / Release v2025.10 is scheduled for 06 October 2025 / Channel archives at https://libera.irclog.whitequark.org/u-boot
zibolo has quit [Ping timeout: 260 seconds]
zibolo has joined #u-boot
Revy has quit [Server closed connection]
Revy has joined #u-boot
leah has quit [Remote host closed the connection]
leah has joined #u-boot
electricworry_ has joined #u-boot
alexeymin has quit [Ping timeout: 252 seconds]
electricworry has quit [Ping timeout: 252 seconds]
alexeymin has joined #u-boot
sng has quit [Ping timeout: 252 seconds]
sng has joined #u-boot
georgem has quit [Server closed connection]
georgem has joined #u-boot
ezequielg has quit [Server closed connection]
ezequielg has joined #u-boot
rhadye has quit [Server closed connection]
rhadye has joined #u-boot
conchuod has quit [Server closed connection]
ConorDooley has joined #u-boot
slobodan has quit [Ping timeout: 245 seconds]
vagrantc has quit [Quit: leaving]
crb has joined #u-boot
crb has quit [Quit: This computer has gone to sleep]
austriancoder has quit [Server closed connection]
austriancoder has joined #u-boot
jluthra has quit [Server closed connection]
jclsn has quit [Ping timeout: 272 seconds]
jluthra has joined #u-boot
jclsn has joined #u-boot
LeSpocky has quit [Ping timeout: 248 seconds]
LeSpocky has joined #u-boot
mmu_man has quit [Ping timeout: 240 seconds]
persmule has quit [Ping timeout: 240 seconds]
alpernebbi has quit [Ping timeout: 248 seconds]
clamor has joined #u-boot
persmule has joined #u-boot
naoki has joined #u-boot
alpernebbi has joined #u-boot
haritz has quit [Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in]
mtoy has quit [Server closed connection]
mtoy has joined #u-boot
clamor has quit [Ping timeout: 252 seconds]
clamor has joined #u-boot
gsz has joined #u-boot
Revy has quit [Changing host]
Revy has joined #u-boot
goliath has joined #u-boot
Jones42 has joined #u-boot
sng has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
sng has joined #u-boot
sng has quit [Changing host]
sng has joined #u-boot
warpme has joined #u-boot
frieder has joined #u-boot
zibolo has quit [Ping timeout: 252 seconds]
alperak has joined #u-boot
zibolo has joined #u-boot
mmu_man has joined #u-boot
prabhakalad has quit [Quit: Konversation terminated!]
bjoto has joined #u-boot
prabhakalad has joined #u-boot
zibolo has quit [Ping timeout: 260 seconds]
frieder has quit [Ping timeout: 260 seconds]
sszy has joined #u-boot
frieder has joined #u-boot
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
mckoan|away has quit [Quit: Quitting irssi IRC Client, bye.]
mckoan has joined #u-boot
ajg_linaro has joined #u-boot
Poltawer has joined #u-boot
apritzel has joined #u-boot
ikarso has quit [Quit: Connection closed for inactivity]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #u-boot
haritz has joined #u-boot
haritz has quit [Changing host]
haritz has joined #u-boot
mckoan is now known as mckoan|away
ikarso has joined #u-boot
teknix has joined #u-boot
ungeskriptet has quit [Ping timeout: 265 seconds]
gsz has quit [Ping timeout: 260 seconds]
ungeskriptet has joined #u-boot
<Jones42> what's the canonical branch for kirkstone meta-secure-imx? ch or hs?
clamor has quit [Ping timeout: 252 seconds]
clamor has joined #u-boot
gsz has joined #u-boot
Poltawer has quit [Quit: WeeChat 4.7.0]
gsz has quit [Ping timeout: 252 seconds]
slobodan has joined #u-boot
mmu_man has quit [Ping timeout: 255 seconds]
goliath has quit [Quit: SIGSEGV]
jdautheribes has joined #u-boot
naoki has quit [Quit: naoki]
frieder has quit [Remote host closed the connection]
<jdautheribes> Hi all, I work on secureboot for the imx93 platform and when I enable the 'AHAB_BOOT', I got a synchronous abort in the SPL.
<jdautheribes> I'm using u-boot v2025.07 but I can reproduce it with earlier versions too.
<jdautheribes> It happens in the following simplified code path: read_auth_image() --> ahab_verify_cntr_image() --> ele_verify_image() -> imx8ulp_mu_call() --> imx8ulp_mu_write() --> mu_hal_sendmsg() --> readl()
<jdautheribes> Any ideas pls? Thanks!
gsz has joined #u-boot
gsz has quit [Ping timeout: 252 seconds]
<marex> jdautheribes: if it happens in readl, then you are either accessing something which has clock disabled, or which is blocked from NS world by secure MMU tables
<jdautheribes> I'm using the default imx93 evk dtb and defconfig, why would you recommend to debug further pls?
<jdautheribes> what*
<marex> it doesnt work, what else could you do, toss the board into the trash and give up I guess
<marex> oh ... what ... which address does trigger the fault (printf the readl parameter) and then check MX93 RM for what address this is
goliath has joined #u-boot
<marex> you probably need to make sure the ELE container is up to date and not corrupted
<marex> or AHAB container, that is
<jdautheribes> Yeah I already dumped the address, which is 0xb900004132140021 and seems a bit high, doesn't it? I also traced where it's set and it happens in rom_api_download_image()-->g_rom_api->download_image() which is, if I understand correctly, directly provided the internal ROM so I can;t debug further.
<jdautheribes> I'm uisng the latest AHAB contaienr, but I will double check, thanks.
<marex> can you point the exact line of code ?
<marex> the address you listed is bogus, for one thing, it is unaligned which will trigger a fault, and for other, it is too larger
<marex> print it using %08x , with (u32)(uintptr_t) cast ... that should give you a valid result
<marex> and if it is still unaligned, then there's something corrupted there
dsimic has quit [Ping timeout: 248 seconds]
dsimic has joined #u-boot
<jdautheribes> I got 0x32140021
<jdautheribes> before that call I've 0x47520000
<marex> you wrote it fails in some readl() somewhere ?
<marex> is 0x32140021 the romapi function address ?
<marex> does it work if you dont use signed boot ?
slobodan has quit [Read error: Connection reset by peer]
slobodan has joined #u-boot
<jdautheribes> 0x32140021 is the base address of the structure mu_type (https://gitlab.com/u-boot/u-boot/-/blob/v2025.07/arch/arm/include/asm/arch-imx9/imx-regs.h?ref_type=tags#L74), the address given to the readl() function is actually 0x32140025, which is mu_type->par
<jdautheribes> And yes it does work when I disable "AHAB_BOOT"
slobodan has quit [Ping timeout: 255 seconds]
slobodan has joined #u-boot
mmu_man has joined #u-boot
K900 has quit [Remote host closed the connection]
K900 has joined #u-boot
<marex> jdautheribes: and in that case, is mu_type aligned ?
<jdautheribes> It's not aligned but we don't go through the readl() call when AHAB_BOOT is not selected.
<jdautheribes> e.g. i got the same 0x32140021 address
<marex> which readl() is that ?
<marex> oh
<marex> jdautheribes: in drivers/misc/imx_ele/ele_mu.c , add #define DEBUG right at the beginning of the file , that should ungate debug prints in imx8ulp_mu_probe()
<marex> you should be able to see the base extracted from DT in
<marex> 218 debug("mu base 0x%lx\n", (ulong)priv->base);
<marex> it seems the base is somehow corrupted in mu_hal_sendmsg()
<jdautheribes> mu base 0x47520000
<jdautheribes> Before that I still get 0x47520000
<marex> print the download_image dest, offset, size params, and print also address of struct imx8ulp_mu *priv , could it be the download writes somewhere into SRAM and corrupts U-Boot internal state ?
ajg_linaro has quit [Ping timeout: 255 seconds]
<jdautheribes> imx8ulp_mu *priv stays consistent (0x204e6758), it's only the mu_type which seems to be corrupted.
<jdautheribes> I'm adding the logs you requested, thanks for you help!
sszy has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<jdautheribes> dest: 0x204e0000, offset: 0x00055c00, size: 0x0000c000
<marex> imx8ulp_mu *priv stays consistent (0x204e6758) ... because that is the memory address of the data
<marex> where is this rem_api_download_image() called from exactly ?
<marex> probably somewhere in arch/arm/mach-imx/spl_imx_romapi.c with a funny buffer address
apritzel has quit [Ping timeout: 252 seconds]
<jdautheribes> It is called from spl_romapi_raw_seekable_read
<jdautheribes> in arch/arm/mach-imx/spl_imx_romapi.c yes
<marex> jdautheribes: try to unwind back further, you might find this is trying to load something into some borked buffer
<jdautheribes> Ok I'll continue, thanks a lot for your help!
<marex> also check SPL_IMX_ROMAPI_LOADADDR in your .config
<marex> either it is this that's misconfigured, or some buffer is badly aligned or located on stack at the wrong place
<marex> do the few extra steps, figure out what it is loading and into which buffers, I'm really curious
<any1> What's the point of having separate storage for priv and plat? If I write a new driver, is it okay to put everything into priv?
<jdautheribes> I will keep you updated (tomorrow probably)
<marex> any1: plat is partly static and can be pre-generated from other stuff than DT, priv is dynamic driver instance data
<marex> jdautheribes: thanks
<any1> marex: I'm just wondering if I'm supposed to always read from dt into plat or if I can read from dt into priv instead.
jdautheribes has quit [Ping timeout: 255 seconds]
<marex> any1: DT into plat, see of_to_plat callback
<any1> ok, thank
<any1> s
warpme has joined #u-boot
warpme has quit [Client Quit]
jfsimon has quit [Remote host closed the connection]
Jones42 has quit [Ping timeout: 255 seconds]
clamor has quit [Ping timeout: 255 seconds]
jfsimon has joined #u-boot
slobodan has quit [Ping timeout: 255 seconds]
slobodan has joined #u-boot
qsx has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
qsx has joined #u-boot
BobBeck37 has quit [Quit: The Lounge - https://thelounge.chat]
MWelchUK0 has quit [Quit: The Lounge - https://thelounge.chat]
BobBeck37 has joined #u-boot
MWelchUK0 has joined #u-boot
BobBeck37 has quit [Client Quit]
MWelchUK0 has quit [Client Quit]
BobBeck37 has joined #u-boot
MWelchUK0 has joined #u-boot
slobodan has quit [Read error: Connection reset by peer]
slobodan has joined #u-boot
Poltawer has joined #u-boot
gsz has joined #u-boot
jfsimon has quit [Remote host closed the connection]
jfsimon has joined #u-boot
alperak has quit [Quit: Connection closed for inactivity]
mmu_man has quit [Ping timeout: 252 seconds]
ikarso has quit [Quit: Connection closed for inactivity]
mmu_man has joined #u-boot
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
ja_02 has quit [Remote host closed the connection]
ja_02 has joined #u-boot
rvalue- has joined #u-boot
rvalue has quit [Ping timeout: 260 seconds]
Poltawer has quit [Quit: WeeChat 4.7.0]
slobodan has quit [Ping timeout: 260 seconds]
goliath has quit [Quit: SIGSEGV]
slobodan has joined #u-boot
rvalue- is now known as rvalue
bq has quit [Server closed connection]
slobodan has quit [Read error: Connection reset by peer]
bq has joined #u-boot
slobodan has joined #u-boot
gsz has quit [Ping timeout: 260 seconds]
Wouter0100 has quit [Ping timeout: 248 seconds]
Wouter0100 has joined #u-boot
jfsimon has quit [Remote host closed the connection]
jfsimon has joined #u-boot
jfsimon has quit [Remote host closed the connection]
jfsimon has joined #u-boot
crb has joined #u-boot
crb has quit [Read error: Connection reset by peer]
pigmoral has quit [Server closed connection]
pigmoral has joined #u-boot
jfsimon has quit [Remote host closed the connection]
jfsimon has joined #u-boot
crb has joined #u-boot
crb has quit [Read error: Connection reset by peer]