mirror of
https://github.com/sipeed/NanoKVM.git
synced 2026-09-11 00:22:56 -05:00
The script has no error handling of its own, so these all pass silently. - update_lib exited 1 after succeeding, so callers could not chain it - a failed maixcdk build printed "Build Error!" and exited 0, letting a caller carry on with no artifacts - add_to_kvmapp did the same when the source did not exist - the copies in update_lib were unchecked; since update_lib is what keeps the SDK components in sync with the source tree, a silent failure there yields libraries built from stale sources
NanoKVM Support Instructions
Environment Preparation
- NanoKVM-Lite/Full/PCIe is based on the SG2002 as the main control chip. The projects in the support section are compiled under the MaixCDK framework. Before compiling, please ensure that the
MaixCDKenvironment is correctly configured. For configuration instructions, click here.
kvm_system Compilation Instructions
The
kvm_systemis responsible for monitoring the NanoKVM system status, system updates, screen key drivers, and a few system functions, compiled with MaixCDK.
- Before compiling, please ensure that the above-mentioned
MaixCDKenvironment is correctly configured. - Modify the paths of
MAIXCDK_PATHandNanoKVM_PATHin./build. - Execute
./build kvm_systemto compilekvm_system. - Use
scp ./kvm_system/dist/kvm_system_release/kvm_system root@192.168.x.x:/kvmapp/kvm_systemto copy it to NanoKVM for testing. - Use
./build add_to_kvmappto place the executable file into the/kvmappinstallation package. - Use
./build kvm_system cleanto clean the compilation ofkvm_system.
kvm_vision Compilation Instructions
kvm_visionrefers to the image acquisition and encoding subsystem of NanoKVM, compiled with MaixCDK to produce dynamic libraries for Go calls. Usekvm_vision_testto compile and test the dynamic library.
- Before compiling, please ensure that the above-mentioned
MaixCDKenvironment is correctly configured. - Modify the paths of
MAIXCDK_PATHandNanoKVM_PATHin./build. - Execute
./build kvm_visionto compilekvm_vision_test. - You can test the dynamic libraries in
kvm_vision_test/dist/kvm_vision_test_release/dl_lib/. - Use
./build add_to_kvmappto place the dynamic libraries into the/kvmappinstallation package. - Use
./build kvm_vision cleanto clean the compilation ofkvm_vision.