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
Register Community Search

Notices


Reply
 
LinkBack Thread Tools Display Modes
  #331 (permalink)  
Old 10-26-2010, 10:28 AM
coolsilver's Avatar
PPCGeeks Regular
Offline
Pocket PC: HTC TP2
Carrier: Verizon
 
Join Date: Oct 2007
Posts: 233
Reputation: 125
coolsilver is keeping up the good workcoolsilver is keeping up the good work
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: NAND Boot Testing - Keyboard Mapping Fixed, HW3D, and Battery Algo Update

Quote:
Originally Posted by Lmiller1708 View Post
I should have just gone with that... Finally got it working last night but it seems a bit unstable... I think I will give Virtualbox a try, I like the idea of sharing files that way.

I still have a lot to learn but would love to know how and help out any way I can. You can post the script and I see how it works.
Same I would like to at least know how it works.
Reply With Quote
  #332 (permalink)  
Old 10-26-2010, 11:25 AM
natemcnutty's Avatar
VIP Member
Offline
Pocket PC: VZW Touch Pro 2
Carrier: Verizon Wireless
Threadstarter
 
Join Date: Nov 2009
Posts: 845
Reputation: 3070
natemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Wirelessly posted (Opera/9.80 (Windows Mobile; Opera Mini/5.1.21594/21.529; U; en) Presto/2.5.25 Version/10.54)

Quote:
Originally Posted by coolsilver
Quote:
Originally Posted by Lmiller1708 View Post
I should have just gone with that... Finally got it working last night but it seems a bit unstable... I think I will give Virtualbox a try, I like the idea of sharing files that way.

I still have a lot to learn but would love to know how and help out any way I can. You can post the script and I see how it works.
Same I would like to at least know how it works.
I'll put together a tutorial post at some point today so you could build your own if you wanted. I'll link it to the FAQ when it is done too
__________________
Reply With Quote
This post has been thanked 2 times.
  #333 (permalink)  
Old 10-26-2010, 11:31 AM
Lmiller1708's Avatar
Flashaholic!
Offline
Pocket PC: Vogue->(TP2/Incredible 2/ThunderBolt)
Carrier: Verizon
Location: La Crosse, WI
 
Join Date: Aug 2008
Posts: 873
Reputation: 2160
Lmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: NAND Boot Testing - HW3D Fixed: 10-21, Auto-brightness Testing: 10-24

Quote:
Originally Posted by natemcnutty View Post
Wirelessly posted (Opera/9.80 (Windows Mobile; Opera Mini/5.1.21594/21.529; U; en) Presto/2.5.25 Version/10.54)



I'll put together a tutorial post at some point today so you could build your own if you wanted. I'll link it to the FAQ when it is done too
That would be great! Thanks!

Virturalbox Rocks by the way!
__________________
Reply With Quote
  #334 (permalink)  
Old 10-26-2010, 04:04 PM
Lmiller1708's Avatar
Flashaholic!
Offline
Pocket PC: Vogue->(TP2/Incredible 2/ThunderBolt)
Carrier: Verizon
Location: La Crosse, WI
 
Join Date: Aug 2008
Posts: 873
Reputation: 2160
Lmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: NAND Boot Testing - Keyboard Mapping Fixed, HW3D, and Battery Algo Update

Quote:
Originally Posted by [ACL] View Post
Have we tried injecting another config on sdcard based on the rcconfig?

if [ -f "$card/conf/$RCCONFIG.user.conf" ]; then
/bin/userinit.sh -c "$card/conf/$RCCONFIG.user.conf"
else
echo "No user config files ($RCCONFIG) found on sdcard"
fi


Lookks like we can have a user.conf file and might be able to a modd the default.prop file which i think will handle what we need. The bottom section of this conf file executes shell params. So all we need to do is include

echo "ro.sf.lcd_density = 240" >> /etc/default.prop

Right now we dont have the desity set on tinboot so this should work.
I figured out how we can change the density for NAND. (For now...)
I also added the lcd-blacklight command from above. It works.

With this code you just need to place a file named "LCDDENSITY.240" or "LCDDENSITY.210" in the andboot folder of your SD Card.

Code:
echo 50 >/sys/class/leds/lcd-backlight/brightness

LCDDENSITY=`/bin/grep -o "lcd.density=.*" /proc/cmdline | /bin/sed -e "s/.*lcd.density=//g" -e "s/ .*//g"`


if [ "$LCDDENSITY" != "" ] ; then
    echo "ro.sf.lcd_density=$LCDDENSITY" >> /etc/default.prop
    echo Setting ro.sf.lcd_density=$LCDDENSITY
elif    
    [ -f $card/LCDDENSITY.240 ] ; then
    echo "ro.sf.lcd_density=240" >> /etc/default.prop
    echo Setting ro.sf.lcd_density=240
elif    
    [ -f $card/LCDDENSITY.210 ] ; then
    echo "ro.sf.lcd_density=210" >> /etc/default.prop
    echo Setting ro.sf.lcd_density=210
fi

Last edited by Lmiller1708; 10-26-2010 at 04:12 PM.
Reply With Quote
This post has been thanked 1 times.
  #335 (permalink)  
Old 10-26-2010, 05:02 PM
[ACL]'s Avatar
VIP Member
Offline
Pocket PC: tp2
Carrier: Sprint
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: NAND Boot Testing - Keyboard Mapping Fixed, HW3D, and Battery Algo Update

Quote:
Originally Posted by Lmiller1708 View Post
I figured out how we can change the density for NAND. (For now...)
I also added the lcd-blacklight command from above. It works.

With this code you just need to place a file named "LCDDENSITY.240" or "LCDDENSITY.210" in the andboot folder of your SD Card.

Code:
echo 50 >/sys/class/leds/lcd-backlight/brightness

LCDDENSITY=`/bin/grep -o "lcd.density=.*" /proc/cmdline | /bin/sed -e "s/.*lcd.density=//g" -e "s/ .*//g"`


if [ "$LCDDENSITY" != "" ] ; then
    echo "ro.sf.lcd_density=$LCDDENSITY" >> /etc/default.prop
    echo Setting ro.sf.lcd_density=$LCDDENSITY
elif    
    [ -f $card/LCDDENSITY.240 ] ; then
    echo "ro.sf.lcd_density=240" >> /etc/default.prop
    echo Setting ro.sf.lcd_density=240
elif    
    [ -f $card/LCDDENSITY.210 ] ; then
    echo "ro.sf.lcd_density=210" >> /etc/default.prop
    echo Setting ro.sf.lcd_density=210
fi
yeah that works.. same thing we did for the keyboard. Im trying to avoid butchering the rootfs tho. Unless you guys want to maintain a nand version?

did you try the conf file i mentioned? this is already in place so it should not need modds to the rootfs.

Keep min mind we could also butcher the initramfs to do anything we want. This rarely changes so we could always have it do stuff. Nate what do u think about that?
__________________
Reply With Quote
  #336 (permalink)  
Old 10-26-2010, 05:07 PM
Lmiller1708's Avatar
Flashaholic!
Offline
Pocket PC: Vogue->(TP2/Incredible 2/ThunderBolt)
Carrier: Verizon
Location: La Crosse, WI
 
Join Date: Aug 2008
Posts: 873
Reputation: 2160
Lmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: NAND Boot Testing - Keyboard Mapping Fixed, HW3D, and Battery Algo Update

Quote:
Originally Posted by [ACL] View Post
yeah that works.. same thing we did for the keyboard. Im trying to avoid butchering the rootfs tho. Unless you guys want to maintain a nand version?

did you try the conf file i mentioned? this is already in place so it should not need modds to the rootfs.

Keep min mind we could also butcher the initramfs to do anything we want. This rarely changes so we could always have it do stuff. Nate what do u think about that?
Looking into it right now...

I agree with not using the rootfs for stuff like this. It would be easier just to use one rootfs across the board.

Last edited by Lmiller1708; 10-26-2010 at 05:28 PM.
Reply With Quote
  #337 (permalink)  
Old 10-26-2010, 05:29 PM
Lmiller1708's Avatar
Flashaholic!
Offline
Pocket PC: Vogue->(TP2/Incredible 2/ThunderBolt)
Carrier: Verizon
Location: La Crosse, WI
 
Join Date: Aug 2008
Posts: 873
Reputation: 2160
Lmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIPLmiller1708 is a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: NAND Boot Testing - Keyboard Mapping Fixed, HW3D, and Battery Algo Update

I added this to the froyo user.conf file and everything works but the keyboard? Ideas why that would be?

Code:
NAND_Settings{
     #BACKLIGHT
     echo 50 >/sys/class/leds/lcd-backlight/brightness
     #LCD_Density
     echo "ro.sf.lcd_density=240" >> /etc/default.prop    #210 or 240
     echo Setting ro.sf.lcd_density=240                    #210 or 240
     #Keyboard Layout
     cp -f /init.etc/keymaps/rhod500_microp-keypad.kl /etc/keymaps/microp-keypad.kl
     cp -f /init.etc/keymaps/rhod500_microp-keypad.kcm.bin /etc/keymaps/microp-keypad.kcm.bin
 }
Reply With Quote
  #338 (permalink)  
Old 10-26-2010, 05:36 PM
natemcnutty's Avatar
VIP Member
Offline
Pocket PC: VZW Touch Pro 2
Carrier: Verizon Wireless
Threadstarter
 
Join Date: Nov 2009
Posts: 845
Reputation: 3070
natemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Wirelessly posted (Opera/9.80 (Windows Mobile; Opera Mini/5.1.21594/21.529; U; en) Presto/2.5.25 Version/10.54)

Quote:
Originally Posted by [ACL
]
Quote:
Originally Posted by Lmiller1708 View Post
I figured out how we can change the density for NAND. (For now...)
I also added the lcd-blacklight command from above. It works.

With this code you just need to place a file named "LCDDENSITY.240" or "LCDDENSITY.210" in the andboot folder of your SD Card.

Code:
echo 50 >/sys/class/leds/lcd-backlight/brightness

LCDDENSITY=`/bin/grep -o "lcd.density=.*" /proc/cmdline | /bin/sed -e "s/.*lcd.density=//g" -e "s/ .*//g"`


if [ "$LCDDENSITY" != "" ] ; then
    echo "ro.sf.lcd_density=$LCDDENSITY" >> /etc/default.prop
    echo Setting ro.sf.lcd_density=$LCDDENSITY
elif    
    [ -f $card/LCDDENSITY.240 ] ; then
    echo "ro.sf.lcd_density=240" >> /etc/default.prop
    echo Setting ro.sf.lcd_density=240
elif    
    [ -f $card/LCDDENSITY.210 ] ; then
    echo "ro.sf.lcd_density=210" >> /etc/default.prop
    echo Setting ro.sf.lcd_density=210
fi
yeah that works.. same thing we did for the keyboard. Im trying to avoid butchering the rootfs tho. Unless you guys want to maintain a nand version?

did you try the conf file i mentioned? this is already in place so it should not need modds to the rootfs.

Keep min mind we could also butcher the initramfs to do anything we want. This rarely changes so we could always have it do stuff. Nate what do u think about that?
I agree. I'm a big automation person, so I'd also love to find an actual solution that doesn't require random files in the andboot folder.

I was thinking about modding htc_hw to output the machine_varient to somewhere more permanent that would be read during init to assign keymapping. This would map properly on all boots after the first one unless there were a way to invoke it before init.
Reply With Quote
This post has been thanked 1 times.
  #339 (permalink)  
Old 10-26-2010, 06:04 PM
[ACL]'s Avatar
VIP Member
Offline
Pocket PC: tp2
Carrier: Sprint
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: NAND Boot Testing - Keyboard Mapping Fixed, HW3D, and Battery Algo Update

Quote:
Originally Posted by Lmiller1708 View Post
I added this to the froyo user.conf file and everything works but the keyboard? Ideas why that would be?

Code:
NAND_Settings{
     #BACKLIGHT
     echo 50 >/sys/class/leds/lcd-backlight/brightness
     #LCD_Density
     echo "ro.sf.lcd_density=240" >> /etc/default.prop    #210 or 240
     echo Setting ro.sf.lcd_density=240                    #210 or 240
     #Keyboard Layout
     cp -f /init.etc/keymaps/rhod500_microp-keypad.kl /etc/keymaps/microp-keypad.kl
     cp -f /init.etc/keymaps/rhod500_microp-keypad.kcm.bin /etc/keymaps/microp-keypad.kcm.bin
 }
In theory you are correct but since this script exectues right before the kb section on the init, then it gets ignored. So best bet is to mod the cmdline on the fly.

echo 'physkeyboard=rhod400 ' `cat /proc/cmdline` > /tmp/cmdline
mount --bind /tmp/cmdline /proc/cmdline


Give that a try. .. Its ugly, but it will do for now.
Reply With Quote
This post has been thanked 3 times.
  #340 (permalink)  
Old 10-27-2010, 01:06 AM
natemcnutty's Avatar
VIP Member
Offline
Pocket PC: VZW Touch Pro 2
Carrier: Verizon Wireless
Threadstarter
 
Join Date: Nov 2009
Posts: 845
Reputation: 3070
natemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIPnatemcnutty is still contributing even after becoming a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: NAND Boot Testing - Keyboard Mapping Fixed, HW3D, and Battery Algo Update

Quote:
Originally Posted by coolsilver View Post
Same I would like to at least know how it works.
The guide to compile ended up being much larger than I had planned, so in an effort to keep this thread clean and allow for feedback, I created a new post about compiling. You can check it out here:

http://forum.ppcgeeks.com/tp2-androi...beginners.html
Reply With Quote
This post has been thanked 3 times.
Reply

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


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 08:28 PM.


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