U-boot-1.1.4中关于hello_world.srec出错
发布日期:2021-07-01 01:12:18 浏览次数:2 分类:技术文章

本文共 579 字,大约阅读时间需要 1 分钟。

make[1]: *** No rule to make target `hello_world.srec', needed by `all'.  Stop.
make[1]: Leaving directory `/home/mort/src/targa/u-boot/u-boot-TOT/examples'
make: *** [examples] Error 2
的问题。可是可以在网上找到解决方法:
打开 vi examples/Makefile
  
    119 $(LIB): .depend $(LIBOBJS)
    120         $(AR) crv $@ $(LIBOBJS)
    121
    122 %:      %.o $(LIB)
    123         $(LD) -g $(EX_LDFLAGS) -Ttext $(LOAD_ADDR) \
    124                 -o $@ -e $(<:.o=) $< $(LIB) \
    125                 -L$(gcclibdir) -lgcc
    126 %.srec: %
    127         $(OBJCOPY) -O srec $< $@ 2>/dev/null
    128
    129 %.bin:  %
    130         $(OBJCOPY) -O binary $< $@ 2>/dev/null
   
把126行和129行改为:
     %.srec: %.o
     %.bin: %.o
再make就可以了。

转载地址:https://mao0514.blog.csdn.net/article/details/9410747 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!

上一篇:tms320dm6446内核启动分析
下一篇:DM6446 uboot分析

发表评论

最新留言

关注你微信了!
[***.104.42.241]2024年04月10日 02时08分05秒