Firefly开源社区

打印 上一主题 下一主题

[AIO-3288C]编译recovery出错

22

积分

0

威望

0

贡献

技术小白

积分
22

[AIO-3288C]编译recovery出错

发表于 2018-11-12 19:37:08      浏览:8026 | 回复:5        打印      只看该作者   [复制链接] 楼主
全自动编译 build.sh

  1. Makefile:2: /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/Makefile: 没有那个文件或目录
  2. make: *** No rule to make target '/root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/Makefile'。 停止。
复制代码


在官方源里面buildroot/configs,我都没有看见rockchip_rk3288_recovery_defconfig
请问这个怎么办?
回复

使用道具 举报

22

积分

0

威望

0

贡献

技术小白

积分
22
发表于 2018-11-12 19:48:02        只看该作者  沙发
在rockchip官网找到了
https://github.com/rockchip-linu ... ly_rk3288_defconfig

是不是firefly的源需要更新了?
回复

使用道具 举报

22

积分

0

威望

0

贡献

技术小白

积分
22
发表于 2018-11-12 21:15:24        只看该作者  板凳
再更新下
firefly的源更新了,但是build.sh没更新,少了一个commit,手动切换buildroot分支就ok了

另外提一句,最近两个commit间隔3天,你们都不做测试的,没有最后一个commit编译不出来
回复

使用道具 举报

22

积分

0

威望

0

贡献

技术小白

积分
22
发表于 2018-11-12 22:09:53        只看该作者  地板
再更新,编译似乎没问题了,打包没成功?
  1. >>> host-makedevs  Installing to host directory
  2. /usr/bin/install -D -m 755 /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/build/host-makedevs/makedevs /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/host/usr/bin/makedevs
  3. >>>   Finalizing target directory
  4. mkdir -p /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/etc
  5. echo "buildroot" > /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/etc/hostname
  6. /bin/sed -i -e '$a \127.0.1.1\tbuildroot' -e '/^127.0.1.1/d' /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/etc/hosts
  7. mkdir -p /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/etc
  8. echo "Welcome to Buildroot" > /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/etc/issue
  9. mkdir -p /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/etc/network/
  10. ( echo "# interface file auto-generated by buildroot"; echo ; echo "auto lo"; echo "iface lo inet loopback"; ) > /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/etc/network/interfaces
  11. /bin/sed -i -e s,^root:[^:]*:,root::, /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/etc/shadow
  12. ln -sf busybox /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/bin/sh
  13. /bin/sed -i -e '/# GENERIC_SERIAL$/s~^.*#~console::respawn:/sbin/getty -L  console 0 vt100 #~' /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/etc/inittab
  14. /bin/sed -i -e '/^#.*-o remount,rw \/$/s~^#\+~~' /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/etc/inittab
  15. rm -f /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/build/locales.nopurge
  16. for i in C en_US locale-archive; do echo $i >> /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/build/locales.nopurge; done
  17. for dir in ; do for langdir in $dir/*; do if [ -e "${langdir}" ]; then grep -qx "${langdir##*/}" /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/build/locales.nopurge || rm -rf $langdir; fi done; done
  18. if [ -d /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/usr/share/X11/locale ]; then for lang in C en_US; do if [ -f /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/usr/share/X11/locale/$lang/XLC_LOCALE ]; then echo "$lang/XLC_LOCALE: $lang"; fi done > /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/usr/share/X11/locale/locale.dir; fi
  19. rm -rf /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/usr/include /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/usr/share/aclocal \
  20.         /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/usr/lib/pkgconfig /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/usr/share/pkgconfig \
  21.         /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/usr/lib/cmake /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/usr/share/cmake
  22. find /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/usr/{lib,share}/ -name '*.cmake' -print0 | xargs -0 rm -f
  23. find /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/lib /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/usr/lib /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/usr/libexec \
  24.         \( -name '*.a' -o -name '*.la' \) -print0 | xargs -0 rm -f
  25. find: `/root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/usr/libexec': 没有那个文件或目录
  26. rm -rf /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/usr/share/gdb
  27. rm -rf /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/usr/share/bash-completion
  28. rm -rf /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/usr/share/zsh
  29. rm -rf /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/usr/man /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/usr/share/man
  30. rm -rf /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/usr/info /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/usr/share/info
  31. rm -rf /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/usr/doc /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/usr/share/doc
  32. rm -rf /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/usr/share/gtk-doc
  33. rmdir /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/usr/share 2>/dev/null
  34. Makefile:617: recipe for target 'target-finalize' failed
  35. make[1]: [target-finalize] Error 1 (ignored)
  36. find /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target -type f \( -perm /111 -o -name '*.so*' \) -not \( -name 'libpthread*.so*' -o -name 'ld-*.so*' -o -name '*.ko' \) -print0 | xargs -0 /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/host/usr/bin/i586-buildroot-linux-uclibc-strip --remove-section=.comment --remove-section=.note 2>/dev/null || true
  37. if test -d /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/lib/modules; then \
  38.         find /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/lib/modules -type f -name '*.ko' -print0 | \
  39.         xargs -0 -r /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/host/usr/bin/i586-buildroot-linux-uclibc-strip --remove-section=.comment --remove-section=.note --strip-unneeded; fi
  40. find /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/lib -type f -name 'libpthread*.so*' | \
  41.         xargs -r /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/host/usr/bin/i586-buildroot-linux-uclibc-strip --remove-section=.comment --remove-section=.note --strip-debug
  42. find /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/lib -type f -name 'ld-*.so*' | \
  43.         xargs -r /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/host/usr/bin/i586-buildroot-linux-uclibc-strip --remove-section=.comment --remove-section=.note --strip-debug
  44. test -f /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/etc/ld.so.conf && \
  45.         { echo "ERROR: we shouldn't have a /etc/ld.so.conf file"; exit 1; } || true
  46. test -d /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/etc/ld.so.conf.d && \
  47.         { echo "ERROR: we shouldn't have a /etc/ld.so.conf.d directory"; exit 1; } || true
  48. mkdir -p /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/etc
  49. ( \
  50.         echo "NAME=Buildroot"; \
  51.         echo "VERSION=2016.08.1-g5c2cd40"; \
  52.         echo "ID=buildroot"; \
  53.         echo "VERSION_ID=2016.08.1"; \
  54.         echo "PRETTY_NAME=\"Buildroot 2016.08.1\"" \
  55. ) >  /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/etc/os-release
  56. >>>   Generating root filesystem image rootfs.tar
  57. rm -f /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/build/_fakeroot.fs
  58. rm -f /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/THIS_IS_NOT_YOUR_ROOT_FILESYSTEM
  59. rm -f /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/build/_users_table.txt
  60. echo '#!/bin/sh' > /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/build/_fakeroot.fs
  61. echo "set -e" >> /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/build/_fakeroot.fs
  62. echo "chown -h -R 0:0 /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target" >> /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/build/_fakeroot.fs
  63. printf '   \n' >> /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/build/_users_table.txt
  64. PATH="/root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/host/bin:/root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/host/sbin:/root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/host/usr/bin:/root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/host/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" /root/linux/linux-sdk/buildroot/support/scripts/mkusers /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/build/_users_table.txt /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target >> /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/build/_fakeroot.fs
  65. cat system/device_table.txt > /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/build/_device_table.txt
  66. printf '           /bin/busybox                     f 4755 0  0 - - - - -\n /dev/console c 622 0 0 5 1 - - -\n\n' >> /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/build/_device_table.txt
  67. echo "/root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/host/usr/bin/makedevs -d /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/build/_device_table.txt /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target" >> /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/build/_fakeroot.fs
  68. printf '           tar  -cf /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/images/rootfs.tar --numeric-owner -C /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target .\n' >> /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/build/_fakeroot.fs
  69. chmod a+x /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/build/_fakeroot.fs
  70. PATH="/root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/host/bin:/root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/host/sbin:/root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/host/usr/bin:/root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/host/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/host/usr/bin/fakeroot -- /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/build/_fakeroot.fs
  71. rootdir=/root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target
  72. table='/root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/build/_device_table.txt'
  73. /usr/bin/install -m 0644 support/misc/target-dir-warning.txt /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/target/THIS_IS_NOT_YOUR_ROOT_FILESYSTEM
  74. ====Build recovery ok!====
  75. pack recovery image...usage: mkbootimg [-h] --kernel KERNEL [--ramdisk RAMDISK] [--second SECOND]
  76.                  [--recovery_dtbo RECOVERY_DTBO] [--cmdline CMDLINE]
  77.                  [--base BASE] [--kernel_offset KERNEL_OFFSET]
  78.                  [--ramdisk_offset RAMDISK_OFFSET]
  79.                  [--second_offset SECOND_OFFSET] [--os_version OS_VERSION]
  80.                  [--os_patch_level OS_PATCH_LEVEL] [--tags_offset TAGS_OFFSET]
  81.                  [--board BOARD] [--pagesize {2048,4096,8192,16384}] [--id]
  82.                  [--header_version HEADER_VERSION] -o OUTPUT
  83. mkbootimg: error: argument --ramdisk: can't open '/root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/images/rootfs.cpio.gz': [Errno 2] No such file or directory: '/root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/images/rootfs.cpio.gz'
  84. done.
  85. you take 18:15.11 to build recovery
  86. ====Build recovery ok!====
  87. error: /root/linux/linux-sdk/rootfs/ubuntu1604armhf-rootfs.img not found!
  88. create parameter...done.
  89. error: /root/linux/linux-sdk/buildroot/output/rockchip_rk3288_recovery/images/recovery.img not found!
  90. create misc.img...done.
  91. create oem.img...SIZE = 8192
  92. genext2fs -b 8192 -N 2048 -d /root/linux/linux-sdk/device/rockchip/oem/oem_normal /root/linux/linux-sdk/rockdev/oem.img
  93. e2fsck 1.42.13 (17-May-2015)
  94. 文件系统缺少UUID;正在生成一个。

  95. 第一步: 检查inode,块,和大小
  96. 第二步: 检查目录结构
  97. 第3步: 检查目录连接性
  98. Pass 4: Checking reference counts
  99. 第5步: 检查簇概要信息
  100. /root/linux/linux-sdk/rockdev/oem.img: 16/2048 files (0.0% non-contiguous), 6599/8192 blocks
  101. done.
  102. create userdata.img...SIZE = 3072
  103. genext2fs -b 3072 -N 768 -d /root/linux/linux-sdk/device/rockchip/userdata/userdata_normal /root/linux/linux-sdk/rockdev/userdata.img
  104. e2fsck 1.42.13 (17-May-2015)
  105. 文件系统缺少UUID;正在生成一个。

  106. 第一步: 检查inode,块,和大小
  107. 第二步: 检查目录结构
  108. 第3步: 检查目录连接性
  109. Pass 4: Checking reference counts
  110. 第5步: 检查簇概要信息
  111. /root/linux/linux-sdk/rockdev/userdata.img: 14/768 files (0.0% non-contiguous), 525/3072 blocks
  112. done.
  113. create uboot.img...done.
  114. error: /root/linux/linux-sdk/u-boot/idbloader.img not found!
  115. create trust.img...done.
  116. create loader...done.
  117. create boot.img...done.
  118. Image: image in rockdev is ready
  119. Make image ok!
  120. Make update.img
  121. start to make update.img...
  122. Error:No found package-file!
  123. mv: 无法获取'/root/linux/linux-sdk/tools/linux/Linux_Pack_Firmware/rockdev/update.img' 的文件状态(stat): 没有那个文件或目录
  124. Make update image failed!
复制代码
回复

使用道具 举报

3750

积分

17

威望

18

贡献

官方团队

Rank: 9Rank: 9Rank: 9

积分
3750
发表于 2018-11-13 09:19:31        只看该作者  5#
本帖最后由 jpchen 于 2018-11-13 09:23 编辑
王晨|天星宿命| 发表于 2018-11-12 22:09
再更新,编译似乎没问题了,打包没成功?


回复

使用道具 举报

22

积分

0

威望

0

贡献

技术小白

积分
22
发表于 2018-11-13 14:29:09        只看该作者  6#
来,没人回答,自己再更新
之前编译到错误的地方大概1.5小时左右

我把buildroot分支直接切到了rockchip官方上,目前已经编译了4个小时了
i5 mac,虚拟机,比较慢,不过不着急。。
回复

使用道具 举报

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

本版积分规则

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