How do I create a proper ramdisk.img for linux 4.9?

Thank you for the help, but now I’m really curious as to why this results in a smaller ramdisk.img.
Is the khadas initrd repo GitHub outdated, or did I just not build it properly (e.g. no compression)?