Install busybox on Android

Source: Internet
Author: User

This
Article describes how to install the busybox command line tools in
The android file-system.

Please
Note that a pre-built version of busybox has been attached to this
Article if you wowould prefer not to build busybox yourself. To use
Pre-built version please go to "installing busybox" and
"Make the busybox shell the default shell ".

You
Can download the prebuilt version from here
Www.omapzoom.org/gf/download/wikifiles/317/1354/busybox

 

Building
Busybox

 

To
Build busybox

  • Download
    The latest version of busybox from the following website. At
    Time of writing the latest version was v.1.13.3.

Http://www.busybox.net

  • Extract
    The busybox Source:

Tar
Jxf busybox-1.13.3.tar.bz2

  • Configure
    Busybox by running menuconfig

CD
Busybox-1.13.3/

Make
Menuconfig

  • In
    Menuconfig set the following options

Busybox
Settings --> build options --> build busybox as a static binary
(No shared libs)-enable this option by pressing "Y"

Busybox
Settings --> build options --> Cross Compiler prefix-
Set this option equal to "arm-None-Linux-gnueabi -"

Busybox
Settings --> Installation Options --> don't use/usr-
Enable this option by pressing "Y"

  • Export
    Path to where the cross-compiler is located on the host,
    Example:

Export
Path =/opt/ARM/arm-2007q3/bin: $ path

  • Build
    Busybox

Make

 

Installing
Busybox

 

To
Install busybox in the target file-System

  • Create
    A/bin directory in the target file-system. For example:

Mkdir
/<Path-to-Android-Fs>/bin

  • Copy
    The busybox binary to the/bin directory in the target file-System

CP
Busybox/<path-to-Android-Fs>/bin

  • Install
    The busybox command line tools on the target by executing
    Following commands:

CD
/Bin

./Busybox
-- Install

 

Make
The busybox shell the default shell

 

To
Make the busybox shell the default shell, edit the file "init. RC"
In the target file-system as follows:

  • Edit
    The console service so that it runs the busybox shell and not
    Default shell by replacing:

Service
Console/system/bin/sh

With:

Service
Console/bin/sh

  • Add
    The path of the busybox command line tools to the System Path
    Variable by replacing:

Export
Path/sbin:/system/bin:/system/xbin

With

Export
Path/bin:/sbin:/system/bin:/system/xbin

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.