Hi Ogra, Thanks your help a lot !! The uboot.env is a file I miss, and now I can build an image successfully. ^0^/
I also wonder why don't we provide some gold examples / guides to instruct how to build the gadget snap for the specific arch, especially the gadget couldn't created by snapcraft. Cheers, Woodrow, On Fri, Jun 3, 2016 at 5:38 PM, Oliver Grawert <[email protected]> wrote: > hi, > > > > > On Fri, Jun 3, 2016 at 2:59 PM, Woodrow Shen > > <[email protected]> wrote: > > Hi all, > > > > > > I made roseapple-pi gadget snap[1] > > there are multiple issues with your gadget snap ... > in your snap.yaml you define two files that do not exist: > ... > - path: boot-assets/bootloader.bin > ... > - path: boot-assets/u-boot.bin > > we also do not support any text files for configuring the bootloader any > more, you need to create a uboot.env (and adjust your uboot build time > configuration to use and find it): > > #define CONFIG_ENV_SIZE SZ_128K > #define CONFIG_ENV_IS_IN_FAT > #define FAT_ENV_INTERFACE "mmc" > #define FAT_ENV_DEVICE_AND_PART "0:1" > #define CONFIG_SYS_REDUNDAND_ENVIRONMENT > > (in include/configs/$your-board.h, note that FAT_ENV_DEVICE_AND_PART > needs to point to your vfat partition that holds the uboot.env file) > > the uboot.env needs to be created using the mkenvimage command either > from your uboot tree (it gets built in the tools directory) or from the > u-boot-tools package in the archive: > > mkenvimage -r -s 131072 -o uboot.env uEnv.txt > > (note the options are not optional ;) -r and -s 131072 are mandatory) > and change "- path: boot-assets/uEnv.txt" to "- path: > boot-assets/uboot.env" in your snap.yaml > > first see if it works better with the adjusted gadget snap and the very > latest ubuntu-device-flash from > http://people.canonical.com/~mvo/all-snaps/ > > if there are still issues then we can go through your kernel snap ... > > ciao > oli > > > -- > Snapcraft mailing list > [email protected] > Modify settings or unsubscribe at: > https://lists.ubuntu.com/mailman/listinfo/snapcraft > > -- Woodrow Shen Software Engineer, Canonical ltd. UES | CE | PC & Core, Taipei
-- Snapcraft mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/snapcraft
