xlanchen@ustc.edu.cn - PowerPoint PPT Presentation

About This Presentation
Title:

xlanchen@ustc.edu.cn

Description:

Title: SkyEye Author: salmon Last modified by: chenxl Created Date: 5/21/2006 1:22:47 AM Document presentation format: Other titles – PowerPoint PPT presentation

Number of Views:29
Avg rating:3.0/5.0
Slides: 48
Provided by: salmon
Category:
Tags: atmel | edu | ustc | xlanchen

less

Transcript and Presenter's Notes

Title: xlanchen@ustc.edu.cn


1
???????
  • ???
  • xlanchen_at_ustc.edu.cn
  • ????????
  • Spring 2009

2
SkyEye???????
  • SkyEye??
  • SkyEye??????
  • ??
  • ??hello
  • ?????Linux

3
SkyEye??
  • SkyEye?????????,????????
  • SkyEye??????
  • ?????????????????????,???????????????,??????????
    ??????????????
  • Skyeye???http//www.skyeye.org/index.shtml

4
  • SkyEye???????Linux?Windows????????????????,?????
    ???????????
  • ????SkyEye???????
  • 1)?????????,?ARM Linux?µClinux?µC/OS-II?elastos2
    )??????,??? ?TCP/IP???-lwIP,?????-MiniGUI?
  • ???????????????????????

5
SkyEye??????
  • ??,SkyEye????????,??CPU??????????????????????????
    ?????
  • CPU??????
  • ??SkyEye?????CPU?????ARM???CPU,??ARM7TDMI,ARM720T,
    ARM9TDMI,ARM9xx,ARM10xx,StrongARM,XScale?

6
  • ??SkyEye????????
  • ??Atmel 91X40/AT91RM92 CPU????,??Crirus Logic
    ep7312???????StrongARM CPU?ADSBITSY???,??XScale
    PXA250 CPU?LUBBOCK??????SAMSUNG S3C4510B/S3C44B0
    CPU???????SHARP LH7A400 CPU???????Philip
    LPC22xx CPU??????
  • ???????????????????RAM?ROM?LCD???????????

7
(No Transcript)
8
  • ????????????
  • MMUMemory Management Unit,???????,??????????????
    ?
  • MMU????????1)???????????2)???????????
  • MMU???,??????????????

9
  • TLB,Translation Lookaside Buffers?MMU?,??????????
    ??????
  • ??????????????????,??,???????
  • ?CPU???????????,????TLB?????????
    ?????,??????,?????translation table,??Translation
    Table Walk(??TTW)???TTW???,?????????TLB?????TLB??
    ??????????

10
  • CACHE,????????????????,???????????????,??????CPU?
    ??????????
  • write/read buffer????write/read
    buffer????????CACHE??????

11
  • MMU?CACHE?write/read buffer??????CPU???????,?????C
    PU?MMU?CACHE?write/read buffer????????????????????
    ???CPU?MMU/CACHE,SkyEye????????MMU/CACHE??????????
    ????????????????MMU/CACHE??????????

12
  • ????
  • ??SkyEye???????8019AS,
  • ????NE2000??,??16KRAM???,10MB?????
  • ???????????????????8019AS,?????????????????8019AS
    ????

13
SkyEye???
  • Linux????
  • WindowsMingW?cygwin

14
?Kubuntu???SkyEye
  • ???Linux???
  • uname????????????uname --help????uname???????

????
???
????
??????
????????
??????
15
?Kubuntu???SkyEye
  • ???????
  • ?????,?????
  • ?????????

16
?????,?????
  • ??????

17
??1.2.7
  • skyeye-1.2.7_rc1.tar.bz2
  • ???
  • ???1.2.7?skyeye??????

18
  • ??3.4??????
  • arm-linux-gcc-3.4.1.tar.bz2
  • ??1.2.7???
  • ./configure
  • make
  • sudo make install
  • ????????

19
?????
  • ???skyeye-testsuits,???1.2.5
  • skyeye-testsuite-1.2.5.tar.bz2
  • ???
  • ??skyeye??????????Linux

20
?Linux?????????hello
  • ?????hello.c
  • ??3.4.1???arm-linux?????,??????elf????????/usr/l
    ocal/arm/3.4.1/bin/arm-linux-gcc static o hello
    hello.c
  • ?linux????????initrd.img????????mkdir rootsudo
    mount o loop initrd.img root
  • ?hello?????????sudo cp hello root/bin
  • sudo umount root
  • skyeye -c skyeye.conf -e vmlinux
  • ??armlinux??,??bin??,??hello

21
Thanks!
  • The end.

22
?Kubuntu??????????(??)
  • ??????SkyEye?????
  • ?www.skyeye.org?????????
  • ?????????????
  • ??????????
  • /usr/local/ ??/opt/
  • bz2????tar -xjvf ?????

?
23
?Kubuntu??????????
  • skyeye???????????bin????
  • ?skyeye??????PATH
  • ??/.bashrc???? export PATHPATH????/skyeye-ins
    ight/bin(???)

24
(No Transcript)
25
  • ??????.bashrc??,????????,?????????
  • ????????
  • ??echo PATH
  • ?sky??tab???
  • OK?
  • ??skyeye,????skyeye???,??

26
(No Transcript)
27
SkyEye???
  • ?uCLinux???????????uCLinux
  • ????uCLinux????????????
  • ?skyeye?????uCLinux??

28
????????
  • www.uclinux.org?uCLinux??????????????
  • ?arm-elf-tools-20030314.sh
  • ??
  • ?root?????
  • sh ./arm-elf-tools-20030314.sh
  • ????
  • ? arm-elf??shell?tab?????????arm-elf?????,?
  • binutils???gcc?gdb??
  • ???????arm-elf-gcc -v

29
(No Transcript)
30
??arm-elf-gcc
  • ???

31
??arm-elf-gcc
  • ??
  • arm-elf-gcc -elf2flt -o hello hello.c
  • ???????
  • hello?hello.gdb
  • ??hello???
  • file hello
  • ????hello???

32
???
-Wl,-elf2flt???????elf?????flt?? ??????,????-elf
2flt??
?????
BFLT??binary FLAT
33
??hello
  • hello???target???,???host?
  • ????target?????
  • skyeye???
  • uCLinux??????
  • ??????
  • ??

34
??uCLinux????
  • ????
  • ??skyeye???????
  • ????????uCLinux

35
????uClinux
  • ?uClinux?????????
  • ????????uClinux-dist-20051110
  • ??tar -xzvf???,??uClinux-dist??
  • ?uClinux-dist???
  • ?????uClinux??make config?vendor/product?????G
    DB/ARMulatorKernel????2.4.x??????(??????)

36
  • ???????uClinux???????make dep make
  • ?????
  • uClinux-dist????????images??
  • ?linux-2.4.x????linux?system.map

image.bin ??Linux?????romfs?????? ?????flash?
linux.data?????????
linux.text??Linux??????
romfs.imgromfs??????
linuxlinux????
system.map?????
37
?skyeye??µcLinux
  • ???,??skyeye???????
  • vi skyeye.conf
  • ???,???????boot.rom
  • ??ln -s images/romfs.img boot.rom

?romfs???flash?
38
  • ???,?skyeye???uCLinux
  • ??sudo skyeye linux-2.4.x/linux
  • ??skyeye?,
  • ??1target sim
  • ??2load
  • ??3run
  • ??uCLinux

39
????
40
????uCLinux?????
  • ??skyeye?????
  • skyeye-binary-testutils-1.2.0
  • ??tar -xjvf ???

?
41
  • ??uCLinux????????
  • ??skyeye??µcLinux
  • skyeye linux
  • target sim
  • load
  • run

????
???flash??
42
???,?hello???uCLinux?romfs?????
  • ?boot.rom?????host???,????
  • mkdir romfs
  • mkdir /mnt/tmp
  • mount -o loop boot.rom /mnt/tmp
  • cp -r /mnt/tmp/ romfs
  • ?hello???romfs??bin???
  • ????boot.rom??
  • genromfs -f boot.rom d romfs/

????initrd.img,???mountcpumount??? ??????initrd
.img ??????,??????
43
??/mnt/tmp??
Boot.rom?romfs???,?????tmp???
?tmp??????????????romfs???
??romfs????
44
??hello?/bin???
????boot.rom
??boot.rom
45
??hello
  • ???????
  • ???????????????????
  • skyeye
  • file linux
  • target sim
  • load
  • run
  • ??hello

46
?uCLinux???,????
47
Thanks!
  • The end.
Write a Comment
User Comments (0)
About PowerShow.com