Skip to content

Commit

Permalink
patch: Update Jetson provisioning instructions to use Jetson Flash tool
Browse files Browse the repository at this point in the history
Signed-off-by: Vipul Gupta (@vipulgupta2048) <[email protected]>
  • Loading branch information
vipulgupta2048 committed Nov 20, 2024
1 parent d125d5d commit a1f6546
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 1 addition & 5 deletions src/models/balenaos-contract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,7 @@ export const BalenaOS: Contract = {
`{{{deviceType.partials.bootDevice}}} to boot the device.`,
],
jetsonFlash: [
`Put the device in recovery mode and connect to the host computer via USB`,
`{{#if deviceType.partials.jetsonNotes}}{{#each deviceType.partials.jetsonNotes}}{{{this}}} {{/each}}{{/if}}`,
`Unzip the {{name}} image and use the <a href="https://github.com/balena-os/jetson-flash">Jetson Flash tool</a> to flash the {{deviceType.name}}.`,
`Wait for writing of {{name}} to complete.`,
`{{{deviceType.partials.bootDevice}}} to boot the device.`,
`To provision {{deviceType.name}}, follow the instructions using our <a href="https://github.com/balena-os/jetson-flash/blob/master/docs/{{deviceType.slug}}.md">Jetson Flash tool</a> to make the process more streamlined.`,
],
usbMassStorage: [
`{{#each deviceType.partials.instructions}}{{{this}}}
Expand Down
6 changes: 6 additions & 0 deletions tests/integration/models/device-type.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,12 @@ describe('Device Type model', function () {
'Power up the Intel NUC to boot the device.',
],
],
[
'jetson-nano',
[
'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]) => {
it(`should get just the full instructions for installing BalenaOS for ${deviceTypeSlug} with templates strings resolved when passing the slug`, async function () {
Expand Down

0 comments on commit a1f6546

Please sign in to comment.