Other Parts Discussed in Thread: TMDSEVM572X, BEAGLEBOARD-X15, , DRA752
Hi
I have a problem in booting TMDSEVM572x board from eMMC NAND flash.
I've made a SD Card and programmed it with boot and rootfs partitions.
booting from SD Card is OK.
Also I copied contents of both boot and rootfs partitions of SD Card in a third partition in SD Card for programming those boot/rootfs contents into eMMC NAND flash during normal run that booted from SD Card.
After booting from SD Card, I made two partitions in eMMC NAND flash as boot (with type FAT and size 70MB) and rootfs (with type ext3 and size 3.5GB).
the partitions of SD Card and eMMC are as follows:
root@am57xx-evm:~# fdisk -l /dev/mmcblk0 /dev/mmcblk1
Disk /dev/mmcblk0: 14.8 GiB, 15836643328 bytes, 30930944 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xc7a63f89
Device Boot Start End Sectors Size Id Type
/dev/mmcblk0p1 * 2048 145407 143360 70M c W95 FAT32 (LBA)
/dev/mmcblk0p2 145408 8000000 7854593 3.8G 83 Linux
/dev/mmcblk0p3 8001536 30930943 22929408 11G 83 Linux
Disk /dev/mmcblk1: 3.6 GiB, 3825205248 bytes, 7471104 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0xc2c50f99
Device Boot Start End Sectors Size Id Type
/dev/mmcblk1p1 * 2048 145407 143360 70M c W95 FAT32 (LBA)
/dev/mmcblk1p2 145408 7471103 7325696 3.5G 83 Linux
the mounted drives are as follows :
root@am57xx-evm:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/root 3800016 3320876 282776 92% /
devtmpfs 837852 4 837848 0% /dev
tmpfs 933084 8 933076 0% /dev/shm
tmpfs 933084 18020 915064 2% /run
tmpfs 933084 0 933084 0% /sys/fs/cgroup
tmpfs 933084 2208 930876 0% /tmp
tmpfs 51200 16 51184 0% /var/volatile
tmpfs 16384 0 16384 0% /media/ram
/dev/mmcblk0p3 11219216 3342812 7303172 31% /run/media/mmcblk0p3
/dev/mmcblk1p1 70561 1523 69039 2% /run/media/mmcblk1p1
/dev/mmcblk1p2 3523632 3320340 20972 99% /run/media/mmcblk1p2
/dev/mmcblk0p1 70561 1523 69038 2% /run/media/mmcblk0p1
tmpfs 186616 0 186616 0% /run/user/0
the partition /dev/mmcblk0p1 is as boot in SD Card that has mounted as /run/media/mmcblk0p1 drive.
the partition /dev/mmcblk0p2 is as rootfs in SD Card that has mounted as /dev/root drive.
the partition /dev/mmcblk0p3 is as temporary holder for boot and rootfs contents.
the partitions /dev/mmcblk1p1 and /dev/mmcblk1p2 are for eMMC.
I copied the contents of boot folder from SD Card into boot partition of eMMC. also I copied the contents of rootfs folder from SD Card into rootfs partition of eMMC.
root@am57xx-evm:~# ls /run/media/mmcblk0p3/
boot rootfs
root@am57xx-evm:~# cp -r /run/media/mmcblk0p3/rootfs/* /run/media/mmcblk1p2
root@am57xx-evm:~# cp -r /run/media/mmcblk0p3/boot/* /run/media/mmcblk1p1
After discarding SD Card and powering up the board, I expected the EVM to boot correctly from eMMC. but it does not boot and give warning and errors as follows :
U-Boot SPL 2019.01-g8b90adfb16 (Jul 07 2019 - 08:22:29 +0000)
DRA752-GP ES2.0
Trying to boot from MMC2_2
no pinctrl state for default mode
no pinctrl state for default mode
Loading Environment from FAT... Card did not respond to voltage select!
Loading Environment from MMC... *** Warning - bad CRC, using default environment
U-Boot 2019.01-g8b90adfb16 (Jul 07 2019 - 08:22:29 +0000)
CPU : DRA752-GP ES2.0
Model: TI AM5728 BeagleBoard-X15
Board: AM572x EVM REV A.3A
DRAM: 2 GiB
MMC: OMAP SD/MMC: 0, OMAP SD/MMC: 1
Loading Environment from FAT... MMC: no card present
Loading Environment from MMC... *** Warning - bad CRC, using default environment
Net:
Warning: ethernet@48484000 using MAC address from ROM
eth0: ethernet@48484000
Hit any key to stop autoboot: 0
MMC: no card present
MMC: no card present
MMC: no card present
MMC: no card present
Trying to boot Linux from eMMC ...
switch to partitions #0, OK
mmc1(part 0) is current device
SD/MMC found on device 1
4256256 bytes read in 56 ms (72.5 MiB/s)
134586 bytes read in 3 ms (42.8 MiB/s)
Trying to boot Android from eMMC ...
switch to partitions #0, OK
mmc1(part 0) is current device
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]
- Show or 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
Wrong Image Format for bootm command
ERROR: can't get kernel image!
=>
how can I resolve this problem?
any hep would be appreciated.
Regards,
Ali

