Buildroot编译
RK3399-JD4在编译Builldroot时,根据教程在device/rockchip/rk3399/ 目录下找不到./build.sh aio-3399-jd4-buildroot文件,怎么解决。执行 ./build.sh aio-3399-jd4-buildroot.mk 时间的蝴蝶 发表于 2021-8-6 10:56
执行 ./build.sh aio-3399-jd4-buildroot.mk
用哪个build.sh执行,现在文件夹下面没有build.sh文件。 海峡西岸 发表于 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
海峡西岸 发表于 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 时间的蝴蝶 发表于 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
你这 log 没有有效信息呀,发下完整 log 时间的蝴蝶 发表于 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 [01m[Klockfile.c:[m[K In function '[01m[Klockfile_create_save_tmplock[m[K':
2021-08-06T14:51:00
2021-08-06T14:51:00 snprintf(p, TMPLOCKFILENAMESZ, "%s%0*d%0*x[01;35m[K%s[m[K", TMPLOCKSTR,
2021-08-06T14:51:00 [01;35m[K^~[m[K
2021-08-06T14:51:00 [01m[Klockfile.c:253:4:[m[K
2021-08-06T14:51:00 [32m[Ksysname[m[K);
2021-08-06T14:51:00 [32m[K~~~~~~~[m[K
2021-08-06T14:51:00 [01m[Klockfile.c:250:2:[m[K [01;36m[Knote: [m[K'[01m[Ksnprintf[m[K' output between 10 and 271 bytes into a destination of size 32
2021-08-06T14:51:00 [01;36m[Ksnprintf(p, TMPLOCKFILENAMESZ, "%s%0*d%0*x%s", TMPLOCKSTR,[m[K
2021-08-06T14:51:00 [01;36m[K^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[m[K
2021-08-06T14:51:00 [01;36m[K TMPLOCKPIDSZ, (int)getpid(),[m[K
2021-08-06T14:51:00 [01;36m[K~~~~~~~~~~~~~~~~~~~~~~~~~~~~[m[K
2021-08-06T14:51:00 [01;36m[K TMPLOCKTIMESZ, (int)time(NULL) & 15,[m[K
2021-08-06T14:51:00 [01;36m[K~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~[m[K
2021-08-06T14:51:00 [01;36m[K sysname)[m[K;
2021-08-06T14:51:00 [01;36m[K~~~~~~~~[m[K
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 [7m>>> liblockfile 1.09 Installing to staging directory[27m
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 [7m>>> liblockfile 1.09 Fixing libtool files[27m
2021-08-06T14:51:01 [7m>>> liblockfile 1.09 Installing to target[27m
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 [7m>>> libpng 1.6.37 Downloading[27m
2021-08-06T14:51:02 --2021-08-06 14:51:02--http://downloads.sourceforge.net/project/libpng/libpng16/1.6.37/libpng-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.net/project/libpng/libpng16/1.6.37/libpng-1.6.37.tar.xz
2021-08-06T14:51:02 --2021-08-06 14:51:02--https://udomain.dl.sourceforge.net/project/libpng/libpng16/1.6.37/libpng-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: *** 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: *** Error 2
时间的蝴蝶 发表于 2021-8-7 09:30
你这 log 没有有效信息呀,发下完整 log
已经编译成功谢谢支持{:4_121:}。建议把编译buildroot所需的空间大小写一下。我这边第一次编译只开了80G的内存,不够用,后面又加的,增加了一些麻烦。
页:
[1]