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
  #41 (permalink)  
Old 11-08-2010, 06:48 PM
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

For three days now because i didn't want to ask a stupid question.... I guess I can be considered a newbie when it comes to nand but I really want to learn this. I have a rhod400 and when I reach the point where I am supposed to crun sh buildxip.sh rhod400 I don't have that file although I do have makexip but it throws errors as follows

reese@reese-laptop:~/android/tinboot-linux-msm$ sh makexip.sh rhod500
Compile the tinboot/xip for rhod500.....
makexip.sh: 24: arm-eabi-as: not found
makexip.sh: 25: arm-eabi-objcopy: not found
mv: cannot stat `tinbootxip': No such file or directory
rm: cannot remove `tinboot.o': No such file or directory
reese@reese-laptop:~/android/tinboot-linux-msm$

What am I doing wrong?
Reply With Quote
This post has been thanked 1 times.
  #42 (permalink)  
Old 11-08-2010, 07:09 PM
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

BTW I am using ubuntu 10.10 (not a virtual) I don't see that causing a problem. I also have followed the steps - step by step - what must be up to at least 30 times now.
Reply With Quote
This post has been thanked 1 times.
  #43 (permalink)  
Old 11-08-2010, 10:41 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
For three days now because i didn't want to ask a stupid question.... I guess I can be considered a newbie when it comes to nand but I really want to learn this. I have a rhod400 and when I reach the point where I am supposed to crun sh buildxip.sh rhod400 I don't have that file although I do have makexip but it throws errors as follows

reese@reese-laptop:~/android/tinboot-linux-msm$ sh makexip.sh rhod500
Compile the tinboot/xip for rhod500.....
makexip.sh: 24: arm-eabi-as: not found
makexip.sh: 25: arm-eabi-objcopy: not found
mv: cannot stat `tinbootxip': No such file or directory
rm: cannot remove `tinboot.o': No such file or directory
reese@reese-laptop:~/android/tinboot-linux-msm$

What am I doing wrong?
You aren't doing anything wrong. The makexip.sh script does not work for me either which is why I re-wrote it. The export commands in the original script never worked, so I just used direct paths instead. You can use the script below and just set the variables at the beginning

Code:
# Set the following variables 
# ANDROID -- directory with all android sources 
ANDROID=~/android 
# TINBOOT -- tinboot directory 
TINBOOT=$ANDROID/tinboot-linux-msm 
# KERNEL_PATH -- directory containing the linux-msm kernel source 
KERNEL_PATH=$ANDROID/linux-msm-rhod-nand 
# TOOLCHAIN_PATH -- directory containing the arm toolchain 
TOOLCHAIN_PATH=$ANDROID/prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi 
# MODULES_PATH -- directory containing compcache and tiwlan directories 
MODULES_PATH=$TINBOOT/modules 
# OUTPUT_PATH -- directory to write the kernel and modules gzip 
OUTPUT_PATH=$ANDROID/output 
#------------------------------------------------------------------------- 

# Remove old XIP if it exists 
cd $TINBOOT if [  -f xip/"$1" ]; then     
rm xip/$1     
echo Deleting old $1 
fi  

# compile tinboot XIP 
echo "Start compiling tinboot/xip for $1....." 
$TOOLCHAIN_PATH-as  tinboot/tinboot2.S -o tinboot.o --defsym $1=1 --defsym MTYPE=2292 --defsym hw3d=1  
$TOOLCHAIN_PATH-objcopy tinboot.o -O binary tinbootxip mv tinbootxip xip/$1  

# cleanup tinboot 
rm tinboot.o  

# make sure XIP build was successful
if [ ! -f xip/"$1" ] ; then     
echo "XIP build failed. XIP file was not found."     
exit 
fi

Last edited by natemcnutty; 11-09-2010 at 04:01 PM.
Reply With Quote
  #44 (permalink)  
Old 11-09-2010, 12:21 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)
Part of nate's script copies what you need to build the XIP.

Most have used it. It is a lot simpler to build it all since somethings need to be rebuilt at the same time.

Sent from my HTC Touch Pro 2 on Android with Tapatalk Pro.
Reply With Quote
  #45 (permalink)  
Old 11-09-2010, 08:46 PM
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

Thank you. How about building zimages? Do you have a link to information on that? I will be searching for it but i figured it wouldn't hurt to ask here first. Again, Thanks!
Reply With Quote
This post has been thanked 1 times.
  #46 (permalink)  
Old 11-09-2010, 11:21 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.549; U; en) Presto/2.5.25 Version/10.54)

Quote:
Originally Posted by maurice.green
Thank you. How about building zimages? Do you have a link to information on that? I will be searching for it but i figured it wouldn't hurt to ask here first. Again, Thanks!
It's all in the first post. The zImage is a compressed kernel. Basically, go to the root of the linux-msm clone, do make defconfig, then make cross compile. That's all there is to it. No need to do tinboot or anything else.
__________________
Reply With Quote
  #47 (permalink)  
Old 11-28-2010, 10:47 PM
tiger2wander's Avatar
PPCGeeks Regular
Offline
Pocket PC: Verizon TP2 CDMA XV6875 (RHOD500) - O2 XDA IIs
Carrier: VN Mobifone (GSM, 3G)
 
Join Date: Feb 2009
Posts: 107
Reputation: 150
tiger2wander is keeping up the good worktiger2wander is keeping up the good work
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: How To Compile Your Own Kernels, Modules, Tinboot (for NAND booting), and More

Thanks you for great "how to" post!
Reply With Quote
  #48 (permalink)  
Old 11-30-2010, 04:48 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.572; U; en) Presto/2.5.25 Version/10.54)

Quote:
Originally Posted by tiger2wander
Thanks you for great "how to" post!
glad others are finding it useful. And thanks for reminding me, I need to keep updating the first post for rootfs and initrd that I never got around to
Reply With Quote
  #49 (permalink)  
Old 12-04-2010, 11:50 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: How To Compile Your Own Kernels, Modules, Tinboot (NAND boot), and More for Begin

how to compile only one modules, example folder hardware/android-htc-ril
Reply With Quote
  #50 (permalink)  
Old 12-04-2010, 08:50 PM
siwsales's Avatar
Lurker
Offline
Pocket PC: VX6700, VX6800, Motorola Q, Palm Tero 700w
Carrier: VZW
 
Join Date: Sep 2009
Posts: 1
Reputation: 0
siwsales is a n00b
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: How To Compile Your Own Kernels, Modules, Tinboot (NAND boot), and More for Begin

Im looking for a build for a Motorola Q and Q9 CDMA versions and a Palm Treo 700w can you help i have tried tons of defferent one and no luck if you can send me a private message on how to build on windows 7
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:22 PM.


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