<div dir="ltr">Works for me:<div>
<p class="gmail-p1"><span class="gmail-s2">$ sudo -E UBUNTU_DEVICE_FLASH_IGNORE_UNSTABLE_GADGET_DEFINITION=1 /snap/bin/ubuntu-device-flash --verbose core 16 -o snappy.img --channel edge --gadget pc --kernel pc-kernel --os ubuntu-core</span></p>
<p class="gmail-p1"><span class="gmail-s2">Determining gadget configuration</span></p>
<p class="gmail-p1"><span class="gmail-s2"> 836.00 KB / 836.00 KB [==================================] 100.00% 12.77 MB/s 0</span></p>
<p class="gmail-p1"><span class="gmail-s2">Partitioning...</span></p>
<p class="gmail-p1"><span class="gmail-s2">Formatting...</span></p>
<p class="gmail-p1"><span class="gmail-s2">Mounting...</span></p>
<p class="gmail-p1"><span class="gmail-s2">Provisioning...</span></p>
<p class="gmail-p1"><span class="gmail-s2"> 74.40 MB / 74.40 MB [===================================] 100.00% 24.02 MB/s 3s</span></p>
<p class="gmail-p1"><span class="gmail-s2"> 74.40 MB / 74.40 MB [===================================] 100.00% 59.46 MB/s 1s</span></p>
<p class="gmail-p1"><span class="gmail-s2"> 110.54 MB / 110.54 MB [=================================] 100.00% 23.19 MB/s 4s</span></p>
<p class="gmail-p1"><span class="gmail-s2"> 836.00 KB / 836.00 KB [==================================] 100.00% 68.23 MB/s 0</span></p>
<p class="gmail-p1"><span class="gmail-s2">Unmounting...</span></p>
<p class="gmail-p1"><span class="gmail-s2">New image complete</span></p>
<p class="gmail-p1"><span class="gmail-s2">Summary:</span></p>
<p class="gmail-p1"><span class="gmail-s2"> Output: snappy.img</span></p>
<p class="gmail-p1"><span class="gmail-s2"> Architecture: amd64</span></p>
<p class="gmail-p1"><span class="gmail-s2"> Channel: edge</span></p>
<p class="gmail-p1"><span class="gmail-s2"> Version: 0</span></p></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Aug 31, 2016 at 11:11 AM, Yann Sionneau <span dir="ltr"><<a href="mailto:yann.sionneau@parrot.com" target="_blank">yann.sionneau@parrot.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
Le 08/31/2016 à 10:56 AM, Simon Fels a écrit :<br>
> On 31.08.2016 10:49, Yann Sionneau wrote:<br>
>> Hello,<br>
>><br>
>> It seems the new (snapp'ed) ubuntu-device-flash cannot use my own gadget<br>
>> snap anymore.<br>
>><br>
>> yann@imperium$ sudo -E /snap/bin/ubuntu-device-flash --verbose core 16<br>
>> -o snappy.img --channel edge --gadget $PWD/../../../xxx_2.0_all.snap<br>
>> --kernel ../../../xxx_kernel/xxx-<wbr>kernel_3.10.97_armhf.snap --os<br>
>> ubuntu-core --developer-mode --enable-ssh<br>
>> cannot use<br>
>> "/home/yann/dev/snappy_xxx/<wbr>tools/snappy/xxx_image/../../.<wbr>./xxx_2.0_all.snap",<br>
>> must be one of: ["canonical-i386" "canonical-pc" "pc" "canonical-pi2"<br>
>> "pi2" "pi3" "canonical-dragon" "dragonboard" "beagleblack" "plano-amd64"]<br>
>><br>
>> Is porting Snappy on non official devices not supported anymore?<br>
> No, that is not the case.<br>
><br>
>> How is it supposed to work now? I must confess that I am blocked in my<br>
>> work because of this change, I cannot generate nor flash images anymore<br>
>> and my project is thus stalled :/<br>
> We're currently in a phase where ubuntu-device-flash is still being used<br>
> but the future will be a new tool called ubuntu-image which will allow<br>
> you to create images in a much better way.<br>
</span>Yes I've heard of the new ubuntu-image tool. It's a good idea to make<br>
this new tool!<br>
It's just important I think that the old tools stay functional until the<br>
new ones are ready.<br>
<span class="">><br>
> From what I got from Michael a lot things are currently hard coded<br>
> inside ubuntu-device-flash. See [1] for the relevant code bits.<br>
><br>
> You can override the sanity check for the gadget names with setting<br>
> UBUNTU_DEVICE_FLASH_IGNORE_<wbr>UNSTABLE_GADGET_DEFINITION=1 in the command<br>
> line you're executing. Didn't tested this but maybe Michael can comment<br>
> how this should work.<br>
</span>Ok, the environment variable works, thanks a lot!<br>
Now I get this:<br>
<br>
error while executing external command mkfs.ext4 -F -L writable<br>
/dev/mapper/loop3p2: mke2fs 1.42.13 (17-May-2015)<br>
Invalid filesystem option set:<br>
has_journal,extent,huge_file,<wbr>flex_bg,metadata_csum,64bit,<wbr>dir_nlink,extra_isize<br>
<br>
any idea?<br>
<div class="HOEnZb"><div class="h5"><br>
><br>
> regards,<br>
> Simon<br>
><br>
> [1]:<br>
> <a href="https://bazaar.launchpad.net/~mvo/goget-ubuntu-touch/minimal-first-boot-no-prepare-image/view/head:/ubuntu-device-flash/snappy.go#L116" rel="noreferrer" target="_blank">https://bazaar.launchpad.net/~<wbr>mvo/goget-ubuntu-touch/<wbr>minimal-first-boot-no-prepare-<wbr>image/view/head:/ubuntu-<wbr>device-flash/snappy.go#L116</a><br>
><br>
<br>
<br>
--<br>
Snapcraft mailing list<br>
<a href="mailto:Snapcraft@lists.snapcraft.io">Snapcraft@lists.snapcraft.io</a><br>
Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/snapcraft" rel="noreferrer" target="_blank">https://lists.ubuntu.com/<wbr>mailman/listinfo/snapcraft</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">- Loïc</div></div>
</div>