Skip to content

Instantly share code, notes, and snippets.

@l4rm4nd
Last active July 24, 2025 18:34
Show Gist options
  • Select an option

  • Save l4rm4nd/67ab9f773c08c7b221b461f548124364 to your computer and use it in GitHub Desktop.

Select an option

Save l4rm4nd/67ab9f773c08c7b221b461f548124364 to your computer and use it in GitHub Desktop.
Install Debian 12 ARM64 onto Nanopi R5C
# download an official eflasher image from friendlyelec.com
# 01_Official_images > 02_SD-to-eMMC images > rk3568-eflasher-debian-bullseye-minimal-6.1-arm64-20250613.img.gz
firefox https://download.friendlyelec.com/NanoPiR5C

# extract the downloaded image archive
gunzip rk3568-eflasher-debian-bullseye-minimal-6.1-arm64-20250613.img.gz

# flash the image onto an sd card with minimum 8GB
sudo dd if=rk3568-eflasher-debian-bullseye-minimal-6.1-arm64-20250613.img of=/dev/sdb bs=4M status=progress

# eject the sd card and re-insert into your linux machine (optional)
# you will see a sd-card volume folder named "FriendlyARM"

# download the custom debian 12 image
wget https://github.com/inindev/debian-image/releases/download/v12.9/nanopi-r5c_bookworm-12.9.img.xz

# extract the xz image to .raw
xz -dk nanopi-r5c_bookworm-12.9.img.xz

# rename it to .raw
mv nanopi-r5c_bookworm-12.9.img nanopi-r5c_bookworm-12.9.raw

# copy the image file ending with .raw or .gz into the "FriendlyARM" directory 
# if your file is in .img format, please rename it to .raw format
cp nanopi-r5c_bookworm-12.9.raw /media/$LOGNAME/FriendlyARM/nanopi-r5c_bookworm-12.9.raw

# open the eflasher.conf file on the sc card, set “autoStart=” to the name of your image file, such as:
# autoStart=nanopi-r5c_bookworm-12.9
nano /media/$LOGNAME/FriendlyARM/eflasher.conf

# eject the sd card, insert it into NanoPi-R5C
# power NanoPi-R5C on
# it will automatically install your firmware
@l4rm4nd
Copy link
Author

l4rm4nd commented Jul 24, 2025

Alternatively:

  1. Download the official sd-card image for friendlywrt
  2. Unpack it and flash onto sd-card using rufus
  3. Shutdown the Nanopi
  4. Insert sd-card into Nanopi and hold MASK button
  5. Start Nanopi and hold MASK button for 4s (NOT LONGER!)
  6. Wait for 3 minutes and connect your PC via LAN to the LAN port of Nanopi (not WAN)
  7. Access http://192.168.2.1/ via browser and login using the password password
  8. Hit the eMMC area and upload your nanopi-r5c_bookworm-12.9.img.gz

Warning

Make sure to unpack and re-pack the nanopi-r5c_bookworm-12.9.img using 7-zip as .img.gz
The friendlywrt eMMC flashing only supports uploading images <= 2000MB

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment