新手从零编译uboot源码(三),配置 uboot spl ,编译 SPL 代码

第一步: 在 uboot根目录下Kconfig 文件中增加 4行代码,如下

config SUPPORT_SPL
	bool "SUPPORT_SPL suozhang"
config SPL
	bool "SPL suozhang"

具体位置:

menu "Boot images"

config ANDROID_BOOT_IMAGE
	bool "Enable support for Android Boot Images"
	default y if FASTBOOT
	help
	  This enables support for booting images which use the Android
	  image format header.

config SUPPORT_SPL
	bool "SUPPORT_SPL suozhang"
config SPL
	bool "SPL suozhang"

config FIT
	bool "Support Flattened Image Tree"
	select MD5
	select SHA1
	help
	  This option allows you to boot the new uImage structure,
	  Flattened Image Tree.  FIT is formally a FDT, which can include
	  images of various types (kernel, FDT blob, ramdisk, etc.)
	  in a single blob.  To boot this new uImage structure,
	  pass the address of the blob to the "bootm" command.
	  FIT is very flexible, supporting compression, multiple images,
	  multiple configurations, verification through hashing and also
	  verified boot (secure boot using RSA).

第二步:在uboot根目录configs/s5pv210_goni_suozhang_defconfig文件中 增加下面两行宏定义:

CONFIG_SUPPORT_SPL=y
CONFIG_SPL=y

第三步: make s5pv210_goni_suozhang_defconfig

第四步:make,发现以下错误,初步判定是 这些函数未定义,估计要自己实现

common/spl/built-in.o: In function `board_boot_order':
/home/suozhang/linux/u-boot-2018.11/common/spl/spl.c:404: undefined reference to `spl_boot_device'
common/spl/built-in.o: In function `board_init_r':
/home/suozhang/linux/u-boot-2018.11/common/spl/spl.c:493: undefined reference to `hang'
/home/suozhang/linux/u-boot-2018.11/common/spl/spl.c:500: undefined reference to `timer_init'
/home/suozhang/linux/u-boot-2018.11/common/spl/spl.c:504: undefined reference to `spl_board_init'
make[1]: *** [spl/u-boot-spl] Error 1
make: *** [spl/u-boot-spl] Error 2
[root@VM_0_3_centos u-boot-2018.11]# 
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值