TI中文支持网
TI专业的中文技术问题咨询交流网站

K2G EVM development board failed to start from EMMC( K2G evm开发板 emmc启动不成功)

My K2G EVM development board failed to start through EMMC.

Operation steps:

1. After using SD card, EMMC is divided into FAT32 and ext3;

2. Compile the U boot with the default configuration of K2G ﹣ EVM ﹣ defconfig, and copy the MLO and u-boot.img files to the FAT32 partition

3. Turn the dial switch to EMMC start and turn on the power.

What are the wrong operations? What should I do to successfully start from EMMC? I hope to get some help. Thank you very much.

我的K2G evm开发板,通过emmc启动不成功。
操作步骤:
1、使用SD卡启动后,将emmc分区,分为Fat32和ext3格式的两个区;
2、使用k2g_evm_defconfig默认配置编译Uboot,将MLO和u-boot.img文件拷贝到Fat32分区
3、将拨码开关调到EMMC启动,接通电源。
哪些操作是错误的,我应该怎样做才能成功从EMMC启动,希望得到一些帮助,非常感谢。

Shine:

请问启动后是否有打印信息?打印信息是什么? 用的是最新的SDK吗?

yanzu xi:

回复 Shine:

启动后没有打印,我在uboot的Start.S代码,CPU关中断后加了点灯操作,上电后灯没有亮。

yanzu xi:

回复 Shine:

在网上下载的SDK,PROCESSOR-SDK-LINUX-K2G

yanzu xi:

回复 Shine:

使用的是Processor SDK Linux06_00_00_07

Shine:

回复 yanzu xi:

请问是通过uboot给emmc分区的吗?请参考下面的链接。
software-dl.ti.com/…/Foundational_Components_U-Boot.html

下面是个patch。
patchwork.ozlabs.org/…/

yanzu xi:

回复 Shine:

在当前版本上,这个patch应该是已经打好了。
我以前通过Uboot分区,然后按照文档进行emmc烧写:
U-Boot # mmc dev 0
U-Boot # mmc rescan
U-Boot # mmc dev 1
U-Boot # fatload mmc 0 ${loadaddr} MLO
U-Boot # mmc write ${loadaddr} 0x100 0x100
U-Boot # mmc write ${loadaddr} 0x200 0x100
U-Boot # fatload mmc 0 ${loadaddr} u-boot.img
U-Boot # mmc write ${loadaddr} 0x300 0x400
U-Boot # fatload mmc 0 ${loadaddr} rootfs.ext4
U-Boot # mmc write ${loadaddr} 0x1000 …rootfs.ext4 size in bytes divided by 512, in hex…

我的MLO有4M大小,烧录的时候地址和大小和文档中的一样吗(mmc write ${loadaddr} 0x100 0x100)?

yanzu xi:

回复 Shine:

eth0: netcp@4000000
Hit any key to stop autoboot:0
=> setenv partitions 'uuid_disk=${uuid_gpt_disk};name=rootfs,start=2MiB,size=-,uuid=${uuid_gpt_rootfs}'
=> setenv uuid_gpt_disk c3c4b98b-d9b8-40e3-897c-ad25cf84226c
=> setenv uuid_gpt_rootfs bbc40f0b-65bb-445b-87c9-8159fdeef0c2
=> gpt write mmc 1 ${partitions}
Writing GPT: success!
=>
分区成功了,后面怎样将MLO和u-boot.img烧录进去,怎样确定地址和烧录大小。希望得到您的回复,谢谢!

yanzu xi:

回复 Shine:

分区完之后查看分区信息:是正确的吗?
Disk /dev/mmcblk1: 14.6 GiB, 15636365312 bytes, 30539776 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: gpt
Disk identifier: C3C4B98B-D9B8-40E3-897C-AD25CF84226C

DeviceStartEndSectorsSize Type
/dev/mmcblk1p14096 30539742 30535647 14.6G Microsoft basic data

赞(0)
未经允许不得转载:TI中文支持网 » K2G EVM development board failed to start from EMMC( K2G evm开发板 emmc启动不成功)
分享到: 更多 (0)