1 / 21

嵌入式系统设计 - Lab3 配置 ucLinux

嵌入式系统设计 - Lab3 配置 ucLinux. 赵峰 2007 年 5 月. Outline. Lab3-1 uClinux 交叉编译环境的搭建 Lab3-2 Hardware Platform Lab3-3 EDK 文件导入及 uClinux 基本配置. Lab3-1 uClinux 交叉编译环境的搭建. 交叉编译工具链 Microblaze 编译器 uClinux 的压缩包 uClinux 源代码包 运行编译器的系统: Linux 系统 虚拟机. 交叉编译器. 宿主机:程序编辑,编译,烧写 目标板:运行

hanne
Download Presentation

嵌入式系统设计 - Lab3 配置 ucLinux

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 嵌入式系统设计-Lab3 配置ucLinux 赵峰 2007年5月

  2. Outline • Lab3-1 uClinux交叉编译环境的搭建 • Lab3-2 Hardware Platform • Lab3-3 EDK文件导入及uClinux基本配置

  3. Lab3-1 uClinux交叉编译环境的搭建 • 交叉编译工具链 • Microblaze编译器 • uClinux的压缩包 • uClinux源代码包 • 运行编译器的系统: • Linux系统 • 虚拟机

  4. 交叉编译器 • 宿主机:程序编辑,编译,烧写 • 目标板:运行 • 连接方式:RS232,ethernet,USB

  5. 交叉工具链 • microblaze-elf-tools-20060213.tar.gz • tar –zxf microblaze-elf-tools-20060213.tar.gz

  6. 打开当前用户的.bash_profile文件。输入命令: • vi ../.bash_profile • 把microblaze交叉工具链所在的路径加到PATH中,即 • PATH=/home/embed/microblaze-elf-tools/bin:$PATH • 或者:export PATH=/home/embed/microblaze-elf-tools/bin:$PATH

  7. 安装uClinux源码包 • uClinux源码包(uClinux-dist-20060803.tar.bz2) • tar –jxf uClinux-dist-20060803.tar.bz2

  8. Linux命令 - tar • 压缩目录/文件(bzip2,gzip) • tar –cjf filename.tar.bz2 directory/filename • tar –czf filename.tar.gz directory • 解压文件(bzip2,gzip) • tar –zxf filename.tar.gz • tar –jxf filename.tar.bz2

  9. 虚拟机与主机的交互

  10. data /mnt/hgfs/training/

  11. Lab3-2 Hardware Platform • 首先将tools下的edk_user_repository目录整个拷贝到EDK的安装路径下 • 如EDK安装在D:盘根目录,则该目录也拷贝到D:根目录。

  12. Debug module

  13. Software Platform Settings

  14. Lab3-3 EDK文件导入及uClinux基本配置 • cp /mnt/hgfs/training/lab3/autoconfig.in linux-2.4.x/arch/microblaze/platform/uclinux-auto

  15. 文件格式转换 • Vi -> set ff:unix • Dos2unix • make distclean 或者 make clean • make mrproper • make menuconfig • make dep • make

  16. image.bin拷贝到XPS工程根目录。 • EDK上选择菜单“debug -> launch xmd”。打开XMD窗口。 • 输入命令: • dow –data image.bin 0x30000000 • 其中0x30000000是DDR内存的起始地址 • 输入命令: • con 0x30000000 • cpu将开始启动uClinux操作系统

  17. 几点技术说明 • Debug • Stdout • Ping

  18. 几点使用说明 • 只有在lab3-3第23步开始使用该开发板。 • 估计5~15分钟可以使用结束。 • 最好两人合作。

  19. 实验 报告 • 1.实验中碰到的问题描述与分析 • 2.实验结论 • 4.ping是如何实现的? • 5.思考:如何增加telnet功能? 标题3 正文+宋体+小四 学号+lab3+姓名全拼.doc

More Related