Android x86 porting, unable to make it work

Mr G picture Mr G · Nov 22, 2011 · Viewed 28.5k times · Source

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.

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.

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.

Can anyone help me on this?

P.S.: I need the HoneyComb version (3.2) and the pc I have is a AMD 6 core on and Asus Crosshair Extreme motherboard, Windows 7 or Ubunutu 11.10. (both OS are 64bit)

Answer

Vito Gentile picture Vito Gentile · Nov 25, 2011

I solved the problem. This is what I do to get internet connection.

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) First of all, I set my VirtualBox network configuration:

Attached to: Bridged Adapter

Adapter type: PCnet-FAST III

2) After that, I start Android from VirtualBox; after boot, I open a root shell, pressing Alt+F1

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) Now, I return to Android (Alt + F7), and I can surf on internet!

Unfortunately, this process must be followed each time you start Android


In order to obtain gateway and DNS IP addresses, from Windows you can use this command

ipconfig /all

You must refer to your network card