u-boot-2010.3 version build for s3c2410

本文档描述了将u-boot-2010.3版本移植到使用S3C2410芯片的老款ARM开发板的过程。首先解决了由于EABI问题导致的编译失败,通过更换arm-linux-gcc 4.4.3版本工具链成功构建。其次,修改了uboot配置以匹配S3C2410,仅支持nor flash,并调整了环境区域大小。最后,使用OpenJTAG进行烧录,并计划后续开启DHCP功能,添加nand闪存驱动,以支持nand闪存,并运行Linux内核。
摘要由CSDN通过智能技术生成

i have an old arm develop board using s3c2410 chip, and recently i bought an openjtag to burn and debug code.


so i want to build an uboot .   the board's match uboot is very old, about 5 years ago, 1.14 version. i compare it with new version 2010.3, the different is very big.


so i want to port 2010.3 version uboot to s3c2410.


1. i need create toolchains.

  i use an arm-linux-gcc-3.4.5, and build 2010.3 version uboot, failed, it report some EABI problem.

i don't want to fix this bug. just change the toolchains, at last i use arm-linux-gcc 4.4.3 vesion , it can build 2010.3 version uboot sucessfully.


2. second, i need modify the uboot code to match s3c2410.

NOTE:uboot only support nor flash. if you want to support Nand flash, you need add nand flash driver. this time ,we only want to support nor flash.

  only modify the include/configs/smdk2410.h


#define PHYS_FLASH_SIZE         0x01000000 /* 16MB */
#define CONFIG_SYS_MAX_FLASH_SECT       (128)   /* max number of sectors on one chip */
#define CONFIG_ENV_ADDR         (CONFIG_SYS_FLASH_BASE + 0x070000) /* addr of environment */

modify the size of nor flash as 16M


#define CONFIG_ENV_IS_IN_FLASH  1
#define CONFIG_ENV_SIZE         0x20000 /* Total Size of Environment Sector */


and change the environment area size, common size is one sector. for s3c2410 in my board, i use 28F128J3A, its size is 16M, and sector size is 0x20000.


3.compile and burn

make smdk2410_config

make

i use openjtag connect with the board, and use oflash burn it.


also can use openocd to burn it to ram, then use use openocd internal command to write it to nor flash.


4. note

  uboot support nor flash well, so modify very little.
later , i will open DHCP function in uboot, and port nand flash driver to uboot to support nand flash, some one have done it. at last i will run the linux kernel in this board.







评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值