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:toolchain:using_the_sdk [2021/10/15 11:44] – [Using the SDK] vgaetera | docs:guide-developer:toolchain:using_the_sdk [2022/04/21 18:11] (current) – [Downloads] updated referenced versions tatami | ||
|---|---|---|---|
| Line 16: | Line 16: | ||
| <WRAP important> | <WRAP important> | ||
| - | * Do everything as a normal | + | * Do everything as an unprivileged |
| - | * Do not build in a directory that has spaces in its full path. | + | * Make sure there are no spaces in the full path to the build directory. |
| </ | </ | ||
| ===== Obtain the SDK ===== | ===== Obtain the SDK ===== | ||
| - | + | You can either download a precompiled SDK or compile it yourself from sources. | |
| - | You can either download a precompiled SDK or compile it yourself from sources. Compilation from source is done by simply enabling the menuconfig option '' | + | Compilation from source is done by simply enabling the menuconfig option '' |
| The precompiled SDK is found in the same download folder where you find the firmware images for your device. | The precompiled SDK is found in the same download folder where you find the firmware images for your device. | ||
| - | |||
| ==== Downloads ==== | ==== Downloads ==== | ||
| - | |||
| * [[https:// | * [[https:// | ||
| - | * [[https:// | + | * [[https:// |
| - | * [[https:// | + | * [[https:// |
| - | + | ==== Package | |
| - | + | After decompressing the SDK archive, optionally edit the '' | |
| - | ==== Package | + | By default, this will contain the feeds used when the SDK was built. |
| - | + | You can add your own feeds, local or remote, just like using the buildroot. | |
| - | After decompressing the SDK archive, optionally edit the '' | + | If you are simply rebuilding extra packages, you don't need to do this at all. |
| NOTE: if you want to override packages coming from an existing feed, you must write your custom feed ABOVE the line of the package feed containing the packages you want to override.\\ | NOTE: if you want to override packages coming from an existing feed, you must write your custom feed ABOVE the line of the package feed containing the packages you want to override.\\ | ||
| For example, you want to make a custom version of a package that is already shipped in Packages feed, this is how your **feeds.conf.default** will look like (the first line is your own custom package feed) | For example, you want to make a custom version of a package that is already shipped in Packages feed, this is how your **feeds.conf.default** will look like (the first line is your own custom package feed) | ||
| - | < | + | < |
| src-link local / | src-link local / | ||
| src-git packages https:// | src-git packages https:// | ||
| Line 52: | Line 50: | ||
| #src-link custom / | #src-link custom / | ||
| </ | </ | ||
| - | ==== Load package lists ==== | ||
| + | ==== Load package lists ==== | ||
| * Use '' | * Use '' | ||
| - | |||
| * After the definitions have been updated, '' | * After the definitions have been updated, '' | ||
| '' | '' | ||
| - | |||
| ===== Usage ===== | ===== Usage ===== | ||
| + | ==== Select packages ==== | ||
| + | Open a terminal in the SDK's folder and then open the SDK's menu by writing '' | ||
| + | The SDK menuconfig system is the same as the buildroot. | ||
| + | Instructions are at the top and help is available via the ''?'' | ||
| - | + | You // | |
| - | ==== Select Packages ==== | + | |
| - | + | ||
| - | Open a terminal in the SDK's folder and then open the SDK's menu by writing '' | + | |
| - | + | ||
| - | You // | + | |
| Enter '' | Enter '' | ||
| * '' | * '' | ||
| Line 74: | Line 69: | ||
| * '' | * '' | ||
| - | Still in the menu, find the package you want to build and select it by pressing " | + | Still in the menu, find the package you want to build and select it by pressing " |
| + | You can select multiple packages too. | ||
| - | Save the configuration and exit the menu. | + | Save the configuration and exit the menu. |
| - | + | ||
| - | + | ||
| - | ==== Compile Packages ==== | + | |
| + | ==== Compile packages ==== | ||
| After the Makefile is in place, the usual buildroot commands apply: | After the Makefile is in place, the usual buildroot commands apply: | ||
| - | |||
| * '' | * '' | ||
| * '' | * '' | ||
| Line 89: | Line 82: | ||
| * '' | * '' | ||
| - | Or, just run '' | + | Or, just run '' |
| + | You can compile faster by writing '' | ||
| After the compilation is finished, the generated .ipk files are placed in the bin/ | After the compilation is finished, the generated .ipk files are placed in the bin/ | ||
| - | |||
| - | ===== Troubleshooting ===== | ||
| - | |||
| - | :!: Some SDK versions have bugs.... | ||