Hi,

I am trying to port android on the Omap3 EVM, but somehow I am facing
problem with kernel build.
For a reference, here I am listed down the steps:

1. Check out the Andriod kernel source code
$mkdir android_2.6.30
$cd android_2.6.30
$git clone git://android.git.kernel.org/kernel/common.git
$git checkout v2.6.30

2. Check out the Omap3 source code
$mkdir linux_2.6.30
$cd linux_2.6.30
$git clone 
git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git
$git checkout v2.6.30

3. Take the diff
$diff –urN linux_2.6.30 android_2.6.30 > android_patch

4. Apply the anriod patch to omap kernel
$cd linux_2.6.30
$patch –p1 <../android_patch

5. Build the kernel

## set the path env
$export PATH=$PATH:/opt/omap3evm/toolchain/arm-2007q3/bin/

## Set to default config
$make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- V=1
omap3_evm_defconfig
(**with this step .config file is created. I found some differences,
when I compared this file with omap3_evm_defconfig. This is very
strange, I couldn’t understand)

## build the kernel
$make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- V=1 uImage

[I have used default config file ‘omap3_evm_defconfig’ from omap git
(mentioned in step2)]

With the above steps, I got following errors while compiling the omap
kernel:

-------------------------------------------------------------------
arm-none-linux-gnueabi-ld -EL  -p --no-undefined -X --build-id -
o .tmp_vmlinux1 -T arch/arm/kernel/vmlinux.lds arch/arm/kernel/head.o
arch/arm/kernel/init_task.o  init/built-in.o --start-group  usr/built-
in.o  arch/arm/kernel/built-in.o  arch/arm/mm/built-in.o  arch/arm/
common/built-in.o  arch/arm/mach-omap2/built-in.o  arch/arm/plat-omap/
built-in.o  arch/arm/nwfpe/built-in.o  arch/arm/vfp/built-in.o
kernel/
built-in.o  mm/built-in.o  fs/built-in.o  ipc/built-in.o  security/
built-in.o  crypto/built-in.o  block/built-in.o  arch/arm/lib/lib.a
lib/lib.a  arch/arm/lib/built-in.o  lib/built-in.o  drivers/built-
in.o  sound/built-in.o  firmware/built-in.o  net/built-in.o --end-
group
arm-none-linux-gnueabi-ld: no machine record defined
arm-none-linux-gnueabi-ld: no machine record defined
make: *** [.tmp_vmlinux1] Error 1
----------------------------------------------------------------------

Can anyone suggest something on this?
Am I doing anything wrong here?


Thanks,
Prashant M

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: [email protected]
website: http://groups.google.com/group/android-porting
-~----------~----~----~----~------~----~------~--~---

Reply via email to