{"id":15051071,"url":"https://github.com/inindev/rockpi-4c-plus","last_synced_at":"2025-04-10T02:20:50.521Z","repository":{"id":58894448,"uuid":"524952799","full_name":"inindev/rockpi-4c-plus","owner":"inindev","description":"debian arm64 linux for the rockpi 4c+","archived":false,"fork":false,"pushed_at":"2023-08-28T12:01:45.000Z","size":156,"stargazers_count":10,"open_issues_count":2,"forks_count":0,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-03-24T03:53:05.064Z","etag":null,"topics":["arm","arm64","debian","debian-linux","device-tree","linux","nvme","rock-4c-plus","rock-pi","rock-pi-4c-plus","u-boot"],"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":"2022-08-15T11:00:43.000Z","updated_at":"2024-07-02T07:10:57.000Z","dependencies_parsed_at":"2024-09-24T21:30:47.616Z","dependency_job_id":null,"html_url":"https://github.com/inindev/rockpi-4c-plus","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inindev%2Frockpi-4c-plus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inindev%2Frockpi-4c-plus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inindev%2Frockpi-4c-plus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inindev%2Frockpi-4c-plus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inindev","download_url":"https://codeload.github.com/inindev/rockpi-4c-plus/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248143084,"owners_count":21054702,"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","nvme","rock-4c-plus","rock-pi","rock-pi-4c-plus","u-boot"],"created_at":"2024-09-24T21:30:45.542Z","updated_at":"2025-04-10T02:20:50.498Z","avatar_url":"https://github.com/inindev.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rockpi-4c-plus\n#### *Stock Debian ARM64 Linux for the Radxa ROCK (Pi) 4C+*\n\nThis stock Debian ARM64 Linux image is built directly from official packages using the official Debian [Debootstrap](https://wiki.debian.org/Debootstrap) utility, see: https://github.com/inindev/rockpi-4c-plus/blob/main/debian/make_debian_img.sh#L139\n\nBeing an official unmodified Debian build, patches are directory available from the Debian repos using the stock **apt** package manager, see: https://github.com/inindev/rockpi-4c-plus/blob/main/debian/make_debian_img.sh#L368-L378\n\nIf you want to run true up-stream Debian Linux on your ARM64 device, this is the way to do it.\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/rockpi-4c-plus/releases/download/v12.0.1/rockpi-4c-plus_bookworm-1201.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 Sep  8 20:58 /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 sh -c 'xzcat rockpi-4c-plus_bookworm-1201.img.xz \u003e /dev/sdX \u0026\u0026 sync'\n```\n\n#### when the micro sd has finished imaging, eject and use it to boot the rock 4c+ 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 \u003cyouruserid\u003e\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---\n### building debian bookworm arm64 for the rock 4c+ 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 a raspberry pi4 running a 64 bit arm linux. The initial build of this project used a debian arm64 raspberry pi4, but now uses a rock 5b running stock debian trixie arm64.\n\n\u003cbr/\u003e\n\n**1. clone the repo**\n```\ngit clone https://github.com/inindev/rockpi-4c-plus.git\ncd rockpi-4c-plus\n```\n\n\u003cbr/\u003e\n\n**2. run the debian build script**\n```\ncd debian\nsudo sh make_debian_img.sh\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.xz\n```\n\n\u003cbr/\u003e\n\n---\n### _note: bypassing spi flash boot_\n\nIf the SPI flash contains a u-boot image, the flash will need to be disabled to boot from MMC. To disable the flash, short [SPI1_CLK pin 23](https://wiki.radxa.com/Rockpi4/hardware/gpio) to ground as outlined on the [radxa wiki](https://wiki.radxa.com/Rockpi4/dev/spi-install#Case_2:_Update_SPI_flash_with_bootloader_inside). Once the MMC has been bootstrapped, the jumper can carefully be removed to reenable the SPI flash so it can be accessed by the booted image.\n\n\u003cbr/\u003e\n\n\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u0026nbsp;\u003cimg src=\"https://wiki.radxa.com/mw/images/c/c4/Spi_clk_gnd.jpg\" alt=\"spi flash bypass\" width=\"300\"/\u003e\n\n\u003cbr/\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finindev%2Frockpi-4c-plus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finindev%2Frockpi-4c-plus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finindev%2Frockpi-4c-plus/lists"}