OK6410A 开发板 (六) 1 OK6410A linux-4.0 移植

增加 arch/arm/configs/forlinx6410_defconfig
增加 firmware/sd8686.bin 
增加 firmware/sd8686_helper.bin 
用下面的编译器

$ arm-none-linux-gnueabi-gcc --version 
arm-none-linux-gnueabi-gcc (Sourcery CodeBench Lite 2014.05-29) 4.8.3 20140320 (prerelease)
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

编出来的uImage, 能正常启动


或者 用下面的配置
arch/arm/configs/s3c6400_defconfig
编译器 : arm-none-linux-gnueabi-gcc (Sourcery CodeBench Lite 2014.05-29) 4.8.3 20140320 (prerelease)
也可以启动

linux-4.0 ok6410a sd卡启动最小配置

  • defconfig
看出来,在 linux-4.0 及以上版本只需要配置相应的 config , 应该能正常boot

我需要在 linux-4.0 中 做一个 最小的 defconfig


CONFIG_ARCH_S3C64XX=y
CONFIG_MACH_SMDK6410=y
CONFIG_AEABI=y
CONFIG_MMC=y
CONFIG_MMC_SDHCI=y
CONFIG_MMC_SDHCI_S3C=y
CONFIG_SERIAL_SAMSUNG=y
CONFIG_SERIAL_SAMSUNG_CONSOLE=y
CONFIG_EXT3_FS=y


u-boot 的 bootargs 中要添加rootwait
  • gcc
$ arm-none-linux-gnueabi-gcc --version 
arm-none-linux-gnueabi-gcc (Sourcery CodeBench Lite 2014.05-29) 4.8.3 20140320 (prerelease)
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

其他

make defconfig 的过程中 生成了 以下两个文件,类型为 ELF 64-bit LSB executable
scripts/kconfig/conf
scripts/basic/fixdep
  • 编译内核的软件要求
Documentation/process/changes.rst

猜你喜欢

转载自blog.csdn.net/u011011827/article/details/114689852