{"id":22344937,"url":"https://github.com/seeed-studio/recamera-os","last_synced_at":"2026-01-27T15:03:00.888Z","repository":{"id":242034821,"uuid":"781436710","full_name":"Seeed-Studio/reCamera-OS","owner":"Seeed-Studio","description":"upstream: https://github.com/sophgo/sophpi/tree/sg200x-evb","archived":false,"fork":false,"pushed_at":"2025-09-19T11:54:08.000Z","size":4502,"stargazers_count":48,"open_issues_count":3,"forks_count":15,"subscribers_count":16,"default_branch":"sg200x-reCamera","last_synced_at":"2025-09-19T13:33:57.204Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Seeed-Studio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-04-03T11:33:47.000Z","updated_at":"2025-09-19T11:47:35.000Z","dependencies_parsed_at":"2024-05-31T09:33:59.876Z","dependency_job_id":"deff785d-42df-4dbb-8a46-8e2a50fdfe1a","html_url":"https://github.com/Seeed-Studio/reCamera-OS","commit_stats":null,"previous_names":["seeed-studio/recamera","seeed-studio/recamera-os"],"tags_count":20,"template":false,"template_full_name":null,"purl":"pkg:github/Seeed-Studio/reCamera-OS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Seeed-Studio%2FreCamera-OS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Seeed-Studio%2FreCamera-OS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Seeed-Studio%2FreCamera-OS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Seeed-Studio%2FreCamera-OS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Seeed-Studio","download_url":"https://codeload.github.com/Seeed-Studio/reCamera-OS/tar.gz/refs/heads/sg200x-reCamera","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Seeed-Studio%2FreCamera-OS/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28815385,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T12:25:15.069Z","status":"ssl_error","status_checked_at":"2026-01-27T12:25:05.297Z","response_time":168,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-04T09:15:35.408Z","updated_at":"2026-01-27T15:03:00.875Z","avatar_url":"https://github.com/Seeed-Studio.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"- [1. Official reference](#1-official-reference)\n- [2. How to start](#2-how-to-start)\n  - [2.1 Build in Docker](#21-build-in-docker)\n  - [2.2 Build in Dev Containers](#22-build-in-dev-containers)\n  - [2.3 Build in Host](#23-build-in-host)\n    - [2.3.1 Install Dependencies](#231-install-dependencies)\n    - [2.3.2 Checkout code](#232-checkout-code)\n    - [2.3.3 Build](#233-build)\n  - [2.4 Flashing](#24-flashing)\n\n## 1. Official reference\n\n- [Developer Portal](https://developer.sophgo.com/thread/471.html)\n\n## 2. How to start\n\n### 2.1 Build in Docker\n\n```bash\nsudo ./docker_build.sh sg2002_recamera_emmc\n```\n\nIf you want to run the build script without sudo (recommended for convenience):\n\n1. Ensure Docker is installed and the daemon is running.\n2. Add your user to the docker group:\n    ```bash\n    sudo usermod -aG docker \"$USER\"\n    # re-login OR run:\n    newgrp docker\n    docker info | grep -i 'server version'\n    ```\n3. Then run without sudo:\n    ```bash\n    ./docker_build.sh sg2002_recamera_emmc\n    ```\n\nTemporary (not persistent) alternative if you cannot modify groups:\n```bash\nsudo setfacl -m user:$(id -un):rw /var/run/docker.sock\n```\n\nRootless Docker (optional): follow official guide https://docs.docker.com/engine/security/rootless/ then run the same script (no sudo needed).\n\nTroubleshooting:\n- Permission denied: ensure group change took effect (new shell) and `groups` shows `docker`.\n- Cannot connect to the Docker daemon: start service (`sudo systemctl start docker`) or rootless service (`systemctl --user start docker`).\n\n\n### 2.2 Build in Dev Containers\n\nPlease refer to [Dev Containers](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) for more details.\n\n### 2.3 Build in Host\n\n#### 2.3.1 Install Dependencies\n\n- Recommended OS: Ubuntu 20.04 LTS\n- Recommended C/C++: GCC/G++ \u003e= 11.4.0\n- Recommended cmake: 3.31.2\n- Recommended minimum free space: 30 GB\n- Install dependencies\n\n    ```bash\n    sudo add-apt-repository ppa:ubuntu-toolchain-r/test\n    sudo apt update\n    sudo apt-get install -y pkg-config build-essential ninja-build automake autoconf libtool wget curl git libssl-dev bc squashfs-tools android-sdk-libsparse-utils \\\n        jq tclsh scons parallel ssh-client tree python3-dev python3-pip device-tree-compiler libssl-dev ssh cpio \\\n        squashfs-tools fakeroot flex bison mtools gcc-11 g++-11 libbz2-dev \\\n        android-sdk-ext4-utils python3-distutils slib libncurses5 rsync\n    sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 60\n    sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 60\n    pip install cmake jinja2\n    ```\n - Check evironment\n\n    ```bash\n    $ cmake --version\n    cmake version 3.31.2\n\n    $ gcc --version\n    gcc (Ubuntu 11.4.0-2ubuntu1~20.04) 11.4.0\n\n    $ g++ --version\n    g++ (Ubuntu 11.4.0-2ubuntu1~20.04) 11.4.0\n    ```\n\n#### 2.3.2 Checkout code\n\n- Clone the Repository\n\n    ```bash\n    git clone https://github.com/Seeed-Studio/reCamera.git -b sg200x-reCamera\n    cd reCamera\n    git submodule init\n    git submodule update --depth 1\n    ```\n\n- Update Submodules (optional)\n\n    ```bash\n    ./scripts/repo_clone.sh --gitpull external/subtree.xml\n    ```\n\n#### 2.3.3 Build\n\n- Location of the ${project}_defconfig\n  \n    ```bash\n    ls external/configs/\n    sg2002_recamera_emmc_defconfig  sg2002_recamera_sd_defconfig  sg2002_xiao_sd_defconfig\n    ```\n\n- Building the Project\n  \n    ```bash\n    make ${project}\n    ```\n\n    Example:\n    ```bash\n    make sg2002_recamera_emmc\n    ```\n\n- Location of the Build Targets\n\n    ```bash\n    ls -l output/${project}/install/soc_${project}/${project}\n    ```\n\n    Example:\n\n    ```bash\n    cd output/sg2002_recamera_emmc/install/soc_sg2002_recamera_emmc/\n    ls -l *.zip\n    sg2002_reCamera_0.0.1_emmc_ota.zip\n    sg2002_reCamera_0.0.1_emmc_recovery.zip\n    sg2002_reCamera_0.0.1_emmc_sd_compat.zip\n    sg2002_reCamera_0.0.1_emmc.zip\n    ```\n\n### 2.4 Flashing\n\n- Booting from eMMC (Example: sg2002_reCamera_0.0.1_emmc.zip)\n\n    - Install windows driver: [CviUsbDownloadInstallDriver.zip](https://github.com/Seeed-Studio/reCamera/releases/download/0.0.1/CviUsbDownloadInstallDriver.zip)\n    - Unzip the [CviBurn_v2.0_cli_windows.zip](https://github.com/Seeed-Studio/reCamera/releases/download/0.0.1/CviBurn_v2.0_cli_windows.zip) package.\n    - Unzip the package generated by [Section 2.3](#23-build), for example:\n      ./output/sg2002_recamera_emmc/install/soc_sg2002_recamera_emmc/sg2002_reCamera_0.0.1_emmc.zip\n    - Execute the following command in Windows (use [-m xx:xx:xx:xx:xx:xx] to configure the Ethernet MAC address):\n        `usb_dl.exe -c cv181x -s linux -i ..\\sg2002_reCamera_0.0.1_emmc [-m xx:xx:xx:xx:xx:xx]`\n\n- SD Card recovery (Example: sg2002_reCamera_0.0.1_emmc_recovery.zip)\n\n    - Use [balenaEtcher](https://etcher.balena.io/#download-etcher) to flash the `sg2002_reCamera_0.0.1_emmc_recovery.zip` file into the SD card.\n    - Then insert the SD card into the board, and power on. It will automatically burn image into emmc.\n\n- Booting from SD Card (Example: sg2002_reCamera_0.0.1_emmc_sd_compat.zip)\n\n    - Use [balenaEtcher](https://etcher.balena.io/#download-etcher) to flash the `sg2002_reCamera_0.0.1_emmc_sd_compat.zip` file into the SD card.\n    - Then insert the SD card into the board, and power on. The board will booting from SD card.\n\n- OTA (Example: sg2002_reCamera_0.0.1_emmc_ota.zip)\n    \n    - This image is specifically designed for OTA updates via the WebUI.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseeed-studio%2Frecamera-os","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseeed-studio%2Frecamera-os","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseeed-studio%2Frecamera-os/lists"}