问题描述
我对整个移植问题有点陌生,因为 Android SDK 提供的模拟器运行缓慢,所以我才知道.
I'm kind of new to the whole porting issue and I got to it because of the slowness in the emulator provided with the Android SDK.
我下载了 android-x86-3.2-RC2-eeepc 和 android-x86-3.2-RC2-tegav2 ISO-es(来自这个 站点)并在 VirtualBox 上尝试了它们,但在 eeepc 版本上没有互联网连接,并且 tegev2 无法启动.
I downloaded the android-x86-3.2-RC2-eeepc and android-x86-3.2-RC2-tegav2 ISO-es (from this site) and tried them on the VirtualBox but have no internet connection on the eeepc version and the tegev2 wont event start.
我在 Windows 和 Linux 平台上尝试了 VirtualBoxHowTo,但一无所获.我唯一能理解的是,要在 VM 上使用它,您需要为 VM 构建它.
I tried the VirtualBoxHowTo but got nothing, on both Windows and Linux platforms. the only thing I managed to understand is that to use this on a VM you need to build it for VM.
有人可以帮我吗?
P.S.:我需要 HoneyComb 版本 (3.2) 和我的电脑是 AMD 6 核心和 Asus Crosshair Extreme 主板、Windows 7 或 Ubunutu 11.10.(两个操作系统都是 64 位)
P.S.: I need the HoneyComb version (3.2) andthe pc I have is a AMD 6 core on and Asus Crosshair Extreme motherboard, Windows 7 or Ubunutu 11.10. (both OS are 64bit)
推荐答案
我解决了这个问题.这就是我为获得互联网连接所做的工作.
I solved the problem. This is what I do to get internet connection.
就我而言,网关地址是 192.168.0.254,DNS 服务器 是 192.168.0.10.我从未使用的 IP 地址 (192.168.0.250) 中为 VirtualBox 主机选择了一个 IP 地址.
In my case, the gateway address was 192.168.0.254 and the DNS server was 192.168.0.10.I select an IP address for the VirtualBox host from the unused ones (192.168.0.250).
1) 首先,我设置了我的 VirtualBox 网络配置:
1) First of all, I set my VirtualBox network configuration:
附加到:桥接适配器
适配器类型:PCnet-FAST III
2) 之后,我从 VirtualBox 启动 Android;启动后,我打开一个 root shell,按 Alt+F1
2) After that, I start Android from VirtualBox; after boot, I open a root shell, pressing Alt+F1
3) 在这里,我使用这些命令:
3) Here, I use these commands:
ifconfig eth0 up 192.168.0.250
route add default gw 192.168.0.254 dev eth0
setprop net.dns1 192.168.0.10
4) 现在,我回到 Android (Alt + F7),我可以上网了!
4) Now, I return to Android (Alt + F7), and I can surf on internet!
遗憾的是,每次启动Android时都必须遵循此过程
Unfortunately, this process must be followed each time you start Android
为了获取网关和DNS IP地址,从Windows可以使用这个命令
In order to obtain gateway and DNS IP addresses, from Windows you can use this command
ipconfig /all
你必须参考你的网卡
这篇关于Android x86 移植,无法使其工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!