PPCGeeks Forums HTC Arrive HTC HD2 HTC Thunderbolt HTC Touch Pro 2 HTC Evo 4G HTC Evo 3D Samsung Galaxy S II Motorola Droid X Apple iPhone Blackberry
Go Back   PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro 2 > Android On TP2 > Android On TP2 Development

Notices


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-03-2012, 02:32 AM
[ACL]'s Avatar
VIP Member
Offline
Pocket PC: tp2
Carrier: Sprint
Threadstarter
Location: NY
 
Join Date: Feb 2010
Posts: 1,534
Reputation: 6350
[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community
Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] - NAND OMGB (1.2.3)

Quote:
Originally Posted by muziling View Post
Our battery chip is ds2746, same as HD2?

Division by zero must be buffer->batt_tempRAW equal 2600
No idea what our chip is. Its all handled by smem so i dont think we have a individual controller like the HD2. Trust me i tried to write the code. We even disassembled a battery thinking it might be inside, nothing found ..lol.

I just realised this is written on the code

Code:
/* TODO: temp algo is not ok..if someone have the timte -> must look into the driver */
I guess I'll have to look into winmo see how the temp is handled. For now i guess we can just have a little check to see if it hits 2600 and we can just manually set av_index to 0.
__________________
Reply With Quote
  #2 (permalink)  
Old 01-03-2012, 05:46 AM
muziling's Avatar
PPCGeeks Regular
Offline
Pocket PC: HTC Touch Pro 2(RHOD400)
Carrier: CDMA
 
Join Date: Nov 2010
Posts: 175
Reputation: 55
muziling is becoming a great contributor
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] - NAND OMGB (1.2.3)

Quote:
Originally Posted by [ACL] View Post
I guess I'll have to look into winmo see how the temp is handled. For now i guess we can just have a little check to see if it hits 2600 and we can just manually set av_index to 0.

Confirm
Quote:
<6>[ 1909.437347] [BATT-INFO];id=364, vol=3892, temp=500, current=120, level=73, charging_source=0, charging_enabled=0, full_bat=0, batt_tempRAW=2600
Division by zero in kernel.
<4>[ 1909.437469] [<c0281da8>] (dump_stack+0x0/0x14) from [<c002df94>] (__div0+0x18/0x20)
<4>[ 1909.437652] [<c002df7c>] (__div0+0x0/0x20) from [<c0142eac>] (Ldiv0+0x8/0x10)
<4>[ 1909.437744] [<c00568ec>] (htc_get_batt_info+0x0/0x8f0) from [<c0057c7c>] (htc_battery_thread+0x54/0xa0)
<4>[ 1909.437896] [<c0057c28>] (htc_battery_thread+0x0/0xa0) from [<c0060ed8>] (do_exit+0x0/0x7a8)
<4>[ 1909.438018] r7:00000000 r6:00000000 r5:00000000 r4:00000000

Last edited by muziling; 01-03-2012 at 05:54 AM.
Reply With Quote
  #3 (permalink)  
Old 01-03-2012, 11:56 AM
[ACL]'s Avatar
VIP Member
Offline
Pocket PC: tp2
Carrier: Sprint
Threadstarter
Location: NY
 
Join Date: Feb 2010
Posts: 1,534
Reputation: 6350
[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community
Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] - NAND OMGB (1.2.3)

Quote:
Originally Posted by muziling View Post
Confirm
thanks muz. can you post this on the project page as an issue. I dont want to loose track of all your work. I'll patch it up for next release.

Reply With Quote
  #4 (permalink)  
Old 01-03-2012, 08:54 PM
muziling's Avatar
PPCGeeks Regular
Offline
Pocket PC: HTC Touch Pro 2(RHOD400)
Carrier: CDMA
 
Join Date: Nov 2010
Posts: 175
Reputation: 55
muziling is becoming a great contributor
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] - NAND OMGB (1.2.3)

Quote:
Originally Posted by [ACL] View Post
thanks muz. can you post this on the project page as an issue. I dont want to loose track of all your work. I'll patch it up for next release.

Issue 16
I notice buffer->charging_source equal 0 or 2, never 1 whether plug USB with PC or AC.
Code:
struct battery_info_reply {
    u32 batt_id;        /* Battery ID from ADC */
    u32 batt_vol;        /* Battery voltage from ADC */
    u32 batt_temp;        /* Battery Temperature (C)corrected value from formula and ADC */
    s32 batt_current;    /* Battery current from ADC */
    u32 level;        /* formula */
    u32 charging_source;    /* 0: no cable, 1:usb, 2:AC */
    u32 charging_enabled;    /* 0: Disable, 1: Enable */
    u32 full_bat;        /* Full capacity of battery (mAh) */
    u32 batt_tempRAW;    /* Battery Temperature (C) from formula and ADC */
};

Last edited by muziling; 01-03-2012 at 08:59 PM.
Reply With Quote
  #5 (permalink)  
Old 01-04-2012, 10:37 AM
mbellot's Avatar
PPCGeeks Regular
Offline
Pocket PC: TP2
Carrier: Boost
 
Join Date: Jul 2010
Posts: 156
Reputation: 135
mbellot is keeping up the good workmbellot is keeping up the good work
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] - NAND OMGB (1.2.3)

ACL - Things have been running so smoothly I just had to mess with it.

One of the few features I really would like is GPS, so I downloaded GBX0B and yanked the gps.xdandroid.file. Pushed it into /system/lib/hw as gps.rhodium.so and rebooted.

Maps and other GPS programs seemed to work well, so I decided to push it. I left Maps running yesterday on my way home and today on my way in, attached are the last/kmsg files from the reboot that happened in each case (yesterday made it almost 30 minutes, this morning was more like 15).

If I'm reading it right it looks like a surfaceflinger stack overflow, but reading logs isn't my strong suit.

Anyway, if I'm going outside the testing you're after just tell me to stop. I just figured since it hadn't broke in several days I needed to fix it.
Attached Files
File Type: zip gps_reboots.zip (31.6 KB, 1 views) Click for barcode!
Reply With Quote
  #6 (permalink)  
Old 01-04-2012, 11:09 AM
arrrghhh's Avatar
Testing Extraordinaire
Offline
Pocket PC: HTC Touch Pro 2 (RHOD400)
Carrier: Sprint
 
Join Date: Mar 2007
Posts: 3,604
Reputation: 7360
arrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the communityarrrghhh is a trusted member of the community
Mentioned: 7 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] - NAND OMGB (1.2.3)

Quote:
Originally Posted by mbellot View Post
ACL - Things have been running so smoothly I just had to mess with it.

One of the few features I really would like is GPS, so I downloaded GBX0B and yanked the gps.xdandroid.file. Pushed it into /system/lib/hw as gps.rhodium.so and rebooted.

Maps and other GPS programs seemed to work well, so I decided to push it. I left Maps running yesterday on my way home and today on my way in, attached are the last/kmsg files from the reboot that happened in each case (yesterday made it almost 30 minutes, this morning was more like 15).

If I'm reading it right it looks like a surfaceflinger stack overflow, but reading logs isn't my strong suit.

Anyway, if I'm going outside the testing you're after just tell me to stop. I just figured since it hadn't broke in several days I needed to fix it.
Hah, nice. Curious, what version of Google Maps? v6.x seems to have problems, but not these kind...

I would like GPS tho . ACL, you have done great work. Considering the few things that remain, it really is impressive!
Reply With Quote
  #7 (permalink)  
Old 01-04-2012, 12:36 PM
mbellot's Avatar
PPCGeeks Regular
Offline
Pocket PC: TP2
Carrier: Boost
 
Join Date: Jul 2010
Posts: 156
Reputation: 135
mbellot is keeping up the good workmbellot is keeping up the good work
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] - NAND OMGB (1.2.3)

Quote:
Originally Posted by arrrghhh View Post
Hah, nice. Curious, what version of Google Maps? v6.x seems to have problems, but not these kind...

I would like GPS tho . ACL, you have done great work. Considering the few things that remain, it really is impressive!
v5.7.0

(probably whatever is stock with the gapps in the first post)
Reply With Quote
  #8 (permalink)  
Old 01-04-2012, 12:17 PM
[ACL]'s Avatar
VIP Member
Offline
Pocket PC: tp2
Carrier: Sprint
Threadstarter
Location: NY
 
Join Date: Feb 2010
Posts: 1,534
Reputation: 6350
[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community
Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] - NAND OMGB (1.2.3)

Quote:
Originally Posted by mbellot View Post
ACL - Things have been running so smoothly I just had to mess with it.

One of the few features I really would like is GPS, so I downloaded GBX0B and yanked the gps.xdandroid.file. Pushed it into /system/lib/hw as gps.rhodium.so and rebooted.

Maps and other GPS programs seemed to work well, so I decided to push it. I left Maps running yesterday on my way home and today on my way in, attached are the last/kmsg files from the reboot that happened in each case (yesterday made it almost 30 minutes, this morning was more like 15).

If I'm reading it right it looks like a surfaceflinger stack overflow, but reading logs isn't my strong suit.

Anyway, if I'm going outside the testing you're after just tell me to stop. I just figured since it hadn't broke in several days I needed to fix it.
This wont work right. If you want gps, use this file from OMGB 1.2.2.

/system/lib/hw/gps.rhodium.so

Try it out and report back i suppose.
Reply With Quote
  #9 (permalink)  
Old 01-04-2012, 12:38 PM
mbellot's Avatar
PPCGeeks Regular
Offline
Pocket PC: TP2
Carrier: Boost
 
Join Date: Jul 2010
Posts: 156
Reputation: 135
mbellot is keeping up the good workmbellot is keeping up the good work
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] - NAND OMGB (1.2.3)

Quote:
Originally Posted by [ACL] View Post
This wont work right. If you want gps, use this file from OMGB 1.2.2.

/system/lib/hw/gps.rhodium.so

Try it out and report back i suppose.
Will do!
Reply With Quote
  #10 (permalink)  
Old 01-05-2012, 03:19 AM
[ACL]'s Avatar
VIP Member
Offline
Pocket PC: tp2
Carrier: Sprint
Threadstarter
Location: NY
 
Join Date: Feb 2010
Posts: 1,534
Reputation: 6350
[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community[ACL] is a trusted member of the community
Mentioned: 2 Post(s)
Tagged: 0 Thread(s)
Re: [TESTING] - NAND OMGB (1.2.3)

Quote:
Originally Posted by muziling View Post
Issue 16
I notice buffer->charging_source equal 0 or 2, never 1 whether plug USB with PC or AC.
Code:
struct battery_info_reply {
    u32 batt_id;        /* Battery ID from ADC */
    u32 batt_vol;        /* Battery voltage from ADC */
    u32 batt_temp;        /* Battery Temperature (C)corrected value from formula and ADC */
    s32 batt_current;    /* Battery current from ADC */
    u32 level;        /* formula */
    u32 charging_source;    /* 0: no cable, 1:usb, 2:AC */
    u32 charging_enabled;    /* 0: Disable, 1: Enable */
    u32 full_bat;        /* Full capacity of battery (mAh) */
    u32 batt_tempRAW;    /* Battery Temperature (C) from formula and ADC */
};
Hey muz. i pushed the hack for the battery. Also other fixes that i wont release until the next full build. You can test if the above still happens if you have time.

Also i think we are missing the gpio for ac detect. Maybe why its always seeing it as usb. Not sure 100%
Reply With Quote
Reply

  PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro 2 > Android On TP2 > Android On TP2 Development

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 09:08 PM.


Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0
©2012 - PPCGeeks.com