I am getting *cannot execute binary file: Exec format error *in *Cygwin *while
making kernel image for HTC Desire U T327W device.
I have downloaded android toolchain for this device with below mentioned
link:
git clone https://android.googlesource.com/platform/prebuilt for 4.4.3
<git clone https://android.googlesource.com/platform/prebuilt for 4.4.3>
and kernel source code:
http://dl4.htc.com/RomCode/Source_and_Binaries/primominids-ics-3.0.16-17d3a9d.zip
i putted kernel source code and prebuilt tool chain in Android folder and
set path with below mentioned command:
export
PATH=$HOME/android/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin:$PATH
when i ran command "make clean" i am getting output like this:
/home/gs/android/primominids-ics-3.0.16-17d3a9d/scripts/gcc-version.sh:
line 25:
/home/gs/android/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc:
cannot execute binary file: Exec format error
/home/gs/android/primominids-ics-3.0.16-17d3a9d/scripts/gcc-version.sh:
line 26:
/home/gs/android/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc:
cannot execute binary file: Exec format error
/home/gs/android/primominids-ics-3.0.16-17d3a9d/scripts/gcc-version.sh:
line 25:
/home/gs/android/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc:
cannot execute binary file: Exec format error
/home/gs/android/primominids-ics-3.0.16-17d3a9d/scripts/gcc-version.sh:
line 26:
/home/gs/android/prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-gcc:
cannot execute binary file: Exec format error
I have followed steps and required packages as mentioned in one of xda
forum but not workes for me. please have a look and let me know correct
steps and required things to build kernel with this source code and
prebuilt.
br.
Gomesh
--
--
unsubscribe: [email protected]
website: http://groups.google.com/group/android-kernel
---
You received this message because you are subscribed to the Google Groups
"Android Linux Kernel Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.
defconfig file: primods_defconfig (arm-eabi-4.4.3)
Download:
=========
If you are not already using an AOSP toolchain (included in an AOSP build
tree), download the corresponding official android toolchain for the arm-eabi
specified above for this device:
git clone https://android.googlesource.com/platform/prebuilt for 4.4.3
git clone
https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6
for 4.6
(use darwin-x86 in place of linux-x86 for mac)
Build the kernel:
=================
set the following environment variables:
export TOP= [where you installed the toolchain or top of android AOSP code base]
export PATH=$TOP/prebuilts/gcc/linux-x86/arm/arm-eabi-4.4.3/bin:$PATH (use
corresponding arm-eabi bin path)
export ARCH=arm
export SUBARCH=arm
export CROSS_COMPILE=arm-eabi-
make [the defconfig file for this device above]
make clean (for subsequent builds)
make -j4 (in this example 4 is the number of processors of your build
machine)
Output Binary Files:
====================
After the build process is finished, there should be a file named "zImage"
found in arch/arm/boot/
If you are building a rom with this kernel ZImage, copy it into your build's
output folder and rename it to "kernel".
You will also need the following kernel modules. These will eventually be
installed into /system/lib/modules on the device.
kernel modules:
./driver/*.ko
If you have already built and installed a boot.img with root access you can
also install the modules directly into the device using "adb remount" and "apb
push [file] system/lib/modules/" for each file listed above. After installing
files set permissions with "adb shell chmod 0644 system/lib/modules/*" and "adb
reboot"
For additional information:
===========================
http://htcdev.com