-
嵌入式Linux系统开发技术详解.基于ARM.rar下载
资源介绍
μ1’ 1
.......................................................................................................................
1.1 << ?μ 1
...............................................................................................................
1.2 << ?? 2
...........................................................................................................
1.3 <<>>Linux?˙ 4
...................................................................................................
1.4 <<>>Linuxo(TM)¢ 5
...........................................................................................
1.5 <<>>Linux?μOo(TM) 7
.......................................................................................................................
μ2’ ARM¥P? 8
.............................................................................................................
2.1 ARM¥P?ì 8
......................................................................................................
2.1.1 ARM′àae 9
........................................................................................
2.1.2 ARM¥P?ì?· 10
........................................................................................
2.1.3 Linux”ARM¥P? 12
...................................................................................................................
2.2 ARM÷£ 13
............................................................................
2.2.1 ARM?¢¥Pμ÷o 13
............................................................................................
2.2.2 ARM÷£ó 15
.................................................................................................
2.2.3 Thumb ÷£ó 17
..................................................................................................
2.3 μ‰ARM¥Poú 17
............................................................................................
2.3.1 Atmel AT91RM9200 17
...............................................................................................
2.3.2 Samsung S3C2410 18
...................................................................................
2.3.3 TI OMAP1510/1610?μ 19
................................................................................................
2.3.4 Freescale i.Max21 22
.........................................................................................
2.3.5 Intel Xscale PXA?μ 23
....................................................................................................
2.4 >>?S3C2410o(TM) 24
.................................................................................
2.4.1 >>?S3C2410o(TM)è 24
..........................................................................................
2.4.2 ÷μ?o(C)” 26
................................................................................................................
μ3’ Linux ±+a 28
ARM
(R) <<>>I ?μooo?°°a?
2
..............................................................................................................
3.1 Linux£” 28
............................................................................................................
3.1.1 Shelloú 28
....................................................................................................
3.1.2 £Shell? 30
....................................................................................................
3.1.3 ±+Shell 38
..........................................................................................................
3.1.4 ’‘±ì¥ 42
..........................................................................................................
3.1.5 –±+o 44
..........................................................................................................................
3.2 Makefile 48
...........................................................................................................
3.2.1 GNU make 48
..............................................................................................
3.2.2 Makefileê‘ú 49
..............................................................................
3.2.3 Makefile??o?÷–±‰ 51
.................................................................................................
3.3 ?÷¥˙-|aeμ? 52
.......................................................................................
3.3.1 GNU Binutils§aefl 52
........................................................................................
3.3.2 Binutils§aefl>>ì 54
.......................................................................................................
3.4 ±+“GCCμ? 54
.................................................................................................
3.4.1 GCC±“? 54
.............................................................................................
3.4.2 GCC±“—°?ó 56
..............................................................................................
3.5 μ? GDBμ ” 60
................................................................................................
3.5.1 GDBμ?è 60
....................................................................................................
3.5.2 GDBμ?? 61
..................................................................................................................
3.6 Linux±+ 66
...............................................................................................
3.6.1 Linux±+Ao 66
...................................................................................................
3.6.2 Linux?μO 67
.......................................................................................................
3.6.3 Linux?fl 70
..................................................................................................................
μ4’ êoa 73
.........................................................................................................
4.1 ao¢aè 73
..............................................................................................
4.1.1 o(TM)??£ 73
..................................................................................
4.1.2 ?±A”a÷AEo£¨ 75
..............................................................................................................
4.1.3 ?o¥′ 76
......................................................................................................
4.1.4 O-|??o? 77
.........................................................................................................
4.2 걧 78
..........................................................................................
4.2.1 a>>a§ae 78
..................................................................................................
4.2.2 ÷aaefl 79
.........................................................................................................
4.3 ÷?o¢a‰ 80
......................................................................................................
4.3.1 ÷aaae÷ 80
..................................................................................................
4.3.2 ¥ooy÷§ 81
..........................................................................................................
4.3.3 DHCP? 84
...........................................................................................................
4.3.4 TFTP? 85
.............................................................................................................
4.3.5 NFS? 86
1
3(R)
μ ’ ?o
.....................................................................................................................
4.4 ù?±í 88
......................................................................................................
4.4.1 ?μ“?μ 88
......................................................................................................
4.4.2 ?/— 89
..................................................................................................
4.4.3 ???μ 90
.............................................................................................
4.5 ”P–úμaê 91
..................................................................................................
4.5.1 μ? ?£ 91
..............................................................................................
4.5.2 μ? ‘ μ 92
..............................................................................................................
μ5’ êoaefl 94
.....................................................................................................................
5.1 §£>>ì 94
......................................................................................................
5.1.1 ?+>>ìo? 94
..................................................................................................
5.1.2 >>ì±ae 95
..................................................................................................
5.1.3 aefl÷ 97
.............................................................................................................
5.2 ÷ê±+ 98
......................................................................................................
5.2.1 o±+“I 98
.........................................................................................................
5.2.2 ±+binutils 99
..................................................................................
5.2.3 ±+GCCμ(R)±+“ 100
..............................................................................................
5.2.4 ±+…˙glibco 101
..........................................................................
5.2.5 ±+…˙…μGCC±“I 105
...........................................................................................................
5.3 ÷êμ? 106
................................................................................................
5.3.1 ±“a ‘ 106
...................................................................................................
5.3.2 ±+gdbserver 106
......................................................................................................................
μ6’ Bootloader 108
.....................................................................................................................
6.1 Bootloader 108
.................................................................................................
6.1.1 Bootloader è 108
.............................................................................................
6.1.2 Bootloader μù 109
..............................................................................................
6.1.3 Bootloader μ÷÷ 111
...................................................................................................................
6.2 U-Boot±+ 113
................................................................................................
6.2.1 U-Boot§A 113
................................................................................................
6.2.2 U-Boot‘¥· 113
....................................................................................................
6.2.3 U-Bootμ?± 114
....................................................................................................
6.2.4 U-Bootμ“ 117
...............................................................................................
6.2.5 AìU-Boot? 118
..............................................................................................................
6.3 U-Bootμ?μ 121
........................................................................................................
6.3.1 ”oμ? 121
............................................................................................................
6.3.2 >>ì˙ 121
...............................................................................................
6.3.3 U-Bootù 123
.......................................................................................
6.3.4 U-Boot”?/μ? 128
ARM
(R) <<>>I ?μooo?°°a?
4
..................................................................................................................
6.4 U-Boot 133
........................................................................................
6.4.1 …–U-BootμFlash 134
...........................................................................................
6.4.2 U-Bootμ?£” 134
...........................................................................................
6.4.3 U-Bootμ?aae 141
................................................................................................................
μ7’ ÷±?/ 143
............................................................................................................
7.1 Linux?/à 143
.........................................................................................
7.1.1 Linux?/±ae 143
.................................................................................................
7.1.2 Linux?/à 143
.......................................................................................
7.1.3 Linux 2.6 ?/à– 144
.......................................................................................................
7.2 ‰±“I?‘¥ 147
....................................................................................................
7.2.1 ?‘¥· 148
....................................................................................................
7.2.2 ?/÷?μ 150
.................................................................................................
7.2.3 Kbuild Makefile 157
............................................................................................................
7.2.4 ?/±+ 169
....................................................................................................
7.2.5 ?/±+“ 179
...............................................................................................................
7.3 ?/÷— 180
....................................................................................................
7.3.1 ”÷ 180
....................................................................................................
7.3.2 a±ae÷—° 181
............................................................................................
7.3.3 <>I 199
.............................................................................................
8.2.4 Linux?μ? 201
................................................................................................
8.2.5 ???μ 206
................................................................................................
8.2.6 aO…< 208
.....................................................................................
8.2.7 ù”aSoinit 209
................................................................................................................
μ9’ ?àμoo 212
...............................................................................................................
9.1 ?/μ ‘ 212
....................................................................................................
9.1.1 ?/μ? ‘ 212
........................................................................................
9.1.2 —a·??àA 213
1
5(R)
μ ’ ?o
....................................................................................................
9.1.3 μ (R) 213
...............................................................................................................
9.2 ?/¥”° 216
....................................................................
9.2.1 ?”—μ¥AE ^ 216
........................................................................................
9.2.2 ?¥ì?êA 218
....................................................................................................
9.2.3 ?¥ú”° 220
...............................................................................................................
9.3 aò?à? 227
........................................................................................................
9.3.1 ?μ<> 262
.................................................................................................
11.1 o‘¥-|Iè 262
...................................................................................
11.1.1 Linux?μo‘>>ì 263
..............................................................................................
11.1.2 o‘>>o?Ay 264
..............................................................................................................
11.2 Busybox 265
...........................................................................................
11.2.1 Busybox§A 265
ARM
(R) <<>>I ?μooo?°°a?
6
...........................................................................................
11.2.2 ÷±+Busybox 265
.............................................................................................................
11.3 X11Oo?μ 270
..............................................................................................
11.3.1 X Windowsè 270
.....................................................................................................
11.3.2 Tiny-X è 270
.....................................................................................................
11.3.3 GTK Ooo 271
....................................................................................................................
11.4 QtOoo 277
.............................................................................................................
11.4.1 Qtè 277
...........................................................................................
11.4.2 Qt/Embeddedè 278
...........................................................................................
11.4.3 Qt/Embeddedo 280
...........................................................................
11.4.4 Qt/Embedded>>ì”I 281
.....................................................................................................
11.5 MiniGUIOo?μ 283
..................................................................................
11.5.1 MiniGUIOo?μO 283
..................................................................................................
11.5.2 MiniGUI“ 285
...........................................................................................
11.6 MicroWindowsOo?μ 290
..................................................................................................
11.7 Linux?μOˉ”P 292
......................................................................................
11.7.1 <<>> …EμOˉa 292
.............................................................................................
11.7.2 TCP/IP– 292
..................................................................................
11.7.3 Linux?μSocket±+ 294
.........................................................................................
11.8 <<>>Linuxμ¥AE–– 304
.......................................................................................
11.8.1 Linux?μ¥AE 304
.......................................................................................
11.8.2 Linux¥AE±+ μ 309
..............................................................................................................
μ12’ ?Oo, 314
.............................................................................................................
12.1 ?μO… 314
..........................................................................................
12.1.1 ?O 314
..........................................................................................
12.1.2 ?O “<< 315
.............................................................................................................
12.2 ?μ˙§ 315
......................................................................................
12.2.1 ? ¥–˙§ 315
................................................................................................................
12.2.2 Strace 316
...............................................................................................................
12.2.3 Ltrace 316
...................................................................................................................
12.2.4 LTT 317
.....................................................................................................
12.3 ?μ–?<§ 321
..................................................................................................
12.3.1 ¥˙–S-|£ 321
...................................................................................................................
12.3.2 LTP 324
..........................................................................................................
12.3.3 LMbench 325
.............................................................................................................
12.4 ,?¥ê– 326
...............................................................................................................
12.4.1 mtrace 326
.............................................................................................................
12.4.2 dmalloc 327
........................................................................................................
12.4.3 memwatch 328
1
7(R)
μ ’ ?o
..............................................................................................................
12.4.4 YAMD 330
...........................................................................................................
μ13’ oLinux?μ 333
.................................................................................................
13.1 oLinux?μ 333
..........................................................................
13.1.1 oLinux?μOa±£ 333
..........................................................................
13.1.2 oLinux?μOy? 334
.............................................................................................................
13.2 ?o?μ?– 335
.....................................................................................................
13.2.1 EXT2/EXT3 335
....................................................................................................................
13.2.2 JFS 337
...............................................................................................................
13.2.3 cramfs 339
......................................................................................................
13.2.4 JFFS/JFFS2 340
..............................................................................................................
13.2.5 YAFFS 341
.....................................................................................................................
13.3 ¥ê…E 343
................................................................................................
13.3.1 MTD ?–…E 343
..................................................................................................
13.3.2 ¥?–…E 344
.........................................................................................................
13.4 oLinux?μ 346
...............................................................................................
13.4.1 MTD § 346
..........................................................................................
13.4.2 ¥?o?μ 347
.....................................................................................
13.4.3 RAMDISK …E 348
...............................................................
13.4.4 MTD …EJFFS2??o? 349
..............................................................................................
13.4.5 ?μù…? 351
......................................................................................................
μ14’ ?O…o¢ 352
.....................................................................................................................
14.1 –E÷ 352
.............................................................................................................
14.2 ?μ”o…E 354
.............................................................................................................
14.3 ?μ>>ì…E 364
.........................................................................................................
14.4 ?μO…o 366