According to my logbook t looks like I configured, built and installed the kernel using the following commands:
make amt6797_64_open_defconfig
# mmcblk0p27 is the system partition (fastboot flash system rootfs.img)
scripts/config \
--enable CMDLINE_FORCE --set-str CMDLINE \
'console=ttyMT0,921600n1 root=/dev/mmcblk0p27 rw vmalloc=496M maxcpus=5 mrdump.lk=MRDUMP04 mrdump_rsvmem=0x46000000,0x400000,0x44800000,0x9c280 lcm=1-nt35695_fhd_dsi_cmd_truly_nt50358_drv fps=6000 vram=29229056 boot_reason=0 gpt=1 loglevel=1'
scripts/config \
--disable TOUCHSCREEN_MTK \
--disable TOUCHSCREEN_MTK_GT1151 \
--enable TMPFS \
--enable DEVTMPFS \
--enable CGROUPS \
--enable FHANDLE \
--enable AUTOFS4_FS \
--enable IPV6
make olddefconfig
make -j `nproc`
touch arch/arm64/boot/empty
gzip -f arch/arm64/boot/empty
abootimg \
--create arch/arm64/boot/aboot.img \
-k arch/arm64/boot/Image.gz-dtb \
-r arch/arm64/boot/empty.gz \
-c "pagesize = 0x800" \
-c "kerneladdr = 0x40080000" \
-c "ramdiskaddr = 0x45000000" \
-c "secondaddr = 0x40f00000" \
-c "tagsaddr = 0x44000000" \
-c "name = " \
-c "cmdline = bootopt=64S3,32N2,64N2"
fastboot boot arch/arm64/boot/aboot.img
You’ll notice above that I don’t actually flash the kernel, instead I try to boot the kernel directly. I was running with a LittleKernel that I hacked myself for easier kernel development that would automatically enter fastboot mode if the boot partition was empty (like LK for DB410C)… unfortunately I can’t find the code for that so I don’t know quite what I did.
If “fastboot boot” doesn’t work try “fastboot flash boot” instead…