Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Commit dba99a7

Browse files
authored
Merge pull request #640 from michalskrivanek/s32g3
add NXP S32G-VND-RDB3 flasher
2 parents 5411b73 + 840352e commit dba99a7

4 files changed

Lines changed: 802 additions & 1 deletion

File tree

packages/jumpstarter-driver-flashers/oci_bundles/aarch64-itb/build_fits.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,13 @@ else
1313
wget cpio rsync bc lzop zip patch perl tar qemu-system-aarch64 qemu-img unzboot \
1414
uboot-tools kmod awk zstd
1515

16-
git clone --depth 1 --branch 2025.05 https://github.com/buildroot/buildroot "${BUILDROOT_DIR}"
16+
git clone --depth 1 --branch 2025.08 https://github.com/buildroot/buildroot "${BUILDROOT_DIR}"
1717

1818
# build default buildroot kernel & initramfs
1919
cp buildroot_defconfig "${BUILDROOT_DIR}/configs/"
2020
cp -R overlay "${BUILDROOT_DIR}"
2121
( cd "${BUILDROOT_DIR}"; make buildroot_defconfig && make )
22+
dtc s32g3.dts -o s32g3.dtb
2223
mkimage -f buildroot.its data/flasher-buildroot.itb
2324
rm -rf "${BUILDROOT_DIR}/overlay"
2425

packages/jumpstarter-driver-flashers/oci_bundles/aarch64-itb/buildroot.its

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,17 @@
5151
algo = "sha256";
5252
};
5353
};
54+
fdt-s32g3 {
55+
description = "DTB NXP S32G-VNP-RDB3";
56+
data = /incbin/("./s32g3.dtb");
57+
type = "flat_dt";
58+
arch = "arm64";
59+
compression = "none";
60+
load = <0x88000000>;
61+
hash {
62+
algo = "sha256";
63+
};
64+
};
5465
};
5566

5667
configurations {
@@ -73,5 +84,14 @@
7384
algo = "sha256";
7485
};
7586
};
87+
s32g3 {
88+
description = "Boot NXP S32G-VNP-RDB3";
89+
kernel = "kernel";
90+
fdt = "fdt-s32g3";
91+
ramdisk = "initrd";
92+
hash {
93+
algo = "sha256";
94+
};
95+
};
7696
};
7797
};
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
apiVersion: jumpstarter.dev/v1alpha1
2+
kind: FlashBundleManifest
3+
metadata:
4+
name: nxp-s32g-vnd-rdb3
5+
spec:
6+
manufacturer: NXP
7+
link: "https://www.nxp.com/part/S32G-VNP-RDB3"
8+
# boot using the default configuration built-in flasher.itb, s32g3
9+
bootcmd: "bootm 0x90000000#s32g3"
10+
shelltype: "busybox"
11+
login:
12+
login_prompt: "login:"
13+
username: "root"
14+
prompt: "#"
15+
default_target: "usd"
16+
targets:
17+
usd: "/sys/devices/platform/soc\@0/402f0000.mmc"
18+
# usd: "/sys/class/block/mmcblk0"
19+
# removed for now, even if it's our documented procedure, if
20+
# the board is configured to boot from sd or emmc (and not SPI), and
21+
# the flashing of the final image fails, it will result in an un-bootable
22+
# system -> lab admin going to the site and re-flashing SD, this can
23+
# only be avoided by using something like sdwire
24+
#
25+
# preflash_commands:
26+
# - "dd if=/dev/zero of=/dev/mmcblk0 bs=512 count=34"
27+
# - "dd if=/dev/zero of=/dev/mmcblk1 bs=512 count=34"
28+
#
29+
# supply custom DTB by loading your own re-using the included kernel and initrd by e.g:
30+
# bootcmd: "bootm 0x90000000:kernel 0x90000000:initrd 0x88000000"
31+
# dtb:
32+
# file: my.dtb
33+
# address: "0x88000000"
34+
kernel:
35+
file: data/flasher-buildroot.itb
36+
address: "0x90000000"
37+
38+
dtb:
39+
default: s32g3
40+
address: "0x88000000"
41+
variants:
42+
s32g3:
43+
bootcmd: "bootm 0x90000000#s32g3"
44+
custom:
45+
bootcmd: "bootm 0x90000000:kernel 0x90000000:initrd 0x88000000"

0 commit comments

Comments
 (0)