[Touch CDMA Android Development] kallt_kaffe:
I removed the battery, reinserted, booted and started GPS Test and it froze after maybe 20-30 minutes.

BUT, I've done some changes to the code in the kernel I use right now so I have to redo that test without those changes.

What I did was I added an msleep(100) to the sys_read loop in the nmea thread and I also increased buf to 512 characters as more data queues up on the serialport with the added delay. The idea was to read more, but less often and see if that had any effect.

The interesting thing is that the last_kmsg now looks quite different.

[ 683.550531] NMEA read. Size 193
[ 683.660572] NMEA read. Size 216
[ 683.660697] time=113002 hlat=1 llat=xx39949435 hlng=0 llng=xx72724168
[ 683.660772] date=22042010
[ 683.660819] fix=4723274
[ 683.660851] speed=0 bearing=0
[ 684.550677] NMEA read. Size 263
[ 684.580516] NMEA read. Size 146
[ 684.580646] fix=4723274
[ 684.580681] speed=0 bearing=0
[ 684.640531] NMEA read. Size 193
[ 684.750571] NMEA read. Size 216
[ 684.750696] time=113004 hlat=1 llat=xx39949499 hlng=0 llng=xx72724203
[ 684.750773] date=22042010
[ 684.750819] fix=4723274
[ 684.750851] speed=0 bearing=0
[ 685.640726] NMEA read. Size 407
[ 686.040536] NMEA read. Size 407
[ 686.500604] NMEA read. Size 378
[ 686.610569] NMEA read. Size 29
[ 687.110713] NMEA read. Size 191
[ 687.220573] NMEA read. Size 216
[ 687.220696] time=113008 hlat=1 llat=xx39949624 hlng=0 llng=xx72724436
[ 687.220769] date=22042010
[ 687.220816] fix=4723274
[ 687.220883] speed=0 bearing=0
[ 687.376416] ds2746: 3904mV 286mA charge: 68/100 (2943 units)
[ 687.376444] aux0: 279 (1574) aux1: 20 (90)
[ 688.110676] NMEA read. Size 380
[ 688.220524] NMEA read. Size 29
[ 688.290540] NMEA read. Size 327
[ 688.310480] NMEA read. Size 82
[ 688.310565] speed=0 bearing=0
[ 688.410610] NMEA read. Size 327
[ 688.430491] NMEA read. Size 82
[ 688.430581] speed=0 bearing=0
[ 688.490581] NMEA read. Size 409
[ 688.550597] NMEA read. Size 382
[ 688.660567] NMEA read. Size 29
[ 689.030737] NMEA read. Size 411
[ 689.090624] NMEA read. Size 382
[ 689.200497] NMEA read. Size 29
[ 689.700529] NMEA read. Size 195
[ 689.810569] NMEA read. Size 216
[ 689.810692] time=113016 hlat=1 llat=xx39949569 hlng=0 llng=xx72724638
[ 689.810774] date=22042010
[ 689.810819] fix=4723274
[ 689.810850] speed=0 bearing=0
[ 690.690680] NMEA read. Size 265
[ 690.740519] NMEA read. Size 146
[ 690.740679] Unable to handle kernel paging request at virtual address 03aa47d4
[ 690.740719] pgd = c0004000
[ 690.740740] [03aa47d4] *pgd=00000000
[ 690.740777] Internal error: Oops: 805 [#1] PREEMPT
[ 690.740802] Modules linked in: wlan
[ 690.740844] CPU: 0 Not tainted (2.6.25-01041-g7bb61a4-dirty #28)
[ 690.740927] PC is at handle_sat_data+0x6c/0x110
[ 690.740969] LR is at handle_sat_data+0x24/0x110
[ 690.741004] pc : [<c0044038>] lr : [<c0043ff0>] psr: 80000013
[ 690.741020] sp : c5bb3bb0 ip : 03aa4770 fp : c5bb3bcc
[ 690.741054] r10: c5bb3e94 r9 : 00000001 r8 : c5bb3ed2
[ 690.741082] r7 : 00000001 r6 : 0001b979 r5 : c5bb3c74 r4 : 00000000
[ 690.741114] r3 : c5bb3c14 r2 : c0376470 r1 : 00000001 r0 : 34372e30
[ 690.741149] Flags: Nzcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment kernel
[ 690.741182] Control: 00c5387f Table: 10cbc000 DAC: 00000017
[ 690.741212] Process gps_nmea_thread (pid: 1518, stack limit = 0xc5bb2260)
[ 690.741245] Stack: (0xc5bb3bb0 to 0xc5bb4000)
[ 690.741267] 3ba0: c5bb3e94 c5bb3ee1 0000000a c5bb3c14
[ 690.741345] 3bc0: c5bb3c84 c5bb3bd0 c004518c c0043fd8 c5bb3c04 00000034 57b25526 00000056
[ 690.741427] 3be0: 00000092 c5bb3c94 80000013 00000000 d357e0ce 000000a0 0000003b c5bb3eac
[ 690.741509] 3c00: 39362020 34372e30 00001784 00092f90 00003c46 00000000 c5bb3c4c c5bb3c28
[ 690.741590] 3c20: c00aecf4 c00dd370 00000000 c00525cc c5eb7a60 00000000 c5bb3e94 c5bb3c94
[ 690.741672] 3c40: c0376470 00000003 00000607 0001b979 c5bb3c74 00000000 c02cf000 00000000
[ 690.741754] 3c60: c5bb3e94 c5bb3c94 c0376470 00000092 00000000 00000000 c5bb3fd4 c5bb3c88
[ 690.741834] 3c80: c0043e00 c0044c24 c0043ee8 c0043e44 00657565 52504724 312c434d 31303331
[ 690.741917] 3ca0: 2c302e37 30362c41 392e3032 32313035 2c4e2c37 34353130 33362e33 33343834
[ 690.742000] 3cc0: 2c2c452c 3032322c 2c303134 2a412c2c 0a0d4636 47504724 412c4153 302c332c
[ 690.742085] 3ce0: 30322c32 2c34302c 312c3730 33322c33 2c30312c 2c2c2c2c 352e322c 322e312c
[ 690.742169] 3d00: 312e322c 0d34332a 5047240a 2c475456 2c2c542c 2e302c4d 2c4e2c30 2c302e30
[ 690.742252] 3d20: 45342a4b 332c0a0d 2c31312c 352c3332 38302c30 36322c35 2c39322c 332c3231
[ 690.742335] 3d40: 312c3734 30312c39 2c36332c 2c393832 342a3432 240a0d35 47475047 31312c41
[ 690.742419] 3d60: 37313033 362c302e 2e303230 31303539 4e2c3732 3531302c 362e3334 34383433
[ 690.742502] 3d80: 2c452c33 37302c31 322e312c 3330322c 4d2c302e 2c2c2c2c 0d45302a 5047240a
[ 690.742585] 3da0: 2c434d52 30333131 302e3531 362c412c 2e303230 31303539 4e2c3732 3531302c
[ 690.742669] 3dc0: 362e3334 36373433 2c452c38 32322c2c 30313430 412c2c2c 0d42362a 5047240a
[ 690.742754] 3de0: 2c415347 2c332c41 322c3230 34302c30 2c37302c 322c3331 30312c33 2c2c2c2c
[ 690.742837] 3e00: 2e322c2c 2e312c35 2e322c32 37332a32 47240a0d 47545650 2c542c2c 302c4d2c
[ 690.742920] 3e20: 4e2c302e 302e302c 342a4b2c 0a0a0d45 43636e79 65727275 6e53746e 74615272
[ 690.743004] 3e40: 70006f69 5f636f72 69646b6d 656d0072 72757361 6e656d65 56525374 646e6148
[ 690.743087] 3e60: 6843656c 656e6e61 616f4c6c 6d6f4364 74656c70 68770065 74436c61 475f6c72
[ 690.743170] 3e80: 76417465 67617265 53535265 616d0049 654b6e69 c0043f5c c00440dc c0043fcc
[ 690.743255] 3ea0: c0043ee8 c0043e44 00000001 53475047 00330056 52504724 3100434d 31303331
[ 690.743337] 3ec0: 00302e37 30360041 392e3032 32313035 004e0037 34353130 33362e33 33343834
[ 690.743422] 3ee0: 00004500 30323200 00303134 00410000 00302e30 2e30004e 004b0030 32000034
[ 690.743504] 3f00: 30310033 00000000 2e320000 2e310036 2e320034 00360031 00372e32 35300039
[ 690.743587] 3f20: 00393000 00383932 31003700 33320033 00303100 00000000 312e3300 342e3100
[ 690.743669] 3f40: 382e3200 00383200 33003430 32320039 39320037 00373000 31003033 32003038
[ 690.743754] 3f60: 33310039 00313800 00303331 c0003932 c5bd6400 c0378260 c5bb3fd4 c5bb3f88
[ 690.743837] 3f80: c024ec8c c00525cc bd7b3e34 00000017 4b394a6a 0000000e c006f6ac c5bd6650
[ 690.743919] 3fa0: 4b398b84 0000000e c5bb3fd4 00000044 c0043d48 c5bb2000 c0043d48 c604c460
[ 690.744002] 3fc0: 00000000 00000000 c5bb3ff4 c5bb3fd8 c006f6cc c0043d54 00000000 00000000
[ 690.744082] 3fe0: 00000000 00000000 00000000 c5bb3ff8 c005d288 c006f680 71655370 61687300
[ 690.744164] Backtrace:
[ 690.744192] [<c0043fcc>] (handle_sat_data+0x0/0x110) from [<c004518c>] (nmea_parse+0x574/0x75c)
[ 690.744272] r7:c5bb3c14 r6:0000000a r5:c5bb3ee1 r4:c5bb3e94
[ 690.744325] [<c0044c18>] (nmea_parse+0x0/0x75c) from [<c0043e00>] (gps_nmea_thread+0xb8/0xfc)
[ 690.744392] [<c0043d48>] (gps_nmea_thread+0x0/0xfc) from [<c006f6cc>] (kthread+0x58/0x94)
[ 690.744465] r8:00000000 r7:00000000 r6:c604c460 r5:c0043d48 r4:c5bb2000
[ 690.744527] [<c006f674>] (kthread+0x0/0x94) from [<c005d288>] (do_exit+0x0/0x668)
[ 690.744607] r7:00000000 r6:00000000 r5:00000000 r4:00000000
[ 690.744655] Code: 1afffffa eafffff3 e5130010 e082c200 (e58c0064)
[ 690.744730] Kernel panic - not syncing: Fatal exception
[ 690.744765] Rebooting in 3 seconds..Charge update
[ 1306.365790] Kaiser charge 0

I guess I messed something up when I doubled the size of "buf". I'm not sure if this is helpful at all.