日本黄色一级经典视频|伊人久久精品视频|亚洲黄色色周成人视频九九九|av免费网址黄色小短片|黄色Av无码亚洲成年人|亚洲1区2区3区无码|真人黄片免费观看|无码一级小说欧美日免费三级|日韩中文字幕91在线看|精品久久久无码中文字幕边打电话

當前位置:首頁 > 嵌入式 > 嵌入式硬件

http://  關于boa的移植并不是很難,也有很多文檔。在這里我只把我個人移植過程中經驗和大家分享下,希望能對大家的學習有幫助。

  我是在uclinux下移植的boa。uclinux跑通后,要看看網卡有沒有通,用板子ping主機或者主機ping板子都是可以的。如果這個不通的話,后面就沒辦法做了。

  我的網卡是rtl8019。因為我的uboot調通了網卡,我只是在編譯內核的時候,把網卡的一些選項添加進去了。啟動的時候uclinux就可以識別網卡。

boa的關鍵就是配置文件。大部分時間我都在調試這個配置文件!

  第一步makemenuconfig,然后在networkapplication中選擇boa。
  第二步修改boa/src/define.h文件home/web(文件路徑可以根據(jù)個人喜歡定義)
  第三步修改44b0下的makefile文件romfs_dirs后面加上home/web路徑。
  第四步配置boa..conf文件,這個文件在boa/example下面
  第五步把index.html(自己寫)boa.conf和mime.types拷貝到home/web下面
  第六步下載到板子上開始啟動boa。我是通過命令啟動也可以讓其隨系統(tǒng)自己啟動。命令boa–c/home/web&。自啟動的話,就在rc文件中添加。然后輸入主機輸入板子的ip就可以看見index.html的內容了。

  備注:板子的ip要正確配置,通過ifconfig這個命令,在rc的文件中。

  附件:我個人的boa配置文件
#port:theportboarunson.thedefaultportforhttpserversis80.
#ifitislessthan1024,theservermustbestartedasroot.
port80
#user:thenameoruidtheservershouldrunas.
#group:thegroupnameorgidtheservershouldrunas.
user0
group0
#serveradmin:theemailaddresswhereserverproblemsshouldbesent.
#note:thisisnotcurrentlyused.
serveradminroot@localhost
#errorlog:thelocationoftheerrorlogfile.ifthisdoesnotstart
#with/,itisconsideredrelativetotheserverroot.
#setto/dev/nullifyoudon’twanterrorslogged.
errorlog/var/log/boa/error_log
#accesslog:thelocationoftheaccesslogfile.ifthisdoesnot
#startwith/,itisconsideredrelativetotheserverroot.
#commentoutorsetto/dev/null(lesseffective)todisable
#accesslogging.
accesslog/var/log/boa/access_log
#refererlog:thelocationoftherefererlogfile.ifthisdoesnot
#startwith/,itisconsideredrelativetotheserverroot.
#commentoutorsetto/dev/null(lesseffective)todisable
#refererlogging.
refererlog/var/log/boa/referer_log
#agentlog:thelocationoftheagentlogfile.ifthisdoesnot
#startwith/,itisconsideredrelativetotheserverroot.
#commentoutorsetto/dev/null(lesseffective)todisable
#user-agentlogging.
agentlog/var/log/boa/agent_log
#verbosecgilogs:thisisjustalogicalswitch.
#commentouttodisable.





本站聲明: 本文章由作者或相關機構授權發(fā)布,目的在于傳遞更多信息,并不代表本站贊同其觀點,本站亦不保證或承諾內容真實性等。需要轉載請聯(lián)系該專欄作者,如若文章內容侵犯您的權益,請及時聯(lián)系本站刪除( 郵箱:macysun@21ic.com )。
換一批
延伸閱讀
關閉