Article title: detailed analysis of the uClinux startup process. 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.
The detailed process of starting uclinux has a lot of information that can inspire us a lot. here we will discuss a detailed analysis of this information. through our discussion, you will have a definite understanding of what appeared during the uclinux startup process, what you used to feel familiar with, but what seems to be different, and the ins and outs of the output information.
The startup process of uclinux is a microcosm. after a detailed understanding of it, it helps us to gain a deeper understanding of the core of uclinux.
You should be familiar with the startup of uclinux. as an embedded system developer, you must have encountered the following scenario: see a post on a forum, the above is a bunch of information about the startup of the uclinux Development Board. in this post, we will discuss the problems during the startup process. The random examples are as follows:
Linux version 2.4.20-uc1 (root @ Local) (gcc version 2.95.3
20010315 (release) (ColdFire patches-20010318 from http: // f
(UClinux XIP and shared lib patches from http://www.snapgear.com/) # June 1
8 00:58:31 CST 2003
Processor: Samsung s34510b revision 6
Architecture: SNDS100
On node 0 totalpages: 4096
Zone (0): 0 pages.
Zone (1): 4096 pages.
Zone (2): 0 pages.
Kernel command line: root =/dev/rom0
Calibrating delay loop... 49.76 BogoMIPS
Memory: 16 MB = 16 MB total
Memory: 14348KB available (1615 K code, 156 K data, 40 K init)
Dentry cache hash table entries: 2048 (order: 2, 16384 bytes)
Inode cache hash table entries: 1024 (order: 1,
Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 4096 (order: 2, 16384 bytes)
POSIX conformance testing by uniix
Linux NET4.0 in Linux 2.4
Based upon Swansea University Computer Society NET3.039
Initializing RT netlink socket
Starting kswapd
Samsung s34510 Serial driver version 0.9 () with no serial options en
Abled
TtyS00 at 0x3ffd000 (irq = 5) is a 89c4510b
TtyS01 at 0x3ffe000 (irq = 7) is a 89c451
Blkmem copyright 1998,1999 D. Jeff Dionne
Blkmem copyright 1998 Kenth Albanowski
Blkmem 1 disk images:
1: BE558-1A5D57 [VIRTUAL BE558-1A5D57] (RO)
RAMDISK driver initialized: 16 RAM disks of 1024 K size 1024 blocksize
Samsung s34510 Ethernet driver version 0.1)
Eth0: 00: 40: 95: 36: 35: 34
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
IP: routing cache hash table of 512 buckets, 4 Kbytes
TCP: Hash tables configured (established 1024 bind 1024)
VFS: Mounted root (romfs
Freeing init memory: 40 K
The above output information may also include the output information of the uclinux development board you are working on, the meaning of each line and word in it, whether you have thoroughly investigated, or do you know most of the meanings exactly? I want to learn this information with the help of my experience in practice.
Here we will take the startup process of a real uclinux system as an example to analyze the output information. The original content of the startup information will be marked for difference and comment.
Uclinux is started in two phases:
① Part 1 bootloader startup phase ② part 2 linux kernel initialization and startup phase
Section 1: start_kernel Section 2: User mode (user_mode), start_kernel, end Section 3: Linux Kernel loading, transfer to cpu_idle process, part 1: bootloader startup
Figure 1: uclinux startup status transfer
Boot loader v0.12NOTE: this boot loader is designed to boot kernels made with the2.4.xx releasesbootloader for XVBuilt at Nov 20 2005 10:12:35
[1] [2] [3] [4] [5] [6] [7] Next page