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-rc6 are OUT / Merge Window is CLOSED, next branch is OPEN / Release v2023.07 is scheduled for 10 July 2023 / Channel archives at https://libera.irclog.whitequark.org/u-boot
apritzel has quit [Ping timeout: 246 seconds]
goliath has quit [Quit: SIGSEGV]
splud has quit [Ping timeout: 245 seconds]
sakman has quit [Read error: Connection reset by peer]
pbsds has joined #u-boot
jclsn has quit [Ping timeout: 246 seconds]
jclsn has joined #u-boot
Wouter0100670440 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter0100670440 has joined #u-boot
sng has joined #u-boot
sng has quit [Remote host closed the connection]
sng has joined #u-boot
apteryx has quit [Ping timeout: 245 seconds]
apritzel has joined #u-boot
apteryx has joined #u-boot
Wouter0100670440 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter0100670440 has joined #u-boot
apritzel has quit [Ping timeout: 264 seconds]
mmu_man has joined #u-boot
mckoan|away has quit [Ping timeout: 245 seconds]
mckoan|away has joined #u-boot
sng has quit [Read error: Connection reset by peer]
redbrain has quit [Read error: Connection reset by peer]
redbrain has joined #u-boot
goliath has joined #u-boot
sng has joined #u-boot
mmu_man has quit [Ping timeout: 245 seconds]
mmu_man has joined #u-boot
aak-rookie has joined #u-boot
apritzel has joined #u-boot
vigneshr has joined #u-boot
aak-rookie has quit [Quit: Client closed]
Wouter0100670440 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter0100670440 has joined #u-boot
apritzel has quit [Ping timeout: 250 seconds]
mmu_man has quit [Ping timeout: 240 seconds]
sng has quit [Ping timeout: 240 seconds]
persmule has joined #u-boot
sng has joined #u-boot
vigneshr has quit [Quit: Connection closed for inactivity]
mmu_man has joined #u-boot
sng has quit [Read error: Connection reset by peer]
sng has joined #u-boot
apritzel has joined #u-boot
sng has quit [Ping timeout: 250 seconds]
redbrain has quit [Ping timeout: 240 seconds]
sng has joined #u-boot
goliath has quit [Quit: SIGSEGV]
sng has quit [Ping timeout: 245 seconds]
<marex> sjg1: so dm/mkim-working obviously generates valid flash.bin , because it is missing the patch which orders flash.bin generation
<marex> sjg1: with that in place, BSYM symbols are not generated and system fails to boot
sng has joined #u-boot
sng has quit [Ping timeout: 240 seconds]
mmu_man has quit [Ping timeout: 246 seconds]
<sjg1> marex: Can you push the whole thing somewhere along with instructions on what you want and what is missing?
<marex> sjg1: didn't I do that before already ?
<marex> I can push the current state, yeah
<marex> sjg1: this is how you generate the (faux) DRAM blobs:
<marex> dd if=/dev/zero of=lpddr4_pmu_train_2d_imem_202006.bin bs=25456 count=1 ; dd if=/dev/zero of=lpddr4_pmu_train_2d_dmem_202006.bin bs=1404 count=1 ; dd if=/dev/zero of=lpddr4_pmu_train_1d_imem_202006.bin bs=32364 count=1 ; dd if=/dev/zero of=lpddr4_pmu_train_1d_dmem_202006.bin bs=1660 count=1
<marex> and then build -- export SOURCE_DATE_EPOCH=0 ; export ATF_LOAD_ADDR=0x970000 ; echo foo > .scmversion ; make -j imx8mp_dhcom_pdk3_defconfig && make -j flash.bin
<marex> if you revert the topmost commit, then the flash.bin is valid ; with the topmost commit, flash.bin is not valid (misses the BSYM at least)
<marex> I would like both with/without topmost commit to generate the same flash.bin
<marex> oh, bl31.bin can be generated using dd if=/dev/zero of=bl31.bin bs=39184 count=1
<marex> that should be all
apritzel has quit [Ping timeout: 246 seconds]
mmu_man has joined #u-boot
<marex> sjg1: are you able to reproduce the missing BSYM ?
sng has joined #u-boot
<sjg1> I can't even get it to build: I get 'binman: pylibfdt error -2: FDT_ERR_EXISTS'
<marex> sjg1: revert binman: Add gen_entries to mkimage etype
goliath has joined #u-boot
<sjg1> OK it builds now. It is annoying that U-Boot doesn't notice DT changes on an incremental build
sng has quit [Ping timeout: 245 seconds]
<sjg1> marex: What is BSYM. I can see it is missing but am not sure which entry it is
<marex> tools/binman/elf.py:# BSYM in little endian, keep in sync with include/binman_sym.h
<marex> placement of blobs within the generated image , patched into spl
<marex> so spl can reference those blobs and load them
<sjg1> Oh I see, so it isn't updating the symbols in SPL
<marex> it isnt even generating them
<sjg1> marex: OK I can see that it is writing them to u-boot-spl-nodtb but they are not getting through
<marex> maybe binman picks stale u-boot-spl ?
<marex> or picks it up too soon ?
sng has joined #u-boot
<sjg1> marex: Yes, it starts with the original binary, then updates it later when it knows where it has landed in the image
<sjg1> marex: That is ProcessContents()
sng has quit [Remote host closed the connection]
<marex> ha
sng has joined #u-boot
jaganteki has joined #u-boot
<marex> sjg1: now why would that not be called ? I was under the impression it should be called just fine
sng has quit [Ping timeout: 245 seconds]
<sjg1> marex: I don't see a PrfocesContents() method in Entry_nxp_imx8mimage_cfg so it will use the default one
mmu_man has quit [Ping timeout: 246 seconds]
<marex> sjg1: shouldnt that call the super ?
<sjg1> marex: Yes it does, but I don't really understand what is going on. The use of cfg file is quite confusing
<sjg1> marex: It does run mkimage again at the end, but it doesn't seem to use the contents of the section{} inside nxp-imx8mimage-cfg{} ?
<sjg1> marex: I'm just not quite sure what is going on
<sjg1> marex: Hmm I suppose the collect_contents_to_file() does that
<sjg1> marex: But wthout ProcessContents() it will use the section one...
<marex> sjg1: all I need is to generate the nxp.imx8mimage.cfg for mkimage to generate the -T imx8mimage
<marex> sjg1: it just needs a config file with a few lines
<marex> maybe the inner section is not even needed, since nxp-imx8mimage-cfg is a section too
goliath has quit [Ping timeout: 260 seconds]
<sjg1> marex: mkimage.section.mkimage does not contain the BYSM data
<sjg1> marex: neither does input.section.mkimage.nxp-imx8mimage-cfg
<sjg1> marex: I have to go now. I pushed my debug tree to https://github.com/sjg20/u-boot/tree/for-marek
<sjg1> marex: building with BINMAN_VERBOSE=4
<marex> sjg1: thanks
<sjg1> marex: binman map looks wrong BTW
<sjg1> u-boot-spl 0 23401 u-boot-spl 0
<sjg1> It should be expanded, right?
<marex> sjg1: I guess I wouldnt be able to make any progress on that anyway, so I'll wait until you're back
<marex> yes, it should
<marex> 77 * FIXME: This is either not expanded,
<marex> 78 * or symbols are not updated here.
<marex> 79 * It is not clear why.
<marex> there is a comment in imx8mp-u-boot.dtsi btw
<sjg1> marex: Yes, just saw that...I think this is the problem, or at least one of them
<marex> 61 /* FIXME: Why is the -n needed is unclear ... */
<marex> that is another one
<marex> and yes, there are multiple
<sjg1> marex: OK well I will take another look later. I think the key question is why expanded is not working
<sjg1> I see 'Node '/binman/section/mkimage/nxp-imx8mimage-cfg/section/u-boot-spl': etype 'u-boot-spl': u-boot-spl-expanded selected'
<sjg1> but then it doesn't do it?
goliath has joined #u-boot
<marex> sjg1: yes ?
<sjg1> marex: Or perhaps it actually does, it's just that the fdtmap doesn't show it
<marex> sjg1: I think it does not, but then, I was getting lost around that part
<sjg1> marex: anyway, if you can get the input file to mkimage contain BSYM then it should work
<sjg1> I'll hopefully be back later on today, but probably much later. Otherwise tomorrow
<marex> sjg1: I think I will still be around
<marex> probably for some 8ish hours or so, due to heatwave here, it is still going on, sigh
sng has joined #u-boot
sng has quit [Read error: Connection reset by peer]
stefanct has quit [Ping timeout: 258 seconds]
goliath has quit [Quit: SIGSEGV]
stefanct has joined #u-boot
mmu_man has joined #u-boot
sng has joined #u-boot
mps has quit [Quit: Lost terminal]
mps has joined #u-boot
apritzel has joined #u-boot
apritzel has quit [Ping timeout: 264 seconds]
goliath has joined #u-boot
aat596_3 has quit [Quit: ZNC 1.8.2 - https://znc.in]
aat596_3 has joined #u-boot
sng_ has joined #u-boot
sng has quit [Read error: Connection reset by peer]
vagrantc has joined #u-boot
sng_ has quit [Remote host closed the connection]
sng has joined #u-boot
sng has quit [Remote host closed the connection]
redbrain has joined #u-boot
Wouter0100670440 has quit [Quit: The Lounge - https://thelounge.chat]