{"id":15051062,"url":"https://github.com/inindev/nanopc-t6","last_synced_at":"2025-04-10T02:20:27.707Z","repository":{"id":186640872,"uuid":"675481244","full_name":"inindev/nanopc-t6","owner":"inindev","description":"debian arm64 linux for the nanopc-t6","archived":false,"fork":false,"pushed_at":"2025-02-17T21:39:19.000Z","size":671,"stargazers_count":19,"open_issues_count":3,"forks_count":2,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-03-24T03:53:01.265Z","etag":null,"topics":["arm","arm64","debian","debian-linux","device-tree","linux","nanopc","nanopc-t6","nvme"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/inindev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2023-08-07T03:02:26.000Z","updated_at":"2025-02-18T13:15:36.000Z","dependencies_parsed_at":"2023-12-28T13:26:45.056Z","dependency_job_id":"a720372e-b13a-44c6-8fa2-1a9b3ef423dc","html_url":"https://github.com/inindev/nanopc-t6","commit_stats":null,"previous_names":["inindev/nanopc-t6"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inindev%2Fnanopc-t6","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inindev%2Fnanopc-t6/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inindev%2Fnanopc-t6/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inindev%2Fnanopc-t6/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inindev","download_url":"https://codeload.github.com/inindev/nanopc-t6/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248143023,"owners_count":21054694,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["arm","arm64","debian","debian-linux","device-tree","linux","nanopc","nanopc-t6","nvme"],"created_at":"2024-09-24T21:30:43.881Z","updated_at":"2025-04-10T02:20:27.686Z","avatar_url":"https://github.com/inindev.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nanopc-t6\n#### *Debian ARM64 Linux for the FriendlyElec NanoPC-T6*\n\nThis Debian ARM64 Linux image is built directly from official packages using the Debian [Debootstrap](https://wiki.debian.org/Debootstrap) utility, see: https://github.com/inindev/nanopc-t6/blob/main/debian/make_debian_img.sh#L129\n\nMost patches are directly available from the Debian repos using the built-in ```apt``` package manager, see: https://github.com/inindev/nanopc-t6/blob/main/debian/make_debian_img.sh#L336-L343\n\n* Note: The kernel in this bundle is from kernel.org and will not get updates from debian.\n\n\u003cbr/\u003e\n\n---\n### debian bookworm setup\n\n\u003cbr/\u003e\n\n**1. download image**\n```\nwget https://github.com/inindev/nanopc-t6/releases/download/v12-6.7-rc7/nanopc-t6_bookworm-v12-6.7-rc7.img.xz\n```\n\n\u003cbr/\u003e\n\n**2. determine the location of the target micro sd card**\n\n * before plugging-in device\n```\nls -l /dev/sd*\nls: cannot access '/dev/sd*': No such file or directory\n```\n\n * after plugging-in device\n```\nls -l /dev/sd*\nbrw-rw---- 1 root disk 8, 0 Jul 15 10:33 /dev/sda\n```\n* note: for mac, the device is ```/dev/rdiskX```\n\n\u003cbr/\u003e\n\n**3. in the case above, substitute 'a' for 'X' in the command below (for /dev/sda)**\n```\nsudo su\nxzcat nanopc-t6_bookworm-v12-6.7-rc7.img.xz \u003e /dev/sdX\nsync\n```\n\n#### when the micro sd has finished imaging, eject it and boot the rock 5b to finish setup\n\n\u003cbr/\u003e\n\n**4. login account**\n```\nuser: debian\npass: debian\n```\n\n\u003cbr/\u003e\n\n**5. take updates**\n```\nsudo apt update\nsudo apt upgrade\n```\n\n\u003cbr/\u003e\n\n**6. create account \u0026 login as new user**\n```\nsudo adduser youruserid\necho '\u003cyouruserid\u003e ALL=(ALL) NOPASSWD: ALL' | sudo tee /etc/sudoers.d/\u003cyouruserid\u003e\nsudo chmod 440 /etc/sudoers.d/\u003cyouruserid\u003e\n```\n\n\u003cbr/\u003e\n\n**7. lockout and/or delete debian account**\n```\nsudo passwd -l debian\nsudo chsh -s /usr/sbin/nologin debian\n```\n\n```\nsudo deluser --remove-home debian\nsudo rm /etc/sudoers.d/debian\n```\n\n\u003cbr/\u003e\n\n**8. change hostname (optional)**\n```\nsudo nano /etc/hostname\nsudo nano /etc/hosts\n```\n\n\u003cbr/\u003e\n\n---\n### installing on m.2 ssd /dev/nvme0n1 media\n\n\u003cbr/\u003e\n\n**1. while booted from mmc, download and copy the image file on to the ssd media**\n```\nwget https://github.com/inindev/nanopc-t6/releases/download/v12-6.7-rc7/nanopc-t6_bookworm-v12-6.7-rc7.img.xz\nsudo su\nxzcat nanopc-t6_bookworm-v12-6.7-rc7.img.xz \u003e /dev/nvme0n1\nsync\n```\n\n\u003cbr/\u003e\n\n**2. remove mmc media and reboot**\n\n\u003cbr/\u003e\n\n---\n### building debian bookworm arm64 for the nanopc-t6 from scratch\n\n\u003cbr/\u003e\n\nThe build script builds native arm64 binaries and thus needs to be run from an arm64 device such as an odroid m1 running \na 64 bit arm linux. The initial build of this project used a debian arm64 rock 5b, but now uses a nanopc t6 running \ndebian trixie arm64.\n\n\u003cbr/\u003e\n\n**1. clone the repo**\n```\ngit clone https://github.com/inindev/nanopc-t6.git\ncd nanopc-t6\n```\n\n\u003cbr/\u003e\n\n**2. run the debian build script**\n```\ncd debian\nsudo sh make_debian_img.sh nocomp\n```\n* note: edit the build script to change various options: ```nano make_debian_img.sh```\n\n\u003cbr/\u003e\n\n**3. the output if the build completes successfully**\n```\nmmc_2g.img\n```\n\n**4. install the kernel**\n```\ncd debian\nsudo sh install_kernel.sh\n```\n* note: kernel needs to be built and available in the ```../kernel``` directory\n\n\u003cbr/\u003e\n\n\u003cbr/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finindev%2Fnanopc-t6","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finindev%2Fnanopc-t6","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finindev%2Fnanopc-t6/lists"}