代码拉取完成,页面将自动刷新
同步操作将从 w800_sdk/offline_audio_w800_rgb 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
CPRE := @
ifeq ($(V),1)
CPRE :=
VERB := --verbose
endif
MK_GENERATED_IMGS_PATH:=generated
SOLUTOIN_NAME:=$(shell basename `pwd`)
.PHONY:startup
startup: all
all:
@echo "Build Solution by $(BOARD) "
$(CPRE) scons $(VERB) --board=$(BOARD) -j4
@echo YoC SDK Done
@echo [INFO] Create bin files
$(CPRE) product image $(MK_GENERATED_IMGS_PATH)/images.zip -i $(MK_GENERATED_IMGS_PATH)/data -l -v "v1.0" -p
$(CPRE) product image $(MK_GENERATED_IMGS_PATH)/images.zip -e $(MK_GENERATED_IMGS_PATH) -x
$(CPRE) product image $(MK_GENERATED_IMGS_PATH)/images.zip -e $(MK_GENERATED_IMGS_PATH)/data -b
@echo [INFO] Create wm bin files
$(CPRE) csky-elfabiv2-objcopy -O binary ./out/$(SOLUTOIN_NAME)/yoc.elf ./out/$(SOLUTOIN_NAME)/yoc.bin
$(CPRE) gcc ../../components/chip_w800/wmsdk/tools/w800/wm_tool.c -Wall -lpthread -O2 -o ./out/$(SOLUTOIN_NAME)/wm_tool
$(CPRE) ./out/$(SOLUTOIN_NAME)/wm_tool -b ./out/$(SOLUTOIN_NAME)/yoc.bin -fc 0 -it 1 -ih 81FA000 -ra 8012000 -ua 8132000 -nh 0 -un 0 -vs yoc-7.3.0
$(CPRE) cat ../../components/chip_w800/wmsdk/tools/w800/w800_secboot.img ./out/$(SOLUTOIN_NAME)/yoc.img > ./out/$(SOLUTOIN_NAME)/yoc.fls
$(CPRE) ./out/$(SOLUTOIN_NAME)/wm_tool -b ./out/$(SOLUTOIN_NAME)/yoc.img -fc 1 -it 1 -ih 81FA000 -ra 8012000 -ua 8132000 -nh 0 -un 0 -vs yoc-7.3.0
$(CPRE) mv ./out/$(SOLUTOIN_NAME)/yoc_gz.img ./out/$(SOLUTOIN_NAME)/yoc_ota.bin
@echo [INFO] Create fls file
$(CPRE) cp $(MK_GENERATED_IMGS_PATH)/data/boot boot.bin
$(CPRE) cp $(MK_GENERATED_IMGS_PATH)/data/prim prim.bin
$(CPRE) cp $(MK_GENERATED_IMGS_PATH)/data/imtb imtb.bin
$(CPRE) ./out/$(SOLUTOIN_NAME)/wm_tool -b boot.bin -fc 0 -it 512 -ih 8002000 -ra 8002400 -ua 8132000 -nh 81FA000 -un 0
$(CPRE) ./out/$(SOLUTOIN_NAME)/wm_tool -b prim.bin -fc 0 -it 1 -ih 81FA000 -ra 8012000 -ua 8132000 -nh 0 -un 0
$(CPRE) ./out/$(SOLUTOIN_NAME)/wm_tool -b imtb.bin -fc 0 -it 1 -ih 20047400 -ra 8010000 -ua 0 -nh 0 -un 0
$(CPRE) cat boot.img prim.img imtb.img > ./out/$(SOLUTOIN_NAME)/yoc_total.fls
$(CPRE) rm -f boot.bin prim.bin imtb.bin boot.img prim.img imtb.img
run:all
$(CPRE) ./out/$(SOLUTOIN_NAME)/wm_tool -c $(DL_PORT) -rs at -ds 2000000 -dl ./out/$(SOLUTOIN_NAME)/yoc.fls -sl str -ws 115200
.PHONY:flash
flash:
$(CPRE) product flash $(MK_GENERATED_IMGS_PATH)/images.zip -w prim -f script/w800_flash.elf
.PHONY:flashdata
flashdata:
$(CPRE) product flashbin ir_data.bin 0x8200000 -f script/w800_spiflash.elf
.PHONY:flashall
flashall:
$(CPRE) product flash $(MK_GENERATED_IMGS_PATH)/images.zip -a -f script/w800_flash.elf
sdk:
$(CPRE) yoc sdk
.PHONY:clean
clean:
$(CPRE) scons -c
$(CPRE) find . -name "*.[od]" -delete
$(CPRE) rm yoc_sdk yoc.* generated out -rf
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。