0Sudo umount rootfsNow, the initrd4m. IMG image in the root directory of a simple application is ready.MknodUsed to create characters or block-Related FilesRun qemu-kernel ../linux-3.9.2/ARCH/x86/boot/bzimage-initrd. IMG-APPEND "root =/dev/Ram init =/init"Integrate busybox
Busybox Introduction
Busybox is a software integrated with more than one hundred common Li
make sure the following options are selected (refer to kgdb kernel option configuration)? View Code BASH
General Setup --->
[*] Prompt for development and/or incomplete code/drivers Kernel
hacking--->
[*] Compile the kernel with debug Info
[*] Compile the kernel with frame pointers
[*] Kgdb:kernel Debugg ER --->
1.4: Compiling ?
View Code BASH
Make
If your machine is multi-core, you can
script or mknod to create the content one by one. This method has its own advantages. However, its disadvantage is that it is troublesome and its status is inconsistent with that of the kernel. On the contrary, if devfs is used, we no longer have to worry about anything in the/dev directory. The project under the/dev directory has the kernel code. The actual usage is not obvious to the memory consumption. So we chose devfs.Busybox With LILO and kernel image, we will arrange the root file system
I. Basic Concepts
File Management: Data Management Algorithms
File System: Carrier for file Algorithm Management
File System Function: Manage data on partitions (add, delete, query, modify, and delete data)
File System classification: FAT32/NTFS/ext3/ext4/yaffs/jffs/cramfs /.....
File System:
Window ---------> Forest
Linux ------------> tree -------> file directory standards
File System and root file system:
Root file system: The Help File System loaded at system startup
Other file systems: othe
SNIP!
$ Ipython
Python 2.7.6 (default, Mar 22 2014, 22:59:56)
Type "copyright", "credits" or "license" for more information.
IPython 1.2.1 -- An enhanced Interactive Python.
? -> Introduction and overview of IPython's features.
% Quickref-> Quick reference.
Help-> Python's own help system.
Object? -> Details about 'object', use 'object ?? 'For extra details.
In [1]:
Install docker
If Docker is not installed, first install docker
Copy the Code as follows:
$ Sudo apt-get install docker. io
Start
16. Compiling BusyBox17. Provide Inittab file18. Provide initialization scripts19. Seventh Test Start16. Compiling BusyBoxBusyBox Introduction BusyBox is a software that integrates more than 100 of the most commonly used Linux commands and tools.BusyBox includes simple tools such as LS, Cat, Echo, and more, and includes larger, more complex tools such as grep, find, Mount, and Telnet. Some people call BusyBox
Make a small linux system named mylinux-general Linux technology-Linux programming and kernel information. For more information, see the following. Use the grub boot program to guide the compiled Kernel File bzImage, convert the file system into a ramdisk image file, and load the image file in the memory to inject the file system; the command generates the bin and sbin files by compiling busybox. Note:
Kernel File + File System Image File + grub boot
Production of the yaffs2 root file system
Environment:
Cross-compilation environment: 4.3.3 (provided by tianyintech, storage path/opt/embedsky/4.3.3)
Development Platform: tq2440
1. Compile busybox
Busyboxsource code busybox-1.17.2.tar (http://www.busybox.net/downloads)
Put in directory/opt/embed
# Tar jxvf busybox-1.17.2.tar.bz2
# Cd
bin directory of the system, and the owner is root with SUID permission. All commands executed through su have the android root permission.
Su'sSource codeThere are also online users. If you are interested, go to Google.
Of course, it is not easy to use the temporary user permission to copy the/system/bin directory of Su and change the attributes. Here two tools and two commands are used. The tool is busybox. Unfamiliar users can go to Google. Th
Root file systemThe previous section explains the Linux kernel porting, which describes how to construct the root file system.Tools and source code in path: F:\ Vedon \cd1_ main disc \system.JFFS2 Authoring Tool Path: F:\ Vedon \cd1_ main disc \gui\xwindow\x\depsConcrete steps See: http://www.cnblogs.com/pigeon84/articles/2234214.htmlTar xjf busybox-1.7.0.tar.bz2//UnzipCD busybox-1.7.0//Enter directoryMake
Use the Development Board to create a DHCP server in an Embedded System
1. recompile the kernel and add support for DHCP.2. Check whether busybox contains DHCP applications. If not, recompile busybox or directly add an independent application.3. The configuration file of the DHCP server in the etc directory. udhcpd. conf needs to be configured, including the allocated IP address and DNS.
My file system dire
.%quickref, Quick Reference.Help, Python ' s own Help system.Object? Details about ' object ', use ' object? ' for extra details.
In [1]:
Installing Docker
If Docker is not installed, first install DockerCopy the Code code as follows:
$ sudo apt-get install Docker.io
And then put Docker.io up in a separate name Docker.
Copy CodeThe code is as follows:
$ alias docker= ' Docker.io '
$ docker Version
Client version:0.9.1
Go version (client): go1.2.1
Git commit (client): 3600720
Server version:
Reference.
Help -> The Python ' s own Help system.
Object? -> details about ' object ', use ' object?? ' for extra details.
In [1]:
Install Docker
If Docker is not installed, first install Docker
$ sudo apt-get install Docker.io
and docker.io up the individual names Docker
$ alias docker= ' Docker.io '
$ docker version
client version:0.9.1 go
version (client): go1.2.1
Git Commit (client): 3600720
Server version:0.9.1
Git commit (server): 3600720 go
version
!$ IpythonPython 2.7.6 (default, Mar 22 2014, 22:59:56)Type "copyright", "credits" or "license" for more information.
IPython 1.2.1 -- An enhanced Interactive Python.? -> Introduction and overview of IPython's features.% Quickref-> Quick reference.Help-> Python's own help system.Object? -> Details about 'object', use 'object ?? 'For extra details.
In [1]:
Install docker
If Docker is not installed, first install docker
The code is as follows:
$ Sudo apt-get install docker. io
Start docker. io w
1. Port busyboxTo create a root file system is to create various directories and various files. To create a root file system, you only need to create necessary device nodes in the/dev directory and some configuration files in the/etc directory, if busybox uses a dynamic link library, it also contains the library file in the/lib directory. Busybox supports the uclibc library and glibc library, and supports t
Porting 2.6.15 to HHARM2410-STUDYBy NKS-freezeroI would like to thank John, Winter, Harry, and others for their help.
The following uses the Linux 2.6.15 kernel as an example to illustrate:
I. ppcbootPpcboot can be modified in the default installation environment of huaheng:# Cd/HHARM2410-STUDY/ppcboot-2.0.0/lib_arm# Vi armlinux. cChange console to ttysac0# Make clean# MakePpcboot. Bin is generated in the current directory.# Cp ppcboot. bin/tftpboot/
Ii. Create ramdisk(I). Download
device file
I, CD DEV/
Ii. mknod-M 666 console C 5 1
Mknod-M 666 null C 1 3
CD ..
(3) install/etc (the ETC configuration file does not change with the platform, so the configuration file on the PC can also be used on the Development Board)
Tar etc.tar.gz-C/XXX/rootfs
(4) Compile the kernel module: Enter the Linux Kernel Directory (Linux 2.6.36)
Make modules arch = arm cross_compile = arm-Linux-
(5) install the kernel module
Make modules_install arch = arm install_mod_path =/XXX/rootfs
(6) Confi
several shells in Busybox.Where:Minix-shell can be compiled and used in both mC-libc and mClibc, but it is not very powerful. nwsh can be compiled in both mC-libc and mClibc, however, they all work abnormally and cannot enter the command line prompt. bash cannot be compiled in mC-libc or mClibc, and its structure is not suitable for uClinux. This article mainly discusses how to use the Shell in Busybox.Shell in BusyboxBusybox was first written on the Debian Linux installation disk and integrate
A summary of Linux customization methods since I learned that Linux can be customized in college, I have always wanted to make a version of my own Linux system. Recently, I was idle and finally had a hard time learning. Currently, there are two methods for customizing Linux: 1. Taking busybox as the core and building the fs + kernel made by initrd + busybox, build Linux 2. Use a more underlying approach. Ba
several of these mini-distribution versions and learned a lot. Although none of the distributions I studied specifically target hardware with limited resources (such as my laptop, but they all have a common goal-to put as many features as possible into as little space as possible. Although many of the trade-offs they have made to achieve this goal are unacceptable to me, I have noticed uClibc and BusyBox and eventually I used them.
UClibc
Each Lin
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.