实验三 嵌入式Linux开发环境的搭建.doc
文本预览下载声明
南京邮电大学通达学院 实 验 报 告
实验 实验三题目 嵌入式Linux开发环境的搭建 课程名称 嵌入式驱动开发实验 学院 专业 班 实验者学号同做者学号 姓名 毛骏超
同做者学号 姓名 陈超 / 嵌入式应用开发实验 成绩 评定
一、实验目的
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 *:*
=gt;tftpboot 0zImage
TFTP from server ; our IP address is 00
Filename ‘zImage
显示全部