README: minor edit

Mention un-mounting before flashing USB.
Use sudo with "dd"
Show progress with "dd"

Signed-off-by: Juro Bystricky <juro.bystricky@intel.com>
Signed-off-by: California Sullivan <california.l.sullivan@intel.com>
This commit is contained in:
Juro Bystricky 2018-04-06 14:45:25 -07:00 committed by California Sullivan
parent 5130b90063
commit c883874ddf

16
README
View File

@ -165,9 +165,21 @@ The BSP /binary directory or build contains bootable live images,
which can be used to directly boot Yocto off of a USB flash drive.
Under Linux, insert a USB flash drive. Assuming the USB flash drive
takes device /dev/sdf, use dd to copy the image to it. For example:
takes device /dev/sdf, use dd to copy the image to it. Before the image
can be burned onto a USB drive, it should be un-mounted. Some Linux distros
may automatically mount a USB drive when it is plugged in. Using USB device
/dev/sdf as an example, find all mounted partitions:
$ dd if=core-image-sato-intel-corei7-64.wic of=/dev/sdf
$ mount | grep sdf
and un-mount those that are mounted, for example:
$ umount /dev/sdf1
$ umount /dev/sdf2
Now burn the image onto the USB drive:
$ sudo dd if=core-image-sato-intel-corei7-64.wic of=/dev/sdf status=progress
$ sync
$ eject /dev/sdf