Jieli-Tech / fw-AC63_BT_SDK

Firmware for Generic Bluetooth SDK(AC63 series), Support AC631N/AC635N/AC636N/AC637N/AC632N, compatible with AC69 series without audio support.
Apache License 2.0
173 stars 99 forks source link

Failed to build under Linux: "/opt/utils/strip-ini" and "host-client" not found #167

Open pandysong opened 2 years ago

pandysong commented 2 years ago

Describe the bug

Building in Linux failed with message "/opt/utils/strip-ini" and "host-client" not found.

To Reproduce Steps to reproduce the behavior:

diff --git a/apps/hid/board/bd19/Makefile b/apps/hid/board/bd19/Makefile
index e6749a7..18d24fb 100644
--- a/apps/hid/board/bd19/Makefile
+++ b/apps/hid/board/bd19/Makefile
@@ -361,7 +361,7 @@ LINK_AT ?= 1

 all: pre_build $(OUT_ELF)
        $(info +POST-BUILD)
-       $(QUITE) $(RUN_POST_SCRIPT) sdk
+       $(QUITE) $(RUN_POST_SCRIPT) ../../../../cpu/bd19/tools/sdk

 pre_build:
        $(info +PRE-BUILD)
diff --git a/cpu/bd19/tools/download.c b/cpu/bd19/tools/download.c
index bf6bd21..00ee8d8 100644
--- a/cpu/bd19/tools/download.c
+++ b/cpu/bd19/tools/download.c
@@ -5,6 +5,12 @@

 ##!/bin/sh

+export OBJDUMP=/opt/jieli/pi32/bin/objdump
+export OBJSIZEDUMP=/opt/jieli/pi32/bin/objsizedump
+export OBJCOPY=/opt/jieli/pi32/bin/objcopy

 ${OBJDUMP} -D -address-mask=0x1ffffff -print-dbg $1.elf > $1.lst
 ${OBJCOPY} -O binary -j .text $1.elf text.bin
 ${OBJCOPY} -O binary -j .data $1.elf data.bin
@@ -26,7 +32,7 @@ do
     bank_files=$bank_files"bank$i.bin 0x0 "
 done
 echo $bank_files
-lz4_packet -dict text.bin -input common.bin 0 $bank_files -o bank.bin
+../../../../cpu/bd19/tools/lz4_packet -dict text.bin -input common.bin 0 $bank_files -o bank.bin

 ${OBJDUMP} -section-headers -address-mask=0x1ffffff $1.elf
 ${OBJSIZEDUMP} -lite -skip-zero -enable-dbg-info $1.elf | sort -k 1 > symbol_tbl.txt

It fails with following messages:

../../../../cpu/bd19/tools/download.sh: 行 77: /opt/utils/strip-ini: 没有那个文件或目录
../../../../cpu/bd19/tools/download.sh: 行 83: host-client: 未找到命令
Makefile:363: recipe for target 'all' failed
make[1]: *** [all] Error 127
make[1]: Leaving directory '/home/pandy/temp/fw-AC63_BT_SDK/apps/hid/board/bd19'
Makefile:37: recipe for target 'ac632n_hid' failed
make: *** [ac632n_hid] Error 2

Expected behavior

compile, link and post-processing succeeds.

JL-MinXian commented 1 year ago

1、参考这个:https://doc.zh-jieli.com/Tools/zh-cn/dev_tools/dev_env/index.html#linux 2、linux 下后处理脚本需要参考 windows的 download.bat 来改。strip-ini, host-client是不需要的。 3、下载目标板子的程序,还是需要在window的环境下载;linux不支持.