This is the first time I heard about this stuff. After investigation, I found that this stuff is very good. It is especially applicable to Linux-based embedded systems with strict restrictions on disk space. in addition, this product has been used in many products, such as Nokia 770 and Motorola a780.
What is busybox? Directly reference the author: "busybox combines tiny versions of Common Unix utilities
Busybox Script Function, busybox Script Function
Busybox is run on openwrt, which is similar to the bash shell provided by the general linux release.
However, the syntax for the embedded system is a little different from that for the bash shell.
This document describes how to declare and call functions in a script.
(1) declare a function
Test () {echo
orAndroid_gingerbread/device/Samsung/smdkv210/init. RC, SD card image is the former,The NAND Flash image is the latter. Make the following changes in the environment variable declaration at the beginning:# Setup the global environmentExport path/sbin:/vendor/bin:/system/sbin:/system/bin:/system/xbin:/system/busyboxThe declaration of/system/busybox is added here;Create the/system/busybox directory:# Create
2.6.24.4
Kernel porting to S3C2440 ----
Use busybox-1.9.2
Create a root file system
Bytes ---------------------------------------------------------------------------------------------------
Porting environment:HOST: centos 5.1 Cross Compiler: arm-linux-gcc-3.4.1 Development Board platform: S3C2440 (YL-2440/YLP-2440 Development Board)
Start porting1. download the latest busybox1.9.2 and decompress it. Download bus
directory in the out/target/product/smdkv210/system directory andCopy all the busybox files generated in the previous step to this directory:CD out/target/product/smdkv210/SystemMkdir busyboxCP-A yourbusyboxdir/_ install/bin/* busyboxStep 6: Modify the init. RC file. You cannot directly modifyIn 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 b
default (n means no) and we can finally put a short help description. In the./scripts/config/kconfig-language.txt file of the source tree, we can see the complete grammar of the configuration syntax.
Next you need to update the./include/applets.h file so that it contains this new command. Add the following line to this file, remember to follow the alphabetical order. It is important to maintain this order, otherwise our commands will not be found.lis
Using full linux commands on Android means you have to benefit from the convenience of busybox for Android.
The toolbox that is provided on the android environment is pretty limited. I wanted something more useful and familiar. busybox to the rescue!
I have a busybox binary available for those who are interested.
To use it simply do # mkdir/data/
Reprinted from: http://www.cnblogs.com/xiaowenji/archive/2011/03/12/1982309.html
Have you ever had this experience? input ADB shell in the command line and then use the command to operate your mobile phone or simulator. However, these commands are common Linux commands, which are not easy to use. Have you ever thought about using a complete shell on Android? Use busybox. You can use terminal emulator either by connecting to the device using the ADB c
Mkimage-A arm-O Linux-T ramdisk-C none-A 0x30800000-n "ramdisk"-D initrd_cpio.img.gz ramdisk_mmc.img
In this way, ramdisk is ready. Replace ramdisk_mmc.img in our update package, and modify the fuse file and uboot file because the generated ramdisk is large and has more than 6 MB, the ramdisk size will be checked during the update and uboot operations on ramdisk. If it is larger than 4 m, an error will be
You can enter the android console in two ways:
1. Run the emulator-shell command directly;
2. After starting emulator, run the ADB shell command.
Then we can use some common Linux commands, such as LS and cat. However, the toolbox provided by Android (located in/system/bin) is too simple. Some commands such as find do not support Android or are not well supported. The following describes how to add the busybox tool to Android and compile a
The four busybox of the Linux system clipping notes1. What is cut?The main purpose of this article is to give the author and readers a deeper understanding of how the Linux system works, the general content is to take Linux apart from the components to assemble, and then complete a micro Linux system. Let's do it now. Please advise me where the writing is not good.2. PrincipleAs we all know, the operating system start-up process is (mainly Linux):P Os
Overview and use of busybox1. Overview of busybox
Busybox is a software that integrates more than one hundred common Linux commands and tools. It even integrates an HTTP server and a Telnet server, all these functions only have a size of about 1 MB. the Linux commands we usually use are like vertical electronic components, while busybox is like an integrated circ
1. What is busybox?
Busybox is a single executable implementation of many standard Linux tools. Busybox contains some simple tools, such as CAT and ECHO, and some larger and more complex tools, for example, grep, find, mount, and telnet (but it has fewer options than the traditional version); some refer to busybox as t
Use busybox as a mini Linux-general Linux technology-Linux programming and kernel information. The following is a detailed description. By cutebunny
1. Basic Knowledge
An operating system can be simply abstracted as a boot program + kernel + file system.
Vmlinuz is an image file of the Linux kernel. It can be loaded by the boot program to start the Linux system.
The full name of initrd is boot loader initialized RAM disk, which is the root file sys
Linux 3.10 busybox InitramfsBuildQemuDebugMy environment is a CentOS 7 64-bit system run by VM Ware virtual machine1: InstallationQemuFirst install SDL, responsible for QEMU running only after the VNC server running on ':: 1:5900 ', and does not appear Qemu Run the window, for specific reference:http://www.crifan.com/qemu_test_arm_vnc_server_running_on_127_0_0_1_5900_no_other_output/Yum install sdl.i686 sdl.x86_64 sdl-devel.i686 sdl-devel.x86_64Downlo
This paper is suitable for fs4412 Development Board, the kernel used is linux4.9.9.1. SOURCE DownloadBusyBox's official source download path is:http://busybox.net/downloads/Can download the latest busybox-1.28.12. Extract Source
Tar xvf busybox-1.28.1.tar.bz2
3. Access to the source directory
CD busybox-1.28.1
4. Configure BusyBoxBusyBox has already done a lot
Have you ever had this experience? input ADB shell in the command line and then use the command to operate your mobile phone or simulator. However, these commands are common Linux commands, which are not easy to use. Have you ever thought about using a complete shell on Android? Use busybox. You can use terminal emulator either by connecting to the device using the ADB command line or on your mobile phone.
1. What is
BusyBoxA binary program that simulates the implementation of many programs./bin/busyboxTo view native hardware device information:#cat/proc/cpuinfo#cat/proc/meminfo#lsusb Displays the USB interface information.#lspci displays all devices on the PCI bus.#hal-device displays detailed information for all hardware.Hardware abstract layer hardware abstraction.Compile BusyBox:#tar XF busybox.tar.bz2#cd BusyBox#ma
Have you ever had this experience? input ADB shell in the command line and then use the command to operate your mobile phone or simulator. However, these commands are common Linux commands, which are not easy to use. Have you ever thought about using a complete shell on Android? Use busybox. You can use terminal emulator either by connecting to the device using the ADB command line or on your mobile phone.
1. What is
1. busybox usage
You can use busybox
# Busybox ls
Function is equivalent to running the LS command
The most common method is to create a link pointing to busybox. Different link names are used to complete different functions.
# Ln-s busybox ls
# Ln-s
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.