Firefly开源社区

打印 上一主题 下一主题

编译uboot产生的映像大小超过512K,编译报错

163

积分

0

威望

0

贡献

技术小白

积分
163

编译uboot产生的映像大小超过512K,编译报错

发表于 2016-2-25 09:45:43      浏览:5871 | 回复:1        打印      只看该作者   [复制链接] 楼主
各位大神!
请教下,我在编译uboot时,产生的映像文件RK3288UbootLoader_V2.19.01.bin超过512K,编译就会报错,如下:
common/main.c:76:5: warning: initialization discards 'const' qualifier from pointer target type [enabled by default]
common/main.c:77:5: warning: initialization discards 'const' qualifier from pointer target type [enabled by default]
common/main.c:78:5: warning: initialization discards 'const' qualifier from pointer target type [enabled by default]
common/main.c:79:5: warning: initialization discards 'const' qualifier from pointer target type [enabled by default]
common/main.c:80:5: warning: initialization discards 'const' qualifier from pointer target type [enabled by default]
common/main.c:87:13: warning: function declaration isn't a prototype [-Wstrict-prototypes]
common/main.c: In function 'main_loop':
common/main.c:337:2: warning: implicit declaration of function 'gpio_request' [-Wimplicit-function-declaration]
common/main.c:351:5: warning: implicit declaration of function 'gpio_free' [-Wimplicit-function-declaration]
  LD      common/built-in.o
  LD      u-boot
  OBJCOPY u-boot.bin
  OBJCOPY u-boot.srec
./tools/boot_merger --subfix ".01.bin" ./tools/rk_tools/RKBOOT/RK3288.ini
out:RK3288UbootLoader.bin
fix opt:RK3288UbootLoader_V2.19.01.bin
*** buffer overflow detected ***: ./tools/boot_merger terminated
======= Backtrace: =========
/lib/x86_64-linux-gnu/libc.so.6(+0x73e0f)[0x2b40cc901e0f]
/lib/x86_64-linux-gnu/libc.so.6(__fortify_fail+0x5c)[0x2b40cc99971c]
/lib/x86_64-linux-gnu/libc.so.6(+0x10a5e0)[0x2b40cc9985e0]
/lib/x86_64-linux-gnu/libc.so.6(__fread_chk+0x13c)[0x2b40cc998cbc]
./tools/boot_merger[0x40350e]
./tools/boot_merger[0x400e29]
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf5)[0x2b40cc8afec5]
./tools/boot_merger[0x401320]
======= Memory map: ========
00400000-00405000 r-xp 00000000 08:07 11970                              /opt/mgd/RK3288_Android4.4_Pad/u-boot/tools/boot_merger
00604000-00605000 r--p 00004000 08:07 11970                              /opt/mgd/RK3288_Android4.4_Pad/u-boot/tools/boot_merger
00605000-00606000 rw-p 00005000 08:07 11970                              /opt/mgd/RK3288_Android4.4_Pad/u-boot/tools/boot_merger
00606000-00686000 rw-p 00000000 00:00 0
01ebc000-01edd000 rw-p 00000000 00:00 0                                  [heap]
2b40cc669000-2b40cc68c000 r-xp 00000000 08:01 142884                     /lib/x86_64-linux-gnu/ld-2.19.so
2b40cc68c000-2b40cc691000 rw-p 00000000 00:00 0
2b40cc6ad000-2b40cc6b0000 rw-p 00000000 00:00 0
2b40cc88b000-2b40cc88c000 r--p 00022000 08:01 142884                     /lib/x86_64-linux-gnu/ld-2.19.so
2b40cc88c000-2b40cc88d000 rw-p 00023000 08:01 142884                     /lib/x86_64-linux-gnu/ld-2.19.so
2b40cc88d000-2b40cc88e000 rw-p 00000000 00:00 0
2b40cc88e000-2b40cca49000 r-xp 00000000 08:01 142887                     /lib/x86_64-linux-gnu/libc-2.19.so
2b40cca49000-2b40ccc49000 ---p 001bb000 08:01 142887                     /lib/x86_64-linux-gnu/libc-2.19.so
2b40ccc49000-2b40ccc4d000 r--p 001bb000 08:01 142887                     /lib/x86_64-linux-gnu/libc-2.19.so
2b40ccc4d000-2b40ccc4f000 rw-p 001bf000 08:01 142887                     /lib/x86_64-linux-gnu/libc-2.19.so
2b40ccc4f000-2b40ccc54000 rw-p 00000000 00:00 0
2b40ccc54000-2b40ccc6a000 r-xp 00000000 08:01 135756                     /lib/x86_64-linux-gnu/libgcc_s.so.1
2b40ccc6a000-2b40cce69000 ---p 00016000 08:01 135756                     /lib/x86_64-linux-gnu/libgcc_s.so.1
2b40cce69000-2b40cce6a000 rw-p 00015000 08:01 135756                     /lib/x86_64-linux-gnu/libgcc_s.so.1
7fffa6600000-7fffa6622000 rw-p 00000000 00:00 0                          [stack]
7fffa6699000-7fffa669b000 r-xp 00000000 00:00 0                          [vdso]
ffffffffff600000-ffffffffff601000 r-xp 00000000 00:00 0                  [vsyscall]
Aborted (core dumped)
make: *** [RKLoader_uboot.bin] Error 134
root@imx6:/opt/mgd/RK3288_Android4.4_Pad/u-boot#
root@imx6:/opt/mgd/RK3288_Android4.4_Pad/u-boot#
回复

使用道具 举报

2918

积分

56

威望

46

贡献

高级创客

Rank: 6Rank: 6

积分
2918

优秀版主论坛元老

发表于 2016-2-25 11:55:42        只看该作者  沙发
可以使用二级loader试试
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

友情链接 : 爱板网 电子发烧友论坛 云汉电子社区 粤ICP备14022046号-2
快速回复 返回顶部 返回列表