this is telling you that the initial first-boot-install of your snaps (kernel/gadget) fails (which likely also causes your second-boot issue) … what is the output of:
snap change 1
also, a full journalctl dump would be good… if you can, please paste one to https://paste.ubuntu.com and link it here.
this is fine (note how the last one even says 4.8 and earlier (you are on 4.15), the first two are for debugging), none of these values are esssential.
this is again just a warning (and obviously does not stop the kernel from compiling), the build falls back to proper values here.
hi,ogra,thank you for the reply… …
I have some new questions about system user generate…
i put auto-import.assertion/auto-import.assert in /writable and snap known system-user show it have made a new system user, but when i reboot ,it still show
Ubuntu Core 16 on <no ip address> (ttymxc0)
You cannot log in until the system has an IP address.
(Is there supposed to be a DHCP server running on your network?)
I use make-system-user.run to make the auto-import.assert, Do i miss some information in document?
and there is another error about Initialize device
21 Error today at 11:13 UTC today at 11:13 UTC Initialize device
22 Error today at 11:15 UTC today at 11:15 UTC Initialize device
root@localhost:~# snap change 22
Status Spawn Ready Summary
Done today at 11:15 UTC today at 11:15 UTC Generate device key
Error today at 11:15 UTC today at 11:15 UTC Request device serial
......................................................................
Request device serial
2018-10-29T11:15:37Z ERROR cannot deliver device serial request: Cannot process serial request for device with brand "my brand id" and model "tsimx6"
refer to this,i have add slot interface in gadget. should i connect kernel.snap interface to gadget snap?
and in this post about interface,how do those interface work without defined in snap?and how can i make these interface work?
initializing devices only works for official images (either made by canonical or via a customer brand store if you use your own gadget) the “serial” this message talks about is a serial number for the installation, not a serial port on the device … you can safely ignore this message unless you will do an actual commercial product out of it, then you should talk to canonical about obtaining a brand store (which will assign serials to boards and allow management of devices through the store etc)
Hi,ogra
is there another way to change files in core.snap after installing it?Can i modify the mount script to get it writable in system?
i try to change and repackage core.snap . but it show:
cyndent@localhost:~$ sudo -i
sudo: /usr/bin/sudo must be owned by uid 0 and have the setuid bit set
is it need to login as canonical to package core.snap?
you can not change the core snap, like all snap packages it is a gpg signed readonly squashfs file. while you can use the tools from the squashfs-tools package to re-pack it it would make the store generated signature and checksum invalid.
what exactly do you want to achieve ? you normally do not need to touch the core snap …
i want to modify the rc.local in /etc or some other files to init 4G module or eth devices.
for example, it always get no ip address after reboot…i want to make it get a static ip address…
for that you can simply edit the yaml file in /etc/netplan (the default network configuration tool in ubuntu since 18.04 (and in core since core 16) … the reference is at:
alternatively you could install the network-manager snap and use nmcli to configure it (not sure if you also need the modem-manager snap for 4G, perhaps @abeato can give some hint here)
@cyndent if you plan to use a 4G module I recommend installing both network-manager and modem-manager so you can leave modem handling to them. You can also use NM to assign static addresses to managed devices.
Sideloading a snap will create a temporary copy of it in /tmp, before copying it to /var/lib/snapd/snaps. If you have the file in /tmp this means you need enough space to fit it twice…
your unpacked file is bigger than the tmpfs in /tmp, sadly manually sideloading unpacks in /tmp …
you can try to hack around this by unmonting /tmp and bind-mounting it to /var/tmp but make sure to reboot immediately after the snap was installed to get the original setup back.
Hi ogra
i use console-config to set static ip on my device…
when i update my kernel… something wrong with my dtb file…and ethernet phy can not work…but it still print start successful via serial, tell me to ssh user@ip… and the led on phy do not work…
do i have other way to enter my device except reburn image…
Thanks for reply…
i change things about Ethernet phy in dtb file and it do not work well without error. but still can set static ip address after reboot.
i will create system user to log in locally via serial port…