Skip to content

tclin08/buglab4412

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

buglab4412

课程:u-boot移植新手实践入门

第一节:移植环境搭建 开发板:itop4412 CPU:cortex A9系列的exynos 4412

1.1 u-boot来源:Samsung官方

1.2 删除无关的目录和文件: 顶层目下: 删除 lib_arm、lib_generic 外其他 'lib_*' 目录

include/: 删除 asm-arm 、asm-generic 外其他 'asm-*' 目录

include/asm-arm: 删除 arch-s5pc210 外其他'arch-*' 目录

include/configs/: 删除 'tc4_*' 外的其他文件和目录

cpu/: 删除 'arm_cortexa9' 外的其他目录

board/: 删除 'samsung' 外的其他目录

board/samsung/: 删除 'smdkc210' 外的其他目录 脚本文件:rm_nuse_file.sh

初识u-boot移植实践

1、创建目标板编译配置

a、Makefile 添加编译规则

itop4412_linux_config: unconfig @$(MKCONFIG) $(@:_config=) arm arm_cortexa9 smdkc210 samsung s5pc210

b、在include/configs/添加板级配置头文件: demo板是tc4,所以以tc4板级的配置头文件为基础: cp tc4_android.h itop4412_linux.h

2、修改过编译脚本build_uboot.sh:

修改加密文件路径;

生成目标镜像加密文件: cat E4412_N.bl1.SCP2G.bin bl2.bin all00_padding.bin u-boot.bin tzsw_SMDK4412_SCP_2GB.bin > u-boot-itop-4412.bin

3、修改交叉编译工具所在的路劲:

CROSS_COMPILE = arm-none-linux-gnueabi-

4、修改烧录到SD卡脚本mkuboot

5、修改打印信息显示的板子名称

U-Boot 2010.03 (Sep 22 2018 - 11:12:28) for TC4 Android

将 ‘for TC4 Android’ 改成 ‘for itop linux’

Board: TC4- 修改为 Board: itop4412

include/config/itop4412_linux.h

-#define CONFIG_DEVICE_STRING "TC4-"

+#define CONFIG_DEVICE_STRING "itop4412"

-#define CONFIG_IDENT_STRING " for TC4 Android"

+#define CONFIG_IDENT_STRING " for itop linux"

6、适配电源管理芯片

PMIC: Pls check the i2c @ pmic, id = 21,error 添加id = 21 的适配,板子上使用的电源管理芯片是S5M8767

在cpu/arm_cortexa9/s5pc210/pmic.c --> PMIC_InitIp()函数中,芯片为S5M8767中添加id = 21

7、修改过u-boot命令提示符

命令提示符:TC4 # 修改为:itop4412 #

<<<<<<< HEAD -#define CONFIG_SYS_PROMPT "TC4 # "

+#define CONFIG_SYS_PROMPT "itop4412 # "

ddr3移植

1、ddr3初始化:

a、修改MEMCONTROL寄存器的值,DMC-0 上内存的起始地址配置为0x4000_0000,DMC-1 上内存的起始地址配置为A000_0000

b、根据开发板所使用的内存设备,配置MEMCONFIG0寄存器

c、根据时钟频率配置TIMINGAREF寄存器

======= -#define CONFIG_SYS_PROMPT "TC4 # "

+#define CONFIG_SYS_PROMPT "itop4412 # "

master

About

u-boot移植新手实践,在itop4412开发板上实现u-boot移植实践

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 93.0%
  • Makefile 2.2%
  • C++ 2.1%
  • Objective-C 1.2%
  • Assembly 0.8%
  • PHP 0.4%
  • Other 0.3%