当前位置: 首页 > article >正文

20241101编译Rockchip原厂的RK3566平台的Buildroot【使用荣品的DTS】

20241101编译Rockchip原厂的RK3566平台的Buildroot【使用荣品的DTS】
2024/11/1 19:38


缘起:使用Rockchip原厂的RK3566的buildroot编译的固件刷 荣品PRO-RK3566开发板 之后,发现:
正常的功能:
1、串口 1.5Mbps N 8 1
2、USB可用:可以接鼠标【有红光】,adb可用


异常的功能:
1、HDMI没有显示。
2、RJ45以太网不能用。
3、WIFI/BT模块AP6256异常了。


简单起见,直接使用荣品的DTS了。
如果可以解决功能异常,那就是定位到问题都在DTS代码块了。
但是荣品的IMG固件中有iperf3。这个怎么加进去的,还需要仔细琢磨。


1、指定DTS为荣品的:pro-rk3566.dts
Z:\rk356x_linux5p10v120_20241022\device\rockchip\.chips\rk3566_rk3568\rockchip_rk3566_evb2_lp4x_v10_defconfig

RK_KERNEL_DTS_NAME="rk3566-evb2-lp4x-v10-linux"
RK_PARAMETER="parameter-buildroot-fit.txt"
RK_USE_FIT_IMG=y


Z:\RK3566_RK3568_Linux5.10_V1.2.0\device\rockchip\.chips\rk3566_rk3568\rockchip_rk3566_evb2_lp4x_v10_defconfig

#RK_KERNEL_DTS_NAME="rk3566-evb2-lp4x-v10-linux"
RK_KERNEL_DTS_NAME="pro-rk3566"
RK_PARAMETER="parameter-buildroot-fit.txt"
RK_USE_FIT_IMG=y


2、【荣品的DTS常见的问题:子目录的问题】
简单起见,将Z:\RK3566_RK3568_Linux5.10_V1.2.0\kernel\arch\arm64\boot\dts\rockchip\rk356x
目录中的文件全部上提到:
Z:\RK3566_RK3568_Linux5.10_V1.2.0\kernel\arch\arm64\boot\dts\rockchip\

RK_YOCTO_USBMOUNT=y

Toolchain for kernel:
/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-

==========================================
          Start building kernel
==========================================
+ make -C /home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel/ -j21 CROSS_COMPILE=/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu- ARCH=arm64 rockchip_linux_defconfig
make: Entering directory '/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel'
#
# No change to .config
#
make: Leaving directory '/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel'
+ make -C /home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel/ -j21 CROSS_COMPILE=/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu- ARCH=arm64 pro-rk3566.img
make: Entering directory '/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel'
make[2]: *** No rule to make target 'arch/arm64/boot/dts/rockchip/pro-rk3566.dtb'.  Stop.
make[1]: *** [Makefile:1477: rockchip/pro-rk3566.dtb] Error 2
make: *** [arch/arm64/Makefile:214: pro-rk3566.img] Error 2
make: Leaving directory '/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel'
ERROR: Running /home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/device/rockchip/common/build-hooks/10-kernel.sh - run_command failed!
ERROR: exit code 2 from line 36:
    $@
ERROR: call stack:
    build-helper: run_command(36)
    10-kernel.sh: do_build(59)
    10-kernel.sh: build_hook(407)
    build-helper: try_func(63)
    build-helper: try_hook(96)
    build-helper: source(174)
    10-kernel.sh: main(455)
ERROR: Running /home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/device/rockchip/common/build-hooks/10-kernel.sh - try_func build_hook kernel failed!
ERROR: exit code 2 from line 67:
    build_hook
ERROR: call stack:
    build-helper: try_func(67)
    build-helper: try_hook(96)
    build-helper: source(174)
    10-kernel.sh: main(455)
viewpro@viewpro-ThinkBook-16-G5-IRH:~/RK3566_RK3568_Linux5.10_V1.2.0$ 


3、【路径依赖问题】
RK_YOCTO_MACHINE=rockchip-rk3566-evb
RK_YOCTO_USBMOUNT=y

Toolchain for kernel:
/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-

==========================================
          Start building kernel
==========================================
+ make -C /home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel/ -j21 CROSS_COMPILE=/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu- ARCH=arm64 rockchip_linux_defconfig
make: Entering directory '/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel'
#
# No change to .config
#
make: Leaving directory '/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel'
+ make -C /home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel/ -j21 CROSS_COMPILE=/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu- ARCH=arm64 pro-rk3566.img
make: Entering directory '/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel'
  DTC     arch/arm64/boot/dts/rockchip/pro-rk3566.dtb
In file included from arch/arm64/boot/dts/rockchip/pro-rk3566.dts:12:
arch/arm64/boot/dts/rockchip/rk3566-evb-rpdzkj-rk809-tcs4525.dtsi:17:10: fatal error: ../rk3566.dtsi: No such file or directory
   17 | #include "../rk3566.dtsi"
      |          ^~~~~~~~~~~~~~~~
compilation terminated.

make[2]: *** [scripts/Makefile.lib:381: arch/arm64/boot/dts/rockchip/pro-rk3566.dtb] Error 1
make[1]: *** [Makefile:1477: rockchip/pro-rk3566.dtb] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [arch/arm64/Makefile:214: pro-rk3566.img] Error 2
make: Leaving directory '/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel'
ERROR: Running /home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/device/rockchip/common/build-hooks/10-kernel.sh - run_command failed!
ERROR: exit code 2 from line 36:
    $@
ERROR: call stack:
    build-helper: run_command(36)
    10-kernel.sh: do_build(59)
    10-kernel.sh: build_hook(407)
    build-helper: try_func(63)
    build-helper: try_hook(96)
    build-helper: source(174)
    10-kernel.sh: main(455)
ERROR: Running /home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/device/rockchip/common/build-hooks/10-kernel.sh - try_func build_hook kernel failed!
ERROR: exit code 2 from line 67:
    build_hook
ERROR: call stack:
    build-helper: try_func(67)
    build-helper: try_hook(96)
    build-helper: source(174)
    10-kernel.sh: main(455)
viewpro@viewpro-ThinkBook-16-G5-IRH:~/RK3566_RK3568_Linux5.10_V1.2.0$ 


4、【路径依赖问题】
RK_YOCTO_DISPLAY_PLATFORM=wayland
RK_YOCTO_MACHINE=rockchip-rk3566-evb
RK_YOCTO_USBMOUNT=y

Toolchain for kernel:
/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-

==========================================
          Start building kernel
==========================================
+ make -C /home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel/ -j21 CROSS_COMPILE=/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu- ARCH=arm64 rockchip_linux_defconfig
make: Entering directory '/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel'
#
# No change to .config
#
make: Leaving directory '/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel'
+ make -C /home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel/ -j21 CROSS_COMPILE=/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu- ARCH=arm64 pro-rk3566.img
make: Entering directory '/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel'
  DTC     arch/arm64/boot/dts/rockchip/pro-rk3566.dtb
arch/arm64/boot/dts/rockchip/pro-rk3566.dts:15:10: fatal error: ../rk3568-linux.dtsi: No such file or directory
   15 | #include "../rk3568-linux.dtsi"
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.lib:381: arch/arm64/boot/dts/rockchip/pro-rk3566.dtb] Error 1
make[1]: *** [Makefile:1477: rockchip/pro-rk3566.dtb] Error 2
make: *** [arch/arm64/Makefile:214: pro-rk3566.img] Error 2
make: Leaving directory '/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel'
ERROR: Running
/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/device/rockchip/common/build-hooks/10-kernel.sh - run_command failed!
ERROR: exit code 2 from line 36:
    $@
ERROR: call stack:
    build-helper: run_command(36)
    10-kernel.sh: do_build(59)
    10-kernel.sh: build_hook(407)
    build-helper: try_func(63)
    build-helper: try_hook(96)
    build-helper: source(174)
    10-kernel.sh: main(455)
ERROR: Running /home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/device/rockchip/common/build-hooks/10-kernel.sh - try_func build_hook kernel failed!
ERROR: exit code 2 from line 67:
    build_hook
ERROR: call stack:
    build-helper: try_func(67)
    build-helper: try_hook(96)
    build-helper: source(174)
    10-kernel.sh: main(455)
viewpro@viewpro-ThinkBook-16-G5-IRH:~/RK3566_RK3568_Linux5.10_V1.2.0$ 


5、【将DTS目录中的临时文件全部删除,这样更新DTS编译内核会非常快!然后打包】

viewpro@viewpro-ThinkBook-16-G5-IRH:~/RK3566_RK3568_Linux5.10_V1.2.0$ ./build.sh kernel
viewpro@viewpro-ThinkBook-16-G5-IRH:~/RK3566_RK3568_Linux5.10_V1.2.0$ ./build.sh updateimg


Default option is 'all'.
viewpro@viewpro-ThinkBook-16-G5-IRH:~/RK3566_RK3568_Linux5.10_V1.2.0$ 
viewpro@viewpro-ThinkBook-16-G5-IRH:~/RK3566_RK3568_Linux5.10_V1.2.0$ ./build.sh kernel
Log colors: message notice warning error fatal

Log saved at /home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/output/sessions/2024-11-01_19-35-36
WARN: /home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/output/.config is out-dated
#
# configuration written to /home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/output/.config
#
Using last kernel version(5.10)

==========================================
          Final configs
==========================================
RK_BOOT_FIT_ITS=/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/device/rockchip/.chip/boot.its
RK_BOOT_IMG=boot.img
RK_BUILDROOT=y
RK_BUILDROOT_CFG=rockchip_rk3566
RK_CHIP=rk3566
RK_CHIP_FAMILY=rk3566_rk3568
RK_DEBIAN=y
RK_DEBIAN_ARCH=arm64
RK_DEBIAN_BULLSEYE=y
RK_DEBIAN_MIRROR=mirrors.ustc.edu.cn
RK_DEBIAN_VERSION=bullseye
RK_DEFCONFIG=rockchip_rk3566_evb2_lp4x_v10_defconfig
RK_EXTRA_PARTITION_NUM=2
RK_EXTRA_PARTITION_STR=oem:oem:/oem:ext4:defaults:normal:auto:@userdata:userdata:/userdata:ext4:defaults:normal:auto:@@@
RK_KERNEL=y
RK_KERNEL_ARCH=arm64
RK_KERNEL_CFG=rockchip_linux_defconfig
RK_KERNEL_DTS=kernel/arch/arm64/boot/dts/rockchip/pro-rk3566.dts
RK_KERNEL_IMG=kernel/arch/arm64/boot/Image
RK_KERNEL_VERSION=5.10
RK_KERNEL_VERSION_RAW=5.10
RK_LOADER=y
RK_MISC=y
RK_MISC_BLANK=y
RK_OVERLAY=y
RK_OWNER=viewpro
RK_OWNER_UID=1000
RK_PARAMETER=parameter-buildroot-fit.txt
RK_RECOVERY=y
RK_RECOVERY_CFG=rockchip_rk3566_recovery
RK_RECOVERY_CPIO_GZ=y
RK_RECOVERY_FIT_ITS=/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/device/rockchip/.chip/boot4recovery.its
RK_RECOVERY_INITRD_TYPE=cpio.gz
RK_ROOTFS=y
RK_ROOTFS_ASYNC_COMMIT=y
RK_ROOTFS_DEBUG_INFO=y
RK_ROOTFS_EXT4=y
RK_ROOTFS_FSTRIM=y
RK_ROOTFS_FSTRIM_INTERVAL=3600
RK_ROOTFS_GENERATE_LOGS=y
RK_ROOTFS_INPUT_EVENT_DAEMON=y
RK_ROOTFS_IRQBALANCE=y
RK_ROOTFS_LD_CACHE=y
RK_ROOTFS_LOG_GUARDIAN=y
RK_ROOTFS_LOG_GUARDIAN_INTERVAL=10m
RK_ROOTFS_LOG_GUARDIAN_LOG_DIRS=/var/log/,/tmp/
RK_ROOTFS_LOG_GUARDIAN_MIN_SIZE=100M
RK_ROOTFS_OVERLAY=y
RK_ROOTFS_STRIP_MODULES=y
RK_ROOTFS_SYSTEM=buildroot
RK_ROOTFS_TYPE=ext4
RK_ROOTFS_UDEV_RULES=y
RK_SAVE_TRACKED=y
RK_SESSION=2024-11-01_19-35-36
RK_UBOOT_ARCH=arm64
RK_UBOOT_CFG=rk3566
RK_UPDATE=y
RK_USB_ADBD=y
RK_USB_ADBD_SHELL=/bin/bash
RK_USB_ADBD_TCP_PORT=5555
RK_USB_FW_VER=0x0310
RK_USB_GADGET=y
RK_USB_MANUFACTURER=Rockchip
RK_USB_PRODUCT=rk3xxx
RK_USB_VID=0x2207
RK_USE_FIT_IMG=y
RK_WIFIBT=y
RK_WIFIBT_MODULES=ALL_AP
RK_WIFIBT_RTK_AP=y
RK_YOCTO=y
RK_YOCTO_CHROMIUM=y
RK_YOCTO_DISPLAY_PLATFORM=wayland
RK_YOCTO_MACHINE=rockchip-rk3566-evb
RK_YOCTO_USBMOUNT=y

Toolchain for kernel:
/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-

==========================================
          Start building kernel
==========================================
+ make -C /home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel/ -j21 CROSS_COMPILE=/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu- ARCH=arm64 rockchip_linux_defconfig
make: Entering directory '/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel'
#
# No change to .config
#
make: Leaving directory '/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel'
+ make -C /home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel/ -j21 CROSS_COMPILE=/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu- ARCH=arm64 pro-rk3566.img
make: Entering directory '/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel'
make[2]: *** No rule to make target 'arch/arm64/boot/dts/rockchip/pro-rk3566.dtb'.  Stop.
make[1]: *** [Makefile:1477: rockchip/pro-rk3566.dtb] Error 2
make: *** [arch/arm64/Makefile:214: pro-rk3566.img] Error 2
make: Leaving directory '/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel'
ERROR: Running /home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/device/rockchip/common/build-hooks/10-kernel.sh - run_command failed!
ERROR: exit code 2 from line 36:
    $@
ERROR: call stack:
    build-helper: run_command(36)
    10-kernel.sh: do_build(59)
    10-kernel.sh: build_hook(407)
    build-helper: try_func(63)
    build-helper: try_hook(96)
    build-helper: source(174)
    10-kernel.sh: main(455)
ERROR: Running /home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/device/rockchip/common/build-hooks/10-kernel.sh - try_func build_hook kernel failed!
ERROR: exit code 2 from line 67:
    build_hook
ERROR: call stack:
    build-helper: try_func(67)
    build-helper: try_hook(96)
    build-helper: source(174)
    10-kernel.sh: main(455)
viewpro@viewpro-ThinkBook-16-G5-IRH:~/RK3566_RK3568_Linux5.10_V1.2.0$ 
viewpro@viewpro-ThinkBook-16-G5-IRH:~/RK3566_RK3568_Linux5.10_V1.2.0$ 
viewpro@viewpro-ThinkBook-16-G5-IRH:~/RK3566_RK3568_Linux5.10_V1.2.0$ ./build.sh kernel
Log colors: message notice warning error fatal

Log saved at /home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/output/sessions/2024-11-01_19-36-23
WARN: /home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/output/.config is out-dated
#
# configuration written to /home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/output/.config
#
Using last kernel version(5.10)

==========================================
          Final configs
==========================================
RK_BOOT_FIT_ITS=/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/device/rockchip/.chip/boot.its
RK_BOOT_IMG=boot.img
RK_BUILDROOT=y
RK_BUILDROOT_CFG=rockchip_rk3566
RK_CHIP=rk3566
RK_CHIP_FAMILY=rk3566_rk3568
RK_DEBIAN=y
RK_DEBIAN_ARCH=arm64
RK_DEBIAN_BULLSEYE=y
RK_DEBIAN_MIRROR=mirrors.ustc.edu.cn
RK_DEBIAN_VERSION=bullseye
RK_DEFCONFIG=rockchip_rk3566_evb2_lp4x_v10_defconfig
RK_EXTRA_PARTITION_NUM=2
RK_EXTRA_PARTITION_STR=oem:oem:/oem:ext4:defaults:normal:auto:@userdata:userdata:/userdata:ext4:defaults:normal:auto:@@@
RK_KERNEL=y
RK_KERNEL_ARCH=arm64
RK_KERNEL_CFG=rockchip_linux_defconfig
RK_KERNEL_DTS=kernel/arch/arm64/boot/dts/rockchip/pro-rk3566.dts
RK_KERNEL_IMG=kernel/arch/arm64/boot/Image
RK_KERNEL_VERSION=5.10
RK_KERNEL_VERSION_RAW=5.10
RK_LOADER=y
RK_MISC=y
RK_MISC_BLANK=y
RK_OVERLAY=y
RK_OWNER=viewpro
RK_OWNER_UID=1000
RK_PARAMETER=parameter-buildroot-fit.txt
RK_RECOVERY=y
RK_RECOVERY_CFG=rockchip_rk3566_recovery
RK_RECOVERY_CPIO_GZ=y
RK_RECOVERY_FIT_ITS=/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/device/rockchip/.chip/boot4recovery.its
RK_RECOVERY_INITRD_TYPE=cpio.gz
RK_ROOTFS=y
RK_ROOTFS_ASYNC_COMMIT=y
RK_ROOTFS_DEBUG_INFO=y
RK_ROOTFS_EXT4=y
RK_ROOTFS_FSTRIM=y
RK_ROOTFS_FSTRIM_INTERVAL=3600
RK_ROOTFS_GENERATE_LOGS=y
RK_ROOTFS_INPUT_EVENT_DAEMON=y
RK_ROOTFS_IRQBALANCE=y
RK_ROOTFS_LD_CACHE=y
RK_ROOTFS_LOG_GUARDIAN=y
RK_ROOTFS_LOG_GUARDIAN_INTERVAL=10m
RK_ROOTFS_LOG_GUARDIAN_LOG_DIRS=/var/log/,/tmp/
RK_ROOTFS_LOG_GUARDIAN_MIN_SIZE=100M
RK_ROOTFS_OVERLAY=y
RK_ROOTFS_STRIP_MODULES=y
RK_ROOTFS_SYSTEM=buildroot
RK_ROOTFS_TYPE=ext4
RK_ROOTFS_UDEV_RULES=y
RK_SAVE_TRACKED=y
RK_SESSION=2024-11-01_19-36-23
RK_UBOOT_ARCH=arm64
RK_UBOOT_CFG=rk3566
RK_UPDATE=y
RK_USB_ADBD=y
RK_USB_ADBD_SHELL=/bin/bash
RK_USB_ADBD_TCP_PORT=5555
RK_USB_FW_VER=0x0310
RK_USB_GADGET=y
RK_USB_MANUFACTURER=Rockchip
RK_USB_PRODUCT=rk3xxx
RK_USB_VID=0x2207
RK_USE_FIT_IMG=y
RK_WIFIBT=y
RK_WIFIBT_MODULES=ALL_AP
RK_WIFIBT_RTK_AP=y
RK_YOCTO=y
RK_YOCTO_CHROMIUM=y
RK_YOCTO_DISPLAY_PLATFORM=wayland
RK_YOCTO_MACHINE=rockchip-rk3566-evb
RK_YOCTO_USBMOUNT=y

Toolchain for kernel:
/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-

==========================================
          Start building kernel
==========================================
+ make -C /home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel/ -j21 CROSS_COMPILE=/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu- ARCH=arm64 rockchip_linux_defconfig
make: Entering directory '/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel'
#
# No change to .config
#
make: Leaving directory '/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel'
+ make -C /home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel/ -j21 CROSS_COMPILE=/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu- ARCH=arm64 pro-rk3566.img
make: Entering directory '/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel'
  DTC     arch/arm64/boot/dts/rockchip/pro-rk3566.dtb
In file included from arch/arm64/boot/dts/rockchip/pro-rk3566.dts:12:
arch/arm64/boot/dts/rockchip/rk3566-evb-rpdzkj-rk809-tcs4525.dtsi:17:10: fatal error: ../rk3566.dtsi: No such file or directory
   17 | #include "../rk3566.dtsi"
      |          ^~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.lib:381: arch/arm64/boot/dts/rockchip/pro-rk3566.dtb] Error 1
make[1]: *** [Makefile:1477: rockchip/pro-rk3566.dtb] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [arch/arm64/Makefile:214: pro-rk3566.img] Error 2
make: Leaving directory '/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel'
ERROR: Running /home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/device/rockchip/common/build-hooks/10-kernel.sh - run_command failed!
ERROR: exit code 2 from line 36:
    $@
ERROR: call stack:
    build-helper: run_command(36)
    10-kernel.sh: do_build(59)
    10-kernel.sh: build_hook(407)
    build-helper: try_func(63)
    build-helper: try_hook(96)
    build-helper: source(174)
    10-kernel.sh: main(455)
ERROR: Running /home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/device/rockchip/common/build-hooks/10-kernel.sh - try_func build_hook kernel failed!
ERROR: exit code 2 from line 67:
    build_hook
ERROR: call stack:
    build-helper: try_func(67)
    build-helper: try_hook(96)
    build-helper: source(174)
    10-kernel.sh: main(455)
viewpro@viewpro-ThinkBook-16-G5-IRH:~/RK3566_RK3568_Linux5.10_V1.2.0$ 
viewpro@viewpro-ThinkBook-16-G5-IRH:~/RK3566_RK3568_Linux5.10_V1.2.0$ ./build.sh kernel
Log colors: message notice warning error fatal

Log saved at /home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/output/sessions/2024-11-01_19-41-19
Using last kernel version(5.10)

==========================================
          Final configs
==========================================
RK_BOOT_FIT_ITS=/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/device/rockchip/.chip/boot.its
RK_BOOT_IMG=boot.img
RK_BUILDROOT=y
RK_BUILDROOT_CFG=rockchip_rk3566
RK_CHIP=rk3566
RK_CHIP_FAMILY=rk3566_rk3568
RK_DEBIAN=y
RK_DEBIAN_ARCH=arm64
RK_DEBIAN_BULLSEYE=y
RK_DEBIAN_MIRROR=mirrors.ustc.edu.cn
RK_DEBIAN_VERSION=bullseye
RK_DEFCONFIG=rockchip_rk3566_evb2_lp4x_v10_defconfig
RK_EXTRA_PARTITION_NUM=2
RK_EXTRA_PARTITION_STR=oem:oem:/oem:ext4:defaults:normal:auto:@userdata:userdata:/userdata:ext4:defaults:normal:auto:@@@
RK_KERNEL=y
RK_KERNEL_ARCH=arm64
RK_KERNEL_CFG=rockchip_linux_defconfig
RK_KERNEL_DTS=kernel/arch/arm64/boot/dts/rockchip/pro-rk3566.dts
RK_KERNEL_IMG=kernel/arch/arm64/boot/Image
RK_KERNEL_VERSION=5.10
RK_KERNEL_VERSION_RAW=5.10
RK_LOADER=y
RK_MISC=y
RK_MISC_BLANK=y
RK_OVERLAY=y
RK_OWNER=viewpro
RK_OWNER_UID=1000
RK_PARAMETER=parameter-buildroot-fit.txt
RK_RECOVERY=y
RK_RECOVERY_CFG=rockchip_rk3566_recovery
RK_RECOVERY_CPIO_GZ=y
RK_RECOVERY_FIT_ITS=/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/device/rockchip/.chip/boot4recovery.its
RK_RECOVERY_INITRD_TYPE=cpio.gz
RK_ROOTFS=y
RK_ROOTFS_ASYNC_COMMIT=y
RK_ROOTFS_DEBUG_INFO=y
RK_ROOTFS_EXT4=y
RK_ROOTFS_FSTRIM=y
RK_ROOTFS_FSTRIM_INTERVAL=3600
RK_ROOTFS_GENERATE_LOGS=y
RK_ROOTFS_INPUT_EVENT_DAEMON=y
RK_ROOTFS_IRQBALANCE=y
RK_ROOTFS_LD_CACHE=y
RK_ROOTFS_LOG_GUARDIAN=y
RK_ROOTFS_LOG_GUARDIAN_INTERVAL=10m
RK_ROOTFS_LOG_GUARDIAN_LOG_DIRS=/var/log/,/tmp/
RK_ROOTFS_LOG_GUARDIAN_MIN_SIZE=100M
RK_ROOTFS_OVERLAY=y
RK_ROOTFS_STRIP_MODULES=y
RK_ROOTFS_SYSTEM=buildroot
RK_ROOTFS_TYPE=ext4
RK_ROOTFS_UDEV_RULES=y
RK_SAVE_TRACKED=y
RK_SESSION=2024-11-01_19-41-19
RK_UBOOT_ARCH=arm64
RK_UBOOT_CFG=rk3566
RK_UPDATE=y
RK_USB_ADBD=y
RK_USB_ADBD_SHELL=/bin/bash
RK_USB_ADBD_TCP_PORT=5555
RK_USB_FW_VER=0x0310
RK_USB_GADGET=y
RK_USB_MANUFACTURER=Rockchip
RK_USB_PRODUCT=rk3xxx
RK_USB_VID=0x2207
RK_USE_FIT_IMG=y
RK_WIFIBT=y
RK_WIFIBT_MODULES=ALL_AP
RK_WIFIBT_RTK_AP=y
RK_YOCTO=y
RK_YOCTO_CHROMIUM=y
RK_YOCTO_DISPLAY_PLATFORM=wayland
RK_YOCTO_MACHINE=rockchip-rk3566-evb
RK_YOCTO_USBMOUNT=y

Toolchain for kernel:
/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-

==========================================
          Start building kernel
==========================================
+ make -C /home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel/ -j21 CROSS_COMPILE=/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu- ARCH=arm64 rockchip_linux_defconfig
make: Entering directory '/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel'
#
# No change to .config
#
make: Leaving directory '/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel'
+ make -C /home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel/ -j21 CROSS_COMPILE=/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu- ARCH=arm64 pro-rk3566.img
make: Entering directory '/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel'
  DTC     arch/arm64/boot/dts/rockchip/pro-rk3566.dtb
arch/arm64/boot/dts/rockchip/pro-rk3566.dts:15:10: fatal error: ../rk3568-linux.dtsi: No such file or directory
   15 | #include "../rk3568-linux.dtsi"
      |          ^~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [scripts/Makefile.lib:381: arch/arm64/boot/dts/rockchip/pro-rk3566.dtb] Error 1
make[1]: *** [Makefile:1477: rockchip/pro-rk3566.dtb] Error 2
make: *** [arch/arm64/Makefile:214: pro-rk3566.img] Error 2
make: Leaving directory '/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel'
ERROR: Running /home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/device/rockchip/common/build-hooks/10-kernel.sh - run_command failed!
ERROR: exit code 2 from line 36:
    $@
ERROR: call stack:
    build-helper: run_command(36)
    10-kernel.sh: do_build(59)
    10-kernel.sh: build_hook(407)
    build-helper: try_func(63)
    build-helper: try_hook(96)
    build-helper: source(174)
    10-kernel.sh: main(455)
ERROR: Running /home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/device/rockchip/common/build-hooks/10-kernel.sh - try_func build_hook kernel failed!
ERROR: exit code 2 from line 67:
    build_hook
ERROR: call stack:
    build-helper: try_func(67)
    build-helper: try_hook(96)
    build-helper: source(174)
    10-kernel.sh: main(455)
viewpro@viewpro-ThinkBook-16-G5-IRH:~/RK3566_RK3568_Linux5.10_V1.2.0$ 
viewpro@viewpro-ThinkBook-16-G5-IRH:~/RK3566_RK3568_Linux5.10_V1.2.0$ 
viewpro@viewpro-ThinkBook-16-G5-IRH:~/RK3566_RK3568_Linux5.10_V1.2.0$ ./build.sh kernel
Log colors: message notice warning error fatal

Log saved at /home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/output/sessions/2024-11-01_19-43-15
Using last kernel version(5.10)

==========================================
          Final configs
==========================================
RK_BOOT_FIT_ITS=/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/device/rockchip/.chip/boot.its
RK_BOOT_IMG=boot.img
RK_BUILDROOT=y
RK_BUILDROOT_CFG=rockchip_rk3566
RK_CHIP=rk3566
RK_CHIP_FAMILY=rk3566_rk3568
RK_DEBIAN=y
RK_DEBIAN_ARCH=arm64
RK_DEBIAN_BULLSEYE=y
RK_DEBIAN_MIRROR=mirrors.ustc.edu.cn
RK_DEBIAN_VERSION=bullseye
RK_DEFCONFIG=rockchip_rk3566_evb2_lp4x_v10_defconfig
RK_EXTRA_PARTITION_NUM=2
RK_EXTRA_PARTITION_STR=oem:oem:/oem:ext4:defaults:normal:auto:@userdata:userdata:/userdata:ext4:defaults:normal:auto:@@@
RK_KERNEL=y
RK_KERNEL_ARCH=arm64
RK_KERNEL_CFG=rockchip_linux_defconfig
RK_KERNEL_DTS=kernel/arch/arm64/boot/dts/rockchip/pro-rk3566.dts
RK_KERNEL_IMG=kernel/arch/arm64/boot/Image
RK_KERNEL_VERSION=5.10
RK_KERNEL_VERSION_RAW=5.10
RK_LOADER=y
RK_MISC=y
RK_MISC_BLANK=y
RK_OVERLAY=y
RK_OWNER=viewpro
RK_OWNER_UID=1000
RK_PARAMETER=parameter-buildroot-fit.txt
RK_RECOVERY=y
RK_RECOVERY_CFG=rockchip_rk3566_recovery
RK_RECOVERY_CPIO_GZ=y
RK_RECOVERY_FIT_ITS=/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/device/rockchip/.chip/boot4recovery.its
RK_RECOVERY_INITRD_TYPE=cpio.gz
RK_ROOTFS=y
RK_ROOTFS_ASYNC_COMMIT=y
RK_ROOTFS_DEBUG_INFO=y
RK_ROOTFS_EXT4=y
RK_ROOTFS_FSTRIM=y
RK_ROOTFS_FSTRIM_INTERVAL=3600
RK_ROOTFS_GENERATE_LOGS=y
RK_ROOTFS_INPUT_EVENT_DAEMON=y
RK_ROOTFS_IRQBALANCE=y
RK_ROOTFS_LD_CACHE=y
RK_ROOTFS_LOG_GUARDIAN=y
RK_ROOTFS_LOG_GUARDIAN_INTERVAL=10m
RK_ROOTFS_LOG_GUARDIAN_LOG_DIRS=/var/log/,/tmp/
RK_ROOTFS_LOG_GUARDIAN_MIN_SIZE=100M
RK_ROOTFS_OVERLAY=y
RK_ROOTFS_STRIP_MODULES=y
RK_ROOTFS_SYSTEM=buildroot
RK_ROOTFS_TYPE=ext4
RK_ROOTFS_UDEV_RULES=y
RK_SAVE_TRACKED=y
RK_SESSION=2024-11-01_19-43-15
RK_UBOOT_ARCH=arm64
RK_UBOOT_CFG=rk3566
RK_UPDATE=y
RK_USB_ADBD=y
RK_USB_ADBD_SHELL=/bin/bash
RK_USB_ADBD_TCP_PORT=5555
RK_USB_FW_VER=0x0310
RK_USB_GADGET=y
RK_USB_MANUFACTURER=Rockchip
RK_USB_PRODUCT=rk3xxx
RK_USB_VID=0x2207
RK_USE_FIT_IMG=y
RK_WIFIBT=y
RK_WIFIBT_MODULES=ALL_AP
RK_WIFIBT_RTK_AP=y
RK_YOCTO=y
RK_YOCTO_CHROMIUM=y
RK_YOCTO_DISPLAY_PLATFORM=wayland
RK_YOCTO_MACHINE=rockchip-rk3566-evb
RK_YOCTO_USBMOUNT=y

Toolchain for kernel:
/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-

==========================================
          Start building kernel
==========================================
+ make -C /home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel/ -j21 CROSS_COMPILE=/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu- ARCH=arm64 rockchip_linux_defconfig
make: Entering directory '/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel'
#
# No change to .config
#
make: Leaving directory '/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel'
+ make -C /home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel/ -j21 CROSS_COMPILE=/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu- ARCH=arm64 pro-rk3566.img
make: Entering directory '/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel'
  DTC     arch/arm64/boot/dts/rockchip/pro-rk3566.dtb
arch/arm64/boot/dts/rockchip/pro-rk3566-single-lcd-gpio.dtsi:97.26-104.7: Warning (i2c_bus_reg): /i2c@fe5a0000/goodix_gt1x@5d: missing or empty reg property
  CALL    scripts/atomic/check-atomics.sh
  CALL    scripts/checksyscalls.sh
  CHK     include/generated/compile.h
fatal: not a git repository (or any of the parent directories): .git
  Image:  resource.img (with pro-rk3566.dtb logo.bmp logo_kernel.bmp) is ready
  Image:  boot.img (with Image  resource.img) is ready
  Image:  zboot.img (with Image.lz4  resource.img) is ready
make: Leaving directory '/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/kernel'
+ /home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/device/rockchip/common/scripts/mk-fitimage.sh kernel/boot.img /home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/device/rockchip/.chip/boot.its kernel/arch/arm64/boot/Image kernel/arch/arm64/boot/dts/rockchip/pro-rk3566.dtb kernel/resource.img
FIT description: U-Boot FIT source file for arm
Created:         Fri Nov  1 19:43:22 2024
 Image 0 (fdt)
  Description:  unavailable
  Created:      Fri Nov  1 19:43:22 2024
  Type:         Flat Device Tree
  Compression:  uncompressed
  Data Size:    171637 Bytes = 167.61 KiB = 0.16 MiB
  Architecture: AArch64
  Load Address: 0xffffff00
  Hash algo:    sha256
  Hash value:   f7d05bec7b0df3ef8859e186d264cd5ff9b39d6ba73af446478a282eb725456d
 Image 1 (kernel)
  Description:  unavailable
  Created:      Fri Nov  1 19:43:22 2024
  Type:         Kernel Image
  Compression:  uncompressed
  Data Size:    36864512 Bytes = 36000.50 KiB = 35.16 MiB
  Architecture: AArch64
  OS:           Linux
  Load Address: 0xffffff01
  Entry Point:  0xffffff01
  Hash algo:    sha256
  Hash value:   f35f300057e8861d17532a75d31a265c39521245a749fb77e941e91704c00a75
 Image 2 (resource)
  Description:  unavailable
  Created:      Fri Nov  1 19:43:22 2024
  Type:         Multi-File Image
  Compression:  uncompressed
  Data Size:    209920 Bytes = 205.00 KiB = 0.20 MiB
  Hash algo:    sha256
  Hash value:   50095975c30cfd5ea4d807dfdec71ddf1b548e0be79014417d2fc20e2a2d1336
 Default Configuration: 'conf'
 Configuration 0 (conf)
  Description:  unavailable
  Kernel:       kernel
  FDT:          fdt
+ ln -rsf kernel/boot.img /home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/output/firmware/boot.img
grep: exceeded PCRE's backtracking limit
grep: exceeded PCRE's backtracking limit
grep: exceeded PCRE's backtracking limit
grep: exceeded PCRE's backtracking limit
grep: exceeded PCRE's backtracking limit
grep: exceeded PCRE's backtracking limit
grep: exceeded PCRE's backtracking limit
 PLEASE CHECK BOARD GPIO POWER DOMAIN CONFIGURATION !!!!!
 <<< ESPECIALLY Wi-Fi/Flash/Ethernet IO power domain >>> !!!!!
 Check Node [pmu_io_domains] in the file: kernel/arch/arm64/boot/dts/rockchip/pro-rk3566.dts 

 请再次确认板级的电源域配置!!!!!!
 <<< 特别是Wi-Fi,FLASH,以太网这几路IO电源的配置 >>> !!!!!
 检查内核文件 kernel/arch/arm64/boot/dts/rockchip/pro-rk3566.dts 的节点 [pmu_io_domains] 
Running 10-kernel.sh - build_kernel succeeded.
viewpro@viewpro-ThinkBook-16-G5-IRH:~/RK3566_RK3568_Linux5.10_V1.2.0$ 
viewpro@viewpro-ThinkBook-16-G5-IRH:~/RK3566_RK3568_Linux5.10_V1.2.0$ 
viewpro@viewpro-ThinkBook-16-G5-IRH:~/RK3566_RK3568_Linux5.10_V1.2.0$ ll
total 76
drwxr-xr-x 17 viewpro viewpro  4096 11月  1 13:03 ./
drwxr-xr-x 43 viewpro viewpro 12288 11月  1 18:34 ../
drwxr-xr-x  4 viewpro viewpro  4096 4月   3  2024 app/
drwxr-xr-x 19 viewpro viewpro  4096 11月  1 12:46 buildroot/
lrwxrwxrwx  1 viewpro viewpro    39 4月   3  2024 build.sh -> device/rockchip/common/scripts/build.sh*
lrwxrwxrwx  1 viewpro viewpro    22 4月   3  2024 common -> device/rockchip/common/
drwxr-xr-x  9 viewpro viewpro  4096 10月 22 10:32 debian/
drwxr-xr-x  3 viewpro viewpro  4096 4月   3  2024 device/
drwxr-xr-x  6 viewpro viewpro  4096 10月 22 10:32 docs/
drwxr-xr-x 29 viewpro viewpro  4096 10月 22 10:32 external/
drwxr-xr-x 26 viewpro viewpro  4096 11月  1 19:43 kernel/
lrwxrwxrwx  1 viewpro viewpro    31 4月   3  2024 Makefile -> device/rockchip/common/Makefile
drwxrwxr-x 10 viewpro viewpro  4096 11月  1 19:43 output/
drwxr-xr-x  3 viewpro viewpro  4096 4月   3  2024 prebuilts/
lrwxrwxrwx  1 viewpro viewpro    32 4月   3  2024 README.md -> device/rockchip/common/README.md
drwxr-xr-x  9 viewpro viewpro  4096 4月   3  2024 repo/
drwxr-xr-x  9 viewpro viewpro  4096 11月  1 11:56 rkbin/
lrwxrwxrwx  1 viewpro viewpro    41 4月   3  2024 rkflash.sh -> device/rockchip/common/scripts/rkflash.sh*
lrwxrwxrwx  1 viewpro viewpro    15 11月  1 13:03 rockdev -> output/firmware/
drwxr-xr-x 16 viewpro viewpro  4096 10月 22 10:32 rtos/
drwxr-xr-x  5 viewpro viewpro  4096 4月   3  2024 tools/
drwxr-xr-x 27 viewpro viewpro  4096 11月  1 11:56 u-boot/
drwxr-xr-x  9 viewpro viewpro  4096 10月 22 10:32 yocto/
viewpro@viewpro-ThinkBook-16-G5-IRH:~/RK3566_RK3568_Linux5.10_V1.2.0$ 
viewpro@viewpro-ThinkBook-16-G5-IRH:~/RK3566_RK3568_Linux5.10_V1.2.0$ 
viewpro@viewpro-ThinkBook-16-G5-IRH:~/RK3566_RK3568_Linux5.10_V1.2.0$ 
viewpro@viewpro-ThinkBook-16-G5-IRH:~/RK3566_RK3568_Linux5.10_V1.2.0$ ./build.sh updateimg
Log colors: message notice warning error fatal

Log saved at /home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/output/sessions/2024-11-01_19-45-06
Using last kernel version(5.10)

==========================================
          Final configs
==========================================
RK_BOOT_FIT_ITS=/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/device/rockchip/.chip/boot.its
RK_BOOT_IMG=boot.img
RK_BUILDROOT=y
RK_BUILDROOT_CFG=rockchip_rk3566
RK_CHIP=rk3566
RK_CHIP_FAMILY=rk3566_rk3568
RK_DEBIAN=y
RK_DEBIAN_ARCH=arm64
RK_DEBIAN_BULLSEYE=y
RK_DEBIAN_MIRROR=mirrors.ustc.edu.cn
RK_DEBIAN_VERSION=bullseye
RK_DEFCONFIG=rockchip_rk3566_evb2_lp4x_v10_defconfig
RK_EXTRA_PARTITION_NUM=2
RK_EXTRA_PARTITION_STR=oem:oem:/oem:ext4:defaults:normal:auto:@userdata:userdata:/userdata:ext4:defaults:normal:auto:@@@
RK_KERNEL=y
RK_KERNEL_ARCH=arm64
RK_KERNEL_CFG=rockchip_linux_defconfig
RK_KERNEL_DTS=kernel/arch/arm64/boot/dts/rockchip/pro-rk3566.dts
RK_KERNEL_IMG=kernel/arch/arm64/boot/Image
RK_KERNEL_VERSION=5.10
RK_KERNEL_VERSION_RAW=5.10
RK_LOADER=y
RK_MISC=y
RK_MISC_BLANK=y
RK_OVERLAY=y
RK_OWNER=viewpro
RK_OWNER_UID=1000
RK_PARAMETER=parameter-buildroot-fit.txt
RK_RECOVERY=y
RK_RECOVERY_CFG=rockchip_rk3566_recovery
RK_RECOVERY_CPIO_GZ=y
RK_RECOVERY_FIT_ITS=/home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/device/rockchip/.chip/boot4recovery.its
RK_RECOVERY_INITRD_TYPE=cpio.gz
RK_ROOTFS=y
RK_ROOTFS_ASYNC_COMMIT=y
RK_ROOTFS_DEBUG_INFO=y
RK_ROOTFS_EXT4=y
RK_ROOTFS_FSTRIM=y
RK_ROOTFS_FSTRIM_INTERVAL=3600
RK_ROOTFS_GENERATE_LOGS=y
RK_ROOTFS_INPUT_EVENT_DAEMON=y
RK_ROOTFS_IRQBALANCE=y
RK_ROOTFS_LD_CACHE=y
RK_ROOTFS_LOG_GUARDIAN=y
RK_ROOTFS_LOG_GUARDIAN_INTERVAL=10m
RK_ROOTFS_LOG_GUARDIAN_LOG_DIRS=/var/log/,/tmp/
RK_ROOTFS_LOG_GUARDIAN_MIN_SIZE=100M
RK_ROOTFS_OVERLAY=y
RK_ROOTFS_STRIP_MODULES=y
RK_ROOTFS_SYSTEM=buildroot
RK_ROOTFS_TYPE=ext4
RK_ROOTFS_UDEV_RULES=y
RK_SAVE_TRACKED=y
RK_SESSION=2024-11-01_19-45-06
RK_UBOOT_ARCH=arm64
RK_UBOOT_CFG=rk3566
RK_UPDATE=y
RK_USB_ADBD=y
RK_USB_ADBD_SHELL=/bin/bash
RK_USB_ADBD_TCP_PORT=5555
RK_USB_FW_VER=0x0310
RK_USB_GADGET=y
RK_USB_MANUFACTURER=Rockchip
RK_USB_PRODUCT=rk3xxx
RK_USB_VID=0x2207
RK_USE_FIT_IMG=y
RK_WIFIBT=y
RK_WIFIBT_MODULES=ALL_AP
RK_WIFIBT_RTK_AP=y
RK_YOCTO=y
RK_YOCTO_CHROMIUM=y
RK_YOCTO_DISPLAY_PLATFORM=wayland
RK_YOCTO_MACHINE=rockchip-rk3566-evb
RK_YOCTO_USBMOUNT=y

Making update image...
==========================================
          Start packing update image
==========================================
Generating package-file for update:
# NAME    PATH
package-file    package-file
parameter    parameter.txt
bootloader    MiniLoaderAll.bin
uboot    uboot.img
misc    misc.img
boot    boot.img
recovery    recovery.img
backup    RESERVED
rootfs    rootfs.img
oem    oem.img
userdata    userdata.img
Packing /home/viewpro/RK3566_RK3568_Linux5.10_V1.2.0/output/firmware/update.img for update...
Android Firmware Package Tool v2.27
------ PACKAGE ------
Add file: ./package-file
package-file,Add file: ./package-file done,offset=0x800,size=0xe1,userspace=0x1
Add file: ./parameter.txt
parameter,Add file: ./parameter.txt done,offset=0x1000,size=0x1f8,userspace=0x1,flash_address=0x00000000
Add file: ./MiniLoaderAll.bin
bootloader,Add file: ./MiniLoaderAll.bin done,offset=0x1800,size=0x759c0,userspace=0xec
Add file: ./uboot.img
uboot,Add file: ./uboot.img done,offset=0x77800,size=0x400000,userspace=0x800,flash_address=0x00004000
Add file: ./misc.img
misc,Add file: ./misc.img done,offset=0x477800,size=0xc000,userspace=0x18,flash_address=0x00006000
Add file: ./boot.img
boot,Add file: ./boot.img done,offset=0x483800,size=0x2386200,userspace=0x470d,flash_address=0x00008000
Add file: ./recovery.img
recovery,Add file: ./recovery.img done,offset=0x280a000,size=0x29fa400,userspace=0x53f5,flash_address=0x00028000
Add file: ./rootfs.img
rootfs,Add file: ./rootfs.img done,offset=0x5204800,size=0x35b00000,userspace=0x6b600,flash_address=0x00078000
Add file: ./oem.img
oem,Add file: ./oem.img done,offset=0x3ad04800,size=0x11ef000,userspace=0x23de,flash_address=0x00c78000
Add file: ./userdata.img
userdata,Add file: ./userdata.img done,offset=0x3bef3800,size=0x44e000,userspace=0x89c,flash_address=0x00cb8000
Add CRC...
Make firmware OK!
------ OK ------
********rkImageMaker ver 2.23********
Generating new image, please wait...
Writing head info...
Writing boot file...
Writing firmware...
Generating MD5 data...
MD5 data generated successfully!
New image generated successfully!

Run 'make edit-package-file' if you want to change the package-file.

Running 90-updateimg.sh - build_updateimg succeeded.
viewpro@viewpro-ThinkBook-16-G5-IRH:~/RK3566_RK3568_Linux5.10_V1.2.0$ 


6、刷机之后千兆网卡跑iperf2正常。

Microsoft Windows [版本 10.0.22621.3296]
(c) Microsoft Corporation。保留所有权利。

C:\Users\QQ>adb shell
root@rk3566-buildroot:/#
root@rk3566-buildroot:/#
root@rk3566-buildroot:/# ifconfig
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:20 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1272 (1.2 KiB)  TX bytes:1272 (1.2 KiB)

wlan0     Link encap:Ethernet  HWaddr 70:F7:54:9A:5F:9A
          inet6 addr: fe80::72f7:54ff:fe9a:5f9a/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:878 (878.0 B)

root@rk3566-buildroot:/#
root@rk3566-buildroot:/#
root@rk3566-buildroot:/# ifconfig -a
eth0      Link encap:Ethernet  HWaddr EE:51:66:48:61:9A
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:48

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:20 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1272 (1.2 KiB)  TX bytes:1272 (1.2 KiB)

wlan0     Link encap:Ethernet  HWaddr 70:F7:54:9A:5F:9A
          inet6 addr: fe80::72f7:54ff:fe9a:5f9a/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:878 (878.0 B)

wlan1     Link encap:Ethernet  HWaddr 72:F7:54:9A:5F:9A
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

root@rk3566-buildroot:/#
root@rk3566-buildroot:/#
root@rk3566-buildroot:/# ud
udevadm  udevd    udhcpc
root@rk3566-buildroot:/# udhcpc
udhcpc: started, v1.36.1
udhcpc: broadcasting discover
udhcpc: broadcasting discover
udhcpc: broadcasting discover
udhcpc: broadcasting select for 192.168.3.128, server 192.168.3.1
udhcpc: lease of 192.168.3.128 obtained from 192.168.3.1, lease time 86400
deleting routers
adding dns 192.168.3.1
root@rk3566-buildroot:/# ifconfig
eth0      Link encap:Ethernet  HWaddr EE:51:66:48:61:9A
          inet addr:192.168.3.128  Bcast:192.168.3.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:51 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:5753 (5.6 KiB)  TX bytes:684 (684.0 B)
          Interrupt:48

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:20 errors:0 dropped:0 overruns:0 frame:0
          TX packets:20 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:1272 (1.2 KiB)  TX bytes:1272 (1.2 KiB)

wlan0     Link encap:Ethernet  HWaddr 70:F7:54:9A:5F:9A
          inet6 addr: fe80::72f7:54ff:fe9a:5f9a/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:0 (0.0 B)  TX bytes:878 (878.0 B)

root@rk3566-buildroot:/#
root@rk3566-buildroot:/#
root@rk3566-buildroot:/# iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size:  128 KByte (default)
------------------------------------------------------------
[  1] local 192.168.3.128 port 5001 connected with 192.168.3.71 port 47958
[ ID] Interval       Transfer     Bandwidth
[  1] 0.00-1800.02 sec   126 GBytes   599 Mbits/sec


viewpro@viewpro-ThinkBook-16-G5-IRH:~$ 
viewpro@viewpro-ThinkBook-16-G5-IRH:~$ iperf -c 192.168.3.128 -i 1 -t 1800
------------------------------------------------------------
Client connecting to 192.168.3.128, TCP port 5001
TCP window size: 1.19 MByte (default)
------------------------------------------------------------
[  3] local 192.168.3.71 port 47958 connected with 192.168.3.128 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0- 1.0 sec  60.8 MBytes   510 Mbits/sec
[  3]  1.0- 2.0 sec  59.2 MBytes   497 Mbits/sec
[  3]  2.0- 3.0 sec  58.4 MBytes   490 Mbits/sec
[  3]  3.0- 4.0 sec  61.5 MBytes   516 Mbits/sec
[  3]  4.0- 5.0 sec  67.8 MBytes   568 Mbits/sec

[  3] 1795.0-1796.0 sec  91.1 MBytes   764 Mbits/sec
[  3] 1796.0-1797.0 sec  82.4 MBytes   691 Mbits/sec
[  3] 1797.0-1798.0 sec  75.1 MBytes   630 Mbits/sec
[  3] 1798.0-1799.0 sec  78.2 MBytes   656 Mbits/sec
[  3] 1799.0-1800.0 sec  76.9 MBytes   645 Mbits/sec
[  3]  0.0-1800.0 sec   126 GBytes   599 Mbits/sec
viewpro@viewpro-ThinkBook-16-G5-IRH:~$ 


http://www.kler.cn/a/375001.html

相关文章:

  • Raspberry Pi 树莓派产品系列说明
  • 【前端】在 Next.js 开发服务器中应该如何配置 HTTPS?
  • 【深度学习】实验 — 动手实现 GPT【三】:LLM架构、LayerNorm、GELU激活函数
  • 数字信号处理Python示例(1)使用Python生成正弦信号
  • 树叶分类竞赛(Baseline)以及kaggle的GPU使用
  • 【原创分享】JVM服务调优实战
  • 91.【C语言】数据结构之单向链表的头删和尾删
  • MySQL 日志之 binlog 格式 → 关于 MySQL 默认隔离级别的探讨
  • 如何实现图片懒加载,原生 + React 实现方式
  • 数据库管理系统的ACID都各自是什么?
  • 遗传算法:AI 借鉴生物进化的优化方法
  • HTML练习题 :新闻列表 包含盒子模型,内边距,外边距,鼠标悬停
  • 数据结构模拟题[二]
  • scrapy爬取名人名言
  • 安卓基础001
  • .NET Core WebApi第4讲:控制器、路由
  • LeetCode每日一题3165---不包含相邻元素的子序列的最大和
  • 扩展el-table,实现当showOverflowTooltip时,鼠标可移入tooltip功能
  • 一个免费开源自托管的机器翻译项目,支持API接口
  • 建筑行业知识库搭建:好处、方法与注意事项
  • Chrome和Firefox哪款浏览器的密码管理更安全
  • C++第十讲:继承
  • LeetCode --- 421周赛
  • linux开机自启动三种方式
  • PySpark的使用
  • 一、Go语言快速入门之基础语法