issue generating snappy image
Sergio Schvezov
sergio.schvezov at canonical.com
Mon Mar 28 13:32:01 UTC 2016
El 24/03/16 a las 13:47, Yann Sionneau escribió:
> Hi,
>
> I'm trying to generate a snappy image and it fails, I tried to strace it
> but I'm a bit flooded by the strace logs and don't understand what's
> going wrong.
>
> yann at imperium:~/dev/snappy/1604/packages/images$ sudo
> ./ubuntu-device-flash -v core -o paros.img
> --gadget=$PWD/../paros_gadget/paros_1.0_all.snap
> --kernel=$PWD/../paros_kernel/paros-kernel_3.10.67_arm64.snap
> --os=../../xenial-preinstalled-core-armhf.os.snap rolling
Can you try adding --developer-mode here?
And where did you grab this ubuntu-device-flash you are using?
> Determining gadget configuration
> Partitioning...
> Formatting...
> Mounting...
> Provisioning...
> Installing
> /home/yann/dev/snappy/1604/packages/images/../paros_gadget/paros_1.0_all.snap
> Unmounting...
> */home/yann/dev/snappy/1604/packages/images/../paros_gadget/paros_1.0_all.snap
> failed to install: exit status 2**
> *
> yann at imperium:~/dev/snappy/1604/packages/paros_kernel$ ls
> linux-x1 linux.config paros-kernel_3.10.67_arm64.snap parts snap
> snapcraft.yaml squashfs-root stage
> yann at imperium:~/dev/snappy/1604/packages/paros_kernel$ cat snapcraft.yaml
> name: paros-kernel
> version: 3.10.67
> summary: A Paros kernel built from source
> description: This is the reference kernel for Paros
> type: kernel
>
> parts:
> kernel:
> plugin: kernel
> source: ./linux-x1
> kconfigfile: ./linux.config
> kconfigs:
> - CONFIG_LOCALVERSION="-paros"
> - CONFIG_DEBUG_INFO=n
> - CONFIG_SQUASHFS=y
> kernel-image-target: Image
> kernel-image-path: arch/arm64/boot/Image
> kernel-device-tree:
> - tegra210-mk4-hw00
> - tegra210-paros-hw00
> - tegra210-paros360-hw00
> - tegra210-jetson-tx1-p2597-2180-a01-devkit
> - tegra210-jetson-tx1-mk4
> - tegra210-jetson-tx1-paros
> - tegra210-jetson-e-base-p2595-0000-a00
> build-packages: [bc]
Just for the kicks, can I see the file listing for the resulting snap?
Either by running `unsquashfs -l` for the snap or running `find snap`
from the project directory.
> yann at imperium:~/dev/snappy/1604/packages/paros_gadget$ find .
> .
> ./uboot.env
> ./tegra210-paros-hw00.dtb
> ./meta
> ./meta/snap.yaml
> ./paros_1.0_all.snap
> yann at imperium:~/dev/snappy/1604/packages/paros_gadget$ cat meta/snap.yaml
> name: paros
> version: 1.0
> summary: Paros support package
> description: Support files for booting Paros
> type: gadget
>
> branding:
> name: Paros drone
>
> gadget:
> hardware:
> platform: tegra210-paros-hw00
> architecture: armhf
> partition-layout: minimal
> bootloader: u-boot
> boot-assets:
> files:
> - path: uboot.env
>
>
> Any idea?
I have some, but need more info :-)
>
> Thanks!
>
> --
> Yann
>
>
Cheers
Sergio
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/snappy-devel/attachments/20160328/df6201e7/attachment.pgp>
More information about the snappy-devel
mailing list