R: Re: C115 loader.compalram.bin

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/baseband-devel@lists.osmocom.org/.

Tomas Kopsa deacon at volny.cz
Tue Jan 18 14:22:50 UTC 2011


Hello Weicai,

Yes, I'm using this cable (with Prolific Technology converter). You can
check your USB cable info with 'lsusb' command (see my last e-mail).
The most important thing is the voltage of the cable output - cannot
exceed 3.3V else you fry your phone !! (see
http://bb.osmocom.org/trac/wiki/CalypsoSerialCable). If you want to make
100% sure about the voltage, you can measure that with every DC voltmeter.

Tomas



> Hello Tomas,
>
> Does common USB->2.5 jack work? I have a USB->2.5 jack cable, but I am
> not sure if it can be used or not.
>
> Best Regards,
>
> Weicai
>
> ------------------------------------------------------------------------
>
> *From:*Tomas Kopsa [mailto:deacon at volny.cz]
> *Sent:* 2011年1月17日11:33
> *To:* list_mailing at libero.it; baseband-devel at lists.osmocom.org
> *Subject:* Re: R: Re: C115 loader.compalram.bin
>
> Hi Lia,
>
> I have tested another cable (USB <-> 2,5 jack, speacial for Compal
> phones) - it is the same chip (Prolific) and I am able to load
> firmware too. Although it is the same chip, there is a difference that
> this one makes the osmocon printing those messages instantly when
> phone is not connected:
>
> got 1 bytes from modem, data looks like: f5 .
> got 1 bytes from modem, data looks like: 00 .
> got 1 bytes from modem, data looks like: f5 .
> got 1 bytes from modem, data looks like: 00 .
> got 1 bytes from modem, data looks like: f5 .
> got 1 bytes from modem, data looks like: 00 .
> got 1 bytes from modem, data looks like: fd .
> got 1 bytes from modem, data looks like: 00 .
> got 1 bytes from modem, data looks like: f5 .
> got 1 bytes from modem, data looks like: 00 .
> got 1 bytes from modem, data looks like: fd .
> got 1 bytes from modem, data looks like: 00 .
> got 1 bytes from modem, data looks like: ea .
> got 1 bytes from modem, data looks like: 00 .
> got 1 bytes from modem, data looks like: ea .
> got 1 bytes from modem, data looks like: 00 .
> got 1 bytes from modem, data looks like: ea .
> got 1 bytes from modem, data looks like: 00 .
> got 1 bytes from modem, data looks like: ea .
> got 1 bytes from modem, data looks like: 00 .
> got 1 bytes from modem, data looks like: fd .
> got 1 bytes from modem, data looks like: 00 .
> got 1 bytes from modem, data looks like: ea
>
> If I connect phone, printing stops. Here is what happened when I tried
> to load firmware without xor (-m c123) and pressed the button:
> (This happened every attempt without xor flag)
>
> Received PROMPT2 from phone, starting download
> handle_write(): 1087 bytes (1087/50947)
> got 1 bytes from modem, data looks like: 1b .
> got 1 bytes from modem, data looks like: f6 .
> got 1 bytes from modem, data looks like: 02 .
> got 1 bytes from modem, data looks like: 00 .
> got 1 bytes from modem, data looks like: 45 E
> got 1 bytes from modem, data looks like: 53 S
> got 1 bytes from modem, data looks like: 16 .
> Received DOWNLOAD NACK from phone, something went wrong :(
> got 1 bytes from modem, data looks like: 66 f
> got 1 bytes from modem, data looks like: 74 t
> got 1 bytes from modem, data looks like: 6d m
> got 1 bytes from modem, data looks like: 74 t
> got 1 bytes from modem, data looks like: 6f o
> got 1 bytes from modem, data looks like: 6f o
> got 1 bytes from modem, data looks like: 6c l
> Received FTMTOOL from phone, ramloader has aborted
> got 1 bytes from modem, data looks like: 65 e
> got 1 bytes from modem, data looks like: 72 r
> got 1 bytes from modem, data looks like: 72 r
> got 1 bytes from modem, data looks like: 6f o
> got 1 bytes from modem, data looks like: 72 r
> got 1 bytes from modem, data looks like: 00 .
>
>
> If you have USB adapter (I guess you have), you dont need to check
> model, check 'lsusb'
>
> [root at amilo osmocon]# lsusb
> Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
> *Bus 002 Device 017: ID 067b:2303 Prolific Technology, Inc. PL2303
> Serial Port*
>
> If you have Prolific, which is very common, I encourage you to use xor
> flag. You can also try to switch on your phone to check if original
> firmware boots. I experienced during my early tests, that phone
> crashed (probably SRAM) and it was unable to boot even original fw. In
> case phone is crashed, reconnect battery and it will fix itself.
>
> Here is the ACK after hello world load:
>
> handle_write(): 768 bytes (17919/19787)
> handle_write(): 768 bytes (18687/19787)
> handle_write(): 768 bytes (19455/19787)
> handle_write(): 332 bytes (19787/19787)
> handle_write(): finished
> got 1 bytes from modem, data looks like: 1b .
> got 1 bytes from modem, data looks like: f6 .
> got 1 bytes from modem, data looks like: 02 .
> got 1 bytes from modem, data looks like: 00 .
> got 1 bytes from modem, data looks like: 41 A
> got 1 bytes from modem, data looks like: 03 .
> got 1 bytes from modem, data looks like: 42 B
> Received DOWNLOAD ACK from phone, your code is running now!
>
>
> OSMOCOM Hello World (revision osmocon_v0.0.0-754-gb5abcb6-modified)
> ======================================================================
> Device ID code: 0xb4fb
> Device Version code: 0x0000
> ARM ID code: 0xfff3
> cDSP ID code: 0x0128
> Die ID code: efce3b1ce1001255
> ======================================================================
> REG_DPLL=0x2413
> CNTL_ARM_CLK=0xf0a1
> CNTL_CLK=0xff91
> CNTL_RST=0xfff3
> CNTL_ARM_DIV=0xfff9
> ==============================================
>
>
> Looking forward your response,
>
> Tomas
>
>
>
> Hi Tomas,
>
> thanks for your feedback.
>
> Actually, I've tried both flags (woth/without xor extension), but hte
> result is the same.
>
> So, in your opinioni, the problem could depend on the cable?
>
> I don't have the cable model now, but I can send you this information
> Tuesday.
>
> Thanks again.
>
> cheers.
>
> lia
>
>     ----Messaggio originale----
>     Da: deacon at volny.cz <mailto:deacon at volny.cz>
>     Data: 16-gen-2011 4.26
>     A: <list_mailing at libero.it> <mailto:list_mailing at libero.it>
>     ubut Ogg: Re: C115 loader.compalram.bin
>
>     Hello,
>     I have C115 too and I use '-m c123xor' switch, the phone mostly
>     boots on 1st button push (I never reacher full load with '-m c123').
>
>     ./osmocon -p /dev/ttyUSB0 -m c123xor
>     ../../target/firmware/board/compal_e88/hello_world.compalram.bin
>     ./osmocon -p /dev/ttyUSB0 -m c123xor
>     ../../target/firmware/board/compal_e88/loader.compalram.bin
>     ./osmocon -p /dev/ttyUSB0 -m c123xor
>     ../../target/firmware/board/compal_e88/layer1.compalram.bin
>
>     I have FTDI USB<->RS232 + Calypso serial. When load fails (with
>     xor), I have a feeling that it helps reconnection cable to the phone.
>     (I have also Calypso USB cable which I haven't tested yet, will
>     report later.)
>
>     - Tomas
>
>
>
>>     Hello.
>>     I'm trying to load the loader.compalram.bin. 
>>     The behaviour is very strange because sometimes the download is complete and 
>>     successfull, sometimes; in particular, in this case, the download is complete, 
>>     but any ACK is sent back from the mobile phone (see below). 
>>     ./osmocon -p /dev/ttyUSB0 -m c123 ../..
>>     /target/firmware/board/compal_e99/loader.compalram.bin
>>     got 2 bytes from modem, data looks like: 2e c8  ..
>>     got 5 bytes from modem, data looks like: 1b f6 02 00 41  ....A
>>     got 1 bytes from modem, data looks like: 01  .
>>     got 1 bytes from modem, data looks like: 40  @
>>     Received PROMPT1 from phone, responding with CMD
>>     read_file(../../target/firmware/board/compal_e99/loader.compalram.bin): 
>>     file_size=21752, hdr_len=4, dnload_len=21759
>>     got 1 bytes from modem, data looks like: 1b  .
>>     got 1 bytes from modem, data looks like: f6  .
>>     got 1 bytes from modem, data looks like: 02  .
>>     got 1 bytes from modem, data looks like: 00  .
>>     got 1 bytes from modem, data looks like: 41  A
>>     got 1 bytes from modem, data looks like: 02  .
>>     got 1 bytes from modem, data looks like: 43  C
>>     Received PROMPT2 from phone, starting download
>>     handle_write(): 4096 bytes (4096/21759)
>>     handle_write(): 4096 bytes (8192/21759)
>>     handle_write(): 4096 bytes (12288/21759)
>>     handle_write(): 4096 bytes (16384/21759)
>>     handle_write(): 4096 bytes (20480/21759)
>>     handle_write(): 1279 bytes (21759/21759)
>>     handle_write(): finished
>>      
>>      
>>     The target phone is C115. I tried compal_exx and the result is the same :-(
>>      
>>     Please, can someone help me to understand the reasons?
>>     Thanks in advance.
>>      
>>      
>>      
>>      
>

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/baseband-devel/attachments/20110118/bdfa0898/attachment.htm>


More information about the baseband-devel mailing list