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
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
| Gzip-9-n >/mnt/boot/initrd.gzKernel compilation is cumbersome, next time another one3. Creating a root file systemCP busybox-1.21.1/_install/*/mnt/sysroot/-RPCd/mnt/sysrootMKDIR-PV proc SYS etc/rc.d/init.d tmp dev/pts boot Var/log usr/libMknod dev/console C 5 1Mknod dev/null C 1 3mkdir LIB/MODULES-PVCp/lib/modules/2.6.18-308.el5/kernel/drivers/net/pcnet32.ko lib/modules/Cp/lib/modules/2.6.18-308.el5/kern
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
; Ethernet (10 or 100 Mbit) --> Find the AMD PCnet32 PCI support and change it to * to directly compile it into the kernel]
[Load Ext3 into the kernel in File systems -->]
Save and exit]
[Execute make SUBDIR =/arch for Compilation. note: the above steps must be performed in/usr/src/linux]
The compilation process may take some time. you can wait for the compilation to complete or take the next step in advance.
2. compile busybox
1. partition on the n
init analysis of BusyBox
This article turns from: http://blog.csdn.net/linucos/article/details/5352506
Init of 5.5.3 BusyBox
In addition to the basic commands, BusyBox also supports the Init feature, like other init, BusyBox Init is the completion of the system initialization, the work before shutdown, and so on, we
Busybox can provide implementation of many common Linux commands and is useful for Android debugging. To install busybox, you must have obtained the root permission of your mobile phone.
1. Download an object
Download armv6lfrom http://www.busybox.net/downloads/binaries/select armv6l.
2. Transfer the downloaded file to the mobile phone's sdcard:
ADB push
BusyboxOfInit
In addition to basic commands, busybox also supports the init function. Like other init functions, busybox init also completes system initialization and pre-shutdown, we know that after the Linux kernel is loaded, the machine transfers the control to the kernel. After the Linux kernel is started, it does some work and finds the INIT program in the root
how much, I just want to make a note, so as not to finish, after two months, how to do all forget clean = =! Method: need to prepare tools: host one, hard disk (you can use virtual machine when learning the virtual disk), a pure kernel, BusyBox source code a 1, the hard disk divided into two areas, a boot with, a root file system with , and then mount the/mnt/boot and/mnt/sysroot directories to the host r
virtual machine(1) Download the QEMU installation file(2) Install the library file before you install QEMU. Open Terminal input sudo apt-get install gcc libsdl1.2-dev zlib1g-dev libasound2-devpkg-config libgnutls-dev Pciutils-dev(3) switch to the QEMU source directory input./configure Generate makefile(4) Enter make to start compiling (if Automake package is missing, enter sudo apt-get install autoconf automake libtool installation)(5) Enter sudo make install to start installation1.4. Making th
There are two ways to start the Telnetd service:
Start with inetd service hosting
Start independently
Hosting through inetd seems to require many files to be configured, so select the independent startup method here.1. Check the Kernel configuration. Select "Device Drivers-> character devices-> unix98 Pty support"2. Re-compile the busybox in uClinux-Dist and select the following items:
Bus
Official busybox Website: www.busybox.net
1. Extract# Tar jxvf busybox-1.21.1.tar.bz2
2. Configuration
# Cd busybox-1.21.1
# Make menuconfig
Busybox settings --->
General configuration --->
[] Enable options for full-blown desktop systems
We use an embedded system. If this is not canceled, the Process status will not
Reprinted please indicate the source and the author contact: http://blog.csdn.net/mimepp
Contact information: Yu Tao
Recently, in product development, some optimizations are required to make the product performance more stable. One of the major unstable factors involved is the misuse of busybox.In uClinux, the stack and heap cannot be dynamically allocated because there is no MMU or VM.Malloc/free in the program is a large memory pool based on uClinux kernel, which is equivalent to sharing a he
linuxrc. After the modification, compile the program, you can enter the control mode, but can't open/dev/tty2, can't open/dev/tty3, can't open/dev/tty4, the solution is to enter the init of busybox. in RC, comment out the following three lines:
The above uses ramdisk as the root file system. Here we will introduce the situation where no ramdisk is needed. Instead, we will directly place the
The Android device does not recognize the awk command and lacks busyboxFirst, what is BusyBox?BusyBox is a single executable implementation of standard Linux tools. BusyBox contains a few simple tools, such as Cat and Echo, and includes larger, more complex tools such as grep, find, Mount, and Telnet. Some people refer to Bus
Related software: Http://pan.baidu.com/s/16yo8YFSC100 Development BoardCross compiler: ARM-CORTEX_A8-LINUX-GNUEABI-GCCbusybox-1.17.3.tar.bz2First, the root file system production1. Source code DownloadThe version we chose is the busybox-1.17.3.tar.bz2 download path:http://busybox.net/downloads/2. Extracting source code$ tar xvf busybox-1.17.3.tar.bz23. Enter the
);Comment out:/* Clean up */// Close (0 );// Close (1 );// Close (2 );
/* Close whatever files are open, and reset the console .*/// Close (0 );// Close (1 );// Close (2 );4. Compile and install busybox. (arch and cross content is not set in makefile 1.1.3. You need to write them in the command. I did this)
# Export Path = $ path: usr/crosstool/gcc-3.4.5-glibc-2.3.6/ARM-Linux/bin# Make target_arch = arm cross = "arm-Linux -"# Make install
5. Create a
Download the latest source package from BusyBox wget http://busybox.net/downloads/busybox-1.23.1.tar.bz2 extract into the BusyBox directory to execute make defconfig;make; The Make install installation compilation completes a _install directory in the current directory. It generates some common commands for the system.But one drawback is that all commands are fro
Busybox built-in tftpd, FTPD, telnetd, udhcpd, udhcpc Configuration
Tftpd and ftpd can be managed by inetd, and telnetd can also be managed by inetd theoretically. However, I have not called the development board yet and can only run telnetd independently.1. tftpdConfiguration steps:# Mkdir/tftp_ftp_dir // create the root directory of the TFTP Server# Vi/etc/inetd. conf // configure the inetd. conf file,
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.