[Bug 2004495] Re: [SRU] Add support for the NXP S32G274A-RDB2 board in Jammy

Isaac True 2004495 at bugs.launchpad.net
Tue Mar 14 08:01:33 UTC 2023


Test results on 22.04 using flash-kernel-3.104ubuntu16ppa1 from the
.debdiff in #7 and a custom kernel and device tree:

ubuntu at 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 at 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 at 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.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to flash-kernel in Ubuntu.
https://bugs.launchpad.net/bugs/2004495

Title:
  [SRU] Add support for the NXP S32G274A-RDB2 board in Jammy

Status in flash-kernel package in Ubuntu:
  Fix Released
Status in flash-kernel source package in Jammy:
  New

Bug description:
  [ Impact ]

  Flash-kernel only supports boards maintained in the db/all.db
  database.

  We want to be able to support the 'NXP S32G274A-RDB2' in Jammy.

  The database entries are copied from the Lunar version for the
  package.

  [ Test Plan ]

  As the database entries are the same as in Lunar they already received
  some testing.

  Check that no entry is deleted in the database.

  On a NXP S32G274A-RDB2 board, run flash-kernel to verify that a new
  fit image has been created and deployed to /boot/firmware

  [ Where problems could occur ]

  We could by mistake delete entries for other boards in the database.

  We could create a database file that flash-kernel cannot parse.

  This could lead to errors in booting other systems.

  Both causes are not probable as we copy the entries from Lunar where
  testing already has occurred.

  [ Other Info ]

  Original description

  I've created a debdiff which adds support for the NXP S32G274A-RDB2
  reference board for the S32G2 SoC. The added fit image template
  (its/arm64/image-nxp-s32.its) can also be used for other boards in the
  S32 family, which may be added in the future.

  This is a development board for NXP's automotive platform with a
  specific and custom BSP (https://github.com/nxp-auto-linux/). The
  device tree and support for the board is not (yet) in the mainline
  kernel, and the board is not supported by upstream U-Boot. In order to
  achieve the best compatibility with the custom U-Boot implementation
  required to boot this board, this patch instructs flash-kernel to only
  generate the fit image and place it in /boot/firmware/fitImage,
  without generating a boot script.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/flash-kernel/+bug/2004495/+subscriptions




More information about the foundations-bugs mailing list