PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   Android On TP2 (http://forum.ppcgeeks.com/forumdisplay.php?f=179)
-   -   How To Compile Your Own Kernels, Modules, Tinboot (NAND boot), and More for Beginners (http://forum.ppcgeeks.com/showthread.php?t=136054)

maurice.green 11-08-2010 06:48 PM

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?

maurice.green 11-08-2010 07:09 PM

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.

natemcnutty 11-08-2010 10:41 PM

Re: How To Compile Your Own Kernels, Modules, Tinboot (NAND boot), and More for Begin
 
Quote:

Originally Posted by maurice.green (Post 1990790)
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


coolsilver 11-09-2010 12:21 AM

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.

maurice.green 11-09-2010 08:46 PM

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!

natemcnutty 11-09-2010 11:21 PM

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.

tiger2wander 11-28-2010 10:47 PM

Re: How To Compile Your Own Kernels, Modules, Tinboot (for NAND booting), and More
 
Thanks you for great "how to" post!

natemcnutty 11-30-2010 04:48 AM

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 :p

muziling 12-04-2010 11:50 AM

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

siwsales 12-04-2010 08:50 PM

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


All times are GMT -4. The time now is 10:04 AM.

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


Content Relevant URLs by vBSEO 3.6.0