# TRIK controller firmware

Choose your operating system:

* [Windows](#windows)
* [Linux](#linux)
* [Ubuntu](#ubuntu)

## Windows

1\. Download the latest [firmware image](https://trikset.com/en/downloads#firmware).\
2\. Download and install [DiskImager](https://github.com/RomanBelkov/DiskImager/releases/download/1.4.1/DiskImager.Installer.msi).&#x20;

![Installing DiskImager](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-M51ucRomsphCcfqMoCY%2F-M524aETQlUxr1Ga1Uot%2FdiskImager-install%203.gif?alt=media\&token=8bbdf91d-592d-4725-a8ec-15f82e021c81)

{% hint style="warning" %}
**Attention!** You will need administrator permissions to install and use DiskImager.
{% endhint %}

3\. Remove the microSD card from the TRIK controller.\
4\. Insert it into your computer using a card reader.\
5\. Start DiskImager. To change the language, select `About → Language` in the menu.

![](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-MSiWlgsPVfdNpcnv4GY%2F-MSiXGpsYyTMwP_MA2TZ%2F72%202%20En%20diskImager%20lang%202.png?alt=media\&token=61d10efc-c58e-4a1b-8c53-0b1c8d46c8db)

6\. Select the disc letter to write.

![](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-MSiWlgsPVfdNpcnv4GY%2F-MSiXNZcXYm2O_pfAubM%2F72%203%20En%20diskimager%20disk%202.png?alt=media\&token=8a4013ba-fcbf-40c8-8bb1-0f77a180f690)

&#x20;7\. Click the «Restore drives from» button.

![](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-MSiWlgsPVfdNpcnv4GY%2F-MSiZPVlGVyNET_rfGtj%2F72%204%20En%20diskimager%20disk.png?alt=media\&token=08a88cdf-ec4c-49d1-b194-f27283cde13e)

8\. In the window that appears, filter the files by type `.xz` and select the downloaded file.

![](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-MSiWlgsPVfdNpcnv4GY%2F-MSiZUAHznPGkurVM30E%2F72%205%20En%20diskimager%202.png?alt=media\&token=47b866f5-6713-44ac-9357-bc4564e7dbc0)

9\. Click "Open".

![](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-MSiWlgsPVfdNpcnv4GY%2F-MSiZddVuaU_88u9HQ10%2F72%206%20En%20diskimager.png?alt=media\&token=bd0e95f7-8427-43b8-91d7-70650ce2e2cb)

10\. Wait for the operation to complete.

![](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-MSiWlgsPVfdNpcnv4GY%2F-MSiZmO5vQ_zpogJ-NfE%2F72%207%20En%20diskimager%202.png?alt=media\&token=0127b93a-5f4e-45d5-9dee-06569cd3c70e)

&#x20;   &#x20;

## Linux

1\. Download the latest [firmware image](https://trikset.com/en/downloads#firmware).\
2\. Remove the microSD card from the TRIK controller.\
3\. Insert it into your computer using a card reader.\
4\. If the SD card has the correct partition table (the first partition is at least 2 GB, ext4 file system), then go to step 18.\
5\. Get superuser (root) rights:

```
sudo -i
```

6\. Look at the devices that are currently connected to the computer:

```
fdisk -l
```

7\. Unmount all SD card partitions using the `umount` command.

```
umount /dev/{first SD card partition}
umount /dev/{second SD card partition}
...
```

Example:

```
umount /dev/sdb1
```

8\. Select the inserted microSD card:

```
fdisk /dev/{device}
```

Example:

```
fdisk /dev/sdb
```

9\. View the current partition table using the `p` command.

```
p
```

10\. Remove any existing partitions using the `d` command.

```
d
```

11\. Make sure all partitions are removed:

```
p
```

12\. Create a new partition using the `n` command.

```
n
```

13\. Leave all parameters, except the size, by default - press Enter. Specify `+2G` for the query “Last sector, + sectors or + size {K, M, G}”.

```
Command (m for help): n
Partition type:
     p     primary (0 primary, 0 extended, 4 free)
     e     extended
Select (default p):
Partition number (1-4, default 1):
First sector (4096-784932712):
Last sector, +sectors or +size{K,M,G}: +2G
```

14\. Create a partition on the remainder of the SD card using the `n` command. Leave all parameters as default.

```
Command (m for help): n
Partition type:
     p     primary (0 primary, 0 extended, 4 free)
     e     extended
Select (default p):
Partition number (1-4, default 1):
First sector (4096-784932712):
Last sector, +sectors or +size{K,M,G}:
```

15\. Check with the `p` command what happened.

```
p
```

16\. Apply changes using the `w` command.

```
w
```

17\. Format partitions with `mkfs.ext4` commands.

```
mkfs.ext4 /dev/{раздел}
```

Example:

```
mkfs.ext4 /dev/sdb1
mkfs.ext4 /dev/sdb2
```

18\. Unmount the first partition using the `umount` command.

```
sudo umount /dev/{first partition}
```

Example:

```
sudo umount /dev/sdb1
```

19\. Unpack the downloaded firmware image using the Archive Manager.\
20\. Copy the unpacked image to the SD card using the `dd` command.

```
sudo dd bs=4M if=trik-base-v2-trikboard.ext4 of=/dev/{first partion}
```

Example:

```
sudo dd bs=4M if=trik-base-v2-trikboard.ext4 of=/dev/sdb1
```

## Ubuntu

{% hint style="info" %}
Instructions for version 14.04 and older.
{% endhint %}

1\. Download the latest [firmware image](https://trikset.com/en/downloads#firmware).\
2\. Remove the microSD card from the TRIK controller.\
3\. Insert it into your computer using a card reader.\
4\. Open the location of the downloaded firmware image in the file manager.\
5\. Call the context menu by right-clicking on the archive and select the first item "Open" in" Create bootable disk ".\
6\. From the drop-down menu, select the drive to which you want to burn the firmware. Then click the "Start Recovery" button.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.trikset.com/en/trik/firmware.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
