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.

Author: paullan794    Time: 1/9/2026 08:28
FCP_FMG_AD-7.4-JPN¥Æ¥¹¥È¥¬¥¤¥É¤Ï¡¢•rég¤ÎŸoñj¤ò±Ü¤±¤ë¤¿¤á¤Ë¡¢¤Ç¤­¤ë¤À¤±Ô礯¤³¤ì¤é¤ÎÙYÁϤòѧÁ•¤Ç¤­¤ë¤³¤È¤ò±£Ô^¤Ç¤­¤Þ¤¹¡£ FCP - FortiManager 7.4 Administrator (FCP_FMG_AD-7.4ÈÕ±¾ÕZ°æ) Study Question¤Ï¡¢²»Ã÷²t¤Ê¸ÅÄî¤òº†ËØ»¯¤¹¤ë¤³¤È¤Ë¤è¤ê¡¢Ñ§Á•·½·¨¤ò×îßm»¯¤¹¤ë¤Î¤ËÒÛÁ¢¤Á¤Þ¤¹¡£ FCP_FMG_AD-7.4-JPNÔ‡òY†–î}¤Ï¡¢¥¢¥Õ¥¿©`¥µ©`¥Ó¥¹¤òÍê赤ˤ¹¤ë¤¿¤á¤ÎŬÁ¦¤òspare¤·¤ß¤Þ¤»¤ó¡£
Author: nickkin669    Time: 1/18/2026 02:30
The content is awesome, so I¡¯m giving it a like. I¡¯m giving you the exact Consumer-Goods-Cloud-Accredited-Professional hot questions questions that helped me get promoted and earn more today¡ªfor free!
Author: ronking477    Time: 2/3/2026 02:23
Truly an extraordinary article, I¡¯m thankful for your sharing. Best of luck! Here are the Professional-Cloud-Security-Engineer reliable exam blueprint resources, free for everyone!
Author: iannels362    Time: 2/11/2026 10:27
This is an inspiring article, and I¡¯m grateful for your share! Getting ready for the NCP-EUC top questions exam ¨C wish me luck!




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