Use MFGtool to Flash image to 4G tf card,but /sdcard partition size not ture?

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

Use MFGtool to Flash image to 4G tf card,but /sdcard partition size not ture?

1,613 Views
guohn
Contributor III

Dear,

     Look th start message. The mmcblk0p1 should be 3100M, but the partition size is about 1G. Who konws?

Thanks!


drivers/rtc/hctosys.c: unable to open rtc device (rtc0)

ata1: SATA link down (SStatus 0 SControl 300)

Freeing init memory: 160K

Starting UTP

ln: /etc/mtab: File exists

disable turn off display

uuc 0.4 [built Feb 28 2011 17:40:24]

UTP: Waiting for device to appear

utp_mk_devnode: creating node '/dev/utp' with 10+222

cpu_id is 53

utp_mk_devnode: creating node '/dev/watchdog' with 10+130

feed_watchdog

mmc0: new high speed SDHC card at address aaaa

mmcblk0: mmc0:aaaa SU04G 3.69 GiB

mmcblk0: p1 p2 p3 < p5 p6 p7 > p4

g_file_storage gadget: high speed config #1

UTP: received command 'mknod block,mmcblk0,/dev/mmcblk0,block'

class = 'block'

item = 'mmcblk0'

node = /dev/mmcblk0

type = block

UTP: running utp_mk_devnode(block,mmcblk0,/dev/mmcblk0,0x6000)

utp_mk_devnode: creating node '/dev/mmcblk0' with 179+0

UTP: sending Success

UTP: received command '$ mknod /dev/zero c 1 5'

UTP: sending Busy

UTP: executing "mknod /dev/zero c 1 5"

UTP: sending Success

utp_poll: pass returned.

UTP: received command '$ dd if=/dev/zero of=/dev/mmcblk0 bs=512 seek=1536 count=16'

UTP: sending Busy

UTP: executing "dd if=/dev/zero of=/dev/mmcblk0 bs=512 seek=1536 count=16"

16+0 records in

16+0 records out

UTP: sending Success

utp_poll: pass returned.

UTP: received command 'send'

UTP: sending Success

UTP: received command '$ tar xf $FILE '

UTP: sending Busy

UTP: executing "tar xf $FILE "

UTP: sending Success

utp_poll: pass returned.

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

UTP: sending Busy

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

1+0 records in

1+0 records out

Checking that no-one is using th mmcblk0:is disk right now ...

unknown partition table

OK

Disk /dev/mmcblk0: 121008 cylinders, 4 heads, 16 sectors/track

sfdisk: ERROR: sector 0 does not have an msdos signature

/dev/mmcblk0: unrecognized partition table type

Old situation:

No partitions found

New situation:

Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start   End    MiB    #blocks   Id  System

/dev/mmcblk0p1         0+  3110   3111-   3185663+   b  W95 FAT32

/dev/mmcblk0p2      3111   3310    200     204800   83  Linux

/dev/mmcblk0p3      3311   3742    432     442368    5  Extended

/dev/mmcblk0p4      3743   3762     20      20480   83  Linux

/dev/mmcblk0p5      3311+  3610    300-    307199+  83  Linux

/dev/mmcblk0p6      3611+  3710    100-    102399+  83  Linux

/dev/mmcblk0p7      3711+  3730     20-     20479+  83  Linux

Warning: no primary partition is marked bootable (active)

This does not matter for LILO, but the DOS MBR will not boot this disk.

Successfully wrote the new partition table

Re-reading the partition table ...

mmcblk0: p1 p2 p3 < p5 p6 p7 > p4

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).)

Checking that no-one is using this disk right no mmcblk0:w ...

p1 p2 p3 < p5 p6 p7 > p4

OK

Disk /dev/mmcblk0: 121008 cylinders, 4 heads, 16 sectors/track

Old situation:

Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start   End    MiB    #blocks   Id  System

/dev/mmcblk0p1         0+  3110   3111-   3185663+   b  W95 FAT32

/dev/mmcblk0p2      3111   3310    200     204800   83  Linux

/dev/mmcblk0p3      3311   3742    432     442368    5  Extended

/dev/mmcblk0p4      3743   3762     20      20480   83  Linux

/dev/mmcblk0p5      3311+  3610    300-    307199+  83  Linux

/dev/mmcblk0p6      3611+  3710    100-    102399+  83  Linux

/dev/mmcblk0p7      3711+  3730     20-     20479+  83  Linux

New situation:

Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start   End    MiB    #blocks   Id  System

/dev/mmcblk0p1        10   3100   3091    3165184    b  W95 FAT32

/dev/mmcblk0p2      3111   3310    200     204800   83  Linux

/dev/mmcblk0p3      3311   3742    432     442368    5  Extended

/dev/mmcblk0p4      3743   3762     20      20480   83  Linux

/dev/mmcblk0p5      3311+  3610    300-    307199+  83  Linux

/dev/mmcblk0p6      3611+  3710    100-    102399+  83  Linux

/dev/mmcblk0p7      3711+  3730     20-     20479+  83  Linux

Warning: no primary partition is marked bootable (active)

This does not matter for LILO, but the DOS MBR will not boot this disk.

Successfully wrote the new partition table

Re-reading the partition table ...

mmcblk0: p1 p2 p3 < p5 p6 p7 > p4

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

utp_poll: pass returned.

UTP: received command 'frf'

UTP: sending Busy

UTP: closing the file

UTP: files were flushed.

UTP: sending Success

utp_poll: pass returned.

UTP: received command '$ echo Update Complete!'

UTP: sending Busy

UTP: executing "echo Update Complete!"

Update Complete!

UTP: sending Success

utp_poll: pass returned.

g_file_storage gadget: high speed config #1

feed_watchdog

Tags (2)
0 Kudos
4 Replies

616 Views
YixingKong
Senior Contributor IV

Guo HN

Since no reponse from you for some time, we are closing the DI. If you still have question please reopen it.

Thanks,

Yixing

0 Kudos

616 Views
YixingKong
Senior Contributor IV

Guo hn

Has Juan's response fixed your issue/question? If yes, please click Corect Answer/Helpful Answer. We would assume your issue/question got answered if no response from you in 3 days and close the DI.

Thanks,

Yixing

0 Kudos

616 Views
juangutierrez
NXP Employee
NXP Employee

So what you say is that from logs, partition says is around

    3091 blocks x 1024 bytes/block = 3165184 bytes ~ 3.1GB

but if you check in your PC the partition is really around 1GB

My guess is that the block size is really 512 bytes, instead of 1024 as it claim.

In that case size of the partition should be:

   3091 blocks x 512 bytes/block =~ 1.5GB

Is this correct?

So, you really want a first partition of 3GB, is this the problem?

0 Kudos

616 Views
juangutierrez
NXP Employee
NXP Employee

I think the problem is for some reason you are seeing the first partition as Windows FAT32

ALL the partitions should be linux type (id 83) but partition 3 of Extended type.

None of them should be of FAT type

This is how it should look like

  Device Boot Start  End    MiB    #blocks  Id  System

/dev/mmcblk1p1        8    15      8      8192  83  Linux

/dev/mmcblk1p2        16    23      8      8192  83  Linux

/dev/mmcblk1p3        24  1103  1080    1105920    5  Extended

/dev/mmcblk1p4      1104  3763  2660    2723840  83  Linux

/dev/mmcblk1p5        24+  535    512-    524287+  83  Linux

/dev/mmcblk1p6      536+  1047    512-    524287+  83  Linux

/dev/mmcblk1p7      1048+  1055      8-      8191+  83  Linux

/dev/mmcblk1p8      1056+  1063      8-      8191+  83  Linux

Warning: partition 4 extends past end of disk

Successfully wrote the new partition table

There is a note dumped by the mksdcard-android.sh script, that I think is related with what you are observing

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

I guess you should first erase the partition table  in your Linux PC like below

sudo dd if=/dev/zero of=/dev/sdX bs=512 count=1

   where sdX is your SD card device like (sdb or sdc)

Then try again, with the MFG tool

0 Kudos