Gentlemen,
Looking to perform a firmware upgrade via webserver. Is there something special needed to write to the /var/firmware.img file?
I build an image, using makeimage2.py (from image.bin). the generated file works as expected using the tftp.
From within our application ... not doing anything special ...
1. open, write binary
f = fopen( "/var/firmware.img", "wb")
2. many fwrites. the webserver we use gives us data in 256 chunks max (i am not sure why, but the last packet is 56 bytes??)
fwrites( data, 1, datalen, f )
3. and finally close the file
fclose(f);
PRIOR to attempting (running)
/bin/fw-upgrade -l -f /var/firmware.img
AFTER the attempt, this is NO LONGER running in the process list.
and AFTER a reboot, the firmware was not upgraded.
please advise.
thanks
Looking to perform a firmware upgrade via webserver. Is there something special needed to write to the /var/firmware.img file?
I build an image, using makeimage2.py (from image.bin). the generated file works as expected using the tftp.
From within our application ... not doing anything special ...
1. open, write binary
f = fopen( "/var/firmware.img", "wb")
2. many fwrites. the webserver we use gives us data in 256 chunks max (i am not sure why, but the last packet is 56 bytes??)
fwrites( data, 1, datalen, f )
3. and finally close the file
fclose(f);
PRIOR to attempting (running)
/bin/fw-upgrade -l -f /var/firmware.img
AFTER the attempt, this is NO LONGER running in the process list.
and AFTER a reboot, the firmware was not upgraded.
please advise.
thanks
Comment