Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

[General] get image from board

1388

Credits

0

Prestige

0

Contribution

vip

Rank: 6Rank: 6

Credits
1388
Posted at 12/24/2018 16:30:56      1#
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

1388

Credits

0

Prestige

0

Contribution

vip

Rank: 6Rank: 6

Credits
1388
Posted at 12/26/2018 17:43:30      2#
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

1388

Credits

0

Prestige

0

Contribution

vip

Rank: 6Rank: 6

Credits
1388
Posted at 12/26/2018 17:46:41      3#
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