全志科技
直播中

麻酱

8年用户 1226经验值
擅长:MEMS/传感技术
私信 关注
[问答]

请问XR806 wlan_demo编译无法通过如何解决?

[OHOS ERROR] ~/tools/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-objcopy -O binary -R .xip   audio_demo.elf audio_demo.bin
[OHOS ERROR] ~/tools/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-size audio_demo.elf
[OHOS ERROR]    text     data      bss      dec      hex  filename
[OHOS ERROR] 1152240     8032    76248  1236520   12de28  audio_demo.elf
[OHOS ERROR] ~/tools/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-objcopy -O binary -j .xip audio_demo.elf audio_demo_xip.bin
[OHOS ERROR] cp audio_demo_xip.bin ../image/"xr806"/app_xip.bin
[OHOS ERROR] cd ../image/"xr806" &&
[OHOS ERROR] chmod a+r *.bin &&
[OHOS ERROR] ~/tools/gcc-arm-none-eabi-10-2020-q4-major/bin/arm-none-eabi-gcc -E -P -CC -DCONFIG_CHIP_ARCH_VER=3 -DCONFIG_ARCH_APP_CORE -DCONFIG_CPU_CM33F -DPRJ_XIP_SIZE=8M -DPRJ_BOOT_CERT=""null"" -DPRJ_IMAGE_BOOT_ATTR=""0x1"" -DPRJ_IMAGE_APP_SRAM_OFFS=""0x00201000"" -DPRJ_IMAGE_APP_EP=""0x00201101"" -DPRJ_IMAGE_BOOT_SRAM_OFFS=""0x00230000"" -DPRJ_IMAGE_BOOT_EP=""0x00230101"" -DPRJ_IMAGE_TZ_ATTR=""0x25"" -DPRJ_IMAGE_TZ_XIP_ATTR=""0x26"" -DPRJ_IMAGE_TZ_PSRAM_ATTR=""0x25"" -DPRJ_APP_BIN_CERT=""null"" -DPRJ_APP_XIP_BIN_CERT=""null"" -DPRJ_APP_PSRAM_BIN_CERT=""null"" -DPRJ_IMAGE_APP_ATTR=""0x1"" -DPRJ_IMAGE_APP_XIP_ATTR=""0x2"" -DPRJ_IMAGE_APP_PSRAM_ATTR=""0x1"" -DCONFIG_RAM_START=0x00201000 -DPRJ_RAM_SIZE=300K -DPRJ_PSRAM_START_OFFS=""0x01400000"" -DCONFIG_PSRAM_START=0x01400000 -DPRJ_PSRAM_SIZE=0K -DPRJ_IMAGE_BOOT_BIN=""boot_"40"M.bin"" -DPRJ_IMAGE_SYS_SDD_BIN=""sys_sdd_"40"M.bin""  -I../../../../../include/generated -include autoconf.h -o .image.cfg - < image.cfg &&
[OHOS ERROR] true &&
[OHOS ERROR] chmod 777 ../../../../../tools/mkimage && ../../../../../tools/mkimage  -c .image.cfg -o xr_system.img
[OHOS ERROR] err: bin 1 and bin 2 were overlaped!
[OHOS ERROR] Overlapped size: 1024 Byte(1kB)
[OHOS ERROR] bin 1 name:app.bin    begin: 0x00008000    end: 0x00018000
[OHOS ERROR] bin 2 name:app_xip.bin    begin: 0x00017C00
[OHOS ERROR]
[OHOS ERROR] We've rearranged bin files and generated new cfg file 'image_auto_cal.cfg', the new one is recommended.
[OHOS ERROR] Generate image file failed
[OHOS ERROR] cfg string:
[OHOS ERROR] /*
[OHOS ERROR]  *
[OHOS ERROR]  * Automatically generated file; DO NOT EDIT.
[OHOS ERROR]  * XR806 SDK Configuration
[OHOS ERROR]  *
[OHOS ERROR]  */
[OHOS ERROR] {
[OHOS ERROR]     "magic" : "AWIH",
[OHOS ERROR]     "version" : "0.5",
[OHOS ERROR]     "image" : {"max_size": "1532K"},
[OHOS ERROR]     "section" :[
[OHOS ERROR]   {"id": "0xa5ff5a00", "bin" :"boot_40M.bin", "cert": "null", "flash_offs": "0K", "sram_offs": "0x00230000", "ep": "0x00230101", "attr":"0x1"},
[OHOS ERROR]   {"id": "0xa5fe5a01", "bin" :"app.bin", "cert": "null", "flash_offs": "32K", "sram_offs": "0x00201000", "ep": "0x00201101", "attr":"0x1"},
[OHOS ERROR]   {"id": "0xa5fd5a02", "bin" :"app_xip.bin", "cert": "null", "flash_offs": "95K", "sram_offs": "0xffffffff", "ep": "0xffffffff", "attr":"0x2"},
[OHOS ERROR]   {"id": "0xa5fa5a05", "bin" :"wlan_bl.bin", "cert": "null", "flash_offs": "1166K", "sram_offs": "0xffffffff", "ep": "0xffffffff", "attr":"0x1"},
[OHOS ERROR]   {"id": "0xa5f95a06", "bin" :"wlan_fw.bin", "cert": "null", "flash_offs": "1169K", "sram_offs": "0xffffffff", "ep": "0xffffffff", "attr":"0x1"},
[OHOS ERROR]   {"id": "0xa5f85a07", "bin" :"sys_sdd_40M.bin", "cert": "null", "flash_offs": "1194K", "sram_offs": "0xffffffff", "ep": "0xffffffff", "attr":"0x1"},
[OHOS ERROR]   {}
[OHOS ERROR]  ]
[OHOS ERROR] }
[OHOS ERROR]
[OHOS ERROR] make[2]: *** [../../../../project/project.mk:520: image] Error 255
[OHOS ERROR] make[2]: Leaving directory '/home/openharmony/device/xradio/xr806/xr_skylark/project/demo/audio_demo/gcc'
[OHOS ERROR] make[1]: *** [../../../../project/project.mk:493: __build] Error 2
[OHOS ERROR] make[1]: Leaving directory '/home/openharmony/device/xradio/xr806/xr_skylark/project/demo/audio_demo/gcc'
[OHOS ERROR] make: *** [Makefile:164: build] Error 2
[OHOS ERROR] you can check build log in /home/openharmony/out/xr806/wifi_skylark/build.log
[OHOS ERROR] command: "/home/tools/ninja/ninja -w dupbuild=warn -C /home/openharmony/out/xr806/wifi_skylark" failed
[OHOS ERROR] return code: 1
[OHOS ERROR] execution path: /home/openharmony




看日志像是bin地址重叠了,不知道是什么情况

回帖(2)

李俊

2021-12-29 09:45:29
是鸿蒙系统太臃肿了,什么都没用就已经占了很多空间了,只能裁剪。从目前体验来看,鸿蒙还是不适合用在IOT WIFI上
举报

甘蔼宾

2021-12-29 09:45:42
其实只是旧的flash内存分配策略不管用了,文档里面有介绍的,这时候生成了一个auto.cfg,把auto.cfg的内容复制到image.cfg里面即可。
举报

更多回帖

发帖
×
20
完善资料,
赚取积分