I'm still unable to get a kernel / image built if I customize the kernel at all.All I did to begin with was take the default .config in the kernel folder and switch the CPU from Generic to Intel Atom.
Made sure the BayTrail items were selected, Intel SoC items and Atheros 6K drivers and firmware.First run failed while compiling the kernel during the staging drivers.I edited the config again and disabled all the staging drivers. Next run failed in the middle of SCSI drivers.
/usr/bin/make -C kernel O=$OUT/obj/kernel ARCH=x86_64 menuconfig/usr/bin/make -j2 iso_img TARGET_PRODUCT=android_x86_64 TARGET_KERNEL_CONFIG=(my custom config)So would it be better to just build x86 rather than x86_64? I know the cpu is x64 capable but with the low RAM and such I wondered if it would just be better to run 32-bit on it.
That said, all the 32-bit OS installs I've tried have failed to even run.
I've been running "make clean" before I try another build which deletes the entire build directory, or just "rm -rf out/*"I have been running this to create my custom config then copying the .config to my home directory/usr/bin/make -C kernel O=$OUT/obj/kernel ARCH=x86_64 menuconfig
Then running this to build the image/usr/bin/make -j2iso_img TARGET_PRODUCT=android_x86_64 TARGET_KERNEL_CONFIG=(my custom config)But after posting today and giving it some thought, I realized that it was causing me to start with the default linux kernel config rather than the android-x86 default config,so I located the android-x86_64_defconfig file and copied it to my home directory, then loaded it in menuconfig and edited that instead.Currently running a build since going on about 3 hours now and it's up to 72% so I may have found my problem.If this does succeed I will try to build a 32-bit image as well and see if it will run.
. build/envsetup.sh
lunch android_x86-user && make -j[X] kernel TARGET_KERNEL_CONFIG=(my custom x86 config)
or
lunch android_x86_64-user && make -j[X] kernel TARGET_KERNEL_CONFIG=(my custom x86_64 config)
# Create main menu add_entry "$live" quiet add_entry "$debug_mode" DEBUG=2 if [ -s ($android)$kdir/install.img ]; then add_entry "Installation" INSTALL=1 fi
you not repack install.img into ISO.
BTW,uefi boot, only need mount ISO,copy files to u-disk, needn't any Windows/Linux tools write iso to u-disk, can say needn't repack iso.
so the u-disk root directory, has these files, prebuild initrd.img、prebuild ramdisk.img、prebuild install.img、repacked system.sfs、custom kernel file、prebuild efi folder、prebuild boot folder.
So if I have an working 8.1 USB stick and I just replace /kernel with the new vmlinuz-4.19.7-android-x86_64+
what else do I need to replace in the file structure for it to boot and use the new kernel.
I'm still unable to get a kernel / image built if I customize the kernel at all.All I did to begin with was take the default .config in the kernel folder and switch the CPU from Generic to Intel Atom.
Made sure the BayTrail items were selected, Intel SoC items and Atheros 6K drivers and firmware.First run failed while compiling the kernel during the staging drivers.I edited the config again and disabled all the staging drivers. Next run failed in the middle of SCSI drivers.
Changes in the build to support Atom or other older processors are done viabut it's not recommended, it is easier to pick 32bit for Atoms