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-rc3 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
mmu_man has joined #u-boot
<marex> Tartarus: the log files contain nothing useful, they are just random churn
<marex> Tartarus: there is nothing which would indicate why binman ignored mkimage, or why section makes binman no longer generate symbols
persmule has quit [Remote host closed the connection]
<marex> I feel like I am just wasting time with this tool, like I am going in circles, making literally zero progress
apritzel_ has quit [Ping timeout: 252 seconds]
rvalue has quit [Ping timeout: 240 seconds]
rvalue has joined #u-boot
<marex> also, why does binman first run mkimage (if it ever runs it) on a content of a section in its node , and only then patches in BSYM into the input files for mkimage ?
<marex> mkimage obviously already ran, so, all those data are lost, resulting in useless image
pgreco_ is now known as pgreco
cJ has quit [Server closed connection]
cJ has joined #u-boot
teejay has joined #u-boot
<marex> hmmm, section in a section results in binman skipping the filename of inner section and picks just some random filename further down the tree ?
xandey has quit [Quit: Leaving]
mmu_man has quit [Ping timeout: 250 seconds]
goliath has quit [Quit: SIGSEGV]
<marex> ok, no progress at all, I give up
Nokurn has joined #u-boot
jclsn has quit [Ping timeout: 240 seconds]
jclsn has joined #u-boot
jaganteki has joined #u-boot
wooosaiiii has quit [Quit: wooosaiiii]
wooosaiiii has joined #u-boot
persmule has joined #u-boot
zkrx has quit [Server closed connection]
zkrx has joined #u-boot
Wouter0100670440 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter0100670440 has joined #u-boot
jaganteki has quit [Ping timeout: 246 seconds]
stefanro has joined #u-boot
stipa has quit [Quit: WeeChat 3.0]
monstr has joined #u-boot
macromorgan has quit [Read error: Connection reset by peer]
macromorgan has joined #u-boot
sng has joined #u-boot
Wouter0100670440 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter0100670440 has joined #u-boot
frieder has joined #u-boot
mckoan|away is now known as mckoan
Nokurn has quit [Ping timeout: 250 seconds]
<jclsn> cambrian_invader: Maybe I should just use gpio_request_by_line_name then :)
<jclsn> It is more convenient for my use case
ldevulder has joined #u-boot
sszy has joined #u-boot
jaganteki has joined #u-boot
jaganteki has quit [Quit: Client closed]
kwizart has quit [Server closed connection]
kwizart has joined #u-boot
jaganteki has joined #u-boot
sng has quit [Remote host closed the connection]
<jclsn> There is only request_by_phandle in my case. Maybe my version is too old
ikarso has joined #u-boot
sng has joined #u-boot
sng has quit [Ping timeout: 245 seconds]
<sjg1> Tartarus: For binman, the output directory is explicitly specified, so intermediate files are preserved. There are no actual log files, but you can use BINMAN_VERBOSE=5 to turn on max logging
sng has joined #u-boot
<sjg1> marex: 'binman test -X testMkimage' will let you see how it works with mkimage. That example is very simple and just usese a single test file - 156_mkimage.dts. It doesn't have the mkimage in a section, so it resembles what you want
<sjg1> marex: If you push a tree somewhere with what you have done and what you are expecting, I could tell you why it is doing what it is doing, but I don't have any information to go on. I am working UK time today/tomorrow
sng has quit [Read error: Connection reset by peer]
sng_ has joined #u-boot
prabhakarlad has joined #u-boot
<marex> ah yes, the usual "run hello world" answer
<marex> sjg1: here is a branch, it should generate the same flash.bin with / without the patches, but it randomly fails depending on the node ordering https://source.denx.de/u-boot/custodians/u-boot-usb/-/tree/binman
<sjg1> What is the patch 'binman: Convert mkimage to Entry_section' ? That probably changes the behaviour of the mkimage entry type
<sjg1> marex: In fact, 'binman test testMkimage' fails with your patches!
<marex> sjg1: without that spl is not expanded or whatever
<marex> sjg1: you can revert it and see that there are other failures
<sjg1> marex: OK, but you have broken the mkimage etype, which is probably why it isn't working properly
<marex> sjg1: again, this is mandatory to get any useful result at all, otherwise binman would either ignore the SPL binary altogether, or won't expand it, or fail in different weird ways
<marex> sjg1: you can try and revert it to see the other failures
<marex> sjg1: this mkimage etype section entry whatever it is was the only meaningful progress I made in the last few days on this (without being able to get any help as usual)
<sjg1> marex: OK, then create a test with the case you want to support - e.g. testMkimageSpl and I can take a look getting it to pass
<sjg1> marex: You would find it much easier to start with a test that does what you need...how do I run this (after reverting that patch) and see the failures?
<marex> you have to be kidding me ... so ... nothing works, I cannot get anything meaningful out of it or even wrap my head around the tool and the answer is ... take the next step, write a test ?
<marex> make verdin-imx8mp_defconfig ; make flash.bin
<marex> for example ... compare the flash.bin before and after and see how it differs
<sjg1> marex: That is how you can learn how the tool works, which will help you. That is how I enhance it...I figure out what I want and then add a test for it, then get it to pass without breaking anything else
ldevulder has quit [Quit: Leaving]
<sjg1> marex: Will take a look in a bit
<marex> sjg1: that is great, but did it ever occur to you that I already burns tens of hours on this tool and made no progress at all, so either, I am complete moron, or the tool is at fault ?
ldevulder has joined #u-boot
<marex> *burnt
<marex> sjg1: same would apply to NXP who also tried and ... no result
prabhakarlad has quit [Quit: Client closed]
sng has joined #u-boot
sng_ has quit [Read error: Connection reset by peer]
Jacmet has quit [Server closed connection]
Jacmet has joined #u-boot
ldevulder has quit [Quit: Leaving]
sng has quit [Remote host closed the connection]
ldevulder has joined #u-boot
sng has joined #u-boot
<sjg1> marex: I think you would do better if you take some notice of my suggestions.
<sjg1> For me I get this with the first command: binman: Filename 'lpddr4_pmu_train_1d_imem_202006.bin' not found in input path (.,/home/sjg/c/src/third_party/u-boot/files,/home/sjg/c/src/third_party/u-boot/files/board/toradex/verdin-imx8mp,arch/arm/dts) (cwd='/tmp/b/verdin-imx8mp')
<sjg1> marex: so I don't know if it is working or not. The second command is odd, because flash.bin should be an output if binman is enabled. i.e. it doesn't seem to be needed?
<sjg1> marex: Perhaps we can meet up next week and look at it?
<sjg1> marex: I see what you mean about mkimage...easiest for now is to add a section inside, as you have done. I will look at what is needed to convert mkimage to a section
<marex> $ stat -tc %n:%s lpddr4_pmu_train_*
<marex> lpddr4_pmu_train_1d_dmem_202006.bin:1660
<marex> lpddr4_pmu_train_1d_imem_202006.bin:32364
<marex> lpddr4_pmu_train_2d_dmem_202006.bin:1404
<marex> lpddr4_pmu_train_2d_imem_202006.bin:25456
<marex> that's the blobs and their filesize, easiest is to just dd so many bytes from urandom into those files
<marex> sjg1: flash.bin is the ONLY output that is required
mmu_man has joined #u-boot
<sjg1> marex: OK so now it builds...now what? There is no FDT map in the image so I can't really look at it
<marex> export SOURCE_DATE_EPOCH=0 ; echo foo > .scmversion
<marex> then build before and after
<marex> the flash.bin should then be identical before/after, right ?
<marex> it is not
prabhakarlad has joined #u-boot
<sjg1> marex: What is the difference?
<marex> sjg1: depends on the layout of binman node, see my ranting above for details of the different issues I ran into
<marex> just hexdump both flash.bin and run a diff on that ?
<sjg1> Why not add an fdtmap?
<sjg1> You added a section into the mkimage in the .dts - did that fix your 'expanded' problem?
<marex> nope
<marex> sjg1: every time I feel like I fixed one problem, another thing breaks
<sjg1> marex: OK I will take a look at getting mkimage converted to a section. At least that is something actionable
stipa has joined #u-boot
soxrok2212 has quit [Read error: Connection reset by peer]
mmu_man has quit [Ping timeout: 250 seconds]
soxrok2212 has joined #u-boot
mmu_man has joined #u-boot
mmu_man has quit [Ping timeout: 250 seconds]
sng has quit [Remote host closed the connection]
sng has joined #u-boot
goliath has joined #u-boot
sng has quit [Remote host closed the connection]
prabhakarlad has quit [Quit: Client closed]
ikarso has quit [Quit: Connection closed for inactivity]
haritz has quit [Quit: ZNC 1.8.2+deb2 - https://znc.in]
haritz has joined #u-boot
haritz has quit [Changing host]
haritz has joined #u-boot
jaganteki has quit [Quit: Client closed]
mmu_man has joined #u-boot
prabhakarlad has joined #u-boot
prabhakarlad has quit [Quit: Client closed]
BWhitten has joined #u-boot
gsz has joined #u-boot
mmu_man has quit [Ping timeout: 246 seconds]
jaganteki has joined #u-boot
BenW_ has joined #u-boot
BenW_ has quit [Read error: Connection reset by peer]
BWhitten has quit [Ping timeout: 245 seconds]
BWhitten has joined #u-boot
BWhitten has quit [Ping timeout: 246 seconds]
mmu_man has joined #u-boot
BWhitten has joined #u-boot
jaganteki has quit [Quit: Client closed]
Kwiboo has quit [Quit: .]
Kwiboo has joined #u-boot
BenW_ has joined #u-boot
mncheck has quit [Read error: Connection reset by peer]
BWhitten has quit [Ping timeout: 245 seconds]
BenW_ has quit [Read error: Connection reset by peer]
BWhitten has joined #u-boot
BWhitten has quit [Read error: Connection reset by peer]
BWhitten has joined #u-boot
BWhitten has quit [Read error: Connection reset by peer]
BWhitten has joined #u-boot
mncheck has joined #u-boot
BenW_ has joined #u-boot
BWhitten has quit [Ping timeout: 245 seconds]
BenW_ has quit [Ping timeout: 250 seconds]
BWhitten has joined #u-boot
BWhitten has quit [Ping timeout: 246 seconds]
mmu_man has quit [Ping timeout: 245 seconds]
BWhitten has joined #u-boot
mmu_man has joined #u-boot
BenW_ has joined #u-boot
BWhitten has quit [Ping timeout: 245 seconds]
BenW_ has quit [Read error: Connection reset by peer]
BenW_ has joined #u-boot
BenW_ has quit [Read error: Connection reset by peer]
BWhitten has joined #u-boot
goliath has quit [Quit: SIGSEGV]
goliath has joined #u-boot
BWhitten has quit [Read error: Connection reset by peer]
BenW_ has joined #u-boot
BenW__ has joined #u-boot
BenW_ has quit [Read error: Connection reset by peer]
goliath has quit [Quit: SIGSEGV]
BenW_ has joined #u-boot
BenW__ has quit [Ping timeout: 245 seconds]
ldevulder has quit [Quit: Leaving]
BWhitten has joined #u-boot
BenW_ has quit [Read error: Connection reset by peer]
BWhitten has quit [Client Quit]
monstr has quit [Remote host closed the connection]
sylensky[m] has quit [Remote host closed the connection]
prabhakarlad has joined #u-boot
vagrantc has joined #u-boot
mckoan is now known as mckoan|away
frieder has quit [Remote host closed the connection]
sszy has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
sng has joined #u-boot
sng has quit [Remote host closed the connection]
stefanro has quit [Quit: Leaving.]
sng has joined #u-boot
Wouter0100670440 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter0100670440 has joined #u-boot
jaganteki has joined #u-boot
WoC has quit [Remote host closed the connection]
<marex> sjg1: I think the mkimage patch you were complaining about, that converts mkimage to entry section
Wouter0100670440 has quit [Quit: The Lounge - https://thelounge.chat]
Wouter0100670440 has joined #u-boot
goliath has joined #u-boot
jaganteki has quit [Quit: Client closed]
gsz has quit [Ping timeout: 246 seconds]
___nick___ has joined #u-boot
___nick___ has quit [Client Quit]
___nick___ has joined #u-boot
prabhakarlad has quit [Quit: Client closed]
___nick___ has quit [Ping timeout: 246 seconds]
apritzel_ has joined #u-boot
<sjg1> marex: Yes, I will see if I can massage it into passing the tests
sng has quit [Read error: Connection reset by peer]
mncheck-m has joined #u-boot
soxrok2212 has quit [Read error: Connection reset by peer]
soxrok2212 has joined #u-boot
mncheck has quit [Ping timeout: 245 seconds]
prabhakarlad has joined #u-boot
mmu_man has quit [Ping timeout: 246 seconds]
vagrantc has quit [Quit: leaving]