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

Notices


Reply
 
LinkBack Thread Tools Display Modes
  #61 (permalink)  
Old 12-25-2010, 02:24 PM
MassStash's Avatar
Regular 'Geeker
Offline
Pocket PC: Rhodium
Carrier: Sprint
Location: Il
 
Join Date: Oct 2008
Posts: 437
Reputation: 285
MassStash is becoming a PPCGeeks regularMassStash is becoming a PPCGeeks regularMassStash is becoming a PPCGeeks regular
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: How To Compile Your Own Kernels, Modules, Tinboot (NAND boot), and More for Begin

that is awesome mr. green! send some stuff to test my way bro
__________________
Rockin' The Official TouchPro 2 aka "The dopest phone with keyboard still":
F**k windows mobile, NAND flash to droid....
Reply With Quote
  #62 (permalink)  
Old 12-25-2010, 07:44 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)
Re: How To Compile Your Own Kernels, Modules, Tinboot (NAND boot), and More for Begin

Quote:
Originally Posted by maurice.green View Post
Tinboot modified to allow the modules to be combined with the kernel. Its not completed as of yet as I have only been working on the rhod400. I will modify in the next day to support other keyboards. If you would like to try send me a message and I will send you the zImage and the modified tinboot. Also I have been able to create mtd 0 - 4 on the nand so we are just about there.

Combining the ext2 was just a process of merging it into the rootfs system folder since thats where its mounted to anyway, although I am now thinking of moving it to its own partition. The idea is that you would be able to update any component with a rom flash with out touching the other components. The data file I have not been to worried about as it will be empty on first load anyway. I will bind it to mtd4. I went with 4 partitions because I wanted to have a recovery partition available. Merry Christmas!
Maurice, this sounds awesome. If you have a chance, would you mind PM'ing me the details of your tinboot2.S file or build script as to how you are creating multiple partitions? Also, I thought I could help you out with the keyboard assignment portion. Just replace the keyboard section for init (in rootfs) with this:
Code:
LAYOUT=`/bin/grep ".*0*" /sys/class/htc_hw/machine_variant`

if [ -e $card/tilt2.kb ] ; then
        echo "USING EXPERIMENTAL TILT2 LAYOUT"
        cp -f /init.etc/keymaps/tilt2_microp-keypad.kl /etc/keymaps/microp-keypad.kl
        cp -f /init.etc/keymaps/tilt2_microp-keypad.kcm.bin /etc/keymaps/microp-keypad.kcm.bin
        cp -f /init.etc/keymaps/tilt2_navi_pad.kl /etc/keymaps/raph_navi_pad.kl
elif [ -e $card/rhod210.kb ] ; then
        echo "USING EXPERIMENTAL RHOD210 LAYOUT"
        cp -f /init.etc/keymaps/rhod210_microp-keypad.kl /etc/keymaps/microp-keypad.kl
        cp -f /init.etc/keymaps/rhod210_microp-keypad.kcm.bin /etc/keymaps/microp-keypad.kcm.bin
        cp -f /init.etc/keymaps/rhod210_navi_pad.kl /etc/keymaps/raph_navi_pad.kl
elif [ -e $card/rhod400.kb ] ; then
        echo "USING EXPERIMENTAL RHOD400 LAYOUT"
        cp -f /init.etc/keymaps/rhod400_microp-keypad.kl /etc/keymaps/microp-keypad.kl
        cp -f /init.etc/keymaps/rhod400_microp-keypad.kcm.bin /etc/keymaps/microp-keypad.kcm.bin
        cp -f /init.etc/keymaps/rhod400_navi_pad.kl /etc/keymaps/raph_navi_pad.kl #does not exist, just following example
elif [ -e $card/rhod500.kb ] ; then
        echo "USING EXPERIMENTAL RHOD500 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
        cp -f /init.etc/keymaps/rhod500_navi_pad.kl /etc/keymaps/raph_navi_pad.kl #does not exist, just following example
elif [ -e $card/rhod100_de.kb] ; then
        echo "USING RHOD100 DE LAYOUT"
        cp -f /init.etc/keymaps/rhod100_de_microp-keypad.kl /etc/keymaps/microp-keypad.kl
        cp -f /init.etc/keymaps/rhod100_de_microp-keypad.kcm.bin /etc/keymaps/microp-keypad.kcm.bin
        cp -f /init.etc/keymaps/rhod100_de_navi_pad.kl /etc/keymaps/raph_navi_pad.kl
elif [ -e $card/rhod100_fr.kb] ; then
        echo "USING RHOD100 FR LAYOUT"
        cp -f /init.etc/keymaps/rhod100_fr_microp-keypad.kl /etc/keymaps/microp-keypad.kl
        cp -f /init.etc/keymaps/rhod100_fr_microp-keypad.kcm.bin /etc/keymaps/microp-keypad.kcm.bin
        cp -f /init.etc/keymaps/rhod100_fr_navi_pad.kl /etc/keymaps/raph_navi_pad.kl
elif [ -e $card/rhod100_it.kb] ; then
        echo "USING RHOD100 IT LAYOUT"
        cp -f /init.etc/keymaps/rhod100_it_microp-keypad.kl /etc/keymaps/microp-keypad.kl
        cp -f /init.etc/keymaps/rhod100_it_microp-keypad.kcm.bin /etc/keymaps/microp-keypad.kcm.bin
        cp -f /init.etc/keymaps/rhod100_it_navi_pad.kl /etc/keymaps/raph_navi_pad.kl
elif [ -e $card/rhod100_uk.kb] ; then
        echo "USING RHOD100 UK LAYOUT"
        cp -f /init.etc/keymaps/rhod100_uk_microp-keypad.kl /etc/keymaps/microp-keypad.kl
        cp -f /init.etc/keymaps/rhod100_uk_microp-keypad.kcm.bin /etc/keymaps/microp-keypad.kcm.bin
        cp -f /init.etc/keymaps/rhod100_uk_navi_pad.kl /etc/keymaps/raph_navi_pad.kl
elif [ -e $card/rhod100_nordic.kb] ; then
        echo "USING RHOD100 NORDIC LAYOUT"
        cp -f /init.etc/keymaps/rhod100_nordic_microp-keypad.kl /etc/keymaps/microp-keypad.kl
        cp -f /init.etc/keymaps/rhod100_nordic_microp-keypad.kcm.bin /etc/keymaps/microp-keypad.kcm.bin
        cp -f /init.etc/keymaps/rhod100_nordic_navi_pad.kl /etc/keymaps/raph_navi_pad.kl
elif [ $LAYOUT = "TILT2000" ] ; then
        echo "USING EXPERIMENTAL TILT2 LAYOUT"
        cp -f /init.etc/keymaps/tilt2_microp-keypad.kl /etc/keymaps/microp-keypad.kl
        cp -f /init.etc/keymaps/tilt2_microp-keypad.kcm.bin /etc/keymaps/microp-keypad.kcm.bin
        cp -f /init.etc/keymaps/tilt2_navi_pad.kl /etc/keymaps/raph_navi_pad.kl
elif [ $LAYOUT = "RHOD21000" ] ; then
        echo "USING EXPERIMENTAL RHOD210 LAYOUT"
        cp -f /init.etc/keymaps/rhod210_microp-keypad.kl /etc/keymaps/microp-keypad.kl
        cp -f /init.etc/keymaps/rhod210_microp-keypad.kcm.bin /etc/keymaps/microp-keypad.kcm.bin
        cp -f /init.etc/keymaps/rhod210_navi_pad.kl /etc/keymaps/raph_navi_pad.kl
elif [ $LAYOUT = "RHOD40000" ] ; then
        echo "USING EXPERIMENTAL RHOD400 LAYOUT"
        cp -f /init.etc/keymaps/rhod400_microp-keypad.kl /etc/keymaps/microp-keypad.kl
        cp -f /init.etc/keymaps/rhod400_microp-keypad.kcm.bin /etc/keymaps/microp-keypad.kcm.bin
        cp -f /init.etc/keymaps/rhod400_navi_pad.kl /etc/keymaps/raph_navi_pad.kl #does not exist, just following example
elif [ $LAYOUT = "RHOD50000" ] ; then
        echo "USING EXPERIMENTAL RHOD500 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
        cp -f /init.etc/keymaps/rhod500_navi_pad.kl /etc/keymaps/raph_navi_pad.kl #does not exist, just following example
else
        echo "DEFAULTING TO RHOD500 LAYOUT BECAUSE WE CAN'T DETERMINE YOUR MODEL TYPE AND NO .KB FILE EXISTS IN ANDBOOT FOLDER ON THE SD CARD!"
        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
        cp -f /init.etc/keymaps/rhod500_navi_pad.kl /etc/keymaps/raph_navi_pad.kl #does not exist, just following example
fi
Notes: You can leave off the .kb file overrides as I only added those until we got all of the variant values. We still don't have them for all of the rhod100 variants or tilt2 (that I know of), but the variable machine_variant is there to pull from on NAND. Also,

Last edited by natemcnutty; 12-25-2010 at 07:52 PM.
Reply With Quote
  #63 (permalink)  
Old 12-27-2010, 08:05 AM
maurice.green's Avatar
Lurker
Offline
Pocket PC: none
Carrier: metro
 
Join Date: Oct 2010
Posts: 8
Reputation: 75
maurice.green is becoming a great contributor
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: How To Compile Your Own Kernels, Modules, Tinboot (NAND boot), and More for Begin

Thanks for the keymap info nate although I want to load the keymaps before loading the root fs so the the keyboards are avail at the init terminal prompt. I think I have that all worked out now. The link attached does not boot into android but is more to show that I do have all of the drivers embedded into the kernel so we have done away with the external modules. I have left the ability to load external modules intact if for some reason someone wanted to. The link I am posting is to the nbh file. Make sure you have you original nbh file to flash back to after testing. You'll notice when booting that all the drivers are initialized during the boot. I am now working on completely re-witting the tinboot, which is the last step before we are completely booting from the nand. The I will re-write the init for the root fs. I have already rewritten the initrd init as you will notice from this test and it is ready to access the rootfs from the nand. I have a heavy workload today so I probably won't get much done with this today but I am still projecting by Friday I will be done.

-
-

Download RHODIMG.NBH, upload your files and earn money.
Reply With Quote
This post has been thanked 3 times.
  #64 (permalink)  
Old 12-27-2010, 11:24 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: How To Compile Your Own Kernels, Modules, Tinboot (NAND boot), and More for Begin

Quote:
Originally Posted by maurice.green View Post
I think I have that all worked out now... I am now working on completely re-witting the tinboot, which is the last step before we are completely booting from the nand. The I will re-write the init for the root fs. I have already rewritten the initrd init as you will notice from this test and it is ready to access the rootfs from the nand. I have a heavy workload today so I probably won't get much done with this today but I am still projecting by Friday I will be done...
Awesome news maurice. Keep up the great work, can't wait for full NAND!
Reply With Quote
  #65 (permalink)  
Old 12-27-2010, 04:38 PM
MassStash's Avatar
Regular 'Geeker
Offline
Pocket PC: Rhodium
Carrier: Sprint
Location: Il
 
Join Date: Oct 2008
Posts: 437
Reputation: 285
MassStash is becoming a PPCGeeks regularMassStash is becoming a PPCGeeks regularMassStash is becoming a PPCGeeks regular
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: How To Compile Your Own Kernels, Modules, Tinboot (NAND boot), and More for Begin

That's awesome Mr. Green! i hear ya on that workload stuff. Got the day off finally however, n tryin to see what i can't test out n try help with. Great work on this man, you're really making peoples dreams come true as well your own I'm sure. haha

can we get an update on any progress acl? still going somewhat smoothly?

Booting mods n kernel 01224 right now....

update: Running really well. For some reason, something i am adding i think is not allowing livewallpapers. silly. But everything else running as it should at this point

update: seems sometimes if i just let the 2min auto panel off go, it will come back on more reliably then actually hitting the end button to turn screen off....

update: How's thangs Mr. Green? get anything in over the last 4days, or stuff that rough for ya lately?? how was the new year's for ya?

Last edited by MassStash; 01-01-2011 at 09:55 PM.
Reply With Quote
  #66 (permalink)  
Old 01-03-2011, 12:42 AM
guruvince's Avatar
N00b
Offline
Pocket PC: Rhodium 400
Carrier: sprint
Location: waikiki, Hawaii
 
Join Date: Nov 2008
Posts: 44
Reputation: 35
guruvince is just getting started
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: How To Compile Your Own Kernels, Modules, Tinboot (NAND boot), and More for Begin

Maurice.Green we miss you.
Reply With Quote
  #67 (permalink)  
Old 01-03-2011, 01:23 AM
MassStash's Avatar
Regular 'Geeker
Offline
Pocket PC: Rhodium
Carrier: Sprint
Location: Il
 
Join Date: Oct 2008
Posts: 437
Reputation: 285
MassStash is becoming a PPCGeeks regularMassStash is becoming a PPCGeeks regularMassStash is becoming a PPCGeeks regular
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: How To Compile Your Own Kernels, Modules, Tinboot (NAND boot), and More for Begin

Quote:
Originally Posted by guruvince View Post
Maurice.Green we miss you.
lol werd...
Reply With Quote
  #68 (permalink)  
Old 01-03-2011, 11:35 AM
maurice.green's Avatar
Lurker
Offline
Pocket PC: none
Carrier: metro
 
Join Date: Oct 2010
Posts: 8
Reputation: 75
maurice.green is becoming a great contributor
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: How To Compile Your Own Kernels, Modules, Tinboot (NAND boot), and More for Begin

Took on five new projects that are demanding a lot of my time. As soon as I can get back to this I will.
Reply With Quote
  #69 (permalink)  
Old 01-03-2011, 11:47 AM
MassStash's Avatar
Regular 'Geeker
Offline
Pocket PC: Rhodium
Carrier: Sprint
Location: Il
 
Join Date: Oct 2008
Posts: 437
Reputation: 285
MassStash is becoming a PPCGeeks regularMassStash is becoming a PPCGeeks regularMassStash is becoming a PPCGeeks regular
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: How To Compile Your Own Kernels, Modules, Tinboot (NAND boot), and More for Begin

Quote:
Originally Posted by maurice.green View Post
Took on five new projects that are demanding a lot of my time. As soon as I can get back to this I will.
ah f*ck. looks like things are gonna be stagnant... haha

Last edited by MassStash; 01-03-2011 at 11:58 AM.
Reply With Quote
  #70 (permalink)  
Old 01-04-2011, 09:25 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)
Re: How To Compile Your Own Kernels, Modules, Tinboot (NAND boot), and More for Begin

Quote:
Originally Posted by maurice.green View Post
Took on five new projects that are demanding a lot of my time. As soon as I can get back to this I will.
If you wouldn't mind, could you zip up your tinboot and initramfs folders and let me take a peek? I'm just curious if you are doing something like this for referencing the partitions:

Code:
mtdparts=msm_nand:0x00300000@0x1600000(boot),0x00040000@0x01900000(root),0x066C0000@0x01940000(system),0x08000000@0x08000000(userdata)
I'm also curious how you are creating the partitions

Last edited by natemcnutty; 01-04-2011 at 09:42 PM.
Reply With Quote
Reply

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


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 06:16 AM.


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