<div dir="ltr">Hi Ogra,<div><br></div><div>Thanks your help a lot !!</div><div>The uboot.env is a file I miss, and now I can build an image successfully. ^0^/</div><div><br></div><div>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.</div><div><br></div><div>Cheers,</div><div>Woodrow,</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jun 3, 2016 at 5:38 PM, Oliver Grawert <span dir="ltr"><<a href="mailto:ogra@ubuntu.com" target="_blank">ogra@ubuntu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hi,<br>
<span class=""><br>
><br>
> On Fri, Jun 3, 2016 at 2:59 PM, Woodrow Shen<br>
> <<a href="mailto:woodrow.shen@canonical.com">woodrow.shen@canonical.com</a>> wrote:<br>
>         Hi all,<br>
><br>
><br>
>         I made roseapple-pi gadget snap[1]<br>
<br>
</span>there are multiple issues with your gadget snap ...<br>
in your snap.yaml you define two files that do not exist:<br>
...<br>
- path: boot-assets/bootloader.bin<br>
...<br>
- path: boot-assets/u-boot.bin<br>
<br>
we also do not support any text files for configuring the bootloader any<br>
more, you need to create a uboot.env (and adjust your uboot build time<br>
configuration to use and find it):<br>
<br>
#define CONFIG_ENV_SIZE                        SZ_128K<br>
#define CONFIG_ENV_IS_IN_FAT<br>
#define FAT_ENV_INTERFACE              "mmc"<br>
#define FAT_ENV_DEVICE_AND_PART                "0:1"<br>
#define CONFIG_SYS_REDUNDAND_ENVIRONMENT<br>
<br>
(in include/configs/$your-board.h, note that FAT_ENV_DEVICE_AND_PART<br>
needs to point to your vfat partition that holds the uboot.env file)<br>
<br>
the uboot.env needs to be created using the mkenvimage command either<br>
from your uboot tree (it gets built in the tools directory) or from the<br>
u-boot-tools package in the archive:<br>
<br>
mkenvimage -r -s 131072  -o uboot.env uEnv.txt<br>
<br>
(note the options are not optional ;) -r and -s 131072 are mandatory)<br>
and change "- path: boot-assets/uEnv.txt" to "- path:<br>
boot-assets/uboot.env" in your snap.yaml<br>
<br>
first see if it works better with the adjusted gadget snap and the very<br>
latest ubuntu-device-flash from<br>
<a href="http://people.canonical.com/~mvo/all-snaps/" rel="noreferrer" target="_blank">http://people.canonical.com/~mvo/all-snaps/</a><br>
<br>
if there are still issues then we can go through your kernel snap ...<br>
<br>
ciao<br>
        oli<br>
<br>
<br>--<br>
Snapcraft mailing list<br>
<a href="mailto:Snapcraft@lists.ubuntu.com">Snapcraft@lists.ubuntu.com</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft" rel="noreferrer" target="_blank">https://lists.ubuntu.com/mailman/listinfo/snapcraft</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><font color="#500050">Woodrow Shen</font><br style="color:rgb(80,0,80)"><span style="color:rgb(80,0,80)">Software Engineer, Canonical ltd.</span></div></div><div><span style="color:rgb(80,0,80)">UES | CE | PC & Core, Taipei</span></div></div></div></div></div>
</div>