Files
NanoKVM-MIRROR/support/sg2002
Guoguo 96c86f6098 fix(build): correct exit codes in support/sg2002/build
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
2026-07-30 19:52:34 -07:00
..

NanoKVM Support Instructions

Environment Preparation

  1. 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 MaixCDK environment is correctly configured. For configuration instructions, click here.

kvm_system Compilation Instructions

The kvm_system is responsible for monitoring the NanoKVM system status, system updates, screen key drivers, and a few system functions, compiled with MaixCDK.

  1. Before compiling, please ensure that the above-mentioned MaixCDK environment is correctly configured.
  2. Modify the paths of MAIXCDK_PATH and NanoKVM_PATH in ./build.
  3. Execute ./build kvm_system to compile kvm_system.
  4. Use scp ./kvm_system/dist/kvm_system_release/kvm_system root@192.168.x.x:/kvmapp/kvm_system to copy it to NanoKVM for testing.
  5. Use ./build add_to_kvmapp to place the executable file into the /kvmapp installation package.
  6. Use ./build kvm_system clean to clean the compilation of kvm_system.

kvm_vision Compilation Instructions

kvm_vision refers to the image acquisition and encoding subsystem of NanoKVM, compiled with MaixCDK to produce dynamic libraries for Go calls. Use kvm_vision_test to compile and test the dynamic library.

  1. Before compiling, please ensure that the above-mentioned MaixCDK environment is correctly configured.
  2. Modify the paths of MAIXCDK_PATH and NanoKVM_PATH in ./build.
  3. Execute ./build kvm_vision to compile kvm_vision_test.
  4. You can test the dynamic libraries in kvm_vision_test/dist/kvm_vision_test_release/dl_lib/.
  5. Use ./build add_to_kvmapp to place the dynamic libraries into the /kvmapp installation package.
  6. Use ./build kvm_vision clean to clean the compilation of kvm_vision.