OK6410 UBOOT移植(5)

修改/cpu/arm1176 下的Makefile文件 COBJS=cpu.o nand_cp.o 其中nand_cp.o是新添加的

然后进入到文件夹nand_spl\board进入samsung文件夹,进入复制后的smdk6410文件夹,进入Makefile

修改:COBJS=nand_boot.onand_ecc.o s3c64xx.o nand_cp.o

在代码

# from SoC directory
$(obj)cpu_init.S:
 @rm -f $@
 @ln -s $(TOPDIR)/cpu/arm1176/s3c64xx/cpu_init.S $@

之后添加

$(obj)nand_cp.c:
 @rm -f $@
 @ln -s $(TOPDIR)/cpu/arm1176/nand_cp.c $@ 

修改cpu/arm1176 下的u-boot.lds

. = ALIGN(4);
 .text :
 {
  cpu/arm1176/start.o (.text)
  board/samsung/smdk6410/lowlevel_init.o (.text)
  cpu/arm1176/s3c64xx/cpu_init.o (.text)
  cpu/arm1176/nand_cp.o (.text)
  *(.text)
 } 

修改board/samsung/smdk6410中的u-boot-nand.lds

. = ALIGN(4);
 .text      :
 {
   cpu/arm1176/start.o (.text)
   cpu/arm1176/s3c64xx/cpu_init.o (.text)
 board/samsung/smdk6410/lowlevel_init.o (.text)
 cpu/arm1176/s3c64xx/cpu_init.o (.text)
 cpu/arm1176/nand_cp.o (.text)
   *(.text)
 }

移植的第一阶段基本完成,进行第一步测试

 OK6410 UBOOT移植(5)_第1张图片

 

使用飞凌的linux手册中USB下载方法把编译生成的u-boot.bin下载到板子中

发现uboot已经基本上可以使用,存在一些BUG,需要慢慢解决。

 

你可能感兴趣的:(OK6410 UBOOT移植(5))