Tartarus changed the topic of #u-boot to: SOURCE MOVED TO https://source.denx.de/u-boot/u-boot.git / U-Boot v2022.04, v2022.07-rc5 are OUT / Merge Window is CLOSED, -next is OPEN / Release v2022.07 is scheduled for 4 July 2022 / http://www.denx.de/wiki/U-Boot / Channel archives at https://libera.irclog.whitequark.org/u-boot
apritzel_ has quit [*.net *.split]
Epakai has quit [*.net *.split]
Net147 has quit [*.net *.split]
flyback has quit [*.net *.split]
alpernebbi has quit [*.net *.split]
guillaume_g has quit [*.net *.split]
indy has quit [*.net *.split]
sakman has quit [*.net *.split]
apritzel_ has joined #u-boot
guillaume_g has joined #u-boot
sakman has joined #u-boot
Net147 has joined #u-boot
Epakai has joined #u-boot
Net147 has joined #u-boot
Net147 has quit [Changing host]
indy has joined #u-boot
alpernebbi has joined #u-boot
flyback has joined #u-boot
umbramalison has quit [Quit: %So long and thanks for all the fish%]
umbramalison has joined #u-boot
mmu_man has quit [Ping timeout: 272 seconds]
apritzel_ has quit [Ping timeout: 246 seconds]
thopiekar has quit [Ping timeout: 260 seconds]
thopiekar has joined #u-boot
Wouter01001 has quit [Remote host closed the connection]
Wouter01001 has joined #u-boot
vfazio__ has quit [Remote host closed the connection]
LeSpocky has quit [Ping timeout: 246 seconds]
LeSpocky has joined #u-boot
tsraoien has quit [Ping timeout: 255 seconds]
apalos has quit [Quit: ZNC 1.7.2 - https://znc.in]
apalos has joined #u-boot
mps has quit [Ping timeout: 272 seconds]
mps has joined #u-boot
gsz has joined #u-boot
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #u-boot
apalos has quit [Quit: ZNC 1.7.2 - https://znc.in]
apalos has joined #u-boot
apritzel_ has joined #u-boot
apritzel_ has quit [Ping timeout: 256 seconds]
gsz has quit [Quit: leaving]
akaWolf has quit [Ping timeout: 246 seconds]
akaWolf has joined #u-boot
umbramalison has quit [Quit: %So long and thanks for all the fish%]
h_ro[m] has quit [Quit: You have been kicked for being idle]
hramrach has joined #u-boot
<hramrach> hello,
<hramrach> how do you chainload u-boot?
<hramrach> it's the standard way of booting Snow so it's certainly possible but is it documented sonewhere how to do it ???
umbramalison has joined #u-boot
akaWolf has quit [Ping timeout: 272 seconds]
apritzel_ has joined #u-boot
akaWolf has joined #u-boot
apritzel_ has quit [Ping timeout: 246 seconds]
mmu_man has joined #u-boot
mmu_man has quit [Quit: reboot]
mmu_man has joined #u-boot
gsz has joined #u-boot
apritzel_ has joined #u-boot
<xypron> Tartarus: https://lists.denx.de/pipermail/u-boot/2022-July/487870.html looks release critical to me.
<Tartarus> xypron: ugh, ok. How about the security fix from siemens?
<xypron> Tartarus: I did not receive any v2 from Takahiro.
<xypron> I am currently running Gitlab CI with aforementioned patch and a patch related to reading block devices via the EFI_BLOCK_IO_PROTOCOL and will send you a pull request for both if CI is happy.
<xypron> Tartarus: '[PATCH] efi_loader: Allow overlapped extra data for PE hashing' is nothing that Ilias and I would like to merge in the current state.
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #u-boot
<Tartarus> OK
roman has joined #u-boot
roman is now known as dossalab
<xypron> Tartarus: shouldn't CONFIG_SYS_64BIT_LBA be the default (at least for 64bit systems)? If we can't get rid of the flag it should live in Kconfig.
<Tartarus> xypron: It's a bit confusing at times, see the migration patch, sec
<Tartarus> xypron: aca1f6789aa2e384a58909fa7a9696db9d607675 in next
<xypron> :+1:
<Tartarus> I don't think default y if ARM64 helps tho
<Tartarus> it's not really about CPU bitsize
<xypron> CONFIG_SYS_64BIT_LBA makes lba_int u64 otherwise it is unsigned long which is also 64bit on 64bit systems. So this flag seems have significance only on 32bit systems.
GNUtoo has quit [Remote host closed the connection]
GNUtoo has joined #u-boot
<dossalab> Hi! I have a question - what's the strategy for porting u-boot to a memory-restricted SoC? I have about 32K of SRAM in icache and dcache and u-boot doesn't fit there. I think ARM uses SPL, but I never saw it on my arch (SuperH). I'm not really sure why u-boot even tries to relocate itself to RAM that early, why not just run from flash?
<urja> i think that might be too little to run u-boot properly (even with the code in XIP flash)... and what would you load? where? :P
<urja> it should be enough for an SPL yep, there are even more restricted SPLs afaik (and that's what you should do if you need to do SDRAM init or such)
camus has joined #u-boot
<urja> but yeah a lot of the boot methods u-boot uses (from MMC or SD card or NAND, on a filesystem, many SPI controllers, etc) do not allow code execution..
<xypron> dossalab: you can only run from NOR flash not from NAND flash. Most devices use NAND flash. Just put your ddrinit into the cache and the code to load SPL or main U-Boot into RAM.
davlefou has joined #u-boot
<dossalab> yeah, the device is booting from NOR. I don't have documentation for that but it seems like it's mapping the NOR into some memory address and just executing from there. There is some DRAM of course, but it has to be bringed up and it's quite convoluted (starting the PLL, switching clocks, issuing some commands) so I would rather much do it in C environment.
<Forty-Bot> hramrach: in what context
GNUtoo has quit [Remote host closed the connection]
GNUtoo has joined #u-boot
GNUtoo has quit [Remote host closed the connection]
GNUtoo has joined #u-boot
GNUtoo has quit [Remote host closed the connection]
GNUtoo has joined #u-boot
<hramrach> Forty-Bot: I have u-boot that is slightly deficient and cannot read the system from the medium where it is, and I want to load a new, possibly fixed build
<Forty-Bot> what can you load from?
<hramrach> usb(works)/mmc(does not currently)
<hramrach> I suppose I could load from serial if I really wanted, too
<hramrach> it's a pretty general thing, I don't understand why it's so difficult
<hramrach> the code for loading u-boot must exist in the SPL
akaWolf has quit [Ping timeout: 240 seconds]
mmu_man has quit [Ping timeout: 272 seconds]
akaWolf has joined #u-boot
jimpo has quit [Quit: ZNC 1.8.2 - https://znc.in]
<Forty-Bot> hramrach: edit your fit and change the type of U-Boot's image to kernel
GNUtoo has quit [Remote host closed the connection]
<hramrach> Forty-Bot: is that something that would work in general and can be changed in the build system or does it have to be different for normal boot and chainload?
<Forty-Bot> would need to be different
<Forty-Bot> but as I understand it you just need to do this once?
<hramrach> it sounds like it would be useful in general to be able to load the u-boot as kernel
GNUtoo has joined #u-boot
<hramrach> Forty-Bot: https://paste.debian.net/1245988/ changing the image type did not really help but changing the config to list 'uboot' as the kernel did but now it complains that there is no entry point defined
<Forty-Bot> the entry point should be the same as the load address
<hramrach> maybe it's better to extract the u-boot image and then jump to it, or use a binary image without the FIT wrapper?
<Forty-Bot> you can do that too
<hramrach> also for some reason in this build the ATF image is in the config but is not included :s
<Forty-Bot> actually, the easiest thing to do here is get your u-boot.bin
<Forty-Bot> load it to some address
<Forty-Bot> and then use the go command
<hramrach> that locked up
<hramrach> but I cannot boot Linux either so maybe this build is more than slightly broken
<Forty-Bot> err, the address has to be U-Boot's load address (I forget the symbol name, but you can find it in the elf)
<Forty-Bot> and if you want to debug things further, try enabling the debug uart
<hramrach> this? CONFIG_SYS_LOAD_ADDR=0x800800
<Forty-Bot> yes
<Forty-Bot> I think?
<hramrach> hm, does not work either
<Forty-Bot> look for _start in your u-boot elf
<hramrach> this ? 0000000000200000 T _start
akaWolf has quit [Ping timeout: 276 seconds]
<hramrach> yes, this worked, thanks
<hramrach> nonetheless, the build is broken anyway
<hramrach> but I at least get the command that switches to the USB download mode with this build so
<hramrach> I can rewrite the mmc with that
akaWolf has joined #u-boot
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #u-boot
lucascastro has joined #u-boot
sbach has quit [Read error: Connection reset by peer]
sbach has joined #u-boot
vagrantc has joined #u-boot
gsz has quit [Quit: leaving]
lucascastro has quit [Ping timeout: 255 seconds]
tsraoien has joined #u-boot
swiftgeek has quit [Ping timeout: 268 seconds]
dossalab has quit [Quit: dossalab]
swiftgeek has joined #u-boot
akaWolf has quit [Ping timeout: 260 seconds]
akaWolf has joined #u-boot
mmu_man has joined #u-boot
swiftgeek has quit [Ping timeout: 272 seconds]
swiftgeek has joined #u-boot
davlefou has quit [Quit: Au Revoir]
cambrian_invader has quit [Ping timeout: 264 seconds]