uboot移植过程出现的错误

本文详细介绍了在U-Boot移植过程中遇到的三个错误:inline函数声明为weak引起的错误、board.c中inline函数错误以及start.S中undefined reference错误。针对每个错误,提供了具体的解决方法,包括删除或注释掉相关代码。此外,还提及了使用mkfs.ubifs制作UBIFS镜像的命令及其参数含义。
摘要由CSDN通过智能技术生成

错误一:

main.c:51:error:inline function 'show_boot_progress' cannot be decleared weak

make[1]:***[main.0]错误1

make[1]:正在离开目录'/home/sns/linux2.6.32/icetek-v3/u-boot-orig/common'

make:***[common/libcommon.a]错误2

解决方法:去掉show_boot_progress 前面的inline即可

错误二:

board.c:127: error: inline function 'coloured_LED_init' cannot be declared weak
board.c:129: error: inline function 'red_LED_on' cannot be declared weak
board.c:131: error: inline function 'red_LED_off' cannot be declared weak
board.c:133: error: inline function 'green_LED_on' cannot be declared weak
board.c:135: error: inline function 'green_LED_off' cannot be declared weak
board.c:137: error: inline function 'yellow_LED_on' cannot be declared weak
board.c:139: error: inline function 'yellow_LED_off' cannot be declared weak
board.c:141: error: inline

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值