【TINY4412】U-BOOT移植笔记:(10)EMMC驱动

【TINY4412】U-BOOT移植笔记:(10)EMMC驱动

宿主机 : 虚拟机 Ubuntu 16.04 LTS / X64
目标板[底板]: Tiny4412SDK - 1506
目标板[核心板]: Tiny4412 - 1412
U-BOOT版本: 2017.03
交叉编译器: gcc-arm-none-eabi-5_4-2016q3
日期: 2017-5-13 22:57:12
作者: SY

查看文件

./drivers/mmc/exynos_dw_mmc.c

290 static const struct udevice_id exynos_dwmmc_ids[] = {
291     { .compatible = "samsung,exynos4412-dw-mshc" },
292     { }
293 };

修改文件

root@ubuntu:/opt/u-boot-2017.03# git diff 807828 43502b
diff --git a/arch/arm/dts/exynos4412-tiny4412.dts b/arch/arm/dts/exynos4412-tiny4412.dts
index 96ec2c2..342eb44 100644
--- a/arch/arm/dts/exynos4412-tiny4412.dts
+++ b/arch/arm/dts/exynos4412-tiny4412.dts
@@ -75,6 +75,7 @@
};

dwmmc@12550000 {
        compatible = "samsung,exynos4412-dw-mshc";
        samsung,bus-width = <8>;
        samsung,timing = <2 1 0>;
        samsung,removable = <0>;
        fifoth_val = <0x203f0040>;
        bus_hz = <400000000>;
        div = <0x3>;
        index = <4>;
    };

测试

U-Boot 2017.03-g807828f-dirty (May 13 2017 - 07:51:54 -0700) for TINY4412



CPU:   Exynos4412 @ 1.4 GHz

Model: Tiny4412 based on Exynos4412

Board: Tiny4412 based on Exynos4412

DRAM:  1 GiB

WARNING: Caches not enabled

MMC:   SAMSUNG SDHCI: 0, EXYNOS DWMMC: 1

Hit any key to stop autoboot:  0 

SD/MMC found on device 0

reading uEnv.txt

** Unable to read file uEnv.txt **

reading boot.scr

** Unable to read file boot.scr **

reading uImage

** Unable to read file uImage **

Wrong Image Format for bootm command

ERROR: can't get kernel image!

TINY4412# 



TINY4412# mmc list

SAMSUNG SDHCI: 0 (SD)

EXYNOS DWMMC: 1 (eMMC)

TINY4412# mmc dev 1

switch to partitions #0, OK

mmc1(part 0) is current device

TINY4412# mmc info

Device: EXYNOS DWMMC

Manufacturer ID: 15

OEM: 100

Name: 4YMD3 

Tran Speed: 52000000

Rd Block Len: 512

MMC version 5.0

High Capacity: Yes

Capacity: 3.6 GiB

Bus Width: 8-bit

Erase Group Size: 512 KiB

HC WP Group Size: 8 MiB

User Capacity: 3.6 GiB WRREL

Boot Capacity: 4 MiB ENH

RPMB Capacity: 512 KiB ENH

TINY4412#

你可能感兴趣的:(TINY4412,U-BOOT)