mmc命令(MMC command).doc
文本预览下载声明
mmc命令(MMC command)
Steps:
1. Memory processing
1.1: check whether the memory of 0USES md. B 00x50
1.2: if the user is clear, mw. B 00xff 0x50
2. Read the files in MMC 0 into memory
2.1: read 10240bytes (10k) into memory from MMC; Fatload MMC 0 0u-boot.bin 0x2800. Of these, 0x2800 must be represented in hexadecimal.
2.2: check the memory 0x8000000 and can already write the data, md. B 00x100, which is only viewed here.
3. Switch MMC equipment to make it in the second fastest MMC equipment
3.1: switching equipment, MMC dev 1
3.2: view information, mmcinfo
4. Read the memory data into MMC 1, MMC write 00x00 0x00 0x14, where 0x14 = 20, and if every 512k, 512 * 20 = 10240byets = 10k.
5. Clear memory data validation. Mw. B 0 0 XFF 0 x2800
6. Write data from MMC 1 to memory MMC read 00x00 0x14
7. Check the data content of 0in memory, md. B 00x100. As the above comparison shows, the data remains constant.
Copy u-boot.bin (2k) to the emmc:
1. Switch equipment to emmc: MMC dev 1
2. Empty memory: 2 * 1024 = 2048byte = 0x800 mw. B 00xff 0x800
3. Check the memory status: md. B 00x800, if the whole is 0xff;
4. Read u-boot. Bin into memory from MMC 0. So lets just copy 2k, 2 times 1024 = 2048 = 0x800
Panda # fatload MMC 0 0u-boot. Bin 0x800
Reading u - boot. Bin
2048 bytes read
Ea 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5...14 f0 9f e5 14 f0 9f e5 14 f0 9f e5 14 f0 9f e5...
80 002 e8 80 60 02 e8 80 c0 02 e8 80 20 03 e8 80... `... ...
80 003 e8 80 e8 80 40 04 e8 80 78 56 34 12... @... XV4.
E8 80 e0 da 02 00 e0 da 02 00 b8 1a 07 00...
8000001 DE c0 AD 0b 9d 03 00 eb 00 0f e1 p8...
8000060:1f 00 c0, c0, e3, d3, 80 e3, 80 e3, f0 29 e1 10 0f 11 ee... ) ...02 0a c0 e3 10 0f 01 ee 08 04 9f e5 10 0f 0c ee...
.
.
.
800007a0:04 e0 13 f0 01 0f 05 d0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
显示全部