From 7d678fa8384908d7e57cfac150f32cd2025c1bdb Mon Sep 17 00:00:00 2001 From: Alexandru Costache Date: Mon, 23 Aug 2021 11:12:05 +0000 Subject: [PATCH 1/2] backends/extra-uEnv: Extend custom DTB support for Jetson TX2 NX We just added support for the TX2 NX, which supports u-boot thus allows for using custom device-trees. Let's allow for Jetson TX2 NX and future TX2 NX derived device types to have device-trees configurable from the dashboard. Change-type: patch Signed-off-by: Alexandru Costache --- src/config/backends/extra-uEnv.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/config/backends/extra-uEnv.ts b/src/config/backends/extra-uEnv.ts index 90f88fc3..6f1caa67 100644 --- a/src/config/backends/extra-uEnv.ts +++ b/src/config/backends/extra-uEnv.ts @@ -63,7 +63,8 @@ export class ExtraUEnv extends ConfigBackend { return ( (deviceType.endsWith('-nano') || deviceType.endsWith('-nano-emmc') || - deviceType.endsWith('-tx2')) && + deviceType.endsWith('-tx2') || + deviceType.includes('-tx2-nx')) && (await exists(ExtraUEnv.bootConfigPath)) ); } From 7693f490b488543100bafbe402e94e75741570a9 Mon Sep 17 00:00:00 2001 From: Alexandru Costache Date: Tue, 24 Aug 2021 07:13:52 +0000 Subject: [PATCH 2/2] test: Update extra_uEnv test slugs list We do this since we added for TX2 NX and derived device types. Signed-off-by: Alexandru Costache --- test/33-extra-uenv-config.spec.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/33-extra-uenv-config.spec.ts b/test/33-extra-uenv-config.spec.ts index 8dea5428..c5f9c9a9 100644 --- a/test/33-extra-uenv-config.spec.ts +++ b/test/33-extra-uenv-config.spec.ts @@ -267,4 +267,8 @@ const MATCH_TESTS = [ { type: 'asus-tinker-board', supported: false }, { type: 'nano-board', supported: false }, { type: 'tx2-tx2-device', supported: false }, + { type: 'jetson-tx2-nx-devkit', supported: true }, + { type: 'photon-tx2-nx', supported: true }, + { type: 'jetson-xavier-nx-devkit', supported: false }, + { type: 'photon-xavier-nx', supported: false }, ];