網(wǎng)上安裝Android-x86的方式多是將光盤鏡像寫到U盤,然后用U盤遠(yuǎn)行或安裝。用光盤安裝也不過是將鏡像文件拷貝到硬盤,然后寫入GRUB4DOS引導(dǎo),其實(shí)可以參考cfg文件,直接用GRUB4DOS來引導(dǎo)。
一、光盤文件:
二、拷貝到硬盤的文件(安裝后會(huì)創(chuàng)建data.img文件用來保存用戶數(shù)據(jù)):
isolinux.cfg文件內(nèi)容如下:
//..........................................................
default vesamenu.c32
timeout 600
menu background android-x86.png
menu title Android-x86 Live & Installation CD 4.4-RC2
menu color border 0 #ffffffff #00000000
menu color sel 7 #ffffff00 #ff000000
menu color title 0 #ffffffff #00000000
menu color tabmsg 0 #ffffffff #00000000
menu color unsel 0 #ffffffff #00000000
menu color hotsel 0 #ffffff00 #ff000000
menu color hotkey 7 #ffffff00 #00000000
label livem
menu label Live CD - ^Run Android-x86 withoutinstallation
kernel /kernel
append initrd=/initrd.img root=/dev/ram0androidboot.hardware=android_x86 video=-16 quiet SRC=DATA=
label vesa
menu label Live CD - ^VESA mode
kernel /kernel
append initrd=/initrd.img root=/dev/ram0androidboot.hardware=android_x86 video=-16 quiet nomodeset vga=788SRC= DATA=
label debug
menu label Live CD - ^Debug mode
kernel /kernel
append initrd=/initrd.img root=/dev/ram0androidboot.hardware=android_x86 video=-16 vga=788 DEBUG=2 SRC=DATA=
label install
menu label Installation - ^Install Android-x86 toharddisk
kernel /kernel
append initrd=/initrd.img root=/dev/ram0androidboot.hardware=android_x86 video=-16 INSTALL=1DEBUG=
//..................................................................................
三、參照上面的代碼,在Menu.lst中加入安裝及運(yùn)行菜單:
title []install androidx86
find --set-root /androidx86/kernel
kernel /androidx86/kernel root=/dev/ram0androidboot.hardware=android_x86 video=-16 INSTALL=1SRC=/androidx86
initrd /androidx86/initrd.img
title []Run androidx86
find --set-root /androidx86/kernel
kernel /androidx86/kernel quiet root=/dev/ram0androidboot.hardware=android_x86 video=-16 SRC=/androidx86
initrd /androidx86/initrd.img
愛華網(wǎng)



