U-Boot Commnd

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 setdsr <value> - set DSR register value

mmc list

FSL_SDHC: 0 (eMMC)

FSL_SDHC: 1

FSL_SDHC: 2

mmc info

Device: FSL_SDHC

Manufacturer ID: 11

OEM: 100

Name: 004G9

Tran Speed: 52000000

Rd Block Len: 512

MMC version 4.5

High Capacity: Yes

Capacity: 3.7 GiB

Bus Width: 8-bit

Erase Group Size: 512 KiB

HC WP Group Size: 4 MiB

User Capacity: 3.7 GiB WRREL

Boot Capacity: 2 MiB ENH

RPMB Capacity: 512 KiB ENH

mmc part

Partition Map for MMC device 0 -- Partition Type: DOS

Part Start Sector Num Sectors UUID Type

1 8192 32768 00039759-01 0c

2 40960 7086080 00039759-02 83

mmc dev

BOOTM

For Linux, exactly one optional argument can be passed. If it is present, it is interpreted as the start address of a initrd ramdisk image (in RAM, ROM or flash memory). In this case the bootm command consists of three steps:

first the Linux kernel image is uncompressed and copied into RAM, then the ramdisk image is loaded to RAM, and finally control is passed to the Linux kernel, passing information about the location and size of the ramdisk image.

To boot a Linux kernel image without a initrd ramdisk image, the following command can be used:

bootm $(kernel_addr)

If a ramdisk image is used, type:

bootm $(kernel_addr) $(ramdisk_addr)

Reference


https://www.toradex.com/community/questions/11348/apalis-imx6q-nand-corruption.html

https://boundarydevices.com/u-boot-on-i-mx6/

https://sites.google.com/site/linuxkernel88/kernel-exploration/u-boot

results for ""

    No results matching ""