add remote
flash example to usage guide
This commit is contained in:
@@ -35,6 +35,18 @@ sudo ./flash_sdcard.sh
|
|||||||
|
|
||||||
3. Follow the prompts to select your SD card device
|
3. Follow the prompts to select your SD card device
|
||||||
|
|
||||||
|
### Flashing an Image from a Remote SSH Host
|
||||||
|
|
||||||
|
If your SD card image was created on a remote host (e.g., 192.168.50.3), you can copy it to your local machine and then flash it to your SD card. For example, if the image is located at `/home/user/output.img` on the remote host:
|
||||||
|
|
||||||
|
You can do this in a single command (replace `user`, the image path, and `/dev/mmcblk0` as needed):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
ssh user@192.168.50.3 "cat /mnt/nvme/repos/buildroot/output/images/sdcard.img" | sudo dd of=/dev/mmcblk0 bs=4M status=progress conv=fsync oflag=direct
|
||||||
|
```
|
||||||
|
|
||||||
|
**WARNING:** Double-check the device path (`/dev/mmcblk0`) to avoid overwriting the wrong disk!
|
||||||
|
|
||||||
## Initial Boot
|
## Initial Boot
|
||||||
|
|
||||||
1. Insert the SD card into your Raspberry Pi 3
|
1. Insert the SD card into your Raspberry Pi 3
|
||||||
|
|||||||
Reference in New Issue
Block a user