Tartarus changed the topic of #u-boot to: SOURCE MOVED TO https://source.denx.de/u-boot/u-boot.git / U-Boot v2022.07 is OUT / Merge Window is OPEN, -next is CLOSED / Release v2022.10 is scheduled for 3 October 2022 / http://www.denx.de/wiki/U-Boot / Channel archives at https://libera.irclog.whitequark.org/u-boot
urja has quit [Read error: Connection reset by peer]
urja has joined #u-boot
thopiekar has quit [Ping timeout: 240 seconds]
haritz has joined #u-boot
haritz has joined #u-boot
thopiekar has joined #u-boot
umbramalison has quit [Quit: %So long and thanks for all the fish%]
umbramalison has joined #u-boot
tsraoien has quit [Ping timeout: 245 seconds]
persmule has quit [Remote host closed the connection]
persmule has joined #u-boot
tsraoien has joined #u-boot
mmu_man has quit [Ping timeout: 252 seconds]
tsraoien has quit [Ping timeout: 252 seconds]
persmule has quit [Ping timeout: 268 seconds]
persmule has joined #u-boot
mwalle has quit [Quit: WeeChat 3.0]
hanetzer has quit [Ping timeout: 240 seconds]
hanetzer has joined #u-boot
hanetzer has quit [Ping timeout: 245 seconds]
hanetzer has joined #u-boot
persmule has quit [Ping timeout: 268 seconds]
mckoan|away is now known as mckoan
redbrain_ has quit [Read error: Connection reset by peer]
redbrain has joined #u-boot
Xeroine has joined #u-boot
mwalle has joined #u-boot
prabhakarlad has joined #u-boot
akaWolf has quit [Ping timeout: 252 seconds]
akaWolf has joined #u-boot
persmule has joined #u-boot
sszy has joined #u-boot
xer__ has joined #u-boot
xer__ has quit [Read error: Connection reset by peer]
Xeroine has quit [Ping timeout: 252 seconds]
xer__ has joined #u-boot
Xeroine has joined #u-boot
mmu_man has joined #u-boot
xer__ has quit [Ping timeout: 245 seconds]
apritzel has joined #u-boot
MartijnBraam[m] has quit [Quit: You have been kicked for being idle]
matthias_bgg has joined #u-boot
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #u-boot
matthias_bgg has quit [Quit: Leaving]
matthias_bgg has joined #u-boot
sszy has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
sszy has joined #u-boot
monstr has joined #u-boot
prabhakarlad has quit [Quit: Client closed]
jagan has quit [Ping timeout: 272 seconds]
persmule has quit [Remote host closed the connection]
persmule has joined #u-boot
persmule has quit [Remote host closed the connection]
persmule has joined #u-boot
Xeroine has quit [Ping timeout: 268 seconds]
alan_o has quit [Quit: Leaving]
alan_o has joined #u-boot
prabhakarlad has joined #u-boot
jagan has joined #u-boot
lucascastro has quit [Quit: Leaving]
lucascastro has joined #u-boot
monstr has quit [Remote host closed the connection]
tsraoien has joined #u-boot
akaWolf has quit [Ping timeout: 245 seconds]
akaWolf has joined #u-boot
vagrantc has joined #u-boot
rvalue has quit [Remote host closed the connection]
rvalue has joined #u-boot
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #u-boot
lucascastro has quit [Ping timeout: 272 seconds]
dsmith-work has joined #u-boot
<dsmith-work> It has `if test "image.ub" = "image.uv"; then ...`
<dsmith-work> What?
<dsmith-work> It's that always going to be true?
<mps> dsmith-work: is it shell script
<dsmith-work> Yes. I don't see the test command at https://u-boot.readthedocs.io/en/latest/usage/index.html#shell-commands
<mps> '=' in posix shell is 'string equality check'
<dsmith-work> It's a uboot-script
<mps> iirc u-boot shell is posix
<mps> hush or ash
<dsmith-work> Bah! I typoed that.
<dsmith-work> if test "image.ub" = "image.ub"
<mps> not sure if u-boot have 'test'
<mps> 'if [ "image.ub" = "image.ub" ]; then ...' is correct posix test
mmu_man has quit [Ping timeout: 276 seconds]
<dsmith-work> Yes. I've been writing shell scripts since about 1984. I do know posix test and [
persmule has quit [Remote host closed the connection]
<mps> hmm, then I misunderstood (and still don't understand) what is your question
persmule has joined #u-boot
* mps have to build u-boot sandbox to have it ready for quick testing
<dsmith-work> Did you look at the first link I posted? There is a condidional comparing two values that are the *same*. How can that not always be true?
<mps> no, didn't looked link
<mps> sorry
<mps> sure, it is always true
<dsmith-work> And following that is
<dsmith-work> if test "image.ub" = "Image"
<dsmith-work> That will always be false.
<dsmith-work> ???
<hramrach> it may be generated code
<mps> yes
<dsmith-work> AHh, now that makes some sense.
prabhakarlad has quit [Quit: Client closed]
mmu_man has joined #u-boot
prabhakarlad has joined #u-boot
<marex> dsmith-work: talk to monstr (who just left) when it comes to xilinx things
Xeroine has joined #u-boot
<Tartarus> xypron: around? wondering if you had any feedback on RFCv1 of CONFIG vs CFG before I post RFCv2
<Tartarus> Or anyone else for that matter, that's around
lucascastro has joined #u-boot
<dsmith-work> Found it. Yeah, it's a template that is filled in at build time.
mmu_man has quit [Ping timeout: 240 seconds]
<dsmith-work> Thanks.
<dsmith-work> In the petalinux build there is some bitbake code that runs sed over a template file.
lucascastro has quit [Ping timeout: 272 seconds]
<dsmith-work> Has stuff like `if test "@@QSPI_KERNEL_IMAGE@@" = "@@FIT_IMAGE@@"; then`
<dsmith-work> So next question. Is "sf write" length limited to the erase size of the device?
<hramrach> sf write is limited to the size of the device
<hramrach> and sf erase happens in erase size units
<hramrach> and you need erase to write
torez has joined #u-boot
<dsmith-work> So if I have a 32MB device, I *should* be able to do a write larger than 64K (the erase size).
<hramrach> interactively I try to erase some random big zise, it complains that the device is not that big and gives actual size, and then I erase and write that
<hramrach> which is not great if you have environment in flash but I don't
<dsmith-work> Hmm. So I tried `sf write 0x800000 0 6977704` and that failed with "Offset exceedes device limit" *Worked* with `sf write 0x800000 0 0x6a78a8`
<dsmith-work> So it doesn't like decimal?
<dsmith-work> s/it/sf/
<dsmith-work> Yes!
mmu_man has joined #u-boot
lucascastro has joined #u-boot
lucascastro has quit [Read error: Connection reset by peer]
lucascastro has joined #u-boot
<marex> hramrach: what is 'erase size' unit ? :)
<marex> was that supposed to be erase block (which != page size, but it might) ?
sszy has quit [Quit: http://quassel-irc.org - Chat comfortably. Anywhere.]
<marex> dsmith-work: u-boot commands generally use hex all over the place
<marex> dsmith-work: look at 'sf update' , that does the erase part where applicable
<marex> i.e. tftp file.bin && sf update $loadaddr 0xsfoffset $filesize
<marex> tftp and other load commands automatically set $filesize variable, size of the loaded file ... $loadaddr is the default address to which they load data
apritzel has quit [Ping timeout: 252 seconds]
lucas_ has joined #u-boot
lucas_ has quit [Remote host closed the connection]
lucas_ has joined #u-boot
lucascastro has quit [Read error: Connection reset by peer]
lucas_ is now known as lucascastro
matthias_bgg has quit [Quit: Leaving]
lucascastro has quit [Read error: Connection reset by peer]
persmule has quit [Ping timeout: 268 seconds]
lucascastro has joined #u-boot
persmule has joined #u-boot
mckoan is now known as mckoan|away
lucascastro has quit [Read error: Connection reset by peer]
lucascastro has joined #u-boot
<dsmith-work> Yeah. "generally" use hex. Sometimes not. Sigh.
<dsmith-work> marex: Thanks
Gravis has quit [Ping timeout: 240 seconds]
lucascastro has quit [Ping timeout: 252 seconds]
<Tartarus> Most things are hex, a few things are not
<Tartarus> I don't think there's a case where if we pass 0xA it's not converted if needed, so that's safe
<Tartarus> but passing 10 is likely really 0x10 and not 16 decimal.
<Tartarus> (Which tends to be confusing on large partition table systems for example where part number is hex not decimal)
mmu_man has quit [Ping timeout: 252 seconds]
lucascastro has joined #u-boot
mmu_man has joined #u-boot
Gravis has joined #u-boot
lucascastro has quit [Read error: Connection reset by peer]
lucascastro has joined #u-boot
Gravis has quit [Ping timeout: 268 seconds]
lucascastro has quit [Ping timeout: 252 seconds]
lucascastro has joined #u-boot
Gravis has joined #u-boot
lucascastro has quit [Ping timeout: 260 seconds]
lucascastro has joined #u-boot
lucascastro has quit [Ping timeout: 260 seconds]
vfazio has quit [Ping timeout: 252 seconds]
BWhitten has joined #u-boot
mmu_man has quit [Ping timeout: 268 seconds]
lucascastro has joined #u-boot
lucascastro has quit [Ping timeout: 252 seconds]
rvalue has quit [Remote host closed the connection]
rvalue has joined #u-boot
sbach has quit [Read error: Connection reset by peer]
mmu_man has joined #u-boot
sbach has joined #u-boot
Gravis has quit [Ping timeout: 252 seconds]
Gravis has joined #u-boot
Xeroine has quit [Ping timeout: 245 seconds]
torez has quit [Quit: torez]
<marex> sjg1: you around ? I think I found another bug in binman data alignment
<marex> it seems align-side does not do what I think it should do
<marex> *align-size
<marex> sjg1: https://paste.debian.net/plainh/aea64be0 look , align-size is 16 and yet, data-size is still multiple of 8 and next section is aligned to 8 bytes too
akaWolf has quit [Ping timeout: 268 seconds]
Gravis has quit [Ping timeout: 245 seconds]
akaWolf has joined #u-boot
GNUtoo has quit [Remote host closed the connection]
GNUtoo has joined #u-boot
jeeebz has joined #u-boot
jybz has quit [Read error: Connection reset by peer]
vagrantc has quit [Quit: leaving]
GNUtoo has quit [Remote host closed the connection]
GNUtoo has joined #u-boot