slobodan has quit [Read error: Connection reset by peer]
slobodan has joined #u-boot
tchebb_ has joined #u-boot
Clamor has quit [Read error: Connection reset by peer]
Clamor has joined #u-boot
tchebb has quit [Ping timeout: 260 seconds]
Raito_Bezarius has joined #u-boot
<Raito_Bezarius>
Can I tftp load a U-Boot script and transfer control to it?
<Raito_Bezarius>
I have a reduced bootloader CLI on a device and I can perform just command injection inside of a command called atns to set the server IP (e.g. 'atns "$ip; other commands; ...")
<Raito_Bezarius>
I just inlined it
persmule has quit [Remote host closed the connection]
Mis012 has quit [Remote host closed the connection]
Mis012 has joined #u-boot
persmule has joined #u-boot
monstr has quit [Remote host closed the connection]
tchebb_ has quit [Ping timeout: 256 seconds]
tchebb has joined #u-boot
Stat_headcrabed has quit [Quit: Stat_headcrabed]
<marex>
Raito_Bezarius: source $loadaddr
<Raito_Bezarius>
thx marex
Clamor has quit [Ping timeout: 255 seconds]
<Raito_Bezarius>
marex: Wrong image format for "source" command I'm getting this error when I try
<marex>
Raito_Bezarius: wrap the image into uImage
<marex>
mkimage ...
Clamor has joined #u-boot
<Raito_Bezarius>
but I don't want to load an image marex?
<Raito_Bezarius>
I want to run a .scr
<Raito_Bezarius>
do I need to wrap the .scr inside a uImage?
<Forty-Bot>
yes
___nick___ has joined #u-boot
<Raito_Bezarius>
gotcha
___nick___ has quit [Client Quit]
___nick___ has joined #u-boot
tchebb_ has joined #u-boot
Clamor has quit [Ping timeout: 255 seconds]
Clamor has joined #u-boot
tchebb has quit [Ping timeout: 256 seconds]
slobodan has quit [Quit: Leaving]
<marex>
Raito_Bezarius: as Forty-Bot wrote, yes, because bitrot protection
<Forty-Bot>
and to know how long the script is
<marex>
Raito_Bezarius: that header includes a checksum and file metadata
<Forty-Bot>
as well as preventing silly mistakes like trying to execute your kernel as a script :)
<marex>
Forty-Bot: ... is what I was just about typing
<marex>
heh
<Raito_Bezarius>
heh makes sense :) thank you!
Clamor has quit [Read error: Connection reset by peer]
___nick___ has quit [Ping timeout: 255 seconds]
flom84 has joined #u-boot
flom84 has quit [Remote host closed the connection]