Skip to content

Commit 20ba27c

Browse files
committed
Add updated linux instructions
1 parent 0e2bbc6 commit 20ba27c

File tree

1 file changed

+28
-6
lines changed

1 file changed

+28
-6
lines changed

Diff for: content/hardware/02.hero/boards/uno-wifi-rev2/tutorials/uno-wifi-rev-2/uno-wifi-r2-chromebook-installation/uno-wifi-r2-chromebook-installation.md

+28-6
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ software:
1818
1919
The [UNO WiFi Rev 2](https://store.arduino.cc/arduino-uno-wifi-rev2) is the connected version of the classic UNO board. If you are using a **Chromebook**, setting up your board is a bit different for this particular board:
2020

21-
- You will need to upgrade the firmware using either a **Windows/Mac** computer, prior to programming it via a Chromebook. Detailed instructions are provided in this tutorial, and the process only takes a few minutes!
21+
- You will need to upgrade the firmware using either a **Windows/Mac/Linux** computer, prior to programming it via a Chromebook. Detailed instructions are provided in this tutorial, and the process only takes a few minutes!
2222
- It is only possible to use the [Web Editor](https://create.arduino.cc/editor), an online IDE that is part of the [Arduino Cloud](https://cloud.arduino.cc/).
2323

2424
***Note that only the Web Editor is supported in Chromebooks. It is not possible to configure and upload to UNO WiFi Rev 2 boards via the [IoT Cloud](https://create.arduino.cc/iot/things).***
@@ -42,23 +42,23 @@ The goals of this project are:
4242

4343
## Upgrading Firmware
4444

45-
Since Chromebooks cannot run executables, the firmware upgrade for the UNO WiFi Rev 2 needs to be done through a computer with the Windows/Mac OS installed.
45+
Since Chromebooks cannot run executables, the firmware upgrade for the UNO WiFi Rev 2 needs to be done through a Windows/Mac/Linux computer.
4646

4747
**1.** Make sure you have installed [Arduino IDE 1.8.X](https://www.arduino.cc/en/software).
4848

4949
**2.** Download the [optiboot_atmega4.hex](/resources/firmware/optiboot_atmega4809.hex) file, and move it to your **Desktop folder**.
5050

5151
![.hex file in your Desktop folder.](assets/hex-file-desktop.png)
5252

53-
**3.** Open your Command Prompt (Windows) or Terminal (Mac), copy paste the command for your OS from the snippets below.
53+
**3.** Open your Command Prompt (Windows) or Terminal (Mac/Linux), copy paste the command for your OS from the snippets below.
5454

55-
### Mac Command
55+
### Mac
5656

5757
```
5858
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude -C /Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf -v -patmega4809 -cxplainedmini_updi -Pusb -b115200 -e -D -Ufuse2:w:0x01:m -Ufuse5:w:0xC9:m -Ufuse8:w:0x02:m -Uflash:w:/Users/$(whoami)/Desktop/optiboot_atmega4809.hex:i
5959
```
6060

61-
### Windows Command
61+
### Windows
6262

6363
```
6464
"C:/Program Files (x86)/Arduino/hardware/tools/avr/bin/avrdude.exe" -C "C:/Program Files (x86)/Arduino/hardware/tools/avr/etc/avrdude.conf" -v -patmega4809 -cxplainedmini_updi -Pusb -b115200 -e -D -Ufuse2:w:0x01:m -Ufuse5:w:0xC9:m -Ufuse8:w:0x02:m -Uflash:w:%userprofile%\Desktop\optiboot_atmega4809.hex:i
@@ -70,6 +70,22 @@ Since Chromebooks cannot run executables, the firmware upgrade for the UNO WiFi
7070

7171
**5.** Now that your firmware is upgraded, you should see your board blinking (1 second off, followed by a quick blink). This is another proof that it was successful. You can now disconnect your board, and **plug it into your Chromebook.**
7272

73+
## Linux
74+
75+
In the terminal, navigate to your root directory.
76+
77+
```
78+
cd /
79+
```
80+
81+
Then, run the following command:
82+
83+
```
84+
home/$(whoami)/Downloads/arduino-1.8.19-linux64/arduino-1.8.19/hardware/tools/avr/bin/avrdude -C home/$(whoami)/Downloads/arduino-1.8.19-linux64/arduino-1.8.19/hardware/tools/avr/etc/avrdude.conf -v -patmega4809 -cxplainedmini_updi -Pusb -b115200 -e -D -Ufuse2:w:0x01:m -Ufuse5:w:0xC9:m -Ufuse8:w:0x02:m -Uflash:w:/home/$(whoami)/Desktop/optiboot_atmega4809.hex:i
85+
```
86+
87+
***Please note that on Linux, the path to the AVRDUDE tool may vary.***
88+
7389
### Check AVRDUDE Installation
7490

7591
The above commands utilizes a tool called **AVRDUDE**, which is included in each version of the IDE. To check whether it is accessible on your computer, you can run the following commands.
@@ -86,12 +102,18 @@ The above commands utilizes a tool called **AVRDUDE**, which is included in each
86102
/Applications/Arduino.app/Contents/Java/hardware/tools/avr/bin/avrdude
87103
```
88104

105+
**Linux:**
106+
107+
```
108+
/home/$(whoami)/Downloads/arduino-1.8.19-linux64/arduino-1.8.19/hardware/tools/avr/bin/avrdude
109+
```
110+
89111
### Troubleshoot
90112

91113
If the command fails to upgrade the firmware, please make sure that:
92114

93115
- Arduino IDE / AVRDUDE is installed.
94-
- That you are using a Windows/Mac machine (remember, this cannot be performed on a Chromebook).
116+
- That you are using a Windows/Mac/Linux computer (remember, this cannot be performed on a Chromebook).
95117
- That you have the `.hex` file in the Desktop folder. The command is written to look for it in that specific folder, so if it is not present, it will not work.
96118

97119
## Install Arduino App (Chrome Store)

0 commit comments

Comments
 (0)