Skip to content
This repository was archived by the owner on Jan 23, 2026. It is now read-only.

Commit 95fc593

Browse files
odraNickCao
andcommitted
corellium-driver
Co-authored-by: Nick Cao <nickcao@nichi.co> Signed-off-by: Leonardo Rossetti <lrossett@redhat.com>
1 parent 17b3b70 commit 95fc593

28 files changed

Lines changed: 1340 additions & 0 deletions
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# Corellium Jumpstarter Driver
2+
3+
A Jumpstarter driver that manages virtual devices in [Corellium](https://corellium.com).
4+
5+
It implements the following interfaces:
6+
7+
* PowerInterface
8+
9+
## Usage
10+
11+
Check the [examples folder](./examples) for example files.
12+
13+
### Config Exporter
14+
15+
You can run an exporter by running: `jmp exporter shell -c $file`:
16+
17+
```yml
18+
apiVersion: jumpstarter.dev/v1alpha1
19+
kind: ExporterConfig
20+
# endpoint and token are intentionally left empty
21+
metadata:
22+
namespace: default
23+
name: corellium-demo
24+
endpoint: ""
25+
token: ""
26+
export:
27+
rd1ae:
28+
type: jumpstarter_driver_corellium.driver.Corellium
29+
config:
30+
project_id: "778f00af-5e9b-40e6-8e7f-c4f14b632e9c"
31+
device_name: "jmp-rd1ae"
32+
device_flavor: "kronos"
33+
```
34+
35+
```yml
36+
apiVersion: jumpstarter.dev/v1alpha1
37+
kind: ExporterConfig
38+
# endpoint and token are intentionally left empty
39+
metadata:
40+
namespace: default
41+
name: corellium-demo
42+
endpoint: ""
43+
token: ""
44+
export:
45+
rd1ae:
46+
type: jumpstarter_driver_corellium.driver.Corellium
47+
config:
48+
project_id: "778f00af-5e9b-40e6-8e7f-c4f14b632e9c"
49+
device_name: "jmp-rd1ae"
50+
device_flavor: "kronos"
51+
device_os: "1.0"
52+
device_build: "Critical Application Monitor (Baremetal)"
53+
```
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
apiVersion: jumpstarter.dev/v1alpha1
2+
kind: ExporterConfig
3+
# endpoint and token are intentionally left empty
4+
metadata:
5+
namespace: default
6+
name: corellium-demo
7+
endpoint: ""
8+
token: ""
9+
export:
10+
rd1ae:
11+
type: jumpstarter_driver_corellium.driver.Corellium
12+
config:
13+
project_id: "778f00af-5e9b-40e6-8e7f-c4f14b632e9c"
14+
device_name: "jmp-rd1ae"
15+
device_flavor: "kronos"
16+
# optional
17+
device_os: "1.1.1"
18+
device_build: "Critical Application Monitor (Baremetal)"
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"error": "Invalid or missing authorization token",
3+
"errorID": "PermissionDenied",
4+
"originalError": "Invalid or missing authorization token"
5+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"id": "7f4f241c-821f-4219-905f-c3b50b0db5dd"
3+
}
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"error": "Unsupported device model",
3+
"errorID": "UserError",
4+
"field": "flavor"
5+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"error": "Instance with instanceId=7f4f241c-821f-4219-905f-c3b50b0db5dd not found",
3+
"errorID": "InstanceNotFound",
4+
"name": "Instance",
5+
"params": {
6+
"instanceId": "7f4f241c-821f-4219-905f-c3b50b0db5dd"
7+
}
8+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
on
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"error": "No instance associated with this value",
3+
"errorID": "UserError",
4+
"field": "InstanceId"
5+
}
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
[
2+
{
3+
"type": "iot",
4+
"name": "rpi4b",
5+
"flavor": "rpi4b",
6+
"description": "Raspberry Pi 4",
7+
"model": "rpi4b",
8+
"peripherals": false,
9+
"quotas": {
10+
"cores": 4,
11+
"cpus": 4
12+
}
13+
}
14+
]
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
[
2+
{
3+
"id": "d59db33d-27bd-4b22-878d-49e4758a648e",
4+
"name": "Default Project",
5+
"settings": {
6+
"internet-access": true,
7+
"dhcp": true
8+
},
9+
"quotas": {
10+
"cores": 30,
11+
"instances": 75,
12+
"ram": 184320
13+
},
14+
"quotasUsed": {
15+
"cores": 2,
16+
"instances": 7,
17+
"ram": 2048,
18+
"gpu": 0
19+
}
20+
},
21+
{
22+
"id": "e2fdb33c-37ae-4b22-878d-49e4758a51f0",
23+
"name": "OtherProject",
24+
"settings": {
25+
"internet-access": true,
26+
"dhcp": true
27+
},
28+
"quotas": {
29+
"cores": 30,
30+
"instances": 75,
31+
"ram": 184320
32+
},
33+
"quotasUsed": {
34+
"cores": 2,
35+
"instances": 7,
36+
"ram": 2048,
37+
"gpu": 0
38+
}
39+
}
40+
]

0 commit comments

Comments
 (0)