
Enter chosen hardware “Friendly”
Choose version “25.12.6”
Select based on the Hardware choice made “Friendly Elec NanoPi R3S (64bit)”
Choose “Customize installed packages”
Goto “Installed Packages”
Add to the end of the list
Additional Packages
parted losetup resize2fs blkid php8 php8-cli php8-mod-curl luci-mod-rpc luci-ssl at jq adguardhome luci-base luci-theme-openwrt-2020 curl kmod-veth kmod-loop kmod-fuse
iPhone Tethering
kmod-usb-net-ipheth usbmuxd libimobiledevice usbutils libusbmuxd libplist
Goto “Script to run on first boot (uci-defaults)”
Add this resize script to resize the storage.
#!/bin/sh
# expand-root.sh - grow the root ext4 partition and filesystem to fill the disk
set -eu
# --- Identify the root device ---
FSTYPE="$(awk '$5=="/"{for(i=6;i<=NF;i++) if($i=="-"){print $(i+1); exit}}' /proc/self/mountinfo | tail -n1)"
MAJMIN="$(awk '$5=="/"{print $3}' /proc/self/mountinfo | tail -n1)"
BLK_SYS="$(readlink -f "/sys/dev/block/$MAJMIN")"
ROOT_PART="$(cat "$BLK_SYS/partition")"
ROOT_DEV="/dev/$(basename "$BLK_SYS")"
ROOT_DISK="/dev/$(basename "$(dirname "$BLK_SYS")")"
# --- Grow the partition (-f also fixes the GPT backup header if the image was written to a larger disk) ---
parted -f -s "$ROOT_DISK" resizepart "$ROOT_PART" 100%
# --- Grow the filesystem online via a loop device ---
LOOP_DEV="$(losetup -f)"
losetup "$LOOP_DEV" "$ROOT_DEV"
trap 'losetup -d "$LOOP_DEV" 2>/dev/null || true' EXIT
resize2fs -f "$LOOP_DEV"
losetup -d "$LOOP_DEV"
NEW_UUID=`blkid ${ROOT_DISK}p${ROOT_PART} | sed -n 's/.*PARTUUID="\([^"]*\)".*/\1/p'`
#sed -i "s/PARTUUID=[^ ]*/PARTUUID=${NEW_UUID}/" /boot/cmdline.txt
trap - EXIT
# --- Only neede in Pi CM4 devices ---
#echo 'dtoverlay=dwc2,dr_mode=host' >> /boot/config.txt
reboot
Click “Request Build”
Click and download “Factory (Ext4)”


Enter chosen hardware “Raspberry”
Choose version “25.12.6”
Select based on the Hardware choice made “Raspberry Pi (4B/400/CM4) (64bit)”
Choose “Customize installed packages”
Goto “Installed Packages”
Add to the end of the list
Additional Packages
parted losetup resize2fs blkid php8 php8-cli php8-mod-curl luci-mod-rpc luci-ssl at jq adguardhome luci-base luci-theme-openwrt-2020 curl kmod-veth kmod-loop kmod-fuse
Waveshare and CM4 Kernel Packages
kmod-usb-core kmod-usb2 kmod-usb3 kmod-dwc2
iPhone Tethering
kmod-usb-net-ipheth usbmuxd libimobiledevice usbutils libusbmuxd libplist
Goto “Script to run on first boot (uci-defaults)”
Add this resize script to resize the storage.
#!/bin/sh
# expand-root.sh - grow the root ext4 partition and filesystem to fill the disk
set -eu
# --- Identify the root device ---
FSTYPE="$(awk '$5=="/"{for(i=6;i<=NF;i++) if($i=="-"){print $(i+1); exit}}' /proc/self/mountinfo | tail -n1)"
MAJMIN="$(awk '$5=="/"{print $3}' /proc/self/mountinfo | tail -n1)"
BLK_SYS="$(readlink -f "/sys/dev/block/$MAJMIN")"
ROOT_PART="$(cat "$BLK_SYS/partition")"
ROOT_DEV="/dev/$(basename "$BLK_SYS")"
ROOT_DISK="/dev/$(basename "$(dirname "$BLK_SYS")")"
# --- Grow the partition (-f also fixes the GPT backup header if the image was written to a larger disk) ---
parted -f -s "$ROOT_DISK" resizepart "$ROOT_PART" 100%
# --- Grow the filesystem online via a loop device ---
LOOP_DEV="$(losetup -f)"
losetup "$LOOP_DEV" "$ROOT_DEV"
trap 'losetup -d "$LOOP_DEV" 2>/dev/null || true' EXIT
resize2fs -f "$LOOP_DEV"
losetup -d "$LOOP_DEV"
NEW_UUID=`blkid ${ROOT_DISK}p${ROOT_PART} | sed -n 's/.*PARTUUID="\([^"]*\)".*/\1/p'`
sed -i "s/PARTUUID=[^ ]*/PARTUUID=${NEW_UUID}/" /boot/cmdline.txt
trap - EXIT
# --- Only neede in Pi CM4 devices ---
echo 'dtoverlay=dwc2,dr_mode=host' >> /boot/config.txt
reboot
Click “Request Build”
Click and download “Factory (Ext4)”

Enter chosen hardware “Raspberry”
Choose version “25.12.6”
Select based on the Hardware choice made “Raspberry Pi (4B/400/CM4) (64bit)”
Choose “Customize installed packages”
Goto “Installed Packages”
Add to the end of the list
Additional Packages
parted losetup resize2fs blkid php8 php8-cli php8-mod-curl luci-mod-rpc luci-ssl at jq adguardhome luci-base luci-theme-openwrt-2020 curl kmod-veth kmod-loop kmod-fuse
Waveshare and Pi 4B Kernel Packages
kmod-usb-core kmod-usb3 kmod-usb-net-rtl8152 kmod-usb-ohci kmod-usb-uhci kmod-usb2
iPhone Tethering
kmod-usb-net-ipheth usbmuxd libimobiledevice usbutils libusbmuxd libplist
Goto “Script to run on first boot (uci-defaults)”
Add this resize script to resize the storage.
#!/bin/sh
# expand-root.sh - grow the root ext4 partition and filesystem to fill the disk
set -eu
# --- Identify the root device ---
FSTYPE="$(awk '$5=="/"{for(i=6;i<=NF;i++) if($i=="-"){print $(i+1); exit}}' /proc/self/mountinfo | tail -n1)"
MAJMIN="$(awk '$5=="/"{print $3}' /proc/self/mountinfo | tail -n1)"
BLK_SYS="$(readlink -f "/sys/dev/block/$MAJMIN")"
ROOT_PART="$(cat "$BLK_SYS/partition")"
ROOT_DEV="/dev/$(basename "$BLK_SYS")"
ROOT_DISK="/dev/$(basename "$(dirname "$BLK_SYS")")"
# --- Grow the partition (-f also fixes the GPT backup header if the image was written to a larger disk) ---
parted -f -s "$ROOT_DISK" resizepart "$ROOT_PART" 100%
# --- Grow the filesystem online via a loop device ---
LOOP_DEV="$(losetup -f)"
losetup "$LOOP_DEV" "$ROOT_DEV"
trap 'losetup -d "$LOOP_DEV" 2>/dev/null || true' EXIT
resize2fs -f "$LOOP_DEV"
losetup -d "$LOOP_DEV"
NEW_UUID=`blkid ${ROOT_DISK}p${ROOT_PART} | sed -n 's/.*PARTUUID="\([^"]*\)".*/\1/p'`
sed -i "s/PARTUUID=[^ ]*/PARTUUID=${NEW_UUID}/" /boot/cmdline.txt
trap - EXIT
# --- Only neede in Pi CM4 devices ---
#echo 'dtoverlay=dwc2,dr_mode=host' >> /boot/config.txt
reboot
Click “Request Build”
Click and download “Factory (Ext4)”
Needs to be a USB-A Ethernet Gigabit dongle.




Needs to be a USB-A Ethernet Gigabit dongle.



Needs a small 2230 or 2242 NVME SSD to handle the larger apps like Docker and ADGuardHome
Note: This box has not been fully tested yet.
