Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| docs:guide-developer:external_toolchain [2022/09/10 12:37] – [Use OpenWrt as External Toolchain] ansuel | docs:guide-developer:external_toolchain [2022/09/10 12:53] (current) – [Step 2: Build Firmware] ansuel | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| ==== Step 1: Build Toolchain ==== | ==== Step 1: Build Toolchain ==== | ||
| - | Just do the same as everytime you (re)compile OpenWrt. Checkout | + | Just do the same as everytime you (re)compile OpenWrt. Checkout |
| + | |||
| + | Alternatively you can download precompiled | ||
| + | For example if you need precompiled toolchain for openwrt 22.03.0 for target ipq806x/ | ||
| ==== Step 2: Build Firmware ==== | ==== Step 2: Build Firmware ==== | ||
| - | We start at the same point as the toolchain. | + | - Checkout OpenWrt into directory **openwrt** |
| - | + | - Follow normal instruction | |
| - | Apply these patches in the order listet here: | + | - Use the utility script to setup your buildroot < |
| - | * 1. [[https://lists.openwrt.org/ | + | |
| - | | + | |
| - | + | | |
| - | After this, copy the .config-file from the toolchain directory into this build directory | + | |
| - | + | | |
| - | * [*] **Advanced configuration options (for developers)** | + | |
| - | * [*] **Use external toolchain** | + | |
| - | * Target name: arm-openwrt-linux-uclibcgnueabi (in my case, yours may vary) | + | |
| - | * Toolchain prefix: arm-openwrt-linux-uclibcgnueabi- (mind the dash at the end) | + | |
| - | * Toolchain root: /path/to/ | + | |
| - | Save and compile. For my case, the full toolchain build now needs about 1 1/2 hour and the normal firmware takes only 1 hour. | ||
| + | If you want to update a .config to use an external toolchain you can use the '' | ||
| + | < | ||
| + | | ||
| + | --toolchain TOOLCHAIN_FILE_LOCATION \ | ||
| + | --overwrite-config | ||
| + | --config TARGET_NAME (example ipq806x/ | ||
| + | </ | ||