Sunteți pe pagina 1din 5

12/29/13

VirtualBoxHowTo - Android-x86 - Porting Android to x86

Android-x86 - Porting Android to x86


Try this FREE Mobile Care web service to trace your android devices Search News Download Donate Get Source Installation Screenshots Documentation App HowTo CustomizeKernel VirtualBoxHowTo QemuHowTo Sdcard HowTo UvesafbHowTo HowToConfigure HowToMakeCam HowToUsePrebu NFS How To Touch only device howto NDK HowTo Debug Howto Add new target How to wake up the machine How to make virtualbox ICH AC97 audio to work with android eclair-x86 How to boot the Android-x86 LiveCD when you have problems with your graphiccard Supported List Releases ReleaseNote 4.0-r1 ReleaseNote 4.0RC2 ReleaseNote 4.0RC1 ReleaseNote 3.2 RC2 ReleaseNote 2.2-r2 ReleaseNote 2.2 ReleaseNote 1.6-r2 ReleaseNote 1.6 Build 20130228 Build 20120101 Build 20110828 Build 20110101 Build 20100812 Build 20100115 Build 20091113 Build 20091024 Build 20090916 Build 20090820 ReleaseNote v0.9 Contact Us Resources Sitemap Recent site activity

Documentation >

VirtualBoxHowTo
#How to run the eeepc.iso inside VirtualBox

Introduction
This document tells how to run the e e e p c . i s oinside VirtualBox. The tested version are 3.0.2 on Fedora 11, and 2.2.4 on Windows XP and Fedora 11. Workable features: Internet access (DHCP mode). Audio, playing music.

Details
Config your VirtualBox like this: OS Type: Linux 2.6 Base Memory: At least 256MB, 512MB is better. Video Memory: 8M CD/DVD-ROM image: e e e p c . i s o Sound device: change to Sound Blaster 16. ICH AC97 will not work. (if you have a solution, let us know) Network device: PCnet-Fast III, attached to NAT. You can also use bridged adapter, but you need a DHCP server in your environment.

Links
Nightly build server Google code project SourceForge project Browse the source Discussion group Issues tracker Blog cwhuang Blog BuilDroid Blog sceners Blog beyounn Blog android-x86

Boot options
On the boot menu, please select the VESA mode item.

file:///C:/Users/Jayson/Documents/Android/VirtualBoxHowTo - Android-x86 - Porting Android to x86.htm

1/5

12/29/13
Twitter android_x86 RSS for main page

VirtualBoxHowTo - Android-x86 - Porting Android to x86

Developers
Google apps Google sites Google mails Google docs Google calendar Google analytics

If you want to use higher resolution, you can edit the boot option by pressing TAB, change v g a = 7 8 8(800x600) to v g a = 7 9 1(1024x768) or v g a = 7 9 4 (1280x1024), and press Enter. You can also use v g a = a s kto see all available modes. But please note Android will only work under 16-bit mode.

Advanced
Save data to harddisk
Basically the e e e p c . i s ois a live cd system. Like other live cd, all data are saved to ramdisk, so will lose after power off. However, it is possible to save data to the virtual disk of vbox by specifying some boot options. This section describes the details. But you need good Linux expertise to complete it. First, create a virtual disk for your Android virtual machine, and boot eeepc.iso to the debug mode. Then you should see the shell prompt. This is a busybox shell. You can get more shell by switching virtual console Alt-F1/F2/F3. Create two partitions by fdisk or cfdisk. Format them to ext3. Then reboot. #c f d i s k/ d e v / s d a #m d e vs #m k e 2 f sjLD A T A/ d e v / s d a 1 #m k e 2 f sjLS D C A R D/ d e v / s d a 2 #r e b o o tf On the boot menu, select VESA or Debug mode, press TAB, then add D A D A = s d a 1S D C A R D = s d a 2 Press Enter to boot. These options specify user data (your setting, your uploaded applications, ...) go into / d e v / s d a 1 , and data saved in sdcard go into / d e v / s d a 2 . If you build the iso from source, you can add these options to b o o t a b l e / n e w i n s t a l l e r / b o o t / i s o l i n u x / i s o l i n u x . c f g . Here is a note from davematthew@gmail.com when using fdisk: 1. Create a new virtual machine with a hard disk. 2. Launch the Live ISO in Debug mode (I used android-x86-2.2-generic.iso) to get the commend prompt. 3. "fdisk /dev/sda", then type: 1. "n" (new partition) 2. "p" (primary partition) 3. "1" (1st partition) 4. "1" (first cylinder) 5. "xx" (choose the last cylinder, leaving room for a 2nd partition) 6. "w" (write the partition) 4. Repeat #3, but call it partition 2, and use the remaining cylinders. 5. "mdev -s" 6. "mke2fs -j -L DATA /dev/sda1" 7. "mke2fs -j -L SDCARD /dev/sda2" 8. Reboot ("reboot -f") 9. At the boot menu, choose VESA, then hit TAB and type so that the end of the line reads: "DATA=sda1 SDCARD=sda2". (Only need for the generic target images, for VM target images, this is not needed) 10. After booting (and of course disabling mouse integration via the machine menu), the SD card is read as unformatted, but you can format it by going to Settings > SD card & phone settings > Format SD Card, then Mount SD card. 11. The SD card should now work! Note: for the step 7, if you want to format to vfat only, then you can do : newfs_msdos /dev/sda2 Also remember the partition type has to be fat32 (b or c). By using vfat, the step 10 is not needed.

file:///C:/Users/Jayson/Documents/Android/VirtualBoxHowTo - Android-x86 - Porting Android to x86.htm

2/5

12/29/13

VirtualBoxHowTo - Android-x86 - Porting Android to x86


DevTools application has a MediaScanner which (re)indexes your SD card for cases where you manually copied media over. This ensures that you see new images and/or music in the apps without having to reboot. If you downloaded it from within android, the application asks the relevant service to index new files.

Playing music
This section describes two ways to upload music files into Android running on a vbox so you can play them by the Music app. Of course, you can save the files to the virtual disk mounted at / s d c a r d , as described above.

Upload files by adb


Adb is Android Debug Bridge, a tool to debug Android system. If you compile from source, it is located in o u t / h o s t / l i n u x x 8 6 / b i n / a d b . Otherwise you can get it from Android SDK. Suppose the network of your vbox is OK, you can upload a file from your host by $A D B H O S T = < i po fv b o x >o u t / h o s t / l i n u x x 8 6 / b i n / a d bp u s h< am u s i cf i l e >/ s d c a r d You need to know the ip of your vbox. You can get it by Alt-F1 and n e t c f g . You may also need to reboot Android to see the uploaded files. Of course in this way you have to mount / s d c a r dto a virtual disk partion. For complex network settings of the VirtualBox VM, you should refer to Debug Howto on how to connect adb to the VM.

Upload files by wget


You can also upload files by w g e tin the debug mode. In the debug mode shell, before entering Android, #c d/ a n d r o i d / s d c a r d #n e t c f ge t h 0d h c p #w g e t< u r lo fam u s i cf i l e > Then type e x i tto enter Android.

Screenshots
Browsing Internet on Virtual Box

Playing music

file:///C:/Users/Jayson/Documents/Android/VirtualBoxHowTo - Android-x86 - Porting Android to x86.htm

3/5

12/29/13

VirtualBoxHowTo - Android-x86 - Porting Android to x86

Browsing Internet on Virtual Box with resolution 1024x768

file:///C:/Users/Jayson/Documents/Android/VirtualBoxHowTo - Android-x86 - Porting Android to x86.htm

4/5

12/29/13

VirtualBoxHowTo - Android-x86 - Porting Android to x86

Comments
You do not have permission to add comments.

Sign in | Report Abuse | Print Page | Remove Access | Powered By Google Sites

file:///C:/Users/Jayson/Documents/Android/VirtualBoxHowTo - Android-x86 - Porting Android to x86.htm

5/5

S-ar putea să vă placă și