How can i generate kernel.snap for new arm device

I’m confusing about the process of kernel start and can not find more infomation about how gadget.snap and kernel.snap work.
Is snapcraft just package zimage and dtb to kernel.snap? And unpackage snap file to the start location to make uboot start right?
Can i use the official kernel files like NXP linux to make kernel.snap?
And how can i understand the relationship between core gadget and kernel?
And where is rootfs packaged in?

1 Like