分类: LINUX
2009-11-12 09:56:51
Edillo
浏览器是基于Minigui在此我们采用的是edillo-
一、edillo交叉编译
编译edillo的方法与编译minigui mde实例是相同的,编译的具体过程如下,注意这里编译的前提是得将Minigui
[root@localhost popt-1.7]# cd /root/minigui-arm/
[root@localhost minigui-arm]# tar zxvf mde-
[root@localhost minigui-arm]# cd edillo-
[root@localhost edillo-
/include -L/usr/local/arm/
[root@localhost edillo-
这样一般不会出错,这样就会在edillo-
二、 edillo在sep4020 arm-linux平台上的使用
想要在浏览器上浏览网页必须先正确设置SEP4020的ip地址,默认网关,这样正确设置了SEP4020的路由,才能上网,我们一步一步来:
(1)设置ip地址,我将其设置成我们的局域网ip地址
/# ifconfig eth0 172.17.22.167
/ # ifconfig
eth0 Link encap:Ethernet HWaddr 00:50:C2:1E:AF:FB
inet addr:172.17.22.167 Bcast:172.17.22.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7834 errors:0 dropped:0 overruns:0 frame:0
TX packets:980 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2962415 (2.8 MiB) TX bytes:147244 (143.7 KiB)
Interrupt:28 Base address:0x3000
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
(2)设置sep4020的默认网关,由于一般系统会分配个默认的默认网关,我们得先删除它的默认网关,接着再设置我们的默认网关:
/ # route(查看系统路由信息)
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.17.22.0 * 255.255.255.0 U 0 0 0 eth0
default 172.17.22.1
/ # route del default (删除默认路由)
/ # route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.17.22.0 * 255.255.255.0 U 0 0 0 eth0
/ # route add default gw 172.17.22.189(增加新的默认路由)
/ # route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.17.22.0 * 255.255.255.0 U 0 0 0 eth0
default 172.17.22.189
(3)运行edillo程序,经过上面路由的设置,我们现在就能体验一把嵌入式浏览器网上冲浪了!
/ # cd /minigui-demo/edillo/
/minigui-demo/edillo # ls
160.gif demo-help.html eindex.html mginit
Makefile econtact.html eindex.html~ res
Makefile.am edillo-res.h elicensing.html simple-edillo
Makefile.in edillo.c img
ccontact.html edillo.c~ index.html
clicensing.html edillo.o index.html~
/minigui-demo/edillo # ./simple-edillo
不出意外,这时候在我们的触摸屏上就会出现我们自己做的主页了