Firefly开源社区

怪异的问题,重新安装编译环境,同步后缺少文件

82

积分

0

威望

0

贡献

技术小白

积分
82
发表于 2021-11-1 09:58:03     
helium@helium-VirtualBox:~/proj/rk356x_linux_release_20211019$ ./build.sh
processing option: allff
============================================
TARGET_ARCH=arm64
TARGET_PLATFORM=rk356x
TARGET_UBOOT_CONFIG=firefly-rk3568
TARGET_SPL_CONFIG=
TARGET_KERNEL_CONFIG=firefly_linux_defconfig
TARGET_KERNEL_DTS=rk3568-firefly-roc-pc
TARGET_TOOLCHAIN_CONFIG=
TARGET_BUILDROOT_CONFIG=
TARGET_RECOVERY_CONFIG=
TARGET_PCBA_CONFIG=
TARGET_RAMBOOT_CONFIG=
============================================
============Start building uboot============
TARGET_UBOOT_CONFIG=firefly-rk3568
=========================================
## make firefly-rk3568_defconfig -j8
#
# configuration written to .config
#
/home/helium/proj/rk356x_linux_release_20211019/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc
scripts/kconfig/conf  --silentoldconfig Kconfig
  CHK     include/config.h
  CFG     u-boot.cfg
  GEN     include/autoconf.mk.dep
  CFG     spl/u-boot.cfg
  CFG     tpl/u-boot.cfg
  GEN     spl/include/autoconf.mk
  GEN     include/autoconf.mk
  GEN     tpl/include/autoconf.mk
  CHK     include/config/uboot.release
  CHK     include/generated/timestamp_autogenerated.h
  UPD     include/generated/timestamp_autogenerated.h
  CHK     include/config.h
  CFG     u-boot.cfg
  UPD     include/config/uboot.release
  CHK     include/generated/version_autogenerated.h
  UPD     include/generated/version_autogenerated.h
  CHK     include/generated/generic-asm-offsets.h
  CHK     include/generated/asm-offsets.h
  HOSTCC  tools/mkenvimage.o
  HOSTCC  tools/fit_image.o
  HOSTCC  tools/image-host.o
  HOSTCC  tools/rockchip/boot_merger.o
  HOSTCC  tools/rockchip/loaderimage.o
  HOSTCC  tools/mkimage.o
  HOSTCC  tools/dumpimage.o
  HOSTLD  tools/mkenvimage
  HOSTLD  tools/loaderimage
  HOSTLD  tools/dumpimage
  HOSTLD  tools/mkimage
  HOSTLD  tools/boot_merger
  CC      arch/arm/cpu/armv8/fwcall.o
  LD      arch/arm/cpu/armv8/built-in.o
  CC      cmd/version.o
  CC      common/main.o
  LD      cmd/built-in.o
  LD      common/built-in.o
  CC      drivers/usb/gadget/f_fastboot.o
  CC      lib/display_options.o
  LD      lib/built-in.o
  LD      drivers/usb/gadget/built-in.o
  LD      u-boot
  OBJCOPY u-boot.srec
  OBJCOPY u-boot-nodtb.bin
  SYM     u-boot.sym
start=$(/home/helium/proj/rk356x_linux_release_20211019/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-nm u-boot | grep __rel_dyn_start | cut -f 1 -d ' '); end=$(/home/helium/proj/rk356x_linux_release_20211019/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-nm u-boot | grep __rel_dyn_end | cut -f 1 -d ' '); tools/relocate-rela u-boot-nodtb.bin 0x00a00000 $start $end
make[2]: 'arch/arm/dts/rk3568-firefly.dtb' is up to date.
  COPY    u-boot.dtb
  MKIMAGE u-boot-dtb.img
  CAT     u-boot-dtb.bin
  MKIMAGE u-boot.img
  COPY    u-boot.bin
  ALIGN   u-boot.bin
  CC      spl/arch/arm/cpu/armv8/fwcall.o
  CC      spl/common/spl/spl.o
  CC      tpl/arch/arm/cpu/armv8/fwcall.o
  CC      tpl/arch/arm/mach-rockchip/tpl.o
  COPY    spl/u-boot-spl.dtb
  LD      spl/arch/arm/cpu/armv8/built-in.o
  LD      tpl/arch/arm/cpu/armv8/built-in.o
  LD      tpl/arch/arm/mach-rockchip/built-in.o
  LD      spl/common/spl/built-in.o
  CC      spl/lib/display_options.o
  LD      tpl/u-boot-tpl
  LD      spl/lib/built-in.o
  OBJCOPY tpl/u-boot-tpl-nodtb.bin
  COPY    tpl/u-boot-tpl.bin
  LD      spl/u-boot-spl
  OBJCOPY spl/u-boot-spl-nodtb.bin
  CAT     spl/u-boot-spl-dtb.bin
  COPY    spl/u-boot-spl.bin
  CFGCHK  u-boot.cfg
/home/helium/proj/rk356x_linux_release_20211019/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc
SEC=1
pack u-boot.itb okay! Input: /home/helium/proj/rk356x_linux_release_20211019/rkbin/RKTRUST/RK3568TRUST.ini

FIT description: FIT Image with ATF/OP-TEE/U-Boot
Created:         Mon Nov  1 09:50:11 2021
Image 0 (uboot)
  Description:  U-Boot(64-bit)
  Created:      Mon Nov  1 09:50:11 2021
  Type:         Standalone Program
  Compression:  uncompressed
  Data Size:    1188472 Bytes = 1160.62 KiB = 1.13 MiB
  Architecture: AArch64
  Load Address: 0x00a00000
  Entry Point:  unavailable
  Hash algo:    sha256
  Hash value:   b9232aeefdbeab43eb724cd48fd93849572ecae02b8a9758e7fb9e284316beca
Image 1 (atf-1)
  Description:  ARM Trusted Firmware
  Created:      Mon Nov  1 09:50:11 2021
  Type:         Firmware
  Compression:  uncompressed
  Data Size:    155648 Bytes = 152.00 KiB = 0.15 MiB
  Architecture: AArch64
  Load Address: 0x00040000
  Hash algo:    sha256
  Hash value:   796d978c0a3ed60e81d33754e85d52a4e95f77496f7714b9248ff69c30fb1138
Image 2 (atf-2)
  Description:  ARM Trusted Firmware
  Created:      Mon Nov  1 09:50:11 2021
  Type:         Firmware
  Compression:  uncompressed
  Data Size:    19019 Bytes = 18.57 KiB = 0.02 MiB
  Architecture: AArch64
  Load Address: 0x00068000
  Hash algo:    sha256
  Hash value:   61f58405c635136602ba390ea42a8cef1fbe9b5ae4ab18e62822abc07cac0dd7
Image 3 (atf-3)
  Description:  ARM Trusted Firmware
  Created:      Mon Nov  1 09:50:11 2021
  Type:         Firmware
  Compression:  uncompressed
  Data Size:    8192 Bytes = 8.00 KiB = 0.01 MiB
  Architecture: AArch64
  Load Address: 0xfdcd0000
  Hash algo:    sha256
  Hash value:   87af14e1bdba1c22a83681f00b222238aa8c3e55c0a05ba1b9977f0fda1d26ac
Image 4 (atf-4)
  Description:  ARM Trusted Firmware
  Created:      Mon Nov  1 09:50:11 2021
  Type:         Firmware
  Compression:  uncompressed
  Data Size:    8192 Bytes = 8.00 KiB = 0.01 MiB
  Architecture: AArch64
  Load Address: 0xfdcc9000
  Hash algo:    sha256
  Hash value:   4a24fbbebc39d312f2dd64c9d266ec74c802ae8da794d8bd77af0a9f0178d0fc
Image 5 (atf-5)
  Description:  ARM Trusted Firmware
  Created:      Mon Nov  1 09:50:11 2021
  Type:         Firmware
  Compression:  uncompressed
  Data Size:    7668 Bytes = 7.49 KiB = 0.01 MiB
  Architecture: AArch64
  Load Address: 0x00066000
  Hash algo:    sha256
  Hash value:   315a4195a9f6536f971c695a79fcab4870363fc7fc97f355bd091d8d7092261a
Image 6 (optee)
  Description:  OP-TEE
  Created:      Mon Nov  1 09:50:11 2021
  Type:         Firmware
  Compression:  uncompressed
  Data Size:    453056 Bytes = 442.44 KiB = 0.43 MiB
  Architecture: AArch64
  Load Address: 0x08400000
  Hash algo:    sha256
  Hash value:   5a22c90dfc99feef08d4ce66236d36ffde04e9d0c3c275d934a63f1c32aa45c3
Image 7 (fdt)
  Description:  U-Boot dtb
  Created:      Mon Nov  1 09:50:11 2021
  Type:         Flat Device Tree
  Compression:  uncompressed
  Data Size:    15115 Bytes = 14.76 KiB = 0.01 MiB
  Architecture: AArch64
  Hash algo:    sha256
  Hash value:   30938731debb4198eb74f983facf8e81a2a52dfccdbac4a0a35ddeccaba3402a
Default Configuration: 'conf'
Configuration 0 (conf)
  Description:  rk3568-firefly
  Kernel:       unavailable
  Firmware:     atf-1
  FDT:          fdt
  Loadables:    uboot
                atf-2
                atf-3
                atf-4
                atf-5
                optee
/home/helium/proj/rk356x_linux_release_20211019/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc
pack loader ok.(rk356x_spl_loader_v1.10.111.bin)(0.05)
pack loader(SPL) okay! Input: /home/helium/proj/rk356x_linux_release_20211019/rkbin/RKBOOT/RK3568MINIALL.ini

/home/helium/proj/rk356x_linux_release_20211019/u-boot
pack loader with new: spl/u-boot-spl.bin

Image(no-signed, version=0):  uboot.img (FIT with uboot, trust...) is ready
Image(no-signed):  rk356x_spl_loader_v1.10.111.bin (with spl, ddr, usbplug) is ready
pack uboot.img okay! Input: /home/helium/proj/rk356x_linux_release_20211019/rkbin/RKTRUST/RK3568TRUST.ini

Platform RK3568 is build OK, with new .config(make firefly-rk3568_defconfig -j8)
Mon Nov  1 09:50:12 CST 2021
/home/helium/proj/rk356x_linux_release_20211019/prebuilts/gcc/linux-x86/aarch64/gcc-linaro-6.3.1-2017.05-x86_64_aarch64-linux-gnu/bin/aarch64-linux-gnu-gcc
Image Type:   Rockchip RK35 (SD/MMC) boot image
Init Data Size: 59392 bytes
Boot Data Size: 229376 bytes
Input:
    /home/helium/proj/rk356x_linux_release_20211019/rkbin/RKBOOT/RK3568MINIALL.ini
    /home/helium/proj/rk356x_linux_release_20211019/rkbin/bin/rk35/rk3568_ddr_1560MHz_v1.10.bin
    /home/helium/proj/rk356x_linux_release_20211019/rkbin/bin/rk35/rk356x_spl_v1.11.bin

Pack rk3568 idblock.bin okay!

Running build_uboot succeeded.
Skipping build_loader for missing configs:  RK_LOADER_BUILD_TARGET.
============Start building kernel============
TARGET_ARCH          =arm64
TARGET_KERNEL_CONFIG =firefly_linux_defconfig
TARGET_KERNEL_DTS    =rk3568-firefly-roc-pc
TARGET_KERNEL_CONFIG_FRAGMENT =
==========================================
/home/helium/proj/rk356x_linux_release_20211019
#
# configuration written to .config
#
scripts/kconfig/conf  --syncconfig Kconfig
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
  GZIP    kernel/config_data.gz
  LZ4C    arch/arm64/boot/Image.lz4
/bin/sh: 1: lz4c: not found
arch/arm64/boot/Makefile:31: recipe for target 'arch/arm64/boot/Image.lz4' failed
make[1]: *** [arch/arm64/boot/Image.lz4] Error 1
arch/arm64/Makefile:139: recipe for target 'Image.lz4' failed
make: *** [Image.lz4] Error 2
ERROR: Running build_kernel failed!
ERROR: exit code 2 from line 561:
    make ARCH=$RK_ARCH $RK_KERNEL_DTS.img -j$RK_JOBS
回复

使用道具 举报

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

本版积分规则

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