免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 1799 | 回复: 0
打印 上一主题 下一主题

让运行在mini2440的android上网 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-08-24 22:59 |只看该作者 |倒序浏览

Enabling Ethernet Port for Browsing
Kernel
Ethernet support is already built into the default Kernel
configuration provided by Texas Instruments. To double check if
ethernet is set in the kernel configuration, look in the .config file
in the Kernel root directory and check that the following is set to "y":
  • CONFIG_INET
  • IP_PNP
  • CONFIG_IP_PNP_DHCP
  • CONFIG_NET_ETHERNET
  • CONFIG_MII
  • CONFIG_SMC911X

If Ethernet and networking configurations are not enabled properly,
then use the menu config to enable it. To enter menu config, type "make
menuconfig" in the Kernel root directory. Follow the following to enable
  • Networking supportàNetworking optionsà
       
    • TCP/IP networking
    • IP: kernel level autoconfiguration
    • IP: DHCP support

       
  • Device DriversàNetwork device supportàEthernet (10 or 100Mbit)à
       
    • Generic Media Independent Interface device support
    • SMSC LAN9115678
      ?
      support

       


U-Boot Bootargs
Once you have a proper kernel image, ethernet and TCP/IP should be
operational. To get a valid DHCP add "ip=dhcp" to the u-boot bootargs
environment variable, i.e. setenv  bootargs 'console=ttyS3,115200n8 root=/dev/mmcblk0p2 rw rootdelay=1 mem=256M  ip=dhcp  init=/init'
With the ip variable set in the bootargs, the kernel will use DHCP
during boot-up to grab IP address from the DHCP server. Once this
variable is set, the kernel will block until it detects a valid
connection.
Android Properties
To
get the Android browser to resolve address names, set the DNS server
property. In either the ADB or COM shell, give the following command: “setprop net.dns1 xxx.xxx.xxx.xxx” where xxx.xxx.xxx.xxx is the IP address to  your DNS server.
Note: If you are behind a proxy, then at the time this article was
written we have NOT found a method to set the proxy server for the
Android browser to use. We have tried using "setprop
net.eth0.http-proxy hostname:port" and "setprop net.gprs.http-proxy
hostname:port", but neither could get us through the proxy. Also, the
option of adding an entry of (99,'http_proxy','hostname:port") to the
'system' and 'secure' tables in
the /data/data/com.android.providers.settings/databases/settings.db
database has also been tried, but failed.


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/64117/showart_2036089.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP