I prepared the gadget snap using prebuilt uboot binary. I verified the same binary in the hardware and found debug console works.
Gadget yaml file looks like below,
- name: u-boot
- image: imx-boot
- name: system-boot
Here mainly , I focused on the uboot binary size.It is actually 1152272 bytes and I rounded off to 1152512.
cp imx-boot $SNAPCRAFT_PART_INSTALL/
tools/mkenvimage -r -s 131072 -o $SNAPCRAFT_PART_INSTALL/uboot.env ../../../u-boot-var.env.in
cd $SNAPCRAFT_PART_INSTALL/; ln -s uboot.env uboot.conf
I instructed snapcraft to use imx-boot (bootloader binary) and prepared passed the boot environment variables.
Is there anything can affect from uboot.conf or offset to my gadget snap? I am not using offset in gadget.yaml file.I understand that is optional.