Title: Host? Target? ??
1???? ????? ?? ??
2? ?
- ?? ?? ??
- Host? Target? ??
- Host ? Target ??
- Host ?? ?? ??
- Toolchain(Cross-Compiler Tool) ??
- Minicom ?? ? ?? ??
- JTAG ?? ? ?? ??
- TFTP ?? ?? ? ??
- NFS ?? ?? ? ??
3?? ?? ?? (1)
- ?? ?? ?????
- Target system?? ?? ????? ??? ? ??
- ???? ??? ????? ?????? ???
- ??? CPU ? ??? ?? ???? ??? ??? ??
- ? ????? ?? ??? ??
- Target system ?? ??
- Target system?? ??? ?? Host system? ???? target
system?? ???? ????? ?? - ???? ?? ? ???? Host system??, ???? ??? Target
system? ?? - Target system? Host system? ?? ?? ??? ????? ????
?? cross compiler? ?? - ?? Host system? target system? console? ??
- ??? ?? ??? ?? ?? ????? ?
4?? ?? ?? (2)
5?? ?? ?? (3)
- Host ???
- ???? ?????? ???? ???
- ?? PC? Linux ????? ???? ??
- Cross compile ?? ??(toolchain ??)
- Target ???? ???? ????? ?? (minicom, JTAG ???? ?)
- Target ??? (KIT)
- ??? ???? ?????? ?? ???? ???
- Target CPU? ??? ???? Linux ???? porting
- Bootloader ? ??? flash ???? file system ??
6?? ?? ?? (4)
- Host ???? target ???? ??
- Serial ? -Console ??, zmodem? ??? ?? ??
- JTAG ? - Hardware debugging, Flash memory
programming - USB ? ?? ??? ?? ?? ??
- Ethernet ? - ?? ??? ?? ??, NFS ??
7Host ??? ??
Host ???
CPU Pentium IV 3GHz
Memory 512M
Disk 160G
CD-ROM CD x48
I/O Serial / JTAG
Network 10/100 BaseT
O/S Red Hat Linux 9
8Target ??? H/W ??
- CPU Intel XScale PXA255 400MHz
- RAM Samsung SDRAM 128MB
- ROM Intel Flash 32MB
- Screen 6.4 TFT LCD (640 x 480)
- Touch Panel BBADS7846E
- I/O Serial, JTAG, USB 1.1(host/client), PCMCIA,
Buttons, CMOS camera, IrDA, MIC, MMC - Ethernet CS8900A 10BaseT
- Audio CS4202-JQ
- Cables Power, Serial, Parallel, USB, Ethernet
- Case Aluminum
9Target ??? S/W ??
- O/S Linux 2.4.19 kernel
- Device Drivers CS8900A Ethernet, Frame buffer,
BBADS7846E(Touch Screen), USB(host/client),
PCMCIA, IrDA, CS4202-JQ stereo audio - File System Ramdisk, JFFS2
10Target ??? (PXA255-PRO3)
11Host? Target? ??
serial ???
JTAG ???
Ethernet ???
USB ???
12Toolchain ?? ? ???
- Cross-Compiler ??
- Toolchain ??
- Toolchain ???
13Cross compile ??
- Embedded ???? ?? ??? H/W ? S/W resource? ??? ??
??? ??? Embedded S/W? ??? ?? ?? (S/W ??? Host
?????) - Host ???? processor? Embedded ???? processor? ???
??? Host ???? compiler? ???? Embedded S/W?
compile? ?? ?? - Host ????? ??? ????? Embedded ????? ????? ???
"Host to Embedded ???" cross compiler (?? ????)?
???? - ???? Linux ????? cross compiler? ???? ?? ?? ???
??? ??? cross compiler? ???? ????? ??
14Toolchain ?? (1)
- Target ????? ???? ?????? ???? ?? ??? Host ????
cross compile ?? - ?? ??? compile link?? binary ?? ??? ????? ???
?? utility ? library? ?? - ????? assembler, C compiler, linker, C library
??? ???? ??. - GNU?? ???? Toolchain? ??
- GNU GCC for C, C gcc
- GNU binary utilities assembler, linker various
object file utilities binutils - GNU C library glibc
15Toolchain ?? (2)
- ????
- GCC ????
- Binutils ???? ? ??, ???? ?? ?? ????
- Glibc ??? ???? ?? ????? ? ?? ?????
- Linux ?? ??? ?? ??
- Toolchain ?? ?? ???
- http//doc.kldp.org/KoreanDoc//html/EmbeddedKernel
-KLDP/ch03.toolchain.html
16Toolchain ???? (1)
- HUINS?? ???? CD? ???? CD-ROM? mount??.
- CD? ??? ???? mount? ?.
- mount? ?? ??? ?? ??? ?? ??
CD-ROM device name
Read only option
CD-ROM ??? /mnt/cdrom ????? mount
17Toolchain ???? (2)
- cd ??? ???? mount ? CD-ROM ?? ????.
- ls ??? ?? CD? ??? ? ? ??
Tool Chain file
18Toolchain ???? (3)
- cp ??? ???? Tool Chain ??? /usr/local/arm?? copy
- ls ???? copy? ? ?? ??? ?? ? usr/local/arm ????? ??
arm directory ??
Kernel source? makefile??? tool chain? ???
/usr/local/arm?? ?? ?? ??? ??? ? ??? tool chain?
???? ?
19Toolchain ???? (4)
- tar ??? ???? ??? ?? Tool Chain? ???? ???.
- ?? ? ls ???? ? ?? ???? ??
j ??? bunzip2? ???? ?? ?? ??? ? ? ??
Bunzip2? ??? ??? bz2?? ???? ???.
20Toolchain ???? (5)
- ???? path? ????? ?.
- cd? ?? ??? root ????? ??
- .bashrc ? vi? open.
21Toolchain ???? (6)
/usr/local/arm/bin? tool chain?? ??? ?? compiler?
??.
22Toolchain ???? (7)
- ??? .bashrc? source ??? ???? ???
23Toolchain ???? (8)
- hello.c ?? Test file? ???.
24Toolchain ???? (9)
- ??? arm? cross compiler? ???? compile??.
- hello?? object ??? ?????? ????.
arm? cross compiler
Hello?? object file? ??
25Toolchain ???? (10)
- ???? hello object ??? ??????.
- ?? ???? error? ???? ?? ??.
- file??? ???? ???? file? ??? ??
ARM? object ?? ??
26Toolchain ???? (11)
- Embedded Linux 2.6.x? ?? Toolchain
- Gcc ver. 4.x ??? ????? ????? ?
- gcc ??? ?? glibc, binutils ?? ??? ?? ??
- toolchain_arm-linux_gcc-4.0.2_glibc-2.3.6.tar.gz
27Toolchain ???? (12)
- ?? ??????? toolchain_arm-linux_gcc-4.0.2_glibc-2.
3.6.tar.gz ? ???? ??? ?? - tar xfz toolchain_arm-softfloat-linux-gnu_gcc-4.
0.2_glibc-2.3.6.tar.gz -C / - ??? ?? /usr/local/arm/ ????? ????.
28Toolchain ???? (13)
- ???? ???? bin ????? ???? PATH? ??
- /root/.bash_profile ??? PATH ?????
/usr/local/arm/gcc-4.0.2-glibc-2.3.6/arm-softfloat
-linux-gnu/bin? ?? - ?? ????? ??? ????
29Toolchain ???? (14)
- ?? ??? ????.
- vi /root/.bash_profile
-
- source ??? ?? ??? .bash_profile? ?? ??
- source /root/.bash_profile
- ?? logout/login
PATHPATHHOME/bin/usr/local/arm/gcc-4.0.2-glib
c-2.3.6/arm-softfloat-linux-gnu/bin
30Toolchain ???? (15)
- ??? ????? ??? ???
- ??? ??? ?? ?? ??? ????? ???? ??? ??? ??
31Toolchain ???? (16)
- ???
- gcc o hello-x86 ./hello.c
host? ??? - arm-linux-gcc o hello-arm ./hello.c
arm? ??? - /usr/local/arm/gcc-4.0.2-glibc-2.3.6/arm-softflo
at-linux-gnu/bin/arm-linux-gcc . - ??? ? ?? ?? ??(file ?? ??)
32Minicom ?? ? ??
- ??? ????? ??
- Minicom ?? ? ??
33??? ????? - ??
- ???
- Host ???? Taget ??? ??? ??
- Taget ??? ?? ?? ? ?? ???? ??? ??
- Host ???? Taget ???? ?? ??? ?? ??
- Minicom ?????
- Linux ?????? ????? ???? ??? ????? ?????
- ??? ??? ?????? ??
- ??? ??? ????? ??? ??
- ??? ?? ?? ????? ??
34??? ????? ??(1)
Minicom? ???? serial ???? hello?? ?? ??
35??? ????? ??(2)
- Host? Target? minicom?? ???? ?? ??? ?? ?? ??
- Serial Cross Cable(9 pins) 1EA
- Linux ????? ???? ?? PC(Host)
- PXA255-pro ????(Target)
- Cross cable? ??? Host? COM1? ????, ?? ??? Target?
COM1 ????.
36??? ????? - ??(1)
- ???? hello object ??? target? download?? ??
minicom??? emulator? ?? - Minicom? RS232C ??? ??
- ? Minicom? ???? ? ?? ?? ??? ?? ?
- Minicom ?? -s ?? ??
37??? ????? - ??(2)
- Serial port setup?? ??? ?? ? enter? ???? serial
port setup ??? ??
38??? ????? - ??(3)
- COM1? ttyS0, COM2? ttyS1? Linux??? ???.
- A? ??? Serial cable? ??? ??? ??.
- Host? Target? ?? ?? 115200 bps, 8 bit, no
parity, 1 stop bit - Flow Control? ?? NO? ??
39??? ????? - ??(4)
40??? ????? - ??(5)
- ??? ?? ? target ??? ??? on ??? ??? ?? ??? ?? ?.
Boot loader loading
Kernel loading
ramdisk loading
Kernel uncompressing
41??? ????? - ??(6)
42??? ????? - ??(7)
- Toolchain ?? ???? ???? hello?? object ??? host??
target?? download??? ??. - CTRL? A? ??? ?? ? Z?? ???? ??? ?? Minicom command
??? ???.
43??? ????? - ??(8)
- ?? ?? ?? S? ???? ??? ?? ??? ???, ?? ?? ????
???Zmodem? ????.
44??? ????? - ??(9)
- Toolchain ?? ?? ???? hello ??? ??? ?? enter? ??
??? host??? target?? download? - ?? ???? ??? ?? ??? space ?? ??
45??? ????? - ??(10)
46??? ????? - ??(11)
- ls ??? ???? hello ??? ?????? ??
47??? ????? - ??(12)
48JTAG - ?? ? ???
- JTAG ??
- JTAG I/F ???? ?? ? ??
49JTAG ?? (1)
?? ??? ??? ???? ????, ?? ??? ?? fusing
50JTAG ?? (2)
- JTAG ??
- Joint European Test Access Group
- JTAG? PCB? IC? ??? ?? ?? ???? 1985? ???
JTAG(Joint Test Action Group)? ?? ??? ????. - Boundary Scan Test
- ?? ??
- ?? ? ??? ?? ???? ??? ?? ??
- ??? ?? ??? ??? ????(???? ?? ????)? ???? ?? ???
- ???? ?????? 5?? ?? ??? ?? (TDI, TMS, TCK, nTRST,
TDO) - ? ??? Boundary Cell?? ?? ?? ??? ?? ?? ?? ????
????? ? ? ?? ??? ??? Cell? ?? ?? ??? ????? ??? ?
?? ?? ?? ???? ???? ?? ?? ?? ??? ? ??.
51JTAG ?? (3)
- JTAG pin
- TCK Test Clock Input
- TMS Test Mode Select
- TDI Test Data Input
- TDO Test Data Output
- nTRST Test Reset
- TAP controller
- State machine? ?? JTAG? ?? operation? ??. state?
??? TMS? ???? TCK? triggering?? ?? - ?? ???
- http//www.jtag.com
52JTAG ?? (4)
- Boundary-Scan Test Interface JTAG Diagram
?
??? ?? ?? ??
Digital Chip
Flash ??? write
Registers
TAP
53JTAG ?? (5)
- JTAG ??
- ????(CPU)? ???? ???? ????? ?? ?? ?? ?????? ?? ??
?? ? ?? ??? ?? - ??? ??? ??? ??? ???? test
- ?????? ???? test
- Flash memory fusing
54JTAG I/F Program ?? ? ?? (1)
- pxa255-pro? JTAG ?? ??(cpu)? ??
- cpu? ??? pin? BSC (Boundary-Scan Cell)? ????
??, ? BSC? BSR (Boundary-Scan Register)? ??? ??. - BSC ? pin? ?? bit ??? ?(?? ??)? ??? ??.
- BSR ?? BSC? ?? ?? ??? Register? ??? ??.
- TDI??? ??? ???? shift??? ?? ??? ??? ?? ??????,
??? ? ?? ??, TDO? ?? ? ?? ????. - JTAG? ??? ??? ??? ????, IC ?? ?? ? ???? ?? ??
??? ??.
55JTAG I/F Program ?? ? ?? (2)
56JTAG I/F Program ?? ? ?? (3)
- PXA255-PRO V3.0?? Host ? Target? JTAG Interface
57JTAG I/F Program ?? ? ?? (4)
- JTAG I/F ????
- Host PC?? jtag interface? ??? target system?
flash memory? data? fusing ?? ??? ???? ??? ???? - ftp//ftp.arm.uk.linux.org/pub/linux/arm/people/xs
cale/lubbock/jtag/ ?? jtag.0624.tar.bz2? ?? ?? ?
??. - PXA255-PRO V1.0 ?? ????? ? ??? ?? ???? huins?? ??
?? jtag ????? ????? ??
58JTAG I/F Program ?? ? ?? (5)
- Jtag ???? ??
- jtag ????(pxa255-jtag.tar.gz)? ?? ????? ????.
Example??? /usr/local/pxa255? ??      - ????
- tar xfvz pxa255-jtag.tar.gz
- ?? ??? ?? ????? ??
- cd pxa255-jtag/jtag-0.4
- configure (Makefile ??)
- ./configure --prefix/usr/local/pxa255/pxa255-jt
ag - --with-include/usr/local/pxa255/pxa255-jtag/incl
ude-0.2.3 - compile install
- make make install
??? ?? ??? ????. ?? ?????? ???? ??
59JTAG I/F Program ?? ? ?? (6)
- Jtag ?? ??
- /usr/local/pxa255/pxa255-jtag ????? ???? bin ???
share??? ?????? ??? ?, ??? ???? bin????? PATH?
???? - ??, ?? ?? jtag? ??? ?? ??? ??? /bin ????? ???
???? ???? ??? ? ??? ??
60JTAG I/F Program ?? ? ?? (7)
- Jtag ???? ??
- ??? ??? blob ???? ?? ??? ??? ? jtag? ????.
61JTAG I/F Program ?? ? ?? (8)
- Jtag ???? ??
- ??? ?? ??? ?? blob? flash ???? 0??? ???(? 35? ??
???)
62Jflashmm ???? ?? (1)
- Jflashmm
- Intel??? ???? windows O/S? ??? ??? ?? ????
- JTAG I/F? ???? ???????? ?????? ??? ???? fusing
- ??? ?? ??? ???? ???? ???(u-boot.bin)? ???? ?? ??
63Jflashmm ???? ?? (2)
- ??? ????.
- ( Ex. JFlash_MM_V5_01_007.exe )
- Yes Click
64Jflashmm ???? ?? (3)
- ??? ??? ??? ? Next? ????.
- Next Click
65Jflashmm ???? ?? (3)
66Jflashmm ???? ?? (4)
67Jflashmm ???? ?? (5)
- PXA255 Data ?? ??
- CD\JFlashMM\dbpxa255.dat? Jflashmm? ??? ???? ??
????. - GIVEIO ???? ??
- C\Program Files\Inter Corpation\Jflash_MM? ??
GIVEIO.SYS??? ???? C\WINDOWS\system32\drivers
(Windows XP??), C\WINNT\system32\drivers
(Windows 2000??)? ???.
68Jflashmm? ?? ???? ?? (1)
69Jflashmm? ?? ???? ?? (2)
70Jflashmm? ?? ???? ?? (3)
- ?, ????? ?? ??????? ????.
- ??? ????.
71Jflashmm? ?? ???? ?? (4)
- ? ???? ?? ??? ????.
- ??? ????.
72Jflashmm? ?? ???? ?? (5)
- ???? ?? ??? ???? ??? ????.
- ??? ????.
73Jflashmm? ?? ???? ?? (6)
- ?? (COM ? LPT)? ????.
- ??? ????.
74Jflashmm? ?? ???? ?? (7)
75Jflashmm? ?? ???? ?? (8)
- ????? ????.
- Jflashmm? ??? ???? ?? ?? giveio.inf? ????.
- ??? ????.
76Jflashmm? ?? ???? ?? (9)
77Jflashmm? ?? ???? ?? (10)
78Jflashmm? ?? ???? ?? (11)
79Jflashmm ???? ?? (1)
- ?? -gt ??? ????? Window-Key R? ?? ???? ??.
- cmd? ??? ? ??? ????.
80Jflashmm ???? ?? (2)
- Jflashmm? ??? ????? ????.
81Jflashmm?? u-boot.bin ??? ??
- ????? Image File? Jflashmm? ??? ????? ????
- ???? ??? ?? u-boot.bin ??
- Jflashmm dbpxa255 ltImage File Namegt? ???? Enter?
???. - ltImage File Namegt?? ???? ? ??? ?? ??? ???.
82Jflashmm?? u-boot.bin ??? ??
83TFTP ?? ?? ? ??
84TFTP ?? ?? ? ?? (1)
- TFTP?
- TCP ? ???? ????? file ??? ???? ftp? ?? UDP? ????
file? ???? protocol - Data? ?? ?? ??? ? ??? ?? ?? ????? ??? file? ??
??? ? ??? ???? - Embedded system ?? ???? kernel image? ramdisk? ??
??? ? ???? bootloader? ?? target board? ??? ????
?? ?? ???? - Linux? TFTP ????
- www.rpmfind.net ?? tftp? ???? ?? rpm? ?? ? ??
85TFTP ?? ?? ? ?? (2)
- ?? ??
- TFTP rpm? ???? ?? host? ?? ??? ???? ????.
- ??? ?? ??? ???? ??.
- rpm qa grep tftp
- ??
- Host? ??? ???? ??? ??? ?? ????.
- rpm ivh tftp-0.32-4.i386.rpm
tftp-server-0.32-4.i386.rpm
86TFTP ?? ?? ? ?? (3)
- TFTP Server ??
- TFTP Server? xinetd daemon?? ????.
- TFTP Server? ????? ?? /etc/xinet.d/tftp ??? ???
?? ????. - service tftp
-
- disable no
- socket_type dgram
- protocol udp
- wait yes
- user root
- server /usr/sbin/in.tftpd
- server_args -s /tftpboot
- per_source 11
- cps 100 2
- flags IPv4
-
87TFTP ?? ?? ? ?? (4)
- TFTP Server ?? (cont)
- ??? ??? ? ???? ????? /tftpboot ? ???.
- mkdir /tftpboot
- TFTP ?? ??? ??? ??? xinet daemon? ?? ??? ?? xinet
daemon? ??? ???? ??. - /etc/init.d/xinetd restart
- TFTP? ?? ??? ???? ??? ????.
- netstat a grep tftp
- tftp? ??? ?? ???? ??? ???? ?? ???.
88TFTP ?? ?? ? ?? (5)
- TFTP ?? ?
- ??? ??? /tftpboot? ????. ?gt cd? ramdisk.gz ??
- cp /mnt/cdrom/ramdisk.gz /tftpboot/
- Minicom? ?????.
- minicom
- Target board? ??? ?? ?? ?? ???? ??? ?? ??? key?
??? bootgt prompt ? ?? ?? ??? ? ??.
89TFTP ?? ?? ? ?? (6)
- TFTP ?? ? (cont)
- tftp ??? ??? ramdisk ? ???? ??? ????.
90NFS ?? ? ??
91NFS ?? (1)
Ethernet? ??? NFS ??
92NFS ?? (2)
192. 168. 1.
Host 192.168.1.100
Target 192.168.1.101
93NFS ?? (3)
- ?? ?? - NFS ??? ?? ??? ?? ??? ??
- LAN Direct Cable
- Linux ????? ???? ?? PC(Host)
- PXA255-pro ?? ??(Target)
- LAN cable? direct? cross cable ?? ?????? ? ?????
direct cable? ????.
94NFS ?? (4)
- NFS nfs? ?? disk ??? (1)
- NFS(network file system)
- client? server?? ?? file ?? file system? ??? ??
?? ?? ??? ???? ???? ????? - NFS ???? nfs_success?? ??? host?? target??
download ???.
95NFS ?? (5)
- NFS nfs? ?? disk ??? (2)
- Host? target? ??? ??? host? ??? ??? ????.
96NFS ?? (6)
- NFS nfs? ?? disk ??? (3)
- Host? target? ??? ??? host? ??? ??? ????.
97NFS ?? (7)
- NFS nfs? ?? disk ??? (4)
- ????? LAN card? 1???? ??? IP? ?? ??? target? ??
ip? ???? ??? IP aliasing? ?? - IP aliasing ?? ??? ??? ?? copy ??
98NFS ?? (8)
- NFS nfs? ?? disk ??? (5)
- ?? ??? ?? copy? ??? ????.
99NFS ?? (9)
- NFS nfs? ?? disk ??? (6)
- ?? Host?? nfs ????? ???.
100NFS ?? (10)
- NFS nfs? ?? disk ??? (7)
- ???? directory? export??? ??.
101NFS ?? (11)
- NFS nfs? ?? disk ??? (8)
- ???? ????? export ? ? ??? vi? ???? /etc/exports
??? ??? ?? ????.
Root? ???? root? ??? ???? ??
Read/ write
102NFS ?? (12)
- NFS nfs? ?? disk ??? (9)
- nfs ??? ? ????.
- ?? ??? ?? ??? ???? ??.
- service nfs restart
103NFS ?? (13)
- NFS nfs? ?? disk ??? (10)
- NFS? mount?? target? ????? ???.
- NFS server? target? ????? nfs ?? ??? ??? mount
???.
Host IP address
104NFS ?? (14)
- NFS nfs? ?? disk ??? (11)
- cat /etc/mtab ? ???? mount ???? ??
- Mount ?
105NFS ?? (15)
- NFS nfs? ?? disk ??? (12)
- Mount ?
106NFS ?? (16)
- NFS nfs? ?? disk ??? (13)
- ??? ??? Host? /home/share? Target? /mnt/nfs? ??
????? ??? ??? ?. - Host? /home/share ? nfs_success?? ??? ??? Target?
/mnt/nfs ?? ? file? ls ???? ??? ? ??. - Host?? nfs_success?? ??? ??
107NFS ?? (17)
- NFS nfs? ?? disk ???(14)
- Target?? nfs_success?? ??? ??
108NFS ?? (18)
- NFS nfs? ?? disk ???(15)
- umount ??? ???? mount ??