Skip to content

Commit

Permalink
prettify
Browse files Browse the repository at this point in the history
Signed-off-by: Vipul Gupta (@vipulgupta2048) <[email protected]>
  • Loading branch information
vipulgupta2048 committed Dec 18, 2024
1 parent 9fb7f00 commit 205a7bb
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/models/balenaos-contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ export const BalenaOS: Contract = {
`{{{deviceType.partials.bootDevice}}} to boot the device.`,
],
externalFlash: [
`{{#each deviceType.partials.instructions}}{{{this}}} {{/each}}`,
`Insert the {{resolveContractAlias deviceType.data.media.altBoot.[0]}} to the host machine.`,
`Write the {{name}} file you downloaded to the {{resolveContractAlias deviceType.data.media.altBoot.[0]}}. We recommend using <a href="https://etcher.balena.io/">Etcher</a>.`,
`Wait for writing of {{name}} to complete.`,
Expand Down
2 changes: 1 addition & 1 deletion src/models/device-type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ const getDeviceTypeModel = function (deps: InjectedDependenciesParam) {
},
partials: {
instructions: [
'For balenaOS versions v6.1.16 and newer, please ensure your device is running UEFI firmware version 36.3. Check and update the <a href="https://docs.balena.io/learn/develop/hardware/jetson-orin#provisioning-jetson-orin">firmware version</a> before proceeding.',
'BROOO THIS IS NEW. For balenaOS versions v6.1.16 and newer, please ensure your device is running UEFI firmware version 36.3. Check and update the <a href="https://docs.balena.io/learn/develop/hardware/jetson-orin#provisioning-jetson-orin">firmware version</a> before proceeding.',
'For balenaOS versions older than v6.1.16, please refer to the <a href="https://github.com/balena-os/jetson-flash?tab=readme-ov-file">{{name}} legacy flashing</a> guide.',
],
bootDeviceExternal: [
Expand Down
16 changes: 16 additions & 0 deletions tests/integration/models/device-type.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,22 @@ describe('Device Type model', function () {
[
'To provision Nvidia Jetson Nano SD-CARD, follow the instructions using our <a href="https://github.com/balena-os/jetson-flash/blob/master/docs/jetson-nano.md">Jetson Flash tool</a> to make the process more streamlined.',
],
'jetson-agx-orin-devkit-64gb',
[
'To provision Nvidia Jetson Nano SD-CARD, follow the instructions using our <a href="https://github.com/balena-os/jetson-flash/blob/master/docs/jetson-nano.md">Jetson Flash tool</a> to make the process more streamlined.',
],
'jetson-orin-nano-seeed-j3010',
[
'To provision Nvidia Jetson Nano SD-CARD, follow the instructions using our <a href="https://github.com/balena-os/jetson-flash/blob/master/docs/jetson-nano.md">Jetson Flash tool</a> to make the process more streamlined.',
],
'jetson-orin-nx-xavier-nx-devkit',
[
'To provision Nvidia Jetson Nano SD-CARD, follow the instructions using our <a href="https://github.com/balena-os/jetson-flash/blob/master/docs/jetson-nano.md">Jetson Flash tool</a> to make the process more streamlined.',
],
'jetson-orin-nx-seeed-j4012',
[
'To provision Nvidia Jetson Nano SD-CARD, follow the instructions using our <a href="https://github.com/balena-os/jetson-flash/blob/master/docs/jetson-nano.md">Jetson Flash tool</a> to make the process more streamlined.',
],
],
] as const
).forEach(([deviceTypeSlug, instructions]) => {
Expand Down

0 comments on commit 205a7bb

Please sign in to comment.