Embedded LINUX Part10
Embedded LINUX Part10
Press
here
#LEARN_IN DEPTH
#Be_professional_in
1 embedded_system
Embedded Linux
(PART 10)
• ROOT FILE SYSTEM
• BUSYBOX
• BUILD ROOT
• THIRD PROJECT
• PART9 APPENDIX
Press
here
#LEARN_IN DEPTH
#Be_professional_in
2 embedded_system
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
3
Root File System
embedded_system
Press
here
#LEARN_IN DEPTH
#Be_professional_in
4
Filesystems
embedded_system
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
5
mount / umount
embedded_system
#Be_professional_in
6
Root filesystem
embedded_system
start_kernel()
kernel panics
usermodehelper_init();
rest_init() do_basic_setup() init_tmpfs();
driver_init();
Please append a correct "root=" boot option init_irq_proc();
do_ctors();
Kernel panic - not syncing: VFS: Unable to mount root fs Kernel_init()
do_initcalls();
}
on unknown block(0,0) Init_post()
init process
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
7
Kernel initialization
embedded_system
Press
here
#LEARN_IN DEPTH
#Be_professional_in
8
Location of the root filesystem
embedded_system
▶ From the partition of a NAND flash chip • root=/dev/mmcblkXpY, where X is a number indicating the device and Y a number
or similar type of storage device indicating the partition
• /dev/mmcblk0p2 is the second partition of the first device
▶ From the network, using the NFS protocol • root=/dev/mtdblockX, where X is the partition number
• /dev/mtdblock3 is the fourth partition of a NAND flash chip (if only one NAND
▶ From memory (initramfs), using a pre- flash chip is present)
loaded filesystem (by the bootloader) etc.
It is up to the system designer to choose the setenv bootargs console=${console} root=/dev/nfs rootfstype=nfs
configuration for the system, and configure ip=dhcp nfsroot=10.0.0.20:/srv/nfs/test_fileystem
the kernel behavior with root=
root=/dev/ram0 https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
#Be_professional_in
9 embedded_system
Basic programs
Place for most commonly used terminal commands
Common Linux commands you need to use in single-user modes are located
under this directory.
Commands used by all the users of the system are located here.
Examples:
– ls
– ping
– grep
– cp
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
10 embedded_system
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#Be_professional_in
11 embedded_system
fdisk
ifconfig
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
#Be_professional_in
12 embedded_system
Kernel image (only when the kernel is loaded from a filesystem, not
common on non-x86 architectures)
Contains files needed to start up the system, including the Linux kernel,
a RAM disk image and bootloader configuration files
Kernel image (only when the kernel is loaded from a file system, not
common on non-x86 architectures)
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
#Be_professional_in
13 embedded_system
System-wide configuration
Contains configuration files required by all programs.
– /etc/logrotate.conf
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#Be_professional_in
14 embedded_system
/home/keroles
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
#Be_professional_in
15 embedded_system
Basic libraries
Contains library files that supports the binaries located under /bin
and /sbin
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
16 embedded_system
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
17 embedded_system
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
#Be_professional_in
18 embedded_system
/root
Temporary files
Directory that contains temporary files created by system
and users
Files under this directory are deleted when system is rebooted.
/sys
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
#Be_professional_in
/root
/usr/lib Non-basic libraries
/usr/sbin Non-basic system programs
/sys
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
20 embedded_system
/root
Variable data files
/var/mail - emails
Press
here
#LEARN_IN DEPTH
#Be_professional_in
21 embedded_system
Device Files
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
#Be_professional_in
22 embedded_system
Device files
These include terminal devices, usb, or any device attached to the system.
Examples:
/dev/tty1
/dev/usbmon0
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
#Be_professional_in
23 embedded_system
Press
#Be_professional_in
24 embedded_system
It is a special type of file, that associates a file name visible to user space
applications to the triplet (type, major, minor) that the kernel understands
All device files are by convention stored in the /dev directory
Press
#Be_professional_in
25 embedded_system
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
26 embedded_system
Pseudo Filesystems
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#Be_professional_in
27 embedded_system
Press
here
#LEARN_IN DEPTH
#Be_professional_in
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
29 embedded_system
/root
Mount point of the sysfs virtual filesystem
Press
here
#LEARN_IN DEPTH
#Be_professional_in
30
Systool utility
embedded_system
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
31 embedded_system
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
32
How to create a minimal root filesystem ?
embedded_system
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
33 embedded_system
Shared libraries: Most programs are linked with shared libraries, and
so they must be present in the root filesystem.
Configuration files: The configuration for init and other daemons is
stored in a series of text files, usually in the /etc directory.
Device nodes: These are the special files that give access to various
device drivers.
/proc and /sys: These two pseudo filesystems represent kernel data
structures as a hierarchy of directories and files.
Kernel modules: If you have configured some parts of your kernel to
be modules, they need to be installed in the root filesystem, usually in
/lib/modules/[kernel version].
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
34
The init program
embedded_system
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
35
In case we initramfs
embedded_system
/sbin/init
Shell
Daemons Other
(services) Application
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
36 embedded_system
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
37
The init Program
embedded_system
System V init
Systemd init
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
38
BusyBox init
embedded_system
Press
here
#LEARN_IN DEPTH
#Be_professional_in
39
The init program
embedded_system
Press
here
#LEARN_IN DEPTH
#Be_professional_in
40
Mdev in /etc/init.d/rcS
embedded_system
Press
here
#LEARN_IN DEPTH
#Be_professional_in
41
Vexpress Arm Cortex A9 inittab
embedded_system
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
42 embedded_system
Busybox
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
43
Why Busybox?
embedded_system
Press
here
#LEARN_IN DEPTH
#Be_professional_in
44
BusyBox commands
embedded_system
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
45 embedded_system
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
46
File System Types
embedded_system
Press
here
#LEARN_IN DEPTH
#Be_professional_in
47 embedded_system
Build Root
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
48
Embedded Linux build system: principle
embedded_system
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
49
Who’s using Buildroot?
embedded_system
System makers
Tesla
GoPro
Barco
Rockwell Collins
Processor vendors
Imagination Technologies
Marvell
Press
here
#LEARN_IN DEPTH
#Be_professional_in
50 embedded_system
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
51
Configuring Buildroot for vexpress CortexA9
embedded_system
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
52
Configuring Buildroot for vexpress CortexA9.
embedded_system
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
53
Configuring Buildroot for vexpress CortexA9.
embedded_system
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
54
Configuring Buildroot for vexpress CortexA9.
embedded_system
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
55
Configuring Buildroot for vexpress CortexA9.
embedded_system
Build options
How Buildroot will built the code. Leave default values
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
Toolchain Embedded
Buildroot
system will be compiled with tools integrated in
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
Toolchain
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
Toolchain
Source header
files of the Linux
Kernel.
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
Toolchain
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
Toolchain
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
61 embedded_system
Toolchain
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
62 embedded_system
Toolchain
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
63 embedded_system
Toolchain
Build cross gdb for the host
Includes the support for
GDB. GCC debugger.
Enable C++ support
Including support for C++
programming, compiling, and
linking.
Enable MMU support
Yes
Press
here
#LEARN_IN DEPTH
64 embedded_system
System Configuration
System Hostname
Name of the embedded system
System Banner
Banner
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
65 embedded_system
System Configuration
Init System
Busybox
/dev management
Dynamic using devtmpfs only
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
66 embedded_system
System Configuration
Run a getty: Port to run a getty
/dev/ttyAMA0 console
Linux device file with the port to run getty (login) process. Uses
ttyAMA0 for serial port
Baud rate to use
115200
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#Be_professional_in
67 embedded_system
System Configuration
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#Be_professional_in
68 embedded_system
kernel
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#Be_professional_in
69 embedded_system
Target Packages
Busybox
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#Be_professional_in
70 embedded_system
Filesystem Images
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#Be_professional_in
71 embedded_system
Bootloaders
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#Be_professional_in
72 embedded_system
Host utilities
Choose the packages which
will be needed by host.
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
73
Compiling buildroot
embedded_system
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
74
Prepare SDCARD
embedded_system
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
75
Prepare SDCARD Cont.
embedded_system
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
76
Booting LINUX
embedded_system
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
77
Reaching to login
embedded_system
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
78 embedded_system
Third Project
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
79
Third Project
embedded_system
Uboot
Server ip =localhost
Linux
Server port = 8000 Kernel
Mount RootFS
/sbin/init
Press
here
#LEARN_IN DEPTH
#Be_professional_in
80 embedded_system
PART9 Appendix
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
81 embedded_system
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
82
Kernel Configuration
embedded_system
The kernel contains thousands of device drivers, The following is a list of the main menu options
filesystem drivers, network protocols and other available to all embedded Linux architectures:
configurable items • Code maturity level options
The kernel configuration is the process of defining • General setup
the set of options with which you want your kernel to • Loadable module support
be compiled • Block layer
The set of options depends • Networking
On the target architecture and on your hardware (for
• Device drivers
device drivers, etc.) • Filesystems
On the capabilities you would like to give to your kernel
• Kernel hacking
(network capabilities, filesystems, real-time, etc.). Such • Security options
generic options are available in all architectures. • Cryptographic options
• Library routines
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
83
General setup
embedded_system
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
84
General setup Cont.
embedded_system
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
85
General setup Cont.
embedded_system
depends on MMU
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
86
General setup Cont.
embedded_system
depends on MMU
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
87
General setup Cont.
embedded_system
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
88
General setup Cont.
embedded_system
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
89
General setup Cont.
embedded_system
This option enables the complete Linux kernel ".config" file contents to be
saved in the kernel. It provides documentation of which kernel options are
used in a running kernel or in an on-disk kernel. This information can be
extracted from the kernel image file with the script scripts/extract-
ikconfig and used as input to rebuild the current kernel or to build another
kernel. It can also be extracted from a running kernel by reading
/proc/config.gz if enabled (below).
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
90
General setup Cont.
embedded_system
Press
here
#LEARN_IN DEPTH
#Be_professional_in
91
General setup Cont.
embedded_system
Option: INITRAMFS_SOURCE
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
92
General setup Cont.
embedded_system
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
93
General setup Cont.
embedded_system
Press
Linux kernel/Loadable
here
#LEARN_IN DEPTH
#Be_professional_in
94 embedded_system
module support
Option: Enable loadable module support
variable name: MODULES
Kernel modules are small pieces of compiled code which can be
inserted in the running kernel, rather than being permanently built
into the kernel
Option: Module unloading
variable name: MODULE_UNLOAD
Without this option you will not be able to unload any modules
Option: Forced module unloading
variable name: MODULE_FORCE_UNLOAD
This option allows you to force a module to unload, even if the
kernel believes it is unsafe: the kernel will remove the module
without waiting for anyone to stop using it (using the -f option to
rmmod).
Option: Module versioning support (EXPERIMENTAL)
variable name: MODVERSIONS
Usually, you have to use modules compiled with your kernel. Saying
Y here makes it sometimes possible to use modules compiled for
different kernels, by adding enough information to the moduleS https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Linux
Press
here
#LEARN_IN DEPTH
#Be_professional_in
95 embedded_system
kernel/Block layer
Option: "Enable the block layer“
default y
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
#Be_professional_in
96 embedded_system
kernel/fs
Select which
extension you
need.
Pseudo
filesystems
RAMFS
Miscellaneous
filesystems
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
97
Networking
embedded_system
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
Linux kernel/Device
here
#LEARN_IN DEPTH
#Be_professional_in
98 embedded_system
drivers
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
99
Linux kernel/Device drivers
embedded_system
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
100 embedded_system
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
101
References
embedded_system
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
102
References Cont.
embedded_system
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/
Follow us
Press
here
#LEARN_IN DEPTH
#Be_professional_in
103
References Cont.
embedded_system
Press
here
#LEARN_IN DEPTH
#Be_professional_in
104
References Cont.
embedded_system
https://www.learn-in-depth.com/
https://www.facebook.com/groups/embedded.system.KS/