Skip to content

CV186X Quick Start

This guide targets a CV186X Linux device with Sophon runtime dependencies and networking already prepared. CosmoEdge 1.1 uses BMRT and .nn artifacts validated on CV186X. The two open Sophon models used by this release benchmark are byte-identical to the BM1688 workload artifacts; other models still require contract-by-contract compatibility validation.

Verify hardware identity before installation; an IP address or old model directory is not platform evidence:

bash
tr -d '\0' </proc/device-tree/model; echo

The device-tree string identifies a SoC, accelerator, or firmware stack; it does not always equal the commercial product-platform name. A CV186X product using the Sophon compute stack may legitimately report BM1688. Do not reject CV186X solely because of that string. Qualification must bind all three evidence layers:

  1. Vendor, BOM, or controlled inventory evidence maps the complete device to the CV186X product platform.
  2. The package TARGET_CHIP is cv186x, and the package SHA-256 matches the release record.
  3. The model loaded by the device matches the CV186X resource record by SHA-256 and completes one real BMRT or product-task inference on that device.

Stop qualification when the device-tree value is empty and no independent platform evidence exists, or when device-tree, inventory, package, and runtime evidence conflict. A running service alone does not qualify CV186X inference.

1. Obtain and verify the package

You can build the CV186X package from source:

bash
./scripts/docker-compose.sh -f docker-compose.sophon.yml run --rm cosmo-sophon-package --chip cv186x
cat build_output/public-runtime/cv186x/TARGET_CHIP
(cd build_output/public-runtime/cv186x && sha256sum -c SHA256SUMS)

The chip-model argument selects the CV186X resource directory and isolates the output under build_output/public-runtime/cv186x/. The archive still uses the cosmo-V<version>-<md5>.tar.gz format and must be qualified together with the adjacent TARGET_CHIP and SHA256SUMS files.

Alternatively, download a CosmoEdge 1.1 Sophon Open package explicitly marked for CV186X and its published SHA-256 from the GitHub Release, then verify it on the build host:

bash
sha256sum cosmo-V1.1.0-*.tar.gz
scp cosmo-V1.1.0-*.tar.gz root@<device_ip>:/tmp/

2. Install and start

bash
ssh root@<device_ip>
install_dir=$(mktemp -d /tmp/cosmo-install.XXXXXX)
tar -xzf /tmp/cosmo-V1.1.0-*.tar.gz -C "$install_dir"
cd "$install_dir"/cosmo-V*/
./scripts/install.sh
reboot

After the device returns, confirm that cosmo.service is active and verify version 1.1 in the device console. An existing CosmoEdge device can upload the same archive through System Management → System Maintenance → Software Upgrade.

3. Create the first event with the bundled open models

For a cv186x build, the build script automatically selects the matching resource directory. Users do not provide that path. The package includes the two models used by the public CV186X benchmark:

  • YOLOV8n V1.0.0: person detector, 1x3x640x640, 7,023,600-byte model file;
  • helmet V1.0.0: safety-helmet classifier, 1x3x224x224, 6,001,416-byte model file.

Their repository directories, input/output contracts, and SHA-256 identities are recorded in the ScenarioBench v1.1 model identity record. The model subdirectories retain the legacy prod_BM1688_ compatibility prefix because the files were copied from the CV186X benchmark device without modification. Neither that directory prefix nor a BM1688 device-tree string determines the complete product platform by itself. CV186X qualification binds controlled platform mapping, an exact SHA-256 match between device-loaded files and the CV186X resource set, and successful device inference. It does not imply that other BM1688 artifacts are interchangeable.

  1. Sign in to the Web console, open Model Repository, and confirm that both models are present.
  2. Add one test stream under Video Input, then create and bind a task with the person detector. Add the helmet classifier to the orchestration when validating the complete helmet workflow.
  3. Open algorithm preview, confirm OSD and an event, then verify that task state and service logs show no continuing error. Record the model SHA-256, literal device-tree string, and inference result together in the qualification evidence.

When importing a custom model, its directory must contain a matching config.json and model file. Input dimensions, quantization, preprocessing, postprocessing, and output tensors must match the configuration. See the Model Porting Guide for the full contract.

Upgrade, recovery, and evidence boundary

  • Installation and Web upgrade use the same cosmo-V<version>-<md5>.tar.gz lifecycle. Keep power connected and verify both service state and software version after recovery.
  • If the service does not recover, inspect systemctl status cosmo.service and service logs before attempting another upload.
  • See the Deployment Guide for directories, ports, persistence, failure recovery, and rollback boundaries.
  • Public workload results are in ScenarioBench v1.1. A highest short-run point is not an official recommended profile; size production deployments with the actual models, streams, and accuracy requirements.

Released under the Apache 2.0 License.