_whitelogger has quit [Remote host closed the connection]
_whitelogger_ has joined #u-boot
mmu_man has quit [Ping timeout: 268 seconds]
ikarso has joined #u-boot
zsoltiv_ has quit [Ping timeout: 260 seconds]
rvalue has quit [Ping timeout: 252 seconds]
swiftgeek has quit [Ping timeout: 252 seconds]
ladis has joined #u-boot
gsz has joined #u-boot
rvalue has joined #u-boot
mps has joined #u-boot
swiftgeek has joined #u-boot
<Net147>
how would I split this over multiple lines setenv myfunc 'cmd1 && cmd2 && cmd3'? do I have to define everything on one really long line?
<Net147>
I basically want it to stop as soon as any of the commands fail
monstr has joined #u-boot
mckoan|away is now known as mckoan
ladis has quit [Quit: Leaving]
joeskb7 has quit [Quit: Lost terminal]
joeskb7 has joined #u-boot
joeskb7 has quit [Client Quit]
joeskb7 has joined #u-boot
joeskb7 has quit [Quit: Lost terminal]
joeskb7 has joined #u-boot
<mkorpershoek>
Net147: this works for me in text based environment that gets compiled with mkimage. You can adapt it to add your && I think https://www.irccloud.com/pastebin/FElKu4qV/
joeskb7 has quit [Quit: Lost terminal]
joeskb7 has joined #u-boot
persmule has quit [Remote host closed the connection]
ldevulder has joined #u-boot
<Net147>
mkorpershoek: thanks
<Net147>
mkorpershoek: doesn't work when I do this - setenv f 'cmp.l 0x04000000 0x04000000 0x20000 && \[NEWLINE]cmp.l 0x04000000 0x04000000 0x20000'. then - run f
<mkorpershoek>
from the U-Boot shell directly? from the U-Boot shell (=>), I am not aware on how to passe multi-line commands
<Net147>
it happens on both in U-Boot script and U-Boot shell
<Net147>
it runs both commands even when first command fails
<mkorpershoek>
I see
<Net147>
if I put it all one line it works fine
<mkorpershoek>
hmm, I don't know the parser well enough to understand the differences, sorry
<Net147>
setenv f 'echo 1 && \false && \echo 2'
<Net147>
run f
<Net147>
if I put a newline after each slash, then it prints both 1 and 2
x9125a has joined #u-boot
<Net147>
mkorpershoek: I guess I can work around it by prefix each line with: test $? -eq 0 &&
<x9125a>
hey, does anyone know how to make an env variable immutable and visible from user space using fw_printenv?
sszy has joined #u-boot
sng has quit [Quit: No Ping reply in 180 seconds.]
sng has joined #u-boot
ikarso has quit [Quit: Connection closed for inactivity]
ikarso has joined #u-boot
naoki has joined #u-boot
naoki has quit [Client Quit]
mmu_man has joined #u-boot
MrCryo has joined #u-boot
enok has joined #u-boot
dsimic has quit [Ping timeout: 260 seconds]
dsimic has joined #u-boot
enok has quit [Ping timeout: 240 seconds]
x9125a has quit [Ping timeout: 250 seconds]
monstr has quit [Quit: Leaving]
x9125a has joined #u-boot
x9125a has quit [Client Quit]
goliath has joined #u-boot
Stat_headcrabed has joined #u-boot
slobodan_ has joined #u-boot
Stat_headcrabed has quit [Quit: Stat_headcrabed]
ldevulder_ has joined #u-boot
ldevulder has quit [Ping timeout: 256 seconds]
ldevulder_ is now known as ldevulder
enok has joined #u-boot
warpme has joined #u-boot
enok has quit [Ping timeout: 240 seconds]
Stat_headcrabed has joined #u-boot
rvalue has quit [Read error: Connection reset by peer]
rvalue has joined #u-boot
persmule_ has joined #u-boot
persmule_ has quit [Remote host closed the connection]
persmule has joined #u-boot
mmu_man has quit [Ping timeout: 256 seconds]
slobodan_ has quit [Ping timeout: 252 seconds]
mmu_man has joined #u-boot
mmu_man has quit [Ping timeout: 268 seconds]
mmu_man has joined #u-boot
mmu_man has quit [Ping timeout: 272 seconds]
zsoltiv_ has joined #u-boot
mmu_man has joined #u-boot
Stat_headcrabed has quit [Quit: Stat_headcrabed]
mckoan is now known as mckoan|away
enok has joined #u-boot
enok has quit [Ping timeout: 240 seconds]
Stat_headcrabed has joined #u-boot
Stat_headcrabed has quit [Quit: Stat_headcrabed]
warpme has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]