AnsweredAssumed Answered

Failed to format partition of SDcard with MFGTool in i.MX 6SoloX SABRE-SD

Question asked by 赵 轶骁 on Apr 27, 2016

I wanted to use MFGTool download uboot,image and rootf to SDcard. But i failed. I check the errror log and found the information as below:

/************************************************************************/

UTP: received command '$ sh mksdcard.sh /dev/mmcblk0'

UTP: executing "sh mksdcard.sh /dev/mmcblk0"

1+0 records in

1+0 records out

1024 bytes (1.0 kB) copied, 0.000379333 s, 2.7 MB/s

sfdisk: Warning: /dev/mmcblk0 is not a block device

sfdisk: Disk /dev/mmcblk0: cannot get geometry

 

Disk /dev/mmcblk0: 0 cylinders, 255 heads, 63 sectors/track

sfdisk:  /dev/mmcblk0: unrecognized partition table type

Old situation:

sfdisk: No partitions found

sfdisk: Warning: given size (503) exceeds max allowable size (0)

New situation:

Units: 1MiB = 1024*1024 bytes, blocks of 1024 bytes, counting from 0

 

   Device Boot Start   End    MiB    #blocks   Id  System

/dev/mmcblk0p1         7+   509-   503-    514080    c  W95 FAT32 (LBA)

/dev/mmcblk0p2       596+   596-     0          0   83  Linux

/dev/mmcblk0p3         0      -      0          0    0  Empty

/dev/mmcblk0p4         0      -      0          0    0  Empty

sfdisk: Warning: partition 2 has size 0 but is not marked Empty

sfdisk: Warning: partition 1 extends past end of disk

Successfully wrote the new partition table

 

sfdisk: If you created or changed a DOS partition, /dev/foo7, say, then use dd(1

)

to zero the first 512 bytes:  dd if=/dev/zero of=/dev/foo7 bs=512 count=1

(See fdisk(8).)

UTP: sending Success to kernel for command $ sh mksdcard.sh /dev/mmcblk0.

utp_poll: pass returned.

UTP: received command 'send'

UTP: sending Success to kernel for command send.

UTP: received command '$ dd if=/dev/zero of=/dev/mmcblk0 bs=1k seek=384 conv=fsy

nc count=129'

UTP: executing "dd if=/dev/zero of=/dev/mmcblk0 bs=1k seek=384 conv=fsync count=

129"

129+0 records in

129+0 records out

132096 bytes (132 kB) copied, 0.00128767 s, 103 MB/s

UTP: sending Success to kernel for command $ dd if=/dev/zero of=/dev/mmcblk0 bs=

1k seek=384 conv=fsync count=129.

utp_poll: pass returned.

UTP: received command '$ dd if=$FILE of=/dev/mmcblk0 bs=1k seek=1 conv=fsync'

UTP: executing "dd if=$FILE of=/dev/mmcblk0 bs=1k seek=1 conv=fsync"

295+0 records in

295+0 records out

302080 bytes (302 kB) copied, 0.00317933 s, 95.0 MB/s

UTP: sending Success to kernel for command $ dd if=$FILE of=/dev/mmcblk0 bs=1k s

eek=1 conv=fsync.

utp_poll: pass returned.

UTP: received command '$ mkfs.vfat /dev/mmcblk0p1'

UTP: executing "mkfs.vfat /dev/mmcblk0p1"

mkfs.vfat 2.11 (12 Mar 2005)

/dev/mmcblk0p1: No such file or directory

UTP: sending Non-success to kernel for command $ mkfs.vfat /dev/mmcblk0p1.

utp_poll: exit with status 256

/************************************************************************/

SDcard was inserted to slot SD3, ,but mmcblk0 didn't be founded, I set  Booting from an SD card in slot SD3 and Boot Mode is Mode 0. is there any wrong?

 

My cfg.ini is as below:

[profiles]

chip = Linux

[platform]

board = SabreSD

[LIST]

name = SDCard

[variable]

board = sabresd

mmc = 0

sxuboot=17x17arm2

sxdtb=17x17-arm2

7duboot=sabresd

7ddtb=sdb

6uluboot=14x14ddr3arm2

6uldtb=14x14-ddr3-arm2

ldo=

plus=

initramfs=fsl-image-mfgtool-initramfs-imx_mfgtools.cpio.gz.u-boot

seek = 1

sxnor=qspi2

7dnor=qspi1

6ulnor=qspi1

nor_part=0

Original Attachment has been moved to: freescale.log.zip

Outcomes