在PL1029 SDK, 開發Embedded Webpage 工作備忘紀錄

============================================================================================
/home/rodney/29/src/network/ws031202/LINUX_TY ---->GoAhead Web Server的原碼
vi main.c----GoAhead WebServer
/ptzControl

make      ----->編譯Web Server
make install        ----->webs安裝在/bin目錄下
---------------------------------------------------------------------------------------------
ex:
NAME=webs
PROJ_ROOT=/home/rondey/29
install -m 0755 -d $(PROJ_ROOT)/bin  ----->建立/home/rondey/29/bin目錄,屬性成755
install -m 755 $(NAME) $(PROJ_ROOT)/bin         ----->將檔案webs複製到/home/rondey/29/bin目錄下並改變屬性成755,要查

=============================================================================================
自寫的cgi及cgi呼叫的程式src放在home/rodney/29/src/network之下(例如: .../cgis,.../ptzserver,.../pppoe_checker....)
已編譯完的自寫程式的執行檔(例如:ptzsvr, tw2835didofork, ....)要暫放在/home/rodney/29/bin目錄裡(寫在Makefile裡,使用 install  -d 複製到指定的目錄),
已編譯完的自寫CGI程式的執行檔(例如:system.cgi,...)要暫放在/home/rodney/29/web/cgi-bin/目錄裡(寫在Makefile裡,使用 install  -d 複製到指定的目錄)
如此ipcam2打包時才會找到此執行檔,再將其放到/home/rodney/29/img/fs/shadow_root/usr/bin,
例如:
/home/rodney/29/src/network/pppoe_checker
pppoe_checker.c     
Makefile     ----->cgi編譯完,執行檔複製到/home/rondey/29/bin目錄下並改變屬性成755
/home/rodney/29/src/network/ptzserver
Makefile     ----->cgi編譯完,執行檔複製到/home/rondey/29/bin目錄下並改變屬性成755
---------------------------------------------------------------
建立root file system 並打包:
/home/rodney/29/src/ipcam2
Makefile   ----->見標籤 cpsvr:
    ----->編譯完,執行檔複製到/home/rondey/29/img/fs/shadow_root/usr/bin目錄下並改變屬性成777
---------------------------------------------------------------
Embedded System 的root檔案系統在
/home/rodney/29/img/fs/root
=============================================================================================
/home/rodney/29/src/ipcam2
vi db/dbinput.txt  ----->宣告tinydb的Group,欄位,類型,與值
vi etc/rc.d/init.d/ipcam ----->開機順序inittab->/etc/rc.d/rcS->開啟在/etc/init.d的所有init scripts
---------------------------------------------------------------
/home/rodney/29/include
vi pldata.h   ----->The access data structure for DBIF---->tinydb所需資料結構的定義pldb_data(或稱PLDBData)
vi pltdb.h   ----->The exported interfaces for DBIF
vi dbutil.h    ----->utility functions header
=============================================================================================
網頁變更的放置目錄在/home/rodney/29/src/ipcam2/web/之下

/home/rodney/29/src/ipcam2/web/network
vi portset.asp
---------------------------------------------------------------
/home/rodney/29/src/ipcam2/web
vi monitor.asp
vi home.asp
vi menu.html
/home/rodney/29/src/ipcam2/web/adminMenu
vi menu.html
/home/rodney/29/src/ipcam2/web/general
vi monitor.html

vi Makefile   ----->執行make,將網頁複製到/home/rondey/29/img/fs/shadow_root/web目錄下並改變屬性成644
(說明文件,見/home/rodney/29/src/ipcam2/web/README)
---------------------------------------------------------------
圖片放置目錄在
/home/rodney/29/src/ipcam2/web/network/images/

=============================================================================================
Environment Setup
  Environment variables setup – ${PROJ_ROOT}/project/usetenv
  CGI source path  – ${PROJ_ROOT}/src/network/cgis
  Web pages path          – ${PROJ_ROOT}/src/ipcam/web
  CGI binary installtion path – ${PROJ_ROOT}/Web/cgi-bin
Web pages in cram-file system
  Goahead server is in /bin
  HTML / XML pages in the /web directory and only in the /web directory
  CGI only in the /web/cgi-bin
  ActiveX only in the /web/classes
  Others files is under /web and its subdirectory.
=============================================================================================


=============================================================================================
?arm-linux-strip


=============================================================================================
http://url:9090/home.asp
http://url:9090/adminMenu/menu.html and /general/info.asp --> http://url:9090/general/monitor.html -->
http://url:9090/monitor.asp --> http://url:9090/network/ptz.asp


start_prg.c (start_prg.h-->init_sys.h)---->init_sys(),sys_pulse

=============================================================================================

web control icon
size:32px
location:/home/rodney/29/img/fs/shadow_root/web/images之下存成gif檔

=============================================================================================
include files 位置
/usr/include/

=============================================================================================
板子上/web/
adminMenu/
general/
locale/
pic/
style/----->css
cgi-bin/
home.asp/
monitor.asp/
script/
system/
classes/
images/
network/
stream/
upnp/
=============================================================================================
????????Question???????????
/home/rodney/29/src/network/cgis_ty/下的cgi檔好像沒有使用到?

/usr/bin/dido
dido sample code source --->/home/rodney/29/src/sysadm/dido
==============================================================================================
notification.asp
/home/rodney/29/src/ipcam2/web/system/
<%getEvent0();%>
action="/goform/setNTF"------->3741行執行system("/usr/bin/caseGen 1");

arrow
arrow
    全站熱搜
    創作者介紹
    創作者 rodney2009 的頭像
    rodney2009

    羅德尼IT

    rodney2009 發表在 痞客邦 留言(1) 人氣()