No space left for Flashing img file of 7g to emmc

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

No space left for Flashing img file of 7g to emmc

566 Views
SebastienP
Contributor I

 

Hello everybody,

I am trying to flash an  inmg file of  7Gb to the emmc (8Gb)

I format my emmc in 2 blocks as follow:

root@phyboard-pollux-imx8mp-2:~# fdisk -l /dev/mmcblk2
Disk /dev/mmcblk2: 3632 MB, 3808428032 bytes, 7438336 sectors
58112 cylinders, 4 heads, 32 sectors/track
Units: sectors of 1 * 512 = 512 bytes

Device Boot StartCHS EndCHS StartLBA EndLBA Sectors Size Id Type
/dev/mmcblk2p1 64,0,1 1023,3,32 8192 132767 124576 60.8M c Win95 FAT32 (LBA)
/dev/mmcblk2p2 1023,3,32 1023,3,32 141456 14876671 14735216 7194M 83 Linux

When I try to send my image there is no space left:

spicque@PCP-0820-29 MINGW64 /d/archiV2/IMX8_devKit/Images_emmc
$ ls -l
total 14876673
-rw-r--r-- 1 spicque 1049089 7616856064 sept. 9 15:58 imx8_08092021.img
-rw-r--r-- 1 spicque 1049089 7616856064 sept. 13 08:46 imx8_13092021.img
-rw-r--r-- 1 spicque 1049089 517 sept. 13 09:44 README.txt

spicque@PCP-0820-29 MINGW64 /d/archiV2/IMX8_devKit/Images_emmc
$ dd if=imx8_13092021.img bs=1M | ssh root@192.168.3.11 "dd of=/dev/mmcblk2p2"
load pubkey "/c/Users/spicque/.ssh/id_rsa": invalid format
dd: error writing '/dev/mmcblk2p2': No space left on device
7296881+0 records in
7296880+0 records out

Is it because my im is 7.6G and my block is 7.2G?

Thanks in advance

Regards

Séb

 

0 Kudos
1 Reply

555 Views
b36401
NXP Employee
NXP Employee

I see size of /dev/mmcblk2p2 is 7544430592 bytes and is can not fit 7616856064 bytes of the .img file.

0 Kudos