Skip to content

Commit 8a542e5

Browse files
committed
cleanup docs
1 parent 94e7db3 commit 8a542e5

File tree

2 files changed

+79
-55
lines changed

2 files changed

+79
-55
lines changed

README.md

Lines changed: 5 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -6,28 +6,13 @@ This repository contains instructions and scripts for flashing your Jetson **Ori
66

77
## Prebuilt Images (Recommended)
88

9-
Prebuilt flash packages are available on the [Releases page](https://github.com/ARK-Electronics/ark_jetson_kernel/releases). These are self-contained — no build tools or kernel source needed.
9+
Prebuilt flash packages are available on the [Releases page](https://github.com/ARK-Electronics/ark_jetson_kernel/releases). No build tools or kernel source needed — download and flash:
1010

11-
### Quick Start
12-
13-
1. Download the `.tar.gz` for your carrier board from the latest release
14-
2. Connect a micro USB cable to the Jetson and power on with the **Force Recovery** button held
15-
3. Run the flash script:
16-
```
17-
./flash_from_package.sh ark-pab-v3-nvme-super-v1.0.0.tar.gz
18-
```
19-
20-
The script will extract the package, detect the Jetson, and flash it. Once complete:
2111
```
22-
ssh jetson@jetson.local
12+
./flash_from_package.sh <package.tar.gz>
2313
```
2414

25-
### Split packages
26-
27-
If the download was split into multiple parts (files ending in `.part.*`), pass the directory:
28-
```
29-
./flash_from_package.sh ark-pab-v3-nvme-super-v1.0.0_split/
30-
```
15+
See [packaging.md](packaging.md) for full details on generating, testing, and publishing flash packages.
3116

3217
## Building from Source
3318

@@ -89,44 +74,9 @@ Once complete, SSH in via Micro USB or WiFi.
8974
ssh jetson@jetson.local
9075
```
9176

92-
### 5. Generate Flash Package (optional)
93-
94-
After building, you can generate a self-contained flash package (`.tar.gz`) that can be used to flash Jetsons without any build tools or kernel source. The package includes DTBs for all module variants and the correct one is selected automatically at flash time.
95-
96-
```
97-
./generate_flash_package.sh
98-
```
99-
100-
The output is saved to the project root, e.g. `ark-pab-v3-nvme-super-v1.0.0.tar.gz`. The version comes from the current git tag, or `dev` if untagged.
101-
102-
#### Options
103-
104-
| Flag | Description |
105-
|------|-------------|
106-
| `--sdcard` | Generate a package for SD card instead of NVMe |
107-
| `--no-super` | Target the non-super module variant |
108-
109-
```
110-
# Generate for SD card
111-
./generate_flash_package.sh --sdcard
112-
113-
# Non-super module variant
114-
./generate_flash_package.sh --no-super
115-
```
116-
117-
If the package exceeds 2GB (the GitHub Releases per-file limit), it is automatically split into parts in a `_split/` directory with a `reassemble.sh` script included.
118-
119-
#### Publishing a release
77+
### 5. Generate & Publish Flash Package (optional)
12078

121-
```
122-
git tag -a v1.0.0 -m "ARK Carrier Board Image v1.0.0"
123-
git push origin v1.0.0
124-
125-
gh release create v1.0.0 \
126-
--title "v1.0.0" \
127-
--notes "Release notes here" \
128-
ark-pab-v3-nvme-super-v1.0.0.tar.gz
129-
```
79+
See [packaging.md](packaging.md) for how to generate distributable flash packages and publish them to GitHub Releases.
13080

13181
### 6. Install ARK Software (optional)
13282
You can now optionally install the ARK software packages, which provide handy tools for working with the Jetson on an ARK carrier.

packaging.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# Flash Package Generation & Distribution
2+
3+
This document covers how to generate self-contained flash packages and publish them to GitHub Releases. Customers can then flash a Jetson without cloning the repo or building from source.
4+
5+
## Generating a Flash Package
6+
7+
After running `build_kernel.sh`, generate a flash package:
8+
9+
```
10+
./generate_flash_package.sh
11+
```
12+
13+
No Jetson needs to be connected. The package includes DTBs for all module variants (Orin Nano 4GB/8GB, Orin NX 8GB/16GB) — the correct one is selected automatically at flash time.
14+
15+
The output is saved to the project root, e.g. `ark-pab-v3-nvme-super-dev.tar.gz`. The filename includes `dev` if the current commit isn't tagged.
16+
17+
### Options
18+
19+
| Flag | Description |
20+
|------|-------------|
21+
| `--sdcard` | Generate a package for SD card instead of NVMe |
22+
| `--no-super` | Target the non-super module variant |
23+
24+
```
25+
# Generate for SD card
26+
./generate_flash_package.sh --sdcard
27+
28+
# Non-super module variant
29+
./generate_flash_package.sh --no-super
30+
```
31+
32+
### Output
33+
34+
If the package is under 2GB, you get a single `.tar.gz`. If it exceeds 2GB (the GitHub Releases per-file limit), it is automatically split into 1.9GB parts in a `_split/` directory with a `reassemble.sh` script included.
35+
36+
## Publishing a Release
37+
38+
After generating and testing the flash package:
39+
40+
```
41+
./publish_release.sh v1.0.0
42+
```
43+
44+
This script:
45+
1. Renames the `*-dev*` tarball/split directory with the version
46+
2. Creates a git tag and pushes it
47+
3. Creates a GitHub Release and uploads the files
48+
49+
Requires the [GitHub CLI](https://cli.github.com/) (`gh`). Install with `sudo apt install gh` and authenticate with `gh auth login`.
50+
51+
## Flashing from a Package
52+
53+
Customers download the package from the [Releases page](https://github.com/ARK-Electronics/ark_jetson_kernel/releases) and run:
54+
55+
```
56+
./flash_from_package.sh ark-pab-v3-nvme-super-v1.0.0.tar.gz
57+
```
58+
59+
Or if the package was split:
60+
61+
```
62+
./flash_from_package.sh ark-pab-v3-nvme-super-v1.0.0_split/
63+
```
64+
65+
The script extracts the package, waits for a Jetson in recovery mode, and flashes it. No build tools or kernel source needed — just a Linux host with USB.
66+
67+
## Workflow Summary
68+
69+
```
70+
./build_kernel.sh # build the kernel
71+
./generate_flash_package.sh # generate ark-*-dev.tar.gz / _split
72+
# ... test the package on a Jetson ...
73+
./publish_release.sh v1.0.0 # tag, rename, upload to GitHub Releases
74+
```

0 commit comments

Comments
 (0)