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
busybox can be compiled into a static link executable file, and the runtime is independent of other function libraries. otherwise, other library files must be required to run and cannot work properly on a single Linux kernel.
Installation OptionsDon't use/usrThis option must also be selected. Otherwise, after make install, busybox will be installed in the/usr of the original system, which will overwrite th
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
Http://www.cnblogs.com/xiaowenji/archive/2011/03/12/1982309.htmlHave you ever had this experience, enter the ADB shell at the command line, and then use the command to manipulate your phone or simulator, but those commands are a shrinking version of the common Linux commands, which is very uncomfortable to use. Ever thought about using a more complete shell on Android? Use BusyBox. Whether using the ADB connection device using the command line or dire
Article Title: Use Busybox for a small Linux operating system. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
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 s
the runtime is independent of other function libraries. otherwise, other library files must be required to run and cannot work properly on a single Linux kernel.
Installation Options
Don't use/usr
This option must also be selected. Otherwise, after make install, busybox will be installed in the/usr of the original system, which will overwrite the original command of the system. after this option is selected, make install will generate a directory nam
Have you ever had this experience, enter the ADB shell at the command line, and then use the command to manipulate your phone or simulator, but those commands are a shrinking version of the common Linux commands, which is very uncomfortable to use. Ever thought about using a more complete shell on Android? Use BusyBox. Whether using the ADB connection device using the command line or directly on the phone with terminal emulator is OK.First, 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
Busybox is a software toolbox that integrates hundreds of commonly used linux commands and tools in linux. In many cases, we may need to install some virtual systems, including some environment configurations, so we need to download some operating system images, such as ubuntu and centos.1. busybox image.First query the image:Docker search busybox[
Production process:KERNEL->INITRD (BusyBox)->rootfs (BusyBox)Kernel: Direct use of/boot/vmlinuz-' uname-r ' Kernel mirroring or manual compilation generationINITRD: Compile BusyBox, build initrd on busybox basisRootfs: Also on the basis of BusyBox to establish ROOTFSFirst, p
executable file busybox is in the bin directory, and all others point to its symbolic link.4. create your own root fs1) directory structureMkdir/tmp/myOS/rootfsCd/tmp/myOS/rootfsMkdir etc usr var tmp proc home root devAmong them, etc, proc and dev must be created, bin and sbin do not need to be created, because busybox
Script file. In this script file, we need to mount the file system. The fstab file determines which file system to mount:
First, create the fstab file:
CD etc
Vim fstab, Enter the following content:
Then, create the RCS script file:
CD etc
Mkdir init. d
CD init. d
Vim RCS, Enter the following content:
Do not forget chmod + x RCS!
Then create the inittab file:
CD etc
Vim inittab, Enter the following content:
Then:
Switch to the _ install directory
Rm linuxrc
Run the following command:
L
can also choose not to do so, and then copy the shared library that it relies on to the corresponding Lib directory on the micro-system after compiling. It's a little bit trickier.2, if you want to modify the installation location, the method is: Busybox Settings-Installation Options-and (./_install) Busybox installation prefix, where you can modify the installation path, This experiment remains unchanged
busybox:
We downloaded busybox 1.16.1 from our FTP server.
wget ftp://192.168.0.254/pub/Sources/Busybox/busybox-1.16.1.tar.bz2
Then, we put it in the folder we are going to install.
mkdir /tmp/bzboxcp busybox-1.16.1.tar.bz2 /tmp/bzboxcd /tmp/bzbox
Okay. Unzip the package.
t
-install--root-directory=/mnt/dev/hdaNote: The/dev/hda here is the new disk on which the target system resides;Next, create a configuration file for grub:# vim/mnt/boot/grub/grub.confAdd something like the following:Default=0timeout=3color light-green/black light-magenta/blacktitle Lite Linux (2.6.18) root (hd0,0) kernel/ Vmlinuz ro root=/dev/hda2 Quiet initrd/in
Select Cross Compiler prefixHere is the prefix, without GCC, to-end, as my: arm-linux-gnueabihf-; Busybox Settings ---Build Options--cross compiler prefix- Set This option equal to "ARM-LINUX-GNUEABIHF -"; 4.2 Static compilationIt is recommended to use static compilation; Busybox Settings---build Options--build Busybox as a static binary (no shared libs) - E
want to do here is compile busybox Based on Bionic libc to provide better support for network-related tools. Internet search found that some people have done a lot of work on the transplantation of busybox and have done their own work, such:
Cyanogenmod has provided the modified busybox source code download, but it is based on froyo and has not enabled IPv6 se
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
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.