Get image from board

Dear All,

How can i get copy image from board. Is there any way or tool for this process.

Download Linux_Upgrade_Tool v1.34 at:

http://en.t-firefly.com/doc/download/page/id/3.html#linux_12

$ upgrade_tool -h

---------------------Tool Usage ---------------------
Help: H
Quit: Q
Version: V
Clear Screen: CS
------------------Upgrade Command ------------------
ChooseDevice: CD
SwitchDevice: SD
UpgradeFirmware: UF [-noreset]
UpgradeLoader: UL [-noreset]
DownloadImage: DI <-p|-b|-k|-s|-r|-m|-u|-t|-re image>
DownloadBoot: DB
EraseFlash: EF <Loader|firmware> [DirectLBA]
PartitionList: PL
----------------Professional Command -----------------
TestDevice: TD
ResetDevice: RD [subcode]
ResetPipe: RP [pipe]
ReadCapability: RCB
ReadFlashID: RID
ReadFlashInfo: RFI
ReadChipInfo: RCI
ReadSector: RS [-decode] [File]
WriteSector: WS
ReadLBA: RL [File]
WriteLBA: WL
EraseBlock: EB [–Force]

You can use the RL command like:

upgrade_tool rl $(( 0x0 )) $(( 0x2000 )) block.img

should match the offset and size of the partition you want to dump.

Metin, also you may first use PL key to see currently stored partition list (start size name) to pick the one you wish to backup with RL

I want to get copy from board of rootfs part. So where can i check beginsec and sectorlen to use with upgrade_tool rl …

Hi, @metind, as mentioned by @abutkov , use pl to show the partition table:

$   upgrade_tool pl
upgrade_tool_v1.34 pl
Partition Info(gpt):
NO  LBA        Size       Name
01  0x00004000 0x00002000 uboot
02  0x00006000 0x00002000 trust
03  0x0000a000 0x00010000 boot
04  0x0002a000 0x00010000 backup
05  0x0005a000 0x01cc4fdf rootfs

After dumping the image from the board, you can mount it by:

sudo mount rootfs.img /mnt

you can also use some tools to shrink the size of filesystem.
Please google it.