PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   Android On TP2 Development (http://forum.ppcgeeks.com/forumdisplay.php?f=319)
-   -   NAND Testing - 05-25 Update: New LK, Recovery.img, Kernel Updates through Recovery (http://forum.ppcgeeks.com/showthread.php?t=134598)

coolsilver 10-26-2010 10:28 AM

Re: NAND Boot Testing - Keyboard Mapping Fixed, HW3D, and Battery Algo Update
 
Quote:

Originally Posted by Lmiller1708 (Post 1981495)
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.

natemcnutty 10-26-2010 11:25 AM

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 (Post 1981495)
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 ;)

Lmiller1708 10-26-2010 11:31 AM

Re: NAND Boot Testing - HW3D Fixed: 10-21, Auto-brightness Testing: 10-24
 
Quote:

Originally Posted by natemcnutty (Post 1981576)
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! :grin:

Lmiller1708 10-26-2010 04:04 PM

Re: NAND Boot Testing - Keyboard Mapping Fixed, HW3D, and Battery Algo Update
 
Quote:

Originally Posted by [ACL] (Post 1981358)
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


[ACL] 10-26-2010 05:02 PM

Re: NAND Boot Testing - Keyboard Mapping Fixed, HW3D, and Battery Algo Update
 
Quote:

Originally Posted by Lmiller1708 (Post 1981794)
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?

Lmiller1708 10-26-2010 05:07 PM

Re: NAND Boot Testing - Keyboard Mapping Fixed, HW3D, and Battery Algo Update
 
Quote:

Originally Posted by [ACL] (Post 1981841)
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.

Lmiller1708 10-26-2010 05:29 PM

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
 }


natemcnutty 10-26-2010 05:36 PM

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 (Post 1981794)
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.

[ACL] 10-26-2010 06:04 PM

Re: NAND Boot Testing - Keyboard Mapping Fixed, HW3D, and Battery Algo Update
 
Quote:

Originally Posted by Lmiller1708 (Post 1981861)
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.

natemcnutty 10-27-2010 01:06 AM

Re: NAND Boot Testing - Keyboard Mapping Fixed, HW3D, and Battery Algo Update
 
Quote:

Originally Posted by coolsilver (Post 1981538)
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


All times are GMT -4. The time now is 06:39 PM.

Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com


Content Relevant URLs by vBSEO 3.6.0