From 3e5eeefd8a909c318762b423798136c4be719c2c Mon Sep 17 00:00:00 2001 From: pstruebi Date: Thu, 17 Apr 2025 14:24:25 +0200 Subject: [PATCH 1/2] add remote flash example to usage guide --- USAGE_GUIDE.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/USAGE_GUIDE.md b/USAGE_GUIDE.md index 3c21103..176de2b 100644 --- a/USAGE_GUIDE.md +++ b/USAGE_GUIDE.md @@ -35,6 +35,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 From 1a4a599c368008e3c8ee75788a7255468cc84b82 Mon Sep 17 00:00:00 2001 From: pstruebi Date: Thu, 17 Apr 2025 14:49:33 +0200 Subject: [PATCH 2/2] fix kernel name --- board/raspberrypi3_swupdate/genimage-raspberrypi3_swupdate.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"