add clean.sh

This commit is contained in:
houpengfei 2021-10-07 14:13:08 +08:00
parent 800999cc10
commit df89528a44
232 changed files with 17 additions and 391648 deletions

17
clean.sh Executable file
View File

@ -0,0 +1,17 @@
# /bin/bash
rm -rf out/
rm -rf device/talkweb/niobe/sdk_liteos/.sconsign.dblite
rm -rf device/talkweb/niobe/sdk_liteos/build/build_tmp/
rm -rf device/talkweb/niobe/sdk_liteos/build/scripts/__pycache__/
rm -rf device/talkweb/niobe/sdk_liteos/output/
#rm -rf device/talkweb/niobe/sdk_liteos/third_party/u-boot-v2019.07/u-boot-v2019.07/
rm -rf device/talkweb/niobe/sdk_liteos/tools/nvtool/__pycache__/
rm -rf device/talkweb/niobe/sdk_liteos/tools/nvtool/out_nv_bin/
rm -rf test/xdevice/build/
rm -rf test/xdevice/src/xdevice.egg-info/
rm -rf test/xts/tools/lite/build/__pycache__/
rm -rf test/xdevice/dist/
rm -rf device/talkweb/niobe/sdk_liteos/ohos/libs
rm -rf device/talkweb/niobe/sdk_liteos/output
rm -rf device/talkweb/niobe/sdk_liteos/.sconsign.dblite

View File

@ -1,232 +0,0 @@
execute ota_builder with python...
riscv32-unknown-elf-ld -nostdlib -nostartfiles -static --gc-sections -T/home/openharmony/device/talkweb/niobe/sdk_liteos/build/link/flashboot_sha256.lds -Lbuild/libs -Lbuild/libs/boot_libs build/build_tmp/objs/flashboot/boot/commonboot/efuse/efuse_drv.o build/build_tmp/objs/flashboot/boot/commonboot/flash/flash_hw_process_flashboot.o build/build_tmp/objs/flashboot/common/nvm/hi_nvm.o build/build_tmp/objs/flashboot/common/partition_table/boot_partition_table.o build/build_tmp/objs/flashboot/drivers/efuse/efuse.o build/build_tmp/objs/flashboot/drivers/flash/hi_flashboot_flash.o build/build_tmp/objs/flashboot/drivers/gpio/hi_flashboot_gpio.o build/build_tmp/objs/flashboot/drivers/io/hi_flashboot_io.o build/build_tmp/objs/flashboot/drivers/lsadc/adc_drv.o build/build_tmp/objs/flashboot/lzmaram/lzmaram.o build/build_tmp/objs/flashboot/secure/crypto.o build/build_tmp/objs/flashboot/startup/main.o build/build_tmp/objs/flashboot/startup/riscv_init_flashboot.o build/build_tmp/objs/flashboot/startup/stack_protect.o build/build_tmp/objs/flashboot/third_party/u-boot-v2019.07/u-boot-v2019.07/lib/crc32.o build/build_tmp/objs/flashboot/third_party/u-boot-v2019.07/u-boot-v2019.07/lib/lzma/LzmaDec.o build/build_tmp/objs/flashboot/third_party/u-boot-v2019.07/u-boot-v2019.07/lib/lzma/LzmaTools.o build/build_tmp/objs/flashboot/upg/boot_start.o build/build_tmp/objs/flashboot/upg/boot_upg_check.o build/build_tmp/objs/flashboot/upg/boot_upg_check_secure.o build/build_tmp/objs/flashboot/upg/boot_upg_common.o build/build_tmp/objs/flashboot/upg/boot_upg_kernel.o build/build_tmp/objs/flashboot/upg/boot_upg_start_up.o build/build_tmp/objs/flashboot/upg/boot_upg_tool.o -o build/build_tmp/cache/flash_boot.elf --start-group --end-group
tools/sign_tool/sign_tool -i build/build_tmp/cache/hi_flash_boot.bin -o output/bin/Hi3861_boot_signed.bin -n -toutput/bin/Hi3861_boot_signed_B.bin
[input file]: build/build_tmp/cache/hi_flash_boot.bin
[output file]: output/bin/Hi3861_boot_signed.bin
[tail boot]: output/bin/Hi3861_boot_signed_B.bin
Sign non securtiy kernel success!
cleanup(["output/bin/Hi3861_boot_signed.bin"], ["build/build_tmp/cache/hi_flash_boot.bin"])
Compiling boot/commonboot/efuse/efuse_drv.c
Compiling boot/commonboot/flash/flash_hw_process_flashboot.c
Compiling boot/loaderboot/common/cmd_loop.c
Compiling boot/loaderboot/common/efuse_opt.c
Compiling boot/loaderboot/common/nvm/hi_nvm.c
Compiling boot/loaderboot/common/partition_table/load_partition_table.c
Compiling boot/loaderboot/common/transfer.c
Compiling boot/loaderboot/drivers/efuse/efuse.c
Compiling boot/loaderboot/drivers/flash/hi_loaderboot_flash.c
Compiling boot/loaderboot/drivers/lsadc/adc_drv.c
Compiling boot/loaderboot/secure/burn_file.c
Compiling boot/loaderboot/secure/load_crypto.c
Compiling boot/loaderboot/startup/main.c
riscv32-unknown-elf-gcc -mabi=ilp32 -march=rv32imc -x assembler-with-cpp -Os -Wall -Werror -nostdinc -fno-common -DARCH_RISCV -DLOS_COMPILE_LDM -DHI_BOARD_ASIC -DCONFIG_COMPRESSION_OTA_SUPPORT -DCONFIG_CHIP_PKT_32K -Iboot/loaderboot/include -Iboot/loaderboot/fixed/include -Iboot/loaderboot/secure -Iboot/commonboot -c -o build/build_tmp/objs/loaderboot/startup/riscv_init_loaderboot.o boot/loaderboot/startup/riscv_init_loaderboot.S
Compiling boot/loaderboot/startup/stack_protect.c
Compiling third_party/u-boot-v2019.07/u-boot-v2019.07/lib/crc32.c
Compiling third_party/u-boot-v2019.07/u-boot-v2019.07/lib/lzma/LzmaDec.c
Compiling third_party/u-boot-v2019.07/u-boot-v2019.07/lib/lzma/LzmaTools.c
riscv32-unknown-elf-ld -nostdlib -nostartfiles -static --gc-sections -T/home/openharmony/device/talkweb/niobe/sdk_liteos/build/link/loaderboot_sha256.lds -Lbuild/libs -Lbuild/libs/boot_libs build/build_tmp/objs/loaderboot/boot/commonboot/efuse/efuse_drv.o build/build_tmp/objs/loaderboot/boot/commonboot/flash/flash_hw_process_flashboot.o build/build_tmp/objs/loaderboot/common/cmd_loop.o build/build_tmp/objs/loaderboot/common/efuse_opt.o build/build_tmp/objs/loaderboot/common/nvm/hi_nvm.o build/build_tmp/objs/loaderboot/common/partition_table/load_partition_table.o build/build_tmp/objs/loaderboot/common/transfer.o build/build_tmp/objs/loaderboot/drivers/efuse/efuse.o build/build_tmp/objs/loaderboot/drivers/flash/hi_loaderboot_flash.o build/build_tmp/objs/loaderboot/drivers/lsadc/adc_drv.o build/build_tmp/objs/loaderboot/secure/burn_file.o build/build_tmp/objs/loaderboot/secure/load_crypto.o build/build_tmp/objs/loaderboot/startup/main.o build/build_tmp/objs/loaderboot/startup/riscv_init_loaderboot.o build/build_tmp/objs/loaderboot/startup/stack_protect.o build/build_tmp/objs/loaderboot/third_party/u-boot-v2019.07/u-boot-v2019.07/lib/crc32.o build/build_tmp/objs/loaderboot/third_party/u-boot-v2019.07/u-boot-v2019.07/lib/lzma/LzmaDec.o build/build_tmp/objs/loaderboot/third_party/u-boot-v2019.07/u-boot-v2019.07/lib/lzma/LzmaTools.o -o build/build_tmp/cache/loader_boot.elf --start-group --end-group
riscv32-unknown-elf-objcopy -Obinary -R .rom.text -R .rom.code.text -R .u_boot_cmd -R .rom.data -R .rom.code.data -R .rom.bss -R .rom.code.bss -S build/build_tmp/cache/loader_boot.elf build/build_tmp/cache/hi_loader_boot.bin
cleanup(["build/build_tmp/cache/hi_loader_boot.bin"], ["build/build_tmp/cache/loader_boot.elf"])
tools/sign_tool/sign_tool -i build/build_tmp/cache/hi_loader_boot.bin -o output/bin/Hi3861_loader_signed.bin -n
[input file]: build/build_tmp/cache/hi_loader_boot.bin
[output file]: output/bin/Hi3861_loader_signed.bin
Sign non securtiy kernel success!
riscv32-unknown-elf-gcc -Iplatform/os/Huawei_LiteOS/kernel/include -Iconfig -DCONFIG_TEE_HUKS_SUPPORT -DCONFIG_CHIP_PKT_32K -DHI_BOARD_ASIC -DHI_ON_FLASH -E build/link/system_config.ld.S -o build/build_tmp/scripts/system_config.ld -P
nvimg_builder(["build/build_tmp/scripts/system_config.ld"], ["build/link/system_config.ld.S"])
product_name_list: ['sta']
xml h file: /home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool/h_file/nv
/home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool/out_nv_bin/sta
app_subver_list: ['demo']
current subver_name:demo
root_dir: /home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool
mdm_xml: /home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool/xml_file/mss_nvi_db.xml
HNV NAME:mss_nvi_db.xml
nv_tool: /home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool/tools/nv/cdbm
app_subver_temp_dir:/home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool/out_nv_bin/sta/nv/Hi3861_wifiiot_app/outside_demo
make app_subver_temp_dir
mdmxml:/home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool/xml_file/mss_nvi_db.xml
src_xml_list: ['/home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool/xml_file/mss_nvi_db.xml']
combin_xml:/home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool/out_nv_bin/sta/nv/Hi3861_wifiiot_app/mss_nvi_db.xml
root_list [<Element 'HISTUDIO' at 0x7f568bd53ea0>]
hi_nv_modify_by_cfg
cfg_file: nv
cmd_line= ('/home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool/tools/nv/cdbm', '/home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool/out_nv_bin/sta/nv/Hi3861_wifiiot_app/outside_demo/nv.xml', '/home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool/h_file/nv', '/home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool/out_nv_bin/sta/nv/Hi3861_wifiiot_app/outside_demo/nv')
/home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool/out_nv_bin/sta/nv/Hi3861_wifiiot_app/outside_demo/nv.xml
/home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool/h_file/nv
/home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool/out_nv_bin/sta/nv/Hi3861_wifiiot_app/outside_demo/nv
===========Init HDB Start===========
*********strDataTypeDefPath:/home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool/h_file/nv/../nv/nv_modem_struct_def.txt
*********strDataTypeDefPath:/home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool/h_file/nv/../nv/nv_modem_struct_def.txt
*********strDataTypeDefPath:/home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool/h_file/nv/../nv/nv_factory_struct_def.txt
===========Init HDB finish===========
===========Write NV Buffer To File===========
===========Write NV Buffer Finish===========
RETURN VALUE:0
dst_hnv= /home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool/out_nv_bin/sta/nv/hnv/Hi3861_wifiiot_app.hnv
Factory NV total num:10
NV_FILE_STRU :28
Factory NV total size:824
Normal NV total num:13
NV_FILE_STRU :28
Normal NV total size:766
build hnv OK:/home/openharmony/device/talkweb/niobe/sdk_liteos/tools/nvtool/out_nv_bin/sta/nv/hnv/Hi3861_wifiiot_app.hnv
ENDING
riscv32-unknown-elf-gcc -Iplatform/os/Huawei_LiteOS/kernel/include -Iconfig -DCONFIG_TEE_HUKS_SUPPORT -DCONFIG_CHIP_PKT_32K -DHI_BOARD_ASIC -DHI_ON_FLASH -DFLASH_FIRM_START=4248512 -E build/link/link.ld.S -o build/build_tmp/scripts/link.lds -P
riscv32-unknown-elf-ld -nostartfiles -nostdlib -static --gc-sections -L/home/openharmony/device/talkweb/niobe/sdk_liteos/build/scripts/../../../../../huawei/hms/hilink/ohos/l0/hi3861/lib/wifi -L/home/tools/gcc_riscv32/bin/../lib/gcc/riscv32-unknown-elf/7.3.0 -Lbuild/build_tmp/libs/app/wifiiot_app -Lbuild/build_tmp/libs/components/at -Lbuild/build_tmp/libs/platform/drivers -Lbuild/build_tmp/libs/platform/system -Lbuild/build_tmp/scripts -Lbuild/libs -Lbuild/libs/hi3861/release/no_mesh -Lbuild/scripts -Lohos/libs -Tbuild/build_tmp/scripts/link.lds -Map=output/bin/Hi3861_wifiiot_app.map -o output/bin/Hi3861_wifiiot_app.out --start-group --no-whole-archive --whole-archive -lHwKeystoreSDK -ladc -lat -lauthmanager -lblackbox -lbootstrap -lbroadcast -lc_flash -lcfg -lcjson_static -lcmsis -lcpup -ldiag -ldiscovery -ldrv -ldump_static -lflash -lgcc -lgpio -lhal_file_static -lhal_iothardware -lhal_sysparam -lhal_token_static -lhal_update_static -lhal_wifiaware -lhelloworld -lhichainsdk -lhidumper_mini -lhievent_lite -lhilog_lite -lhiview_lite -lhota -li2c -lio -liperf -llitekernel_flash -lltoswpa -llwip -lm_flash -lmbedtls -lnative_file -lparttab -lposix -lpwm -lres_cfg -lsamgr -lsamgr_adapter -lsamgr_source -lsdio -lsec_flash -lspiffs -lsysparam -lsystem -ltoken_static -ltrans_service -ltsensor -luart -lupg -lutils_kv_store -lwifi -lwifi_flash -lwifiaware -lwifiiot_app -lwifiservice -lwpa --end-group
riscv32-unknown-elf-objcopy -O binary output/bin/Hi3861_wifiiot_app.out build/build_tmp/cache/Hi3861_wifiiot_app.bin
baseimg_builder(["build/build_tmp/cache/Hi3861_wifiiot_app_base.bin", "build/build_tmp/cache/Hi3861_wifiiot_app_kernel.bin"], ["build/build_tmp/cache/Hi3861_wifiiot_app.bin"])
cleanup(["build/build_tmp/cache/Hi3861_wifiiot_app_base.bin", "build/build_tmp/cache/Hi3861_wifiiot_app_kernel.bin"], ["build/build_tmp/cache/Hi3861_wifiiot_app.bin"])
ota_builder(["build/build_tmp/cache/Hi3861_wifiiot_app_ota_temp.bin"], ["build/build_tmp/cache/Hi3861_wifiiot_app_base.bin", "build/build_tmp/cache/Hi3861_wifiiot_app_kernel.bin"])
********************package kernel&nv upgrade file********************
upg kernel file in: build/build_tmp/cache/Hi3861_wifiiot_app_kernel.bin
upg normal nv file in: build/build_tmp/nv/Hi3861_wifiiot_app_normal.hnv
upg file out: build/build_tmp/cache/Hi3861_wifiiot_app_ota_temp.bin
[common_head_offset=0][common_head_size=96]
[common_key_offset=96][common_key_size=288]
[common_head_sign_offset=384][common_head_sign_size=256]
[section_head_offset=640][section_head_size=64]
[upg_file_sign_offset=704][upg_file_sign_size=256]
[padding_offset=709448][padding_size=8]
[upg fill user info]chip:b'Hi3861'
-------------build/build_tmp/cache/Hi3861_wifiiot_app_ota_temp.bin image info print start-------------
[image_id=0x3c78961e][struct_version=0x0]]
[section_offset=0x280][section_len=0xad0d0]
[file_type=0xf0][file_version=0x0][encrypt_flag=0x42]
[file_len=0xad350][key_len=0x120]
[file_attr=0x44]
[hash_alg=0x0][sign_alg=0x3f][sign_param=0x0]
[aes_key[0-1-14-15]=[0x0][0x0][0x0][0x0]]
[aes_iv [0-1-14-15]=[0x0][0x0][0x0][0x0]]
[common key][00]=[0x0]
[common key][01]=[0x0]
[common key][30]=[0x0]
[common key][31]=[0x0]
[common sign][00]=[0xb4]
[common sign][01]=[0xc]
[common sign][30]=[0x1c]
[common sign][31]=[0x95]
[section sign][00]=[0xda]
[section sign][01]=[0xb7]
[section sign][30]=[0x88]
[section sign][31]=[0xf8]
[image_id=0x3c78961e][struct_version=0x0]]
[hash_alg=0x0][sign_alg=0x3f][sign_param=0x0]
[section_count=0x2]
[section0_compress=0x0][section0_offset=0x3c0][section0_len=0xabf88]
[section1_compress=0x0][section1_offset=0xac348][section1_len=0x1000]
-------------build/build_tmp/cache/Hi3861_wifiiot_app_ota_temp.bin image info print end--------------
riscv32-unknown-elf-objdump -d output/bin/Hi3861_wifiiot_app.out > output/bin/Hi3861_wifiiot_app.asm
burn_bin_builder(["output/bin/Hi3861_wifiiot_app_burn.bin", "output/bin/Hi3861_wifiiot_app_allinone.bin"], ["build/build_tmp/cache/Hi3861_wifiiot_app_ota_temp.bin", "output/bin/Hi3861_loader_signed.bin"])
********************package hiburn file********************
hbin flash boot file in : output/bin/Hi3861_boot_signed.bin
hbin factory nv file in : build/build_tmp/nv/Hi3861_wifiiot_app_factory.hnv
hbin normal nv file in : build/build_tmp/cache/Hi3861_wifiiot_app_ota_temp.bin
hbin upg file in : build/build_tmp/nv/Hi3861_wifiiot_app_factory.hnv
hbin file out : output/bin/Hi3861_wifiiot_app_burn.bin
-------------output/bin/Hi3861_wifiiot_app_burn.bin image info print start-------------
[bin_size]=[0xba350]
[image_id=0x3c78961e][struct_version=0x0]]
[section_offset=0x280][section_len=0xad0d0]
[file_type=0xf0][file_version=0x0][encrypt_flag=0x42]
[file_len=0xad350][key_len=0x120]
[hash_alg=0x0][sign_alg=0x3f][sign_param=0x0]
[aes_key[0,1,14,15]=[0x0][0x0][0x0][0x0]]
[aes_iv[0,1,14,15]=[0x0][0x0][0x0][0x0]]
-------------output/bin/Hi3861_wifiiot_app_burn.bin image info print end--------------
['output/bin/Hi3861_loader_signed.bin', 'output/bin/Hi3861_wifiiot_app_burn.bin']
[0, 0]
[0, 2097152]
[15360, 762704]
[0, 1]
4022250975
boot_ota_builder(["output/bin/Hi3861_wifiiot_app_flash_boot_ota.bin"], ["output/bin/Hi3861_boot_signed.bin"])
********************package boot upgrade file********************
boot upg file in: output/bin/Hi3861_boot_signed.bin
boot upg file out: output/bin/Hi3861_wifiiot_app_flash_boot_ota.bin
[common_head_offset=0][common_head_size=96]
[common_key_offset=96][common_key_size=288]
[common_head_sign_offset=384][common_head_sign_size=256]
[section_head_offset=640][section_head_size=64]
[upg_file_sign_offset=704][upg_file_sign_size=256]
[padding_offset=0][padding_size=0]
[upg fill user info]chip:b'Hi3861'
-------------output/bin/Hi3861_wifiiot_app_flash_boot_ota.bin image info print start-------------
[image_id=0x3c78961e][struct_version=0x0]]
[section_offset=0x280][section_len=0x60a0]
[file_type=0xe1][file_version=0x0][encrypt_flag=0x42]
[file_len=0x6320][key_len=0x120]
[file_attr=0x44]
[hash_alg=0x0][sign_alg=0x3f][sign_param=0x0]
[aes_key[0-1-14-15]=[0x0][0x0][0x0][0x0]]
[aes_iv [0-1-14-15]=[0x0][0x0][0x0][0x0]]
[common key][00]=[0x0]
[common key][01]=[0x0]
[common key][30]=[0x0]
[common key][31]=[0x0]
[common sign][00]=[0xc9]
[common sign][01]=[0x21]
[common sign][30]=[0x2f]
[common sign][31]=[0x82]
[section sign][00]=[0x34]
[section sign][01]=[0x40]
[section sign][30]=[0x90]
[section sign][31]=[0x2]
[image_id=0x3c78961e][struct_version=0x0]]
[hash_alg=0x0][sign_alg=0x3f][sign_param=0x0]
[section_count=0x1]
[section0_compress=0x0][section0_offset=0x3c0][section0_len=0x5f60]
[section1_compress=0x0][section1_offset=0x0][section1_len=0x0]
-------------output/bin/Hi3861_wifiiot_app_flash_boot_ota.bin image info print end--------------
compress_ota_builder(["output/bin/Hi3861_wifiiot_app_ota.bin"], ["build/build_tmp/cache/Hi3861_wifiiot_app_ota_temp.bin"])
********************package compress upgrade file********************
compress upg file in: build/build_tmp/cache/Hi3861_wifiiot_app_ota_temp.bin
compress upg file out: output/bin/Hi3861_wifiiot_app_ota.bin
lzma compress tool : /home/openharmony/device/talkweb/niobe/sdk_liteos/build/scripts/../../tools/lzma_tool/lzma_tool
lzma src file : build/build_tmp/cache/Hi3861_wifiiot_app_ota_temp.bin
lzma out file : build/build_tmp/cache/Hi3861_wifiiot_app_ota_temp.lzma
LZMA 19.00 (x64) : Igor Pavlov : Public domain : 2019-02-21
Input size: 709456 (0 MiB)
 Output size: 443059 (0 MiB)
[upgbin-compressbin]0xad350-0x128000
[common_head_offset=0][common_head_size=96]
[common_key_offset=96][common_key_size=288]
[common_head_sign_offset=384][common_head_sign_size=256]
[section_head_offset=640][section_head_size=64]
[upg_file_sign_offset=704][upg_file_sign_size=256]
[padding_offset=444019][padding_size=13]
[upg fill user info]chip:b'Hi3861'
-------------output/bin/Hi3861_wifiiot_app_ota.bin image info print start-------------
[image_id=0x3c78961e][struct_version=0x0]]
[section_offset=0x280][section_len=0x6c400]
[file_type=0xf0][file_version=0x0][encrypt_flag=0x42]
[file_len=0x6c680][key_len=0x120]
[file_attr=0x44]
[hash_alg=0x0][sign_alg=0x3f][sign_param=0x0]
[aes_key[0-1-14-15]=[0x0][0x0][0x0][0x0]]
[aes_iv [0-1-14-15]=[0x0][0x0][0x0][0x0]]
[common key][00]=[0x0]
[common key][01]=[0x0]
[common key][30]=[0x0]
[common key][31]=[0x0]
[common sign][00]=[0xc8]
[common sign][01]=[0xad]
[common sign][30]=[0x97]
[common sign][31]=[0xbc]
[section sign][00]=[0x47]
[section sign][01]=[0x9f]
[section sign][30]=[0x7d]
[section sign][31]=[0xbc]
[image_id=0x3c78961e][struct_version=0x0]]
[hash_alg=0x0][sign_alg=0x3f][sign_param=0x0]
[section_count=0x1]
[section0_compress=0x1][section0_offset=0x3c0][section0_len=0x6c2b3]
[section1_compress=0x0][section1_offset=0x0][section1_len=0x0]
-------------output/bin/Hi3861_wifiiot_app_ota.bin image info print end--------------

< ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >
BUILD SUCCESS
< ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ >


View File

@ -1,14 +0,0 @@
Building at 2021/10/07 06:09:28
----------------------------top-----------------
lib_name: uart
lib_name: adc
lib_name: tsensor
lib_name: i2c
lib_name: pwm
lib_name: cfg
lib_name: parttab
lib_name: upg
lib_name: at
lib_name: wifiiot_app
~~~~~~~~~~~~~~~~~~~~~~~~~~~~libpath: ['-L/home/openharmony/device/talkweb/niobe/sdk_liteos/build/scripts/../../../../../huawei/hms/hilink/ohos/l0/hi3861/lib/wifi', '-L/home/tools/gcc_riscv32/bin/../lib/gcc/riscv32-unknown-elf/7.3.0', '-Lbuild/build_tmp/libs/app/wifiiot_app', '-Lbuild/build_tmp/libs/components/at', '-Lbuild/build_tmp/libs/platform/drivers', '-Lbuild/build_tmp/libs/platform/system', '-Lbuild/build_tmp/scripts', '-Lbuild/libs', '-Lbuild/libs/hi3861/release/no_mesh', '-Lbuild/scripts', '-Lohos/libs']
~~~~~~~~~~~~~~~~~~~~~~~~~~~~libs: ['--no-whole-archive', '--whole-archive', '-lHwKeystoreSDK', '-ladc', '-lat', '-lauthmanager', '-lblackbox', '-lbootstrap', '-lbroadcast', '-lc_flash', '-lcfg', '-lcjson_static', '-lcmsis', '-lcpup', '-ldiag', '-ldiscovery', '-ldrv', '-ldump_static', '-lflash', '-lgcc', '-lgpio', '-lhal_file_static', '-lhal_iothardware', '-lhal_sysparam', '-lhal_token_static', '-lhal_update_static', '-lhal_wifiaware', '-lhelloworld', '-lhichainsdk', '-lhidumper_mini', '-lhievent_lite', '-lhilog_lite', '-lhiview_lite', '-lhota', '-li2c', '-lio', '-liperf', '-llitekernel_flash', '-lltoswpa', '-llwip', '-lm_flash', '-lmbedtls', '-lnative_file', '-lparttab', '-lposix', '-lpwm', '-lres_cfg', '-lsamgr', '-lsamgr_adapter', '-lsamgr_source', '-lsdio', '-lsec_flash', '-lspiffs', '-lsysparam', '-lsystem', '-ltoken_static', '-ltrans_service', '-ltsensor', '-luart', '-lupg', '-lutils_kv_store', '-lwifi', '-lwifi_flash', '-lwifiaware', '-lwifiiot_app', '-lwifiservice', '-lwpa']

View File

@ -1,317 +0,0 @@
OUTPUT_ARCH( "riscv" )
ENTRY(_start)
STACK_SIZE = 2k;
IRQ_STACK_SIZE = 3K;
EXC_STACK_SIZE = 2K;
NMI_STACK_SIZE = 2K;
DOWNLOAD_STACK_SIZE = 4K;
DOWNLOAD_IRQ_STACK_SIZE = 2K;
MEMORY
{
BIN(rx) : ORIGIN = 4248512, LENGTH = 2M
ROM_TEXT(rx) : ORIGIN = 0x003b8000, LENGTH = (278K - 32)
ROM_DATA0(rwx) : ORIGIN = ((0x11DFFF - (32 + 2016 + 11776 + 0x40) + 1) + 11776), LENGTH = 32
ROM_DATA1(rwx) : ORIGIN = (((0x11DFFF - (32 + 2016 + 11776 + 0x40) + 1) + 11776) + 32), LENGTH = 1768
ROM_BSS(rwx) : ORIGIN = (0x11DFFF - (32 + 2016 + 11776 + 0x40) + 1), LENGTH = 11776
STACK(rw) : ORIGIN = (0x11DFFF - (32 + 2016 + 11776 + 0x40) + 1) - (STACK_SIZE + IRQ_STACK_SIZE + EXC_STACK_SIZE + NMI_STACK_SIZE), LENGTH = (STACK_SIZE + IRQ_STACK_SIZE + EXC_STACK_SIZE + NMI_STACK_SIZE)
CHECK_INFO(rw) : ORIGIN = ((((0x11DFFF - (32 + 2016 + 11776 + 0x40) + 1) + 11776) + 32) + 2016), LENGTH = 0x40
FLASH(rwx) : ORIGIN = 4248512, LENGTH = 0x00400000 + 2M - 4248512
PATCH_BSS(rwx) : ORIGIN = 0x000d8000, LENGTH = 1024
RAM(rwx) : ORIGIN = (0x000d8000 + 1024 + 0), LENGTH = (280K - (32 + 2016 + 11776 + 0x40) - 1024 - (STACK_SIZE + IRQ_STACK_SIZE + EXC_STACK_SIZE + NMI_STACK_SIZE) - 0)
EXTERN_ROM_DATA1_BSS(rwx) : ORIGIN = 0x11dec8, LENGTH = 2016 -1768
}
SECTIONS
{
.text_rom : AT ((4248512 - (278K - 32) - 32))
{
. = ALIGN(0x20);
__rom_text_begin__ = .;
__text_cache_start1_ = .;
_rom_size_download_start = .;
KEEP(SORT(*)(.text.download_entry))
. = ALIGN(0x4);
KEEP(SORT(*)(.text.trap_download_vector))
KEEP(SORT(*)(.text.download_assemble))
. = ALIGN(0x4);
_rom_size_download_end = .;
_rom_size_download = _rom_size_download_end - _rom_size_download_start;
KEEP(SORT(libwifi_base.o)(.text*))
KEEP(SORT(*)(.wifi.rom.text*))
. = ALIGN(0x20);
_rom_wifi_rom_end = .;
_rom_size_libwifi = _rom_wifi_rom_end - _rom_size_download;
KEEP(SORT(libbsp_base.o)(.text*))
_rom_bsp_rom_end = .;
_rom_size_libbsp = _rom_bsp_rom_end - _rom_wifi_rom_end;
KEEP(SORT(liblitekernel_base.o)(.text*))
_rom_kernel_rom_end = .;
_rom_size_kernel = _rom_kernel_rom_end - _rom_bsp_rom_end;
KEEP(SORT(*libgcc.a:save-restore.o)(.text*)) KEEP(SORT(*libgcc.a:_clzsi2.o)(.text*)) KEEP(SORT(*libgcc.a:_umoddi3.o)(.text*)) KEEP(SORT(*libgcc.a:_clz.o)(.text*)) KEEP(SORT(*libgcc.a:_ashldi3.o)(.text*)) KEEP(SORT(*libgcc.a:_lshrdi3.o)(.text*)) KEEP(SORT(*libgcc.a:fixdfsi.o)(.text*)) KEEP(SORT(*libgcc.a:_udivdi3.o)(.text*))
_rom_libgcc_end = .;
_rom_size_libgcc = _rom_libgcc_end - _rom_kernel_rom_end;
KEEP(SORT(libc_base.o)(.text*))
_rom_libc_rom_end = .;
_rom_size_libc = _rom_libc_rom_end - _rom_libgcc_end;
KEEP(SORT(libsec_base.o)(.text*))
_rom_sec_rom_end = .;
_rom_size_libsec = _rom_sec_rom_end - _rom_libc_rom_end;
__text_cache_end1_ = .;
KEEP(SORT(libwifi_base.o)(.rodata*))
KEEP(SORT(*)(.wifi.rom.rodata*))
. = ALIGN(0x4);
_rom_hi1131_wifi_rom_rodata_end = .;
_rom_size_rodata_wifi = _rom_hi1131_wifi_rom_rodata_end - _rom_sec_rom_end;
KEEP(SORT(libbsp_base.o)(.rodata*))
KEEP(SORT(*)(.bsp.rom.rodata))
_rom_libbsp_rom_rodata_end = .;
_rom_size_rodata_bsp = _rom_libbsp_rom_rodata_end - _rom_hi1131_wifi_rom_rodata_end;
KEEP(SORT(liblitekernel_base.o)(.rodata*))
_rom_litekenel_rom_rodata_end = .;
_rom_size_rodata_kernel = _rom_litekenel_rom_rodata_end - _rom_size_rodata_bsp;
KEEP(SORT(*libgcc.a:save-restore.o)(.rodata*)) KEEP(SORT(*libgcc.a:_clzsi2.o)(.rodata*)) KEEP(SORT(*libgcc.a:_umoddi3.o)(.rodata*)) KEEP(SORT(*libgcc.a:_clz.o)(.rodata*)) KEEP(SORT(*libgcc.a:_ashldi3.o)(.rodata*)) KEEP(SORT(*libgcc.a:_lshrdi3.o)(.rodata*)) KEEP(SORT(*libgcc.a:fixdfsi.o)(.rodata*)) KEEP(SORT(*libgcc.a:_udivdi3.o)(.rodata*))
_rom_libgcc_rodata_end = .;
_rom_size_rodata_libgcc = _rom_libgcc_rodata_end - _rom_litekenel_rom_rodata_end;
KEEP(SORT(libc_base.o)(.rodata*))
_rom_libcrom_rodata_end = .;
_rom_size_rodata_libc = _rom_libcrom_rodata_end - _rom_libgcc_rodata_end;
KEEP(SORT(libsec_base.o)(.rodata*))
_rom_libsec_rom_rodata_end = .;
_rom_size_rodata_sec = _rom_libsec_rom_rodata_end - _rom_libcrom_rodata_end;
__rom_text_end__ = .;
} > ROM_TEXT
__rom_text_size__ = __rom_text_end__ - __rom_text_begin__;
.data_rom0 : AT (((4248512 - (278K - 32) - 32) + (278K - 32)))
{
. = ALIGN(0x20);
__rom_data0_begin__ = .;
KEEP(SORT(liblitekernel_base.o) (.data.kernel.rom*))
KEEP(SORT(*)(.bsp.rom.data0))
. = ALIGN(0x4);
__rom_data0_end__ = .;
} > ROM_DATA0
__rom_data0_size__ = __rom_data0_end__ - __rom_data0_begin__;
_rom_size_total = __rom_data0_size__ + __rom_text_size__;
__rom_data0_load = 0x003b8000 + (278K - 32);
.text_non_rom : AT ((((4248512 - (278K - 32) - 32) + (278K - 32)) + 32))
{
. = ALIGN(0x20);
__text_cache_start2_ = .;
KEEP(*(.entry.text))
. = ALIGN(0x20);
SORT(*)(.init*)
SORT(*)(.rom.text.patch)
SORT(*)(EXCLUDE_FILE(*libasm_flash.o) .text*)
SORT(*)(EXCLUDE_FILE(*libasm_flash.o) .got*)
. = ALIGN(0x20);
__text_cache_end2_ = .;
SORT(*)(.rodata*)
. = ALIGN(0x20);
__text_rodata_end_ = .;
. = ALIGN(0x20);
} > FLASH
.zInit : AT (ADDR(.text_non_rom) + SIZEOF(.text_non_rom))
{
__zinitcall_bsp_start = .;
KEEP (*(.zinitcall.bsp0.init))
KEEP (*(.zinitcall.bsp1.init))
KEEP (*(.zinitcall.bsp2.init))
KEEP (*(.zinitcall.bsp3.init))
KEEP (*(.zinitcall.bsp4.init))
__zinitcall_bsp_end = .;
__zinitcall_device_start = .;
KEEP (*(.zinitcall.device0.init))
KEEP (*(.zinitcall.device1.init))
KEEP (*(.zinitcall.device2.init))
KEEP (*(.zinitcall.device3.init))
KEEP (*(.zinitcall.device4.init))
__zinitcall_device_end = .;
__zinitcall_core_start = .;
KEEP (*(.zinitcall.core0.init))
KEEP (*(.zinitcall.core1.init))
KEEP (*(.zinitcall.core2.init))
KEEP (*(.zinitcall.core3.init))
KEEP (*(.zinitcall.core4.init))
__zinitcall_core_end = .;
__zinitcall_sys_service_start = .;
KEEP (*(.zinitcall.sys.service0.init))
KEEP (*(.zinitcall.sys.service1.init))
KEEP (*(.zinitcall.sys.service2.init))
KEEP (*(.zinitcall.sys.service3.init))
KEEP (*(.zinitcall.sys.service4.init))
__zinitcall_sys_service_end = .;
__zinitcall_sys_feature_start = .;
KEEP (*(.zinitcall.sys.feature0.init))
KEEP (*(.zinitcall.sys.feature1.init))
KEEP (*(.zinitcall.sys.feature2.init))
KEEP (*(.zinitcall.sys.feature3.init))
KEEP (*(.zinitcall.sys.feature4.init))
__zinitcall_sys_feature_end = .;
__zinitcall_run_start = .;
KEEP (*(.zinitcall.run0.init))
KEEP (*(.zinitcall.run1.init))
KEEP (*(.zinitcall.run2.init))
KEEP (*(.zinitcall.run3.init))
KEEP (*(.zinitcall.run4.init))
__zinitcall_run_end = .;
__zinitcall_app_service_start = .;
KEEP (*(.zinitcall.app.service0.init))
KEEP (*(.zinitcall.app.service1.init))
KEEP (*(.zinitcall.app.service2.init))
KEEP (*(.zinitcall.app.service3.init))
KEEP (*(.zinitcall.app.service4.init))
__zinitcall_app_service_end = .;
__zinitcall_app_feature_start = .;
KEEP (*(.zinitcall.app.feature0.init))
KEEP (*(.zinitcall.app.feature1.init))
KEEP (*(.zinitcall.app.feature2.init))
KEEP (*(.zinitcall.app.feature3.init))
KEEP (*(.zinitcall.app.feature4.init))
__zinitcall_app_feature_end = .;
__zinitcall_test_start = .;
KEEP (*(.zinitcall.test0.init))
KEEP (*(.zinitcall.test1.init))
KEEP (*(.zinitcall.test2.init))
KEEP (*(.zinitcall.test3.init))
KEEP (*(.zinitcall.test4.init))
__zinitcall_test_end = .;
__zinitcall_exit_start = .;
KEEP (*(.zinitcall.exit0.init))
KEEP (*(.zinitcall.exit1.init))
KEEP (*(.zinitcall.exit2.init))
KEEP (*(.zinitcall.exit3.init))
KEEP (*(.zinitcall.exit4.init))
__zinitcall_exit_end = .;
} > FLASH
.ram_text : AT ((((((((4248512 - (278K - 32) - 32) + (278K - 32)) + 32) + SIZEOF (.text_non_rom) + (0x20) - 1) & ~ ((0x20) - 1)) + SIZEOF (.zInit) + (0x20) - 1) & ~ ((0x20) - 1)))
{
__ram_text_load = LOADADDR(.ram_text);
__ram_text_start = .;
. = ALIGN(0x20);
SORT(*)(.trap_vector.text)
SORT(*)(.kernel.ram.text)
SORT(*)(.ram.kernel)
SORT(*)(.bsp.ram.text)
SORT(libasm_flash.o)(.text*)
. = ALIGN(0x20);
__ram_text_end = .;
} > RAM
__ram_text_size = __ram_text_end - __ram_text_start;
.data : AT ((((((((((4248512 - (278K - 32) - 32) + (278K - 32)) + 32) + SIZEOF (.text_non_rom) + (0x20) - 1) & ~ ((0x20) - 1)) + SIZEOF (.zInit) + (0x20) - 1) & ~ ((0x20) - 1)) + SIZEOF (.ram_text) + (0x20) -1) & ~ ((0x20) - 1)))
{
__data_load = LOADADDR(.data);
. = ALIGN(0x20);
__data_start = .;
SORT(*)(EXCLUDE_FILE(*liblitekernel_base.o *libc_base.o *libsec_base.o *libwifi_base.o *libbsp_base.o) .data*)
SORT(*)(EXCLUDE_FILE(*.o) .wifi.rom.data*)
SORT(*)(EXCLUDE_FILE(*.o) .data.system.rom*)
SORT(*)(.rom.data.patch)
SORT(*)(.sdata*)
. = ALIGN(4);
INCLUDE system_config.ld
. = ALIGN(0x20);
__data_end = .;
} > RAM
__data_size = __data_end - __data_start;
.data_rom1 : AT ((((((((((((4248512 - (278K - 32) - 32) + (278K - 32)) + 32) + SIZEOF (.text_non_rom) + (0x20) - 1) & ~ ((0x20) - 1)) + SIZEOF (.zInit) + (0x20) - 1) & ~ ((0x20) - 1)) + SIZEOF (.ram_text) + (0x20) -1) & ~ ((0x20) - 1)) + SIZEOF(.data) + (0x20) - 1) & ~ ((0x20) - 1)))
{
__rom_data1_load = LOADADDR(.data_rom1);
. = ALIGN(0x20);
__rom_data1_begin__ = .;
KEEP(SORT(*libgcc.a:save-restore.o)(.data*)) KEEP(SORT(*libgcc.a:_clzsi2.o)(.data*)) KEEP(SORT(*libgcc.a:_umoddi3.o)(.data*)) KEEP(SORT(*libgcc.a:_clz.o)(.data*)) KEEP(SORT(*libgcc.a:_ashldi3.o)(.data*)) KEEP(SORT(*libgcc.a:_lshrdi3.o)(.data*)) KEEP(SORT(*libgcc.a:fixdfsi.o)(.data*)) KEEP(SORT(*libgcc.a:_udivdi3.o)(.data*))
KEEP(SORT(liblitekernel_base.o) (.data*))
KEEP(SORT(libbsp_base.o) (.data*))
KEEP(SORT(*)(.data.system.rom*))
KEEP(SORT(libc_base.o) (.data*))
KEEP(SORT(libsec_base.o) (.data*))
KEEP(SORT(libwifi_base.o) (.data*))
KEEP(SORT(*)(.wifi.rom.data*))
. = ALIGN(4);
__rom_data1_end__ = .;
} > ROM_DATA1
__rom_data1_size__ = __rom_data1_end__ - __rom_data1_begin__;
.patch_bss (NOLOAD) :
{
__patch_bss_start = .;
KEEP(SORT(*)(.fpb.remap))
. = ALIGN(4);
__patch_bss_end__ = .;
} > PATCH_BSS
.bss_rom (NOLOAD) :
{
. = ALIGN(0x20);
__rom_bss_begin__ = .;
__global_pointer$ = .;
KEEP(SORT(*libgcc.a:save-restore.o)(.bss*)) KEEP(SORT(*libgcc.a:_clzsi2.o)(.bss*)) KEEP(SORT(*libgcc.a:_umoddi3.o)(.bss*)) KEEP(SORT(*libgcc.a:_clz.o)(.bss*)) KEEP(SORT(*libgcc.a:_ashldi3.o)(.bss*)) KEEP(SORT(*libgcc.a:_lshrdi3.o)(.bss*)) KEEP(SORT(*libgcc.a:fixdfsi.o)(.bss*)) KEEP(SORT(*libgcc.a:_udivdi3.o)(.bss*))
KEEP(SORT(liblitekernel_base.o )(.bss*))
KEEP(SORT(libc_base.o)(.bss*))
KEEP(SORT(libsec_base.o)(.bss*))
KEEP(SORT(libbsp_base.o)(.bss*))
KEEP(SORT(libwifi_base.o) (.bss*))
KEEP(SORT(*)(.wifi.rom.bss*))
. = ALIGN(4);
__rom_bss_end__ = .;
SORT(*)(.extern.rom.bss*)
. = ALIGN(4);
__extern_rom_bss_end__ = .;
} > ROM_BSS
__rom_bss_size__ = __extern_rom_bss_end__ - __rom_bss_begin__;
.extern_rom_data1_bss (NOLOAD) :
{
. = ALIGN(0x20);
__extern_rom_data1_bss_begin__ = .;
SORT(*)(.extern.rom.data1.bss*)
. = ALIGN(4);
__extern_rom_data1_bss_end__ = .;
} > EXTERN_ROM_DATA1_BSS
__extern_rom_data1_bss_size__ = __extern_rom_data1_bss_end__ - __extern_rom_data1_bss_begin__;
__RAM_BEGIN__ = ORIGIN(RAM);
__RAM_SIZE__ = LENGTH(RAM);
__DOWNLOAD_IRQ_STACK = ORIGIN(ROM_BSS) - DOWNLOAD_STACK_SIZE;
__DOWNLOAD_STACK_END = ORIGIN(ROM_BSS);
.bss (NOLOAD) : ALIGN(0x20)
{
. = ALIGN(0x20);
__bss_begin = .;
SORT(*)(.bss*)
SORT(*)(.rom.bss.patch)
SORT(*)(.sbss*)
. = ALIGN(0x20);
__bss_end = .;
} > RAM
__bss_size__ = __bss_end - __bss_begin;
_end = .;
.heap (NOLOAD) :
{
. = ALIGN(64);
__HEAP_BEGIN__ = ABSOLUTE(.);
} > RAM
__HEAP_SIZE__ = (__RAM_BEGIN__ + __RAM_SIZE__) - __HEAP_BEGIN__;
.stack (NOLOAD) : ALIGN(0x20)
{
__SYSTEM_STACK_BEGIN__ = .;
. += STACK_SIZE;
__SYSTEM_STACK_END__ = .;
. = ALIGN(0x20);
__irq_stack_bottom = .;
. += IRQ_STACK_SIZE;
__irq_stack_top = .;
. = ALIGN(0x20);
__nmi_stack_bottom = .;
. += NMI_STACK_SIZE;
__nmi_stack_top = .;
. = ALIGN(0x20);
__exc_stack_bottom = .;
. += EXC_STACK_SIZE;
__exc_stack_top = .;
} > STACK
__SYSTEM_STACK_SIZE__ = __SYSTEM_STACK_END__ - __SYSTEM_STACK_BEGIN__;
.check_info (NOLOAD) :
{
__check_info_addr = .;
KEEP(SORT(*)(.lowpower.ram.bss*))
} > CHECK_INFO
__ram_start = 0x000d8000;
__ram_end = 0x000d8000 + 280K;
. = ALIGN(4);
end = . ;
}

View File

@ -1,2 +0,0 @@
. = ALIGN(8); __block_sysmemused_start = .; __sysmemused_start = .; KEEP(*(.sysmemused)); __sysmemused_end = .; . += (__sysmemused_end - __sysmemused_start)*(((32 + 1)) - 1); __block_sysmemused_end = .;
. = ALIGN(8); __block_errno_start = .; __errno_start = .; KEEP(*(.errno)); __errno_end = .; . += (__errno_end - __errno_start)*(((32 + 1)) - 1); __block_errno_end = .;

Some files were not shown because too many files have changed in this diff Show More