Tartarus changed the topic of #u-boot to: SOURCE MOVED TO https://source.denx.de/u-boot/u-boot.git / U-Boot v2023.04, v2023.07-rc5 are OUT / Merge Window is CLOSED, next branch is OPEN / Release v2023.07 is scheduled for 03 July 2023 / Channel archives at https://libera.irclog.whitequark.org/u-boot
cakes has joined #u-boot
cakes has joined #u-boot
cakes has quit [Changing host]
cakes has quit [Ping timeout: 250 seconds]
apritzel has quit [Ping timeout: 245 seconds]
WoC has quit [Ping timeout: 240 seconds]
mmu_man has quit [Ping timeout: 245 seconds]
Wouter0100670440 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter0100670440 has joined #u-boot
jclsn has quit [Ping timeout: 264 seconds]
jclsn has joined #u-boot
vagrantc has quit [Quit: leaving]
teejay_ has quit [Quit: leaving]
sng has joined #u-boot
sng has quit [Remote host closed the connection]
apritzel has joined #u-boot
apritzel has quit [Ping timeout: 245 seconds]
mmu_man has joined #u-boot
m5zs7k has quit [Ping timeout: 252 seconds]
m5zs7k has joined #u-boot
mmu_man has quit [Ping timeout: 246 seconds]
mmu_man has joined #u-boot
pgreco_ has joined #u-boot
pgreco has quit [Ping timeout: 240 seconds]
redbrain has quit [Read error: Connection reset by peer]
redbrain has joined #u-boot
sng_ has joined #u-boot
sng_ has quit [Remote host closed the connection]
sng_ has joined #u-boot
mckoan|away has quit [Ping timeout: 240 seconds]
mckoan|away has joined #u-boot
Net147_ has quit [Quit: Quit]
Net147 has joined #u-boot
Net147 has joined #u-boot
Net147 has quit [Changing host]
slobodan has joined #u-boot
apritzel has joined #u-boot
Wouter0100670440 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter0100670440 has joined #u-boot
urja has quit [Ping timeout: 240 seconds]
<marex> xypron: I get data abort on MX6Q (arm32) with c7c0ca37673 ("efi_loader: fix efi_dp_from_file()")
<marex> xypron: if I revert it, no data abort
<marex> it blows up in efi_dp_from_file -> path_to_uefi -> utf16_put , I suspect some alignment issue as *uefi is at 0x...d, I am investigating
urja has joined #u-boot
sng_ has quit [Remote host closed the connection]
sng has joined #u-boot
sng has quit [Ping timeout: 240 seconds]
sng has joined #u-boot
<marex> xypron: somehow, the allow_unaligned is not being used from armv7/sctlr.S for whatever reason
apritzel has quit [Ping timeout: 250 seconds]
sng has quit [Ping timeout: 250 seconds]
sng has joined #u-boot
sng_ has joined #u-boot
sng has quit [Read error: Connection reset by peer]
sng_ has quit [Remote host closed the connection]
apritzel has joined #u-boot
WoC has joined #u-boot
WoC has quit [Ping timeout: 240 seconds]
WoC has joined #u-boot
sng has joined #u-boot
WoC has quit [Remote host closed the connection]
WoC has joined #u-boot
camus has joined #u-boot
<xypron> Hello Marek, I think https://lore.kernel.org/u-boot/20230320171335.1368308-1-ilias.apalodimas@linaro.org/ solves this on armv7 and arm11.
<marex> xypron: that would be my alternative approach, except that patch is buggy too, it fails to consider that you have to save r0 and restore it
<xypron> Isn't r0 used for return values and 1st parameter passing and does not need to be restored?
<marex> xypron: what if the function gets inlined using LTO ?
<marex> then you just corrupt random register ?
<xypron> I don't know how LTO handles registers in inlining.
<marex> so yeah, the patch is buggy too
<xypron> But as r0 is marked as scratch registers in the calling convention it should not rely on it not being used.
<marex> xypron: the right approach is to use a temporary
<xypron> Ilias is on vacation. Could you supply a solution covering armv7 and arm11 and then lets put that into the release.
<marex> xypron: I can update the Fixes tag and send V2 of the patches I sent
<marex> xypron: that is less intrusive
<xypron> I mean can you do the same for arm11 too in v2?
<marex> xypron: have you had a look at patch 2/2 in the series I posted yet ?
<xypron> great
sng has quit [Remote host closed the connection]
<xypron> So I will take you series through Gitlab (with the Fixes removed)
<marex> xypron: I just sent v2 with updated Fixes tag
sng has joined #u-boot
<marex> xypron: I pushed it to usb/test2 too
<xypron> marex: I wanted to send a push request for v2023.07 concerning docs anyway. Let's add this here.
<marex> xypron: please make sure you include v2
<xypron> marex: That is what is in the Gitlab pipeline.
<marex> xypron: I think we're ripe for rc6 instead of a release on Monday
<xypron> marex: spl_board_boot_device() use enum boot_device as parameter for implementations but u32 in include/spl.h. This leads to build warnings with current gcc. Do we really need board specific definitions of constants for this enum?
sng has quit [Remote host closed the connection]
pgreco_ has quit [Ping timeout: 245 seconds]
pgreco has joined #u-boot
<marex> xypron: include/spl.h should be updated, yeah
<xypron> marex: but we have two contradicting defintions of the enum.
<marex> xypron: I think the enum is a good idea, since it constraints the parameter
<marex> eh ?
<xypron> marex: arch/arm/mach-stm32mp/include/mach/stm32.h vs arch/arm/include/asm/mach-imx/boot_mode.h
<xypron> both declare the enum
<marex> of course
* marex face -> palm
<xypron> I wonder why we can't use one set of values.
<marex> didnt we one had one set ?
<marex> or was that boot media ?
<marex> arch/arm/include/asm/arch-ls102xa/spl.h:#define BOOT_DEVICE_MMC2_2 7
<xypron> struct spl_image_info() also has a u32 boot_device
<marex> so ... yeah, we have something already
* marex faints
<xypron> marex: Enjoy this: git grep -n 'BOOT_DEVICE_MMC1' | grep '\.h:'
<marex> xypron: yeah, it is a mess
<xypron> marex: was the failure you experiened involving LTO?
<marex> xypron: yes
goliath has joined #u-boot
camus has quit [Ping timeout: 250 seconds]
apritzel has quit [Ping timeout: 246 seconds]
Wouter0100670440 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter0100670440 has joined #u-boot
Leopold has joined #u-boot
goliath has quit [Quit: SIGSEGV]
mmu_man has quit [Ping timeout: 260 seconds]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #u-boot
sng has joined #u-boot
sng has quit [Remote host closed the connection]
sng has joined #u-boot
mmu_man has joined #u-boot
Wouter0100670440 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter0100670440 has joined #u-boot
chris_99 has joined #u-boot
sng has quit [Read error: Connection reset by peer]
sng_ has joined #u-boot
<chris_99> Hi, i'm wondering if anyone might have any suggestions if there's no serial output from u-boot, and it doesn't boot a kernel, are there any tricks to working out what's going wrong? I assume maybe if i had jtag, i could get more of an insight?
sng_ has quit [Remote host closed the connection]
zkrx has quit [Ping timeout: 240 seconds]
zkrx has joined #u-boot
<marex> chris_99: version ? platform ? soc ?
<marex> (thats jtag, openocd + gdb, how to debug uboot)
<chris_99> cheers just looking through the links now, looks very helpful, thanks
<marex> chris_99: it wouldnt hurt if you also provided some details, else expect only generic help
goliath has joined #u-boot
chris_99 has quit []
mmu_man has quit [Ping timeout: 245 seconds]
mmu_man has joined #u-boot
vagrantc has joined #u-boot
slobodan has quit [Ping timeout: 250 seconds]
Gravis has quit [Ping timeout: 264 seconds]
Gravis has joined #u-boot
apritzel has joined #u-boot
Gravis has quit [Ping timeout: 260 seconds]
Gravis_ has joined #u-boot
WoC has quit [Remote host closed the connection]
Peng_Fan has quit [Quit: Connection closed for inactivity]
apritzel has quit [Ping timeout: 240 seconds]