简体   繁体   English

如何在32位Linux上编译android goldfish 3.4内核

[英]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.

相关问题 如何编译android goldfish 3.4内核并在模拟器上运行 - How to compile android goldfish 3.4 kernel and run on emulator Android goldfish内核编译 - Android goldfish Kernel compilation 错误:32位Linux Android模拟器二进制文件已弃用 - ERROR: 32-bit Linux Android emulator binaries are DEPRECATED Android Studio 64位错误:32位Linux Android模拟器二进制文件已弃用 - Android Studio 64-bit ERROR: 32-bit Linux Android emulator binaries are DEPRECATED 使用repo与金鱼Android内核 - Using repo with goldfish Android kernel 如何在Versatilepb支持的QEMU上测试android Goldfish Kernel 3.10? - How to test android Goldfish Kernel 3.10 on Versatilepb Suported QEMU? 如何构建android内核金鱼2.6.29并在qemu上运行? - how to build android kernel goldfish 2.6.29 and run it on qemu? 运行 64 位操作系统的 64 位操作系统上的 android studio 给出错误:32 位 Linux Android 模拟器二进制文件已弃用 - android studio on 64 bit OS running 64bit OS give ERROR: 32-bit Linux Android emulator binaries are DEPRECATED 如何在32位Linux上开发Android - How to develop for Android on a 32 bit Linux 如何制作同时支持 32 位和 64 位架构的 Android 应用程序? - How to make Android apps which support both 32-bit and 64-bit architecture?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM