Closed gingerologist closed 2 years ago
Dear @gingerologist,
Firstly, I am unable to reproduce your issue. May I know which version of SDK you are currently using?
Secondly, may I know what is the intention for you to use make mp
? Since mp
= mass product, which is for the company to generate a batch of products.
If you wish to have this feature in your SDK, feel free to check this page: How to get features not included in the open-source SDKs? How to get NDA (internal) SDK?.
Thanks
Sorry that I didn't clarify my build environment. I work on Ubuntu LTS 20.04. Linux Environment. Several problems are encountered.
First, there is no script to assign all .sh files executable permissions. Second, several python scripts contains carriage return, and I replaced some of them with newline using sed. Then I encountered the problem described here.
I followed the instruction in AN0400. The first step, make all
in lp folder worked after I fixed the shell script executable permission problem. The second
step, make all
in hp folder also worked with similar permission fix. But the third step, make mp
does not work. Also, I am not sure whether this step is necessary or not, since it is only mentioned in AN0400, but not mentioned in other online docs. Correct me if I am wrong.
Furthermore, you don't need to repeat the exact problem. Could you give some advice what is the possible reason according to log output? It looks like a linker problem. Also it seems something is missing. But I totally has no idea what is missing, is it some header file auto generated? and which script file is responsible to generate those files? Shed me some light, thanks.
I am sure that I installed all dependencies mentioned in AN0400 document. Most of them are exactly the same, except one. The libncurses on my Ubuntu box is version 6, not 5. But I don't think it is related with the problem discussed here.
I git reset --hard
the repository. Using git add --renormalize .
to deal with all line endings. Then chmod a+x
all .sh
and .py
files. After that make all
in lp folder works. make all
in hp folder also works. Finally make mp
failed again. This time I noticed an error message right before ========= linker img2_ns start =========
banner.
Here is the log:
(omitted)
....
echo "=============================================================" \
>> /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/ram_size.txt;\
/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../toolchain/linux/asdk-6.4.1/linux/newlib/bin/arm-none-eabi-size -t main.o >> /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/ram_size.txt;\
for i in main.o ; do \
echo $i >> /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/obj_list.txt;\
cp -f $i /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/build/ram;\
done \
make[5]: Leaving directory '/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/src/src_hp'
make[4]: Leaving directory '/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/make/project/src'
make[3]: Leaving directory '/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/make/project'
make[3]: Entering directory '/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/make/application'
make[4]: Entering directory '/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/make/application/xmodem'
echo "=============================================================" \
>> /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/ram_size.txt;\
/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/../toolchain/linux/asdk-6.4.1/linux/newlib/bin/arm-none-eabi-size -t xmodem.o uart_fw_update.o >> /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/ram_size.txt;\
for i in xmodem.o uart_fw_update.o ; do \
echo $i >> /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/obj_list.txt;\
cp -f $i /data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/build/ram;\
done \
make[4]: Leaving directory '/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/make/application/xmodem'
#@make -C azure all
#@make -C azure_emb all
#@make -C airkiss all
make[3]: Leaving directory '/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/make/application'
#@make -C cmsis-dsp all
make[2]: Leaving directory '/data/repo/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/make'
/usr/bin/env: ‘python\r’: No such file or directory
========= linker img2_ns start =========
....
(omitted)
Any clue what is the possible cause of the error?
/usr/bin/env: ‘python\r’: No such file or directory
this error could be removed if I convert all line endings to unix style using sed or dos2unix. But the linker error discussed here remained.
Dear @gingerologist,
Firstly, I am unable to reproduce your issue. May I know which version of SDK you are currently using?
Secondly, may I know what is the intention for you to use
make mp
? Sincemp
= mass product, which is for the company to generate a batch of products.If you wish to have this feature in your SDK, feel free to check this page: How to get features not included in the open-source SDKs? How to get NDA (internal) SDK?.
Thanks
I just followed the instruction in AN0400. I totally have no idea whether make mp
is mandatory or optional.
Dear @gingerologist,
Firstly, I am unable to reproduce your issue. May I know which version of SDK you are currently using?
Secondly, may I know what is the intention for you to use
make mp
? Sincemp
= mass product, which is for the company to generate a batch of products.If you wish to have this feature in your SDK, feel free to check this page: How to get features not included in the open-source SDKs? How to get NDA (internal) SDK?.
Thanks
I just cloned this repository and followed the instructions in AN0400.
Sorry that I didn't clarify my build environment. I work on Ubuntu LTS 20.04. Linux Environment. Several problems are encountered.
Hi, thanks for providing the information. Please specify which version of SDK you are using now?
For the dev
branch, the current SDK is still pending QC and it's in the development phase. Please check here if you wish to use a more stable version.
First, there is no script to assign all .sh files executable permissions. Second, several python scripts contains carriage return, and I replaced some of them with newline using sed. Then I encountered the problem described here.
For granting permission of the *.sh
files, please follow the Readme.md
in the screenshot:
I followed the instruction in AN0400. The first step,
make all
in lp folder worked after I fixed the shell script executable permission problem. Thesecond
step,make all
in hp folder also worked with similar permission fix. But the third step,make mp
does not work. Also, I am not sure whether this step is necessary or not, since it is only mentioned in AN0400, but not mentioned in other online docs. Correct me if I am wrong.
Please do understand that, in AN0400, the image you build can be categorized as either Normal Image
or MP Image
.
For personal users, just follow the instructions in 1.3.1 Normal Image
Furthermore, you don't need to repeat the exact problem. Could you give some advice what is the possible reason according to log output? It looks like a linker problem. Also it seems something is missing. But I totally has no idea what is missing, is it some header file auto generated? and which script file is responsible to generate those files? Shed me some light, thanks.
HI @gingerologist , As I said, if you wish to use the FULL FUNCTIONAL SDK, please proceed to check this page: How to get features not included in the open-source SDKs? How to get NDA (internal) SDK? and sign the NDA. Currently, ambd_sdk is for open-source users, therefore the function is not fully supported here.
Sorry that I didn't clarify my build environment. I work on Ubuntu LTS 20.04. Linux Environment. Several problems are encountered.
Hi, thanks for providing the information. Please specify which version of SDK you are using now?
For the
dev
branch, the current SDK is still pending QC and it's in the development phase. Please check here if you wish to use a more stable version.First, there is no script to assign all .sh files executable permissions. Second, several python scripts contains carriage return, and I replaced some of them with newline using sed. Then I encountered the problem described here.
For granting permission of the
*.sh
files, please follow theReadme.md
in the screenshot:I followed the instruction in AN0400. The first step,
make all
in lp folder worked after I fixed the shell script executable permission problem. Thesecond
step,make all
in hp folder also worked with similar permission fix. But the third step,make mp
does not work. Also, I am not sure whether this step is necessary or not, since it is only mentioned in AN0400, but not mentioned in other online docs. Correct me if I am wrong.Please do understand that, in AN0400, the image you build can be categorized as either
Normal Image
orMP Image
. For personal users, just follow the instructions in 1.3.1 Normal Image
Thank you very much for your patience. I am terribly sorry that I took it for granted the default branch of this repo is the release branch. I checked out the master
branch after a fresh git clone and did the following:
cd
into project_lpchmod a+x $(find . -name "*.sh")
make all
and it succeeded.cd
into project_mpchmod a+x $(find . -name "*.sh")
(this seems enough, no need to chmod a+x to all .py files)make all
and it succeeded either.make mp
in project_mp folder also succeeded.Thank you so much for your support. I will read the document carefully.
I successfully executed
make all
in lp and hp project folder, according to application note. Butmake mp
failed. I cannot figure out why.Any suggestions?