导航

    全志在线开发者论坛

    • 注册
    • 登录
    • 搜索
    • 版块
    • 话题
    • 在线文档
    • 社区主页

    Tina文件系统添加了一些文件后,rootfs编译不过

    V Series
    3
    8
    4081
    正在加载更多帖子
    • 从旧到新
    • 从新到旧
    • 最多赞同
    回复
    • 在新帖中回复
    登录后回复
    此主题已被删除。只有拥有主题管理权限的用户可以查看。
    • N
      Negro LV 5 最后由 编辑

      f8015410-bb7f-4472-a6e1-85e0cf06ee64-image.png

      参考在线文档的说明,在openwrt/target/v853/v853-vision/busybox-init-base-files里面,我创建了一个opt目录,然后在这个opt里面放了QT库,tslib库和一个QT执行文件。然后执行./build.sh就报错了。编译的输出如下:

      gray@PC:~/sdk/tina-v853$ ./build.sh 
      ========ACTION List: build_linuxdev;========
      options : 
      INFO: ----------------------------------------
      INFO: build linuxdev ...
      INFO: chip: sun8iw21p1
      INFO: platform: linux
      INFO: kernel: linux-4.9
      INFO: board: vision
      INFO: output: /home/gray/sdk/tina-v853/out/v853/vision/openwrt
      INFO: ----------------------------------------
      INFO: don't build dtbo ...
      INFO: build arisc
      INFO: build_bootloader: brandy_path= /home/gray/sdk/tina-v853/brandy/brandy-2.0
      INFO: skip build brandy.
      INFO: build kernel ...
      INFO: Prepare toolchain ...
      Building kernel
      /home/gray/sdk/tina-v853/kernel/linux-4.9/output/lib/modules/4.9.191
        CHK     include/config/kernel.release
        CHK     include/generated/uapi/linux/version.h
        CHK     include/generated/utsrelease.h
        CHK     scripts/mod/devicetable-offsets.h
        CHK     include/generated/timeconst.h
        CHK     include/generated/bounds.h
        CHK     include/generated/asm-offsets.h
        CALL    scripts/checksyscalls.sh
        CHK     include/generated/compile.h
        DTC     arch/arm/boot/dts/board.dtb
        Kernel: arch/arm/boot/Image is ready
        Building modules, stage 2.
        MODPOST 24 modules
        Kernel: arch/arm/boot/zImage is ready
        Kernel: arch/arm/boot/uImage is ready
      'arch/arm/boot/Image' -> 'output/bImage'
      'arch/arm/boot/uImage' -> 'output/uImage'
      'arch/arm/boot/zImage' -> 'output/zImage'
      Copy rootfs.cpio.gz for arm
      Building modules
      [GPU]: No GPU type is configured in /home/gray/sdk/tina-v853/kernel/linux-4.9/.config.
      INFO: build dts ...
      INFO: Prepare toolchain ...
      removed '/home/gray/sdk/tina-v853/out/v853/vision/openwrt/.board.dtb.d.dtc.tmp'
      removed '/home/gray/sdk/tina-v853/out/v853/vision/openwrt/.board.dtb.dts.tmp'
      '/home/gray/sdk/tina-v853/kernel/linux-4.9/arch/arm/boot/dts/.board.dtb.d.dtc.tmp' -> '/home/gray/sdk/tina-v853/out/v853/vision/openwrt/.board.dtb.d.dtc.tmp'
      '/home/gray/sdk/tina-v853/kernel/linux-4.9/arch/arm/boot/dts/.board.dtb.dts.tmp' -> '/home/gray/sdk/tina-v853/out/v853/vision/openwrt/.board.dtb.dts.tmp'
      INFO: build rootfs ...
      ==mkcmd.sh: build_openwrt_rootfs ==
      make: Entering directory '/home/gray/sdk/tina-v853/openwrt/openwrt'
      make[1]: Entering directory '/home/gray/sdk/tina-v853/openwrt/openwrt'
      CreateSoftLink  /home/gray/sdk/tina-v853/openwrt/openwrt/tmp link to  /home/gray/sdk/tina-v853/out/v853/vision/openwrt/tmp
      CreateSoftLink  /home/gray/sdk/tina-v853/openwrt/openwrt/staging_dir link to  /home/gray/sdk/tina-v853/out/v853/vision/openwrt/staging_dir
      make[2]: Entering directory '/home/gray/sdk/tina-v853/openwrt/openwrt'
      make[2]: Leaving directory '/home/gray/sdk/tina-v853/openwrt/openwrt'
      
      Check Vendor Package...
      CreateSoftLink  /home/gray/sdk/tina-v853/openwrt/openwrt/package/subpackage link to  /home/gray/sdk/tina-v853/openwrt/package
      end
      WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-libav/Makefile' has a build dependency on 'libgstreamer1', which does not exist
      WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-libav/Makefile' has a build dependency on 'gstreamer1-plugins-base', which does not exist
      WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-omx/Makefile' has a dependency on 'libgst1gl', which does not exist
      WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-aw/Makefile' has a build dependency on 'libgstreamer1', which does not exist
      WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-aw/Makefile' has a build dependency on 'gstreamer1-plugins-base', which does not exist
      WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-aw/Makefile' has a build dependency on 'gstreamer1-plugins-good', which does not exist
      WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-bad/Makefile' has a dependency on 'wayland', which does not exist
      WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-bad/Makefile' has a dependency on 'wayland-protocols', which does not exist
      WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-bad/Makefile' has a dependency on 'opencv', which does not exist
      WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-bad/Makefile' has a dependency on 'libgst1badvideo', which does not exist
      WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-bad/Makefile' has a dependency on 'libgst1gl', which does not exist
      WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-bad/Makefile' has a build dependency on 'libgstreamer1', which does not exist
      WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-bad/Makefile' has a build dependency on 'gstreamer1-plugins-base', which does not exist
      WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-base/Makefile' has a build dependency on 'libgstreamer1', which does not exist
      WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-good/Makefile' has a build dependency on 'libgstreamer1', which does not exist
      WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-good/Makefile' has a build dependency on 'gstreamer1-plugins-base', which does not exist
      WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-ugly/Makefile' has a build dependency on 'libgstreamer1', which does not exist
      WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-ugly/Makefile' has a build dependency on 'gstreamer1-plugins-base', which does not exist
      WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'kmod-sunxi-rf-wlan', which does not exist
      WARNING: Makefile 'package/subpackage/thirdparty/gui/qt/qt5/Makefile' has a dependency on 'weston', which does not exist
      WARNING: Makefile 'package/subpackage/thirdparty/gui/qt/qt5/Makefile' has a dependency on 'wayland', which does not exist
      WARNING: Makefile 'package/subpackage/thirdparty/gui/qt/qt5/Makefile' has a dependency on 'qt5-multimediawidgets', which does not exist
      WARNING: Makefile 'package/subpackage/thirdparty/gui/qt/qt5/Makefile' has a build dependency on 'libstdcpp', which does not exist
      copy from /home/gray/sdk/tina-v853/openwrt/target/v853/v853-vision/defconfig
      target/linux/generic/image/Config.in:12:warning: choice default symbol 'uImage' is not contained in the choice
      target/linux/generic/image/Config.in:47:warning: choice default symbol 'uImage' is not contained in the choice
      target/linux/generic/image/Config.in:72:warning: choice default symbol 'CONFIG_BOOT_IMAGE_NAME_SUFFIX_NONE' is not contained in the choice
      target/linux/generic/image/Config.in:89:warning: choice default symbol 'CONFIG_ROOTFS_IMAGE_NAME_SUFFIX_NONE' is not contained in the choice
      #
      # No change to .config
      #
      copy to /home/gray/sdk/tina-v853/openwrt/target/v853/v853-vision/defconfig
      make[2]: Entering directory '/home/gray/sdk/tina-v853/openwrt/openwrt'
      Makefile:29: "NOTE: Will skip kernel build."
      The command image-prereq(include/kernel-build.mk) execute.
      time: target/linux/prereq#0.10#0.08#0.18
      make[2]: Leaving directory '/home/gray/sdk/tina-v853/openwrt/openwrt'
      make[1]: Leaving directory '/home/gray/sdk/tina-v853/openwrt/openwrt'
      make[1]: Entering directory '/home/gray/sdk/tina-v853/openwrt/openwrt'
      make[2]: Entering directory '/home/gray/sdk/tina-v853/openwrt/target/v853'
      。。。。。。
      mkdir -p /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/usr/bin
      mkdir -p /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/sys
      mkdir -p /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/www
      mkdir -p /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/root
      ln -sf /proc/mounts /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/etc/mtab
      rm -f /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/var
      ln -sf /tmp /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/var
      mkdir -p /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/tmp/lock
      mkdir -p /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/etc
      chmod 1777 /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/tmp
      for conffile in /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/etc/config/*; do if [ -f "$conffile" ]; then grep "${conffile##/home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files}" /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/CONTROL/conffiles || echo "${conffile##/home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files}" >> /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/CONTROL/conffiles; fi done
      find /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
       Package busybox-init-base-files is missing dependencies for the following libraries:
      libc.so.6
      libm.so.6
      libpthread.so.0
      libstdc++.so.6
      libz.so
      Makefile:228: recipe for target '/home/gray/sdk/tina-v853/out/v853/vision/openwrt/extra/packages/arm_cortex-a7_neon/base/busybox-init-base-files_167-r0-7277fac_arm_cortex-a7_neon.ipk' failed
      make[3]: *** [/home/gray/sdk/tina-v853/out/v853/vision/openwrt/extra/packages/arm_cortex-a7_neon/base/busybox-init-base-files_167-r0-7277fac_arm_cortex-a7_neon.ipk] Error 1
      make[3]: Leaving directory '/home/gray/sdk/tina-v853/openwrt/package/allwinner/system/busybox-init-base-files'
      time: package/subpackage/allwinner/system/busybox-init-base-files/compile#21.92#24.13#44.93
          ERROR: package/subpackage/allwinner/system/busybox-init-base-files failed to build.
      package/Makefile:114: recipe for target 'package/subpackage/allwinner/system/busybox-init-base-files/compile' failed
      make[2]: *** [package/subpackage/allwinner/system/busybox-init-base-files/compile] Error 1
      make[2]: Leaving directory '/home/gray/sdk/tina-v853/openwrt/openwrt'
      package/Makefile:110: recipe for target '/home/gray/sdk/tina-v853/openwrt/openwrt/staging_dir/target/stamp/.package_compile' failed
      make[1]: *** [/home/gray/sdk/tina-v853/openwrt/openwrt/staging_dir/target/stamp/.package_compile] Error 2
      make[1]: Leaving directory '/home/gray/sdk/tina-v853/openwrt/openwrt'
      /home/gray/sdk/tina-v853/openwrt/openwrt/include/toplevel.mk:236: recipe for target 'world' failed
      make: *** [world] Error 2
      make: Leaving directory '/home/gray/sdk/tina-v853/openwrt/openwrt'
      INFO: build_openwrt_rootfs failed
      gray@PC:~/sdk/tina-v853$  
      
      

      请问应该要怎么加才对呢?

      N 1 条回复 最后回复 回复 引用 分享 0
      • N
        Negro LV 5 @Negro 最后由 编辑

        @negro 在 Tina文件系统添加了一些文件后,rootfs编译不过 中说:

        f8015410-bb7f-4472-a6e1-85e0cf06ee64-image.png

        参考在线文档的说明,在openwrt/target/v853/v853-vision/busybox-init-base-files里面,我创建了一个opt目录,然后在这个opt里面放了QT库,tslib库和一个QT执行文件。然后执行./build.sh就报错了。编译的输出如下:

        gray@PC:~/sdk/tina-v853$ ./build.sh 
        ========ACTION List: build_linuxdev;========
        options : 
        INFO: ----------------------------------------
        INFO: build linuxdev ...
        INFO: chip: sun8iw21p1
        INFO: platform: linux
        INFO: kernel: linux-4.9
        INFO: board: vision
        INFO: output: /home/gray/sdk/tina-v853/out/v853/vision/openwrt
        INFO: ----------------------------------------
        INFO: don't build dtbo ...
        INFO: build arisc
        INFO: build_bootloader: brandy_path= /home/gray/sdk/tina-v853/brandy/brandy-2.0
        INFO: skip build brandy.
        INFO: build kernel ...
        INFO: Prepare toolchain ...
        Building kernel
        /home/gray/sdk/tina-v853/kernel/linux-4.9/output/lib/modules/4.9.191
          CHK     include/config/kernel.release
          CHK     include/generated/uapi/linux/version.h
          CHK     include/generated/utsrelease.h
          CHK     scripts/mod/devicetable-offsets.h
          CHK     include/generated/timeconst.h
          CHK     include/generated/bounds.h
          CHK     include/generated/asm-offsets.h
          CALL    scripts/checksyscalls.sh
          CHK     include/generated/compile.h
          DTC     arch/arm/boot/dts/board.dtb
          Kernel: arch/arm/boot/Image is ready
          Building modules, stage 2.
          MODPOST 24 modules
          Kernel: arch/arm/boot/zImage is ready
          Kernel: arch/arm/boot/uImage is ready
        'arch/arm/boot/Image' -> 'output/bImage'
        'arch/arm/boot/uImage' -> 'output/uImage'
        'arch/arm/boot/zImage' -> 'output/zImage'
        Copy rootfs.cpio.gz for arm
        Building modules
        [GPU]: No GPU type is configured in /home/gray/sdk/tina-v853/kernel/linux-4.9/.config.
        INFO: build dts ...
        INFO: Prepare toolchain ...
        removed '/home/gray/sdk/tina-v853/out/v853/vision/openwrt/.board.dtb.d.dtc.tmp'
        removed '/home/gray/sdk/tina-v853/out/v853/vision/openwrt/.board.dtb.dts.tmp'
        '/home/gray/sdk/tina-v853/kernel/linux-4.9/arch/arm/boot/dts/.board.dtb.d.dtc.tmp' -> '/home/gray/sdk/tina-v853/out/v853/vision/openwrt/.board.dtb.d.dtc.tmp'
        '/home/gray/sdk/tina-v853/kernel/linux-4.9/arch/arm/boot/dts/.board.dtb.dts.tmp' -> '/home/gray/sdk/tina-v853/out/v853/vision/openwrt/.board.dtb.dts.tmp'
        INFO: build rootfs ...
        ==mkcmd.sh: build_openwrt_rootfs ==
        make: Entering directory '/home/gray/sdk/tina-v853/openwrt/openwrt'
        make[1]: Entering directory '/home/gray/sdk/tina-v853/openwrt/openwrt'
        CreateSoftLink  /home/gray/sdk/tina-v853/openwrt/openwrt/tmp link to  /home/gray/sdk/tina-v853/out/v853/vision/openwrt/tmp
        CreateSoftLink  /home/gray/sdk/tina-v853/openwrt/openwrt/staging_dir link to  /home/gray/sdk/tina-v853/out/v853/vision/openwrt/staging_dir
        make[2]: Entering directory '/home/gray/sdk/tina-v853/openwrt/openwrt'
        make[2]: Leaving directory '/home/gray/sdk/tina-v853/openwrt/openwrt'
        
        Check Vendor Package...
        CreateSoftLink  /home/gray/sdk/tina-v853/openwrt/openwrt/package/subpackage link to  /home/gray/sdk/tina-v853/openwrt/package
        end
        WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-libav/Makefile' has a build dependency on 'libgstreamer1', which does not exist
        WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-libav/Makefile' has a build dependency on 'gstreamer1-plugins-base', which does not exist
        WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-omx/Makefile' has a dependency on 'libgst1gl', which does not exist
        WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-aw/Makefile' has a build dependency on 'libgstreamer1', which does not exist
        WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-aw/Makefile' has a build dependency on 'gstreamer1-plugins-base', which does not exist
        WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-aw/Makefile' has a build dependency on 'gstreamer1-plugins-good', which does not exist
        WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-bad/Makefile' has a dependency on 'wayland', which does not exist
        WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-bad/Makefile' has a dependency on 'wayland-protocols', which does not exist
        WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-bad/Makefile' has a dependency on 'opencv', which does not exist
        WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-bad/Makefile' has a dependency on 'libgst1badvideo', which does not exist
        WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-bad/Makefile' has a dependency on 'libgst1gl', which does not exist
        WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-bad/Makefile' has a build dependency on 'libgstreamer1', which does not exist
        WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-bad/Makefile' has a build dependency on 'gstreamer1-plugins-base', which does not exist
        WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-base/Makefile' has a build dependency on 'libgstreamer1', which does not exist
        WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-good/Makefile' has a build dependency on 'libgstreamer1', which does not exist
        WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-good/Makefile' has a build dependency on 'gstreamer1-plugins-base', which does not exist
        WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-ugly/Makefile' has a build dependency on 'libgstreamer1', which does not exist
        WARNING: Makefile 'package/subpackage/thirdparty/multimedia/gstreamer/gst1-plugins-ugly/Makefile' has a build dependency on 'gstreamer1-plugins-base', which does not exist
        WARNING: Makefile 'package/kernel/linux/Makefile' has a dependency on 'kmod-sunxi-rf-wlan', which does not exist
        WARNING: Makefile 'package/subpackage/thirdparty/gui/qt/qt5/Makefile' has a dependency on 'weston', which does not exist
        WARNING: Makefile 'package/subpackage/thirdparty/gui/qt/qt5/Makefile' has a dependency on 'wayland', which does not exist
        WARNING: Makefile 'package/subpackage/thirdparty/gui/qt/qt5/Makefile' has a dependency on 'qt5-multimediawidgets', which does not exist
        WARNING: Makefile 'package/subpackage/thirdparty/gui/qt/qt5/Makefile' has a build dependency on 'libstdcpp', which does not exist
        copy from /home/gray/sdk/tina-v853/openwrt/target/v853/v853-vision/defconfig
        target/linux/generic/image/Config.in:12:warning: choice default symbol 'uImage' is not contained in the choice
        target/linux/generic/image/Config.in:47:warning: choice default symbol 'uImage' is not contained in the choice
        target/linux/generic/image/Config.in:72:warning: choice default symbol 'CONFIG_BOOT_IMAGE_NAME_SUFFIX_NONE' is not contained in the choice
        target/linux/generic/image/Config.in:89:warning: choice default symbol 'CONFIG_ROOTFS_IMAGE_NAME_SUFFIX_NONE' is not contained in the choice
        #
        # No change to .config
        #
        copy to /home/gray/sdk/tina-v853/openwrt/target/v853/v853-vision/defconfig
        make[2]: Entering directory '/home/gray/sdk/tina-v853/openwrt/openwrt'
        Makefile:29: "NOTE: Will skip kernel build."
        The command image-prereq(include/kernel-build.mk) execute.
        time: target/linux/prereq#0.10#0.08#0.18
        make[2]: Leaving directory '/home/gray/sdk/tina-v853/openwrt/openwrt'
        make[1]: Leaving directory '/home/gray/sdk/tina-v853/openwrt/openwrt'
        make[1]: Entering directory '/home/gray/sdk/tina-v853/openwrt/openwrt'
        make[2]: Entering directory '/home/gray/sdk/tina-v853/openwrt/target/v853'
        。。。。。。
        mkdir -p /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/usr/bin
        mkdir -p /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/sys
        mkdir -p /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/www
        mkdir -p /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/root
        ln -sf /proc/mounts /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/etc/mtab
        rm -f /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/var
        ln -sf /tmp /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/var
        mkdir -p /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/tmp/lock
        mkdir -p /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/etc
        chmod 1777 /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/tmp
        for conffile in /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/etc/config/*; do if [ -f "$conffile" ]; then grep "${conffile##/home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files}" /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/CONTROL/conffiles || echo "${conffile##/home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files}" >> /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files/CONTROL/conffiles; fi done
        find /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/linux-v853-vision/busybox-init-base-files/ipkg-arm_cortex-a7_neon/busybox-init-base-files -name 'CVS' -o -name '.svn' -o -name '.#*' -o -name '*~'| xargs -r rm -rf
         Package busybox-init-base-files is missing dependencies for the following libraries:
        libc.so.6
        libm.so.6
        libpthread.so.0
        libstdc++.so.6
        libz.so
        Makefile:228: recipe for target '/home/gray/sdk/tina-v853/out/v853/vision/openwrt/extra/packages/arm_cortex-a7_neon/base/busybox-init-base-files_167-r0-7277fac_arm_cortex-a7_neon.ipk' failed
        make[3]: *** [/home/gray/sdk/tina-v853/out/v853/vision/openwrt/extra/packages/arm_cortex-a7_neon/base/busybox-init-base-files_167-r0-7277fac_arm_cortex-a7_neon.ipk] Error 1
        make[3]: Leaving directory '/home/gray/sdk/tina-v853/openwrt/package/allwinner/system/busybox-init-base-files'
        time: package/subpackage/allwinner/system/busybox-init-base-files/compile#21.92#24.13#44.93
            ERROR: package/subpackage/allwinner/system/busybox-init-base-files failed to build.
        package/Makefile:114: recipe for target 'package/subpackage/allwinner/system/busybox-init-base-files/compile' failed
        make[2]: *** [package/subpackage/allwinner/system/busybox-init-base-files/compile] Error 1
        make[2]: Leaving directory '/home/gray/sdk/tina-v853/openwrt/openwrt'
        package/Makefile:110: recipe for target '/home/gray/sdk/tina-v853/openwrt/openwrt/staging_dir/target/stamp/.package_compile' failed
        make[1]: *** [/home/gray/sdk/tina-v853/openwrt/openwrt/staging_dir/target/stamp/.package_compile] Error 2
        make[1]: Leaving directory '/home/gray/sdk/tina-v853/openwrt/openwrt'
        /home/gray/sdk/tina-v853/openwrt/openwrt/include/toplevel.mk:236: recipe for target 'world' failed
        make: *** [world] Error 2
        make: Leaving directory '/home/gray/sdk/tina-v853/openwrt/openwrt'
        INFO: build_openwrt_rootfs failed
        gray@PC:~/sdk/tina-v853$  
        
        

        请问应该要怎么加才对呢?

        这个是我的文件目录
        6f964b2a-2bc8-4a7c-812f-2c398d16a1fe-image.png

        1 条回复 最后回复 回复 引用 分享 0
        • YuzukiTsuru
          柚木 鉉 LV 9 最后由 编辑

          V=s 查看是不是缺少依赖库,base-files会检查这个依赖库

          N 1 条回复 最后回复 回复 引用 分享 0
          • N
            Negro LV 5 @YuzukiTsuru 最后由 编辑

            @yuzukitsuru

            gray@PC:~/sdk/tina-v853/openwrt/openwrt$ git diff
            diff --git a/include/toplevel.mk b/include/toplevel.mk
            index defd5cb..12023b6 100644
            --- a/include/toplevel.mk
            +++ b/include/toplevel.mk
            @@ -233,7 +233,7 @@ ifeq ($(SDK),1)
             else
             
             %::
            -       @+$(PREP_MK) $(NO_TRACE_MAKE) -r -s prereq
            +       @+$(PREP_MK) $(NO_TRACE_MAKE) -r -s V=sc prereq
                    @( \
                            cp .config tmp/.config; \
                            ./scripts/config/conf $(KCONF_FLAGS) --defconfig=tmp/.config -w tmp/.config Config.in > /dev/null 2>&1; \
            

            我在toplevel.mk里面加了V=sc,是可以看到说少了这些库,我应该怎么弄到文件系统里面呢?

            6b906536-d3de-47e6-b42f-60626ad73375-image.png

            YuzukiTsuru 1 条回复 最后回复 回复 引用 分享 2
            • YuzukiTsuru
              柚木 鉉 LV 9 @Negro 最后由 编辑

              @negro 要补上这些库的依赖,建议测试先adb吧

              N 1 条回复 最后回复 回复 引用 分享 2
              • N
                Negro LV 5 @YuzukiTsuru 最后由 编辑

                @yuzukitsuru
                我通过以下办法将找到相关的库了
                1、通过apt-cache search命令查找到libc.so.6的共享库,然后安装。还有libstdc++.so.6的库也可以这样装,最终安装好的库会在电脑的/usr/arm-linux-gnueabi/lib/下,然后复制到/tina-v853/openwrt/target/v853/v853-vision/busybox-init-base-files/lib里面。

                gray@PC:~/sdk/tina-v853$ apt-cache search libc | grep armel
                libc6-armel-armhf-cross - Dummy package to get libc6:armel installed
                libc6-armel-cross - GNU C Library: Shared libraries (for cross-compiling)
                libc6-armhf-armel-cross - Dummy package to get libc6:armhf installed
                libc6-dbg-armel-cross - GNU C Library: detached debugging symbols (for cross-compiling)
                libc6-dev-armel-armhf-cross - Dummy package to get libc6-dev:armel installed
                libc6-dev-armel-cross - GNU C Library: Development Libraries and Header Files (for cross-compiling)
                libc6-dev-armhf-armel-cross - Dummy package to get libc6-dev:armhf installed
                linux-libc-dev-armel-cross - Linux Kernel Headers for development (for cross-compiling)
                
                gray@PC:~/sdk/tina-v853$ sudo apt-get install -y libc6-armel-cross
                

                2、还缺少QT的库,我之前也交叉编译好了QT库的,所以直接将QT相关的库复制到/tina-v853/openwrt/target/v853/v853-vision/busybox-init-base-files/lib里面。
                91843a04-31d9-489b-ab76-886d3a9d38e3-image.png

                3、接着./build.sh编译固件。然后就发现个比较蛋疼的问题。我添加的libstdc++.so.6和原有的冲突了。如果在busybox-init-base-files/lib里面去掉这个库,编译又报错说少了这个库。

                。。。。。。
                Configuring wpa-cli.
                Configuring liblua5.1.5.
                Configuring wifimanager-demo.
                Configuring blkid.
                Configuring alsa-utils.
                Configuring lv_g2d_test.
                Configuring wireless-regdb.
                Configuring kmod-cfg80211.
                Collected errors:
                 * check_data_file_clashes: Package busybox-init-base-files wants to install file /home/gray/sdk/tina-v853/out/v853/vision/openwrt/build_dir/target/root-v853-vision/lib/libstdc++.so.6
                	But that file is already provided by package  * libstdcpp6
                 * opkg_install_cmd: Cannot install package busybox-init-base-files.
                package/Makefile:66: recipe for target 'package/install' failed
                make[2]: *** [package/install] Error 255
                make[2]: Leaving directory '/home/gray/sdk/tina-v853/openwrt/openwrt'
                package/Makefile:111: recipe for target '/home/gray/sdk/tina-v853/openwrt/openwrt/staging_dir/target/stamp/.package_install' failed
                make[1]: *** [/home/gray/sdk/tina-v853/openwrt/openwrt/staging_dir/target/stamp/.package_install] Error 2
                make[1]: Leaving directory '/home/gray/sdk/tina-v853/openwrt/openwrt'
                /home/gray/sdk/tina-v853/openwrt/openwrt/include/toplevel.mk:236: recipe for target 'world' failed
                make: *** [world] Error 2
                make: Leaving directory '/home/gray/sdk/tina-v853/openwrt/openwrt'
                INFO: build_openwrt_rootfs failed
                

                4、所以有什么办法可以搞定这个libstdc++.so.6库的冲突问题呢?
                5、还有个疑问点:我试了直接将编译好的QT库放到板子上,是可以正常使用QT的。证明我不用额外添加依赖库编译出来的固件环境是可以支持QT的。为什么将QT程序放到sdk里面编译固件,反而要添加额外的依赖库呢?

                N 1 条回复 最后回复 回复 引用 分享 3
                • N
                  Negro LV 5 @Negro 最后由 编辑

                  实在找不到办法,我就直接把openwrt/include/package-ipkg.mk文件中的判断给删掉了,然后也编译出了固件,系统可以正常使用。就是QT现在启动的时候会被ramdon进程阻塞,开机自动启动QT的话,要等好久。

                  C 1 条回复 最后回复 回复 引用 分享 1
                  • C
                    coolx LV 2 @Negro 最后由 编辑

                    @negro 我遇到了一样的问题,报错的地方package-ipkg.mk会调用gen-dependencies.sh这个脚本,在里面我看到了脚本会分析你软件需要哪些库(如果你添加的是可执行程序。我试过添加非执行程序的文件,编译是不会报错的)。

                    解决办法:最简单的办法,把执行程序进行zip打包,这样执行程序就不会被这个脚本分析需要哪些库,导致缺少库而报错了

                    617e3af9-bb14-481a-b4a8-31c3687d7bd3-972d4a9c217e8bcc1c6146c0ba33e0c.png

                    1 条回复 最后回复 回复 引用 分享 2
                    • 1 / 1
                    • First post
                      Last post

                    Copyright © 2024 深圳全志在线有限公司 粤ICP备2021084185号 粤公网安备44030502007680号

                    行为准则 | 用户协议 | 隐私权政策