fix: /boot rsync missing due to -x flag, and idbloader dd offset wrong (skip=64)
This commit is contained in:
parent
d4dd137a9a
commit
f87dcdb54a
1 changed files with 6 additions and 3 deletions
|
|
@ -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
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue