Blog Android x86 Build
Blog Android x86 Build
Blog Android x86 Build
Here in this post we will be building Android x86 OS image with kernel customization
for specific purpose I needed to add network driver supports to the kernel so i am going to show how i did that .
If you need to build an image with kernel customization you can follow my approach
Choose : “android_x86_64-userdebug”
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=9
TARGET_PRODUCT=android_x86_64
TARGET_BUILD_VARIANT=userdebug
TARGET_BUILD_TYPE=release
TARGET_ARCH=x86_64
TARGET_ARCH_VARIANT=x86_64
TARGET_2ND_ARCH=x86
TARGET_2ND_ARCH_VARIANT=x86_64
HOST_ARCH=x86_64
HOST_2ND_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-5.0.0-29-generic-x86_64-Ubuntu-18.04.3-LTS
HOST_CROSS_OS=windows
HOST_CROSS_ARCH=x86
HOST_CROSS_2ND_ARCH=x86_64
HOST_BUILD_TYPE=release
BUILD_ID=PI
OUT_DIR=out
============================================
Browse to >Device Drivers > Network Device Support > Ethernet Driver Support
│ <*> Realtek 8169 gigabit ethernet support
>> Now copy this config file to build systems’ actual config files’ location
ayx@ayx-ThinkPad:~/android-src/android-x86$ cp out/target/product/x86_64/obj/kernel/.config
kernel/arch/x86/configs/
>> Now we will build the final image with the kernel we just built
Open Virtual Box >> Create new machine , choose linux type , create a virtual disk
From Settings -> storage -> Select the ISO you built
Now boot the machine , select installation of hard disk , Use GPT to write partition table
Create a partition out of the free space of the VDI , format by EXT4 , then GRUB will be asked but GRUB won’t work
on a GPT partitioned so MBR will be used
Enable 3D and 2D acceleration , after installation completed remove iso attachment , these are shown in the pictures
below