If the article is an original article, please indicate the source of the original article when reprinting it.
The blog address of this article: https://hpzwl.blog.csdn.net/article/details/132826197
Rockchip Development Column
Previous article: " RK3568 Development Notes (7): Build a Qt cross-compilation development environment on the host ubuntu, compile a Demo, and run the Demo test on the target board" Next article :
" RK3568 Development Notes (9): Development board buildroot firmware Open the RS485 port and run the RS485 protocol debugging tool Demo in the project》
Preface
Previously, I found that the development board using Ubuntu firmware did not have enough space. This article uses buildroot firmware to enable the target board to run Qt interface applications.
Flash buildroot firmware
This part refers to the steps of " RK3568 Development Notes (6): Development Board Programming Ubuntu Firmware (Supporting Mipi Screen) " for more details. Essentially, the programming is the same, except for the different update.img.
Step 1: Download the image
Download the official HDMI-supported buildroot image:
Step 2: Flash the firmware
Step 3: After brushing, restart
Important points to note
- The system has no password by default. The serial port needs passwd to set the password before ssh and scp can be used.
- Set the password, use root for the ssh and scp accounts, and use the set password for the password.
- The mouse and keyboard can be used, but USB universal touch is not supported (make your own touch driver?).
- qt is included, version 5.14.2
- ffmpeg is included, version 4.1.3
- opencv is included, version 3.4.12
(ps: this is different from the ubuntu system)
(buildroot and android are official sons, fast and good), check the space and qt environment:
There is enough space:
/usr/lib contains qt5.14.2:
Contains ffmpeg4.1.3
Contains opencv3.4.12
Build a cross-compiled Qt compiler on ubuntu (test the official buildroot qt board)
This part is marked to improve the normal process. For details about installing qtcreator, please refer to " RK3568 Development Notes (7): Build a Qt cross-compilation development environment on the previous host ubuntu, compile a Demo, and run the Demo on the target board Test ".
Step 1: Download and unzip
Download the official package for compiling qt:
Put it on the host machine and unzip it:
Step 2: Open the QtCreator configuration environment
Configure qmake of Qt board
Configure the cross compiler gcc
Then create a new compilation package:
Step 3: Switch the project to the buildroot package
Step 4: Compile the project
Step 5: Get it on the development board and use sftp to get there
Buildroot comes with the commonly used ssh, stfp and Qt environments. The username root and password are set by the serial port passwd. They can be passed using filezile in the usual way:
Running it directly can succeed:
Switch to full screen testing:
The touch is not working anymore (just try to install the touch driver again).
summary
Finally, the basic environment was completed using buildroot+Qt, so that the developed application could be transplanted and the solution demonstrated.
Currently, touch is unavailable. If you have a chance, you can try the buildroot touch driver again later.
Previous article: " RK3568 Development Notes (7): Build a Qt cross-compilation development environment on the host ubuntu, compile a Demo, and run the Demo test on the target board" Next article :
" RK3568 Development Notes (9): Development board buildroot firmware Open the RS485 port and run the RS485 protocol debugging tool Demo in the project》
If the article is an original article, please indicate the source of the original article when reprinting it.
The blog address of this article: https://hpzwl.blog.csdn.net/article/details/132826197