Although I haven't looked at it in detail (someone else will be more qualified to answer this), as far as I know Android-x86 uses a modified boot procedure using GRUB and an extra ramdisk, which might not be directly applicable to the standard Android boot process that is likely used on your tablet. This might be why it doesn't boot.
The easiest way to see if Android-x86 would actually boot on your tablet would be to use the original ISO images and boot them from USB. At least on my Baytrail based tablet, booting from USB is possible using a powered OTG hub. That way I was able to boot right into the GUI and had the confirmation that there is hope to get something working ;) You might want to try that instead as a first step before trying to fit Android-x86 into the standard Android partition layout. Let me know if you want further information how USB booting works.
To answer the question regarding the original (stock) kernel: Two different approaches are possible if you want to run a newer Android version on your tablet, both have advantages and disadvantages:
- Use the ancient, outdated stock kernel:
+ Almost all hardware components should work out of the box.
- Newer versions of Android-x86 are designed for recent upstream kernels (e.g. 4.14 or 4.9), you will run into issues with certain components where you'll either need to backport commits or make changes manually. This will only increase over time with newer Android versions...
- A lot of unpatched bugs (especially security related)
- Use an upstream kernel:
+ Android-x86 (or similar) should work out of the box.
+ You get many fixes and improvements from upstream with little effort.
- Some hardware components won't work out of the box: Depending on the hardware in the tablet, the two most common things I've seen are battery+charger drivers, as these are usually custom. Porting these from the stock kernel is not trivial and could take a significant amount of time. :/
For my tablet I chose the upstream kernel. It took quite a lot of time to get things working initially, but now I'm rather happy about it because I can just pull it upstream updates to get security fixes or support for newer Android versions.
My tablet does not seem to boot from USB, even from a powered hub. I tried a couple of approaches. Flashing partitions works obviously, but else than that I could only boot from USB by starting into the tablets EFI shell and then running /EFI/boot/bootx64.efi or grubx64 efi. With the default Android-x86 5.1.1 kernel compiled into a boot.img the tablet at least seemed to boot to some extent, but seemingly failed to find the rootfs or partition needed later. Adding some insmod lines for a veriety of drivers (part_gpt, part_msdos etc.) did not seem to change anything. I guess I haven't understood the proper boot procedure for the tablet or lack some specific modules. Any pointer are welcome here...
Ok, so an upstream kernel would be great as it might even have some of the required drivers and the rest could in theory be ported. Could you elaborate on how to use my kernel sources or any kernel sources in the android-x86 repo directory for building with that other kernel? Do I just dump the sources into the directory or what do I need to do?
I can not enter the BIOS on the tablet. Theres no reaction to F1 / F2 / Del and so on when booting. The only way to enter the BIOS is to run the efi shell via POWER + VOLUME UP, run grubx64.efi and select the option to start the BIOS. This works, but leaves me with a password input field, so I can't enter the BIOS and change any options there. I tried reflashing the BIOS with AfuEfix64, erasing the NVRAM etc., but the password protection does not go away. I also tried different default passwords, but to no avail. I have now contacted the vendor to get the password. Fingers crossed.
Running Android 7.1 Live from USB shows these messages (postimg link) and then it just sits there... The USB drive and keyboard do not seem to be powered anymore, so I guess it is a USB driver problem. When I had flashed the boot.img and system.img the tablet got further in the boot process. Maybe then the partition layout was'nt correct for Android to boot up though. Not sure.
Thanks for the offer with TWRP. It is tempting, but I'm a bit anxious about trashing the current recovery and possibly fastboot, because it's my only option to unbrick the device atm... :/
partition_table=gpt
create -z /dev/block/mmcblk0
create /dev/block/mmcblk0
boot -p /dev/block/mmcblk0
reload /dev/block/mmcblk0
add -b 40 -s 131072 -t efi -u C12A7328-F81F-11D2-BA4B-00A0C93EC93B -l ESP -T 0 -P 0 /dev/block/mmcblk0
add -b 131112 -s 131072 -t data -u 80868086-8086-8086-8086-FFFFFFFFFFF0 -l reserved -T 0 -P 0 /dev/block/mmcblk0
add -b 262184 -s 32768 -t data -u 80868086-8086-8086-8086-000000000100 -l boot -T 3 -P 15 /dev/block/mmcblk0
add -b 294952 -s 32768 -t data -u 80868086-8086-8086-8086-000000000101 -l recovery -T 3 -P 14 /dev/block/mmcblk0
add -b 327720 -s 32768 -t data -u 80868086-8086-8086-8086-000000000102 -l fastboot -T 3 -P 13 /dev/block/mmcblk0
add -b 360488 -s 32768 -t data -u 80868086-8086-8086-8086-FFFFFFFFFFF1 -l reserved_1 -T 3 -P 0 /dev/block/mmcblk0
add -b 393256 -s 131072 -t data -u 80868086-8086-8086-8086-000000000104 -l test -T 3 -P 12 /dev/block/mmcblk0
add -b 524328 -s 65536 -t data -u 80868086-8086-8086-8086-000000000001 -l panic -T 0 -P 0 /dev/block/mmcblk0
add -b 589864 -s 32768 -t data -u 80868086-8086-8086-8086-000000000002 -l factory -T 0 -P 0 /dev/block/mmcblk0
add -b 622632 -s 32768 -t data -u 80868086-8086-8086-8086-000000000003 -l misc -T 0 -P 0 /dev/block/mmcblk0
add -b 655400 -s 32768 -t data -u 80868086-8086-8086-8086-000000000004 -l config -T 0 -P 0 /dev/block/mmcblk0
add -b 688168 -s 2097152 -t data -u 80868086-8086-8086-8086-000000000005 -l cache -T 0 -P 0 /dev/block/mmcblk0
add -b 2785320 -s 65536 -t data -u 80868086-8086-8086-8086-000000000006 -l logs -T 0 -P 0 /dev/block/mmcblk0
add -b 2850856 -s 4194304 -t data -u 80868086-8086-8086-8086-000000000007 -l system -T 0 -P 0 /dev/block/mmcblk0
add -b 7045160 -s $calc($lba_end-33) -t data -u 80868086-8086-8086-8086-000000000008 -l data -T 0 -P 0 /dev/block/mmcblk0
reload /dev/block/mmcblk0
Posting the link again: https://s10.postimg.org/bxam09icp/IMG_20180210_215820.jpg
The orignal firmware said Kernel 3.10.something, the kernel sources say that too. Will try to find out where to put the kernel sources and build an iso again. I hope I get the BIOS password...
When I got proper dmesg output I'll send you a link for a recovery. Is the fastboot partition the droidboot.img or what name does it go by usually?