From f87dcdb54ab27e7186d3f0197585284d5fa5ff42 Mon Sep 17 00:00:00 2001 From: BarnacleBoy Date: Tue, 2 Jun 2026 21:50:13 +0000 Subject: [PATCH] fix: /boot rsync missing due to -x flag, and idbloader dd offset wrong (skip=64) --- docs/emmc-multiboot.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/emmc-multiboot.md b/docs/emmc-multiboot.md index eeea0be..bd4cd9b 100644 --- a/docs/emmc-multiboot.md +++ b/docs/emmc-multiboot.md @@ -114,10 +114,12 @@ sudo mkdir -p /mnt/root_opios/boot sudo mount /dev/mmcblk0p1 /mnt/root_opios/boot sudo rsync -axHAWX --info=progress2 / /mnt/root_opios/ +sudo rsync -aHAWX /boot/ /mnt/root_opios/boot/ # /boot is a separate partition, -x skips it ``` Flags: archive, stay-on-filesystem (critical — skips /proc, /sys, /dev), preserve -hardlinks/ACLs/xattrs, copy whole files (faster locally). +hardlinks/ACLs/xattrs, copy whole files (faster locally). The second rsync handles the +separate /boot partition that -x deliberately avoids. ### 1.6 — Bind mount virtual filesystems @@ -171,10 +173,11 @@ First check if Orange Pi OS ships u-boot binaries: find / -name "idbloader.img" -o -name "u-boot.itb" -o -name "*loader*" 2>/dev/null ``` -If files exist at known paths, use them. If not, extract from SD card: +If files exist at known paths, use them. If not, extract from SD card. The idbloader +starts at sector 64 of the SD card (sectors 0-33 hold the GPT), so skip there: ```bash -sudo dd if=/dev/mmcblk1 of=idbloader.img bs=512 count=16384 +sudo dd if=/dev/mmcblk1 of=idbloader.img bs=512 skip=64 count=16320 sudo dd if=/dev/mmcblk1 of=u-boot.itb bs=512 skip=16384 count=8192 ``` -- 2.49.1