Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/balena-os/iot-gate-imx8plus-flashtools
Container scripts for flashing Compulab IOT-GATE-iMX8PLUS with BalenaOS
https://github.com/balena-os/iot-gate-imx8plus-flashtools
Last synced: about 1 month ago
JSON representation
Container scripts for flashing Compulab IOT-GATE-iMX8PLUS with BalenaOS
- Host: GitHub
- URL: https://github.com/balena-os/iot-gate-imx8plus-flashtools
- Owner: balena-os
- Created: 2023-12-13T14:10:16.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-06T16:09:29.000Z (about 2 months ago)
- Last Synced: 2024-11-06T17:22:38.655Z (about 2 months ago)
- Language: Shell
- Size: 1.13 MB
- Stars: 2
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# IOT-GATE-iMX8PLUS/IOTDIN-IMX8P flashing tools
The scripts in this directory allow simplified provisioning of balenaOS images for the following device types:
|Device | Balena device name |
|-------|--------------------|
|IOT-GATE-iMX8PLUS 1GB DRAM | Compulab IOT-GATE-iMX8PLUS 1GB-8GB |
|IOT-GATE-iMX8PLUS 2GB DRAM | Compulab IOT-GATE-iMX8PLUS 2GB-4GB |
|IOT-GATE-iMX8PLUS 4GB DRAM | Compulab IOT-GATE-iMX8PLUS 2GB-4GB |
|IOT-GATE-iMX8PLUS 8GB DRAM | Compulab IOT-GATE-iMX8PLUS 1GB-8GB |
|IOTDIN-IMX8P 1GB DRAM | Compulab IOTDIN-IMX8P 1GB-8GB |
|IOTDIN-IMX8P 2GB DRAM | Compulab IOTDIN-IMX8P 2GB-4GB |
|IOTDIN-IMX8P 4GB DRAM | Compulab IOTDIN-IMX8P 2GB-4GB |
|IOTDIN-IMX8P 8GB DRAM | Compulab IOTDIN-IMX8P 1GB-8GB |## About
These tools run a Docker container to unpack u-boot from the specified balenaOS image and provision both this bootloader and the OS image to
a device connected to your HOST.## Required software
A Linux-based host with Docker installed is required. The scripts in this directory have been tested on Ubuntu 22.04.
## How to use
Please follow the steps below to enter Recovery mode and perform provisioning of your Compulab IOT device with balenaOS
### Recovery mode
Make sure your IOT device is not powered. Connect the microUSB port labeled 'PROG" from your IOT device to your Host PC.
Apply power to the device. The green LED located on the front of the device should light up. `lsusb` should show a device similar to:
```
$ lsusb | grep NXP
Bus 001 Device 012: ID 1fc9:0146 NXP Semiconductors SE Blank 865
```or
```
root@5ea9a9133c3a:/usr/src/app# lsusb | grep NXP
Bus 001 Device 012: ID 1fc9:0146 NXP Semiconductors
```Check the RAM size option of your device and ensure you have downloaded and unzipped the balenaOS image which corresponds to your board's DRAM configuration.
Using an image that does not match the device dram configuration may result in an un-bootable device. In such cases, the provisioning process will need to be re-started with the correct balenaOS image configuration.### Provisioning
These scripts offer two options for provisioning the device:
a) Building, running the container and provisioning the device in one step:
```
$ ./run_container.sh -i /home//images/
```NOTE: The absolute path to the images needs to be passed to the script. Please replace and with the actual path and image you intend to use.
b) Running the container and triggering provisioning from the container's command line.
First, create a directory named `images` in your home directory:
```
$ mkdir ~/images
```Place the unzipped balenaOS image inside `~/images/`. This because the directory will be bind-mounted inside the container in `/data/images/`.
Proceed to build and run the container:
```
$ ./run_container.sh
```Once the container image starts running, you can start provisioning using:
```
root@5ea9a9133c3a:/usr/src/app# ./flash_iot.sh -i /data/images/
```By default the container image is built to run on x86 hosts. If you would like to build and run the container image on an armv7 device, please use `./run_container.sh -a armv7 ...`.
The same, aarch64 devices can build and run the container by running `./run_container.sh -a aarch64 ...`. The `aarch64` configuration is reported to work from Ubuntu in Parallels on Apple M3 Sillicon.### Support
If you are having problems using these scripts, please [raise an issue](https://github.com/balena-os/iot-gate-imx8plus-flashtools/issues) on GitHub and the balena.io team will be happy to help.