<div dir="ltr"><div>You can look at: <a href="https://bugs.launchpad.net/ubuntu-image/+bug/1630769">https://bugs.launchpad.net/ubuntu-image/+bug/1630769</a></div><div>We modified the gadget.yaml as follows:</div><div>device-tree: s900-96board.dtb</div><div>volumes:</div><div> bubblegum96:</div><div> schema: mbr</div><div> bootloader: u-boot</div><div> structure:</div><div> - name: Bootstrap</div><div> type: bare</div><div> size: 6M</div><div> offset: 2M</div><div> content:</div><div> - image: bootloader.bin</div><div> offset: 512</div><div> - image: u-boot.bin</div><div> offset: 1048576</div><div> - name: system-boot</div><div> type: 0C</div><div> filesystem: vfat</div><div> filesystem-label: system-boot</div><div> offset: 8388608</div><div> size: 128M</div><div> content:</div><div> - source: boot-assets/</div><div> target: /</div><div><br></div><div>it works.</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-02-14 13:04 GMT+08:00 Woodrow Shen <span dir="ltr"><<a href="mailto:woodrow.shen@canonical.com" target="_blank">woodrow.shen@canonical.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi all,<div><br></div><div>As I used new ubuntu-image (0.14+real1) to create my armhf image, I also got the same error as well. In order to try to fit the new spec of gadget.yaml, I modified the gadget.yaml as follows:</div><div><br></div><div><div>device-tree: actduino_bubble_gum_sdboot_<wbr>linux.dtb</div><div>volumes:</div><div> roseapple-pi:</div><span class=""><div> schema: mbr</div><div> bootloader: u-boot</div><div> structure:</div></span><div> - name: bootloader</div><div> size: 4M</div><div> content:</div><div> - image: bootloader.bin</div><div> offset: 2097664 #4097*512</div><div> - image: u-boot.bin</div><div> offset: 3145728 #6144*512</div><div> type: bare</div><div> - name: system-boot</div><span class=""><div> type: 0C</div><div> filesystem: vfat</div><div> filesystem-label: system-boot</div><div> offset: 8388608</div><div> size: 128M</div><div> content:</div><div> - source: boot-assets/</div><div> target: /</div></span></div><div><br></div><div>And then this can avoid above the error during image creation. However, the generated image lost the content of bootloader.bin & u-boot.bin at the specific offset. So I think it may not follow the correct spec of gadget.yaml. Can anyone help us to resolve the problem? Thanks.</div><div><br></div><div>Regards,</div><div>Woodrow</div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Wed, Dec 21, 2016 at 11:15 AM, Bo Dong <span dir="ltr"><<a href="mailto:bdong@ucrobotics.com" target="_blank">bdong@ucrobotics.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr">Hi Guys,<div><br></div><div>We're now porting Ubuntu Core to an ARM64 on-chip computer, Bubblegum-96 board. (<a href="http://www.96boards.org/product/bubblegum-96/" target="_blank">http://www.96boards.org/produ<wbr>ct/bubblegum-96/</a>)<br><div><div>Here are some issues we got.</div><div><br></div><div>When using ubuntu-image (tag:0.10+real 1 stable),</div><div><span style="font-size:12.8px"><br></span></div><div><span style="background-color:rgb(204,204,204)"><i><span style="font-size:12.8px">$ sudo /snap/bin/ubuntu-image --channel stable --image-size 2G --extra-snaps bubblegum96-gadget_16.04-1.1_a</span><span style="font-size:12.8px"><wbr>rm64.snap --extra-snaps bubblegum96-kernel_3.10.0_arm6</span><span style="font-size:12.8px"><wbr>4.snap -o bubblegum96.img bubblegum96.model</span></i><br></span></div><div><br></div><div>it could make valid image,bubblegum96.img.</div><div><br></div><div>After update ubuntu-image using command<i> </i><span style="font-size:12.8px"><i style="background-color:rgb(204,204,204)">$ sudo snap refresh --beta --devmode ubuntu-image</i>, the ubuntu-image will be updated to beta (tag: 0.12+real 1). We using command </span></div><div><span style="font-size:12.8px"><i><br></i></span></div><div><span style="font-style:italic;font-size:12.8px;background-color:rgb(204,204,204)">$ sudo /snap/bin/ubuntu-image --channel beta --image-size 2G --extra-snaps bubblegum96-gadget_16.04-1.1_a</span><span style="font-style:italic;font-size:12.8px;background-color:rgb(204,204,204)"><wbr>rm64.snap --extra-snaps bubblegum96-kernel_3.10.0_arm6</span><span style="font-size:12.8px"><i style="background-color:rgb(204,204,204)"><wbr>4.snap -o bubblegum96.img bubblegum96.model </i><span style="background-color:rgb(255,255,255)">again, and it will report failure. It shows "</span></span><span style="font-size:12.8px">gadget.yaml parse error: mbr structures cannot be larger than 446 bytes.</span><span style="font-size:12.8px">"</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">The gadget.yaml file is the same before and after update ubuntu-image.</span></div><div><span style="font-size:12.8px">Here it is:</span></div><div><div style="font-size:12.8px"><span style="background-color:rgb(204,204,204)">$ cat gadget.yaml</span></div><div style="font-size:12.8px"><span style="background-color:rgb(204,204,204)">device-tree: s900-96board.dtb</span></div><div style="font-size:12.8px"><span style="background-color:rgb(204,204,204)">volumes:</span></div><div style="font-size:12.8px"><span style="background-color:rgb(204,204,204)"> lemaker-guitar:</span></div><div style="font-size:12.8px"><span style="background-color:rgb(204,204,204)"> schema: mbr</span></div><div style="font-size:12.8px"><span style="background-color:rgb(204,204,204)"> bootloader: u-boot</span></div><div style="font-size:12.8px"><span style="background-color:rgb(204,204,204)"> structure:</span></div><div style="font-size:12.8px"><span style="background-color:rgb(204,204,204)"> - name: Bootstrap</span></div><div style="font-size:12.8px"><span style="background-color:rgb(204,204,204)"> type: mbr</span></div><div style="font-size:12.8px"><span style="background-color:rgb(204,204,204)"> size: 8M</span></div><div style="font-size:12.8px"><span style="background-color:rgb(204,204,204)"> content:</span></div><div style="font-size:12.8px"><span style="background-color:rgb(204,204,204)"> - image: bootloader.bin</span></div><div style="font-size:12.8px"><span style="background-color:rgb(204,204,204)"> offset: 2097664</span></div><div style="font-size:12.8px"><span style="background-color:rgb(204,204,204)"> - image: u-boot.bin</span></div><div style="font-size:12.8px"><span style="background-color:rgb(204,204,204)"> offset: 3145728</span></div><div style="font-size:12.8px"><span style="background-color:rgb(204,204,204)"> - type: 0C</span></div><div style="font-size:12.8px"><span style="background-color:rgb(204,204,204)"> filesystem: vfat</span></div><div style="font-size:12.8px"><span style="background-color:rgb(204,204,204)"> filesystem-label: system-boot</span></div><div style="font-size:12.8px"><span style="background-color:rgb(204,204,204)"> offset: 8388608</span></div><div style="font-size:12.8px"><span style="background-color:rgb(204,204,204)"> size: 128M</span></div><div style="font-size:12.8px"><span style="background-color:rgb(204,204,204)"> content:</span></div><div style="font-size:12.8px"><span style="background-color:rgb(204,204,204)"> - source: boot-assets/</span></div><div style="font-size:12.8px"><span style="background-color:rgb(204,204,204)"> target: /</span></div></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">If we change the size: 8M directly to size:440, the image we made will be useless. Actually I don't know how to config offset after change the size.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">If we change the schema: mbr directly to schema: gpt, and change the type: mbr to type: gpt, it will fail again, and shows "</span><span style="font-size:12.8px">gadget.yaml parse error: Invalid gadget.yaml @ volumes:lemaker-guitar:structu</span><span style="font-size:12.8px"><wbr>re:0:type"</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">I'd appreciate it a lot if there is anyone could help us with this.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Thanks&&Best Regards</span></div><span class="m_-524136182798892271HOEnZb"><font color="#888888"><div><span style="font-size:12.8px"><br></span></div><div><br></div><div><br></div>-- <br><div class="m_-524136182798892271m_-4979540395799064892gmail_signature"><div dir="ltr"><div><div dir="ltr">董波<div><span style="font-size:12.8px">uCRobotic</span></div><div><div>Mobile: <a href="tel:+86%20156%202495%207162" value="+8615624957162" target="_blank">+86 15624957162</a></div><div><br></div><div><a href="http://www.ucrobotics.com.cn/" target="_blank">http://www.ucrobotics.com.cn/<span></span><span></span></a><br></div><div><br></div></div></div></div></div></div>
</font></span></div></div></div>
<br></div></div><span class="HOEnZb"><font color="#888888">--<br>
Snapcraft mailing list<br>
<a href="mailto:Snapcraft@lists.snapcraft.io" target="_blank">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/mailm<wbr>an/listinfo/snapcraft</a><br>
<br></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br><div class="m_-524136182798892271gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div class="m_-524136182798892271gmail_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)">Devices | CE | Delivery, Taipei</span></div></div></div></div></div></div></div>
</font></span></div>
<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>
<br></blockquote></div><br></div>