Embedded System Porting (1) - PowerPoint PPT Presentation

1 / 41
About This Presentation
Title:

Embedded System Porting (1)

Description:

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

Number of Views:55
Avg rating:3.0/5.0
Slides: 42
Provided by: negi
Category:

less

Transcript and Presenter's Notes

Title: Embedded System Porting (1)


1
Embedded System Porting (1)
2
? ?
  1. Overview
  2. Bootloader
  3. Kernel
  4. Ramdisk
  5. JFFS2

3
Overview
4
Overview (1)
Target System

5
Overview (2)
  • ?? ?? ??
  • Target Embedded System? ???? ???? ??? ??? 3??
    ????? ????
  • Boot Loader
  • ????? ????? kernel image? SDRAM? ???? ??? ????
    ??? ?? ????
  • OS Kernel
  • OS ? ?? ????
  • Root File System
  • Kernel ?? ??? File System

6
Overview (3)
  • ?? ?? ??
  • Target System? ?? ????? ???? ?? user file system?
    ?? ? ? ??
  • User File System
  • Root file system ? ???? ?? utility? data file??
    ?? ????? ??? file system
  • ?? ?? ????? ???? ???? ??? ???? ???? ???? ???? ??

7
Overview (4)
  • 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
Overview (5)
  • Boot Loader ?? ??

9
Overview (6)
  • Kernel
  • OS? ????? ???? ????
  • Process management
  • Memory management
  • Device management
  • Network management
  • File System Management
  • API (Application Programming Interface)
  • ETC.
  • Kernel Image
  • ???? ?? ??? ????? ???? ?? ???? ?? ??? ??
  • ??? Kernel image? boot loader? ?? ??? ????
    SDRAM?? load ??

10
Overview (7)
  • Root File System
  • / ????? ??? ?? ?? ????? ???? ???? ?? ????? ???
    ???? ? ?? ??? ???? ??
  • Kernel? ???? ??? ?? ?? Root File System? ?????
  • Embedded System? ??? ??? ?? ?? ???? ??????? hard
    disk? ??? ??
  • ? ?? ?? ?? Ramdisk? ???? Root File System? ??

11
Overview (8)
  • Ramdisk
  • Hard disk ? floppy disk ? Kernel? ???? ?? File
    System? ?? ?? RAM? ?? ??? ?? ??? ??
  • ? RAM? disk ???? ???? ?? Ramdisk? ?
  • ??? ramdisk ???? Flash Memory? ??? ? ??? ??? ???
    ??? ram? Load? ? ????
  • ?? ??? ??? ? ?? ? ?? ???? static data? ??
  • ???? Embedded System? Root File System? ???? ??
    ramdisk? ????

12
Overview (9)
  • User File System
  • Root file system ? ???? ?? utility? data file??
    ?? ????? ??? file system
  • ?? ??? ???? target board? ?? ????? ???? ??? ??
  • Flash File System?? ??
  • Ramdisk? ?? Flash Memory? ?? file system? ??? ?
  • Flash Memory? ?? read/write ? hard disk? ???? ??
  • ??? ?? ??? ?? ??? Flash Memory? ??
  • Flash memory? ???? ?? ??? ???? ???? ??? ??? ????
    ?? ??? ??? ? ??

13
Overview (10)
  • JFFS2
  • Journalling Flash File System
  • Red Hat?? ??? flash file system?? linux kernel??
    ??
  • ?? NOR Flash Memory? ??
  • ??? ????? ???? ?? ?? ??? ?? ?? ????, ramdisk?
    ???? ?? ???? ?? ???? ?? ??

14
Overview (11)
  • Target System ?? ??

15
Overview (12)
  • Target System? ?? ??-1
  • Boot Loader


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

17
Bootloader
  • ????? ????? JTAG? ???? flash memory? fusing ??

18
Boot Loader ?? (1)
  • Boot Loader Compile
  • Boot Loader For Xscale processor
  • Arm ??? processor??? BLOB? ?? ??
  • Boot Loader source code
  • HUINS?? ??? CD? blob.zip ??
  • Kernel source code
  • HUINS?? ??? CD? linux-2.4.19-cd.tar.gz ??
  • Install Method
  • JTAG ??? ??? ?? ?? ??
  • ROM? ?? ???? ???? ??? ??

19
Boot Loader ?? (2)
  • Boot Loader Compile
  • Huins ?? ??? cd-rom? ????? kernel ? blob ??? ???
    ????? ??? ? ??
  • Example??? /usr/local/pxa255 ? ??

20
Boot Loader ?? (3)
  • Boot Loader Compile
  • Kernel blob? source code ?? ??

21
Boot Loader ?? (4)
  • Boot Loader Compile
  • ??? ?? blob ? linux-2.4.19-cd ????? ???
  • blob ????? ??

22
Boot Loader ?? (5)
  • Boot Loader Compile
  • Makefile ??

?? ?? ?? ?? ??? ????
23
Boot Loader ?? (6)
  • Boot Loader Compile
  • Host IP address ? Target IP address ??
  • /usr/local/pxa255/blob/include/blob/main.h? ?? ??
    ??
  • ?? ??? ??, blob?? ?? IP ?? ?? ??? ??

24
Boot Loader ?? (7)
  • Boot Loader Compile
  • Compile

25
Boot Loader ?? (8)
  • Boot Loader Compile
  • blob ??? ??
  • /usr/local/pxa255/blob/src/blob/ ? ????

26
Boot Loader ?? (9)
  • Bootloader Download
  • JTAG I/F? ???? flash memory? bootloader ????
    fusing??
  • blob ???? ?? ??? ??? ? jtag? ????

27
Boot Loader ?? (10)
  • Bootloader Download
  • ??? ?? ??? ?? blob? flash ???? 0??? ??? (??? ?
    ??(? 35? ??)? ???)

28
Boot Loader ?? (11)
  • Bootloader Download
  • minicom? ???? target borad? reset?? boot loader?
    ? ????? ????

29
Boot Loader ?? (12)
  • Boot Loader Download
  • ??? ?? ??? ??? ??? ???.

30
Boot Loader ?? (13)
  • BLOB? ?? command

31
Boot Loader ?? (14)
  • BLOB? memory map

SDRAM (128M)
FLASH ROM (32M)
0x01,fff,fff
0x00,480,000
0x00,280,000
0x00,080,000
0x00,040,000
0x00,000,000
0xa7,fff,fff
JFFS2
0xa3,000,000
ramdisk.gz
0xa0,700,000
BLOB main()
0xa0,400,400
BLOB down image
0xa0,300,000
zImage
0xa0,008,000 0x00,000,000
JFFS2 27.5 Mbytes
ramdisk.gz 2 Mbytes
zImage 2 Mbytes
parameter 256 Kbytes
BLOB 256 kbytes
32
Kernel
33
Kernel (1)
34
Kernel (2)
  • ?? ??? ?? ??
  • ??? ???? ?? ??? ??? ??? ?? ??? ?? ????? ??
  • make menuconfig ??? ???? ?? ??? ?? ??? ??
  • ?? ???? ?? ??? ??/???? ?? ??? ??? ??

35
Kernel (3)
  • Character device ? LED GPIO? KEY GPIO ??

36
Kernel (4)
  • ?? ??? ??? ???? ?? ?? ?? ??? ??
  • make clean make dep make bzImage

?? ??? ??
??? ?? ??? ??
??? ???? ??? ??
37
Kernel (5)
  • ???? ?? ???? /tftpboot ? ??
  • tftp? ?? ?? ???? target system? ?????? ??
  • cp ./arch/arm/boot/zImage /tftpboot/
  • blob?? ??
  • minicom? ?? ??
  • blob command mode? target system booting

38
Kernel (6)
  • Blob?? ?? ??? Download

39
Kernel (7)
  • Blob?? ?? ??? Fusing

40
Kernel (8)
  • ??? linux kernel? ??

41
Kernel (9)
  • Linux login
Write a Comment
User Comments (0)
About PowerShow.com