Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion os/image/rpi.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export async function setTryBootFlag(bool) {

export async function getBootedPartitionNumber() {
const { stdout } =
await $`fdtget /sys/firmware/fdt /chosen/bootloader partition`
await $`sudo fdtget /sys/firmware/fdt /chosen/bootloader partition`
const n = Number(stdout.trim())
if (!Number.isInteger(n)) throw new Error("Could not get booted partition")
return n
Expand Down
1 change: 0 additions & 1 deletion os/image/rpios.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

import assert from "node:assert"
import { basename, join } from "node:path"
import { fileURLToPath } from "node:url"
import { access, readFile, readlink } from "node:fs/promises"
import { once } from "node:events"

Expand Down
11 changes: 11 additions & 0 deletions os/pkos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,14 @@ sudo NODE_DEBUG=execa ./pkos.js create-bundle /dev/device B [version]
```

This will create a bundle from partitions `FIRMWARE_B` and `ROOT_B` on device `/dev/device`.

# remote

`remote` is a CLI to perform a clean install of PlanktoScope OS on the slot of a remote PlanktoScope and generated a bundle.

It's mostly helpful for CI/CD automation.

```sh
# On your computer
node remote.js --host=192.168.1.20 --bootname=B --version=2026.0.1-alpha.99
```
1 change: 1 addition & 0 deletions os/pkos/justfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
setup:
just --justfile ../../justfile install-node
npm ci --omit=dev
npm --prefix ../../lib ci --omit=dev
npm --prefix ../rauc ci --omit=dev
npm --prefix ../image ci --omit=dev
323 changes: 322 additions & 1 deletion os/pkos/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion os/pkos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
"private": true,
"type": "module",
"dependencies": {
"ini": "^7.0.0"
"ini": "^7.0.0",
"ora": "^9.4.1",
"shell-escape": "^0.2.0",
"ssh2": "^1.17.0"
}
}
Loading