Custom Kernel and Gadged Snap Issue for Eragon410 board based on Dragonboard410c and other build related issues

Sunny Bhayani sunny.bhayani at einfochips.com
Sat Feb 4 09:20:28 UTC 2017


Hi,


We are using Eragon410 board to use the Ubuntu-Core OS on it. The Eragon410 board is based on Dragonboard410c board.


We have tried to follow all the steps mentioned by the Canonical Team, to build our gadget snap and kernel snap (based on the Dragonboard410c). Thereby, we are able to generate the Ubuntu Core OS snap. We have applied the security patches to our kernel (for AppArmour, and other security related stuff).


Earlier we had issue on the first console-conf setup screen, which we figured out that, IPv4 and IPv6 needs to be setup (in our case DHCP) in order for the first console-conf to be configured successfully. After that we were able to do a ssh and configure the password for the board as below:

sudo passwd $USER

and we were able to also login to the Eragon410 board natively from serial terminal interface.


ISSUE 1:

We are not able to get the Wifi interface listed in the ifconfig. We compared our boot logs with the Dragonboard410c (precompiled images) boot log, but were not able to get much difference. Then we extracted the firmware.tar (having the firmware binaries for wcnss, venus, a300_pfp, and a300_pm4, obtained from Dragonboard410c release for linux) to the "<kernel_source>/firmware" path, and modifying the firmware plugin of the snapcraft.yaml file as below:

    firmware:
        plugin: tar-content
        source: firmware.tar
        destination: firmware

We are able to see the firmware binaries for Wifi in the rootfs at "/lib/firmware" where they are expected. But we are not able to see the Wifi interface (wlan0).


ISSUE 2:

When we do "snap list", we are getting the below error:

---- Error Start ----

    user at localhost:~$ snap list
    No snaps are installed yet. Try "snap install hello-world".

---- Error End ----


whereas, in the Dragonboard410c (precompiled binary), we are able to see the Ubuntu core snap, kernel snap and gadget snap listed in the output.


ISSUE 3:

Installing the hello-world snap gives the below error:

http://pastebin.com/h9nDtk06


ISSUE 4:
We built the Dragonboard410c kernel source, Gadget snap and thereby created the Ubuntu OS snap. But when we boot the Ubuntu Core, we get this error:
http://pastebin.com/h2eJG1yw

ISSUE 5:
For the "Model Assertion", if we do not rename our Gadget snap to "dragonboard_16.04-0.18_armhf.snap", and Kernel snap to "96boards-kernel_4.4.0_arm64.snap", then we are not able to generate the Ubuntu Core OS snap. It seems that these names (Dragonboard related names) are hardcoded in the "ubuntu-image" tool.

It would be great if you can give us pointers for the same.

Thanks.



Thanks & Regards,
Sunny Bhayani
Solution Consultant | Solutions

[https://gallery.einfochips.com/Sign.png]       Tel: - | Cell: 919909705699
Product Engineering Services
Software | System | Silicon | Mechanical
www.einfochips.com<http://www.einfochips.com> | sunny.bhayani at einfochips.com<mailto:sunny.bhayani at einfochips.com>

[https://intranet.einfochips.com/images/newletter_footer/blog.png]<https://einfochips.com/blog/>  [https://intranet.einfochips.com/images/newletter_footer/linkedin.png] <https://www.linkedin.com/company/einfochips>   [https://intranet.einfochips.com/images/newletter_footer/facebook.png] <https://www.facebook.com/eInfochips>   [https://intranet.einfochips.com/images/newletter_footer/google_plus.png] <https://plus.google.com/115387550354383133244/posts>   [https://intranet.einfochips.com/images/newletter_footer/twitter.png] <https://twitter.com/einfochipsltd>   [https://intranet.einfochips.com/images/newletter_footer/youtube.png] <https://www.youtube.com/user/einfochipsindia?feature=watch>   [https://intranet.einfochips.com/images/newletter_footer/slideshare.png] <http://www.slideshare.net/eInfochips_Solution>
20 Years of Engineering Innovation & Excellence
Recognized as 'Leader' in Zinnov's Global Service Providers Rating-2015


************************************************************************************************************************************************************* eInfochips Business Disclaimer: This e-mail message and all attachments transmitted with it are intended solely for the use of the addressee and may contain legally privileged and confidential information. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution, copying, or other use of this message or its attachments is strictly prohibited. If you have received this message in error, please notify the sender immediately by replying to this message and please delete it from your computer. Any views expressed in this message are those of the individual sender unless otherwise stated. Company has taken enough precautions to prevent the spread of viruses. However the company accepts no liability for any damage caused by any virus transmitted by this email. *************************************************************************************************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/snapcraft/attachments/20170204/b37f25e5/attachment.html>


More information about the Snapcraft mailing list