Test results on 22.04 using flash-kernel-3.104ubuntu16ppa1 from the .debdiff in #7 and a custom kernel and device tree:
ubuntu@ubuntu:~$ apt info flash-kernel | grep ^Version
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Version: 3.104ubuntu16ppa1
ubuntu@ubuntu:~$ sudo flash-kernel
Using DTB: s32g274a-rdb2.dtb
Installing /lib/firmware/5.15.0-1007-s32/device-tree/freescale/s32g274a-rdb2.dtb into /boot/dtbs/5.15.0-1007-s32/./s32g274a-rdb2.dtb
Taking backup of s32g274a-rdb2.dtb.
Installing new s32g274a-rdb2.dtb.
flash-kernel: installing version 5.15.0-1007-s32
Generating u-boot image... done.
Taking backup of fitImage.
Installing new fitImage.
Test results on 22.04 using flash-kernel- 3.104ubuntu16pp a1 from the .debdiff in #7 and a custom kernel and device tree:
ubuntu@ubuntu:~$ apt info flash-kernel | grep ^Version
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Version: 3.104ubuntu16ppa1
ubuntu@ubuntu:~$ sudo flash-kernel 5.15.0- 1007-s32/ device- tree/freescale/ s32g274a- rdb2.dtb into /boot/dtbs/ 5.15.0- 1007-s32/ ./s32g274a- rdb2.dtb
Using DTB: s32g274a-rdb2.dtb
Installing /lib/firmware/
Taking backup of s32g274a-rdb2.dtb.
Installing new s32g274a-rdb2.dtb.
flash-kernel: installing version 5.15.0-1007-s32
Generating u-boot image... done.
Taking backup of fitImage.
Installing new fitImage.
ubuntu@ubuntu:~$ sudo dumpimage -l /boot/firmware/ fitImage 0371cf6201d37c9 14fd54c6be9b3fd f5ffb075ee23694 1b74 6ed92dd025cd477 c796108c5ccea2c 4c6bba298ef787b 9aee c35bc492aa0570c 69171faa2a1f046 b9236d6fb584456 b7d6
FIT description: Ubuntu kernel, ramdisk and FDT blobs for the NXP S32 family
Created: Tue Mar 14 07:59:54 2023
Image 0 (kernel-1)
Description: Ubuntu kernel
Created: Tue Mar 14 07:59:54 2023
Type: Kernel Image
Compression: uncompressed
Data Size: 37957640 Bytes = 37068.01 KiB = 36.20 MiB
Architecture: AArch64
OS: Linux
Load Address: 0x80000000
Entry Point: 0x80000000
Hash algo: sha256
Hash value: c82287373144246
Image 1 (ramdisk-1)
Description: Ubuntu ramdisk
Created: Tue Mar 14 07:59:54 2023
Type: RAMDisk Image
Compression: uncompressed
Data Size: 33251316 Bytes = 32471.99 KiB = 31.71 MiB
Architecture: AArch64
OS: Linux
Load Address: 0x90000000
Entry Point: unavailable
Hash algo: sha256
Hash value: 3125b5e38589dd1
Image 2 (fdt-1)
Description: NXP S32
Created: Tue Mar 14 07:59:54 2023
Type: Flat Device Tree
Compression: uncompressed
Data Size: 45615 Bytes = 44.55 KiB = 0.04 MiB
Architecture: AArch64
Load Address: 0x83000000
Hash algo: sha256
Hash value: df2b932e0a4882f
Default Configuration: 'nxp-s32'
Configuration 0 (nxp-s32)
Description: NXP S32
Kernel: kernel-1
Init Ramdisk: ramdisk-1
FDT: fdt-1
---
After a reboot the system boots back up using the new fit image without any issues.