?6? FUSING - PowerPoint PPT Presentation

About This Presentation
Title:

?6? FUSING

Description:

Title: 1 Author: negi Last modified by: SEC Created Date: 2/20/2004 3:22:49 AM Document presentation format: Company – PowerPoint PPT presentation

Number of Views:139
Avg rating:3.0/5.0
Slides: 51
Provided by: negi
Category:
Tags: fusing | uart

less

Transcript and Presenter's Notes

Title: ?6? FUSING


1
?6? FUSING
2
??
  • 6.1 overview
  • 6.2 Bootloader
  • 6.3 kernel image
  • 6.4 rootfile-system image
  • 6.5 fusing

3
6.1 Overview
4
6.1 Overview

5
6.1 Overview
  • ?? ?? ??
  • Target System? ???? ???? ??? ??? 3?? ????? ????.
  • Boot Loader
  • ????? ????? kernel image? sdram? ???? ??? ????
    ??? ?? ????
  • OS Kernel
  • OS ? ?? ????
  • Root File System
  • Kernel ?? ??? File System

6
6.1 Overview
  • ?? ?? ??
  • Target System? ?? ????? ???? ?? user file system?
    ?? ? ? ??.
  • User File System
  • Root file system ? ???? ?? util?? data file?? ??
    ????? ??? file system

7
6.1 Overview
  • What is Boot Loader?
  • ???? ??? ? ?? ?? ???? ????
  • Main Function
  • Hardware Initialization
  • CPU clock, Memory timing, interrupt, UART, ETC.
  • PC? BIOS
  • Kernel Load
  • ?? ??? RAM? ???? ??.
  • Additional Function
  • Target board? ??? program? ???? ?? ???.
  • Download Image to SDRAM
  • Serial xmodem, uuencode
  • Ethernet tftp, bootp
  • Fusing Flash Rom
  • Write, Read, Erase, Lock/Unlock

8
6.1 Overview
  • Kernel
  • OS? ????? ???? ????
  • Process management
  • Memory management
  • Device management
  • Network management
  • File System Management
  • API (Application Programming Interface)
  • ETC.
  • Kernel Image
  • Kernel ? ??? ??? boot loader? ?? ??? ???? sdram??
    load ??.
  • ???? ?? ??? ????? ???? ?? ???? ?? ??? ??

9
6.1 Overview
  • Root File System
  • / ????? ??? ?? ?? ????? ???? ???? ?? ????? ???
    ???? ? ?? ??? ??? ??.
  • Kernel ?? ???? ??? ?? ? Root File System? ??? ??.
  • Embedded System ? ??? ??? ??? ??? hard disk? ???
    ?? ? ?? ??? ?? Ramdisk? ???? Root File System?
    ????.

10
6.1 Overview
  • User File System
  • Root file system ? ???? ?? util?? data file?? ??
    ????? ??? file system
  • ?? ??? ???? target board? ?? ????? ???? ??? ????.
  • Flash File System?? ??
  • Ramdisk? ?? Flash Memory? ?? file system? ??? ?
  • Flash Memory? ?? read/write ? hard disk? ???? ??
  • ??? ?? ??? ?? ??? Flash Memory? ????.
  • Flash memory? ???? ?? ??? ???? ???? ??? ??? ????
    ?? ??? ??? ? ??

11
6.1 Overview
  • JFFS2
  • Journalling Flash File System
  • Red Hat?? ??? flash file system?? linux kernel??
    ??
  • ??? ????? ???? ?? ?? ??? ?? ?? ????, ramdisk?
    ???? ?? ?????? ???? ?? ??

12
6.1 Overview
  • Target ?? ??

13
6.1 Overview
  • Target Operating ?? 1
  • Boot Loader


SDRAM
1. Power On
Boot Loader Linux Kernel RAMDISK JFFS2
2.Execute 0x00000000
3.Load Kernel
4. Load Root File System (RAMDISK)
FLASH Memory
14
6.1 Overview
  • Target Operating ?? 2
  • Kernel

15
6.2 Bootloader
  • ????? ????? jtag?? flash? fusing ??.

16
6.2 Boot Loader ??
  • Bootloader? ??? ?? ???? ????? Toolchain? ?? ??
    ??? ??. Toolchain ??? ?? ? ? ? ??.
  • Source ??? ????.
  • tar zxvf iwmmxt-1.0.0.tar.gz

17
6.2 Boot Loader ??
18
6.2 Boot Loader ??
  1. Boot Loader compile

19
6.2 Boot Loader ??
  • Compile? ????, boot? ??? ??.
  • ????? boot? bootloader image??.

20
6.2 Boot Loader ??
  • lt JTAG program ?? gt
  • What is JTAG?
  • Joint European Test Access Group
  • JTAG? PCB? IC? ??? ?? ?? ???? 1985? ???
  • JTAG(Joint Test Action Group)? ?? ??? ????.
  • Boundary Scan Test
  • ? ??? Boundary Cell?? ?? ?? ??? ?? ?? ?? ????
    ????? ? ? ?? ??? ??? Cell? ?? ?? ??? ????? ??? ?
    ?? ?? ?? ???? ???? ?? ?? ?? ??? ? ??.

21
6.2 Boot Loader ??
  • lt JTAG program ?? gt
  • JTAG ??
  • ????(CPU)? ???? ???? ????? ?? ?? ?? ?????? ?? ??
    ?? ? ?? ??? ??
  • ??? ??? ??? ??? ???? test
  • ?????? ???? test
  • Flash memory fusing

22
6.2 Boot Loader ??
  • lt JTAG program ?? gt
  • PC? ?? JTAG ?? ??? ??

23
6.2 Boot Loader ??
  • JTAG ??

24
6.2 Boot Loader ??
  • JTAG Build
  • JTAG ??? ?? ????? ????.
  • Makefile ? ???? ???? make ??? ???? JTAG ??? ???
    ??. ???? ???? Jflashmm ?? ???? ??? ????.

25
6.2 Boot Loader ??
  • ????? Bootloader ???
  • ??? ???? ????? ??? ???? jflashmm? ???? ???
    ???? Fusing ??.
  • jflashmm ????? ??? JTAG ???? ??? ??? PC? ???
    ??? ???? ????? ????? Fusing ? ? ??.
  • roothost ./jflashmm pxa27x32.dat boot

???? ???(boot)? cpu? flash ???? ?? ???
???(pxa27x32.dat)?? ?? ????? ??.
26
6.2 Boot Loader ??
  • Bootloader Fusing
  • JTAG? ?? flash 0??? ???? fusing

27
6.3 Kernel Image
28
6.3 Kernel Compile
29
6.3 Kernel Compile
  • ??? ?? (CD ? ?? ??)
  • lt??? ??? ??gt
  • - X-Hyper270-TKU Kernel linux-2.6.11-h270-tk
    u_v1.1
  • ??? ???? ??
  • X-Hyper270-TKU Kernel linux-2.6.11-h270-tku_
    v1.1.tar.gz

30
6.3 Kernel Compile
  • X-Hyper270-TKU Kenel? linux-2.6.11-h270-tku_v1.1.t
    ar.gz? compile ?? zImage? ??
  • Kernel source? ?? ????? ????. ?? ?? ????
    X-Hyper270-TKU ??? ? ? menuconfig ???? ????.
  • make xhyper270tku_deconfig? kernel ??? ???
    TKU??? ??? ?? ?? ??. makemenu config? ?? ???
    kconfig ??? ????.
  • make zimage? ???? ?? ? ???? ??? ???? ?????.

/Kernel cd linux-2.6.11-h270-tku_v1.1 /linux-2.6.11-h270-tku_v1.1 make xhyper270tku_defconfig /linux-2.6.11-h270-tku_v1.1 make menuconfig /linux-2.6.11-h270-tku_v1.1 make zImage
??? ??? ???? ?????.
31
6.3 Kernel Compile
  • ???? kernel ???? /tftpboot ? ??
  • cp ./arch/arm/boot/zImage /tftpboot/
  • bootloader? ??
  • minicom? ?? ??.
  • bootloader command mode? target system booting

32
6.4 rootfile-system image
33
6.4 jffs2 file system
34
6.4 jffs2 file system
  • mkfs.jffs2 ??
  • jffs2 file system? ??? ???? mkfs.jffs2 ?????
    ????.
  • Host? ?? ???? ???? ???? ??? ????.

35
6.4 jffs2 file system
  • flash? ?????? Jffs2 image? mkfs.jffs2 ??
  • ????? ?? image? ???.
  • ??? ?? ???? ?? ?? ???? ???.

36
6.4 jffs2 file system
  • mkjffs2 ???
  • ????? ??? ??? ??.
  • ??? rootfs.img ???? bootloader? ??? ???? ? ? ??
    ??
  • flash? write? ??? ??.

37
6.5 FUSING
38
6.5 FUSING
  • Fusing
  • ??? tftp ??? ??? ?? ??
  • hybusgttftp zImage kernel
  • hybusgtflash kernel
  • hybusgttftp rootfs.img root
  • hybusgtflash root

39
6.5 FUSING
  • Booting linux kernel
  • ????? ???? ?????? ?????? ? ??? ???. ??? boot????
    booting??? reset ??? ?? ?????? ? ?????.
  • hybusgt boot
  • ?????? ? ????? ????.
  • ??? ?????? ?? fusing? ???.

40
6.6 Bootloader ???
41
Bootloader Command(?)
  • Bootloader ???
  • ??? ???? ????? ?? ???? ????? ??? ??? ??? ???
    ??.(EMPOS II? ???? ??)
  • Help Command mode?? ?? ??? ???? ????

gthelp
42
Bootloader Command (?)
  • bootp Host PC???? bootp? ?? Target board?
  • IP? ?? ?? ? ?? ??

gtbootp
43
Bootloader Command (?)
  • setip bootp? ???? ?? ?? ip ???? ???

gtsetip 192.168.0.5 192.168.0.7
Host PC IP
Target Board IP
44
Bootloader Command (?)
  • macwrite MAC Address ?? ???
  • Mac Address ??? ??? Host PC? /etc/bootptab???
    Tartget Board? Mac Address? ha? ?? ? ?? ??????.

gtmacwrite pri 000ba8000000
?? eth(sec ?? sec?)
?? MAC Address
45
Bootloader Command (?)
  • tftp ????? ??? ???? ?? ???? ?? ???

gttftp zImage kernel
46
Bootloader Command (?)
  • read ?? ??? ??? ?? ?? ?? ?? ???

gtread b32 0x48000000
47
Bootloader Command (?)
  • write ??? ??? ???? ?? ???? ?? ???

gtwrite b32 0x4800000C 0x12BC5554
48
Bootloader Command (?)
  • flash ??? ?? ???? Flash??? ???? ???

gtflash kernel
49
Bootloader Command (?)
  • erase Flash Rom? ???? ???? ???? ???

gterase kernel
50
Bootloader Command (?)
  • Status Flash ???? ?? ???(booter, kernel,
    ramdisk, usr)? ??? ?? ??? ???? ???? IP? tftp ???
    ?? Host PC? IP, ? ???? MAC Address? ?? ???? ?? ?
    ? ?? ???

gtstatus
Write a Comment
User Comments (0)
About PowerShow.com