How to create bootable image for Amlogic P281 device?

It’s not trivial to get CE with 4.9 kernel to run properly on an old device.
Check this thread