How to compile Busybox?

前端 未结 2 952
慢半拍i
慢半拍i 2020-12-18 10:36

(The i9100 and i9100p phones have Exynos 4210 SoC which includes Cortex A9 dual core 1.2Ghz processor which supports NEON.)

I will compile the latest busybox source

相关标签:
2条回答
  • 2020-12-18 11:31

    How to compile busybox?

    1st download toolchain. You can refer to this: Advice regarding installing ARM toolchain on Ubuntu VM (64bit)

    1. untar new source-code

    2. create default config

    make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- defconfig

    A default configuration file is created.

    1. update config to change it to our needs:

    make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- menuconfig

    The option to compile Busybox as a static executable, so that we don’t have to copy the dynamic libraries inside the root filesystem. The setting can be found in “Busybox Settings --> Build Options“. Also, select what utilities you want embedded in Busybox.

    1. Then, the following command builds Busybox and creates a directory called _install containing the root filesystem tree:

      make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- install.

    Compile statically. If you compile dynamically then you need to copy libraries to target.

    For more details see this link: http://balau82.wordpress.com/2010/03/27/busybox-for-arm-on-qemu/

    0 讨论(0)
  • 2020-12-18 11:42

    For Android you can use config android_defconfig and build with examples/android-build.

    I successfully used busybox patched by sherpya: his config sherpya_android_defconfig and slightly modified build script examples/android-build.

    0 讨论(0)
提交回复
热议问题