razs

C139 with OsmocommBB

Jul 5th, 2011
287
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ./osmocon -p /dev/ttyUSB0 -m c140xor -c ../../target/firmware/board/compal_e86/layer1.highram.bin ../../target/firmware/board/compal_e86/chainload.compalram.bin
  2. read_file(../../target/firmware/board/compal_e86/chainload.compalram.bin): file_size=4132, hdr_len=4, dnload_len=15341
  3. read_file(../../target/firmware/board/compal_e86/chainload.compalram.bin): file_size=4132, hdr_len=4, dnload_len=15341
  4. got 1 bytes from modem, data looks like: 00 .
  5. got 1 bytes from modem, data looks like: 00 .
  6. got 1 bytes from modem, data looks like: 00 .
  7. got 1 bytes from modem, data looks like: 00 .
  8. got 1 bytes from modem, data looks like: 00 .
  9. got 1 bytes from modem, data looks like: 00 .
  10. got 1 bytes from modem, data looks like: 00 .
  11. got 1 bytes from modem, data looks like: 00 .
  12. got 1 bytes from modem, data looks like: 00 .
  13. got 1 bytes from modem, data looks like: 00 .
  14. got 1 bytes from modem, data looks like: 00 .
  15. got 1 bytes from modem, data looks like: 00 .
  16. got 1 bytes from modem, data looks like: 00 .
  17. got 1 bytes from modem, data looks like: 00 .
  18. got 1 bytes from modem, data looks like: 00 .
  19. got 1 bytes from modem, data looks like: 00 .
  20. got 1 bytes from modem, data looks like: 00 .
  21. got 1 bytes from modem, data looks like: 00 .
  22. got 1 bytes from modem, data looks like: 00 .
  23. got 1 bytes from modem, data looks like: 00 .
  24. got 1 bytes from modem, data looks like: 00 .
  25. got 1 bytes from modem, data looks like: 00 .
  26. got 1 bytes from modem, data looks like: 00 .
  27. got 1 bytes from modem, data looks like: 00 .
  28. got 1 bytes from modem, data looks like: 00 .
  29. got 1 bytes from modem, data looks like: 00 .
  30. got 1 bytes from modem, data looks like: 00 .
  31. got 1 bytes from modem, data looks like: 00 .
  32. got 1 bytes from modem, data looks like: 00 .
  33. got 1 bytes from modem, data looks like: 00 .
  34. got 1 bytes from modem, data looks like: 00 .
  35. got 1 bytes from modem, data looks like: 00 .
  36. got 1 bytes from modem, data looks like: 00 .
  37. got 1 bytes from modem, data looks like: 00 .
  38. got 1 bytes from modem, data looks like: 00 .
  39. got 1 bytes from modem, data looks like: 00 .
  40. got 1 bytes from modem, data looks like: 00 .
  41. got 1 bytes from modem, data looks like: 00 .
  42. got 1 bytes from modem, data looks like: 00 .
  43. got 1 bytes from modem, data looks like: 00 .
  44. got 1 bytes from modem, data looks like: 00 .
  45. got 1 bytes from modem, data looks like: 00 .
  46. got 1 bytes from modem, data looks like: 00 .
  47. got 1 bytes from modem, data looks like: 00 .
  48. got 1 bytes from modem, data looks like: 00 .
  49. got 1 bytes from modem, data looks like: 00 .
  50. got 1 bytes from modem, data looks like: 00 .
  51. got 1 bytes from modem, data looks like: 00 .
  52. got 1 bytes from modem, data looks like: 00 .
  53. got 1 bytes from modem, data looks like: 00 .
  54. got 1 bytes from modem, data looks like: 00 .
  55. got 1 bytes from modem, data looks like: 00 .
  56. got 1 bytes from modem, data looks like: 00 .
  57. got 1 bytes from modem, data looks like: 00 .
  58. got 1 bytes from modem, data looks like: 00 .
  59. got 1 bytes from modem, data looks like: 00 .
  60. got 1 bytes from modem, data looks like: 00 .
  61. got 1 bytes from modem, data looks like: 00 .
  62. got 1 bytes from modem, data looks like: 00 .
  63. got 1 bytes from modem, data looks like: 2f /
  64. got 1 bytes from modem, data looks like: 00 .
  65. got 1 bytes from modem, data looks like: 1b .
  66. got 1 bytes from modem, data looks like: f6 .
  67. got 1 bytes from modem, data looks like: 02 .
  68. got 1 bytes from modem, data looks like: 00 .
  69. got 1 bytes from modem, data looks like: 41 A
  70. got 1 bytes from modem, data looks like: 01 .
  71. got 1 bytes from modem, data looks like: 40 @
  72. Received PROMPT1 from phone, responding with CMD
  73. got 1 bytes from modem, data looks like: 1b .
  74. got 1 bytes from modem, data looks like: f6 .
  75. got 1 bytes from modem, data looks like: 02 .
  76. got 1 bytes from modem, data looks like: 00 .
  77. got 1 bytes from modem, data looks like: 41 A
  78. got 1 bytes from modem, data looks like: 02 .
  79. got 1 bytes from modem, data looks like: 43 C
  80. Received PROMPT2 from phone, starting download
  81. handle_write(): 4096 bytes (4096/15341)
  82. handle_write(): 4096 bytes (8192/15341)
  83. handle_write(): 4096 bytes (12288/15341)
  84. handle_write(): 3053 bytes (15341/15341)
  85. handle_write(): finished
  86. got 1 bytes from modem, data looks like: 1b .
  87. got 1 bytes from modem, data looks like: f6 .
  88. got 1 bytes from modem, data looks like: 02 .
  89. got 1 bytes from modem, data looks like: 00 .
  90. got 1 bytes from modem, data looks like: 41 A
  91. got 1 bytes from modem, data looks like: 03 .
  92. got 1 bytes from modem, data looks like: 42 B
  93. Received DOWNLOAD ACK from phone, your code is running now!
  94. Enabled Compal ramloader -> Calypso romloader chainloading mode
  95. Sending Calypso romloader beacon...
  96. Sending Calypso romloader beacon...
  97. Sending Calypso romloader beacon...
  98. Sending Calypso romloader beacon...
  99. Sending Calypso romloader beacon...
  100. Received ident ack from phone, sending parameter sequence
  101. read_file(../../target/firmware/board/compal_e86/layer1.highram.bin): file_size=51844, hdr_len=0, dnload_len=51847
  102. Received parameter ack from phone, starting download
  103. Used blocksize for download is 1024 bytes
  104. Preparing block 1, block checksum is 0x27
  105. handle_write_block(): 1024 bytes (1024/1024)
  106. handle_write_block(): Block 1 finished
  107. Received block ack from phone
  108. Preparing block 2, block checksum is 0xf5
  109. handle_write_block(): 1024 bytes (1024/1024)
  110. handle_write_block(): Block 2 finished
  111. Received block ack from phone
  112. Preparing block 3, block checksum is 0xda
  113. handle_write_block(): 1024 bytes (1024/1024)
  114. handle_write_block(): Block 3 finished
  115. Received block ack from phone
  116. Preparing block 4, block checksum is 0x4a
  117. handle_write_block(): 1024 bytes (1024/1024)
  118. handle_write_block(): Block 4 finished
  119. Received block ack from phone
  120. Preparing block 5, block checksum is 0x6c
  121. handle_write_block(): 1024 bytes (1024/1024)
  122. handle_write_block(): Block 5 finished
  123. Received block ack from phone
  124. Preparing block 6, block checksum is 0x41
  125. handle_write_block(): 1024 bytes (1024/1024)
  126. handle_write_block(): Block 6 finished
  127. Received block ack from phone
  128. Preparing block 7, block checksum is 0x2a
  129. handle_write_block(): 1024 bytes (1024/1024)
  130. handle_write_block(): Block 7 finished
  131. Received block ack from phone
  132. Preparing block 8, block checksum is 0xfc
  133. handle_write_block(): 1024 bytes (1024/1024)
  134. handle_write_block(): Block 8 finished
  135. Received block ack from phone
  136. Preparing block 9, block checksum is 0xc3
  137. handle_write_block(): 1024 bytes (1024/1024)
  138. handle_write_block(): Block 9 finished
  139. Received block ack from phone
  140. Preparing block 10, block checksum is 0x67
  141. handle_write_block(): 1024 bytes (1024/1024)
  142. handle_write_block(): Block 10 finished
  143. Received block ack from phone
  144. Preparing block 11, block checksum is 0x79
  145. handle_write_block(): 1024 bytes (1024/1024)
  146. handle_write_block(): Block 11 finished
  147. Received block ack from phone
  148. Preparing block 12, block checksum is 0xa2
  149. handle_write_block(): 1024 bytes (1024/1024)
  150. handle_write_block(): Block 12 finished
  151. Received block ack from phone
  152. Preparing block 13, block checksum is 0xd1
  153. handle_write_block(): 1024 bytes (1024/1024)
  154. handle_write_block(): Block 13 finished
  155. Received block ack from phone
  156. Preparing block 14, block checksum is 0x54
  157. handle_write_block(): 1024 bytes (1024/1024)
  158. handle_write_block(): Block 14 finished
  159. Received block ack from phone
  160. Preparing block 15, block checksum is 0x72
  161. handle_write_block(): 1024 bytes (1024/1024)
  162. handle_write_block(): Block 15 finished
  163. Received block ack from phone
  164. Preparing block 16, block checksum is 0x56
  165. handle_write_block(): 1024 bytes (1024/1024)
  166. handle_write_block(): Block 16 finished
  167. Received block ack from phone
  168. Preparing block 17, block checksum is 0xb3
  169. handle_write_block(): 1024 bytes (1024/1024)
  170. handle_write_block(): Block 17 finished
  171. Received block ack from phone
  172. Preparing block 18, block checksum is 0x9d
  173. handle_write_block(): 1024 bytes (1024/1024)
  174. handle_write_block(): Block 18 finished
  175. Received block ack from phone
  176. Preparing block 19, block checksum is 0x27
  177. handle_write_block(): 1024 bytes (1024/1024)
  178. handle_write_block(): Block 19 finished
  179. Received block ack from phone
  180. Preparing block 20, block checksum is 0xb9
  181. handle_write_block(): 1024 bytes (1024/1024)
  182. handle_write_block(): Block 20 finished
  183. Received block ack from phone
  184. Preparing block 21, block checksum is 0xd8
  185. handle_write_block(): 1024 bytes (1024/1024)
  186. handle_write_block(): Block 21 finished
  187. Received block ack from phone
  188. Preparing block 22, block checksum is 0x44
  189. handle_write_block(): 1024 bytes (1024/1024)
  190. handle_write_block(): Block 22 finished
  191. Received block ack from phone
  192. Preparing block 23, block checksum is 0xd9
  193. handle_write_block(): 1024 bytes (1024/1024)
  194. handle_write_block(): Block 23 finished
  195. Received block ack from phone
  196. Preparing block 24, block checksum is 0xb5
  197. handle_write_block(): 1024 bytes (1024/1024)
  198. handle_write_block(): Block 24 finished
  199. Received block ack from phone
  200. Preparing block 25, block checksum is 0x7a
  201. handle_write_block(): 1024 bytes (1024/1024)
  202. handle_write_block(): Block 25 finished
  203. Received block ack from phone
  204. Preparing block 26, block checksum is 0xbc
  205. handle_write_block(): 1024 bytes (1024/1024)
  206. handle_write_block(): Block 26 finished
  207. Received block ack from phone
  208. Preparing block 27, block checksum is 0x46
  209. handle_write_block(): 1024 bytes (1024/1024)
  210. handle_write_block(): Block 27 finished
  211. Received block ack from phone
  212. Preparing block 28, block checksum is 0x29
  213. handle_write_block(): 1024 bytes (1024/1024)
  214. handle_write_block(): Block 28 finished
  215. Received block ack from phone
  216. Preparing block 29, block checksum is 0x73
  217. handle_write_block(): 1024 bytes (1024/1024)
  218. handle_write_block(): Block 29 finished
  219. Received block ack from phone
  220. Preparing block 30, block checksum is 0xfc
  221. handle_write_block(): 1024 bytes (1024/1024)
  222. handle_write_block(): Block 30 finished
  223. Received block ack from phone
  224. Preparing block 31, block checksum is 0x18
  225. handle_write_block(): 1024 bytes (1024/1024)
  226. handle_write_block(): Block 31 finished
  227. Received block ack from phone
  228. Preparing block 32, block checksum is 0x38
  229. handle_write_block(): 1024 bytes (1024/1024)
  230. handle_write_block(): Block 32 finished
  231. Received block ack from phone
  232. Preparing block 33, block checksum is 0xe8
  233. handle_write_block(): 1024 bytes (1024/1024)
  234. handle_write_block(): Block 33 finished
  235. Received block ack from phone
  236. Preparing block 34, block checksum is 0x4d
  237. handle_write_block(): 1024 bytes (1024/1024)
  238. handle_write_block(): Block 34 finished
  239. Received block ack from phone
  240. Preparing block 35, block checksum is 0x3a
  241. handle_write_block(): 1024 bytes (1024/1024)
  242. handle_write_block(): Block 35 finished
  243. Received block ack from phone
  244. Preparing block 36, block checksum is 0x53
  245. handle_write_block(): 1024 bytes (1024/1024)
  246. handle_write_block(): Block 36 finished
  247. Received block ack from phone
  248. Preparing block 37, block checksum is 0x43
  249. handle_write_block(): 1024 bytes (1024/1024)
  250. handle_write_block(): Block 37 finished
  251. Received block ack from phone
  252. Preparing block 38, block checksum is 0xa9
  253. handle_write_block(): 1024 bytes (1024/1024)
  254. handle_write_block(): Block 38 finished
  255. Received block ack from phone
  256. Preparing block 39, block checksum is 0x88
  257. handle_write_block(): 1024 bytes (1024/1024)
  258. handle_write_block(): Block 39 finished
  259. Received block ack from phone
  260. Preparing block 40, block checksum is 0x8b
  261. handle_write_block(): 1024 bytes (1024/1024)
  262. handle_write_block(): Block 40 finished
  263. Received block ack from phone
  264. Preparing block 41, block checksum is 0x05
  265. handle_write_block(): 1024 bytes (1024/1024)
  266. handle_write_block(): Block 41 finished
  267. Received block ack from phone
  268. Preparing block 42, block checksum is 0xfc
  269. handle_write_block(): 1024 bytes (1024/1024)
  270. handle_write_block(): Block 42 finished
  271. Received block ack from phone
  272. Preparing block 43, block checksum is 0xee
  273. handle_write_block(): 1024 bytes (1024/1024)
  274. handle_write_block(): Block 43 finished
  275. Received block ack from phone
  276. Preparing block 44, block checksum is 0x83
  277. handle_write_block(): 1024 bytes (1024/1024)
  278. handle_write_block(): Block 44 finished
  279. Received block ack from phone
  280. Preparing block 45, block checksum is 0xfc
  281. handle_write_block(): 1024 bytes (1024/1024)
  282. handle_write_block(): Block 45 finished
  283. Received block ack from phone
  284. Preparing block 46, block checksum is 0x05
  285. handle_write_block(): 1024 bytes (1024/1024)
  286. handle_write_block(): Block 46 finished
  287. Received block ack from phone
  288. Preparing block 47, block checksum is 0xaa
  289. handle_write_block(): 1024 bytes (1024/1024)
  290. handle_write_block(): Block 47 finished
  291. Received block ack from phone
  292. Preparing block 48, block checksum is 0x38
  293. handle_write_block(): 1024 bytes (1024/1024)
  294. handle_write_block(): Block 48 finished
  295. Received block ack from phone
  296. Preparing block 49, block checksum is 0xd9
  297. handle_write_block(): 1024 bytes (1024/1024)
  298. handle_write_block(): Block 49 finished
  299. Received block ack from phone
  300. Preparing block 50, block checksum is 0xa3
  301. handle_write_block(): 1024 bytes (1024/1024)
  302. handle_write_block(): Block 50 finished
  303. Received block ack from phone
  304. Preparing block 51, block checksum is 0x27
  305. handle_write_block(): 1024 bytes (1024/1024)
  306. handle_write_block(): Block 51 finished
  307. Received block ack from phone
  308. Preparing the last block, filling 884 bytes, block checksum is 0x04
  309. handle_write_block(): 1024 bytes (1024/1024)
  310. handle_write_block(): Block 52 finished
  311. Finished, sent 52 blocks in total
  312. Received block ack from phone
  313. Sending checksum: 0xbf
  314. Checksum on phone side matches, let's branch to your code
  315. Branching to 0x00820000
  316. Received branch ack, your code is running now!
  317.  
  318.  
  319. OSMOCOM Layer 1 (revision osmocon_v0.0.0-951-g0e7c449)
  320. ======================================================================
  321. Device ID code: 0xb4fb
  322. Device Version code: 0x0000
  323. ARM ID code: 0xfff3
  324. cDSP ID code: 0x0128
  325. Die ID code: 14571324f30215c6
  326. ======================================================================
  327. REG_DPLL=0x2413
  328. CNTL_ARM_CLK=0xf0a1
  329. CNTL_CLK=0xff91
  330. CNTL_RST=0xfff3
  331. CNTL_ARM_DIV=0xfff9
  332. ======================================================================
  333. Power up simcard:
  334.  
  335.  
  336. THIS FIRMWARE WAS COMPILED WITHOUT TX SUPPORT!!!
  337. Assert DSP into Reset
  338. Releasing DSP from Reset
  339. Setting some dsp_api.ndb values
  340. Setting API NDB parameters
  341. DSP Download Status: 0x0001
  342. DSP API Version: 0x0000 0x0000
  343. Finishing download phase
  344. DSP Download Status: 0x0002
  345. DSP API Version: 0x3606 0x0000
  346. LOST 316!
  347. L1CTL_RESET_REQ: FULL!SIM Request (7): a0 a4 00 00 02 3f 00
  348. SIM ERROR !
  349. Status 2: 00 00
RAW Paste Data