> **Sokil documentation pack**
> Language: English
> Station software: 20261126_usb_cameras
> UI build: c6b2dc620
> Generated: 2026-11-26
> Generated by the Sokil ground station UI from the documentation it ships. Download it again after every software update - the pack describes the version it was generated from.

<a id="sokil-flasher"></a>

# Sokil Flasher

**Summary:** Install Sokil Flasher on an Ubuntu laptop and flash with it - IPC cameras (Full Flash over UART, SysUpgrade over the network), the CRSF adapter and SFP reader, Luckfox boards and station SD cards - and what to check after each.

**Audience:** field integrators

Open in the UI: http://10.1.1.30/help/guides/sokil-flasher

Sokil Flasher is the program that puts Sokil onto hardware that does not run it yet, or has to be
brought back: an IPC camera board, the CRSF adapter and the SFP reader, a Luckfox board, and the
SD card of a Radxa 3 or Raspberry Pi station. It runs on your own laptop and you work it from a
browser on that same laptop. Once a device runs Sokil, its routine updates come from the station as
usual - the flasher is for the first install and for recovery.

It is a separate program from the station software, with its own installer and its own updates.

<a id="sokil-flasher--what-you-need"></a>

### What you need

- **A laptop with Ubuntu on an x86-64 (x64) processor.** That is the one system the flasher is
  built for: it runs as a system service with root rights, and the tools it carries are x64
  builds. It does not install on Windows, on a Mac or on a Raspberry Pi.
- **Sokil's station software on the same laptop** for the camera flows. A camera flash ends by
  installing Sokil's files on the camera with scripts that come with the station software, so
  install it first - [Sokil on the pilot's laptop](pilot-laptop.md#pilot-laptop). The CRSF adapter,
  the SFP reader, the Luckfox and the SD-card flows do not need it.
- **A wired Ethernet adapter** for the camera flows and for the Luckfox's network phase - the
  laptop's own port or a USB adapter. Wi-Fi adapters are never offered: the flasher hands out
  addresses on the wire it works on, and on Wi-Fi that used to give the laptop itself a camera's
  address.
- **A 3.3V USB-UART adapter** for a camera Full Flash (below).
- **A USB data cable** for the CRSF adapter, the SFP reader and the Luckfox. A charge-only cable
  connects nothing.
- **An SD card reader** - built in or on USB - for station cards.
- **Internet on the laptop** while you download firmware, and for camera activation. Wi-Fi is fine
  for that: the wired adapter is the one that talks to the device.

<a id="sokil-flasher--installing-it"></a>

### Installing it

The flasher is published on the Sokil update server. In the Sokil interface, open
[Help > Resources](http://10.1.1.30/help/resources) in admin mode: the **Sokil Flasher** card under
**Manufacturing and flashing** lists its releases. Download the newest one - a file named
`flasher_update.<version>.tar.gz` - onto the laptop, then in a terminal:

```bash
mkdir flasher && tar -xzf flasher_update.*.tar.gz -C flasher
cd flasher && sudo ./update.sh
```

Unpack it into an empty folder as shown: the archive holds its files at the top level, not in a
folder of their own. The installer puts the program in `/opt/sokil/sokil-flasher`, installs `curl`
and `unzip` from Ubuntu's packages if they are missing, and registers and starts the
`sokil-flasher` service, which starts again by itself after every reboot. It finishes with
**Sokil flasher update successful**. The package carries no firmware - the flasher downloads that
itself (below).

You install it once. Later versions come from inside the flasher (Updating the flasher, below), and
running `update.sh` of a newer package the same way does the same thing.

<a id="sokil-flasher--opening-it"></a>

### Opening it

- **In the station's menu**: with the station software on the same laptop and the Sokil interface
  opened at `http://127.0.0.1/` in admin mode, **Tools > Sokil Flasher** shows the flasher inside
  the Sokil window, with **Open in a new tab** beside it. The entry is there only while the flasher
  is running.
- **Straight in a browser** on that laptop: `http://127.0.0.1:8080/`.

The flasher answers only to a browser on the laptop it is installed on. Nothing else on the network
can reach it - it writes camera flash and whole disks - so the menu entry is missing when you open
the station from a tablet or another computer, or at the laptop's network address instead of
`127.0.0.1`. Sokil never relays it through the station.

If the page says **Server is not running or is unavailable**, start the service again:

```bash
sudo systemctl restart sokil-flasher
```

The flasher has its own language switch in its header and remembers the choice; it does not follow
the station's language.

<a id="sokil-flasher--the-screen"></a>

### The screen

- **The device tabs** at the top: **Camera**, **CRSF adapter**, **SFP reader**, **Luckfox**,
  **SD Card**. A camera then offers **Full Flash** or **SysUpgrade**, an SD card **Radxa 3** or
  **Raspberry Pi**.
- **The action card** under them names the next thing to do, carries the start button and lists
  the warnings that block a start. Before a start it shows what the run applies: **Firmware:** the
  version (and a camera's chip), **Config:** the file or _none_, and **Activation:** _on_ or _off_.
  **Firmware Library** is under the start button.
- **Sounds and the tab title** tell you when to look: a tone when the flasher needs your hands
  (power a camera on, hold BOOT, confirm erase/write), another when a run ends well or fails, and
  the browser tab reads **✔ Done**, **✖ Failed**, **⚠ Action needed** or the progress. The speaker
  button in the header (**Mute sounds**) turns the tones off.
- **Steps** below it: the progress bar and every step of the run, each _pending_, _running_,
  _done_, _failed_ or _skipped_. The running step shows how long it has run and, on a wait such as
  powering a camera on, how much time is left.
- **Logs** on the right, with **Copy logs** and a download of the run as a zip (the log, the UART
  capture and the state). Send that zip when you ask for help with a failed run.
- **Settings**, a panel that slides in from the left: the firmware, the UART adapter, the network
  interface, the config file and the full list of checks. The flasher picks all of these itself
  when there is one obvious choice, so you open Settings only to change one or to read why a check
  is red.

A config file is optional in every flow. It is a Sokil configuration saved from a station, and the
flasher puts it on the device at the end of the run, so the device comes up already set up.

<a id="sokil-flasher--the-network-adapter-it-borrows"></a>

### The network adapter it borrows

On a pilot's laptop the wired adapter the flasher needs is often the pilot's link to the station.
The flasher therefore borrows it and gives it back exactly as it found it:

- While the flasher's page is open with **Camera** or **Luckfox** selected, the adapter chosen in
  Settings is taken from Ubuntu's network manager and carries the camera networks: `10.1.1.50`,
  `192.168.1.2` and a route to `192.168.0.180`.
- A running flash, a camera search and the SysUpgrade pane hold it for as long as they need it, so
  closing the page mid-flash does not take the network away from the flash.
- Shortly after the page is closed, or at once when you stop the flasher, the adapter goes back to
  the network manager with its own settings.

So pick an adapter that is not your link to an aircraft you are flying, and close the flasher page
when you are done. The power button in the flasher's header (**Stop the flasher**) switches it off
altogether: it releases the adapter, stops looking for devices and refuses to flash until you start
it again, also after a reboot.

<a id="sokil-flasher--firmware"></a>

### Firmware

The flasher downloads firmware from the update server itself. When it has no firmware for the
device you picked, the action card offers the newest release - production first, otherwise the
newest beta or alpha with a warning - and downloads nothing until you press **Download**. The
flasher re-reads the release list each time its page or the **Firmware Library** opens; there is
nothing to refresh by hand. When the release channel shown in the Library has a version this
station does not have yet, the action card says so with a **Download** button, and the new version
becomes the one you flash once it is downloaded.

The action card names the firmware the next flash writes (**Firmware:** the version, and for a
camera its chip), with **change** to open Settings. There you pick the version first - the ones
on this station, newest first, then the ones you can still download - and, for a camera, the
**Camera** (its chip) inside that version. Switching version keeps the same camera.
**All versions and channels…** at the bottom of the version list opens the **Firmware Library**:
the full list for the selected device, filtered by release channel, with the installed releases
marked.

Every download is checked before the flasher will use it: its checksum against the server's, and
its signature against Sokil's release keys. A bad signature is refused outright; an old unsigned
release asks for a separate confirmation. Without internet the flasher says it could not reach
the update server; flashing what is already downloaded keeps working.

<a id="sokil-flasher--camera-full-flash"></a>

### Camera: Full Flash

Full Flash writes the whole camera flash through the camera's bootloader, over a UART adapter and
the network cable together. It is how a stock camera gets Sokil and how a camera that no longer
boots is recovered. It works on the four supported camera chips, in two families: **SSC338Q** and
**SSC30KQ**, the Infinity6E family ([IPC board guide](camera-wifi-ssc338q.md#camera-wifi-ssc338q)), and
**SSC377D** and **SSC378QE**, the Infinity6C family
([Infinity6C board guide](camera-wifi-infinity6c.md#camera-wifi-infinity6c)).

1. Pick **Camera > Full Flash**. Check in Settings that the firmware release, the **UART adapter**
   and the **Network interface** are the right ones.
2. Connect the USB-UART adapter to the camera's debug UART - adapter TX to camera RX, RX to TX,
   GND to GND, 3.3V logic, 115200 baud - and the camera's Ethernet to the laptop's wired adapter.
   Where the debug UART is on your board is in its camera guide. **Keep the camera powered off.**
3. Press **Flash** and confirm. When the flasher asks, power the camera on - the card shows how
   much time is left - and it stops the camera at its bootloader, checks which chip the camera has,
   and loads the firmware over the network.
4. **Confirm erase/write.** This is the one destructive step, and the flasher waits for your click.
   Confirm only with stable power, and do not power the camera off until the step finishes.
5. The flasher boots the camera, installs Sokil's files on it (**Install Sokil files**), activates
   it when an activation token is set, and applies the config file if one is selected.

The chip check stops a run before anything is written when the firmware is for the other chip
family (an Infinity6E image on an Infinity6C camera or the reverse) - pick the image for the
camera's chip (an MC800S5 takes SSC378QE). A different chip of the same family only logs a warning.
A stock bootloader that does not name its chip is still told apart by its family, so the wrong
family's image is refused the same way, and its own is flashed as usual. When it refuses, the card
names the camera's chip and offers **Switch to <chip> and flash again** with that chip's image from
the same version (or, when only the family is known, one button per chip of that family); the chip
check runs again on the new start.

For many cameras in a row, Settings has a **Production mode** switch that skips the start dialog
and the erase/write click when the chip check is clean; a **Production mode** badge in the header
shows it is on.

**After it**: a green **Camera flashed successfully** banner, and the camera answers at `10.1.1.40`
(or at the address the config file gives it). It is then a camera like any other: bind it and run
setup from the station. **Flash next** clears the screen and starts the next camera in one click;
**Start over** only clears the screen.

If a step fails, the card says what went wrong and what is safe. Up to the erase/write everything
is safe to retry. **If the flasher cannot confirm that the write succeeded - the card reads
"Flash write not confirmed" - do not power the camera off**: its
bootloader is still running, so leave every cable connected and press start again. When only the
install after the write failed, **Retry installation (no reflash)** repeats just that part.

<a id="sokil-flasher--camera-sysupgrade"></a>

### Camera: SysUpgrade

SysUpgrade replaces the firmware of a camera that already boots and answers on the network, with no
UART adapter: the flasher copies the new kernel and system to the camera over the cable and the
camera writes them itself.

1. Connect the camera to the laptop's wired adapter and power it.
2. Pick **Camera > SysUpgrade**. While this pane is open the flasher runs its own address server,
   so a camera that has just booted can be found at `10.1.1.40`.
3. Press **Find cameras** and choose the camera, or type its address: a Sokil camera is on
   `10.1.1.x`, a stock one on `192.168.1.x` or `192.168.0.180`.
4. **Root password** starts with the stock `12345`; change it only if the camera has another one.
   **Deploy after SysUpgrade** (on by default) installs Sokil's files and activates the camera
   after the upgrade; with it off the flasher only checks that the camera came back.
5. Press **SysUpgrade** and confirm (in production mode there is no dialog). Keep the camera
   powered and connected until the run ends.

A stock **RunCam WiFiLink Clone SSC377D** has a flash layout the Sokil release does not fit, and SysUpgrade
converts it first. That conversion asks for its own confirmation, because the camera rewrites
itself and there is no way back: keep its power on until it has rebooted into Sokil. If the
conversion fails after it has started writing, do not power it off - the camera then has to be
recovered with Full Flash, which needs a UART adapter.

If the camera never answers at the start, the card reads **The camera did not answer - nothing was
changed**: check the cable, its power and the address, and start again. When the upgrade itself
worked and only removing the password, installing Sokil's files or applying the config failed,
**Retry installation (no reflash)** repeats just that part on the same camera. Leave that camera
connected: if another camera answers instead, the card reads **Not the camera that was upgraded -
nothing was deployed**, and that camera needs its own SysUpgrade run.

**After it**: the camera has come back after its reboot, at `10.1.1.40` or where the new image puts
it. If it does not come back, give it a few more minutes powered before you run SysUpgrade again;
a camera that never returns is recovered with Full Flash.

<a id="sokil-flasher--crsf-adapter-and-sfp-reader"></a>

### CRSF adapter and SFP reader

Both are ESP32 boards flashed over USB alone - no UART adapter, network or confirmation step - and
a failed or interrupted flash only needs another one.

- **CRSF adapter**: plug it into the laptop with a USB data cable and press **Flash CRSF adapter**.
  No button on the board is needed; the flasher switches it into flashing mode itself. It detects
  which ESP32 chip the adapter has and writes the build made for it.
- **SFP reader**: hold the BOOT button on the board while you plug in the USB cable, keep it held
  for two seconds, then press **Flash SFP reader**.

The flasher picks the board's USB port by itself - an ESP32 board's own USB or its USB-serial chip
before any other adapter, so a camera's UART adapter left plugged in is not chosen - and the card
shows it as **Port:**. A port you pick in Settings stays picked while it is plugged in.

If a board does not answer, the flasher says so and keeps trying: replug the cable (on the SFP
reader with BOOT held). Unplug other USB-serial devices if you are unsure which port is which.

**After it**: the run ends with **Check the device boots** done - the CRSF adapter reports its new
version and chip over USB, the SFP reader its start-up text. A CRSF adapter already plugged into a
station is updated from the station instead, with no laptop
([Updating the adapter firmware](handset-crsf.md#handset-crsf--updating-the-adapter-firmware)).

<a id="sokil-flasher--luckfox"></a>

### Luckfox

The Luckfox flashes over its USB-C in Maskrom mode.

1. Pick **Luckfox**. Hold BOOT on the board, plug the USB-C cable into the laptop while holding it,
   then release BOOT - the board is now in Maskrom mode.
2. Press **Flash Luckfox**. You can also press it first and plug the board in afterwards: the
   flasher waits up to three minutes for it and counts the time down.
3. The write takes a few minutes. Do not unplug the cable; if it drops out anyway, nothing is
   damaged - put the board back into Maskrom and flash again.

A flash writes every partition, so it replaces everything on the board, its activation and settings
included ([Flashing the firmware](camera-wifi-luckfox.md#camera-wifi-luckfox--flashing-the-firmware) has what
to note down first).

When a config file is selected or an activation token is set, the run goes on over Ethernet: it asks
you to connect the board to the laptop's wired adapter and power it, waits for it at `10.1.1.40`,
activates it, and then applies the config. Without either, the run ends once the board has
restarted. If that Ethernet part fails after a good write, **Retry setup (no reflash)** repeats only
the activation and the config on the same board - no Maskrom and no new write.

**After it**: the board boots the new firmware and answers at `10.1.1.40` over Ethernet, or at the
address the config file gives it.

<a id="sokil-flasher--sd-cards-for-radxa-3-and-raspberry-pi-stations"></a>

### SD cards for Radxa 3 and Raspberry Pi stations

The flasher writes a station's system image onto an SD card - for a
[Raspberry Pi 5](gs-rpi5.md#gs-rpi5), a [Raspberry Pi 4](gs-rpi4.md#gs-rpi4) or a
[Radxa Zero 3](gs-radxa-radio-head.md#gs-radxa-radio-head).

1. Pick **SD Card** and the board: **Radxa 3** or **Raspberry Pi**. The images come from the
   Firmware Library like any other firmware.
2. Insert the card. Only removable disks are ever listed - the laptop's own disks never are - and a
   single card is selected by itself.
3. Press **Write SD card**. The confirmation names the exact disk: **everything on it is erased**,
   so read it before you confirm.

The image is small and grows to fill the card on the station's first boot. In Settings,
**Read back after writing** (off by default) reads the whole card back after the write and compares
it with the image. It takes one more full read of the card, and it is what catches a worn or
counterfeit card that reports a good write and then never boots.

**After it**: move the card to the station and boot it. With a config file selected, the station
starts with that configuration. If the read-back finds a difference, write the card again; if it
fails twice, use another card.

<a id="sokil-flasher--activation-token"></a>

### Activation token

Cameras and Luckfox boards can be activated at the end of their flash. Paste your activation token
in the **Activation** row of Settings and press **Save** - only its last four characters are shown
afterwards. Without a token the flash still works and the device comes up unactivated; you then
activate it from the station as usual. Activation needs internet on the laptop while the wired
adapter is on the camera network, so keep Wi-Fi connected.

<a id="sokil-flasher--updating-the-flasher"></a>

### Updating the flasher

The flasher checks for new versions of itself each time the page opens. When one is out on your
version's channel, a strip under the header says so: **Update** installs it, **What's new** opens the
update dialog with its notes, and **Not now** hides it until the page is opened again. The dialog
also opens from the version next to the flasher's title (an amber dot means a newer one is
published) and checks the server again each time. It lists the releases of every channel;
**Install** downloads one, checks it the same way as
firmware, installs it and restarts the flasher, and the page reconnects by itself. Installing an
older version is how you roll back. Updates wait while a flash runs, and flashes wait while an
update installs. Without internet, the bottom of the dialog takes a downloaded
`flasher_update.<version>.tar.gz` (with its `.minisig` file, to keep the signature check).

<a id="sokil-flasher--when-something-goes-wrong"></a>

### When something goes wrong

- **Every check and failure names its fix** on the card or in Settings: a UART adapter held by
  another program (the flasher offers to stop it), a missing firmware file, a busy port. After a
  failure, the start button tries again and **Start over** only clears the screen; where the device
  is already flashed, a **Retry ... (no reflash)** button repeats only the part that failed.
- **The logs**: download the run's zip from the Logs card. The flasher keeps the last 30 runs under
  `/opt/sokil/sokil-flasher/logs`.
- **The service**: `sudo systemctl status sokil-flasher` shows whether it runs and
  `sudo journalctl -u sokil-flasher -f` follows its output.
- **A restart never resumes a flash.** If the flasher restarts mid-run it says the previous run was
  interrupted. Do not power off a camera that stopped during erase/write - start again right away.

<a id="sokil-flasher--related-guides"></a>

### Related guides

- [Before you start](before-setup.md#before-setup) - what to have ready before the setup wizard.
- [Sokil on the pilot's laptop](pilot-laptop.md#pilot-laptop) - the station software the camera flows
  need.
- [WiFi camera on an IPC board](camera-wifi-ssc338q.md#camera-wifi-ssc338q),
  [WiFi camera on an Infinity6C board](camera-wifi-infinity6c.md#camera-wifi-infinity6c) and
  [WiFi camera on Luckfox](camera-wifi-luckfox.md#camera-wifi-luckfox) - the boards themselves.
