### Install Qt5.10 Examples Source: https://wiki.friendlyelec.com/wiki/index.php?action=edit&title=How_to_Build%2C_Install_and_Setting_Qt_Application Commands to decompress and execute Qt5.10 example applications on the development board. ```bash sources/qt5.10-XXXXXX-examples ``` ```bash sudo tar xvzf Qt-5.10.0-rk64one-examples.tgz -C / ``` ```bash export DISPLAY=:0.0 /usr/local/Trolltech/Qt-5.10.0-rk64one/examples/opengl/hellowindow/hellowindow ``` -------------------------------- ### Verify Installation Output Source: https://wiki.friendlyelec.com/wiki/index.php?diff=prev&oldid=28203&title=Hermes Example output displayed after a successful installation. ```bash Hermes Agent installed successfully! Version: 0.1.0 Path: /usr/local/bin/hermes ``` -------------------------------- ### Locate and Install Qt 5.10 Examples Source: https://wiki.friendlyelec.com/wiki/index.php/How_to_Build%2C_Install_and_Setting_Qt_Application Commands to identify the source path and decompress the Qt 5.10 examples package. ```text sources/qt5.10-XXXXXX-examples ``` ```bash sudo tar xvzf Qt-5.10.0-rk64one-examples.tgz -C / ``` -------------------------------- ### Setup Development Environment Source: https://wiki.friendlyelec.com/wiki/index.php/Buildroot Install necessary build dependencies on a 64-bit Ubuntu 20.04 host PC. ```bash wget -O - https://raw.githubusercontent.com/friendlyarm/build-env-on-ubuntu-bionic/master/install.sh | bash ``` -------------------------------- ### Setup and Compilation Commands Source: https://wiki.friendlyelec.com/wiki/index.php?action=edit&title=Matrix_-_IR_Receiver Commands for installing git, cloning the repository, and compiling the project for the NanoPi 2. ```bash $ sudo apt-get install git ``` ```bash $ git clone https://github.com/friendlyarm/matrix.git ``` ```bash $ cd matrix $ git checkout nanopi2 ``` ```bash $ make CROSS_COMPILE=arm-linux- clean $ make CROSS_COMPILE=arm-linux- $ make CROSS_COMPILE=arm-linux- install ``` -------------------------------- ### Install Debian Packages Source: https://wiki.friendlyelec.com/wiki/index.php/NanoPi_M2 Example command to install a specific package, such as an FTP server. ```bash apt-get install vsftpd ``` -------------------------------- ### Shell Commands for Setup and Deployment Source: https://wiki.friendlyelec.com/wiki/index.php?action=edit&title=Matrix_-_Photoresistor Commands for installing dependencies, cloning the repository, compiling the project, and deploying binaries to the target device. ```bash $ sudo apt-get install git ``` ```bash $ git clone https://github.com/friendlyarm/matrix.git ``` ```bash $ cd matrix $ git checkout nanopi2 ``` ```bash $ make CROSS_COMPILE=arm-linux- clean $ make CROSS_COMPILE=arm-linux- $ make CROSS_COMPILE=arm-linux- install ``` ```bash $ cp modules /media/rootfs/ -r $ cp install/lib/* /media/rootfs/lib/ -d $ cp install/usr/bin/* /media/rootfs/usr/bin/ ``` ```bash $ cd /modules $ insmod pcf8591.ko ``` ```bash $ matrix-adc ``` -------------------------------- ### Run Qt OpenGL Example Source: https://wiki.friendlyelec.com/wiki/index.php/How_to_Build_and_Install_Qt_Application_for_FriendlyELEC_Boards Set the display environment and execute the hellowindow example. ```bash export DISPLAY=:0.0 /usr/local/Trolltech/Qt-5.10.0-rk64one/examples/opengl/hellowindow/hellowindow ``` -------------------------------- ### Git Setup Commands Source: https://wiki.friendlyelec.com/wiki/index.php?action=edit&title=Matrix_-_Ball_Rolling_Switch Commands to install git and clone the Matrix module repository. ```bash $ sudo apt-get install git ``` ```bash $ git clone https://github.com/friendlyarm/matrix.git ``` -------------------------------- ### Clone and Prepare Example Packages Source: https://wiki.friendlyelec.com/wiki/index.php/NanoPC_T6 Download example source code and move it into the SDK package directory. ```bash git clone https://github.com/mwarning/openwrt-examples.git cp -rf openwrt-examples/example* package/ rm -rf openwrt-examples/ ``` -------------------------------- ### Verify BakeBit Installation Source: https://wiki.friendlyelec.com/wiki/index.php/Matrix_-_UNO_Dock_for_NanoPi_NEO Run the LED blink example script to confirm that the BakeBit library and hardware connection are functioning correctly. ```bash python ~/BakeBit/Software/Python/grove_led_blink.py ``` -------------------------------- ### Setup Strobe Media Playback Source: https://wiki.friendlyelec.com/wiki/index.php/How_to_setup_RTMP_server_on_NanoPC-T4 Download and install the Strobe Media Playback files to the web server directory. ```bash mkdir -p ~/strobe_src cd ~/strobe_src wget http://downloads.sourceforge.net/project/smp.adobe/Strobe%20Media%20Playback%201.6%20Release%20%28source%20and%20binaries%29/StrobeMediaPlayback_1.6.328-full.zip unzip StrobeMediaPlayback_1.6.328-full.zip sudo cp -r for\ Flash\ Player\ 10.1 /var/www/html/strobe ``` -------------------------------- ### Build Script Usage Example Source: https://wiki.friendlyelec.com/wiki/index.php?diff=28215&oldid=20531&title=How_to_Build_FriendlyWrt Example output showing the usage format and board selection commands. ```bash USAGE: ./build.sh # Select Board Type: ./build.sh nanopi_r1.mk ./build.sh nanopi_duo.mk ``` -------------------------------- ### Install and Run Input Utilities Source: https://wiki.friendlyelec.com/wiki/index.php?action=edit&title=Matrix_-_Compact_Kit Install input-utils and monitor device events for the IR receiver. ```bash $ apt-get install input-utils $ input-events 1 ``` -------------------------------- ### Install NanoHat OLED software samples Source: https://wiki.friendlyelec.com/wiki/index.php/NanoHat_OLED Commands to clone the repository and execute the installation script on Ubuntu core systems. ```bash git clone https://github.com/friendlyarm/NanoHatOLED.git cd NanoHatOLED sudo -H ./install.sh ``` -------------------------------- ### Install Software Packages Source: https://wiki.friendlyelec.com/wiki/index.php/NanoPC-T4 Commands to install Scratch and Arduino IDE via apt. ```bash sudo apt-get install scratch:arm64 ``` ```bash sudo apt-get install arduino:arm64 ``` -------------------------------- ### Install create_ap Tool Source: https://wiki.friendlyelec.com/wiki/index.php/Template%3ALinux-Create-WiFiAP Clone and install the create_ap utility from the official repository. ```bash git clone https://github.com/friendlyarm/create_ap.git cd create_ap make install ``` -------------------------------- ### Install BakeBit Library Source: https://wiki.friendlyelec.com/wiki/index.php?action=edit&title=BakeBit_Starter_Kit_with_NanoPi_NEO%2FNEO2%2FNEO_Air Commands to clone the BakeBit repository, set execution permissions for the installation script, and run the installer. ```bash cd ~ git clone https://github.com/friendlyarm/BakeBit.git ``` ```bash cd BakeBit/Script chmod +x install.sh sudo ./install.sh ``` ```bash reboot ``` -------------------------------- ### Install Caffe Source: https://wiki.friendlyelec.com/wiki/index.php/FriendlyCore_%28based_on_ubuntu-core_with_Qt%29 Clone the installation repository and execute the install script. ```bash git clone https://github.com/friendlyarm/install-caffe-on-friendlycore cd install-caffe-on-friendlycore sudo ./install-caffe.sh ``` -------------------------------- ### Install Cross Compiler Source: https://wiki.friendlyelec.com/wiki/index.php/How_to_Build_and_Install_Qt_Application_for_FriendlyELEC_Boards Extract and execute the installation script for the FriendlyELEC Qt SDK. ```bash tar xzf qtsdk-friendlyelec-20210403.tgz cd CPUName chmod 755 ./install.sh sudo ./install.sh ``` -------------------------------- ### Install Qt5 Development Environment Source: https://wiki.friendlyelec.com/wiki/index.php/NanoPC-T6_Plus Commands to install Qt5 libraries, tools, and documentation. ```bash sudo apt update ``` ```bash sudo apt install qtbase5-dev qtchooser qt5-qmake qtbase5-dev-tools ``` ```bash sudo apt install qtcreator ``` ```bash sudo apt-get install qt5-doc qtbase5-examples qtbase5-doc-html ``` -------------------------------- ### Prepare and Configure Packages Source: https://wiki.friendlyelec.com/wiki/index.php/FriendlyWrt Clone example source code into the package directory and open the build configuration menu. ```bash git clone https://github.com/mwarning/openwrt-examples.git cp -rf openwrt-examples/example* package/ rm -rf openwrt-examples/ ``` ```bash make menuconfig ``` -------------------------------- ### Install Wubi input method Source: https://wiki.friendlyelec.com/wiki/index.php?oldid=19174&title=How_to_install_chinese_input_method_on_FriendlyDesktop Installs the IBus Wubi table and restarts the service. ```bash sudo apt-get install ibus-table-wubi ibus restart ``` -------------------------------- ### Install OpenMediaVault package Source: https://wiki.friendlyelec.com/wiki/index.php/Getting_Started_with_OpenMediaVault Install specific OpenMediaVault packages using the apt command. ```bash apt install openmediavault-diskstats ``` -------------------------------- ### Install Ubuntu Core Source: https://wiki.friendlyelec.com/wiki/index.php/NanoPC-T1 Commands to execute the installation script after booting the board from the SD card. ```bash # cd /UBUNTU_INSTALL/ # ./Install-UbuntuCore ``` -------------------------------- ### Install Docker Engine Source: https://wiki.friendlyelec.com/wiki/index.php/NanoPC-T6 Install the Docker runtime and plugins on Ubuntu. ```bash sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg lsb-release curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] \ https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null sudo apt update sudo apt install docker-ce docker-ce-cli containerd.io docker-compose-plugin ``` -------------------------------- ### Install BakeBit Package Source: https://wiki.friendlyelec.com/wiki/index.php/BakeBit_Starter_Kit_with_NanoPi_NEO/NEO2/NEO_Air Executes the installation script for the BakeBit library. ```bash cd BakeBit/Script chmod +x install.sh sudo ./install.sh ``` -------------------------------- ### Verify mjpg-streamer Output Source: https://wiki.friendlyelec.com/wiki/index.php/FriendlyCore_%28based_on_ubuntu-core_with_Qt%29 Example output displayed after successfully starting the mjpg-streamer application. ```text $ ./start.sh i: Using V4L2 device.: /dev/video0 i: Desired Resolution: 1280 x 720 i: Frames Per Second.: 30 i: Format............: YUV i: JPEG Quality......: 90 o: www-folder-path...: ./www/ o: HTTP TCP port.....: 8080 o: username:password.: disabled o: commands..........: enabled ``` -------------------------------- ### Execute Qt Demo Source: https://wiki.friendlyelec.com/wiki/index.php/FriendlyCore_%28based_on_ubuntu-core_with_Qt%29 Launch the pre-installed open source Qt demonstration application. ```bash $ sudo /opt/QtE-Demo/run.sh ``` -------------------------------- ### Run initial system configuration Source: https://wiki.friendlyelec.com/wiki/index.php/Getting_Started_with_Alpine-Linux Execute the setup script to configure network, time zone, and hostname on first boot. ```bash setup-alpine ``` -------------------------------- ### Install v4l-utils Source: https://wiki.friendlyelec.com/wiki/index.php/How_to_setup_RTMP_server_on_NanoPC-T4 Install utilities required for querying video device capabilities. ```bash sudo apt install v4l-utils ``` -------------------------------- ### mjpg-streamer Output Log Source: https://wiki.friendlyelec.com/wiki/index.php/Debian_Jessie Example of the console output displayed after successfully starting the mjpg-streamer application. ```text i: Using V4L2 device.: /dev/video0 i: Desired Resolution: 1280 x 720 i: Frames Per Second.: 30 i: Format............: YUV i: JPEG Quality......: 90 o: www-folder-path...: ./www/ o: HTTP TCP port.....: 8080 o: username:password.: disabled o: commands..........: enabled ``` -------------------------------- ### Install Docker Source: https://wiki.friendlyelec.com/wiki/index.php/FriendlyCore_%28based_on_ubuntu-core_with_Qt%29 Update package lists and install the Docker engine on the system. ```bash sudo apt-get update sudo apt-get install docker.io ``` -------------------------------- ### Run Qt VNC Demo Source: https://wiki.friendlyelec.com/wiki/index.php/NanoPC-T4 Starts the smart home appliance GUI demo as a VNC server for remote access. ```bash cd /opt/qt5-smarthome ./run-with-vnc.sh ``` -------------------------------- ### Compile and Install Matrix Source: https://wiki.friendlyelec.com/wiki/index.php/Matrix_-_Buzzer Build and install the library from the cloned source directory. ```bash $ cd matrix $ make && make install ``` -------------------------------- ### Run ResNet18 inference example Source: https://wiki.friendlyelec.com/wiki/index.php/NPU Executes the test script for the ResNet18 model using the installed RKNN toolkit. ```bash cd ~/rknn-toolkit2/rknn-toolkit-lite2/examples/resnet18/ python3.9 test.py ``` -------------------------------- ### Select SoC Platform Source: https://wiki.friendlyelec.com/wiki/index.php/How_to_Build_FriendlyWrt Initialize the build process by selecting the target board configuration file. ```bash ./build.sh nanopi_r1.mk ``` -------------------------------- ### Setup USB Camera with mjpg-streamer Source: https://wiki.friendlyelec.com/wiki/index.php/NanoPi_NEO Initialize the camera module, identify the device node, and start the streaming server. ```bash $ cd /root/C/mjpg-streamer $ make $ ./start.sh ``` ```bash $ apt-get install v4l-utils $ v4l2-ctl -d /dev/video0 -D Driver Info (not using libv4l2): Driver name : uvcvideo Card type : HC 3358+2100: HC 3358+2100 / USB 2.0 Camera: USB 2.0 Camera Bus info : usb-1c1b000.usb-1 ... ``` ```bash $ ./start.sh i: Using V4L2 device.: /dev/video0 i: Desired Resolution: 1280 x 720 i: Frames Per Second.: 30 i: Format............: YUV i: JPEG Quality......: 90 o: www-folder-path...: ./www/ o: HTTP TCP port.....: 8080 o: username:password.: disabled o: commands..........: enabled ``` ```bash export LD_LIBRARY_PATH="$(pwd)" ./mjpg_streamer -i "./input_uvc.so -d /dev/video0 -y 1 -r 1280x720 -f 30 -q 90 -n -fb 0" -o "./output_http.so -w ./www" ``` -------------------------------- ### Install Ubuntu Software Center Source: https://wiki.friendlyelec.com/wiki/index.php/NanoPC-T6_Plus Commands to update package lists and install the Snap Store. ```bash $ sudo apt-get update $ sudo apt-get install snapd $ sudo snap install snap-store ``` -------------------------------- ### Prepare Mount Directory and Verify Source: https://wiki.friendlyelec.com/wiki/index.php/CM3588 Create the mount point, set permissions, and test the mount. ```bash mkdir -p /media/nvme chmod 777 /media/nvme ``` ```bash mount /media/nvme ``` ```bash reboot ``` -------------------------------- ### Install repo utility Source: https://wiki.friendlyelec.com/wiki/index.php?diff=28215&oldid=20585&title=How_to_Build_FriendlyWrt Command to install the repo utility required for building FriendlyWrt. ```bash sudo apt-get install repo ``` -------------------------------- ### Install Portainer with Docker Source: https://wiki.friendlyelec.com/wiki/index.php/Getting_Started_with_OpenMediaVault6 Executes the directory setup and Docker container deployment for Portainer. Ensure the Docker app directory is correctly identified by the UUID path. ```bash su root cd $(readlink -f /srv/dev-disk-by-uuid-*/docker-app) mkdir portainer cd portainer mkdir data docker run -d \ --name portainer \ --restart=always \ -e TZ=Asia/Shanghai \ -p 8000:8000 \ -p 9000:9000 \ -v /var/run/docker.sock:/var/run/docker.sock \ -v $PWD/data:/data \ portainer/portainer-ce:latest ``` -------------------------------- ### Launch Qt Application with Environment Settings Source: https://wiki.friendlyelec.com/wiki/index.php?action=edit&title=How_to_Build%2C_Install_and_Setting_Qt_Application A shell script example to initialize the environment, configure the cursor, and launch a Qt application. ```bash #!/bin/bash . /usr/bin/setqt5env-kms export QT_QPA_EGLFS_HIDECURSOR=0 cd /opt/Qt5_CinematicExperience export QT_QPA_EGLFS_KMS_CONFIG=$PWD/kms-config.json [ $(id -u) -eq 0 ] && echo 0 > /sys/class/graphics/fbcon/cursor_blink ./Qt5_CinematicExperience -qws [ $(id -u) -eq 0 ] && echo 1 > /sys/class/graphics/fbcon/cursor_blink ``` -------------------------------- ### Setting up the development environment Source: https://wiki.friendlyelec.com/wiki/index.php?action=edit&oldid=21904&title=How_to_Build_FriendlyWrt Downloads and executes the installation script for the required build environment on Ubuntu 18.04. ```bash wget -O - https://raw.githubusercontent.com/friendlyarm/build-env-on-ubuntu-bionic/master/install.sh | bash ``` -------------------------------- ### Install pip Source: https://wiki.friendlyelec.com/wiki/index.php/Nanobot Install the pip package manager required for nanobot installation. ```bash pi$: sudo apt install pip ``` -------------------------------- ### Install RKNPU2 SDK Source: https://wiki.friendlyelec.com/wiki/index.php/NPU_SDK1.5.2 Clones the repository, checks out the v1.5.2 tag, and installs the necessary runtime libraries and server binaries. ```bash export GIT_SSL_NO_VERIFY=1 git clone https://github.com/rockchip-linux/rknpu2.git cd rknpu2 git checkout tags/v1.5.2 -b v1.5.2 sudo cp ./runtime/RK3588/Linux/librknn_api/aarch64/* /usr/lib sudo cp ./runtime/RK3588/Linux/rknn_server/aarch64/usr/bin/* /usr/bin/ ``` -------------------------------- ### Build QtE-Demo for Allwinner H3/H5 FriendlyCore Source: https://wiki.friendlyelec.com/wiki/index.php/How_to_Build_and_Install_Qt_Application_for_FriendlyELEC_Boards Set the toolchain path and build the Qt4-based demo. ```bash export PATH=/opt/FriendlyARM/toolchain/4.9.3/bin/:$PATH git clone https://github.com/friendlyarm/QtE-Demo mkdir build && cd build /usr/local/Trolltech/QtEmbedded-4.8.6-arm/bin/qmake ../QtE-Demo/QtE-Demo-Qt4.pro make ``` -------------------------------- ### Install RKNN Toolkit Lite2 Source: https://wiki.friendlyelec.com/wiki/index.php?action=edit&title=NPU Upgrades pip, installs OpenCV, and installs the RKNN Toolkit Lite2 wheel package. ```text python3.9 -m pip install --upgrade pip python3.9 -m pip install opencv-python cd ~ [ -d rknn-toolkit2 ] || git clone https://github.com/airockchip/rknn-toolkit2.git \ --depth 1 -b master cd rknn-toolkit2 python3.9 -m pip install \ ./rknn-toolkit-lite2/packages/rknn_toolkit_lite2-2.3.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl ``` -------------------------------- ### Run CinematicExperience Demo Source: https://wiki.friendlyelec.com/wiki/index.php/NanoPC-T4 Starts the Qt QML CinematicExperience utility for video selection. ```bash cd /opt/Qt5_CinematicExperience ./run.sh ``` -------------------------------- ### Install Packages Source: https://wiki.friendlyelec.com/wiki/index.php/NanoPi_R2C Install a specific package by name. ```bash apk add pkgname ``` -------------------------------- ### Build Script Usage and Options Source: https://wiki.friendlyelec.com/wiki/index.php?diff=28215&oldid=19882&title=How_to_Build_FriendlyWrt Example output showing how to select board types, compile specific modules, or clean the build directory. ```bash USAGE: ./build.sh # Select Board Type: ./build.sh nanopi_r1.mk ./build.sh nanopi_duo.mk ./build.sh nanopi_neo_air.mk # Select Module: ./build.sh all -compile all ./build.sh uboot -compile uboot ./build.sh kernel -compile kernel ./build.sh friendlywrt -compile friendlywrt ./build.sh sd-img -generate an image for an sd card ./build.sh emmc-img -generate an image for emmc (the generated image should be flased to an SD card and then flashed to emm with this SD card) # Clean: ./build.sh cleanall ``` -------------------------------- ### Verify installation Source: https://wiki.friendlyelec.com/wiki/index.php/Nanobot Confirmation message displayed after successful installation. ```text Successfully installed ``` -------------------------------- ### Run Qt 5.10.0 OpenGL Demo Source: https://wiki.friendlyelec.com/wiki/index.php/FriendlyCore_%28based_on_ubuntu-core_with_Qt%29 Set the Qt environment variables and launch the OpenGL widget example. ```bash . setqt5env cd $QTDIR cd /examples/opengl/qopenglwidget ./qopenglwidget ``` -------------------------------- ### Install Scratch Source: https://wiki.friendlyelec.com/wiki/index.php/FriendlyDesktop_18.04_for_RK3399 Command to install the Scratch programming environment. ```bash sudo apt-get install scratch:arm64 ``` -------------------------------- ### Prepare pre-built packages Source: https://wiki.friendlyelec.com/wiki/index.php?diff=18026&oldid=18025&title=How_to_Build_FriendlyWrt Navigate to the directory containing the pre-built packages. ```text $ cd /home/fa/ bin dl ``` -------------------------------- ### Verify Docker Installation Source: https://wiki.friendlyelec.com/wiki/index.php/Debian_Trixie_Gnome_Desktop Check the status of the Docker installation. ```bash sudo docker info ``` -------------------------------- ### Matrix Repository Setup Source: https://wiki.friendlyelec.com/wiki/index.php?action=edit&title=Matrix_-_I2C_LCD1602_Keypad Commands to prepare the matrix repository for compilation. ```bash $ cd matrix $ git checkout nanopi ``` -------------------------------- ### Locate Qt5.10 Examples Source: https://wiki.friendlyelec.com/wiki/index.php/How_to_Build_and_Install_Qt_Application_for_FriendlyELEC_Boards Path to the Qt5.10 samples package on the network disk. ```text sources/qt5.10-XXXXXX-examples ``` -------------------------------- ### Install OpenCV libraries Source: https://wiki.friendlyelec.com/wiki/index.php/Debian_Jessie Install development packages for OpenCV. ```bash $ apt-get update $ apt-get install libcv-dev libopencv-dev ``` -------------------------------- ### Configure VNC Startup Source: https://wiki.friendlyelec.com/wiki/index.php/How_to_setup_VNC_server_on_NanoPC-T4 Configuration for the xstartup file and manual server launch command. ```bash lxterminal & /usr/bin/lxsession -s LXDE & ``` ```bash vncserver -geometry 1280x800 ``` -------------------------------- ### Install Bluetooth Utilities Source: https://wiki.friendlyelec.com/wiki/index.php/NanoPC-T3 Install missing Bluetooth software packages. ```bash apt-get install bluetooth bluez obexftp openobex-apps python-gobject ussp-push ``` -------------------------------- ### Install aarch64-linux-gcc Toolchain Source: https://wiki.friendlyelec.com/wiki/index.php?printable=yes&title=Smart6818 Commands to download and install the cross-compiler, and configure the environment variables. ```bash git clone https://github.com/friendlyarm/prebuilts.git -b master --depth 1 cd prebuilts/gcc-x64 cat toolchain-4.9.3-armhf.tar.gz* | sudo tar xz -C / ``` ```bash export PATH=/opt/FriendlyARM/toolchain/4.9.3/bin:$PATH export GCC_COLORS=auto ``` ```bash . ~/.bashrc ``` -------------------------------- ### Install Build Dependencies Source: https://wiki.friendlyelec.com/wiki/index.php/NanoPi_K1_Plus Install the required packages on a 64-bit Ubuntu Linux host system. ```bash $ sudo apt-get install bison g++-multilib git gperf libxml2-utils make python-networkx zip $ sudo apt-get install flex curl libncurses5-dev libssl-dev zlib1g-dev gawk minicom $ sudo apt-get install openjdk-8-jdk $ sudo apt-get install exfat-fuse exfat-utils device-tree-compiler liblz4-tool ``` -------------------------------- ### Run Qt Test Application Source: https://wiki.friendlyelec.com/wiki/index.php/Matrix_-_2%278_SPI_TFT Commands to set environment variables and launch the Qt tetrix example. ```bash $ . /usr/bin/matrix-setqt4env $ /usr/local/Trolltech/QtEmbedded-4.8.5-arm/examples/tetrix -qws ``` -------------------------------- ### List Installed Packages Source: https://wiki.friendlyelec.com/wiki/index.php/NanoPi_Duo Display all packages currently installed on the system. ```bash $ opkg list-installed ``` -------------------------------- ### Verify Nginx Installation Source: https://wiki.friendlyelec.com/wiki/index.php/How_to_setup_RTMP_server_on_NanoPC-T4 Command to check the installed version of Nginx. ```bash nginx -v ``` -------------------------------- ### Build QtE-Demo for RK3399 Lubuntu Source: https://wiki.friendlyelec.com/wiki/index.php/How_to_Build_and_Install_Qt_Application_for_FriendlyELEC_Boards Clone the demo repository and build using the rk32xcb SDK qmake. ```bash cd /work/ git clone https://github.com/friendlyarm/QtE-Demo mkdir build && cd build /usr/local/Trolltech/Qt-5.10.0-rk32xcb-sdk/bin/qmake ../QtE-Demo/QtE-Demo.pro make ``` -------------------------------- ### Initiate compilation Source: https://wiki.friendlyelec.com/wiki/index.php?diff=18026&oldid=18025&title=How_to_Build_FriendlyWrt Navigate to the FriendlyElec directory to begin the build process. ```text $ cd /home/fa/openwrt/friendlyelec ``` -------------------------------- ### Install avrdude Source: https://wiki.friendlyelec.com/wiki/index.php/BakeBit_-_NEO_Hub Install the avrdude package on the NanoPi NEO/AIR system. ```bash apt-get install avrdude ``` -------------------------------- ### Initializing FriendlyWrt Repositories from GitHub Source: https://wiki.friendlyelec.com/wiki/index.php?diff=28215&oldid=19887&title=How_to_Build_FriendlyWrt Commands to initialize and sync source code for specific hardware platforms using repo manifests. ```bash mkdir friendlywrt-h3 cd friendlywrt-h3 repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master-v19.07.1 -m h3.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle repo sync -c --no-clone-bundle ``` ```bash mkdir friendlywrt-h5 cd friendlywrt-h5 repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master \ -m h5.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle repo sync -c --no-clone-bundle ``` ```bash mkdir friendlywrt-s5p4418 cd friendlywrt-s5p4418 repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master \ -m s5p4418.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle repo sync -c --no-clone-bundle ``` ```bash mkdir friendlywrt-s5p6818 cd friendlywrt-s5p6818 repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master \ -m s5p6818.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle repo sync -c --no-clone-bundle ``` ```bash mkdir friendlywrt23-rk3399 cd friendlywrt23-rk3399 git clone https://github.com/friendlyarm/repo --depth 1 tools tools/repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master-v23.05 \ -m rk3399.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle tools/repo sync -c --no-clone-bundle ``` ```bash mkdir friendlywrt23-rk3328 cd friendlywrt23-rk3328 git clone https://github.com/friendlyarm/repo --depth 1 tools tools/repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master-v23.05 \ -m rk3328.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle tools/repo sync -c --no-clone-bundle ``` ```bash mkdir friendlywrt23-rk3568 cd friendlywrt23-rk3568 git clone https://github.com/friendlyarm/repo --depth 1 tools tools/repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master-v23.05 \ -m rk3568.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle tools/repo sync -c --no-clone-bundle ``` ```bash mkdir friendlywrt23-rk3588 cd friendlywrt23-rk3588 git clone https://github.com/friendlyarm/repo --depth 1 tools ``` -------------------------------- ### Create VM via CLI Source: https://wiki.friendlyelec.com/wiki/index.php/Getting_Started_with_Proxmox Commands to download a QCOW2 image, create a VM, configure EFI, and import the disk. ```bash # download wget https://github.com/xxx/yyy/releases/download/armv8/example-armv8-efi.qcow2 -O example.qcow2 # create vm with id(200) qm create 200 --name example --memory 1024 --net0 virtio,bridge=wan --bios ovmf --cores 1 --cpu host # create EFI disk for id(200) qm set 200 --bios ovmf qm set 200 --efidisk0 local:1 qm set 200 --boot c --bootdisk scsi0 qm set 200 --scsihw virtio-scsi-pci # import img file into vm qm importdisk 200 example.qcow2 local ``` -------------------------------- ### Install Python Dependencies Source: https://wiki.friendlyelec.com/wiki/index.php?action=edit&title=Matrix_-_Compact_Kit Install required development libraries for Python 2.7.9. ```bash $ apt-get install Python-dev $ apt-get install libi2c-dev ``` -------------------------------- ### Initialize FriendlyWrt Build Environment Source: https://wiki.friendlyelec.com/wiki/index.php?action=history&feed=atom&title=How_to_Build_FriendlyWrt Commands to create a project directory and initialize the repository for NanoPi-R4S/R4SE. ```bash mkdir friendlywrt21-rk3399 cd friendlywrt21-rk3399 git clone https://github.com/friendlyarm/repo --depth 1 tools tools/repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master-v21.02 \ -m rk3399.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle ``` -------------------------------- ### Build QtE-Demo for S5P4418 FriendlyCore Source: https://wiki.friendlyelec.com/wiki/index.php/How_to_Build_and_Install_Qt_Application_for_FriendlyELEC_Boards Clone the demo repository and build using the nexell32 SDK qmake. ```bash git clone https://github.com/friendlyarm/QtE-Demo mkdir build && cd build /usr/local/Trolltech/Qt-5.10.0-nexell32-sdk/bin/qmake ../QtE-Demo/QtE-Demo.pro make ``` -------------------------------- ### Install Dependencies Source: https://wiki.friendlyelec.com/wiki/index.php/Template%3ALinux-Create-WiFiAP Install the required system packages for the access point functionality. ```bash sudo apt-get update sudo apt-get install -y git bash util-linux procps hostapd iproute2 iw wireless-tools haveged dnsmasq iptables ``` -------------------------------- ### Execute Initial Compilation Source: https://wiki.friendlyelec.com/wiki/index.php?printable=yes&title=NanoPi_NEO3 Starts the build process for the specified configuration. ```bash ./build.sh rk3328.mk # or rk3328-docker.mk ``` -------------------------------- ### Compile and Install quectel-CM on FriendlyCore Source: https://wiki.friendlyelec.com/wiki/index.php/How_to_use_4G_Module_EC20_on_NanoPC-T4 Commands to clone, build, and install the quectel-CM tool for 4G connectivity. ```bash git clone https://github.com/friendlyarm/quectel-cm.git cd quectel-cm/ make cp quectel-CM /usr/bin/ ``` -------------------------------- ### Create and Compile C Blink Example Source: https://wiki.friendlyelec.com/wiki/index.php?action=edit&title=WiringPi_for_RK3399 Steps to create a C source file, compile it with the necessary WiringPi libraries, and execute the binary. ```bash vi test.c ``` ```c #include int main(void) { wiringPiSetup() ; pinMode (7, OUTPUT) ; for(;;) { digitalWrite(7, HIGH) ; delay (500) ; digitalWrite(7, LOW) ; delay (500) ; } } ``` ```bash gcc -Wall -o test test.c -lwiringPi -lwiringPiDev -lpthread -lrt -lm -lcrypt sudo ./test ``` -------------------------------- ### Clone and install nanobot Source: https://wiki.friendlyelec.com/wiki/index.php/Nanobot Download the nanobot repository and install it in editable mode. ```bash pi$: git clone https://github.com/HKUDS/nanobot.git pi$: cd nanobot && pip install -e . --break-system-packages # Warning: This may break system dependencies. ``` -------------------------------- ### Perform Second Build Source: https://wiki.friendlyelec.com/wiki/index.php/Template%3ABuildAndroid14FromSource Standard commands for subsequent builds after the initial setup. ```bash . setenv.sh ./build.sh -FMu ``` -------------------------------- ### Install or Remove Packages Source: https://wiki.friendlyelec.com/wiki/index.php/NanoPi_Duo Commands to install or remove specific software packages. ```bash $ opkg install $ opkg remove ``` -------------------------------- ### Install Kernel Modules Source: https://wiki.friendlyelec.com/wiki/index.php/NanoPi Installs compiled kernel modules to a temporary directory. ```bash make INSTALL_MOD_PATH=/tmp/nanopi-modules modules_install ``` -------------------------------- ### Install and Verify Docker Engine Source: https://wiki.friendlyelec.com/wiki/index.php/NanoPC-T6_Plus Standard installation steps for Docker on Ubuntu and verification of the service status. ```bash sudo apt install apt-transport-https ca-certificates curl software-properties-common gnupg lsb-release curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] \ https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null sudo apt update sudo apt install docker-ce docker-ce-cli containerd.io docker-compose-plugin ``` ```bash sudo docker info ``` -------------------------------- ### Install Python dependencies Source: https://wiki.friendlyelec.com/wiki/index.php/Matrix_-_Compact_Kit Install the required Python development and I2C libraries. ```bash $ apt-get install Python-dev libi2c-dev ``` -------------------------------- ### Build QtE-Demo for RK3328/RK3399/RK3568/RK3588 Source: https://wiki.friendlyelec.com/wiki/index.php/How_to_Build_and_Install_Qt_Application_for_FriendlyELEC_Boards Clone the demo repository and build using the rk64one SDK qmake. ```bash git clone https://github.com/friendlyarm/QtE-Demo mkdir build && cd build /usr/local/Trolltech/Qt-5.10.0-rk64one-sdk/bin/qmake ../QtE-Demo/QtE-Demo.pro make ``` -------------------------------- ### Install lcd4linux on Ubuntu Source: https://wiki.friendlyelec.com/wiki/index.php/Matrix_-_LCD2USB Use the package manager to install the lcd4linux utility. ```bash $ sudo apt-get install lcd4linux ``` -------------------------------- ### Run Qt 5.10.0 Demo Source: https://wiki.friendlyelec.com/wiki/index.php/FriendlyCore_%28based_on_ubuntu-core_with_Qt%29 Execute the standard Qt demo application. ```bash $ sudo qt5demo ``` -------------------------------- ### Set Qt Environment and Run Application Source: https://wiki.friendlyelec.com/wiki/index.php?action=edit&title=How_to_Build%2C_Install_and_Setting_Qt_Application Commands to initialize the Qt environment for specific display plugins and execute the application. ```bash . /usr/bin/setqt5env-kms ``` ```bash . /usr/bin/setqt4env ``` ```bash ./QtE-Demo -qws ``` -------------------------------- ### Initialize and Sync FriendlyWrt Repositories Source: https://wiki.friendlyelec.com/wiki/index.php?action=edit&title=How_to_Build_FriendlyWrt Commands to clone the repo tool and initialize the manifest for specific hardware platforms. ```bash mkdir friendlywrt23-rk3399 cd friendlywrt23-rk3399 git clone https://github.com/friendlyarm/repo --depth 1 tools tools/repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master-v23.05 \ -m rk3399.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle tools/repo sync -c --no-clone-bundle ``` ```bash mkdir friendlywrt23-rk3328 cd friendlywrt23-rk3328 git clone https://github.com/friendlyarm/repo --depth 1 tools tools/repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master-v23.05 \ -m rk3328.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle tools/repo sync -c --no-clone-bundle ``` ```bash mkdir friendlywrt23-rk3568 cd friendlywrt23-rk3568 git clone https://github.com/friendlyarm/repo --depth 1 tools tools/repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master-v23.05 \ -m rk3568.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle tools/repo sync -c --no-clone-bundle ``` ```bash mkdir friendlywrt23-rk3588 cd friendlywrt23-rk3588 git clone https://github.com/friendlyarm/repo --depth 1 tools tools/repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master-v23.05 \ -m rk3588.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle tools/repo sync -c --no-clone-bundle ``` -------------------------------- ### Install Build Dependencies Source: https://wiki.friendlyelec.com/wiki/index.php/Core4418 Install the required packages for building the kernel headers. ```bash sudo apt-get update sudo apt-get install -y dpkg-dev bsdtar ``` -------------------------------- ### Launch npi-config Source: https://wiki.friendlyelec.com/wiki/index.php/Matrix_-_2%278_SPI_Key_TFT Start the npi-config utility to enable the TFT display. ```bash $ npi-config ``` -------------------------------- ### Build QtE-Demo for S5P6818 FriendlyCore Source: https://wiki.friendlyelec.com/wiki/index.php/How_to_Build_and_Install_Qt_Application_for_FriendlyELEC_Boards Clone the demo repository and build using the nexell64 SDK qmake. ```bash git clone https://github.com/friendlyarm/QtE-Demo mkdir build && cd build //usr/local/Trolltech/Qt-5.10.0-nexell64-sdk/bin/qmake ../QtE-Demo/QtE-Demo.pro make ``` -------------------------------- ### Run Qt Multimedia Player Demo Source: https://wiki.friendlyelec.com/wiki/index.php/NanoPC-T4 Starts the qt5-player demo which utilizes XCB for hardware-accelerated video decoding. ```bash cd /opt/qt5-player ./run.sh ``` -------------------------------- ### Install Hermes Agent Source: https://wiki.friendlyelec.com/wiki/index.php/Hermes_Agent Executes the official installation script for Hermes Agent. ```bash pi$: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash ``` -------------------------------- ### Configure and Build TV Profile Source: https://wiki.friendlyelec.com/wiki/index.php?oldid=28298&title=NanoPC-T6_Plus Initialize the build environment for the TV profile and execute the build script. ```bash echo "ROCKCHIP_DEVICE_DIR := device/rockchip/rk3588/nanopi6_box" > .rockchip_device.mk ## If you need to build a version with pre-installed Google apps, please uncomment and run the following command: # echo "INSTALL_GAPPS_FOR_TESTING := yes" >> .rockchip_device.mk ## Initialize the environment and start building: export BUILD_NUMBER=$(date +"6%y%m%d")1 . setenv.sh ./build.sh -FMu ``` -------------------------------- ### Install x11vnc Source: https://wiki.friendlyelec.com/wiki/index.php/How_to_setup_x11vnc_server Update package lists and install the x11vnc and net-tools packages. ```bash sudo apt update sudo apt-get install x11vnc net-tools ``` -------------------------------- ### Install TightVNC Server Source: https://wiki.friendlyelec.com/wiki/index.php/How_to_setup_VNC_server_on_NanoPC-T4 Install the TightVNC server package using apt-get. ```bash sudo apt-get install tightvncserver ``` -------------------------------- ### Install Arduino IDE Source: https://wiki.friendlyelec.com/wiki/index.php/FriendlyDesktop_18.04_for_RK3399 Installs the Arduino IDE package for the arm64 architecture. ```bash sudo apt-get install arduino:arm64 ``` -------------------------------- ### Verify rkaiq package installation Source: https://wiki.friendlyelec.com/wiki/index.php/Camera Check if the rkaiq package is installed on the system. ```bash sudo dpkg -l | grep rkaiq ``` -------------------------------- ### Initialize OpenWrt SDK Source: https://wiki.friendlyelec.com/wiki/index.php/FriendlyWrt Decompress the SDK, rename the directory to avoid path length issues, and update/install feeds. ```bash tar xvf openwrt-sdk-*-rockchip-armv8_gcc-14.3.0_musl.Linux-x86_64.tar.zst # If the path is too long, it will cause some package compilation errors, so change the directory name here mv openwrt-sdk-*-rockchip-armv8_gcc-14.3.0_musl.Linux-x86_64 sdk cd sdk ./scripts/feeds update -a ./scripts/feeds install -a ``` -------------------------------- ### Joystick Output Example Source: https://wiki.friendlyelec.com/wiki/index.php/Matrix_-_Joystick Example output format showing X and Y coordinates. ```text x=1280 y=1280 ``` -------------------------------- ### Build and run C++ YOLOv5 demo Source: https://wiki.friendlyelec.com/wiki/index.php?action=edit&title=NPU Install dependencies, fix library links, compile the demo, and execute inference. ```text sudo apt-get update sudo apt-get install -y gcc g++ make cmake # fix broken link cd ~/rknn-toolkit2/rknpu2/examples/3rdparty/mpp/Linux/aarch64 rm -f librockchip_mpp.so librockchip_mpp.so.1 ln -s librockchip_mpp.so.0 librockchip_mpp.so ln -s librockchip_mpp.so.0 librockchip_mpp.so.1 cd ~/rknn-toolkit2/rknpu2/examples/rknn_yolov5_demo chmod +x ./build-linux.sh sudo ln -s /usr/bin/gcc /usr/bin/aarch64-gcc sudo ln -s /usr/bin/g++ /usr/bin/aarch64-g++ export GCC_COMPILER=aarch64 ./build-linux.sh -t rk3588 -a aarch64 -b Release cd install/rknn_yolov5_demo_Linux ./rknn_yolov5_demo model/RK3588/yolov5s-640-640.rknn model/bus.jpg ``` -------------------------------- ### Download build scripts and image files Source: https://wiki.friendlyelec.com/wiki/index.php/NanoPC-T4 Initial setup to clone the build repository and download the base image files. ```bash git clone https://github.com/friendlyarm/sd-fuse_rk3399.git -b kernel-4.19 cd sd-fuse_rk3399 wget http://112.124.9.243/dvdfiles/RK3399/images-for-eflasher/friendlycore-focal-arm64-images.tgz tar xvzf friendlycore-focal-arm64-images.tgz ``` -------------------------------- ### Install Pinyin input method Source: https://wiki.friendlyelec.com/wiki/index.php?oldid=19174&title=How_to_install_chinese_input_method_on_FriendlyDesktop Installs IBus Pinyin and SunPinyin input engines. ```bash sudo apt-get install ibus-pinyin sudo apt-get install ibus-sunpinyin ``` -------------------------------- ### Initializing FriendlyWrt Repositories Source: https://wiki.friendlyelec.com/wiki/index.php?action=edit&oldid=20768&title=How_to_Build_FriendlyWrt Commands to initialize and sync source code for specific SoC-based boards. ```bash mkdir friendlywrt-h3 cd friendlywrt-h3 repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master-v18.06.1 -m h3.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle repo sync -c --no-clone-bundle ``` ```bash mkdir friendlywrt-h5 cd friendlywrt-h5 repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master-v18.06.1 -m h5.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle repo sync -c --no-clone-bundle ``` ```bash mkdir friendlywrt-s5p4418 cd friendlywrt-s5p4418 repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master-v18.06.1 -m s5p4418.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle repo sync -c --no-clone-bundle ``` ```bash mkdir friendlywrt-s5p6818 cd friendlywrt-s5p6818 repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master-v18.06.1 -m s5p6818.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle repo sync -c --no-clone-bundle ``` ```bash mkdir friendlywrt-rk3399 cd friendlywrt-rk3399 repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master-v18.06.1 -m rk3399.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle repo sync -c --no-clone-bundle ``` -------------------------------- ### Install Chinese fonts Source: https://wiki.friendlyelec.com/wiki/index.php?oldid=19174&title=How_to_install_chinese_input_method_on_FriendlyDesktop Installs necessary Chinese font packages for system display. ```bash sudo apt-get install fonts-arphic-bkai00mp fonts-arphic-bsmi00lp fonts-arphic-gbsn00lp fonts-arphic-ukai ``` -------------------------------- ### Run Dual Camera Demo Source: https://wiki.friendlyelec.com/wiki/index.php/NanoPC-T4 Starts the dual camera sample application for testing UVC camera modules. ```bash cd /opt/dual-camera ./run.sh ``` -------------------------------- ### Initialize FriendlyWrt Build Environment Source: https://wiki.friendlyelec.com/wiki/index.php?action=history&feed=atom&title=How_to_Build_FriendlyWrt Commands to create a directory, clone the repo tool, and sync the source code for FriendlyWrt. ```bash mkdir friendlywrt23-rk3588 cd friendlywrt23-rk3588 git clone https://github.com/friendlyarm/repo --depth 1 tools tools/repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master-v23.05 \ -m rk3588.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle tools/repo sync -c --no-clone-bundle ``` -------------------------------- ### List Available Packages Source: https://wiki.friendlyelec.com/wiki/index.php/NanoPi_Duo Display all packages currently available for installation. ```bash $ opkg list ``` -------------------------------- ### Install x11vnc server on Debian Source: https://wiki.friendlyelec.com/wiki/index.php?curid=2826&diff=28300&oldid=27359&title=NanoPC-T6 Install the x11vnc package for remote desktop access. ```bash sudo apt-get install x11vnc ``` -------------------------------- ### Initialize FriendlyWrt Build Environment Source: https://wiki.friendlyelec.com/wiki/index.php?action=history&feed=atom&title=How_to_Build_FriendlyWrt Commands to create a directory, clone the repository management tool, and initialize the build manifest. ```bash mkdir friendlywrt23-rk3328 cd friendlywrt23-rk3328 git clone https://github.com/friendlyarm/repo --depth 1 tools tools/repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master-v23.05 \ -m rk3328.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle tools/repo sync -c --no-clone-bundle ``` -------------------------------- ### Verify ARMv7 Compiler Installation Source: https://wiki.friendlyelec.com/wiki/index.php?action=edit&title=NanoPi_K2 Check the version and configuration of the installed ARMv7 cross-compiler. ```bash arm-linux-gcc -v Using built-in specs. COLLECT_GCC=arm-linux-gcc COLLECT_LTO_WRAPPER=/opt/FriendlyARM/toolchain/4.9.3/libexec/gcc/arm-cortexa9-linux-gnueabihf/4.9.3/lto-wrapper Target: arm-cortexa9-linux-gnueabihf Configured with: /work/toolchain/build/src/gcc-4.9.3/configure --build=x86_64-build_pc-linux-gnu --host=x86_64-build_pc-linux-gnu --target=arm-cortexa9-linux-gnueabihf --prefix=/opt/FriendlyARM/toolchain/4.9.3 --with-sysroot=/opt/FriendlyARM/toolchain/4.9.3/arm-cortexa9-linux-gnueabihf/sys-root --enable-languages=c,c++ --with-arch=armv7-a --with-tune=cortex-a9 --with-fpu=vfpv3 --with-float=hard ... Thread model: posix gcc version 4.9.3 (ctng-1.21.0-229g-FA) ``` -------------------------------- ### Run Qt WebEngine Browser Demo Source: https://wiki.friendlyelec.com/wiki/index.php/NanoPC-T4 Starts the Qt WebEngine browser demo, which requires the Xcb plug-in. ```bash cd /opt/qt5-brower ./run.sh ``` -------------------------------- ### Run Multi-Screen Display Demo Source: https://wiki.friendlyelec.com/wiki/index.php/NanoPC-T4 Starts the demo demonstrating different content on HDMI and eDP displays. ```bash cd /opt/qt5-multi-screen-demo ./run.sh ``` -------------------------------- ### Install git-lfs Utility Source: https://wiki.friendlyelec.com/wiki/index.php?action=edit&title=Buildroot Install git-lfs to handle large files in the source repository. ```bash sudo apt update sudo apt install git-lfs ``` -------------------------------- ### Initialize RK3568 Based Boards Source: https://wiki.friendlyelec.com/wiki/index.php?diff=28215&oldid=18025&title=How_to_Build_FriendlyWrt Initial directory setup for RK3568 based boards. ```bash mkdir friendlywrt23-rk3568 cd friendlywrt23-rk3568 ``` -------------------------------- ### Download FriendlyWrt 25.12 Source Code Source: https://wiki.friendlyelec.com/wiki/index.php/CM3588 Initializes the build environment by cloning the repository and syncing the required manifests. ```bash mkdir friendlywrt25-rk3588 cd friendlywrt25-rk3588 git clone https://github.com/friendlyarm/repo --depth 1 tools tools/repo init -u https://github.com/friendlyarm/friendlywrt_manifests -b master-v25.12 \ -m rk3588.xml --repo-url=https://github.com/friendlyarm/repo --no-clone-bundle tools/repo sync -c --no-clone-bundle ``` -------------------------------- ### Install Environment Dependencies Source: https://wiki.friendlyelec.com/wiki/index.php/NanoPi_M1 Install additional packages required for the Android build environment. ```bash $ sudo apt-get install bison g++-multilib git gperf libxml2-utils make python-networkx zip flex libncurses5-dev zlib1g-dev gawk minicom ``` -------------------------------- ### Install Kernel Headers Source: https://wiki.friendlyelec.com/wiki/index.php/NanoPi_K1_Plus Install the generated kernel headers package using dpkg. ```bash sudo dpkg -i ../linux-headers-4.14.111_4.14.111-1_arm64.deb ``` -------------------------------- ### Install Required Build Packages Source: https://wiki.friendlyelec.com/wiki/index.php/NanoPi_K1_Plus Install necessary tools for building kernel packages. ```bash sudo apt-get update sudo apt-get install -y dpkg-dev libarchive-tools ``` -------------------------------- ### Compact Kit Main Source Code Source: https://wiki.friendlyelec.com/wiki/index.php?oldid=6111&title=Matrix_-_Compact_Kit_B Main entry point demonstrating initialization and function calls for various hardware components. ```c int main(int argc, char ** argv) { int board; if ((board = boardInit()) < 0) { printf("Fail to init board\n"); return -1; } testLED(board); readButton(); readADC(); readCompass(); testPWM(board); // readTemp(); // testIR(); return 0; } ``` -------------------------------- ### Install Linux Headers Source: https://wiki.friendlyelec.com/wiki/index.php/NanoPi_Duo Install the specified Linux headers package using dpkg. ```bash sudo dpkg -i ../linux-headers-4.14.111_4.14.111-1_armhf.deb ``` -------------------------------- ### Install NanoHAT-Motor-Python-Library Source: https://wiki.friendlyelec.com/wiki/index.php/NanoHat_Motor Commands to install necessary dependencies and the Python library for the NanoHat Motor. ```bash sudo apt-get install python-dev python-smbus git cd ~ git clone https://github.com/friendlyarm/NanoHAT-Motor-Python-Library cd NanoHAT-Motor-Python-Library sudo python setup.py install ```