Conflict when installing `kernel-image-initramfs` to resin-jetson-tx2


#1

Hi,
We’re trying to install the kernel-image-initramfs package to our resin-jetson-tx2 layer, as in resin-beaglebone. But we’re getting a conflict because the kernel-image-image-4.4.38-l4t-r28.2+gcc8d223c40d7 package is installing another kernel Image (without initramfs).

How was this resolved for beagleboneblack?I think I need to PACKAGE_EXCLUDE something but I don’t know what.

Many thanks,
Tom


#4

That is, the following change to resin-jetson-tx2:

diff --git a/layers/meta-resin-jetson/recipes-core/images/resin-image.inc b/layers/meta-resin-jetson/recipes-core/images/resin-image.inc
index 88ee333..f4dfe81 100644
--- a/layers/meta-resin-jetson/recipes-core/images/resin-image.inc
+++ b/layers/meta-resin-jetson/recipes-core/images/resin-image.inc
@@ -10,4 +10,7 @@ RESIN_BOOT_SIZE = "80960"
                                                                                                                                                                             
 PARTITION_TABLE_TYPE = "gpt"
 
-IMAGE_INSTALL_append = " tegra186-flash-dry"
+IMAGE_INSTALL_append = " kernel-image-initramfs tegra186-flash-dry"

Causes the error:

Collected errors:
 * check_data_file_clashes: Package kernel-image-image-4.4.38-l4t-r28.2+gcc8d223c40d7 wants to install file /home/tpreston/muos/build/tmp/work/jetson_tx2-poky-linux/resin-image/1.0-r0/rootfs/boot/Image
	But that file is already provided by package  * kernel-image-initramfs-4.4.38-l4t-r28.2+gcc8d223c40d7.