Transcript of building B6 Pro, 2025-03-09: URL: ============================================================================= #Apply the patch: cd ~/zmk_KeychronFork_forReal/zephyr/ git am ../0001-esb-nrf-fix.patch Ouput: Applying: esb nrf fix .git/rebase-apply/patch:82: trailing whitespace. warning: 1 line adds whitespace errors. ======================================================================== cd ~/zmk_KeychronFork_forReal/app west build --pristine -b keychron -p -- -DSHIELD=keychron_b6_uk Output: -- west build: making build dir /home/embo/zmk_KeychronFork_forReal/app/build pristine -- west build: generating a build system Loading Zephyr default modules (Zephyr base). -- Application: /home/embo/zmk_KeychronFork_forReal/app -- Adding /home/embo/zmk_KeychronFork_forReal/app/boards/shields/keychron/b6/uk -- Using keymap file: /home/embo/zmk_KeychronFork_forReal/app/boards/shields/keychron/b6/uk/keychron_b6_uk.keymap -- Found Python3: /home/embo/.ZMK_environment/bin/python3 (found suitable exact version "3.11.2") found components: Interpreter -- Cache files will be written to: /home/embo/.cache/zephyr -- Zephyr version: 3.2.0 (/home/embo/zmk_KeychronFork_forReal/zephyr) -- Found west (found suitable version "1.3.0", minimum required is "0.7.1") -- Board: keychron -- Shield(s): keychron_b6_uk -- ZEPHYR_TOOLCHAIN_VARIANT not set, trying to locate Zephyr SDK -- Found host-tools: zephyr 0.16.3 (/home/embo/zephyr-sdk-0.16.3) -- Found toolchain: zephyr 0.16.3 (/home/embo/zephyr-sdk-0.16.3) -- Found Dtc: /home/embo/zephyr-sdk-0.16.3/sysroots/x86_64-pokysdk-linux/usr/bin/dtc (found suitable version "1.6.0", minimum required is "1.4.6") -- Found BOARD.dts: /home/embo/zmk_KeychronFork_forReal/app/boards/arm/keychron/keychron.dts -- Found devicetree overlay: /home/embo/zmk_KeychronFork_forReal/app/boards/shields/keychron/b6/uk/keychron_b6_uk.overlay -- Found devicetree overlay: /home/embo/zmk_KeychronFork_forReal/app/boards/shields/keychron/b6/uk/keychron_b6_uk.keymap -- Generated zephyr.dts: /home/embo/zmk_KeychronFork_forReal/app/build/zephyr/zephyr.dts -- Generated devicetree_generated.h: /home/embo/zmk_KeychronFork_forReal/app/build/zephyr/include/generated/devicetree_generated.h -- Including generated dts.cmake file: /home/embo/zmk_KeychronFork_forReal/app/build/zephyr/dts.cmake /home/embo/zmk_KeychronFork_forReal/app/build/zephyr/zephyr.dts:55.25-60.5: Warning (unique_unit_address_if_enabled): /soc/clock@40000000: duplicate unit-address (also used in node /soc/power@40000000) /home/embo/zmk_KeychronFork_forReal/app/build/zephyr/zephyr.dts:299.21-303.5: Warning (unique_unit_address_if_enabled): /soc/acl@4001e000: duplicate unit-address (also used in node /soc/flash-controller@4001e000) Parsing /home/embo/zmk_KeychronFork_forReal/app/Kconfig Loaded configuration '/home/embo/zmk_KeychronFork_forReal/app/boards/arm/keychron/keychron_defconfig' Merged configuration '/home/embo/zmk_KeychronFork_forReal/app/prj.conf' Merged configuration '/home/embo/zmk_KeychronFork_forReal/app/boards/shields/keychron/b6/uk/keychron_b6_uk.conf' Configuration saved to '/home/embo/zmk_KeychronFork_forReal/app/build/zephyr/.config' Kconfig header saved to '/home/embo/zmk_KeychronFork_forReal/app/build/zephyr/include/generated/autoconf.h' -- The C compiler identification is GNU 12.2.0 -- The CXX compiler identification is GNU 12.2.0 -- The ASM compiler identification is GNU -- Found assembler: /home/embo/zephyr-sdk-0.16.3/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc -- Configuring done CMake Warning (dev) at /home/embo/zmk_KeychronFork_forReal/zephyr/cmake/linker/ld/target.cmake:75 (add_custom_command): Policy CMP0116 is not set: Ninja generators transform DEPFILEs from add_custom_command(). Run "cmake --help-policy CMP0116" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Call Stack (most recent call first): /home/embo/zmk_KeychronFork_forReal/zephyr/CMakeLists.txt:1099 (configure_linker_script) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at /home/embo/zmk_KeychronFork_forReal/zephyr/cmake/linker/ld/target.cmake:75 (add_custom_command): Policy CMP0116 is not set: Ninja generators transform DEPFILEs from add_custom_command(). Run "cmake --help-policy CMP0116" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Call Stack (most recent call first): /home/embo/zmk_KeychronFork_forReal/zephyr/CMakeLists.txt:1311 (configure_linker_script) This warning is for project developers. Use -Wno-dev to suppress it. CMake Warning (dev) at /home/embo/zmk_KeychronFork_forReal/zephyr/cmake/linker/ld/target.cmake:75 (add_custom_command): Policy CMP0116 is not set: Ninja generators transform DEPFILEs from add_custom_command(). Run "cmake --help-policy CMP0116" for policy details. Use the cmake_policy command to set the policy and suppress this warning. Call Stack (most recent call first): /home/embo/zmk_KeychronFork_forReal/zephyr/CMakeLists.txt:1368 (configure_linker_script) This warning is for project developers. Use -Wno-dev to suppress it. -- Generating done -- Build files have been written to: /home/embo/zmk_KeychronFork_forReal/app/build -- west build: building application [1/339] Preparing syscall dependency handling [2/339] Generating include/generated/version.h -- Zephyr version: 3.2.0 (/home/embo/zmk_KeychronFork_forReal/zephyr), build: dbf0bf656f6e [111/339] Building C object CMakeFiles/app.dir/src/ble.c.obj /home/embo/zmk_KeychronFork_forReal/app/src/ble.c:1155:31: warning: 'zmk_ble_auth_cb_display' defined but not used [-Wunused-variable] 1155 | static struct bt_conn_auth_cb zmk_ble_auth_cb_display = { | ^~~~~~~~~~~~~~~~~~~~~~~ [287/339] Building C object modules/module/drive...rivers__sensor__battery.dir/battery_common.c.obj^[329/339] Linking C executable zephyr/zephyr_pre0.elf [333/339] Linking C executable zephyr/zephyr_pre1.elf [339/339] Linking C executable zephyr/zmk.elf Memory region Used Size Region Size %age Used FLASH: 218764 B 844 KB 25.31% SRAM: 90032 B 256 KB 34.34% IDT_LIST: 0 GB 2 KB 0.00% Converting to uf2, output size: 437760, start address: 0x1000 Wrote 437760 bytes to zmk.uf2 ======================================================================== find ~/zmk_KeychronFork_forReal/app | grep uf2 | xargs ls -l Output: -rw-r--r-- 1 embo embo 437760 Mar 10 05:27 /home/embo/zmk_KeychronFork_forReal/app/build/zephyr/zmk.uf2