Hi,
I'm getting kind of annoyed by the new >64k firmwares that need to be loaded via osmoload. Included patch #2 adds a "-a" option to osmocon that runs an arbitrary script after the main firmware has been successfully uploaded to the phone.
This script could, for example, then handle upload of a second stage firmware via osmoload. Also layer23 could be started here just before uploading layer1.
The script will be given the socket, serial port, loader method (c123xor...) and main firmware as arguments, those can be used to distinguish several phones that are connected to the same PC.
Example usage (using attached osmoload.sh script):
osmocon -p /dev/ttyUSB0 -m c155 -a .../osmoload.sh \ .../board/compal_e99/loader.compalram.bin
Received DOWNLOAD ACK from phone, your code is running now! OSMOCOM Loader (revision osmocon_v0.0.0-1299-g7c08201) (---- 2 second delay ----) [osmoload.sh] Socket is /tmp/osmocom_loader, port is /dev/ttyUSB0. [osmoload.sh] Loader method was c155. [osmoload.sh] New firmware will be osmocom-bb/src/target/firmware/board/compal_e99/rssi.highram.bin. Received pong. Loading 75472 bytes of memory to address 0x820000 from file osmocom-bb/src/target/firmware/board/compal_e99/rssi.highram.bin ..................................................................
Chris
Hi Christian, you are aware of the possibility of chainloading these firmwares using osmocon with removed 64k check as Steve described in http://lists.osmocom.org/pipermail/baseband-devel/2012-January/002694.html ? Otherwise it's not a bad idea of being able to start some script after successful firmware upload.
Regards, Mad
Hi,
On Sun, Feb 05, 2012 at 04:24:40PM +0100, mad wrote:
you are aware of the possibility of chainloading these firmwares using osmocon with removed 64k check as Steve described in http://lists.osmocom.org/pipermail/baseband-devel/2012-January/002694.html ? Otherwise it's not a bad idea of being able to start some script after successful firmware upload.
I am aware, but for whatever reason it only worked with one of my phones (C155 or C123, I forgot). Osmoload worked all the time.
Chris
baseband-devel@lists.osmocom.org