User manual
E Managing System Images
E.1.2. Make An Image From CF/microSD Card
vsimgtool drive_name image.bin
where drive_name is the name showed by vsimgtool --list.
For 256MB and 512MB CF/microSD cards there are two custom sizes prepared:
vsimgtool PhysicalDrive2 image.bin 256
will copy exactly 244 · 1024 · 1024 = 255852544 bytes
vsimgtool PhysicalDrive2 image.bin 512
will copy exactly 488 · 1024 · 1024 = 511705088 bytes
vsimgtool PhysicalDrive2 image.bin 519192576
will copy exactly 519192576 bytes
E.2. dd
E.2.1. From Host PC
To copy a system image to a CF/microSD card using your host PC just download the required
system image from our FTP server and extract the *.bin file (for example to /home/user/).
If USB card reader is used the CF/microSD could be found under /dev/sdx devices (for example
/dev/sda, /dev/sdb etc). If CF card is attached to IDE channel then CF card could be found
under /dev/hdx (for example /dev/hda, /dev/hdb etc). Please note, that the system images are
complete images of a CF/microSD card not of the single partition and must be applied to the
device like /dev/sda and not /dev/sda1.
For the example below it will be assumed that the CF/microSD card is assigned to /dev/sda device
and the system image is 27032008_etch_complete.bin:
su
dd if=/home/user/27032008_etch_complete.bin of=/dev/sda bs=4096
To create an image from the CF/microSD card execute following:
dd if=/dev/sda of=/home/user/image.bin
E.2.2. Directly From OnRISC (KS8695 based Devices)
The procedure is the same as with PC with a small difference, that the system image has to be
copied on some removable medium (USB drive) and then mounted on OnRISC to /mnt from within
BIOS. So that the dd command looks as follows (for microSD card):
dd if=/mnt/27032008_etch_complete.bin of=/dev/sda bs=4096
E.3. Working with Partitions
It is also possible to write/extract only one partition at file system level. The advantage: you can
write this partition even to a smaller medium. Please refer to this project FSArchiver
May 2014 OnRISC User Manual 87