<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) ?
<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]