Tartarus changed the topic of #u-boot to: SOURCE MOVED TO https://source.denx.de/u-boot/u-boot.git / U-Boot v2023.01, v2023.04-rc1 / Merge Window is CLOSED / Release v2023.04 is scheduled for 2023-04-03 / Channel archives at https://libera.irclog.whitequark.org/u-boot
vagrantc has quit [Quit: leaving]
advi[1] has joined #u-boot
naoki has quit [Quit: naoki]
flyback has quit [Ping timeout: 252 seconds]
flyback has joined #u-boot
qschulz has quit [Read error: Connection reset by peer]
qschulz has joined #u-boot
Wouter010067044 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter010067044 has joined #u-boot
thopiekar has quit [Quit: Likely restarting quassel...]
persmule has quit [Quit: Leaving]
thopiekar has joined #u-boot
mmu_man has quit [Ping timeout: 252 seconds]
persmule has joined #u-boot
apritzel has quit [Ping timeout: 255 seconds]
naoki has joined #u-boot
naoki has quit [Client Quit]
thopiekar has quit [Ping timeout: 255 seconds]
thopiekar has joined #u-boot
advi[1] has quit [Quit: Client closed]
stipa_ has joined #u-boot
stipa has quit [Read error: Connection reset by peer]
stipa_ is now known as stipa
ikarso has joined #u-boot
naoki has joined #u-boot
naoki has quit [Quit: naoki]
srk has joined #u-boot
<zPlus> sorry can I ask you guys what is the difference between compiling uboot with CROSS_COMPILE=riscv64-elf- and CROSS_COMPILE=riscv64-linux- ? If I use -linux- will it only be able to load Linux? Or can it load other "custom" kernels too?
goliath has joined #u-boot
xroumegue has quit [Ping timeout: 260 seconds]
naoki has joined #u-boot
xroumegue has joined #u-boot
apritzel has joined #u-boot
goliath has quit [Quit: SIGSEGV]
mckoan|away is now known as mckoan
apritzel has quit [Ping timeout: 255 seconds]
frieder has joined #u-boot
goliath has joined #u-boot
mmu_man has joined #u-boot
prabhakarlad has joined #u-boot
Wouter010067044 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter010067044 has joined #u-boot
sszy has joined #u-boot
camus has quit [Ping timeout: 248 seconds]
camus has joined #u-boot
ccf has joined #u-boot
naoki has quit [Quit: naoki]
apritzel has joined #u-boot
jeeebz has joined #u-boot
persmule has quit [Ping timeout: 255 seconds]
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #u-boot
persmule has joined #u-boot
d-s-e has joined #u-boot
d-s-e has quit [Ping timeout: 255 seconds]
d-s-e has joined #u-boot
naoki has joined #u-boot
naoki has quit [Quit: naoki]
apritzel_ has joined #u-boot
apritzel_ has quit [Ping timeout: 246 seconds]
srk has quit [Quit: ZNC 1.8.1 - https://znc.in]
srk has joined #u-boot
monstr has joined #u-boot
prabhakarlad has quit [Quit: Client closed]
haritz has quit [Quit: ZNC 1.8.2+deb2 - https://znc.in]
prabhakarlad has joined #u-boot
d-s-e has quit [Ping timeout: 255 seconds]
<marex> zPlus: https://wiki-archive.linaro.org/WorkingGroups/ToolChain/FAQ#What_is_the_differences_between_.2BIBw-arm-none-eabi-.2BIB0_and_.2BIBw-arm-linux-gnueabihf.2BIB0.3F_Can_I_use_.2BIBw-arm-linux-gnueabihf.2BIB0_tool_chain_in_bare-metal_environment.3F_How_do_you_know_which_toolchain_binary_to_use_where.3F
<marex> zPlus: its the same thing for rv
<marex> The bare-metal ABI will assume a different C library (newlib for example, or even no C library) to the Linux ABI (which assumes glibc). Therefore, the compiler may make different function calls depending on what it believes is available above and beyond the Standard C library.
<marex> with self-contained projects like u-boot or linux kernel, it makes little difference
mncheck has joined #u-boot
___nick___ has joined #u-boot
mncheck has quit [Quit: Leaving]
mmu_man has quit [Ping timeout: 252 seconds]
___nick___ has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
mborzecki has joined #u-boot
thopiekar has quit [Ping timeout: 252 seconds]
___nick___ has joined #u-boot
thopiekar has joined #u-boot
___nick___ has quit [Client Quit]
mncheck has joined #u-boot
gbisson has joined #u-boot
<mborzecki> hi, assuming I have a dedicated emmc partition for storing kernel FIT blobs, is there a smarter way of loading the blob into memory than reading the whole contents of the partition? ideally I'd rather load just the blob (given the total size is in the header already), but not he trailing content which may be garbage
haritz has joined #u-boot
haritz has joined #u-boot
haritz has quit [Changing host]
qschulz has quit [Remote host closed the connection]
qschulz has joined #u-boot
torez has joined #u-boot
qschulz has quit [Remote host closed the connection]
qschulz has joined #u-boot
<zPlus> thank you marex
d-s-e has joined #u-boot
hanetzer has quit [Ping timeout: 268 seconds]
hanetzer has joined #u-boot
stefanro has quit [Ping timeout: 264 seconds]
stefanro has joined #u-boot
stefanro has quit [Ping timeout: 260 seconds]
stefanro has joined #u-boot
torez has quit [Quit: torez]
<Forty-Bot> mborzecki: for signed FITs, no
<Forty-Bot> SPL loads the header and can determine the size for other types of FITs
torez has joined #u-boot
<Forty-Bot> not sure if it's in U-Boot proper
<Forty-Bot> but the easiest way is to stick a filesystem on it
prabhakarlad has quit [Quit: Client closed]
prabhakarlad has joined #u-boot
hanetzer has quit [Ping timeout: 255 seconds]
hanetzer has joined #u-boot
thopiekar has quit [Ping timeout: 255 seconds]
thopiekar has joined #u-boot
<mborzecki> Forty-Bot: thanks, that's bit unfortunatel, I'm actually trying to avoid using a filesystem there and would rather have 2 bare partitions for the kernels
<Forty-Bot> I always try to use a filesystem since it ends up being less development work than dealing with bare partitions
<mborzecki> hmm that's a fair point, I suppose this could even click with rauc, though IIRC it's recreating the filesystem during an update
zPlus has left #u-boot [parted]
goliath has quit [Quit: SIGSEGV]
Wouter010067044 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter010067044 has joined #u-boot
Net147 has quit [Ping timeout: 252 seconds]
Net147 has joined #u-boot
Net147 has joined #u-boot
Net147 has quit [Changing host]
stefanro has quit [Quit: Leaving.]
monstr has quit [Remote host closed the connection]
ikarso has quit [Quit: Connection closed for inactivity]
Net147 has quit [Ping timeout: 255 seconds]
sszy has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
vagrantc has joined #u-boot
Net147 has joined #u-boot
Net147 has joined #u-boot
Net147 has quit [Changing host]
mmu_man has joined #u-boot
thopiekar has quit [Ping timeout: 252 seconds]
thopiekar has joined #u-boot
goliath has joined #u-boot
mckoan is now known as mckoan|away
mmu_man has quit [Ping timeout: 246 seconds]
frieder has quit [Remote host closed the connection]
d-s-e has quit [Ping timeout: 255 seconds]
d-s-e has joined #u-boot
mmu_man has joined #u-boot
<d-s-e> Hi, how do I tell u-boot to run my boot.scr script?
mahk has quit [Remote host closed the connection]
<marex> d-s-e: use load command to load u-boot.scr into memory, and 'source' command on that memory address to run it
<marex> you can use $loadaddr which is the default load address
<d-s-e> marex: This is not working, I get "Wrong image format for "source" command"
<marex> oh, gee ... does the script have to be an uImage ?
advi[1] has joined #u-boot
prabhakarlad has quit [Quit: Client closed]
<d-s-e> uImage?
<marex> mkimage -A arm -O linux -T script -C none -d boot-input.cmd boot-output.scr
<marex> yeah, use mkimage to add ^ header to that boot.cmd
<marex> mkimage is e.g. in u-boot-tools in debian
<d-s-e> the script was created with mkimage
<marex> so it already contains the header ?
<marex> what does mkimage -l boot.scr say ?
<d-s-e> Image Name:
<d-s-e> Created: Mon Jan 10 18:46:34 2022
<d-s-e> Image Type: Intel x86 Linux Script (uncompressed)
<d-s-e> Data Size: 115 Bytes = 0.11 KiB = 0.00 MiB
<d-s-e> Load Address: 00000000
<d-s-e> Entry Point: 00000000
<d-s-e> Contents:
<d-s-e> Image 0: 107 Bytes = 0.10 KiB = 0.00 MiB
<marex> look here ^
<marex> d-s-e: are you on x86 ?
<marex> d-s-e: I mean, is the U-Boot target x86 ?
<d-s-e> yes, on qemux86-64
<d-s-e> the target ist x86
<marex> mkimage -A x86_64 if it is amd64
<marex> mkimage -A x86 if it is i386
<marex> I think
<marex> see mkimage -A help
apritzel has quit [Ping timeout: 255 seconds]
persmule has quit [Ping timeout: 255 seconds]
persmule has joined #u-boot
<d-s-e> marex: it's not working, same error
<marex> d-s-e: can you check that the script is actually loaded into memory before sourcing it ?
<marex> md $loadaddr ... assuming you use loadaddr variable
<marex> or even better, md.b $loadaddr $filesize
<d-s-e> yes, it's there.
<marex> d-s-e: can you share the output of the entire test ? use paste.debian.net or whatever pastebin you prefer ?
<marex> d-s-e: which version of U-Boot is that btw ?
<d-s-e> 2022.01
<marex> d-s-e: can you try master ?
advi[1] has quit [Quit: Client closed]
<d-s-e> marex: I can try, but that would take some time. I will have a look at it tomorrow.
<marex> how so, just clone the latest source and compile
<marex> should be quick
<marex> Tartarus: topic should read rc2 , not rc1 , btw
<d-s-e> this is all part of a yocto kirkstone setup with some patches.
<Tartarus> oh right, and I finally gave up on matrix, so I can fix this :)
<Tartarus> thanks
<marex> d-s-e: if your desktop machine is x86 already, you can compile on that
Tartarus changed the topic of #u-boot to: SOURCE MOVED TO https://source.denx.de/u-boot/u-boot.git / U-Boot v2023.01, v2023.04-rc2 / Merge Window is CLOSED, next branch is OPEN / Release v2023.04 is scheduled for 2023-04-03 / Channel archives at https://libera.irclog.whitequark.org/u-boot
<marex> d-s-e: if you tell me the exact test steps, I can try it locally real quick
<d-s-e> I wonder what's wrong here anyway, because I have seen other configs without a special setup where the boot script is executed automagically.
<vagrantc> every b
<vagrantc> oard ...
<marex> d-s-e: it could be something that was fixed since, and if that's the case, a patch should be backported and added to oe-core / kirkstone
<vagrantc> is annoyingly unique
<marex> d-s-e: https://source.denx.de/denx/meta-mainline-common/-/tree/kirkstone/recipes-bsp/u-boot if you need up-to-date u-boot/linux/mesa for oe dunfell/kirkstone ...
<vagrantc> though more standard than it used to be
<marex> vagrantc: I assume new u-boot boards can no longer be added to debian 12, right ? ;-)
<vagrantc> marex: yeah, but can get them into experiental ... likely uploading 2023.04-rc* there soon
<vagrantc> experimental
<marex> vagrantc: I still need to get some of them into mainline, currently duking it out with hardware debugging ;-)
<vagrantc> i could probably sneak it into testing if it is reasonable to include in one of the existing packages
<d-s-e> what I'm trying to achieve is booting a system on qemux86_64 with efi and u-boot.
<marex> xypron: ^
<vagrantc> marex: yeah, not in mainline a hard blocker for now :)
<marex> vagrantc: one board isn't mainline, the rest is (obviously)
<marex> the one isn't even out of prototype stage yet, hence not in mainline
<d-s-e> marex: I will try master tomorrow, it's been a long day for me. thanks for your help so far :-)
<marex> btw the fact that sourcing a script doesn't work == weird
<marex> very weird
<xypron> marex, d-s-e: arm, arm64, riscv64 are working. I never succeded in booting x86 with U-Boot.
<xypron> Just use EDK II for x86
apritzel_ has joined #u-boot
<d-s-e> xypron: Booting works here, the only part that's missing currently is loading/executing a script.
d-s-e has quit [Quit: Konversation terminated!]
<Tartarus> Which part of that flow are we not testing on CI already?
<Tartarus> We do EFI hello world on qemu-x86_64
zPlus has joined #u-boot
<zPlus> where can I find an "hello-world" source-code example for building a binary that can be loaded with "bootelf"?
<Tartarus> zPlus: examples/standalone/hello_world.c can be an ELF
<Tartarus> But yes, bootelf is infrequently tested and not part of CI (but should be), at least in part because most non-Linux cases have moved over to EFI binaries
<Tartarus> I forget if riscv does bootelf, even
<Tartarus> (I know I convinced the initial authors to not do standalone API stuff, as it's horribly clunky)
<zPlus> thank you Tartarus. BTW what is the difference between the boot options and "go"?
<Tartarus> go doesn't do any sort of sanity checking
<Tartarus> boot* expects something at the address it can check
<Tartarus> (elf header? legacy uImage header? FIT header? something)
prabhakarlad has joined #u-boot
apritzel_ has quit [Ping timeout: 255 seconds]
Wouter010067044 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter010067044 has joined #u-boot
<Tartarus> sjg1: The new trace test can fail due to the time check in it :(
<Tartarus> FAILED test/py/tests/test_trace.py::test_trace - assert (10260 / 86655) < 0.1
apritzel_ has joined #u-boot
goliath has quit [Quit: SIGSEGV]
torez has quit [Quit: torez]
clarity has quit [Ping timeout: 265 seconds]
clarity has joined #u-boot