diff --git a/USAGE_GUIDE.md b/USAGE_GUIDE.md index bdfe366..c662178 100644 --- a/USAGE_GUIDE.md +++ b/USAGE_GUIDE.md @@ -43,6 +43,18 @@ sudo ./flash_sdcard.sh 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 1. Insert the SD card into your Raspberry Pi 3 diff --git a/board/raspberrypi3_swupdate/genimage-raspberrypi3_swupdate.cfg b/board/raspberrypi3_swupdate/genimage-raspberrypi3_swupdate.cfg index 28ac087..7410b22 100644 --- a/board/raspberrypi3_swupdate/genimage-raspberrypi3_swupdate.cfg +++ b/board/raspberrypi3_swupdate/genimage-raspberrypi3_swupdate.cfg @@ -8,7 +8,7 @@ image boot.vfat { "config.txt", "boot.scr", "uboot-env.img", - "zImage" + "Image" } file overlays/README { image = "rpi-firmware/overlays/README"