Firefly Open Source Community

Title: get image from board [Print This Page]

Author: metind    Time: 12/24/2018 14:43
Title: get image from board
Dear All,

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


Author: penguin    Time: 12/24/2018 16:30
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 <Firmware> [-noreset]
UpgradeLoader:          UL <Loader> [-noreset]
DownloadImage:          DI <-p|-b|-k|-s|-r|-m|-u|-t|-re image>
DownloadBoot:           DB <Loader>
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  <BeginSec> <SectorLen> [-decode] [File]
WriteSector:            WS  <BeginSec> <File>
ReadLBA:                RL  <BeginSec> <SectorLen> [File]
WriteLBA:               WL  <BeginSec> <File>
EraseBlock:             EB <CS> <BeginBlock> <BlokcLen> [--Force]
-------------------------------------------------------


You can use the RL command like:

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

<BeginSec> <SectorLen> should match the offset and size of the partition you want to dump.

Author: abutkov    Time: 12/24/2018 19:36
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
Author: metind    Time: 12/24/2018 21:53
I want to get copy from board of rootfs part. So where can i check beginsec and sectorlen to use with upgrade_tool rl ....
Author: penguin    Time: 12/26/2018 17:43
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
```
Author: penguin    Time: 12/26/2018 17:46
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.





Welcome Firefly Open Source Community (https://bbs.t-firefly.com/) Powered by Discuz! X3.1