摘要 论文主要介绍了基于ARM9的嵌入式Web服务器Boa的软、硬件设计及其实现,其中硬件部分的核心是三星的S3C2410X为处理器。最后成果形式为可以远程访问的WebServer嵌入式服务器。Boa是一款单任务的HTTP服务器。与其他传统的Web服务器不同的是当有连接请求到来时,它并不为每个连接单独创建进程, 也不通过复制自身进程来处理多链接。而是通过建立HTTP请求列表来处理多路HTTP连接请求。同时它只为CGI程序创建新的进程,这样就在最大程度上节省了系统资源,这对嵌入式系统来说至关重要。同时它还具有自动生成目录、自动解压文件等功能。因此, Boa在嵌入式系统中具有很高的应用价值。 关键词:ARM;Linux;嵌入式Web服务器;CGI Abstract This paper has mainly developed the software hardware design and realization of the embedded Web server Boa based on ARM. And the core of the hardware part is S3C2410X microprocessor produced by Samsung . The final achievement is the embedded webserver which can remote visit. Boa is a single-tasking HTTP server. That means that unlike traditional webservers, it does not fork for each ing connection, nor does it fork many copies of itself to handle multiple connections. It internally multiplexes all of the ongoing HTTP connections. And forks only for CGI programs, this is very important to embedded system. At the same time, it also has the function of automatic directory generation、automatic file gunzipping and so on. So Boa is of highly value in the embedded system application. Keywords: ARM;Linux;Embedded Web server;CGI 目录 摘要 1 Abstract 2 目录 3 第一章引言 5 第二章课题背景 6 嵌入式系统简介 6 嵌入式系统和Linux 6 ARM9硬件平台 7 ARM简介 7 JXARM9-2410 ARM嵌入式教学实验系统 8 第三章嵌入式Web服务器 9 概述 9 Web服务器原理 9 嵌入式Web服务器实现原理 9 TCP/IP协议 9 嵌入式Web服务器Boa 10 Boa概述 10 Boa的功能实现 11 第四章 CGI技术 12 CGI概述 12 CGI工作原理 12 第五章建立嵌入式系统开发环境 14 在Vmware下安装Redhat 14 编译配置主机开发环境 18 配置以太网 18 安装配置tftp服务器 19 配置防火墙 21 配置NFS服务器 22 JXARM9-2410中U-boot烧写 22 u-boot的功能 22 使用ADT IDE烧写u-boot 23 第六章系统功能的实现 25 GCC简介 25 GCC概述 25 GCC基本用法 25 Linux内核移植 26 Linux内核源代码的安装 26 Linux交叉编译环境的建立和使用 27 Linux内核的配置和编译 27 加载Linux内核映像 30 Boa Web服务器的移植 31 Boa Web服务器的建立 31 Linux下动态Web页面的实现 32 CGI程序分析 32 Form输入的分