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
  #161 (permalink)  
Old 07-12-2011, 02:21 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 boot.img from
https://gitorious.org/tinboot-for-linux-msm/bootenv/trees/master ?
Reply With Quote
  #162 (permalink)  
Old 07-12-2011, 08:25 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 muziling View Post
Here are some scripts I put together to make the boot.img and recovery.img.

command: sudo sh Build_IMG.sh boot <--- Can add recovery to end if you want.

You will need to extract the newest boot.img and recovery.img from the auto-build site using the split_bootimg.pl code. Google it.

The only other thing you will need to change is the cmdline in both the buildboot.sh and buildrecovery.sh files.

If you then have everything else setup like Nate does on this forum you should be good to go!

Have fun!
Attached Files
File Type: zip MakeImg.zip (4.12 MB, 42 views) Click for barcode!
__________________
Reply With Quote
  #163 (permalink)  
Old 07-27-2011, 11:54 AM
Charles481's Avatar
Lurker
Offline
Pocket PC: Touch Diamond2
Carrier: CHINA MOBILE
 
Join Date: Jul 2011
Posts: 4
Reputation: 0
Charles481 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

I'm Haret user.Would you tell me how to make modules-2.6.27.46-01192-version.tar.gz? The modules folder only have lib folder.

-----------------------------------------------------------------------------------------------

Another question.
I get this when i compiling the zImage and modules.
It doesn't matter?

Code:
  CC      arch/arm/mach-msm/qdsp5/adsp_6150.o
  CC      arch/arm/mach-msm/qdsp5/adsp.o
  CC      arch/arm/mach-msm/qdsp5/adsp_driver.o
  CC      arch/arm/mach-msm/qdsp5/adsp_video_verify_cmd.o
  CC      arch/arm/mach-msm/qdsp5/adsp_videoenc_verify_cmd.o
  CC      arch/arm/mach-msm/qdsp5/adsp_jpeg_verify_cmd.o
  CC      arch/arm/mach-msm/qdsp5/adsp_jpeg_patch_event.o
  CC      arch/arm/mach-msm/qdsp5/adsp_vfe_verify_cmd.o
  CC      arch/arm/mach-msm/qdsp5/adsp_vfe_patch_event.o
  CC      arch/arm/mach-msm/qdsp5/adsp_lpm_verify_cmd.o
  CC      arch/arm/mach-msm/qdsp5/audio_out.o
arch/arm/mach-msm/qdsp5/evlog.h:109: warning: 'ev_log_freeze' defined but not used
  CC      arch/arm/mach-msm/qdsp5/audio_in.o
  CC      arch/arm/mach-msm/qdsp5/audio_mp3.o
  CC      arch/arm/mach-msm/qdsp5/audmgr.o
  CC      arch/arm/mach-msm/qdsp5/audpp.o
arch/arm/mach-msm/qdsp5/evlog.h:109: warning: 'ev_log_freeze' defined but not used
  CC      arch/arm/mach-msm/qdsp5/snd.o
arch/arm/mach-msm/qdsp5/snd.c: In function 'snd_ioctl':
arch/arm/mach-msm/qdsp5/snd.c:235: warning: unused variable 'dmsg'
arch/arm/mach-msm/qdsp5/snd.c: At top level:
arch/arm/mach-msm/qdsp5/snd.c:403: warning: function declaration isn't a prototype
  LD      arch/arm/mach-msm/qdsp5/qdsp5_snd.o
  CC      arch/arm/mach-msm/qdsp5/amss_para.o
  CC      arch/arm/mach-msm/qdsp5/external.o
  LD      arch/arm/mach-msm/qdsp5/built-in.o
  CC      arch/arm/mach-msm/hw3d.o
  CC      arch/arm/mach-msm/pm.o
  CC      arch/arm/mach-msm/cpufreq.o
  CC      arch/arm/mach-msm/htc-usb.o
  CC      arch/arm/mach-msm/htc_wifi_nvs.o
  CC      arch/arm/mach-msm/mmc.o
arch/arm/mach-msm/mmc.c: In function 'sdslot_switchvdd':
arch/arm/mach-msm/mmc.c:150: warning: unused variable 'i'
arch/arm/mach-msm/mmc.c: At top level:
arch/arm/mach-msm/mmc.c:131: warning: 'mmc_vdd_table' defined but not used
  CC      arch/arm/mach-msm/msm_vibrator.o
  CC      arch/arm/mach-msm/msm-gpio-keys.o
  CC      arch/arm/mach-msm/pmem.o
  CC      arch/arm/mach-msm/htc_acoustic.o
arch/arm/mach-msm/htc_acoustic.c: In function 'acoustic_open':
arch/arm/mach-msm/htc_acoustic.c:174: warning: label 'done' defined but not used
arch/arm/mach-msm/htc_acoustic.c:165: warning: unused variable 'rep_smem'
arch/arm/mach-msm/htc_acoustic.c:164: warning: unused variable 'req_smem'
arch/arm/mach-msm/htc_acoustic.c: In function 'acoustic_ioctl':
arch/arm/mach-msm/htc_acoustic.c:199: warning: ISO C90 forbids mixed declarations and code
arch/arm/mach-msm/htc_acoustic.c:190: warning: unused variable 'rep'
arch/arm/mach-msm/htc_acoustic.c:189: warning: unused variable 'req'
arch/arm/mach-msm/htc_acoustic.c:188: warning: unused variable 'reply_value'
arch/arm/mach-msm/htc_acoustic.c: In function 'acoustic_init':
arch/arm/mach-msm/htc_acoustic.c:234: warning: assignment makes integer from pointer without a cast
arch/arm/mach-msm/htc_acoustic.c:245: warning: assignment makes integer from pointer without a cast
  CC      arch/arm/mach-msm/board-htcraphael.o
  CC      arch/arm/mach-msm/board-htcraphael-navi.o
arch/arm/mach-msm/board-htcraphael-navi.c: In function 'raphnavi_i2c_read':
arch/arm/mach-msm/board-htcraphael-navi.c:451: warning: initialization from incompatible pointer type
arch/arm/mach-msm/board-htcraphael-navi.c: At top level:
arch/arm/mach-msm/board-htcraphael-navi.c:477: warning: function declaration isn't a prototype
  CC      arch/arm/mach-msm/board-htcraphael-panel.o
arch/arm/mach-msm/board-htcraphael-panel.c: In function 'htcraphael_mddi_power_client':
arch/arm/mach-msm/board-htcraphael-panel.c:441: warning: unused variable 'i'
arch/arm/mach-msm/board-htcraphael-panel.c:440: warning: unused variable 'dex'
arch/arm/mach-msm/board-htcraphael-panel.c: In function 'htcraphael_mddi_epson_client_init':
arch/arm/mach-msm/board-htcraphael-panel.c:486: warning: unused variable 'panel_id'
arch/arm/mach-msm/board-htcraphael-panel.c: At top level:
arch/arm/mach-msm/board-htcraphael-panel.c:150: warning: 'mddi_lcm_init_table' defined but not used
arch/arm/mach-msm/board-htcraphael-panel.c:197: warning: 'mddi_hitachi_panel_init_table' defined but not used
arch/arm/mach-msm/board-htcraphael-panel.c:227: warning: 'mddi_toshiba_init_table' defined but not used
arch/arm/mach-msm/board-htcraphael-panel.c:257: warning: 'mddi_toshiba_panel_init_table' defined but not used
arch/arm/mach-msm/board-htcraphael-panel.c:288: warning: 'mddi_epson_init_table' defined but not used
arch/arm/mach-msm/board-htcraphael-panel.c:320: warning: 'mddi_epson_deinit_table' defined but not used
arch/arm/mach-msm/board-htcraphael-panel.c:324: warning: 'mddi_sharp_init_table' defined but not used
arch/arm/mach-msm/board-htcraphael-panel.c:341: warning: 'mddi_sharp_deinit_table' defined but not used
arch/arm/mach-msm/board-htcraphael-panel.c:351: warning: 'mddi_tpo_init_table' defined but not used
arch/arm/mach-msm/board-htcraphael-panel.c:404: warning: 'mddi_tpo_deinit_table' defined but not used
arch/arm/mach-msm/board-htcraphael-panel.c:417: warning: 'htcraphael_process_mddi_table' defined but not used
  CC      arch/arm/mach-msm/board-htcdiamond.o
  CC      arch/arm/mach-msm/board-htcdiamond-panel.o
arch/arm/mach-msm/board-htcdiamond-panel.c: In function 'htcdiamond_mddi_power_client':
arch/arm/mach-msm/board-htcdiamond-panel.c:331: warning: unused variable 'i'
arch/arm/mach-msm/board-htcdiamond-panel.c: In function 'htcdiamond_mddi_toshiba_client_init':
arch/arm/mach-msm/board-htcdiamond-panel.c:408: warning: 'return' with no value, in function returning non-void
  CC      arch/arm/mach-msm/board-htcblackstone.o
  CC      arch/arm/mach-msm/board-htcblackstone-panel.o
arch/arm/mach-msm/board-htcblackstone-panel.c:22: warning: 'gp_clk' defined but not used
  CC      arch/arm/mach-msm/board-htckovsky.o
  CC      arch/arm/mach-msm/board-htckovsky-panel.o
  CC      arch/arm/mach-msm/board-htctopaz.o
  CC      arch/arm/mach-msm/board-htctopaz-panel.o
  CC      arch/arm/mach-msm/board-htctopaz-keypad.o
  CC      arch/arm/mach-msm/board-htcrhodium.o
arch/arm/mach-msm/include/mach/htc_headset_microp.h:23: warning: 'private_client' defined but not used
  CC      arch/arm/mach-msm/board-htcrhodium-panel.o
  CC      arch/arm/mach-msm/board-htcrhodium-audio.o
  CC      arch/arm/mach-msm/board-htcrhodium-proximity.o
arch/arm/mach-msm/board-htcrhodium-proximity.c: In function 'rhod_prox_probe':
arch/arm/mach-msm/board-htcrhodium-proximity.c:48: warning: ignoring return value of 'request_irq', declared with attribute warn_unused_result
arch/arm/mach-msm/board-htcrhodium-proximity.c:56: warning: ignoring return value of 'input_register_device', declared with attribute warn_unused_result
  CC      arch/arm/mach-msm/htc_pwrsink.o
  CC      arch/arm/mach-msm/pwrsink.o
  CC      arch/arm/mach-msm/htc_headset.o
arch/arm/mach-msm/htc_headset.c:92: warning: function declaration isn't a prototype
arch/arm/mach-msm/htc_headset.c: In function 'headset_plugged':
arch/arm/mach-msm/htc_headset.c:1077: warning: ISO C90 forbids mixed declarations and code
  CC      arch/arm/mach-msm/htc_headset_gpio.o
arch/arm/mach-msm/htc_headset_gpio.c: In function 'mic_irq_handler':
arch/arm/mach-msm/htc_headset_gpio.c:154: warning: ISO C90 forbids mixed declarations and code
arch/arm/mach-msm/htc_headset_gpio.c: In function 'detect_irq_handler':
arch/arm/mach-msm/htc_headset_gpio.c:174: warning: ISO C90 forbids mixed declarations and code
arch/arm/mach-msm/htc_headset_gpio.c: In function 'mic_work_func':
arch/arm/mach-msm/htc_headset_gpio.c:218: warning: ISO C90 forbids mixed declarations and code
arch/arm/mach-msm/htc_headset_gpio.c: In function 'audiojack_work_func':
arch/arm/mach-msm/htc_headset_gpio.c:235: warning: ISO C90 forbids mixed declarations and code
arch/arm/mach-msm/htc_headset_gpio.c: In function 'get_remote_keycode':
arch/arm/mach-msm/htc_headset_gpio.c:121: warning: 'val' is used uninitialized in this function
  CC      arch/arm/mach-msm/htc_headset_mgr.o
  CC      arch/arm/mach-msm/htc_headset_microp.o
arch/arm/mach-msm/htc_headset_microp.c:126: warning: 'hex2string' defined but not used
arch/arm/mach-msm/htc_headset_microp.c:215: warning: 'microp_read_adc' defined but not used
  CC      arch/arm/mach-msm/htc_battery_smem.o
  CC      arch/arm/mach-msm/board-htcraphael-rfkill.o
  CC      arch/arm/mach-msm/htc_tp_cal.o
arch/arm/mach-msm/htc_tp_cal.c: In function 'parse_tag_tp':
arch/arm/mach-msm/htc_tp_cal.c:48: warning: ISO C90 forbids mixed declarations and code
  LD      arch/arm/mach-msm/built-in.o
  CC      kernel/sched.o
In file included from kernel/sched.c:2:
kernel/sched_bfs.c: In function 'scheduler_tick':
kernel/sched_bfs.c:2039: warning: unused variable 'cpu'
  CC      kernel/fork.o
  CC      kernel/exec_domain.o
  CC      kernel/panic.o
  CC      kernel/printk.o
  CC      kernel/cpu.o
  CC      kernel/exit.o
  CC      kernel/itimer.o

Last edited by Charles481; 07-27-2011 at 11:57 AM.
Reply With Quote
  #164 (permalink)  
Old 07-27-2011, 01:04 PM
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 Charles481 View Post
I'm Haret user.Would you tell me how to make modules-2.6.27.46-01192-version.tar.gz? The modules folder only have lib folder.
Don't you just need to compress up the files into a .tar.gz? I think some had a handy script that would compress the modules for them, and strip 'em. I don't think Nate has updated this thread in quite a while, hopefully he will with those things... IIRC they're not difficult, but having a script to do it makes it easier.
Reply With Quote
  #165 (permalink)  
Old 07-27-2011, 01:32 PM
Charles481's Avatar
Lurker
Offline
Pocket PC: Touch Diamond2
Carrier: CHINA MOBILE
 
Join Date: Jul 2011
Posts: 4
Reputation: 0
Charles481 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

Quote:
Originally Posted by arrrghhh View Post
Don't you just need to compress up the files into a .tar.gz? I think some had a handy script that would compress the modules for them, and strip 'em. I don't think Nate has updated this thread in quite a while, hopefully he will with those things... IIRC they're not difficult, but having a script to do it makes it easier.
Did you have the script?Would you give me this.Thanks.
Reply With Quote
  #166 (permalink)  
Old 07-27-2011, 02:18 PM
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 Charles481 View Post
Did you have the script?Would you give me this.Thanks.
I do not, otherwise I would have .
Reply With Quote
  #167 (permalink)  
Old 07-27-2011, 02:38 PM
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 Charles481 View Post
I'm Haret user.Would you tell me how to make modules-2.6.27.46-01192-version.tar.gz? The modules folder only have lib folder.

-----------------------------------------------------------------------------------------------

Another question.
I get this when i compiling the zImage and modules.
It doesn't matter?
Just Copy and paste this to your script. It should work fine... From his orginal code before we update to squash.

Code:
echo "Compress modules to a tar.gz and move to output dir"
KER_VER="$(cat $KERNEL_PATH/include/config/kernel.release)"
cd $OUTPUT_PATH/modules
MODULES=$(find -name "*.ko")
for i in $MODULES ; do
    cp $i $OUTPUT_PATH/kernel/modules
done
cd $OUTPUT_PATH/kernel
tar -cvzf $OUTPUT_PATH/kernel/$KER_VER.tar.gz modules

Not sure what you are asking with your second question.
Reply With Quote
  #168 (permalink)  
Old 07-27-2011, 08:54 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 Lmiller1708 View Post
Just Copy and paste this to your script. It should work fine... From his orginal code before we update to squash.

Code:
echo "Compress modules to a tar.gz and move to output dir"
KER_VER="$(cat $KERNEL_PATH/include/config/kernel.release)"
cd $OUTPUT_PATH/modules
MODULES=$(find -name "*.ko")
for i in $MODULES ; do
    cp $i $OUTPUT_PATH/kernel/modules
done
cd $OUTPUT_PATH/kernel
tar -cvzf $OUTPUT_PATH/kernel/$KER_VER.tar.gz modules

Not sure what you are asking with your second question.
It's not strictly necessary for your own use, but another piece of this process that most like to do is strip the modules so they're not 10 megs, but that's totally optional.
__________________
HTC Touch Pro 2 - RHOD400 - Sprint - FRX07
Reply With Quote
  #169 (permalink)  
Old 07-28-2011, 03:45 AM
Charles481's Avatar
Lurker
Offline
Pocket PC: Touch Diamond2
Carrier: CHINA MOBILE
 
Join Date: Jul 2011
Posts: 4
Reputation: 0
Charles481 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

Quote:
Originally Posted by Lmiller1708 View Post
Just Copy and paste this to your script. It should work fine... From his orginal code before we update to squash.

Code:
echo "Compress modules to a tar.gz and move to output dir"
KER_VER="$(cat $KERNEL_PATH/include/config/kernel.release)"
cd $OUTPUT_PATH/modules
MODULES=$(find -name "*.ko")
for i in $MODULES ; do
    cp $i $OUTPUT_PATH/kernel/modules
done
cd $OUTPUT_PATH/kernel
tar -cvzf $OUTPUT_PATH/kernel/$KER_VER.tar.gz modules

Not sure what you are asking with your second question.
Where the script.sh should put on ?Would you tell me ?

Last edited by Charles481; 07-28-2011 at 01:00 PM.
Reply With Quote
  #170 (permalink)  
Old 07-28-2011, 12:46 PM
Charles481's Avatar
Lurker
Offline
Pocket PC: Touch Diamond2
Carrier: CHINA MOBILE
 
Join Date: Jul 2011
Posts: 4
Reputation: 0
Charles481 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

Quote:
Originally Posted by Lmiller1708 View Post
Just Copy and paste this to your script. It should work fine... From his orginal code before we update to squash.

Code:
echo "Compress modules to a tar.gz and move to output dir"
KER_VER="$(cat $KERNEL_PATH/include/config/kernel.release)"
cd $OUTPUT_PATH/modules
MODULES=$(find -name "*.ko")
for i in $MODULES ; do
    cp $i $OUTPUT_PATH/kernel/modules
done
cd $OUTPUT_PATH/kernel
tar -cvzf $OUTPUT_PATH/kernel/$KER_VER.tar.gz modules

Not sure what you are asking with your second question.
When gif clone done.I compiled the zImage and modules.then try to use zImage in my phone.
It doesn't work.Just vibrate twice and freezes.
What's wrong?

Last edited by Charles481; 07-28-2011 at 01:11 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 11:56 PM.


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