Sie sind auf Seite 1von 2

Well, I cannot sure what you want exactly, but it seems that you want use android-

x86 installed on USB stick but not like "Live CD" style.
So.. I tell you how I made my USB stick version here.

1. preparing a Linux machine.


In my case, it was Ubuntu 12.04 LTS. And make sure it can use "grub".
if it does not have "grub", you should install "grub" first. (command "sudo apt-get
install grub" will install grub for Ubuntu.
Actually Ubuntu uses grub 2, but I didn't use grub 2 for this setting.

2. preparing target files.


Extract the following files from ISO file,
"kernel", "initrd.img", "ramdisk.img", "system.sfs" (or "system.img")
(you can use 7zip to extract those files from ISO image on windows pc. I think
Linux too but didn't check.)
then copy the files into Linux machine somewhere.
(In my case, in "~/test/jbo" folder)

3. plug in your target USB stick to Ubuntu machine and start "disk utility" in
Ubuntu.
Then you can see your USB stick on left pane of "disk utility" screen. select the
USB stick.
the "disk utility" will show the current partition and file system information of
your USB stick.
Verify your drive node here. (for my case, "/dev/sdb")

4. select "Format Drive" button which is placed on above of partition diagram.


(Don't be confuse with "Format Volume" button below. they are totally different.)
Then select "GUID Partition Table (GPT)" as partition scheme. (its default value is
"Master Boot Record (MBR)".)
Then go ahead.
(In my experience, "MBR" didn't work well. it make my pc reboot every time.)

5. If the above step is finished, select "Create Partition" button.


Then the UI will ask you which file system will be used. select "ext3" and go
ahead.
wait for formatting. it will take several minutes.
(do not make separate partition on your USB stick. In my experience, it didn't
work. I don't know why.)
(If you want save changes during your android runs, you should use "ext3")

6. After formatting, select "Edit Partition" button and select "BIOS bootable
partition" and label the volume name. (in my case, I labeled it as "ext3") save it.

7. now select "Mount Volume" button. default mount point is under "/media/<your
volume name>" (for me, "/media/ext3")

8. open "terminal" in Ubuntu. and go to the mounted folder. (for me, "cd
/media/ext3")

9. install grub by the following command.


"sudo grub-install --root-directory=. --no-floppy <your drive node>" (for my case,
"sudo grub-install --root-directory=. --no-floppy /dev/sdb")
** CAUTION: DO NOT CONFUSE with partition id which looks like "/dev/sdb1". (no
digit)

10. If there was no error, you can go to "boot/grub" foldr by "cd boot/grub".
and run this command "sudo gedit ./menu.lst" and paste the following lines.
(between dash lines)
-----------------------------------------------
title Run Android
kernel /android/kernel root=/dev/ram0 androidboot.hardware=<your
TARGET_PRODUCT> acpi_sleep=s3_bios,s3_mode SRC=/android
initrd /android/initrd.img

title Run Android (VESA mode)


kernel /android/kernel root=/dev/ram0 androidboot.hardware=<your
TARGET_PRODUCT> acpi_sleep=s3_bios,s3_mode vga=788 SRC=/android
initrd /android/initrd.img

title Run Android (Debug mode)


kernel /android/kernel root=/dev/ram0 androidboot.hardware=<your
TARGET_PRODUCT> acpi_sleep=s3_bios,s3_mode vga=788 SRC=/android DEBUG=1
initrd /android/initrd.img
---------------------------------------------------

11. replace <your TARGET_PRODUCT> part. If your using the official JB ISO, it
should be "android_x86".
Save it then exit to terminal.

12. go back to mounting point. ("/media/ext3"), by "cd /media/ext3"


and create "android" folder by this command "sudo mkdir android" then get into the
folder. ("cd android")
Copy the kernel, initrd.img, ramdisk.img and system.sfs (or system.img) files to
here.
("sudo cp ~/test/jbo/* .")

13. In the "android" folder, create "data" folder. ("sudo mkdir data")
now almost done. BUT DO NOT UNPLUG YOUR USB STICK YET!!

14. close terminal program, then select "Unmount Volume" button from "disk utility"
Linux system uses "write back" policy for its file system, you should unmount
explicit to flush all disk buffers.
If successfully unmounted, it's done.

15. try to boot from your USB stick. If it goes well, enjoy it.

Thanks.

----------------------- Kim, GeunSoo (Andy) -----------------------------

Das könnte Ihnen auch gefallen