RK3568 development notes (8): Burn the buildroot firmware on the development board (supports HDMI screen), build a Qt cross-compilation development environment, compile a Demo, and run the Demo test on the target board

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

The collection of red fat man’s network technology blog posts: a collection of development technologies (including Qt practical technology, Raspberry Pi, 3D, OpenCV, OpenGL, ffmpeg, OSG, microcontroller, software and hardware combination, etc.) is being continuously updated...

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:
  Insert image description here

  Insert image description here

Step 2: Flash the firmware

  Insert image description here

  Insert image description here

  Insert image description here

Step 3: After brushing, restart

  Insert image description here

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:
      Insert image description here

  There is enough space:
  Insert image description here

  /usr/lib contains qt5.14.2:
  Insert image description here

  Contains ffmpeg4.1.3
  Insert image description here

  Contains opencv3.4.12
  Insert image description here


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:
  Insert image description here

  Put it on the host machine and unzip it:
  Insert image description here

Step 2: Open the QtCreator configuration environment

  Configure qmake of Qt board
  Insert image description here

  Insert image description here

  Configure the cross compiler gcc
  Insert image description here

  Insert image description here

  Insert image description here

  Then create a new compilation package:
  Insert image description here

  Insert image description here

Step 3: Switch the project to the buildroot package

  Insert image description here

Step 4: Compile the project

  Insert image description here

  Insert image description here

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:
  Insert image description here

  Running it directly can succeed:
  Insert image description here

  Insert image description here

  Switch to full screen testing:
  Insert image description here

  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

Guess you like

Origin blog.csdn.net/qq21497936/article/details/132826197