Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
Lox_Dev
Old
(Last edited by Lox_Dev; 19th November 2009 at 11:52 PM.)
#1  
Lox_Dev's Avatar
Senior Member - OP
Thanks Meter 24
Posts: 323
Join Date: Oct 2007
Location: Kanaky-New-Caledonia

 
DONATE TO ME
Default [Dev] Building a 2.6.29 kernel for the Hero

Hello,

I would like to build a 2.6.29 kernel for Hero for us to run properly Donut roms.

Here is my progress so far:

- I have sync the android kernel msm from git.
# git clone git://android.git.kernel.org/kernel/msm.git
# cd msm
# git checkout --track -b android-msm-2.6.29 origin/android-msm-2.6.27
- then:
# adb pull config.gz ./
# gunzip config.gz && mv config .config
# make PATH=$PATH:android-1.6_r1/prebuilt/linux-x86/toolchain/arm-eabi-4.2.1/bin ARCH=arm SUBARCH=arm CROSS_COMPILE=arm-eabi-

But no luck: it asks me questions to configure the kernel (error in .config?)

I have attached some useful files.
Attached Files
File Type: zip config.zip - [Click for QR Code] (8.8 KB, 54 views)
File Type: zip dmesg.txt.zip - [Click for QR Code] (8.6 KB, 12 views)
File Type: zip logcat.txt.zip - [Click for QR Code] (11.4 KB, 11 views)
Lox
Nexus4 - Galaxy Nexus - Nexus 7 - Asus Transformer Prime Infinity
Ubuntu 64bit

 
erikwt
Old
#2  
Junior Member
Thanks Meter 0
Posts: 22
Join Date: Sep 2009
Try running make menuconfig and manually load the .config file. What happens?
Follow me on twitter @ewallentinsen
 
Z!L0G80
Old
#3  
Z!L0G80's Avatar
Member
Thanks Meter 24
Posts: 81
Join Date: Sep 2007
Location: Prague

 
DONATE TO ME
kernel sources for hero is not available on http://developer.htc.com/ then no hero support in android.git.kernel.org/kernel/msm.git
Newman N2, HTC Hero, Hp614c, iPhone3GS, NokiaN8
AsusTransformer TF101
__________________________________________________ ______
Sorry for my bad English IAm only a human
 
Lox_Dev
Old
#4  
Lox_Dev's Avatar
Senior Member - OP
Thanks Meter 24
Posts: 323
Join Date: Oct 2007
Location: Kanaky-New-Caledonia

 
DONATE TO ME
Quote:
Originally Posted by Z!L0G80 View Post
kernel sources for hero is not available on http://developer.htc.com/ then no hero support in android.git.kernel.org/kernel/msm.git
Well this guy did it here for sapphire before Htc released kernel sources.... So I think we can.

Quote:
Originally Posted by erikwt View Post
Try running make menuconfig and manually load the .config file. What happens?
I copied the hero .config file to kernel root, then "make menuconfig" and loaded .config, then exit and yes to "write .config" question.
Make failed, output attached (make1.txt)

I then applied TigerTael sapphire patch as he "tends to think the memory locations may be correct". Tried to manually load hero's .config and got attached error (error.txt)

I then "make msm_defconfig" and could compile a kernel witch I added to ADP-1.6 boot.img. But no luck it does not work and adb logcat waits for device.... while I am waiting for advices

Regards
Attached Files
File Type: txt make1.txt - [Click for QR Code] (235 Bytes, 27 views)
File Type: txt error.txt - [Click for QR Code] (2.3 KB, 24 views)
File Type: zip zImage.zip - [Click for QR Code] (1.42 MB, 2 views)
File Type: zip newBoot.img.zip - [Click for QR Code] (1.56 MB, 4 views)
Lox
Nexus4 - Galaxy Nexus - Nexus 7 - Asus Transformer Prime Infinity
Ubuntu 64bit

 
phel21
Old
#5  
Member
Thanks Meter 1
Posts: 47
Join Date: Jul 2009
Was the downloaded config copied from a build of the same kernel version? If not do "make oldconfig" before commencing with "make menuconfig" or other build.
 
Lox_Dev
Old
(Last edited by Lox_Dev; 3rd October 2009 at 12:45 AM.)
#6  
Lox_Dev's Avatar
Senior Member - OP
Thanks Meter 24
Posts: 323
Join Date: Oct 2007
Location: Kanaky-New-Caledonia

 
DONATE TO ME
Quote:
Originally Posted by phel21 View Post
Was the downloaded config copied from a build of the same kernel version? If not do "make oldconfig" before commencing with "make menuconfig" or other build.
'make oldconfig' asks me the questions to configure the kernel.....

Edit:

If that could help:

cat /proc/iomem
00700000-0079afff : msm_panel.1
007a0000-007bffff : ram_console
19200000-257fffff : System RAM
19223000-19513fff : Kernel text
19514000-195ebf7f : Kernel data
a0200000-a0200fff : msm_serial_hs.0
a0400000-a0400fff : msm_sdcc.1
a0500000-a0500fff : msm_sdcc.2
a0800000-a0800fff : msm_hsusb
a9900000-a9900fff : msm_i2c.0
a9900000-a9900fff : msm_i2c
a9c00000-a9c00fff : msm_serial.2
a9c00000-a9c00fff : msm_serial
aa200000-aa2effff : mdp
aa600000-aa600fff : msm_mddi.0
Lox
Nexus4 - Galaxy Nexus - Nexus 7 - Asus Transformer Prime Infinity
Ubuntu 64bit

 
BlueHawk
Old
#7  
BlueHawk's Avatar
Senior Member
Thanks Meter 31
Posts: 215
Join Date: Aug 2009
Location: Toronto
Yes. It will ask you questions as the kernel has added new capabilities - which you will need to configure. Use the help for the new options to guide your choices, although usually the default is the best way to go. Not doing "oldconfig" step will leave you with a busted build configuration.
 
CombinedEffort
Old
(Last edited by CombinedEffort; 3rd October 2009 at 07:38 AM.) Reason: confusing English
#8  
Junior Member
Thanks Meter 0
Posts: 24
Join Date: Aug 2009
Location: Leicester
I assume you're using the config options from /proc/config.gz on the phone?
 
Lox_Dev
Old
#9  
Lox_Dev's Avatar
Senior Member - OP
Thanks Meter 24
Posts: 323
Join Date: Oct 2007
Location: Kanaky-New-Caledonia

 
DONATE TO ME
Quote:
Originally Posted by CombinedEffort View Post
I assume you're using the config options from /proc/config.gz on the phone?
of course I do
Lox
Nexus4 - Galaxy Nexus - Nexus 7 - Asus Transformer Prime Infinity
Ubuntu 64bit

 
E2K
Old
#10  
Senior Member
Thanks Meter 0
Posts: 124
Join Date: Oct 2009
Quote:
Originally Posted by gecka View Post
of course I do
Godspeed! (sorry, i cannot contribute anything as I am a total noob, but I'll read your progress regardless!)
(edit: i could beta test though..^_^)

 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

report this ad
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

Go to top of page...

XDA PORTAL POSTS

Nandroid Manager Receives Major Update

Do you find yourself obsessively jumping from ROM to ROM? And do you hate having to restore a full … more

Careers in Android: Recruiter Reveals How Resumes are Chosen – XDA Developer TV

XDA Developer TV Producer Jayce released a video a … more

HttpClient Tutorial to Upload and Download with Your App

Developers wanting to interact with the Internet need to choose a package to do the … more

Profile Flow: A Tasker Alternative

By now, we’re all quite familiar with Tasker, the personal automation app that seems to be able to … more