Firefly开源社区

标题: 使用Buildroot编译Firefly RK3288板子的镜像问题。 [打印本页]

作者: kunyang_yt    时间: 2017-3-6 14:53
标题: 使用Buildroot编译Firefly RK3288板子的镜像问题。
我在Buildroot官网下载了最新的环境进行编译,我编译时遇到以下问题。有谁能解决下。

rootdir=/home/kunyang/extpro/kunyang/RK3288/rockchip/buildroot/output/target
table='/home/kunyang/extpro/kunyang/RK3288/rockchip/buildroot/output/build/_device_table.txt'
tune2fs 1.43.4 (31-Jan-2017)
tune2fs 1.43.4 (31-Jan-2017)

Please run e2fsck -f on the filesystem.

创建日志inode: 完成
该文件系统在每挂载20次或每隔0天都会进行自动检查。
使用tune2fs -c 或-i选项来覆盖这一特性。


/home/kunyang/extpro/kunyang/RK3288/rockchip/buildroot/output/images/rootfs.ext2:
未预期的不一致性;请手动运行fsck
        (即不使用 -a 或 -p 选项)。
mke2img: failed to run e2fsck on '/home/kunyang/extpro/kunyang/RK3288/rockchip/buildroot/output/images/rootfs.ext2' (ext4)
fs/ext2/ext2.mk:45: recipe for target '/home/kunyang/extpro/kunyang/RK3288/rockchip/buildroot/output/images/rootfs.ext2' failed
make[1]: *** [/home/kunyang/extpro/kunyang/RK3288/rockchip/buildroot/output/images/rootfs.ext2] Error 4
Makefile:79: recipe for target '_all' failed
make: *** [_all] Error 2

作者: kunyang_yt    时间: 2017-3-7 08:46
又要沉底吗!求解决,或交流。
作者: kunyang_yt    时间: 2017-3-8 21:42
kunyang_yt 发表于 2017-3-7 08:46
又要沉底吗!求解决,或交流。

真要沉了。没有人用套件来构建吗!
作者: isle    时间: 2017-3-9 11:05
buildroot... https://github.com/buildroot/buildroot :-)

git checkout 2016.05
make firefly_rk3288_defconfig
make
作者: kunyang_yt    时间: 2017-3-10 08:35
isle 发表于 2017-3-9 11:05
buildroot... https://github.com/buildroot/buildroot :-)

git checkout 2016.05

我用你说的版本来编译还是和最新版本的错误时一样的。不知何故?
echo "/home/kunyang/extpro/kunyang/RK3288/rockchip/buildroot-2016.05/output/host/usr/bin/makedevs -d /home/kunyang/extpro/kunyang/
RK3288/rockchip/buildroot-2016.05/output/build/_device_table.txt /home/kunyang/extpro/kunyang/RK3288/rockchip/buildroot-2016.05/ou
tput/target" >> /home/kunyang/extpro/kunyang/RK3288/rockchip/buildroot-2016.05/output/build/_fakeroot.fs
echo "  PATH="/home/kunyang/extpro/kunyang/RK3288/rockchip/buildroot-2016.05/output/host/bin:/home/kunyang/extpro/kunyang/RK3288/rockchip/buildroot-2016.05/output/host/sbin:/home/kunyang/extpro/kunyang/RK3288/rockchip/buildroot-2016.05/output/host/usr/bin:/home/kunyang/extpro/kunyang/RK3288/rockchip/buildroot-2016.05/output/host/usr/sbin:/home/kunyang/Applications/.bin:/usr/bin:/usr/games:/home/kunyang/bin:/home/kunyang/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" mke2img -d /home/kunyang/extpro/kunyang/RK3288/rockchip/buildroot-2016.05/output/target -G 4 -R 1 -B 0 -I 0 -o /home/kunyang/extpro/kunyang/RK3288/rockchip/buildroot-2016.05/output/images/rootfs.ext2" >> /home/kunyang/extpro/kunyang/RK3288/rockchip/buildroot-2016.05/output/build/_fakeroot.fs
chmod a+x /home/kunyang/extpro/kunyang/RK3288/rockchip/buildroot-2016.05/output/build/_fakeroot.fs
PATH="/home/kunyang/extpro/kunyang/RK3288/rockchip/buildroot-2016.05/output/host/bin:/home/kunyang/extpro/kunyang/RK3288/rockchip/buildroot-2016.05/output/host/sbin:/home/kunyang/extpro/kunyang/RK3288/rockchip/buildroot-2016.05/output/host/usr/bin:/home/kunyang/extpro/kunyang/RK3288/rockchip/buildroot-2016.05/output/host/usr/sbin:/home/kunyang/Applications/.bin:/usr/bin:/usr/games:/home/kunyang/bin:/home/kunyang/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin" /home/kunyang/extpro/kunyang/RK3288/rockchip/buildroot-2016.05/output/host/usr/bin/fakeroot -- /home/kunyang/extpro/kunyang/RK3288/rockchip/buildroot-2016.05/output/build/_fakeroot.fs
rootdir=/home/kunyang/extpro/kunyang/RK3288/rockchip/buildroot-2016.05/output/target
table='/home/kunyang/extpro/kunyang/RK3288/rockchip/buildroot-2016.05/output/build/_device_table.txt'
tune2fs 1.42.13 (17-May-2015)
tune2fs 1.42.13 (17-May-2015)

请在这个文件系统上运行 e2fsck.

Creating journal inode: 完成
This filesystem will be automatically checked every 20 mounts or
0 days, whichever comes first.  Use tune2fs -c or -i to override.


/home/kunyang/extpro/kunyang/RK3288/rockchip/buildroot-2016.05/output/images/rootfs.ext2: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
        (i.e., without -a or -p options)
mke2img: failed to run e2fsck on '/home/kunyang/extpro/kunyang/RK3288/rockchip/buildroot-2016.05/output/images/rootfs.ext2' (ext4)
fs/ext2/ext2.mk:46: recipe for target '/home/kunyang/extpro/kunyang/RK3288/rockchip/buildroot-2016.05/output/images/rootfs.ext2' failed
make[1]: *** [/home/kunyang/extpro/kunyang/RK3288/rockchip/buildroot-2016.05/output/images/rootfs.ext2] Error 4
Makefile:36: recipe for target '_all' failed
make: *** [_all] Error 2

作者: isle    时间: 2017-3-10 09:08
你尝试手动运行下  
e2fsck -p -f home/kunyang/extpro/kunyang/RK3288/rockchip/buildroot-2016.05/output/images/rootfs.ext2
作者: 18825098397    时间: 2018-4-26 11:13
你好,请问你buildroot后成功在板子上运行吗? 我使用这个版本 https://github.com/rockchip-linux/buildroot 是可以编译成功的,然后将生成的sdcard.img写进tf卡,最后使用maskrom模式启动板子,结果啥反应也没有。。。




欢迎光临 Firefly开源社区 (https://dev.t-firefly.com/) Powered by Discuz! X3.1