{"id":27048538,"url":"https://github.com/finnff/luckfox-omni3576-debian","last_synced_at":"2026-05-15T12:33:05.439Z","repository":{"id":276065985,"uuid":"928039861","full_name":"finnff/luckfox-omni3576-debian","owner":"finnff","description":"Dockerized build script to build base debian images for Luckfox Omni3576","archived":false,"fork":false,"pushed_at":"2025-04-02T15:36:49.000Z","size":66,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-22T15:50:11.409Z","etag":null,"topics":["debian","luckfox","omni3576","rockchip"],"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/finnff.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2025-02-06T00:38:35.000Z","updated_at":"2025-05-08T00:23:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"e24ea2e5-380c-4015-b15a-88fe0cf73961","html_url":"https://github.com/finnff/luckfox-omni3576-debian","commit_stats":null,"previous_names":["finnff/luckfox-omni3576-debian"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/finnff/luckfox-omni3576-debian","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/finnff%2Fluckfox-omni3576-debian","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/finnff%2Fluckfox-omni3576-debian/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/finnff%2Fluckfox-omni3576-debian/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/finnff%2Fluckfox-omni3576-debian/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/finnff","download_url":"https://codeload.github.com/finnff/luckfox-omni3576-debian/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/finnff%2Fluckfox-omni3576-debian/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33067265,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-15T11:35:32.926Z","status":"ssl_error","status_checked_at":"2026-05-15T11:35:31.362Z","response_time":103,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["debian","luckfox","omni3576","rockchip"],"created_at":"2025-04-05T07:15:07.329Z","updated_at":"2026-05-15T12:33:05.412Z","avatar_url":"https://github.com/finnff.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Debian-Base Dockerized Build for Luckfox Omni-3576  \n\nThis project provides a containerized way of building Debian-based images for the [Luckfox Omni-3576](https://www.luckfox.com/EN-Luckfox-Omni3576). I faced significant difficulties even extracting the SDK on a non-Ubuntu 22.04 system, so this setup ensures a one-click script to consistently produce Debian images that include the necessary kernel modules for running Docker out of the box—without rewriting large parts of the existing [Luckfox SDK build scripts](https://wiki.luckfox.com/luckfox-Omni3576/Luckfox-Omni3576-SDK/#2-compiling-images-in-ubuntu-2204-environment).\n\n\n## Prerequisites \n* Linux host with docker installed\n* Downloaded SDK from [wiki.luckfox.com](https://wiki.luckfox.com/Luckfox-Omni3576/Download/)\n* At least 60GB of free disk space\n\n## Overview  \n- A **Dockerfile** sets up an Ubuntu 22.04 build environment with all necessary dependencies.  \n- **start-debian-build-omni3576.sh** extracts the Luckfox SDK tarball, enables the required kernel options as specified in **DOCKERKERNEL**, replaces the default Chinese Debian mirror, and automates interactions with the Luckfox SDK build process to make it fully unattended.  \n- The script does not modify the SDK itself, except for enabling certain kernel options and replacing download mirrors.  \n\n\n## Usage\n\n1. Clone this repo:  \n   ```bash\n   git clone https://github.com/finnff/luckfox-omni3576-debian.git \u0026\u0026 cd luckfox-omni3576-debian\n   ```\n\n2. Download the SDK from [wiki.luckfox.com](https://wiki.luckfox.com/Luckfox-Omni3576/Download/) and move it to this directory:  \n   ```bash\n   mv ~/Downloads/luckfox-omni3576-*.tar.gz .\n   ```\n\n. (Optional) Modify the `BUILD.sh` script:  \n   - Change the mirror: `REPLACEMENT_MIRROR=\"deb.debian.org\"` (see [Debian mirrors](https://www.debian.org/mirror/list))  \n   - Select a desktop environment by changing `REPLACEMENT_DESKTOP_ENVIORMENT=\"base\"` to `\"xfce\"`, `\"lxde\"`, or `\"gnome\"`.  \n\n4. Start the build process:  \n   ```bash\n   ./start-debian-build-omni3576.sh\n   ```\n\nThe process will take time (about 45mins on a 8 core ryzen), preparing the ubuntu build environment, compiling the kernel and generating the Debian image. A successful build will conclude with:  \n\n```\nDescription: Kbuild and headers for Rockchip Linux 6.1 arm64 configuration\nPacking linux-headers-6.1-arm64_aarch64.deb...\nRunning mk-kernel.sh - linux-headers-aarch64 succeeded.\nRunning mk-kernel.sh - linux-headers succeeded.\nRunning 99-all.sh - build_all succeeded.\n```\n\nYou will find the final image at:  \n```\n$ ls -lh output/update/Image/update.img   \n-rw-r--r-- 1 user user 3.5G Feb  7 06:30 output/update/Image/update.img\n```\n\n\n## Flashing to eMMC  \n\nRefer to the instructions on how to enter **Loader Mode** or **MaskROM Mode**:  \n[Luckfox Wiki - Enter Upgrade Mode](https://wiki.luckfox.com/luckfox-Omni3576/Burn-image#31-enter-upgrade-mode)\n\nYou can use this command to monitor the mode:  \n```bash\nwatch -n 1 lsusb\n```  \nOnce in the correct mode, flash the built image by running the following on your **host system** (not inside the container):  \n```bash\n./rkflash.sh update\n```\n\n\n## First Boot  \n\nOnce flashed, you can SSH into the device using:  \n```bash\nssh luckfox@\u003cdevice-ip\u003e  # Default password: luckfox\n```\n\nFor Docker compatibility, you may need to update iptables settings before you can start the docker socket:  \n```bash\nsudo update-alternatives --set iptables /usr/sbin/iptables-legacy\nsudo update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy\nsudo systemctl restart docker\n```\nYou should now be able to install Docker and run containers on the device.  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffinnff%2Fluckfox-omni3576-debian","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffinnff%2Fluckfox-omni3576-debian","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffinnff%2Fluckfox-omni3576-debian/lists"}