How to check an image in eMMC Flash on the i.MX6 board

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

How to check an image in eMMC Flash on the i.MX6 board

1,786 Views
yuuki
Senior Contributor II

Dear all,

We made a board using i.MX6Q.
We wrote in an image of Android4 .4.3 to the board.

However, one board has a problem to reboot during operation.

We want to confirm the image that we wrote in to this eMMC Flash.
(***.img and diff file)

Is there the method to pick up (retrieve ) an image in eMMC?
Would you tell me it if there is the method?

Best Regards,
Yuuki

Labels (2)
Tags (3)
0 Kudos
4 Replies

1,074 Views
Yuri
NXP Employee
NXP Employee

Hello,

 

  You may try to read eMMC blocks in U-boot (and copy them to SD card or via TFTP to a host).

 

Have a great day,

Yuri

 

------------------------------------------------------------------------------

Note: If this post answers your question, please click the Correct

Answer button. Thank you!

------------------------------------------------------------------------------

0 Kudos

1,074 Views
yuuki
Senior Contributor II

Dear Yuri-san,

Thank you for your support.

I checked a command of U-Boot.

However, I was not able to find such a command.

Would you tell me the concrete command?

Best Regards,
Yuuki

0 Kudos

1,074 Views
Yuri
NXP Employee
NXP Employee

Hello,

  Please use commands of MMC sub system - mmc.

=> help mmc
mmc - MMC sub system

Usage:
mmc info - display info of the current MMC device
mmc read addr blk# cnt
mmc write addr blk# cnt
mmc erase blk# cnt
mmc rescan
mmc part - lists available partition on current mmc device
mmc dev [dev] [part] - show or set current mmc device [partition]
mmc list - lists available devices
mmc hwpartition [args...] - does hardware partitioning
arguments (sizes in 512-byte blocks):
[user [enh start cnt] [wrrel {on|off}]] - sets user data area attributes
[gp1|gp2|gp3|gp4 cnt [enh] [wrrel {on|off}]] - general purpose partition
[check|set|complete] - mode, complete set partitioning completed
WARNING: Partitioning is a write-once setting once it is set to complete.
Power cycling is required to initialize partitions after set to complete.
mmc bootbus dev boot_bus_width reset_boot_bus_width boot_mode
- Set the BOOT_BUS_WIDTH field of the specified device
mmc bootpart-resize <dev> <boot part size MB> <RPMB part size MB>
- Change sizes of boot and RPMB partitions of specified device
mmc partconf dev boot_ack boot_partition partition_access
- Change the bits of the PARTITION_CONFIG field of the specified device
mmc rst-function dev value
- Change the RST_n_FUNCTION field of the specified device
WARNING: This is a write-once field and 0 / 1 / 2 are the only valid values.
mmc setdsr <value> - set DSR register value

Regards,

Yuri.

0 Kudos

1,074 Views
yuuki
Senior Contributor II

Dear Yuri-san,

Thank you for your support.

We have one system having the unpredictable reboot issue.
We suspect that software is broken.
We want to check the contents of the eMMC device on the board.

We extract data by the mmc command and cannot compare it.

Is there the good idea other than mmc command?

Best Regards,
Yuuki

0 Kudos