Add support for busybox on the Android platform of s5pv210 Development Board [x210-Based Development Board]

Source: Internet
Author: User

Add support for busybox on the x210 Platform
Step 1: copy the Beibei busyboxsource code package busybox-1.19.2-x210.tar.bz2 to the Linux directory and decompress it:
Tar xf busybox-1.19.2-x210.tar.bz2
Step 2: Modify the makefile in the decompressed directory and modify the parameters arch and cross_compile as follows:
Cross_compile? =/Usr/local/ARM/arm-none-linux-gnueabi-2010-09-50/bin/ARM-None-Linux-gnueabi-
Arch? = Arm
Step 3: Configure busybox
Make menuconfig
Busybox settings --->
Build options --->
[*] Build busybox as a static binary (no shared libs)
[] Force nommc build
[*] Build with large file support (for accessing files> 2 GB)
() Cross Compiler prefix
() Additional cflags

Busybox settings --->
Installation Options ("make install" behavior) --->
What kind of Applet links to install (as soft-links) --->
(./_ Install) busybox installation prefix

Busybox settings --->
Busybox library tuning --->
[*] Tab completion
Step 4: Compile busybox
Make
Make install
In this case, some busybox files will be generated under the _ install/bin directory.
Step 5: Create a New busybox directory in the out/target/product/smdkv210/system directory and
Copy all the busybox files generated in the previous step to this directory:
CD out/target/product/smdkv210/System
Mkdir busybox
CP-A yourbusyboxdir/_ install/bin/* busybox
Step 6: Modify the init. RC file. You cannot directly modify
In the init. RC file, modify device/Samsung/smdkv210/init_sdmmc.rc.
Copy the file to the out/target/product/smdkv210/root directory and name it init. RC.
At the beginning of init_sdmmc.rc, add the path declaration of system/busybox:
Export path/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin:/system/busybox
Step 7: recompile the image:
./MK-X-K-S-u
Step 8: update. Bin, the newly generated image file under the out/release directory, and upgrade it through the production card. After the upgrade, the system will
Automatically restarts and enters the control terminal.
Step 9: Use the LS command and find that it does not neatly list the files like busybox. It is obvious that toolbox is still used.
Column. This is because of ls in the system/bin directory.
First, obtain the root permission and execute the following command:
Mount-O remount, RW-T ext4/dev/block/mmcblk0p2/System
Delete the LS and busybox in the system/bin directory:
Note: The Android system has busybox by default, but it is not easy to use by default. Delete it directly:
CD system/bin
Rm ls
Rm busybox
Step 10: switch to the shell of busybox:
Busybox sh
The environment variable of the path in init. RC has been modified and declared for system/busybox.
You can use busybox.
At this time, not only can the LS command be used to naturally arrange files under the directory, but can also use the CP command. At the same time, the tab key auto-completion function is also supported.
The path display function of the terminal command line prompt, which is completely the same as the Linux busybox.

Related Article

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.