首页 新闻资讯 技术资料 论坛 网站地图
软件开发 综合电子技术 开发工具 安防产品 IC设计 CPLD/FPGA 电源系列
电子元器件搜索:
IC库存(8958万) PDF资料(329万) IC价格 IC求购 资讯 技术资料
维库电子市场网是知名的电子元器件交易网站, 为电子生产企业提供IC库存和技术资料查询服务。
位置: 首页 > 详细信息
  [转帖]嵌入式web服务器boa的移植笔记
出处:综合电子论坛 时间: 2007-09-28
princecaoyi 发布于 2007-5-29 10:44:17
表情[转帖]嵌入式web服务器boa的移植笔记


嵌入式web服务器boa的移植笔记
思瑞讯电子  技术文档   2007-5-29
www.chinasrx.com关于boa的移植并不是很难,也有很多文档。在这里我只把我个人移植过程中经验和大家分享下,希望能对大家的学习有帮助。我是在uclinux下移植的boa。uclinux跑通后,要看看网卡有没有通,用板子ping主机或者主机ping板子都是可以的。如果这个不通的话,后面就没办法做了。我的网卡是rtl8019。因为我的uboot调通了网卡,我只是在编译内核的时候,把网卡的一些选项添加进去了。启动的时候uclinux就可以识别网卡。Boa的关键就是配置文件。大部分时间我都在调试这个配置文件!第一步 make menuconfig,然后在net work application中选择boa。第二步 修改boa/src/define.h文件home/web(文件路径可以根据个人喜欢定义)第三步 修改 44b0下的makefile文件 romfs_dirs 后面加上home/web路径。第四步 配置boa..conf文件,这个文件在boa/example下面第五步 把 index.html(自己写) boa.conf 和mime.types拷贝到home/web下面第六步 下载到板子上开始启动boa。我是通过命令启动也可以让其随系统自己启动。命令 boa –c /home/web &。自启动的话,就在rc文件中添加。然后输入主机输入板子的ip就可以看见index.html的内容了。备注:板子的ip要正确配置,通过ifconfig这个命令,在rc的文件中。附件:我个人的boa配置文件# Port: The port Boa runs on.  The default port for http servers is 80.# If it is less than 1024, the server must be started as root. Port 80 #  User: The name or UID the server should run as.# Group: The group name or GID the server should run as. User 0Group 0 # ServerAdmin: The email address where server problems should be sent.# Note: this is not currently used. ServerAdmin root@localhost # ErrorLog: The location of the error log file. If this does not start# with /, it is considered relative to the server root.# Set to /dev/null if you don't want errors logged. ErrorLog /var/log/boa/error_log # AccessLog: The location of the access log file. If this does not# start with /, it is considered relative to the server root.# Comment out or set to /dev/null (less effective) to disable # Access logging. AccessLog /var/log/boa/access_log # RefererLog: The location of the referer log file. If this does not# start with /, it is considered relative to the server root.# Comment out or set to /dev/null (less effective) to disable# referer logging. RefererLog /var/log/boa/referer_log # AgentLog: The location of the agent log file. If this does not# start with /, it is considered relative to the server root.# Comment out or set to /dev/null (less effective) to disable# User-Agent logging. AgentLog /var/log/boa/agent_log # VerboseCGILogs: this is just a logical switch.# Comment out to disable.

weke2007 发布于 2007-8-31 14:13:50
表情辛苦了
wangmin5200 发布于 2007-9-28 9:53:28
表情

淘宝冲钻。学习板大量优惠!


关闭】 【打印
相关专题  
应用产品
开发工具
嵌入式开发新闻
综合电子技术
接口电路
工业控制
嵌入式软件
SOPC
嵌入式硬件
电源系列
AD/DA
消费电子
测试测量
军工/航空航天
嵌入式系统
IC设计
数控系统
汽车电子
CPLD/FPGA
通信产品
安防产品
软件开发
计算机外设
传感控制
存储器

© 2007 百斯嵌入式开发网 网站地图