Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

[General] get image from board

164

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
164

【General】 get image from board

Posted at 12/24/2018 14:43:24      View:4963 | Replies:5        Print      Only Author   [Copy Link] 1#
Dear All,

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

Reply

Use props Report

1395

Credits

0

Prestige

0

Contribution

vip

Rank: 6Rank: 6

Credits
1395
Posted at 12/24/2018 16:30:56        Only Author  2#
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.
Reply

Use props Report

116

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
116
Posted at 12/24/2018 19:36:00        Only Author  3#
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
Reply

Use props Report

164

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
164
Posted at 12/24/2018 21:53:53        Only Author  4#
I want to get copy from board of rootfs part. So where can i check beginsec and sectorlen to use with upgrade_tool rl ....
Reply

Use props Report

1395

Credits

0

Prestige

0

Contribution

vip

Rank: 6Rank: 6

Credits
1395
Posted at 12/26/2018 17:43:30        Only Author  5#
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
```
Reply

Use props Report

1395

Credits

0

Prestige

0

Contribution

vip

Rank: 6Rank: 6

Credits
1395
Posted at 12/26/2018 17:46:41        Only Author  6#
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.
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list