Skip to content

Commit c23a905

Browse files
committed
change balena
1 parent 591a1a8 commit c23a905

File tree

1 file changed

+44
-10
lines changed

1 file changed

+44
-10
lines changed

docs/Edge/Raspberry_Pi_Devices/reComputer_R1000/Applications/recomputer_r1000_balena.md

Lines changed: 44 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Before you start this project, you may need to prepare your hardware and softwar
4949
* [balenaEtcher](https://etcher.balena.io/) to flash the CM4 memory.
5050

5151

52-
## Hardware Configuration
52+
### Hardware Configuration
5353

5454
**Step 1**: You need to set the switch on the side of the R1000 to boot mode, then power on the device
5555

@@ -66,36 +66,70 @@ Before you start this project, you may need to prepare your hardware and softwar
6666

6767
<div align="center"><img src="https://files.seeedstudio.com/wiki/reComputer-R1000/balena/type-cport.png" alt="pir" width="250" height="auto" /></div>
6868

69-
## Image File Acquisition
69+
### Image File Acquisition
7070

71-
**Step 1**: Go to balenaCloud, create a free account, and then create a fleet for your Raspberry pi 4 or CM4 device
71+
**Step 1**: Go to balenaCloud, create a free account, and then create a fleet,Default device type choose `Raspberry Pi CM4 IO Board`
7272

73-
<div align="center"><img src="https://files.seeedstudio.com/wiki/reComputer-R1000/balena/createfleet.gif" alt="pir" width="700" height="auto" /></div>
73+
<div align="center"><img src="https://files.seeedstudio.com/wiki/reComputer-R1000/balena/create_fleet.gif" alt="pir" width="700" height="auto" /></div>
7474

7575
**Step 2**: Click "Add device", select the version information and configuration information you want, and then download the balenaOS image file in the lower right corner.
7676

77-
<div align="center"><img src="https://files.seeedstudio.com/wiki/reComputer-R1000/balena/Downloadimage.gif" alt="pir" width="700" height="auto" /></div>
77+
<div align="center"><img src="https://files.seeedstudio.com/wiki/reComputer-R1000/balena/dowload_img.gif" alt="pir" width="700" height="auto" /></div>
7878

7979
:::note
8080
It is recommended to download the balenaOS image file first and then burn it. If you directly click "Flash" in the lower right corner of the window to burn it, it may fail to burn.
8181
:::
8282

83-
## Steps for Flashing balena OS
83+
### Steps for Flashing balena OS
8484

8585
**Step 1**: Open the [**rpiboot**](https://github.com/raspberrypi/usbboot/raw/master/win32/rpiboot_setup.exe) software, and then the system will show the new disk
8686

8787
**Step 2**: Open the flash tool [balenaEtcher](https://etcher.balena.io/), select the previously downloaded balena image file, then select the target disk, and finally click Burn.
8888

89-
<div align="center"><img src="https://files.seeedstudio.com/wiki/reComputer-R1000/balena/Burn.gif" alt="pir" width="700" height="auto" /></div>
89+
<div align="center"><img src="https://files.seeedstudio.com/wiki/reComputer-R1000/balena/burn_image.gif" alt="pir" width="700" height="auto" /></div>
9090

9191

92-
**Step 3**: After the flashing is completed, set the reComputer R1000 DIP switch to normal mode, then power on again. After a while, you can see the new device has been added successfully on balenaCloud.
92+
### Change Configure
93+
**Step 1**:Copy the [reComputer-R100x.dtbo](https://files.seeedstudio.com/wiki/reComputer-R1000/balena/reComputer-R100x.dtbo) file to the `resin-boot => overlays` folder
9394

94-
<div align="center"><img src="https://files.seeedstudio.com/wiki/reComputer-R1000/balena/online.png" alt="pir" width="700" height="auto" /></div>
95+
<div align="center"><img src="https://files.seeedstudio.com/wiki/reComputer-R1000/balena/dtbo_file.png" alt="pir" width="700" height="auto" /></div>
9596

96-
You can see that the online status of the device is `Online (Heartbeat only)`. This is due to the firewall restrictions in my area. If you have the same problem, you can connect a VPN to the device so that it can be displayed normally` Online`.
97+
**Step 2**:Add the following content to the `config.txt` file:
98+
```shell
99+
dtparam=i2c_arm=on
100+
dtoverlay=i2c1,pins_44_45
101+
dtoverlay=i2c3,pins_2_3
102+
dtoverlay=i2c6,pins_22_23
103+
dtoverlay=audremap,pins_18_19
104+
dtoverlay=reComputer-R100x,uart2
105+
```
97106

107+
<div align="center"><img src="https://files.seeedstudio.com/wiki/reComputer-R1000/balena/change_config.png" alt="pir" width="700" height="auto" /></div>
98108

109+
**Step 3**:Set the reComputer R1000 DIP switch to normal mode, then power on again. After a while, you can see the new device has been added successfully on balenaCloud.
110+
111+
<div align="center"><img src="https://files.seeedstudio.com/wiki/reComputer-R1000/balena/device_online.png" alt="pir" width="700" height="auto" /></div>
112+
113+
If the device is `Online (Heartbeat only)`. This is due to the firewall restrictions in my area. If you have the same problem, you can connect a VPN to the device so that it can be displayed normally`Online`.
114+
115+
116+
### Deployment test
117+
**Step 1**:Enter the following command to download the resources and deploy them:
118+
```shell
119+
balena login
120+
git clone https://github.com/mpous/seeed-recomputer-r100x.git
121+
cd seeed-recomputer-r100x
122+
balena push recomputerR1000
123+
```
124+
<div align="center"><img src="https://files.seeedstudio.com/wiki/reComputer-R1000/balena/push_program.png" alt="pir" width="700" height="auto" /></div>
125+
126+
<div align="center"><img src="https://files.seeedstudio.com/wiki/reComputer-R1000/balena/updating_two.png" alt="pir" width="700" height="auto" /></div>
127+
128+
**Step 2**:After the deployment is completed, a unicorn will appear on the terminal and the status of all services will change to `Running`.
129+
130+
<div align="center"><img src="https://files.seeedstudio.com/wiki/reComputer-R1000/balena/unicorn.png" alt="pir" width="700" height="auto" /></div>
131+
132+
<div align="center"><img src="https://files.seeedstudio.com/wiki/reComputer-R1000/balena/Deployment_Complete.png" alt="pir" width="700" height="auto" /></div>
99133

100134
## Tech Support & Product Discussion
101135

0 commit comments

Comments
 (0)