Preface |
|
xv | |
|
Part 1 Introduction and Getting Started |
|
|
1 | (98) |
|
Chapter 1 The Embedded and Real-Time Space |
|
|
3 | (10) |
|
|
3 | (1) |
|
|
4 | (1) |
|
How and Why Does Linux Fit In? |
|
|
5 | (2) |
|
|
5 | (2) |
|
|
7 | (1) |
|
|
7 | (1) |
|
|
8 | (3) |
|
|
10 | (1) |
|
|
11 | (2) |
|
Chapter 2 Installing Linux |
|
|
13 | (12) |
|
|
13 | (3) |
|
|
14 | (1) |
|
|
14 | (1) |
|
|
15 | (1) |
|
|
15 | (1) |
|
|
16 | (1) |
|
|
16 | (1) |
|
|
17 | (4) |
|
|
17 | (1) |
|
|
17 | (3) |
|
|
20 | (1) |
|
|
21 | (1) |
|
|
21 | (3) |
|
|
22 | (1) |
|
|
23 | (1) |
|
|
24 | (1) |
|
Chapter 3 Introducing Linux |
|
|
25 | (26) |
|
|
25 | (2) |
|
|
25 | (1) |
|
|
26 | (1) |
|
|
27 | (2) |
|
Protected Mode Architecture |
|
|
29 | (4) |
|
|
29 | (1) |
|
|
30 | (1) |
|
"Flat" vs. Segmented Memory Models |
|
|
31 | (1) |
|
|
32 | (1) |
|
|
33 | (3) |
|
|
34 | (1) |
|
|
35 | (1) |
|
|
36 | (7) |
|
|
37 | (1) |
|
|
38 | (1) |
|
|
39 | (1) |
|
The Filesystem Hierarchy Standard |
|
|
40 | (2) |
|
|
42 | (1) |
|
|
43 | (1) |
|
|
44 | (4) |
|
|
48 | (1) |
|
|
49 | (2) |
|
Chapter 4 The Host Development Environment |
|
|
51 | (14) |
|
Cross-Development Tools---The GNU Tool Chain |
|
|
51 | (2) |
|
|
51 | (1) |
|
|
52 | (1) |
|
|
53 | (1) |
|
|
53 | (3) |
|
|
53 | (1) |
|
|
54 | (1) |
|
|
55 | (1) |
|
The Terminal Emulator, minicom |
|
|
56 | (3) |
|
|
59 | (5) |
|
|
59 | (2) |
|
|
61 | (1) |
|
|
62 | (1) |
|
Trivial File Transfer Protocol |
|
|
63 | (1) |
|
|
64 | (1) |
|
|
65 | (16) |
|
|
65 | (1) |
|
ARM Single Board Computer |
|
|
65 | (2) |
|
|
66 | (1) |
|
|
67 | (2) |
|
|
67 | (1) |
|
|
68 | (1) |
|
|
68 | (1) |
|
|
69 | (1) |
|
Flash Memory and File Systems |
|
|
70 | (2) |
|
Flash Memory---NAND and NOR |
|
|
70 | (1) |
|
Root File System in Flash |
|
|
71 | (1) |
|
|
72 | (6) |
|
|
72 | (1) |
|
|
73 | (1) |
|
|
73 | (2) |
|
|
75 | (1) |
|
|
76 | (1) |
|
|
77 | (1) |
|
|
78 | (1) |
|
|
79 | (2) |
|
Chapter 6 Eclipse Integrated Development Environment |
|
|
81 | (18) |
|
|
82 | (3) |
|
|
84 | (1) |
|
|
84 | (1) |
|
|
85 | (1) |
|
|
86 | (1) |
|
The C Development Environment---CDT |
|
|
87 | (3) |
|
|
87 | (1) |
|
Adding Source Code to the Project |
|
|
88 | (1) |
|
|
89 | (1) |
|
|
89 | (1) |
|
|
89 | (1) |
|
|
90 | (1) |
|
|
91 | (1) |
|
|
92 | (5) |
|
|
94 | (1) |
|
|
95 | (1) |
|
|
95 | (1) |
|
|
96 | (1) |
|
|
97 | (1) |
|
|
97 | (1) |
|
|
97 | (2) |
|
Part 2 Application Programming in a Cross-Development Environment |
|
|
99 | (112) |
|
Chapter 7 Accessing Hardware from User Space |
|
|
101 | (12) |
|
|
101 | (1) |
|
|
101 | (2) |
|
|
102 | (1) |
|
Accessing I/O from Linux---Our First Program |
|
|
103 | (3) |
|
|
103 | (1) |
|
The Target Execution Environment |
|
|
104 | (2) |
|
|
106 | (2) |
|
|
107 | (1) |
|
A Data Acquisition Example |
|
|
108 | (4) |
|
|
112 | (1) |
|
Chapter 8 Debugging Embedded Software |
|
|
113 | (18) |
|
Remote Debugging with Eclipse |
|
|
113 | (4) |
|
Remote Debug Launch Configuration |
|
|
114 | (3) |
|
|
117 | (2) |
|
Host Workstation as Debug Environment |
|
|
119 | (5) |
|
Advanced Breakpoint Features |
|
|
120 | (4) |
|
Debugger Services Framework |
|
|
124 | (6) |
|
|
124 | (2) |
|
|
126 | (1) |
|
|
126 | (3) |
|
|
129 | (1) |
|
|
130 | (1) |
|
|
131 | (18) |
|
|
132 | (2) |
|
|
133 | (1) |
|
Synchronization---Mutexes |
|
|
134 | (5) |
|
|
136 | (1) |
|
Problems with Solving the Resource Sharing Problem---Priority Inversion |
|
|
137 | (2) |
|
Communication---Condition Variables |
|
|
139 | (1) |
|
Condition Variable Attributes |
|
|
140 | (1) |
|
Thread Termination and Cancellation |
|
|
140 | (2) |
|
|
141 | (1) |
|
|
142 | (2) |
|
|
144 | (3) |
|
|
145 | (1) |
|
|
145 | (2) |
|
Changes Required in thermostat |
|
|
147 | (1) |
|
Debugging Multithreaded Programs |
|
|
147 | (1) |
|
|
148 | (1) |
|
Chapter 10 Embedded Networking |
|
|
149 | (20) |
|
|
149 | (3) |
|
|
150 | (1) |
|
|
151 | (1) |
|
|
151 | (1) |
|
|
152 | (2) |
|
|
152 | (1) |
|
|
153 | (1) |
|
|
154 | (3) |
|
|
155 | (2) |
|
|
157 | (5) |
|
|
157 | (2) |
|
|
159 | (1) |
|
|
159 | (1) |
|
Forms and the POST Method |
|
|
160 | (1) |
|
|
161 | (1) |
|
A "Real" Web Server---Boa |
|
|
162 | (1) |
|
|
163 | (4) |
|
Other Application-Level Protocols |
|
|
167 | (1) |
|
|
167 | (2) |
|
Chapter 11 Configuring and Building the Kernel |
|
|
169 | (16) |
|
|
169 | (4) |
|
|
170 | (1) |
|
|
171 | (2) |
|
|
173 | (1) |
|
|
174 | (1) |
|
Configuring the Kernel---make config, menuconfig, xconfig |
|
|
175 | (6) |
|
|
179 | (1) |
|
|
180 | (1) |
|
Behind the Scenes---What's Really Happening |
|
|
181 | (1) |
|
|
182 | (2) |
|
|
183 | (1) |
|
|
184 | (1) |
|
|
184 | (1) |
|
Chapter 12 Kernel Modules and Device Drivers |
|
|
185 | (26) |
|
|
185 | (6) |
|
|
186 | (2) |
|
|
188 | (1) |
|
Kernel Modules and the GPL |
|
|
189 | (1) |
|
|
189 | (2) |
|
|
191 | (1) |
|
What's a Device Driver Anyway? |
|
|
191 | (1) |
|
|
192 | (7) |
|
|
193 | (1) |
|
The Low-Level User Space I/O APIs |
|
|
194 | (1) |
|
Internal Driver Structure |
|
|
194 | (1) |
|
|
194 | (1) |
|
|
195 | (1) |
|
|
196 | (1) |
|
|
197 | (1) |
|
Building and Running the Driver |
|
|
198 | (1) |
|
|
199 | (2) |
|
|
199 | (1) |
|
|
199 | (2) |
|
|
201 | (6) |
|
Registering an Interrupt Handler |
|
|
203 | (1) |
|
Probing for the Interrupt |
|
|
204 | (1) |
|
Deferred Processing---the "Bottom Half" |
|
|
205 | (2) |
|
Building Your Driver into the Kernel |
|
|
207 | (2) |
|
|
209 | (2) |
|
Part 3 Components and Tools |
|
|
211 | (46) |
|
Chapter 13 BusyBox and Linux Initialization |
|
|
213 | (12) |
|
|
213 | (1) |
|
Configuring and Installing BusyBox |
|
|
214 | (5) |
|
|
214 | (3) |
|
|
217 | (1) |
|
|
218 | (1) |
|
|
219 | (1) |
|
|
219 | (3) |
|
ANSI Terminal Escape Sequences |
|
|
220 | (1) |
|
|
221 | (1) |
|
|
222 | (1) |
|
User Space Initialization |
|
|
222 | (2) |
|
|
222 | (1) |
|
|
222 | (1) |
|
|
223 | (1) |
|
|
223 | (1) |
|
|
224 | (1) |
|
Chapter 14 U-Boot Boot Loader and Getting Ready to Ship |
|
|
225 | (8) |
|
|
225 | (3) |
|
|
225 | (1) |
|
Installing and Configuring U-Boot |
|
|
226 | (1) |
|
|
227 | (1) |
|
|
228 | (1) |
|
Creating a Flash File System |
|
|
228 | (4) |
|
More Thoughts on Flash Partitions |
|
|
230 | (1) |
|
|
230 | (2) |
|
|
232 | (1) |
|
Chapter 15 Source Code Control---GIT |
|
|
233 | (14) |
|
|
233 | (1) |
|
|
234 | (5) |
|
File States and Life Cycle |
|
|
236 | (1) |
|
|
237 | (2) |
|
|
239 | (2) |
|
|
241 | (4) |
|
Creating a New Repository |
|
|
243 | (2) |
|
|
245 | (2) |
|
|
247 | (10) |
|
|
247 | (2) |
|
|
249 | (3) |
|
|
250 | (1) |
|
|
251 | (1) |
|
|
252 | (3) |
|
|
252 | (2) |
|
|
254 | (1) |
|
|
255 | (1) |
|
|
255 | (2) |
Appendix A U-Boot Commands |
|
257 | (8) |
Appendix B Why Software Should Not Have Owners |
|
265 | (6) |
Index |
|
271 | |