RK3308编译log

下面为ubuntu22.4中编译信息: ~/RK3308/armsom-p2pro-bsp$ ./build.sh processing option: allsave ============================================ TARGET_KERNEL_ARCH=arm64 TARGET_PLATFORM=rk3308 TARGET_UBOOT_CONFIG=rk3308 TARGET_SPL_CONFIG= TARGET_KERNEL_CONFIG=rk3308_linux_defconfig TARGET_KERNEL_DTS=rk3308-bpi-p2_pro TARGET_BUILDROOT_CONFIG=rockchip_rk3308_release TARGET_RECOVERY_CONFIG=rockchip_rk3308_recovery TARGET_PCBA_CONFIG=rockchip_rk3308_pcba TARGET_RAMBOOT= ============================================ Using prebuilt GCC toolchain: /home/yang/RK3308/armsom-p2pro-bsp/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu- ============Start building uboot============ TARGET_UBOOT_CONFIG=rk3308 ========================================= ## make rk3308_defconfig -j4 # # configuration written to .config # scripts/kconfig/conf --silentoldconfig Kconfig CHK include/config.h CFG u-boot.cfg CFG spl/u-boot.cfg GEN include/autoconf.mk.dep CFG tpl/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/generated/version_autogenerated.h CHK include/generated/generic-asm-offsets.h CHK include/generated/asm-offsets.h CHK include/config.h CFG u-boot.cfg HOSTCC tools/mkenvimage.o HOSTCC tools/fit_image.o HOSTCC tools/image-host.o HOSTCC tools/dumpimage.o HOSTCC tools/mkimage.o HOSTCC tools/rockchip/boot_merger.o HOSTCC tools/rockchip/loaderimage.o HOSTLD tools/mkenvimage HOSTLD tools/mkimage HOSTLD tools/dumpimage HOSTLD tools/loaderimage tools/rockchip/boot_merger.c: In function ‘mergeBoot’: tools/rockchip/boot_merger.c:700:43: warning: ‘%s’ directive output may be truncated writing up to 813 bytes into a region of size 5 [-Wformat-truncation=] 700 | snprintf(buffer, sizeof(buffer), "%s", chip); | ^~ ...... 742 | chipType = convertChipType(chip + 2); | ~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /usr/include/stdio.h:894, from ././include/compiler.h:25, from <command-line>: /usr/include/x86_64-linux-gnu/bits/stdio2.h:71:10: note: ‘__builtin_snprintf’ output between 1 and 814 bytes into a destination of size 5 71 | return __builtin___snprintf_chk (__s, __n, __USE_FORTIFY_LEVEL - 1, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 72 | __glibc_objsize (__s), __fmt, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 73 | __va_arg_pack ()); | ~~~~~~~~~~~~~~~~~ tools/rockchip/boot_merger.c: In function ‘main’: tools/rockchip/boot_merger.c:895:18: warning: array subscript 20 is outside array bounds of ‘char[20]’ [-Warray-bounds] 895 | str[len] = 0; | ~~~~~~~~~^~~ tools/rockchip/boot_merger.c:933:14: note: while referencing ‘name’ 933 | char name[MAX_NAME_LEN]; | ^~~~ 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 lib/display_options.o LD lib/built-in.o LD u-boot OBJCOPY u-boot.srec OBJCOPY u-boot-nodtb.bin SYM u-boot.sym start=$(/home/yang/RK3308/armsom-p2pro-bsp/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-nm u-boot | grep __rel_dyn_start | cut -f 1 -d ' '); end=$(/home/yang/RK3308/armsom-p2pro-bsp/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu-nm u-boot | grep __rel_dyn_end | cut -f 1 -d ' '); tools/relocate-rela u-boot-nodtb.bin 0x00600000 $start $end make[2]: “arch/arm/dts/rk3308-evb.dtb”已是最新。 MKIMAGE u-boot.img COPY u-boot.dtb MKIMAGE u-boot-dtb.img CAT u-boot-dtb.bin COPY u-boot.bin ALIGN u-boot.bin CC spl/arch/arm/cpu/armv8/fwcall.o CC tpl/arch/arm/mach-rockchip/tpl.o CC spl/common/spl/spl.o CC tpl/arch/arm/cpu/armv8/fwcall.o LD spl/arch/arm/cpu/armv8/built-in.o LD tpl/arch/arm/mach-rockchip/built-in.o LD tpl/arch/arm/cpu/armv8/built-in.o LD spl/common/spl/built-in.o CC spl/lib/display_options.o COPY spl/u-boot-spl.dtb 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 load addr is 0x600000! pack input u-boot.bin pack file size: 750096(732 KB) crc = 0xbf24fab6 uboot version: U-Boot 2017.09-gc64e256218-200416 #yzc (Apr 29 2020 - 16:22:05) pack uboot.img success! pack uboot okay! Input: u-boot.bin out:trust.img merge success(trust.img) pack trust okay! Input: /home/yang/RK3308/armsom-p2pro-bsp/rkbin/RKTRUST/RK3308TRUST.ini /home/yang/RK3308/armsom-p2pro-bsp/u-boot ********boot_merger ver 1.2******** Info:Pack loader ok. pack loader okay! Input: /home/yang/RK3308/armsom-p2pro-bsp/rkbin/RKBOOT/RK3308MINIALL.ini /home/yang/RK3308/armsom-p2pro-bsp/u-boot Platform RK3308 is build OK, with new .config(make rk3308_defconfig -j4) /home/yang/RK3308/armsom-p2pro-bsp/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu- Mon Aug 24 17:49:10 CST 2026 Running build_uboot succeeded. Skipping build_loader for missing configs: RK_LOADER_BUILD_TARGET. ============Start building kernel============ TARGET_KERNEL_ARCH =arm64 TARGET_KERNEL_CONFIG =rk3308_linux_defconfig TARGET_KERNEL_DTS =rk3308-bpi-p2_pro TARGET_KERNEL_CONFIG_FRAGMENT = ========================================== Using prebuilt GCC toolchain: /home/yang/RK3308/armsom-p2pro-bsp/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu- make: Entering directory '/home/yang/RK3308/armsom-p2pro-bsp/kernel' # # No change to .config # make: Leaving directory '/home/yang/RK3308/armsom-p2pro-bsp/kernel' make: Entering directory '/home/yang/RK3308/armsom-p2pro-bsp/kernel' DTC arch/arm64/boot/dts/rockchip/rk3308-bpi-p2_pro.dtb CALL scripts/atomic/check-atomics.sh CALL scripts/checksyscalls.sh CHK include/generated/compile.h Image: resource.img (with rk3308-bpi-p2_pro.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/yang/RK3308/armsom-p2pro-bsp/kernel' 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/rk3308-bpi-p2_pro.dts 请再次确认板级的电源域配置!!!!!! <<< 特别是Wi-Fi,FLASH,以太网这几路IO电源的配置 >>> !!!!! 检查内核文件 kernel/arch/arm64/boot/dts/rockchip/rk3308-bpi-p2_pro.dts 的节点 [pmu_io_domains] vccio0-supply regulator-min-microvolt = 3300mV regulator-max-microvolt = 3300mV vccio1-supply regulator-min-microvolt = 3300mV regulator-max-microvolt = 3300mV vccio2-supply regulator-min-microvolt = 1800mV regulator-max-microvolt = 1800mV vccio3-supply regulator-min-microvolt = 1800mV regulator-max-microvolt = 1800mV vccio4-supply regulator-min-microvolt = 1800mV regulator-max-microvolt = 1800mV vccio5-supply regulator-min-microvolt = 3300mV regulator-max-microvolt = 3300mV Running build_kernel succeeded. ==========Start building rootfs(buildroot) to .rootfs========== ==========Start building buildroot rootfs ========== TARGET_BUILDROOT_CONFIG=rockchip_rk3308_release ========================================= Top of tree: /home/yang/RK3308/armsom-p2pro-bsp =========================================== #TARGET_BOARD=rk3308 #OUTPUT_DIR=output/rockchip_rk3308_release #CONFIG=rockchip_rk3308_release_defconfig =========================================== make: Entering directory '/home/yang/RK3308/armsom-p2pro-bsp/buildroot' GEN /home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_release/Makefile /home/yang/RK3308/armsom-p2pro-bsp/buildroot/build/parse_defconfig.sh /home/yang/RK3308/armsom-p2pro-bsp/buildroot/configs/rockchip_rk3308_release_defconfig /home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_release/.config.in Parsing defconfig: /home/yang/RK3308/armsom-p2pro-bsp/buildroot/configs/rockchip_rk3308_release_defconfig Using configs/rockchip/chips/rk3308.config as base Merging configs/rockchip/chips/rk3308_aarch64.config Merging configs/rockchip/base/kernel.config Merging configs/rockchip/e2fs.config Merging configs/rockchip/base/common.config Merging configs/rockchip/base/base.config Merging configs/rockchip/audio.config Merging configs/rockchip/bt.config Merging configs/rockchip/network.config Merging configs/rockchip/test.config Merging configs/rockchip/vfat.config Merging /home/yang/RK3308/armsom-p2pro-bsp/buildroot/configs/rockchip_rk3308_release_defconfig # # merged configuration written to /home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_release/.config.in (needs make) # BR2_DEFCONFIG='' KCONFIG_AUTOCONFIG=/home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_release/build/buildroot-config/auto.conf KCONFIG_AUTOHEADER=/home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_release/build/buildroot-config/autoconf.h KCONFIG_TRISTATE=/home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_release/build/buildroot-config/tristate.config BR2_CONFIG=/home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_release/.config HOST_GCC_VERSION="9" BASE_DIR=/home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_release SKIP_LEGACY= CUSTOM_KERNEL_VERSION="5.10" BR2_DEFCONFIG=/home/yang/RK3308/armsom-p2pro-bsp/buildroot/configs/rockchip_rk3308_release_defconfig /home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_release/build/buildroot-config/conf --defconfig=/home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_release/.config.in Config.in # # configuration written to /home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_release/.config # make: Leaving directory '/home/yang/RK3308/armsom-p2pro-bsp/buildroot' 2026-08-24T17:49:45 >>> Finalizing host directory 2026-08-24T17:49:45 >>> Finalizing target directory 2026-08-24T17:49:47 >>> Sanitizing RPATH in target tree 2026-08-24T17:49:54 >>> Sanity check in overlay board/rockchip/common/base 2026-08-24T17:49:54 >>> Copying overlay board/rockchip/common/base 2026-08-24T17:49:54 >>> Executing post-build script ../device/rockchip/common/post-build.sh 2026-08-24T17:49:55 >>> Generating root filesystems common tables 2026-08-24T17:49:55 >>> Generating filesystem image rootfs.cpio 2026-08-24T17:50:10 >>> Generating filesystem image rootfs.ext2 2026-08-24T17:50:13 >>> Generating filesystem image rootfs.squashfs 2026-08-24T17:50:19 >>> Generating filesystem image rootfs.tar Done in 46s Log saved on /home/yang/RK3308/armsom-p2pro-bsp/.buildroot/br.log Generated images: rootfs.cpio rootfs.ext2 rootfs.squashfs rootfs.cpio.gz rootfs.ext4 rootfs.tar you take 0:50.66 to build buildroot Running build_buildroot succeeded. Using prebuilt GCC toolchain: /home/yang/RK3308/armsom-p2pro-bsp/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu- kernel config: CONFIG_USB=y CONFIG_MMC=y CONFIG_RFKILL=y ========build wifibt info======= CROSS_COMPILE=/home/yang/RK3308/armsom-p2pro-bsp/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/bin/aarch64-none-linux-gnu- WIFI_CHIP=AP6255 BT_TTY_DEV=ttyS4 TARGET_ROOTFS_DIR=/home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_release/target BUILDROOT_GCC=/home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_release//host//bin/aarch64-buildroot-linux-gnu-gcc BUILDROOT_SYSROOT=/home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_release//host//aarch64-buildroot-linux-gnu/sysroot/ building bcmdhd sdio driver make: Entering directory '/home/yang/RK3308/armsom-p2pro-bsp/kernel' make: Leaving directory '/home/yang/RK3308/armsom-p2pro-bsp/kernel' building brcm_tools building rk_wifibt_init building realtek_tools make: Entering directory '/home/yang/RK3308/armsom-p2pro-bsp/external/rkwifibt/tools/rtk_hciattach' make: Nothing to be done for 'all'. make: Leaving directory '/home/yang/RK3308/armsom-p2pro-bsp/external/rkwifibt/tools/rtk_hciattach' building realtek bt drivers make: Entering directory '/home/yang/RK3308/armsom-p2pro-bsp/kernel' make: Leaving directory '/home/yang/RK3308/armsom-p2pro-bsp/kernel' make: Entering directory '/home/yang/RK3308/armsom-p2pro-bsp/kernel' make: Leaving directory '/home/yang/RK3308/armsom-p2pro-bsp/kernel' building rkwifibt-app make: Entering directory '/home/yang/RK3308/armsom-p2pro-bsp/external/rkwifibt-app' rm -f test/main.o test/rk_wifi_test.o test/bt_test.o test/rk_ble_app.o test/softap/softap.o rkwifibt_test /home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_release//host//bin/aarch64-buildroot-linux-gnu-gcc -Wall -g -lpthread -lasound -L lib64/ -lrkwifibt -I include/ -c test/main.c -o test/main.o test/main.c:69:29: warning: initialization of 'void (*)(void *)' from incompatible pointer type 'void (*)(char *)' [-Wincompatible-pointer-types] 69 | {"wifi_onoff_test", rk_wifi_openoff_test}, | ^~~~~~~~~~~~~~~~~~~~ test/main.c:69:29: note: (near initialization for 'wifi_config_command_table[6].action') test/main.c: In function 'main': test/main.c:306:14: warning: unused variable 'version' [-Wunused-variable] 306 | char version[64] = {0}; | ^~~~~~~ /home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_release//host//bin/aarch64-buildroot-linux-gnu-gcc -Wall -g -lpthread -lasound -L lib64/ -lrkwifibt -I include/ -c test/rk_wifi_test.c -o test/rk_wifi_test.o test/rk_wifi_test.c: In function 'printf_system_time': test/rk_wifi_test.c:25:30: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'long int' [-Wformat=] 25 | printf("--- time: %lld ms ---\n", tv.tv_sec * 1000 + tv.tv_usec/1000 + tv.tv_usec%1000); | ~~~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | long long int long int | %ld test/rk_wifi_test.c: In function 'ping_test': test/rk_wifi_test.c:30:14: warning: unused variable 'line' [-Wunused-variable] 30 | char line[2048]; | ^~~~ test/rk_wifi_test.c: In function 'rk_wifi_state_callback': test/rk_wifi_test.c:106:17: warning: implicit declaration of function 'free' [-Wimplicit-function-declaration] 106 | free(scan_r); | ^~~~ test/rk_wifi_test.c:12:1: note: include '<stdlib.h>' or provide a declaration of 'free' 11 | #include "Rk_softap.h" +++ |+#include <stdlib.h> 12 | test/rk_wifi_test.c:106:17: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 106 | free(scan_r); | ^~~~ test/rk_wifi_test.c:106:17: note: include '<stdlib.h>' or provide a declaration of 'free' test/rk_wifi_test.c: In function 'rk_wifi_getSavedInfo': test/rk_wifi_test.c:344:17: warning: incompatible implicit declaration of built-in function 'free' [-Wbuiltin-declaration-mismatch] 344 | free(wsi); | ^~~~ test/rk_wifi_test.c:344:17: note: include '<stdlib.h>' or provide a declaration of 'free' At top level: test/rk_wifi_test.c:28:13: warning: 'ping_test' defined but not used [-Wunused-function] 28 | static void ping_test() | ^~~~~~~~~ test/rk_wifi_test.c:20:13: warning: 'printf_system_time' defined but not used [-Wunused-function] 20 | static void printf_system_time() | ^~~~~~~~~~~~~~~~~~ /home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_release//host//bin/aarch64-buildroot-linux-gnu-gcc -Wall -g -lpthread -lasound -L lib64/ -lrkwifibt -I include/ -c test/bt_test.c -o test/bt_test.o test/bt_test.c: In function 'bt_test_bluetooth_init_thread': test/bt_test.c:247:35: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] 247 | printf("ble_name_len: %s(%d)\n", bt_content.ble_content.ble_name, strlen(bt_content.ble_content.ble_name)); | ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | int size_t {aka long unsigned int} | %ld test/bt_test.c: In function 'bt_test_start_discovery': test/bt_test.c:475:43: warning: passing argument 1 of 'rk_bt_register_dev_found_callback' from incompatible pointer type [-Wincompatible-pointer-types] 475 | rk_bt_register_dev_found_callback(bt_test_dev_found_cb); | ^~~~~~~~~~~~~~~~~~~~ | | | void (*)(const char *, const char *, unsigned int, int) In file included from test/bt_test.c:8: include/RkBtBase.h:123:65: note: expected 'RK_BT_DEV_FOUND_CALLBACK' {aka 'void (*)(const char *, const char *, unsigned int, int, int)'} but argument is of type 'void (*)(const char *, const char *, unsigned int, int)' 123 | void rk_bt_register_dev_found_callback(RK_BT_DEV_FOUND_CALLBACK cb); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ test/bt_test.c: In function 'bt_test_start_discovery_bredr': test/bt_test.c:495:43: warning: passing argument 1 of 'rk_bt_register_dev_found_callback' from incompatible pointer type [-Wincompatible-pointer-types] 495 | rk_bt_register_dev_found_callback(bt_test_dev_found_cb); | ^~~~~~~~~~~~~~~~~~~~ | | | void (*)(const char *, const char *, unsigned int, int) In file included from test/bt_test.c:8: include/RkBtBase.h:123:65: note: expected 'RK_BT_DEV_FOUND_CALLBACK' {aka 'void (*)(const char *, const char *, unsigned int, int, int)'} but argument is of type 'void (*)(const char *, const char *, unsigned int, int)' 123 | void rk_bt_register_dev_found_callback(RK_BT_DEV_FOUND_CALLBACK cb); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ test/bt_test.c: In function 'bt_test_start_discovery_le': test/bt_test.c:515:43: warning: passing argument 1 of 'rk_bt_register_dev_found_callback' from incompatible pointer type [-Wincompatible-pointer-types] 515 | rk_bt_register_dev_found_callback(bt_test_dev_found_cb); | ^~~~~~~~~~~~~~~~~~~~ | | | void (*)(const char *, const char *, unsigned int, int) In file included from test/bt_test.c:8: include/RkBtBase.h:123:65: note: expected 'RK_BT_DEV_FOUND_CALLBACK' {aka 'void (*)(const char *, const char *, unsigned int, int, int)'} but argument is of type 'void (*)(const char *, const char *, unsigned int, int)' 123 | void rk_bt_register_dev_found_callback(RK_BT_DEV_FOUND_CALLBACK cb); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ test/bt_test.c: In function 'bt_test_start_discovery_pan': test/bt_test.c:535:43: warning: passing argument 1 of 'rk_bt_register_dev_found_callback' from incompatible pointer type [-Wincompatible-pointer-types] 535 | rk_bt_register_dev_found_callback(bt_test_dev_found_cb); | ^~~~~~~~~~~~~~~~~~~~ | | | void (*)(const char *, const char *, unsigned int, int) In file included from test/bt_test.c:8: include/RkBtBase.h:123:65: note: expected 'RK_BT_DEV_FOUND_CALLBACK' {aka 'void (*)(const char *, const char *, unsigned int, int, int)'} but argument is of type 'void (*)(const char *, const char *, unsigned int, int)' 123 | void rk_bt_register_dev_found_callback(RK_BT_DEV_FOUND_CALLBACK cb); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ test/bt_test.c: In function 'bt_test_start_discovery_spp': test/bt_test.c:555:43: warning: passing argument 1 of 'rk_bt_register_dev_found_callback' from incompatible pointer type [-Wincompatible-pointer-types] 555 | rk_bt_register_dev_found_callback(bt_test_dev_found_cb); | ^~~~~~~~~~~~~~~~~~~~ | | | void (*)(const char *, const char *, unsigned int, int) In file included from test/bt_test.c:8: include/RkBtBase.h:123:65: note: expected 'RK_BT_DEV_FOUND_CALLBACK' {aka 'void (*)(const char *, const char *, unsigned int, int, int)'} but argument is of type 'void (*)(const char *, const char *, unsigned int, int)' 123 | void rk_bt_register_dev_found_callback(RK_BT_DEV_FOUND_CALLBACK cb); | ~~~~~~~~~~~~~~~~~~~~~~~~~^~ test/bt_test.c: In function 'bt_test_source_status_callback': test/bt_test.c:858:90: warning: passing argument 1 of 'rk_bt_get_playrole_by_addr' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 858 | printf("+++++ device playrole: %d\n", rk_bt_get_playrole_by_addr(bd_addr)); | ^~~~~~~ In file included from test/bt_test.c:8: include/RkBtBase.h:148:54: note: expected 'char *' but argument is of type 'const char *' 148 | RK_BT_PLAYROLE_TYPE rk_bt_get_playrole_by_addr(char *addr); | ~~~~~~^~~~ test/bt_test.c:851:9: warning: enumeration value 'BT_SOURCE_EVENT_REMOVE_FAILED' not handled in switch [-Wswitch] 851 | switch(enEvent) | ^~~~~~ test/bt_test.c:851:9: warning: enumeration value 'BT_SOURCE_EVENT_REMOVED' not handled in switch [-Wswitch] test/bt_test.c:851:9: warning: enumeration value 'BT_SOURCE_EVENT_CONNECTTING' not handled in switch [-Wswitch] test/bt_test.c: In function 'bt_test_ble_request_data_callback': test/bt_test.c:1032:19: warning: passing argument 1 of 'send_data' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 1032 | send_data(uuid); | ^~~~ test/bt_test.c:1018:22: note: expected 'char *' but argument is of type 'const char *' 1018 | void send_data(char *uuid) | ~~~~~~^~~~ test/bt_test.c: In function 'bt_test_ble_client_get_status': test/bt_test.c:1191:9: warning: enumeration value 'RK_BLE_CLIENT_WRITE_SUCCESS' not handled in switch [-Wswitch] 1191 | switch (state) { | ^~~~~~ test/bt_test.c:1191:9: warning: enumeration value 'RK_BLE_CLIENT_WRITE_ERROR' not handled in switch [-Wswitch] At top level: test/bt_test.c:153:13: warning: 'bt_test_name_change_cb' defined but not used [-Wunused-function] 153 | static void bt_test_name_change_cb(const char *bd_addr, const char *name) | ^~~~~~~~~~~~~~~~~~~~~~ /home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_release//host//bin/aarch64-buildroot-linux-gnu-gcc -Wall -g -lpthread -lasound -L lib64/ -lrkwifibt -I include/ -c test/rk_ble_app.c -o test/rk_ble_app.o test/rk_ble_app.c: In function 'rk_blewifi_state_callback': test/rk_ble_app.c:109:9: warning: enumeration value 'RK_WIFI_State_IDLE' not handled in switch [-Wswitch] 109 | switch(state) { | ^~~~~~ test/rk_ble_app.c:109:9: warning: enumeration value 'RK_WIFI_State_CONNECTING' not handled in switch [-Wswitch] test/rk_ble_app.c:109:9: warning: enumeration value 'RK_WIFI_State_DISCONNECTED' not handled in switch [-Wswitch] test/rk_ble_app.c:109:9: warning: enumeration value 'RK_WIFI_State_OPEN' not handled in switch [-Wswitch] test/rk_ble_app.c:109:9: warning: enumeration value 'RK_WIFI_State_OFF' not handled in switch [-Wswitch] test/rk_ble_app.c:109:9: warning: enumeration value 'RK_WIFI_State_SCAN_RESULTS' not handled in switch [-Wswitch] test/rk_ble_app.c:109:9: warning: enumeration value 'RK_WIFI_State_DHCP_OK' not handled in switch [-Wswitch] test/rk_ble_app.c:120:50: warning: pointer targets in passing argument 2 of 'rk_ble_write' differ in signedness [-Wpointer-sign] 120 | rk_ble_write(BLE_UUID_WIFI_CHAR, &ret, 0x1); | ^~~~ | | | uint8_t * {aka unsigned char *} In file included from test/rk_ble_app.c:14: include/RkBle.h:33:42: note: expected 'char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'} 33 | int rk_ble_write(const char *uuid, char *data, int len); | ~~~~~~^~~~ test/rk_ble_app.c: In function 'rk_config_wifi_thread': test/rk_ble_app.c:129:9: warning: implicit declaration of function 'prctl' [-Wimplicit-function-declaration] 129 | prctl(PR_SET_NAME,"rk_config_wifi_thread"); | ^~~~~ test/rk_ble_app.c: In function 'rk_ble_send_data': test/rk_ble_app.c:163:50: warning: pointer targets in passing argument 2 of 'rk_ble_write' differ in signedness [-Wpointer-sign] 163 | rk_ble_write(BLE_UUID_WIFI_CHAR, data, len); | ^~~~ | | | uint8_t * {aka unsigned char *} In file included from test/rk_ble_app.c:14: include/RkBle.h:33:42: note: expected 'char *' but argument is of type 'uint8_t *' {aka 'unsigned char *'} 33 | int rk_ble_write(const char *uuid, char *data, int len); | ~~~~~~^~~~ test/rk_ble_app.c: In function '_rk_ble_recv_data_cb': test/rk_ble_app.c:219:34: warning: pointer targets in passing argument 1 of 'snprintf' differ in signedness [-Wpointer-sign] 219 | snprintf(rk_wifi_list_buf, sizeof(rk_wifi_list_buf), MSG_BLE_WIFI_LIST_FORMAT, wifilist); | ^~~~~~~~~~~~~~~~ | | | unsigned char * In file included from test/rk_ble_app.c:1: ../../buildroot/output/rockchip_rk3308_release/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/stdio.h:378:39: note: expected 'char * restrict' but argument is of type 'unsigned char *' 378 | extern int snprintf (char *__restrict __s, size_t __maxlen, | ~~~~~~~~~~~~~~~~~^~~ test/rk_ble_app.c:220:44: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [-Wpointer-sign] 220 | scanr_len = strlen(rk_wifi_list_buf); | ^~~~~~~~~~~~~~~~ | | | unsigned char * In file included from test/rk_ble_app.c:4: ../../buildroot/output/rockchip_rk3308_release/host/aarch64-buildroot-linux-gnu/sysroot/usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'unsigned char *' 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ test/rk_ble_app.c:225:25: warning: implicit declaration of function 'pthread_create' [-Wimplicit-function-declaration] 225 | pthread_create(&wificonfig_scan_tid, NULL, rk_ble_send_data, NULL); | ^~~~~~~~~~~~~~ /home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_release//host//bin/aarch64-buildroot-linux-gnu-gcc -Wall -g -lpthread -lasound -L lib64/ -lrkwifibt -I include/ -c test/softap/softap.c -o test/softap/softap.o test/softap/softap.c: In function 'sendWifiList': test/softap/softap.c:291:19: warning: unused variable 'size' [-Wunused-variable] 291 | size_t i, size = 0; | ^~~~ test/softap/softap.c:291:16: warning: unused variable 'i' [-Wunused-variable] 291 | size_t i, size = 0; | ^ test/softap/softap.c: In function 'wifiSetup': test/softap/softap.c:376:41: warning: unknown escape sequence: '\,' 376 | str2 = strstr(buf, "\"\,\"pwd\""); | ^ test/softap/softap.c:380:35: warning: unknown escape sequence: '\}' 380 | str2 = strstr(str1, "\"\}"); | ^ test/softap/softap.c:357:14: warning: unused variable 'tmp' [-Wunused-variable] 357 | char tmp[128]; | ^~~ /home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_release//host//bin/aarch64-buildroot-linux-gnu-gcc -o rkwifibt_test test/main.o test/rk_wifi_test.o test/bt_test.o test/rk_ble_app.o test/softap/softap.o --sysroot=/home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_release//host//aarch64-buildroot-linux-gnu/sysroot/ -Wall -g -lpthread -lasound -L lib64/ -lrkwifibt -I include/ -fPIC make: Leaving directory '/home/yang/RK3308/armsom-p2pro-bsp/external/rkwifibt-app' chmod +x tools mkdir rootfs dir /home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_release/target create link system->vendor /home/yang/RK3308/armsom-p2pro-bsp copy tools/sh to rootfs Copy AP file to rootfs Running build_wifibt succeeded. ==========Start building buildroot rootfs ========== TARGET_BUILDROOT_CONFIG=rockchip_rk3308_release ========================================= Top of tree: /home/yang/RK3308/armsom-p2pro-bsp =========================================== #TARGET_BOARD=rk3308 #OUTPUT_DIR=output/rockchip_rk3308_release #CONFIG=rockchip_rk3308_release_defconfig =========================================== make: Entering directory '/home/yang/RK3308/armsom-p2pro-bsp/buildroot' GEN /home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_release/Makefile /home/yang/RK3308/armsom-p2pro-bsp/buildroot/build/parse_defconfig.sh /home/yang/RK3308/armsom-p2pro-bsp/buildroot/configs/rockchip_rk3308_release_defconfig /home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_release/.config.in Parsing defconfig: /home/yang/RK3308/armsom-p2pro-bsp/buildroot/configs/rockchip_rk3308_release_defconfig Using configs/rockchip/chips/rk3308.config as base Merging configs/rockchip/chips/rk3308_aarch64.config Merging configs/rockchip/base/kernel.config Merging configs/rockchip/e2fs.config Merging configs/rockchip/base/common.config Merging configs/rockchip/base/base.config Merging configs/rockchip/audio.config Merging configs/rockchip/bt.config Merging configs/rockchip/network.config Merging configs/rockchip/test.config Merging configs/rockchip/vfat.config Merging /home/yang/RK3308/armsom-p2pro-bsp/buildroot/configs/rockchip_rk3308_release_defconfig # # merged configuration written to /home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_release/.config.in (needs make) # BR2_DEFCONFIG='' KCONFIG_AUTOCONFIG=/home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_release/build/buildroot-config/auto.conf KCONFIG_AUTOHEADER=/home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_release/build/buildroot-config/autoconf.h KCONFIG_TRISTATE=/home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_release/build/buildroot-config/tristate.config BR2_CONFIG=/home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_release/.config HOST_GCC_VERSION="9" BASE_DIR=/home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_release SKIP_LEGACY= CUSTOM_KERNEL_VERSION="5.10" BR2_DEFCONFIG=/home/yang/RK3308/armsom-p2pro-bsp/buildroot/configs/rockchip_rk3308_release_defconfig /home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_release/build/buildroot-config/conf --defconfig=/home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_release/.config.in Config.in # # configuration written to /home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_release/.config # make: Leaving directory '/home/yang/RK3308/armsom-p2pro-bsp/buildroot' 2026-08-24T17:50:40 >>> Finalizing host directory 2026-08-24T17:50:40 >>> Finalizing target directory 2026-08-24T17:50:41 >>> Sanitizing RPATH in target tree 2026-08-24T17:50:49 >>> Sanity check in overlay board/rockchip/common/base 2026-08-24T17:50:49 >>> Copying overlay board/rockchip/common/base 2026-08-24T17:50:50 >>> Executing post-build script ../device/rockchip/common/post-build.sh 2026-08-24T17:50:50 >>> Generating root filesystems common tables 2026-08-24T17:50:50 >>> Generating filesystem image rootfs.cpio 2026-08-24T17:51:08 >>> Generating filesystem image rootfs.ext2 2026-08-24T17:51:10 >>> Generating filesystem image rootfs.squashfs 2026-08-24T17:51:16 >>> Generating filesystem image rootfs.tar Done in 49s Log saved on /home/yang/RK3308/armsom-p2pro-bsp/.buildroot/br.log Generated images: rootfs.cpio rootfs.ext2 rootfs.squashfs rootfs.cpio.gz rootfs.ext4 rootfs.tar you take 0:50.39 to build buildroot Running build_buildroot succeeded. Running build_rootfs succeeded. ==========Start building recovery(buildroot)========== TARGET_RECOVERY_CONFIG=rockchip_rk3308_recovery ======================================== Top of tree: /home/yang/RK3308/armsom-p2pro-bsp =========================================== #TARGET_BOARD=rk3308 #OUTPUT_DIR=output/rockchip_rk3308_recovery #CONFIG=rockchip_rk3308_recovery_defconfig =========================================== make: Entering directory '/home/yang/RK3308/armsom-p2pro-bsp/buildroot' GEN /home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_recovery/Makefile /home/yang/RK3308/armsom-p2pro-bsp/buildroot/build/parse_defconfig.sh /home/yang/RK3308/armsom-p2pro-bsp/buildroot/configs/rockchip_rk3308_recovery_defconfig /home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_recovery/.config.in Parsing defconfig: /home/yang/RK3308/armsom-p2pro-bsp/buildroot/configs/rockchip_rk3308_recovery_defconfig Using configs/rockchip/chips/rk3308.config as base Merging configs/rockchip/chips/rk3308_arm.config Merging configs/rockchip/base/kernel.config Merging configs/rockchip/e2fs.config Merging configs/rockchip/base/common.config Merging configs/rockchip/base/base.config Merging configs/rockchip/base/kernel.config Merging configs/rockchip/e2fs.config Merging configs/rockchip/base/common.config Merging configs/rockchip/vfat.config Merging configs/rockchip/base/recovery.config Value of BR2_ROOTFS_OVERLAY is redefined by configs/rockchip/base/recovery.config: Previous value: BR2_ROOTFS_OVERLAY="board/rockchip/common/base" Modify value: BR2_ROOTFS_OVERLAY+="board/rockchip/common/recovery" New value: BR2_ROOTFS_OVERLAY="board/rockchip/common/base board/rockchip/common/recovery" Merging /home/yang/RK3308/armsom-p2pro-bsp/buildroot/configs/rockchip_rk3308_recovery_defconfig # # merged configuration written to /home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_recovery/.config.in (needs make) # BR2_DEFCONFIG='' KCONFIG_AUTOCONFIG=/home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_recovery/build/buildroot-config/auto.conf KCONFIG_AUTOHEADER=/home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_recovery/build/buildroot-config/autoconf.h KCONFIG_TRISTATE=/home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_recovery/build/buildroot-config/tristate.config BR2_CONFIG=/home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_recovery/.config HOST_GCC_VERSION="9" BASE_DIR=/home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_recovery SKIP_LEGACY= CUSTOM_KERNEL_VERSION="5.10" BR2_DEFCONFIG=/home/yang/RK3308/armsom-p2pro-bsp/buildroot/configs/rockchip_rk3308_recovery_defconfig /home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_recovery/build/buildroot-config/conf --defconfig=/home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_recovery/.config.in Config.in # # configuration written to /home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_recovery/.config # make: Leaving directory '/home/yang/RK3308/armsom-p2pro-bsp/buildroot' 2026-08-24T17:51:30 >>> Finalizing host directory 2026-08-24T17:51:30 >>> Finalizing target directory 2026-08-24T17:51:31 >>> Sanitizing RPATH in target tree 2026-08-24T17:51:33 >>> Sanity check in overlay board/rockchip/common/base 2026-08-24T17:51:33 >>> Sanity check in overlay board/rockchip/common/recovery 2026-08-24T17:51:33 >>> Copying overlay board/rockchip/common/base 2026-08-24T17:51:33 >>> Copying overlay board/rockchip/common/recovery 2026-08-24T17:51:33 >>> Executing post-build script ../device/rockchip/common/post-build.sh 2026-08-24T17:51:33 >>> Generating root filesystems common tables 2026-08-24T17:51:33 >>> Generating filesystem image rootfs.cpio 2026-08-24T17:51:40 >>> Generating filesystem image rootfs.ext2 2026-08-24T17:51:41 >>> Generating filesystem image rootfs.squashfs 2026-08-24T17:51:43 >>> Generating filesystem image rootfs.tar Done in 23s Log saved on /home/yang/RK3308/armsom-p2pro-bsp/.recovery/br.log Generated images: rootfs.cpio rootfs.ext2 rootfs.squashfs rootfs.cpio.gz rootfs.ext4 rootfs.tar you take 0:25.04 to build recovery(buildroot) Packing .recovery/rootfs.cpio.gz to .recovery/recovery.img...done. you take 0:00.18 to pack recovery image Running build_recovery succeeded. Running build_all succeeded. Linking parameter.txt from device/rockchip/rk3308/parameter-64bit.txt... Done linking parameter.txt Linking misc.img from device/rockchip/common/images/wipe_all-misc.img... Done linking misc.img Packing oem.img from device/rockchip/common/images/oem/oem_empty... Making rockdev/oem.img from device/rockchip/common/images/oem/oem_empty (auto sized) Making rockdev/oem.img from device/rockchip/common/images/oem/oem_empty with size(4108KB) mke2fs 1.46.5 (30-Dec-2021) Discarding device blocks: done Creating filesystem with 1027 4k blocks and 1040 inodes Allocating group tables: done Writing inode tables: done Copying files into the device: done Writing superblocks and filesystem accounting information: done tune2fs 1.46.5 (30-Dec-2021) Setting maximal mount count to -1 Setting interval between checks to 0 seconds Done packing oem.img Packing userdata.img from device/rockchip/common/images/userdata/userdata_empty... Making rockdev/userdata.img from device/rockchip/common/images/userdata/userdata_empty (auto sized) Making rockdev/userdata.img from device/rockchip/common/images/userdata/userdata_empty with size(4108KB) mke2fs 1.46.5 (30-Dec-2021) Discarding device blocks: done Creating filesystem with 1027 4k blocks and 1040 inodes Allocating group tables: done Writing inode tables: done Copying files into the device: done Writing superblocks and filesystem accounting information: done tune2fs 1.46.5 (30-Dec-2021) Setting maximal mount count to -1 Setting interval between checks to 0 seconds Done packing userdata.img Packed files: MiniLoaderAll.bin(/home/yang/RK3308/armsom-p2pro-bsp/u-boot/rk3308_loader_v2.07.139.bin): 315K boot.img(/home/yang/RK3308/armsom-p2pro-bsp/kernel/zboot.img): 6.0M misc.img(/home/yang/RK3308/armsom-p2pro-bsp/device/rockchip/common/images/wipe_all-misc.img): 48K oem.img: 4.1M parameter.txt(/home/yang/RK3308/armsom-p2pro-bsp/device/rockchip/rk3308/parameter-64bit.txt): 477 recovery.img(/home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_recovery/images/recovery.img): 14M rootfs.img(/home/yang/RK3308/armsom-p2pro-bsp/buildroot/output/rockchip_rk3308_release/images/rootfs.ext2): 141M trust.img(/home/yang/RK3308/armsom-p2pro-bsp/u-boot/trust.img): 2.0M uboot.img(/home/yang/RK3308/armsom-p2pro-bsp/u-boot/uboot.img): 2.0M userdata.img: 4.1M Images in rockdev are ready! Running build_firmware succeeded. Make update.img start to make update.img... Android Firmware Package Tool v2.0 ------ PACKAGE ------ Add file: ./package-file package-file,Add file: ./package-file done,offset=0x800,size=0x26b,userspace=0x1 Add file: ./Image/MiniLoaderAll.bin bootloader,Add file: ./Image/MiniLoaderAll.bin done,offset=0x1000,size=0x4e94e,userspace=0x9e Add file: ./Image/parameter.txt parameter,Add file: ./Image/parameter.txt done,offset=0x50000,size=0x1e9,userspace=0x1 Add file: ./Image/trust.img trust,Add file: ./Image/trust.img done,offset=0x50800,size=0x200000,userspace=0x400 Add file: ./Image/uboot.img uboot,Add file: ./Image/uboot.img done,offset=0x250800,size=0x200000,userspace=0x400 Add file: ./Image/boot.img boot,Add file: ./Image/boot.img done,offset=0x450800,size=0x5f4800,userspace=0xbe9 Add file: ./Image/rootfs.img rootfs,Add file: ./Image/rootfs.img done,offset=0xa45000,size=0x8cbe000,userspace=0x1197c Add file: ./Image/recovery.img recovery,Add file: ./Image/recovery.img done,offset=0x9703000,size=0xd87000,userspace=0x1b0e Add file: ./Image/oem.img oem,Add file: ./Image/oem.img done,offset=0xa48a000,size=0x403000,userspace=0x806 Add file: ./Image/userdata.img userdata,Add file: ./Image/userdata.img done,offset=0xa88d000,size=0x403000,userspace=0x806 Add file: ./Image/misc.img misc,Add file: ./Image/misc.img done,offset=0xac90000,size=0xc000,userspace=0x18 Add CRC... Make firmware OK! ------ OK ------ ********rkImageMaker ver 2.0******** Generating new image, please wait... Writing head info... Writing boot file... Writing firmware... Generating MD5 data... MD5 data generated successfully! New image generated successfully! Making update.img OK. Running build_updateimg succeeded. ./build.sh: line 1404: .repo/repo/repo: No such file or directory ERROR: Running build_save failed! ERROR: exit code 127 from line 1404: .repo/repo/repo forall -c "$TOP_DIR/device/rockchip/common/gen_patches_body.sh"

公开 最后更新: 2026-08-25 05:59:58 AM