Skip to content

Commit 86faa81

Browse files
authored
Update Building in Ubuntu (#680)
* Update Building in Ubuntu * No please
1 parent b6d58d1 commit 86faa81

1 file changed

Lines changed: 16 additions & 12 deletions

File tree

docs/development/building/Building-in-Ubuntu.md

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ title: Building in Ubuntu
77
# Building in Ubuntu
88

99
Building for Ubuntu platform is remarkably easy.
10-
This document is tested and based on Ubuntu 24.04 LTS release and can also be used for WSL.
10+
This document is tested and based on Ubuntu 26.04 LTS release and can also be used for WSL.
1111

1212
### Clone Betaflight Repository and Install Toolchain
1313

@@ -31,8 +31,8 @@ git pull
3131
make MATEKF405 [EXTRA_FLAGS="-DUSE_RANGEFINDER"] [DEBUG=DBG]
3232
```
3333

34-
Using the optional EXTRA_FLAGS parameters you can specify options like USE_RANGEFINDER.
35-
Using the optional DEBUG parameter you can specify the debugger.
34+
- Using the optional EXTRA_FLAGS parameters you can specify options like `USE_RANGEFINDER`.
35+
- Using the optional DEBUG parameter you can specify the debugger.
3636

3737
You'll see a set of files being compiled, and finally linked, yielding both an ELF and then a HEX.
3838
You can use the Betaflight-Configurator to flash the `obj/betaflight_MATEKF405.hex` file.
@@ -45,18 +45,20 @@ Change to your project-folder if desired. (e.g. `cd ~/Git`)
4545
```
4646
sudo apt update && sudo apt upgrade
4747
sudo apt install libatomic1 npm
48-
sudo npm install -g gulp-cli yarn
49-
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.1/install.sh | bash
48+
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.4/install.sh | bash
5049
source ~/.bashrc
5150
git clone https://github.com/betaflight/betaflight-configurator.git
5251
cd betaflight-configurator
53-
nvm install
54-
yarn install
55-
yarn build
56-
yarn vite
52+
nvm install 24 --lts
53+
npm install
54+
npm run build
55+
npm run dev
5756
```
5857

59-
This will start a local server for the Betaflight App. Use a Web-Serial compatible web browser to visit `http://localhost:8000/`. Press `q`, then `Enter` in the terminal to quit. You may delete the `nohup.out` file if it remains after quitting. Please see https://github.com/betaflight/betaflight-configurator?tab=readme-ov-file#betaflight-configurator for further details.
58+
This will start a local server for the Betaflight App.
59+
- Use a Web-Serial compatible web browser to visit `http://localhost:8080/`.
60+
- Press `Ctrl+C` in the terminal to quit.
61+
- Check https://github.com/betaflight/betaflight-configurator?tab=readme-ov-file#betaflight-configurator for further details.
6062

6163
See [Betaflight App Development](https://github.com/betaflight/betaflight-configurator#development) for how to build the Betaflight App.
6264

@@ -69,14 +71,16 @@ sudo usermod -a -G dialout $USER
6971
sudo usermod -a -G plugdev $USER
7072
sudo apt-get remove modemmanager
7173
sudo tee -a /etc/udev/rules.d/46-stdfu-permissions.rules <<EOF
72-
# DFU (Internal bootloader for STM32, AT32 and APM32 MCUs)
74+
# DFU (Internal bootloader for STM32, GD32, AT32, APM32 and RP2040 MCUs)
7375
7476
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="0483", ATTRS{idProduct}=="df11", MODE="0664", GROUP="plugdev"
77+
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="28e9", ATTRS{idProduct}=="0189", MODE="0664", GROUP="plugdev"
7578
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="2e3c", ATTRS{idProduct}=="df11", MODE="0664", GROUP="plugdev"
79+
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="2e8a", ATTRS{idProduct}=="000f", MODE="0664", GROUP="plugdev"
7680
ACTION=="add", SUBSYSTEM=="usb", ATTRS{idVendor}=="314b", ATTRS{idProduct}=="0106", MODE="0664", GROUP="plugdev"
7781
EOF
7882
```
7983

80-
Please log out and log in to active the settings. You should now be able to flash your target using the Betaflight App.
84+
Please log out and log in to activate the settings. You should now be able to flash your target using the Betaflight App.
8185

8286
Credit goes to K.C. Budd, AKfreak for testing, and pulsar for doing the long legwork that yielded the original content of this document.

0 commit comments

Comments
 (0)