Android Forums at AndroidCentral.com >  HTC Hero >  HTC Hero Rooting, ROMs, and Hacks > [HOW-TO] Build your own kernel package from source

[HOW-TO] Build your own kernel package from source

Reply
Like Tree3Likes

 
Thread Tools Search this Thread
  #51  
Old 11-30-2010, 01:47 AM
 
Posts: 2
Join Date: Nov 2010
Thanked 0 Times in 0 Posts
Likes Received: 0
Activity: 0/20
I've tried to compile this kernel but get the following build error. Has anyone else had this?

Code:

CC drivers/mtd/nand/nand_ids.o
LD drivers/mtd/nand/built-in.o
LD drivers/mtd/onenand/built-in.o
LD drivers/mtd/tests/built-in.o
LD drivers/mtd/built-in.o
CC drivers/net/mii.o
make[2]: *** No rule to make target `drivers/net/kineto_gan.o', needed by `drivers/net/built-in.o'. Stop.
make[1]: *** [drivers/net] Error 2
make: *** [drivers] Error 2
  #52  
Old 12-02-2010, 01:30 PM
Device(s): HeroC, Evo Shift 4G
ROM/Kernel: Stock GB
My Next Device: Evo Design 4G
 
Posts: 47
Location: Mount Wolf PA
Join Date: Apr 2010
Thanked 17 Times in 13 Posts
Likes Received: 0
Activity: 0/20
Thanks for the great tutorial gbhil, works great.

this is for eveyone it is the entire tutorial in pdf for for easy access from anywhere all links included.
gbhill feel free to post it for others to have
[Only registered users can view links. ]

Right click and do "save target as"
Thanked by beezy
  #53  
Old 12-09-2010, 03:47 AM
 
Posts: 80
Join Date: Nov 2010
Thanked 20 Times in 13 Posts
Likes Received: 1
Activity: 0/20
Trying to use this to create my first kernel for the optimus T, I know I probably shouldn't use an htc guide for an lg device, but this is the best tutorial I've seen (blatant ass kissing). So I'm using Ubuntu 9.10, because in the LG source it says 9.10 compile environment, and I downloaded java6 to match it, everything seems to go fine until putting the zimage in the boot.img, if I try to use flash_image boot /sdcard/zImage with the kernel it created, I get stuck in fastboot. If I follow the tutorial straight through and use flash_image boot /sdcard/myBoot.img, I get about 25 memory errors and a non-booting phone. So are the scripts to extract the kernel & ramdisk for the Hero only, or am I doing something (probably several things) wrong?
  #54  
Old 12-09-2010, 01:47 PM
 
Posts: 80
Join Date: Nov 2010
Thanked 20 Times in 13 Posts
Likes Received: 1
Activity: 0/20
Decided to start over, now I get the same error every time I run make. Any ideas?

In file included from arch/arm/kernel/../mach-msm/lge/lge_errorhandler.h:15,
from arch/arm/kernel/traps.c:37:
arch/arm/kernel/../mach-msm/lge/../smd_private.h:82:2: error: #error No SMD Package Specified; aborting
arch/arm/kernel/traps.c: In function 'dump_backtrace_entry':
arch/arm/kernel/traps.c:65: warning: too few arguments for format
arch/arm/kernel/traps.c: In function '__die':
arch/arm/kernel/traps.c:277: error: 'hidden_reset_enable' undeclared (first use in this function)
arch/arm/kernel/traps.c:277: error: (Each undeclared identifier is reported only once
arch/arm/kernel/traps.c:277: error: for each function it appears in.)
make[1]: *** [arch/arm/kernel/traps.o] Error 1
make: *** [arch/arm/kernel] Error 2
    Thread Author   #55  
Old 12-09-2010, 02:56 PM
AC Cowboy
Device(s): Yes
ROM/Kernel: Homebrewed
My Next Device: Yes
 
Posts: 4,816
Location: Wild and Wonderful
Join Date: Oct 2009
Thanked 2,166 Times in 537 Posts
Likes Received: 309
Activity: 8/20
Quote:
Originally Posted by Joeseph Mother View Post
Trying to use this to create my first kernel for the optimus T, I know I probably shouldn't use an htc guide for an lg device, but this is the best tutorial I've seen (blatant ass kissing). So I'm using Ubuntu 9.10, because in the LG source it says 9.10 compile environment, and I downloaded java6 to match it, everything seems to go fine until putting the zimage in the boot.img, if I try to use flash_image boot /sdcard/zImage with the kernel it created, I get stuck in fastboot. If I follow the tutorial straight through and use flash_image boot /sdcard/myBoot.img, I get about 25 memory errors and a non-booting phone. So are the scripts to extract the kernel & ramdisk for the Hero only, or am I doing something (probably several things) wrong?
when you repack the boot image, you need to correct memory space address (the base -- XXXXXXXXXX number) for the phone your working on. Get the right base address and the rest of the script should be just fine. Look in the kernel source here:
Code:
arch\arm\mach-msm\include\mach\memory.h
and find the section
Code:
 /* physical offset of RAM */
You should see a number for define PHYS_OFFSET, thats your base address.

Quote:
Originally Posted by Joeseph Mother View Post
Decided to start over, now I get the same error every time I run make. Any ideas?

In file included from arch/arm/kernel/../mach-msm/lge/lge_errorhandler.h:15,
from arch/arm/kernel/traps.c:37:
arch/arm/kernel/../mach-msm/lge/../smd_private.h:82:2: error: #error No SMD Package Specified; aborting
arch/arm/kernel/traps.c: In function 'dump_backtrace_entry':
arch/arm/kernel/traps.c:65: warning: too few arguments for format
arch/arm/kernel/traps.c: In function '__die':
arch/arm/kernel/traps.c:277: error: 'hidden_reset_enable' undeclared (first use in this function)
arch/arm/kernel/traps.c:277: error: (Each undeclared identifier is reported only once
arch/arm/kernel/traps.c:277: error: for each function it appears in.)
make[1]: *** [arch/arm/kernel/traps.o] Error 1
make: *** [arch/arm/kernel] Error 2
Try a "make clean" again
  #56  
Old 12-09-2010, 03:21 PM
 
Posts: 80
Join Date: Nov 2010
Thanked 20 Times in 13 Posts
Likes Received: 1
Activity: 0/20
Quote:
Originally Posted by gbhil View Post
when you repack the boot image, you need to correct memory space address (the base -- XXXXXXXXXX number) for the phone your working on. Get the right base address and the rest of the script should be just fine. Look in the kernel source here:
Code:
arch\arm\mach-msm\include\mach\memory.h
and find the section
Code:
 /* physical offset of RAM */
You should see a number for define PHYS_OFFSET, thats your base address.

Try a "make clean" again
In memory.h, no number is present, I have:

/* physical offset of RAM */
#define PHYS_OFFSET UL(CONFIG_PHYS_OFFSET)
#define MAX_PHYSMEM_BITS 32
#define SECTION_SIZE_BITS 25
#define HAS_ARCH_IO_REMAP_PFN_RANGE
#ifndef __ASSEMBLY__

On my current setup everything is back to where it was last time (had to specify cross compile, toolchain, eabi path before clean), so I just need someone a lot smarter than me to figure out how to get my zimage loaded into the boot image. I know the zimage is good, because when I put it in the update.zip that drellidee put out, it boots fine. Thanks a lot for the help, I know idiots like me asking stupid questions can get irritating.

Last edited by Joeseph Mother; 12-09-2010 at 05:18 PM.
  #57  
Old 12-25-2010, 08:42 PM
 
Posts: 2
Join Date: Dec 2010
Thanked 0 Times in 0 Posts
Likes Received: 0
Activity: 0/20
Hey all im trying to follow this tutorial and when i run the adb pull /proc/config.gz command it returns 'not found'. ive tried this on aospMOD_0.9.9.2 and the stock 2.27.651.5 from htc.

is this needed and if so how can i get it?

thanks in advance
  #58  
Old 01-11-2011, 02:50 PM
Device(s): optimus v, EVO 4g, Lg marquee
 
Posts: 398
Location: orlando
Join Date: Oct 2010
Thanked 147 Times in 70 Posts
Likes Received: 20
Activity: 3/20
I just downloaded the source for the lg optimus m from their site so that I could find the base address. I unzipped it but there wasn't a PHYS_OFFSET in there. Any clues do I have to do something else

nevermind it's
Code:
CONFIG_PHYS_OFFSET=0x12200000
@josephmother in your output where you put,"#define PHYS_OFFSET UL(CONFIG_PHYS_OFFSET)" the words in parenthesis tell you where the PHYS_OFFSET is. So look in your config that you pulled and your base address will be

Last edited by asadullah; 01-14-2011 at 11:05 PM.
  #59  
Old 01-15-2011, 12:47 PM
Device(s): optimus v, EVO 4g, Lg marquee
 
Posts: 398
Location: orlando
Join Date: Oct 2010
Thanked 147 Times in 70 Posts
Likes Received: 20
Activity: 3/20
Quote:
Originally Posted by xandout View Post
Hey all im trying to follow this tutorial and when i run the adb pull /proc/config.gz command it returns 'not found'. ive tried this on aospMOD_0.9.9.2 and the stock 2.27.651.5 from htc.

is this needed and if so how can i get it?

thanks in advance
I just tried it on a sprint hero running a custom version of 2.27.651.5 (only things different is it's been flashed to metro pcs and has a custom boot image and kernel) I typed this into terminal
Code:
adb remount
adb pull /proc/config.gz
it pulled it fine. The changes I made wouldn't affect whether it was there or not
  #60  
Old 02-06-2011, 07:31 PM
 
Posts: 1
Join Date: Feb 2011
Thanked 0 Times in 0 Posts
Likes Received: 0
Activity: 0/20
I'm having some problems following this for my Huawei U8150 running Froyo.

Problem 1: I'm unable to extract the ramdisk from the boot.img file. It complains about it not being gzipped.
Problem 2: I'm not really sure if I'm using the right wlan.ko file for this. My phone doesn't appear to have one, but it does have a system folder in the ROM that includes a wifi folder and a "ar6000.ko" file. Should I rip that out of my existing ROM?
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search