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

Notices


Reply
 
LinkBack Thread Tools Display Modes
  #141 (permalink)  
Old 04-05-2011, 11:27 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 oisact View Post
The first line is missing "git clone" at the beginning.
The second repository, xdandroid-eclair/eclair-rootfs.git cannot be found.
Thanks, they changed it because eclair in the name wasn't good. I fixed both in the first post, and I have updated the script. My VM is down right now, so I filled in the squashfs-tools part as best as I could remember. Let me know if you find anything not working, and I'll update it (or I'll fix anything I see once my VM is done repairing...
__________________
Reply With Quote
  #142 (permalink)  
Old 04-06-2011, 05:33 AM
oisact's Avatar
PPCGeeks Regular
Offline
Pocket PC: TP2
Carrier: None
 
Join Date: Jan 2011
Posts: 52
Reputation: 40
oisact 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

Thanks. I got it. I'm trying to build under OSX. The main difference is that OSX filesystem is typically not case sensitive by default, so you have to create an image that is case sensitive in which to build Android. It seems the paths are hardcoded to the user's root directory though. So it's looking in /Users/USERNAME/android/prebuilt/...etc for GCC. In my case it needs to be looking in /Volumes/Android/prebuilt/...

So I might have to tweak some makefiles or shell variables. I'll post here if I have success building under OSX.
Reply With Quote
  #143 (permalink)  
Old 04-06-2011, 12:47 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 (Android; Opera Mini/6.0.24463/24.746; U; en) Presto/2.5.25 Version/10.54)

Quote:
Originally Posted by oisact
Thanks. I got it. I'm trying to build under OSX. The main difference is that OSX filesystem is typically not case sensitive by default, so you have to create an image that is case sensitive in which to build Android. It seems the paths are hardcoded to the user's root directory though. So it's looking in /Users/USERNAME/android/prebuilt/...etc for GCC. In my case it needs to be looking in /Volumes/Android/prebuilt/...

So I might have to tweak some makefiles or shell variables. I'll post here if I have success building under OSX.
I'm not very familiar with OS X, but for the git cloning part, just make a folder somewhere like your desktop, then use bash to browse into that folder and start cloning in there. Then if you use my sh script, you can just change the variable for the Android folder path in the header section. and it should work great after that.
Reply With Quote
  #144 (permalink)  
Old 04-06-2011, 08:32 PM
oisact's Avatar
PPCGeeks Regular
Offline
Pocket PC: TP2
Carrier: None
 
Join Date: Jan 2011
Posts: 52
Reputation: 40
oisact 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

I'm making progress. The build command has to be tweaked to use the right set of gcc binaries for OSX:

Code:
make ARCH=arm CROSS_COMPILE=~/android/prebuilt/darwin-x86/toolchain/arm-eabi-4.4.0/bin/arm-eabi-  INSTALL_MOD_PATH=~/android/modules zImage modules modules_install
mk_elfconfig.c is failing to compile because it can't find the header elf.h, so I think that an include path is not being set.

However just prior to that sed is failing in scripts/checksyscalls.sh with what appears to be a malformed regular expression: "bad flag in substitute command: '}'.
Reply With Quote
  #145 (permalink)  
Old 04-06-2011, 09:24 PM
oisact's Avatar
PPCGeeks Regular
Offline
Pocket PC: TP2
Carrier: None
 
Join Date: Jan 2011
Posts: 52
Reputation: 40
oisact 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

Others have had this problem as well building linux in general under OSX. Here's one specific to Android, exact same errors I see:
Issue 2755 - android - Cannot build ARM android/linux kernel on Mac OS - Android - An Open Handset Alliance Project - Google Project Hosting

This solution seems to be working. It completed building but I don't know if it produced anything patent. Still had errors related to mk_elfconfig.c, but it continued on.
Reply With Quote
  #146 (permalink)  
Old 04-06-2011, 09:57 PM
oisact's Avatar
PPCGeeks Regular
Offline
Pocket PC: TP2
Carrier: None
 
Join Date: Jan 2011
Posts: 52
Reputation: 40
oisact 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

Okay, my build produced 53 .ko files and my modules tar.gz is 7 MB. The various FRX0 builds' modules are less than 1 MB. Am I doing something wrong?
Reply With Quote
  #147 (permalink)  
Old 04-06-2011, 11:55 PM
rpierce99's Avatar
PPCGeeks Regular
Offline
Pocket PC: HTC Touch Pro 2 (RHOD 400)
Carrier: Sprint
 
Join Date: Jan 2011
Posts: 85
Reputation: 175
rpierce99 is keeping up the good workrpierce99 is keeping up the good work
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 oisact View Post
Okay, my build produced 53 .ko files and my modules tar.gz is 7 MB. The various FRX0 builds' modules are less than 1 MB. Am I doing something wrong?
When you build modules they have debugging symbols included, you need to strip the files before you tar.gz them.
__________________
HTC Touch Pro 2 - RHOD400 - Sprint - FRX07
Reply With Quote
  #148 (permalink)  
Old 04-07-2011, 09:07 AM
oisact's Avatar
PPCGeeks Regular
Offline
Pocket PC: TP2
Carrier: None
 
Join Date: Jan 2011
Posts: 52
Reputation: 40
oisact 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

Thanks. The strip command in the darwin_x86 bin directory must be used on OSX. The native strip command doesn't work.

It appears everything is building successfully, however the booting freezes just after haret finishes loading and it vibrates twice. No black console boot screen is displayed.

I'm not entirely clear on modules tarball. According to the instructions in this thread, I thought that it should have a data/modules folder structure, in which the ko files reside. However looking at the FRX05 modules tar.gz shows a flat file structure. I've tried both.

Any suggestions on how to proceed from here? Anyone want to take a look at the zimage and modules tarball I've built?
Reply With Quote
  #149 (permalink)  
Old 04-07-2011, 10:31 AM
oisact's Avatar
PPCGeeks Regular
Offline
Pocket PC: TP2
Carrier: None
 
Join Date: Jan 2011
Posts: 52
Reputation: 40
oisact 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

I'm using the following script to automatically generate the proper module tarball name so I don't have to rename it manually:

Code:
# Generate module name. Assumes lib/modules contains one subdir with the target name
cd $MODULES_PATH/lib/modules
MODNAME=$(ls -d */)
MODNAME=modules-${MODNAME%/}.tar.gz
Just thought you might want to incorporate it in your build script to save the manual work.
Reply With Quote
  #150 (permalink)  
Old 04-07-2011, 10:37 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: How To Compile Your Own Kernels, Modules, Tinboot (NAND boot), and More for Begin

Quote:
Originally Posted by oisact View Post
Thanks. The strip command in the darwin_x86 bin directory must be used on OSX. The native strip command doesn't work.

It appears everything is building successfully, however the booting freezes just after haret finishes loading and it vibrates twice. No black console boot screen is displayed.

I'm not entirely clear on modules tarball. According to the instructions in this thread, I thought that it should have a data/modules folder structure, in which the ko files reside. However looking at the FRX05 modules tar.gz shows a flat file structure. I've tried both.

Any suggestions on how to proceed from here? Anyone want to take a look at the zimage and modules tarball I've built?
Nand does not use the modules as a tar ball anymore. We use squash and they need to be made with version 3.4 (not the most recent one).
Nate posted how to install:
Quote:
To set upsquashfs tools, download squashfs tools from here: ftp://ftp.slax.org/source/slax/sqlzm...shfs3.4.tar.gz
Now, extract the files, then browse into the squashfs3.4/squashfs-tools folder, then type make, then sudo make install.
As for you not being able to get past the frist boot screen it seems like your NBH is not being made correctly. We are in the process of changing the making all together. So you can test it for us.
Steps:
1. Add the attached nbgen.c to the tinboot/tool folder.
2. Change your Build or the NBH to this: (see my example)
Code:
echo "Creating NB..."
rm tools/nbgen    
if [ ! -f tools/nbgen ]; then
    gcc -std=c99 tools/nbgen.c -o tools/nbgen
fi
tools/nbgen os.nb
3. Build and enjoy!

If this does not work it could be something with wine and the yang tool.
So I also attached a different one. Try that out with this command:
Code:
tools/yang -F RHODIMG.NBH -f os.nb -t 0x400 -s 64 -d RHOD****0 -c 11111111 -v Tinboot -l WWE >> tools/log

Good luck!
Attached Files
File Type: zip Build_New.zip (8.8 KB, 12 views) Click for barcode!
__________________
Reply With Quote
Reply

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

Thread Tools
Display Modes

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 02:11 PM.


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