Skip to content

Commit

Permalink
Merge pull request #92 from balena-io-hardware/update_iot_gate_flashi…
Browse files Browse the repository at this point in the history
…ng_args

Update iot-gate-imx8plus flashing args, add iotdir-imx8p json files
  • Loading branch information
acostach authored Aug 1, 2024
2 parents e51f127 + 62a2f2a commit 017a0db
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 10 deletions.
5 changes: 2 additions & 3 deletions lib/flashing/devices/iot-gate-imx8plus-d1d8.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"type": "iot-gate",
"dram": "d1d8"
}
"type": "iot-gate"
}
5 changes: 2 additions & 3 deletions lib/flashing/devices/iot-gate-imx8plus.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{
"type": "iot-gate",
"dram": "d2d4"
}
"type": "iot-gate"
}
3 changes: 3 additions & 0 deletions lib/flashing/devices/iotdin-imx8p-d1d8.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"type": "iot-gate"
}
3 changes: 3 additions & 0 deletions lib/flashing/devices/iotdin-imx8p.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"type": "iot-gate"
}
6 changes: 2 additions & 4 deletions lib/flashing/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ async function flashJetson(filename: string, autoKit: Autokit, deviceType: strin

}

async function flashIotGate(filename: string, autoKit: Autokit, port: usbPort, dram: string){
async function flashIotGate(filename: string, autoKit: Autokit, port: usbPort){
const powerOnDelay = Number(process.env.CAP_DELAY) || 1000*60*5;

// ensure we have latest flasher tool
Expand Down Expand Up @@ -604,8 +604,6 @@ async function flashIotGate(filename: string, autoKit: Autokit, port: usbPort, d
[
'-a',
'armv7',
'-d',
dram,
'-i',
filename
],
Expand Down Expand Up @@ -675,7 +673,7 @@ async function flash(filename: string, deviceType: string, autoKit: Autokit, por
if(port === undefined){
throw new Error('No usb port specified!')
}
await flashIotGate(filename, autoKit, port, flashProcedure.dram)
await flashIotGate(filename, autoKit, port)
}
}
}
Expand Down

0 comments on commit 017a0db

Please sign in to comment.