X-009 FriendlyARM tiny4412 uboot移植之SD Card用起来Kernel boot起来
Posted LoTGu
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了X-009 FriendlyARM tiny4412 uboot移植之SD Card用起来Kernel boot起来相关的知识,希望对你有一定的参考价值。
<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
开发环境:win7 64位 + VMware12 + Ubuntu14.04 64位
工具链:linaro提供的gcc-linaro-6.1.1-2016.08-x86_64_arm-linux-gnueabi
要移植的u-boot版本:u-boot-2016-11
Git仓库地址:https://github.com/X-Project-FriendlyARMTiny4412/u-boot
Tiny4412开发板硬件版本为:
底板: Tiny4412/Super4412SDK 1506
核心板:Tiny4412 - 1412
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
在上一节中我们已经完成了把u-boot.bin从SD卡上拷贝到DDR内存,并跳转到DDR内存中去执行u-boot的工作。这节仅先记录下如何把SDCard用起来,并且把Kernelboot起来的一些具体的操作,详细分析后面再写。
1、Tiny4412 SDCard用起来
代码修改如下:
diff --git a/arch/arm/dts/exynos4412-tiny4412.dts b/arch/arm/dts/exynos4412-tiny4412.dts index a467250..3010f50 100644 --- a/arch/arm/dts/exynos4412-tiny4412.dts +++ b/arch/arm/dts/exynos4412-tiny4412.dts @@ -1,29 +1,135 @@ /* - * FriendlyARM Tiny4412 board device tree source - * + * FriendlyARM\'s Exynos4412 based TINY4412 board device tree source * 2016 * Author AP0904225 <ap0904225@qq.com> * - * SPDX-License-Identifier: GPL-2.0+ - */ + * Device tree source file for FriendlyARM\'s TINY4412 board which is based on + * Samsung\'s Exynos4412 SoC. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * SPDX-License-Identifier: GPL-2.0+ + * +*/
/dts-v1/; #include "exynos4412.dtsi"
/ { - model = "Tiny4412 based on Exynos4412"; - compatible = "samsung,tiny4412", "samsung,exynos4412"; - - chosen { - stdout-path = "serial0"; - }; + model = "FriendlyARM TINY4412 board based on Exynos4412"; + compatible = "friendlyarm,tiny4412", "samsung,exynos4412", "samsung,exynos4";
aliases { serial0 = "/serial@13800000"; console = "/serial@13800000"; + mmc2 = "/sdhci@12530000"; + mmc4 = "/dwmmc@12550000"; };
- serial0:serial@13810000 { + memory { + reg = <0x40000000 0x40000000>; + }; + + serial0:serial@13800000 { status = "okay"; }; + + serial1:serial@13810000 { + status = "disabled"; + }; + + serial2:serial@13820000 { + status = "disabled"; + }; + + serial3:serial@13830000 { + status = "disabled"; + }; + + serial4:serial@13840000 { + status = "disabled"; + }; + + i2c@13860000 { + status = "disabled"; + }; + + i2c@13870000 { + status = "disabled"; + }; + + i2c@13880000 { + status = "disabled"; + }; + + i2c@13890000 { + status = "disabled"; + }; + + i2c@138a0000 { + status = "disabled"; + }; + + i2c@138b0000 { + status = "disabled"; + }; + + i2c@138c0000 { + status = "disabled"; + }; + + i2c@138d0000 { + status = "disabled"; + }; + + sdhci@12510000 { + compatible = "samsung,exynos4412-sdhci"; + status = "disabled"; + }; + + sdhci@12520000 { + compatible = "samsung,exynos4412-sdhci"; + status = "disabled"; + }; + + sdhci@12530000 { + compatible = "samsung,exynos4412-sdhci"; + samsung,bus-width = <4>; + samsung,timing = <1 2 3>; + cd-gpios = <&gpk2 2 0>; + }; + + sdhci@12540000 { + compatible = "samsung,exynos4412-sdhci"; + status = "disabled"; + }; + + dwmmc@12550000 { + samsung,bus-width = <8>; + samsung,timing = <2 1 0>; + samsung,removable = <0>; + fifoth_val = <0x203f0040>; + bus_hz = <400000000>; + div = <0x3>; + index = <4>; X-004 FriendlyARM tiny4412 uboot移植之点亮指路灯 X-003 FriendlyARM tiny4412 uboot移植之添加相应目录文件 X-005 FriendlyARM tiny4412 uboot移植之时钟初始化 X-007 FriendlyARM tiny4412 u-boot移植之内存初始化 |