hello_world.bin on C118
chekov
chekov at riseup.net
Mon Mar 1 15:32:53 CET 2010
hello
i am already using the newest git.
Dieter Spaar schrieb:
> Hello Chekov,
>> handle_write(): 4096 bytes (4096/16503) <<<<----- this should not happen
>> got 1 bytes from modem, data looks like: 1b
>
> This probably means that the downloader does not receive a reply in time
> and continues to download the code. You can try to fix it with this
> modification:
>
> --- ./src/host/osmocon/osmocon.c Tue Feb 23 18:38:39 2010
> +++ /src/host/osmocon/osmocon.c Mon Mar 01 07:59:22 2010
> @@ -275,6 +275,7 @@
> usleep(1);
> } else if (dnload.write_ptr >= dnload.data + dnload.data_len) {
> printf("finished\n");
> + dnload.serial_fd.when = BSC_FD_READ;
> dnload.write_ptr = dnload.data;
> return 1;
> }
since i didn't manage to apply this patch i did it manually.
>
> As a consequence of still sending data to the phone, the firmware
> could crash because there was a bug which is already fixed in the
> latest GIT version. You can check if you already have the latest
> version:
Now it looks good. The LCD is flashing its message now and the terminal
prints some more info.
still, this info differs from the wiki:
the last section is missing and the second last section is printed twice
$ ./host/osmocon/osmocon -m c123 -p /dev/ttyUSB0
target/firmware/hello_world.bin
got 2 bytes from modem, data looks like: 04 81
got 5 bytes from modem, data looks like: 1b f6 02 00 41
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/hello_world.bin): file_size=16500, hdr_len=4,
dnload_len=16507
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
got 1 bytes from modem, data looks like: 02
got 1 bytes from modem, data looks like: 43
Received PROMPT2 from phone, starting download
handle_write(): 4096 bytes (4096/16507)
handle_write(): 4096 bytes (8192/16507)
handle_write(): 4096 bytes (12288/16507)
handle_write(): 4096 bytes (16384/16507)
handle_write(): 123 bytes (16507/16507)
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
got 1 bytes from modem, data looks like: 03
got 1 bytes from modem, data looks like: 42
Received DOWNLOAD ACK from phone, your code is running now!
Hello World from apps/hello_world/main.c program code
======================================================================
Device ID code: 0xb4fb
Device Version code: 0x0000
ARM ID code: 0xfff3
cDSP ID code: 0x0128
Die ID code: <snip>
======================================================================
REG_DPLL=0x2413
CNTL_ARM_CLK=0xf0a1
CNTL_CLK=0xff91
CNTL_RST=0xfff3
CNTL_ARM_DIV=0xfff9
======================================================================
REG_DPLL=0x2413
CNTL_ARM_CLK=0xf0a1
CNTL_CLK=0xff91
CNTL_RST=0xfff3
CNTL_ARM_DIV=0xfff9
======================================================================
entering interrupt loop
please note, that
osmocom -m c118xor
only worked because there is no c118-mode and it fell back to c123-mode.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://lists.osmocom.org/pipermail/baseband-devel/attachments/20100301/1e3a4f3f/attachment.pgp>
More information about the baseband-devel
mailing list