1 / 12

Qiushi2440 系统环境搭建及实验

Qiushi2440 系统环境搭建及实验. 余昌盛 13958081784 flyycs@zju.edu.cn. 议 程. 安装及配置主机 Linux 系统 Fedora 9 搭建交叉编译环境 编写自己的 Linux 应用程序 CMOS 摄像头采集实验 直流电机和舵机控制实验. 安装及配置主机 Linux 系统 Fedora 9. Fedora 简介 虚拟机 VMWare 简介. 安装及配置主机 Linux 系统 Fedora 9. VMWare 软件 .windows 平台工具 Vmware-7.0setup.exe

judith
Download Presentation

Qiushi2440 系统环境搭建及实验

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. Qiushi2440系统环境搭建及实验 余昌盛 13958081784 flyycs@zju.edu.cn

  2. 议 程 • 安装及配置主机Linux系统Fedora 9 • 搭建交叉编译环境 • 编写自己的Linux应用程序 • CMOS摄像头采集实验 • 直流电机和舵机控制实验

  3. 安装及配置主机Linux系统Fedora 9 • Fedora简介 • 虚拟机VMWare简介

  4. 安装及配置主机Linux系统Fedora 9 • VMWare软件 • .\windows平台工具\Vmware-7.0\setup.exe • .\windows平台工具\Vmware-7.0\vmware.exe • Fedora 镜像文件 • .\Fedora-9-i686-Live.iso • 详细安装及配置过程

  5. 搭建交叉编译环境 • 什么是交叉编译环境? • arm-linux-gcc交叉编译工具集 • Glibc library and header files • /root/QiuShi/4.4.1/bin/ • 已经自动添加到$PATH路径中,在/root/.bashrc中添加。 • which arm-linux-gcc • 如果提示如下,则表示环境搭建成功。 • [root@localhost ~]# which arm-linux-gcc • /root/QiuShi/4.4.1/bin/arm-linux-gcc

  6. 编写自己的Linux应用程序 • S3C2440两种启动模式 • 从Nor Flash(2M Bytes)启动 • 从Nand Flash(128M Bytes)启动 • 液晶下方拨码开关拨到左侧从Nor Flash启动,反之从Nand Flash启动 • 用USB线连接实验箱和电脑,拨到液晶下方拨码开关拨到左侧,再上电。 • 如果电脑提示安装USB驱动程序,请选择下面驱动程序。 • .\windows平台工具\DNW\secbulk.inf

  7. [USB: OK] 编写自己的Linux应用程序 • 运行dnw.exe软件 • .\windows平台工具\DNW\dnw.exe • Dnw.exe窗口标题提示[USB: OK]表示驱动安装成功,且实验箱从Nor Flash启动。否则检查USB线是否连接正确?USB驱动安装正确? Nor Flash启动?

  8. 编写自己的Linux应用程序 • 用串口线或者USB转串口线连接实验箱和电脑 • 从Nor flash启动,串口会打印烧写及配置S3C2440信息 • 按v 烧写vboot 到Nand flash • .\Images\vboot.bin • 按k 烧写Linux kernel 到Nand flash • .\Images\zImage.bin • 按y 烧写Linux root file system到Nand flash • .\Images\rootfs.bin

  9. 编写自己的Linux应用程序 • Hello world编程实验 #include <stdio.h> int main(void) { printf("hello, Qiushi2440!\n"); }

  10. 编写自己的Linux应用程序 • LED点阵显示程序 • .\Apps\SPI_LED\ledarray_main.c • .\Apps\SPI_LED\hanzhi_row.h • .\Apps\SPI_LED\Makefile • 编译 • make 生成ledarray可执行程序 • arm-linux-gcc-o ledarray ledarray_main.c生成ledarray可执行程序 • 下载 • ftp软件登录并上传ledarray (用户和密码都是qiushi), chmod 777 /home/qiushi/ledarray • 用串口下载 • 在串口终端中输入 rz • 选择发送ledarray文件 • 也可使用NFS

  11. CMOS摄像头采集实验 • S3C2440 CMOS摄像头接口 • CCB总线接口 • OV9650摄像头 • 图像采集及传输 • 无线路由名:TP • 密码:空 • Ping 192.168.1.1 网关 • Ping 192.168.1.104 我的电脑

  12. 直流电机和舵机控制实验 • 直流电机控制原理 • PWM占空比控制转速 • 舵机控制原理 • 控制波形 • 0.5ms--------------0度; • 1.0ms------------45度; • 1.5ms------------90度; • 2.0ms-----------135度; • 2.5ms-----------180度;

More Related