Port busybox to the host
What we need to do today is not to port busybox to the Development Board, but to port it to our host:
Any Linux instance that can be started is composed of three parts:Boot Program, kernel image and File System.
1. Bootstrap program:
In order not to be too complex, today's experiment assumes that grub has been installed on our host (like me, grub is automatically installed after
Reproduced in:http://blog.sina.com.cn/wyw1976What is BusyBox?(1) BusyBox is an application on Linux (application), that is, there is only one elf file header.(2) It integrates many tools and commands commonly used on Linux (utilities) such as RM, LS, gzip, TFTP, etc. For these tools and commands, the implementation in BusyBox may not be the most complete, but is
important. it is actually our final vmlinuz.3. busyboxBusybox 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 force-splitting electronic components, while busybox is like an integrated circuit, which compresses the integration of common tools and commands into an exe
BusyBox preparation before building the system
First installation:
To resolve BusyBox compilation error: Fatal error:curse.h error is due to missing suite ncurses devel
Apt-get Install Libncurses5-dev
problems can be solved;
Step two: Download ARM-LINUX-GCC installation, this is based on the arm architecture of the Linux Platform Cross-compilation tool, download arm-linux-gcc-4.4.3 version
1, TAR-ZXVF arm-
/**************************************************************************** * I.MX6 Android busybox from where * Description: * has been found in the Android BusyBox source code, under the external folder has a copy of the BusyBox * source, but no android.mk, thought should be android.mk files in other places, results * Find out It's somewhere else to put a com
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
When we 've worked so hard to compile Linux using scripts, What do you find the most troublesome?
Well, you may already have some experience, that is, placing various commands in your own small system, not only putting commands, but also porting the corresponding library files of commands. This is a huge Linux system, so many commands are transplanted ...... Maybe you forgot one day ......
To solve this problem, magio recommended a tool: busybox .....
Get a RK3288 development board, but I have to say that the ADB shell is not very useful, like the following too file. So I thought about compiling the busybox in. 1. Preparing the compilation environmentIn fact, now the cross-compiling Ubuntu is much simpler than before. 1.1 Installing JDK 6:sudo add-apt-repository ppa:webupd8team/javasudo apt-get updatesudo apt-get Install Oracle-java6-installer 1.2 Dependency Packages:Ubuntu 12.04 Package Installati
To sum up the problems that have occurred in building the root file system using busybox over the past few days, the most important thing in general is the process of configuring busybox. You must know what is needed and what must be loaded, otherwise, when the kernel is started and the file system is loaded, there will be issues beyond human understanding. Therefore, as long as we know which basic configur
Manually customize a BusyBox-based micro Linux systemPremise:1. A Linux as host; the system version is Redhat Enterprise Linux 5.8;2, BusyBox source; version is busybox-1.20.2. Busbox to pack a lot of commands together3, add a piece of extra hard disk on the host as the storage disk of the new system, add a new hard disk using an IDE interface;4. Download the Lin
Premise:1, a host of Linux (Redhat Enterprise linux 5.9);2, the host provides a piece of additional hard disk as the new system storage disk (IDE interface);3, the Linux kernel source code (linux-2.6.18) and BusyBox source code (busybox-1.20.2). 4. VMware Platform: VMware Workstation Pro
One, hard disk partition and Mount 1, hard disk partition situation 650) this.width=650; "Src=" http://s4.51cto.com
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
Recently, Android-based IPv6 development and testing require tools such as ping, ping6, NSlookup, and traceroute6 provided in busybox. After tests, we found that there are many articles on cross-compiling busybox and putting it into Android. You can also download the cross-compiled busybox directly. However, because both of them are statically compiled
BusyBox File System
I. Introduction
BusyBox is a standard Linux®A single executable Implementation of the tool. 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 Bus
Add support for busybox on the x210 PlatformStep 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.bz2Step 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-gnu
Busybox and benchmarkconfiguration
Configure Linux Kernel
(Initrd) support (in block device). In addition, it is best to compile the ext3 file system into the kernel.
Configure busybox (use 1.18.3)
General Configuration
> Show verbose applet usage messages
> Runtime SUID/SGID configuration via/etc/busybox. conf
Build opions
> Build
Note: The personal use of the BusyBox is 1.21.0 which kbuild config.in usage.h applets.h are all by Gen Kbuild.src, so modify the files generated by the file instead of CONFIG.SRC D and so on. There are instructions in the comments, other references to the other commands to write.
The first of these methods
Adding a new command to BusyBox is simple because it has a well-defined architecture. The first step
Due to work needs, often to connect the mobile phone and use the ADB to do some operations, found that the shell function is very good, but in castration state, the most obvious one is, the implementation of a number of commands, the directory appeared some of the-p,-l, 755, such as the file, people are very More obviously, some of the Linux-friendly third-party tools that move to Android can't be implemented at all. So it's a way to get Android devices to support a fully functional shell. The m
Note: This article reproduces the Linux root file system built from http://blog.sina.com.cn/u/2478597014 with BusyBox (2015-07-05 14:25:02) VMS: Virtual Box4.2.6 and VMware Workstation6.5.2 (both virtual machines have been successfully implemented) development environment: Linux version 2.6.32 with UBUNTU10.04ARM-LINUX-GCC version:3.4.1BusyBox version:1.7.0Development Board:Infineon Embedded s3c2440Development Board Linux kernel version:linux2.6.28Fir
One of the ways to start Linux kernel is Initramfs + kernel. Where INIRAMFS can be made using BusyBox. This example uses BusyBox v1.22.1 to make Iniramfs in Ubuntu 16.04 64bit.
# # Download BusyBox
[BusyBox]: https://busybox.net/
# # Configure, compile
1. Configure
"Shell
$ make Menuconfig
```
> If ' Make Menuconfi
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.