Tool/software: Linux
Dear,
We have designed board broadly based on AM437x-gp-evm and We use SDK 4.01. It is working good.
Now I want to boot my system from eMMC. I made two partitions (mmcblk1p1 and mmcblk1p2). as per below guidelines.
- The eMMC is /dev/mmcblk1. Format it this way:
- fdisk /dev/mmcblk1
- o- this clears the existing partitions
- p - this lists all partition tables on the card (there should be none)
- n - create a new partition
- p - primary partition
- 1 - partition number
- 2048 - default value for the first sector
- +16M - last sector / partition size
- t - change the partition type (select partition 1)
- e - change tha partition type to "W95 FAT16 (LBA)"
- a - set the bootable flag for the selected partition (1)
- n - create a new partition
- p - primary partition
- 2 - partition number
- hit Enter to choose the default (next available) value for the first sector
- hit Enter to choose the default (last) value for the last sector
- p - this lists all partition tables on the card (there should be two)
- w - write all the above changes to disk
- umount /dev/mmcblk1p1; mkfs.vfat -F 16 /dev/mmcblk1p1 - format the first partition
- umount /dev/mmcblk1p2; mkfs.ext4 /dev/mmcblk1p2 - format the second partition.
It formated correctly. Then i copied the files as given below from root@am437x-evm :
# mkdir boot
- # mount /dev/mmcblk1p1 boot
- # cp MLO boot
- # cp u-boot.img boot
- #umount boot
Copied file system as given below
- # mkdir root
- # mount /dev/mmcblk1p2 root
- cp -r /usr/bin/rootfs/* root
- # umount root
Both partitions has been done perfectly and copied all the files also.
I used sdk 2.0 uboot source and generated MLO and u-boot.img and copied to my eMMC first partition.
I have edited below lines in "am43xx.h"
#define FAT_ENV_DEVICE_AND_PART "1:1" from #define FAT_ENV_DEVICE_AND_PART "0:1"
and i have edited "bootpart=1:2\0" \ from "bootpart=0:2\0" \ below bold line in below function
#define CONFIG_EXTRA_ENV_SETTINGS \
DEFAULT_LINUX_BOOT_ENV \
DEFAULT_MMC_TI_ARGS \
"fdtfile=undefined\0" \
"bootpart=1:2\0" \
"bootdir=/boot\0" \
"bootfile=zImage\0" \
Please find my attached "am43xx.h"
Now i removed sd card and boot from eMMC, I am getting only one line of message as given below
U-Boot SPL 2015.07-00114-gf8d68d1-dirty (Sep 03 2018 - 15:12:44)
It does not boot. from eMMC .Kindly go through my "am43xx.h" file.
Is there any mistake in my "am43xx.h"? How do i solve this problem?
Regards,
Winiston.P