[英]How to compile android goldfish 3.4 kernel on 32-bit linux
First let me tell you that I am working on Ubuntu 12.04 LTS 32-bit. 首先,我告诉您我正在使用32位Ubuntu 12.04 LTS。 I am trying to compile Goldfish 3.4 kernel.
我正在尝试编译Goldfish 3.4内核。 I downloaded a prebuilt gcc from:
我从以下位置下载了预构建的gcc:
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6
However, I found that it doesn't work because it's 64-bit ELF file. 但是,我发现它不起作用,因为它是64位ELF文件。 Where can I find a 32-bit arm-eabi-gcc?
在哪里可以找到32位的arm-eabi-gcc?
You need to set 'ARCH' explicitly to 'arm' 您需要将“ ARCH”明确设置为“ arm”
I used to compile a goldfish kernel 3.4 on 32-bit Linux using the following steps: 我以前使用以下步骤在32位Linux上编译了一个goldfish内核3.4:
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8
git clone https://android.googlesource.com/platform/prebuilts/gcc/linux-x86/arm/arm-eabi-4.8
Add bin directory to your PATH variable, since it contains the required compiler and linker 将bin目录添加到您的PATH变量中,因为它包含所需的编译器和链接器
export ARCH=arm
出口ARCH =手臂
export SUBARCH=arm
导出SUBARCH =手臂
export CROSS_COMPILE=arm-eabi-
出口CROSS_COMPILE = arm-eabi-
make goldfish_armv7_defconfig
制作goldfish_armv7_defconfig
make -j4
使-j4
After a successful compilation, the kernel image can be found under: 成功编译后,可以在以下位置找到内核映像:
$KERNEL_SRC/arch/arm/boot/ zImage
$ KERNEL_SRC / arch / arm / boot / zImage
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.