|
发表于 2022-7-6 23:08:34
只看该作者
30#
谢谢大神指点,Uboot编译成功,可kernel又失败了,是什么原因呢?
yi@yi-dn:~/firefly_openwrt$ ./build.sh roc-rk3568-pc-openwrt.mk
processing option: roc-rk3568-pc-openwrt.mk
switching to board: /home/yi/firefly_openwrt/device/rockchip/rk356x/roc-rk3568-pc-openwrt.mk
yi@yi-dn:~/firefly_openwrt$ ./build.sh all
processing option: all
============================================
TARGET_ARCH=arm64
TARGET_PLATFORM=rk356x
TARGET_UBOOT_CONFIG=firefly-rk3568
TARGET_SPL_CONFIG=
TARGET_KERNEL_CONFIG=station_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/yi/firefly_openwrt/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 tpl/u-boot.cfg
CFG spl/u-boot.cfg
GEN include/autoconf.mk
GEN tpl/include/autoconf.mk
GEN spl/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
CHK 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/dumpimage.o
HOSTCC tools/rockchip/loaderimage.o
HOSTCC tools/mkimage.o
HOSTLD tools/mkenvimage
HOSTLD tools/loaderimage
HOSTLD tools/mkimage
HOSTLD tools/dumpimage
HOSTLD tools/boot_merger
CC arch/arm/cpu/armv8/fwcall.o
LD arch/arm/cpu/armv8/built-in.o
CC common/main.o
CC cmd/version.o
LD common/built-in.o
LD cmd/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/yi/firefly_openwrt/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/yi/firefly_openwrt/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”已是最新。
COPY u-boot.dtb
CAT u-boot-dtb.bin
MKIMAGE u-boot.img
MKIMAGE u-boot-dtb.img
COPY u-boot.bin
ALIGN u-boot.bin
CC spl/common/spl/spl.o
CC tpl/arch/arm/cpu/armv8/fwcall.o
CC spl/arch/arm/cpu/armv8/fwcall.o
CC tpl/arch/arm/mach-rockchip/tpl.o
LD tpl/arch/arm/cpu/armv8/built-in.o
LD tpl/arch/arm/mach-rockchip/built-in.o
LD spl/arch/arm/cpu/armv8/built-in.o
COPY spl/u-boot-spl.dtb
LD spl/common/spl/built-in.o
CC spl/lib/display_options.o
LD tpl/u-boot-tpl
OBJCOPY tpl/u-boot-tpl-nodtb.bin
COPY tpl/u-boot-tpl.bin
LD spl/lib/built-in.o
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/yi/firefly_openwrt/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/yi/firefly_openwrt/rkbin/RKTRUST/RK3568TRUST.ini
FIT description: FIT Image with ATF/OP-TEE/U-Boot
Created: Wed Jul 6 22:54:31 2022
Image 0 (uboot)
Description: U-Boot(64-bit)
Created: Wed Jul 6 22:54:31 2022
Type: Standalone Program
Compression: uncompressed
Data Size: 1189408 Bytes = 1161.53 KiB = 1.13 MiB
Architecture: AArch64
Load Address: 0x00a00000
Entry Point: unavailable
Hash algo: sha256
Hash value: 27cb00517c8a1fdf203a43d8c6ce08ca8ad0a2229a538285c081647c17fa4c48
Image 1 (atf-1)
Description: ARM Trusted Firmware
Created: Wed Jul 6 22:54:31 2022
Type: Firmware
Compression: uncompressed
Data Size: 155648 Bytes = 152.00 KiB = 0.15 MiB
Architecture: AArch64
Load Address: 0x00040000
Hash algo: sha256
Hash value: fe4f274c0624c2d7e7b9aa0d5b40a3331801664bf625367702d2116dbe452466
Image 2 (atf-2)
Description: ARM Trusted Firmware
Created: Wed Jul 6 22:54:31 2022
Type: Firmware
Compression: uncompressed
Data Size: 19531 Bytes = 19.07 KiB = 0.02 MiB
Architecture: AArch64
Load Address: 0x00068000
Hash algo: sha256
Hash value: 8d440360954c39a1d9a1eb604c0642e7201f4a47679272a9885cfd46205aa418
Image 3 (atf-3)
Description: ARM Trusted Firmware
Created: Wed Jul 6 22:54:31 2022
Type: Firmware
Compression: uncompressed
Data Size: 8192 Bytes = 8.00 KiB = 0.01 MiB
Architecture: AArch64
Load Address: 0xfdcd0000
Hash algo: sha256
Hash value: e410275b51692587b5d09c794ae13f2dcd4d187bd6ab1eb2998bf18d44750876
Image 4 (atf-4)
Description: ARM Trusted Firmware
Created: Wed Jul 6 22:54:31 2022
Type: Firmware
Compression: uncompressed
Data Size: 8192 Bytes = 8.00 KiB = 0.01 MiB
Architecture: AArch64
Load Address: 0xfdcc9000
Hash algo: sha256
Hash value: 990c53fc0167a7bcd877235f09a3ac6911841c978a4e270d89f6259ec1d36144
Image 5 (atf-5)
Description: ARM Trusted Firmware
Created: Wed Jul 6 22:54:31 2022
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: Wed Jul 6 22:54:31 2022
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: Wed Jul 6 22:54:31 2022
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/yi/firefly_openwrt/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.11.111.bin)(0.09)
pack loader(SPL) okay! Input: /home/yi/firefly_openwrt/rkbin/RKBOOT/RK3568MINIALL.ini
/home/yi/firefly_openwrt/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.11.111.bin (with spl, ddr, usbplug) is ready
pack uboot.img okay! Input: /home/yi/firefly_openwrt/rkbin/RKTRUST/RK3568TRUST.ini
Platform RK3568 is build OK, with new .config(make firefly-rk3568_defconfig -j8)
Wed Jul 6 22:54:32 CST 2022
/home/yi/firefly_openwrt/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/yi/firefly_openwrt/rkbin/RKBOOT/RK3568MINIALL.ini
/home/yi/firefly_openwrt/rkbin/bin/rk35/rk3568_ddr_1560MHz_v1.11.bin
/home/yi/firefly_openwrt/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 =station_linux_defconfig
TARGET_KERNEL_DTS =rk3568-firefly-roc-pc
TARGET_KERNEL_CONFIG_FRAGMENT =
==========================================
/home/yi/firefly_openwrt
YACC scripts/kconfig/zconf.tab.c
/bin/sh: 1: bison: not found
scripts/Makefile.lib:196: recipe for target 'scripts/kconfig/zconf.tab.c' failed
make[1]: *** [scripts/kconfig/zconf.tab.c] Error 127
Makefile:578: recipe for target 'station_linux_defconfig' failed
make: *** [station_linux_defconfig] Error 2
ERROR: Running build_kernel failed!
ERROR: exit code 2 from line 560:
make ARCH=$RK_ARCH $RK_KERNEL_DEFCONFIG $RK_KERNEL_DEFCONFIG_FRAGMENT
yi@yi-dn:~/firefly_openwrt$
|
|