Comment 8 for bug 2004495

Revision history for this message
Isaac True (itrue) wrote :

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.

ubuntu@ubuntu:~$ sudo dumpimage -l /boot/firmware/fitImage
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: c822873731442460371cf6201d37c914fd54c6be9b3fdf5ffb075ee236941b74
 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: 3125b5e38589dd16ed92dd025cd477c796108c5ccea2c4c6bba298ef787b9aee
 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: df2b932e0a4882fc35bc492aa0570c69171faa2a1f046b9236d6fb584456b7d6
 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.