I’m trying to recreate the ramdisk.img used in the Vim_Ubuntu-mate-16.04_Linux-4.9_V170605 firmware. Unfortunately the resulting image is too large (~38M), as far as I am aware it must be 20M or smaller to work on the Khadas VIM.
Here are the commands I used:
cd linux git checkout ubuntu-4.9 make ARCH=arm64 kvim_defconfig make -j8 ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- Image kvim.dtb modules cd .. cd initrd make cd .. ./utils/mkbootimg --kernel linux/arch/arm64/boot/Image --ramdisk images/initrd.img -o images/ramdisk.img
My ultimate goal is to create a flashable update.img completely from scratch. Any suggestions or examples would be greatly appreciated.