南京邮电大学通达学院
实 验 报 告
实验 实验三题目 嵌入式Linux开发环境的搭建 课程名称 嵌入式驱动开发实验 通达 学院 通嵌 专业 22 班 实验者学号 08002238 姓名 翟磊 同做者学号 08002210 姓名 毛骏超 同做者学号 08002225 姓名 陈超
/ 嵌入式应用开发实验
成绩 评定
一、实验目的
1.掌握嵌入式交叉编译环境的搭建 2.掌握嵌入式主机通信环境的配置 3.学会使用交叉编译工具链
4.学会配置Linux下的minicom和Windows下的超级终端 5.学会在Linux下和Windows下配置TFTP服务 6.学会配置NFS服务 7.学会编译Linux内核
8.学会搭建Linux的根文件系统
9.熟悉嵌入式Linux的内核相关代码的分布情况 10.掌握Bootloader的原理
11.了解U-Boot的代码结构和移植
二、实验内容
在win XP下打开超级终端并且进行参数设置:
第 1 页 共 6 页
打开Linux 进行minicom 进行设置:
键入“ctrl+A Z”
键入“O”
第 2 页 共 6 页
键入“A”
键入“E”
第 3 页 共 6 页
Linux下tftp服务配置
[root@localhost tftpboot]# vim /etc/xinetd.d/tftp # default: off
# description: The tftp server serves files using the trivial file transfer \\ # protocol. The tftp protocol is often used to boot diskless \\
# workstations, download configuration files to network-aware printers, \\
第 4 页 共 6 页
# and to start the installation process for some operating systems. service tftp {
socket_type = dgram /* 使用数据报套接字*/ protocol = udp /* 使用UDP协议 */ wait = yes /* 允许等待 */ user = root /* 用户 */
server = /usr/sbin/in.tftpd /* 服务程序*/ server_args = -s /tftpboot /* 服务器端的根目录*/ disable = no /* 使能 */ per_source = 11
cps = 100 2 flags = IPv4 }
[root@localhost tftpboot]# service xinetd restart
(或者使用/etc/init.d/xinetd restart,而且因发行版的不同具体路径会有所不同) 关闭 xinetd: [ 确定 ] 启动 xinetd: [ 确定 ] [root@localhost tftpboot]# netstat –au | grep tftp Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State udp 0 0 *:tftp *:* =>tftpboot 0x30200000 zImage
TFTP from server 192.168.1.1; our IP address is 192.168.1.100 Filename 'zImage'.
Load address: 0x30200000 Loading:
############################################################################################################################################################################ done
Bytes transferred = 881988 (d7544 hex)
连接开发板 进行实验操作。
三、实验结果及分析
了解了嵌入式交叉编译环境的搭建 ,学会配置和使用Linux下的minicom和Windows下的超级终端 , 初步了解了u-boot的移植及流程,掌握了嵌入式主机通信环境的配置 ,学会了使用交叉编译工具链 。
四、实验心得
通过本次实验,主要掌握了嵌入式交叉编译环境的搭建 ,掌握了嵌入式主机通信环境的配置 ,学会了使用交叉编译工具链 ,学会配置Linux下的minicom和Windows下的超级终端如进行超级终端的参数设置,能够建立超级终端和Linux之间的连接,并且连接到开发板,进行操作,了解u—boot-的移植流程。虽然一开始对于该实验遇到不少难点,如使用minicom进行一些参数设置,但经过老师的指导和与别人的交流逐步的解决了,通过本次实验不仅让我
第 5 页 共 6 页
们学到了嵌入式的一些专业知识,更让我们明白做实验所需要的合作与交流,这是至关重要的。
第 6 页 共 6 页