Buildroot System Customization¶
The following motherboards are currently supported with Buildroot:
| Motherboard | SoC | Platform | System |
|---|---|---|---|
| K4B | T113 | Allwinner | Buildroot |
T113¶
Boot Logo¶
Mount /dev/mmcblk0p1 and replace the bootlogo.bmp file inside.
Auto-Start Configuration¶
Disabling the QT Application on Boot¶
On the board, delete S90deviceTest_QT or rename it so it no longer starts with S:
SDK path:
Adding Programs to Run at Boot¶
On the board, refer to the scripts in etc/init.d/ as a template for writing your own startup scripts.
SDK path:
Adding Applications¶
Buildroot does not support package installation via apt. To add or remove tools, you must configure Buildroot through the SDK.
Adding or Removing Buildroot Packages¶
./build.sh buildroot_menuconfig
# After making changes in the graphical configuration menu, save and exit
./build.sh buildroot_saveconfig
# The configuration is automatically saved to sun8iw20p1_t113_defconfig
# Recompile and repackage
./build.sh && ./build.sh pack
If package removal does not take effect:
rm -rf out/t113/evb1_auto/buildroot/buildroot/target -rf
find out/t113/evb1_auto/buildroot/buildroot -name ".stamp_target_installed" | xargs rm -rf
./build.sh lunch
./build.sh && ./build.sh pack
Adding Custom Applications or Tools¶
Method 1: Modify the target directory directly after compilation.
Place your files there, then recompile and repackage: ./build.sh && ./build.sh pack.
Method 2: Modify the skeleton directory.
Place your files there, then recompile and repackage: ./build.sh && ./build.sh pack.
If the changes do not take effect, clear the cache:
rm -rf out/t113/evb1_auto/buildroot/buildroot/target -rf
find out/t113/evb1_auto/buildroot/buildroot -name ".stamp_target_installed" | xargs rm -rf
./build.sh lunch
./build.sh && ./build.sh pack
Buildroot QT¶
Configuration Menu¶
The QT5 configuration path in Buildroot is as follows:
Target packages
-> Libraries
-> Graphics
-> libdrm
-> mesa3d
-> Graphic libraries and applications
-> Qt5
-> qt5base
-> qt5charts
-> qt5declarative
-> qt5quickcontrols / qt5quickcontrols2
-> qt5svg / qt5virtualkeyboard
After configuration, save and exit:
Compilation¶
After recompiling, the QT5 libraries will be generated in the out directory. You can use qmake to build QT projects:
Running on the Board¶
Set the following environment variables before running a QT application:
Q&A¶
- Chinese font display issue: The
wqy-zenhei.ttcfont package is missing. Download it and place it in/usr/share/fonts/. - Installing the font on Ubuntu:
sudo apt install fonts-wqy-zenhei