Hi!
My setup is:
- Raspberry Pi 4 as the client
- M1 Mac for building the images
- Using linux/amd64 based mender-convert docker image
I have tried converting a Raspberry Pi OS golden image without any problems before but when I tried converting my 64-bit Ubuntu Desktop golden image it was taking too long to convert the OS and the outputted image didn’t boot on my RPi 4. How I ran it:
MENDER_ARTIFACT_NAME=release-1 ./docker-mender-convert --disk-image input/golden-image-1-raspberrypi4-ubuntu-mender.img --config configs/raspberrypi4_ubuntu_config --config configs/custom_config --overlay input/rootfs_overlay_demo
using log file at: /Users/neiljoaquin/Documents/Development/mender-convert/logs/convert.log.1695627445-4525
WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested
Running mender-convert --disk-image input/golden-image-1-raspberrypi4-ubuntu-mender.img --config configs/raspberrypi4_ubuntu_config --config configs/custom_config --overlay input/rootfs_overlay_demo
Running mender-convert-extract: --config ./work/override_compression_config --disk-image input/golden-image-1-raspberrypi4-ubuntu-mender.img --config configs/raspberrypi4_ubuntu_config --config configs/custom_config --overlay input/rootfs_overlay_demo
2023-09-25 07:37:25 [INFO] [mender-convert-extract] Using configuration file: configs/mender_convert_config
2023-09-25 07:37:25 [INFO] [mender-convert-extract] Using configuration file: ./work/override_compression_config
2023-09-25 07:37:25 [INFO] [mender-convert-extract] Using configuration file: configs/raspberrypi4_ubuntu_config
2023-09-25 07:37:25 [INFO] [mender-convert-extract] Using configuration file: configs/custom_config
2023-09-25 07:37:26 [INFO] [mender-convert-extract] Validating disk image
2023-09-25 07:37:26 [INFO] [mender-convert-extract] Disk parsed successfully
2023-09-25 07:37:26 [INFO] [mender-convert-extract] NUMBER OF PARTS: 2 TYPE: dos
2023-09-25 07:37:26 [INFO] [mender-convert-extract] PART 1: SIZE: 256M TYPE: 0xc
2023-09-25 07:37:26 [INFO] [mender-convert-extract] PART 1: extracting to work/part-1.fs
2023-09-25 07:39:07 [INFO] [mender-convert-extract] PART 2: SIZE: 14.7G TYPE: 0x83
2023-09-25 07:39:07 [INFO] [mender-convert-extract] PART 2: extracting to work/part-2.fs
mender-convert-extract has finished. Cleaning up...
Running mender-convert-modify: --config ./work/override_compression_config --disk-image input/golden-image-1-raspberrypi4-ubuntu-mender.img --config configs/raspberrypi4_ubuntu_config --config configs/custom_config --overlay input/rootfs_overlay_demo
2023-09-25 08:35:49 [INFO] [mender-convert-modify] Using configuration file: configs/mender_convert_config
2023-09-25 08:35:49 [INFO] [mender-convert-modify] Using configuration file: ./work/override_compression_config
2023-09-25 08:35:49 [INFO] [mender-convert-modify] Using configuration file: configs/raspberrypi4_ubuntu_config
2023-09-25 08:35:49 [INFO] [mender-convert-modify] Using configuration file: configs/custom_config
2023-09-25 08:35:50 [INFO] [mender-convert-modify] Installing Mender client and related files
2023-09-25 08:35:50 [INFO] [mender-convert-modify] Installing Mender client version latest
2023-09-25 08:35:54 [INFO] [mender-convert-modify] Successfully downloaded mender-client_3.5.1-1+ubuntu+jammy_arm64.deb
2023-09-25 08:35:54 [INFO] [mender-convert-modify] Successfully installed mender-client_3.5.1-1+ubuntu+jammy_arm64.deb into /mender-convert/work/rootfs/
2023-09-25 08:35:55 [INFO] [mender-convert-modify] Creating state folder in the data partition for Mender add-ons
2023-09-25 08:35:56 [INFO] [mender-convert-modify] Using root device A in mender.conf: /dev/mmcblk0p2
2023-09-25 08:35:56 [INFO] [mender-convert-modify] Using root device B in mender.conf: /dev/mmcblk0p3
2023-09-25 08:35:57 [INFO] [mender-convert-modify] Creating state scripts version file.
2023-09-25 08:35:57 [INFO] [mender-convert-modify] Installing a custom /etc/fstab (see /mender-convert/logs/convert.log.1695627445-4525 for more info)
2023-09-25 08:35:57 [INFO] [mender-convert-modify] Using boot partition device in fstab: /dev/mmcblk0p1
2023-09-25 08:35:57 [INFO] [mender-convert-modify] Using data partition device in fstab: /dev/mmcblk0p4
2023-09-25 08:35:57 [INFO] [mender-convert-modify] Performing platform specific modifications (if any)
2023-09-25 08:35:58 [INFO] [mender-convert-modify] Running hook: platform_modify
2023-09-25 08:36:09 [INFO] [mender-convert-modify] Certain service files have been changed to align with our /uboot boot partition mount point. See convert.log for more information
2023-09-25 08:36:10 [INFO] [mender-convert-modify] Enabling UART in U-Boot configuration
2023-09-25 08:36:10 [INFO] [mender-convert-modify] Performing user/local specific modifications (if any)
2023-09-25 08:36:10 [INFO] [mender-convert-modify] Running hook: user_local_modify
2023-09-25 08:36:10 [INFO] [mender-convert-modify] Applying rootfs overlay: input/rootfs_overlay_demo
2023-09-25 08:36:10 [INFO] [mender-convert-modify] Performing overlay specific modifications (if any)
2023-09-25 08:36:10 [INFO] [mender-convert-modify] Running hook: overlay_modify
mender-convert-modify has finished. Cleaning up...
Running mender-convert-package: --config ./work/override_compression_config --disk-image input/golden-image-1-raspberrypi4-ubuntu-mender.img --config configs/raspberrypi4_ubuntu_config --config configs/custom_config --overlay input/rootfs_overlay_demo
2023-09-25 08:36:12 [INFO] [mender-convert-package] Using configuration file: configs/mender_convert_config
2023-09-25 08:36:12 [INFO] [mender-convert-package] Using configuration file: ./work/override_compression_config
2023-09-25 08:36:12 [INFO] [mender-convert-package] Using configuration file: configs/raspberrypi4_ubuntu_config
2023-09-25 08:36:12 [INFO] [mender-convert-package] Using configuration file: configs/custom_config
2023-09-25 08:36:12 [WARN] [mender-convert-package] The allocated boot part size 40 MiB is too small.
2023-09-25 08:36:12 [WARN] [mender-convert-package] The actual boot part size is 256 MiB
2023-09-25 08:36:12 [WARN] [mender-convert-package] Will adjust MENDER_BOOT_PART_SIZE_MB automatically
2023-09-25 08:36:12 [WARN] [mender-convert-package] Consider adjusting the configuration file to avoid this message
2023-09-25 08:36:21 [INFO] [mender-convert-package] Rootfs filesystem size will be 12193 MiB
2023-09-25 08:36:21 [INFO] [mender-convert-package] Creating a file-system image from: work/rootfs/
2023-09-25 08:50:44 [INFO] [mender-convert-package] Copying root filesystem image to deploy directory
2023-09-25 08:53:12 [INFO] [mender-convert-package] Installing the bootstrap Artifact
2023-09-25 08:55:38 [INFO] [mender-convert-package] Creating a file-system image from: work/data/
2023-09-25 08:55:39 [INFO] [mender-convert-package] Writing Mender artifact to: deploy/golden-image-1-raspberrypi4-ubuntu-mender-raspberrypi4-mender.mender
2023-09-25 08:55:39 [INFO] [mender-convert-package] This can take up to 20 minutes depending on which compression method is used
2023-09-25 09:16:10 [INFO] [mender-convert-package] Creating Mender compatible disk-image
2023-09-25 09:16:10 [INFO] [mender-convert-package] Total disk size: 25000 MiB
2023-09-25 09:16:10 [INFO] [mender-convert-package] Boot partition 256 MiB
2023-09-25 09:16:10 [INFO] [mender-convert-package] RootFS partitions 12296 MiB x 2
2023-09-25 09:16:10 [INFO] [mender-convert-package] Data partition 128 MiB
2023-09-25 09:16:10 [INFO] [mender-convert-package] Using input diskimage partition scheme (dos)
2023-09-25 09:16:10 [INFO] [mender-convert-package] Writing DOS (MBR) partition table
2023-09-25 09:16:14 [INFO] [mender-convert-package] Writing boot partition image
2023-09-25 09:18:19 [INFO] [mender-convert-package] Writing rootfsa partition image
2023-09-25 10:56:52 [INFO] [mender-convert-package] Writing rootfsb partition image
2023-09-25 22:09:15 [INFO] [mender-convert-package] Writing data partition image
2023-09-25 22:10:22 [INFO] [mender-convert-package] Performing platform specific package operations (if any)
2023-09-25 22:10:22 [INFO] [mender-convert-package] Running hook: platform_package
2023-09-25 22:10:22 [INFO] [mender-convert-package] Conversion has completed! \o/
mender-convert-package has finished. Cleaning up...
Output Artifacts and images can be found in the deploy directory:
deploy/golden-image-1-raspberrypi4-ubuntu-mender-raspberrypi4-mender.cfg
deploy/golden-image-1-raspberrypi4-ubuntu-mender-raspberrypi4-mender.ext4
deploy/golden-image-1-raspberrypi4-ubuntu-mender-raspberrypi4-mender.img
deploy/golden-image-1-raspberrypi4-ubuntu-mender-raspberrypi4-mender.mender
Log file available at: /Users/neiljoaquin/Documents/Development/mender-convert/logs/convert.log.1695627445-4525
The custom_config file only contains: MENDER_STORAGE_TOTAL_SIZE_MB=25000.
The overlay file only contains secrets Mender uses to connect to server.
Any help would be appreciated.