<html><body><div style="color:#000; background-color:#fff; font-family:arial, helvetica, sans-serif;font-size:10pt"><div id="yiv4710840581"><div><div style="color:#000;background-color:#fff;font-family:arial, helvetica, sans-serif;font-size:10pt;">I was able to get most of this working on the C139 but can't get an app to start when I power the phone on after flash programming.<br><br>I connect the phone via usb and do <br><br>minicom --device /dev/ttyUSB0<br><br>with either short power press or a long one in minicom I get:<br><br>�A@ftmtoolerror<br><br>and the screen turns white on the phone.<br><br><br>I copied the loader.lds from compal_e88 and added to compal_e86 as well as the Makefile in firmware. Modified things to reflect the larger amount of flash (4mb instead of 2mb) even though this probably doesn't matter a whole lot.<br><br>I then program the C139 like this:<br><br>host/osmocon/osmoload memdump 0x000000 0x2000
 compal_loader.bin<br>host/osmocon/osmoload funlock 0x000000 0x10000<br>host/osmocon/osmoload ferase 0x000000 0x10000<br>host/osmocon/osmoload fprogram 0 0x000000 compal_loader.bin<br>host/osmocon/osmoload fprogram 0 0x002000 target/firmware/board/compal_e86/hello_world.e86loader.bin<br><br>I tried other apps like loader and rssi to the same effect.<br><br>target/firmware/Makefile additions:<br><br>ENV_e86loader_LDS=board/compal_e86/loader.lds<br>ENV_e86loader_OBJS=board/compal/start.rom.o board/compal/header.o board/compal/exceptions_redirect.o<br><br>ENV_e86flash_LDS=board/compal_e86/flash.lds<br>ENV_e86flash_OBJS=board/compal/start.rom.o board/compal/header.o board/compal/exceptions_redirected.o board/compal/handlers.o<br><br>target/firmware/board/compal_e86/loader.lds<br><br>    /* 4 MBytes of external flash memory */<br>    FLASH (rx) : ORIGIN = 0x00000000, LENGTH = 0x400000<br>    /* 256 kBytes of
 internal zero-waitstate sram */<br>    IRAM  (rw) : ORIGIN = 0x00800000, LENGTH = 0x040000<br>    /* 256 kBytes of external slow sram */<br>    ERAM  (rw) : ORIGIN = 0x01000000, LENGTH = 0x040000<br><br>I was able to grab the first three flash pages (I cleared three pages to make room for trying rssi fw) from another c140, reprogram them, and the phone starts fine with stock firmware again.<br><br>I assume that a long power press causes a jump to 0x2000. Am I right?<br><br>If that's not the case then I would suppose I would need to write a firmware which loads at 0x000000, injects the magic value at 0x83ce0 and then continues with code as normal.<br><br>Thanks,<br>Craig<br><br><div><br id="yiv4710840581yui_3_7_2_43_1380682279926_57" clear="none"></div>  <div class="yiv4710840581yqt9841767626" id="yiv4710840581yqt63210"><div class="yiv4710840581yui_3_7_2_43_1380682279926_59"
 id="yiv4710840581yui_3_7_2_43_1380682279926_60" style="font-family:arial, helvetica, sans-serif;font-size:10pt;"> <div class="yiv4710840581yui_3_7_2_43_1380682279926_63" style="font-family:times new roman, new york, times, serif;font-size:12pt;"> <div dir="ltr"> <hr size="1">  <font face="Arial" size="2"> <b><span style="font-weight:bold;">From:</span></b> Sylvain Munaut <246tnt@gmail.com><br clear="none"> <b><span style="font-weight:bold;">To:</span></b> Andreas <anmu@etc-network.de> <br clear="none"><b><span style="font-weight:bold;">Cc:</span></b> baseband-devel <baseband-devel@lists.osmocom.org> <br clear="none"> <b><span style="font-weight:bold;">Sent:</span></b> Monday, September 30, 2013 1:03 PM<br clear="none"> <b><span style="font-weight:bold;">Subject:</span></b> Re: bad crc when trying to flash application<br clear="none"> </font> </div> <div class="yiv4710840581y_msg_container"><br clear="none">> bad crc 9bf1 (not e0bc)
 at offset 0x00000000<br clear="none">> status 5242976, aborting<br clear="none"><br clear="none">Make sure to use the very latest git. A patch was very recently pushed<br clear="none">wrt to this.<br clear="none"><br clear="none">Cheers,<br clear="none"><br clear="none">    Sylvain<br clear="none"><br clear="none"><br clear="none"><br clear="none"></div> </div> </div></div>  </div></div></div></div></body></html>