Firefly开源社区

打印 上一主题 下一主题

[Linux] Buildroot编译

24

积分

0

威望

0

贡献

技术小白

积分
24

Buildroot编译

发表于 2021-8-6 10:02:44      浏览:8537 | 回复:8        打印      只看该作者   [复制链接] 楼主
RK3399-JD4在编译Builldroot时,根据教程在device/rockchip/rk3399/ 目录下找不到./build.sh aio-3399-jd4-buildroot文件,怎么解决。

回复

使用道具 举报

1306

积分

0

威望

0

贡献

中级创客

Rank: 4

积分
1306
发表于 2021-8-6 10:56:21        只看该作者  沙发
执行 ./build.sh aio-3399-jd4-buildroot.mk
回复

使用道具 举报

24

积分

0

威望

0

贡献

技术小白

积分
24
发表于 2021-8-6 11:33:13        只看该作者  板凳
时间的蝴蝶 发表于 2021-8-6 10:56
执行 ./build.sh aio-3399-jd4-buildroot.mk

用哪个build.sh执行,现在文件夹下面没有build.sh文件。
回复

使用道具 举报

24

积分

0

威望

0

贡献

技术小白

积分
24
发表于 2021-8-6 12:03:16        只看该作者  地板
海峡西岸 发表于 2021-8-6 11:33
用哪个build.sh执行,现在文件夹下面没有build.sh文件。

如果用rk3399_linux_release_v2.5.1_20210301目录下的会出现找不到.BoardConfig.mk文件的错
./build.sh: line 94: rk3399_linux_release_v2.5.1_20210301/device/rockchip/.BoardConfig.mk: No such file or directory
回复

使用道具 举报

1306

积分

0

威望

0

贡献

中级创客

Rank: 4

积分
1306
发表于 2021-8-6 14:17:52        只看该作者  5#
海峡西岸 发表于 2021-8-6 12:03
如果用rk3399_linux_release_v2.5.1_20210301目录下的会出现找不到.BoardConfig.mk文件的错
./build.sh: ...

在 SDK 根目录下执行:./build.sh aio-3399-jd4-buildroot.mk

没有的话,可以手动链接一下:
cd device/rockchip/
ln -sf rk3399/aio-3399-jd4-buildroot.mk .BoardConfig.mk
回复

使用道具 举报

24

积分

0

威望

0

贡献

技术小白

积分
24
发表于 2021-8-6 14:57:07        只看该作者  6#
时间的蝴蝶 发表于 2021-8-6 14:17
在 SDK 根目录下执行:./build.sh aio-3399-jd4-buildroot.mk

没有的话,可以手动链接一下:

谢谢,这步已经完成,在编译recovery的时候报错:
Done in 1h 14min 56s  (error code: 2)
Command exited with non-zero status 2
you take 1:14:58 to build recovery
ERROR: Running build_recovery failed!
ERROR: exit code 2 from line 661:
    /usr/bin/time -f "you take %E to build recovery" $COMMON_DIR/mk-ramdisk.sh recovery.img $RK_CFG_RECOVERY
回复

使用道具 举报

1306

积分

0

威望

0

贡献

中级创客

Rank: 4

积分
1306
发表于 2021-8-7 09:30:43        只看该作者  7#
你这 log 没有有效信息呀,发下完整 log
回复

使用道具 举报

24

积分

0

威望

0

贡献

技术小白

积分
24
发表于 2021-8-7 17:58:12        只看该作者  8#
时间的蝴蝶 发表于 2021-8-7 09:30
你这 log 没有有效信息呀,发下完整 log

看着像下载网址有问题;
2021-08-06T14:51:00 /root/prject/buildroot/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399_recovery/host/bin/aarch64-buildroot-linux-gnu-gcc  -fPIC -shared -Wl,-soname,liblockfile.so.1                 -o liblockfile.so lockfile.o -lc
2021-08-06T14:51:00 lockfile.c: In function 'lockfile_create_save_tmplock':
2021-08-06T14:51:00 lockfile.c:250:44: warning: '%s' directive output may be truncated writing up to 255 bytes into a region of size between 17 and 23 [-Wformat-truncation=]
2021-08-06T14:51:00 snprintf(p, TMPLOCKFILENAMESZ, "%s%0*d%0*x%s", TMPLOCKSTR,
2021-08-06T14:51:00 ^~
2021-08-06T14:51:00 lockfile.c:253:4:
2021-08-06T14:51:00 sysname);
2021-08-06T14:51:00 ~~~~~~~
2021-08-06T14:51:00 lockfile.c:250:2: note: 'snprintf' output between 10 and 271 bytes into a destination of size 32
2021-08-06T14:51:00 snprintf(p, TMPLOCKFILENAMESZ, "%s%0*d%0*x%s", TMPLOCKSTR,
2021-08-06T14:51:00 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2021-08-06T14:51:00    TMPLOCKPIDSZ, (int)getpid(),
2021-08-06T14:51:00 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2021-08-06T14:51:00    TMPLOCKTIMESZ, (int)time(NULL) & 15,
2021-08-06T14:51:00 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2021-08-06T14:51:00    sysname);
2021-08-06T14:51:00 ~~~~~~~~
2021-08-06T14:51:00 /root/prject/buildroot/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399_recovery/host/bin/aarch64-buildroot-linux-gnu-gcc  -o dotlockfile dotlockfile.o xlockfile.o
2021-08-06T14:51:00 >>> liblockfile 1.09 Installing to staging directory
2021-08-06T14:51:00 mkdir -p /root/prject/buildroot/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399_recovery/host/aarch64-buildroot-linux-gnu/sysroot/usr/share/man/man1 /root/prject/buildroot/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399_recovery/host/aarch64-buildroot-linux-gnu/sysroot/usr/share/man/man3
2021-08-06T14:51:00 rm -f /root/prject/buildroot/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399_recovery/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/liblockfile.so
2021-08-06T14:51:00 PATH="/root/prject/buildroot/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399_recovery/host/bin:/root/prject/buildroot/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399_recovery/host/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" /usr/bin/make -j2 -C /root/prject/buildroot/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399_recovery/build/liblockfile-1.09 ROOT=/root/prject/buildroot/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399_recovery/host/aarch64-buildroot-linux-gnu/sysroot install
2021-08-06T14:51:00 install -m 644 lockfile.h maillock.h /root/prject/buildroot/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399_recovery/host/aarch64-buildroot-linux-gnu/sysroot/usr/include
2021-08-06T14:51:00 install -m 2755 dotlockfile /root/prject/buildroot/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399_recovery/host/aarch64-buildroot-linux-gnu/sysroot/usr/bin;        install -m 644 *.1 /root/prject/buildroot/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399_recovery/host/aarch64-buildroot-linux-gnu/sysroot/usr/share/man/man1
2021-08-06T14:51:00 install -m 644 *.3 /root/prject/buildroot/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399_recovery/host/aarch64-buildroot-linux-gnu/sysroot/usr/share/man/man3
2021-08-06T14:51:00 install -m 755 liblockfile.so                 /root/prject/buildroot/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399_recovery/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/liblockfile.so.1.0
2021-08-06T14:51:00 ln -s liblockfile.so.1.0 /root/prject/buildroot/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399_recovery/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/liblockfile.so
2021-08-06T14:51:00 if test "/root/prject/buildroot/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399_recovery/host/aarch64-buildroot-linux-gnu/sysroot" = ""; then /sbin/ldconfig; fi
2021-08-06T14:51:00 ln -sf liblockfile.so /root/prject/buildroot/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399_recovery/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/liblockfile.so.1
2021-08-06T14:51:00 >>> liblockfile 1.09 Fixing libtool files
2021-08-06T14:51:01 >>> liblockfile 1.09 Installing to target
2021-08-06T14:51:01 cp -a /root/prject/buildroot/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399_recovery/host/aarch64-buildroot-linux-gnu/sysroot/usr/lib/liblockfile.so* /root/prject/buildroot/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399_recovery/target/usr/lib
2021-08-06T14:51:02 >>> libpng 1.6.37 Downloading
2021-08-06T14:51:02 --2021-08-06 14:51:02--  http://downloads.sourceforge.net ... ibpng-1.6.37.tar.xz
2021-08-06T14:51:02 Resolving downloads.sourceforge.net (downloads.sourceforge.net)... 204.68.111.105
2021-08-06T14:51:02 Connecting to downloads.sourceforge.net (downloads.sourceforge.net)|204.68.111.105|:80... connected.
2021-08-06T14:51:02 HTTP request sent, awaiting response... 302 Found
2021-08-06T14:51:02 Location: https://udomain.dl.sourceforge.n ... ibpng-1.6.37.tar.xz [following]
2021-08-06T14:51:02 --2021-08-06 14:51:02--  https://udomain.dl.sourceforge.n ... ibpng-1.6.37.tar.xz
2021-08-06T14:51:02 Resolving udomain.dl.sourceforge.net (udomain.dl.sourceforge.net)... 203.135.147.10
2021-08-06T14:51:06 Connecting to udomain.dl.sourceforge.net (udomain.dl.sourceforge.net)|203.135.147.10|:443... failed: Connection refused.
2021-08-06T14:51:06 --2021-08-06 14:51:06--  http://sources.buildroot.net/libpng-1.6.37.tar.xz
2021-08-06T14:51:06 Resolving sources.buildroot.net (sources.buildroot.net)... 104.26.1.37, 104.26.0.37, 172.67.72.56, ...
2021-08-06T14:51:06 Connecting to sources.buildroot.net (sources.buildroot.net)|104.26.1.37|:80... connected.
2021-08-06T14:51:07 HTTP request sent, awaiting response... 404 Not Found
2021-08-06T14:51:07 2021-08-06 14:51:07 ERROR 404: Not Found.
2021-08-06T14:51:07
2021-08-06T14:51:07 package/pkg-generic.mk:166: recipe for target '/root/prject/buildroot/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399_recovery/build/libpng-1.6.37/.stamp_downloaded' failed
2021-08-06T14:51:07 make[1]: *** [/root/prject/buildroot/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399_recovery/build/libpng-1.6.37/.stamp_downloaded] Error 1
2021-08-06T14:51:07 /root/prject/buildroot/rk3399_linux_release_v2.5.1_20210301/buildroot/output/rockchip_rk3399_recovery/Makefile:16: recipe for target '_all' failed
2021-08-06T14:51:07 make: *** [_all] Error 2

回复

使用道具 举报

24

积分

0

威望

0

贡献

技术小白

积分
24
发表于 2021-8-9 13:08:23        只看该作者  9#
时间的蝴蝶 发表于 2021-8-7 09:30
你这 log 没有有效信息呀,发下完整 log

已经编译成功谢谢支持{:4_121:}。建议把编译buildroot所需的空间大小写一下。我这边第一次编译只开了80G的内存,不够用,后面又加的,增加了一些麻烦。
回复

使用道具 举报

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

本版积分规则

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