From 8217b84882f1d7cfd7d7b42cf53e647b5a384b1c Mon Sep 17 00:00:00 2001 From: Martin Kepplinger Date: Tue, 23 Jan 2018 11:22:43 +0100 Subject: [PATCH] README: fix serial file transfer doc --- README.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index c36203c..039e17d 100644 --- a/README.md +++ b/README.md @@ -125,16 +125,20 @@ and have the following setup Now you should be able to copy the image over to your Rasperry Pi and run the mentioned `flashrom` commands. One way to copy, is convertig it to ascii using -`uuencode`: - +`uuencode` (part of Debian's sharutils package) described below. Another way +is of course using a USB Stick :) + (convert) host$ uuencode coreboot.rom coreboot.rom.ascii > coreboot.rom.ascii + (transfer) rpi$ cat > coreboot.rom.ascii - (close picocom / minicom on host) - host$ cat coreboot.rom.ascii > /dev/ttyUSBX - host$ sha1sum coreboot.rom - (open picocom / minicom again) + host$ pv coreboot.rom.ascii > /dev/ttyUSBX + (wait) + rpi$ (CTRL-D) + (convert back) rpi$ uudecode -o coreboot.rom coreboot.rom.ascii + (verify) + host$ sha1sum coreboot.rom rpi$ sha1sum coreboot.rom