I have some questions about first boot of ubuntu core.Becasue i’m a beginner of linux， i’m not familiar with linux uboot and kernel.
I built images via this.And my raspberry is already running ubuntu core with self-build kernel and gadget.
Now i’m building image for imx6ull board designed by myself. But it’s not going well.
I have read the blog about gadget.
I understand the gadget snap need at least two file,snap.yaml and gadget.yaml.
snap.yaml is snap details and just package things that generate by gadget.yaml together, and gadget.yaml is generate uboot and init the disk, is it right?
Kernel.snap is packages of kernel. It will be unsquashfs and moved to the right place.
core.snap is package of rootfs for ubuntu core.
I build a image and while booting it cannnot find uboot.scr and zimage.So i mount it on my pc. And find the boot.scr is in /boot file and kernel/initrd/dtbs is in xxx_x1.snap. After init the xxx_x1.snap will change name to snap. So how can i make uboot to read this file? And how do uboot read this file for the first time?And how to read this file after change name to snap?
I notice that while building kernel.snap it will download os.snap. What is os.snap? Is it used for first init and other functions of ubuntu core?