Closed RomanLuchyshyn closed 1 year ago
I encountered this problem too under Ubuntu 18.04. I have tried Ubuntu 20.04 and 22.04 but the error still exists.
Hi @RomanLuchyshyn and @Orionxer ,
The root cause is indicated in the log: ../project_lp/asdk/gnu_utility/gnu_script/acut_loader/*': No such file or directory
, which means the folder acut_loader
is currently empty for makefile to process further.
The bug has been fixed here. Please test and verify the results.
Thank you.
Hi @S10143806H , Fixed in *_lp project but still exists in _hp project.
Other bug: realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/gnu_utility/prepend_ota_header.sh: line 118: ./checksum: Permission denied checksum is not executable nut must be.
Hi @RomanLuchyshyn, Seems like my method is not the final fix. You can temporarily apply the same change on your /hp folder.
For the permission denied error, please refer to the readme:
| Please run the following command to grant the execution permission for all corresponding files:
| chmod -R 777 {path}/project/realtek_amebaD_va0_example/GCC-RELEASE/
Hi @S10143806H , Yes, I know it have fixed it. But from side proper permissions should be fixed in the repo but not by user. I have already fixed a lot of such small bugs. It's too complicated fix permissions for each build. Everything has to work from box.
The next issue that I've just found is:
make flash
...
Load flash loader.
/home/
There is SetupGDB_FPGA.sh instead of target_FPGA.axf
Hi @RomanLuchyshyn,
I did not encounter your newly mentioned issue.
Upon
cd
to \lp
folder and make all
, the makefile direct to the \asdk
folder and execute the commands below.
make bootloader
make copy_flashloader
Then execute make flash
again, and you will find the target_FPGA.axf
.
And if you are currently struggling to upload image from Linux system, you can try the methods here before our final bug fix.
Hi @RomanLuchyshyn,
Please refer to the final bug fix in the commit: https://github.com/ambiot/ambd_sdk/commit/be744260b9230cf01eafcc741d0bd4504cf8c59e.
I have added the necessary configuration files for make flash
in both \lp
and \hp
, and verified on Windows and Linux OS.
Please update again upon test and verification.
Thanks.
Breakpoint 1, RtlFlashProgram () at /cygdrive/c/Work/SDKs/Git_SDKs/sdk_6.2/project/realtek_amebaD_va0_example/GCC-RELEASE/project_lp/asdk/flashloader/rtl_flash_download.c:88 88 in /cygdrive/c/Work/SDKs/Git_SDKs/sdk_6.2/project/realtek_amebaD_va0_example/GCC-RELEASE/project_lp/asdk/flashloader/rtl_flash_download.c dump for check
Breakpoint 2, RtlFlashProgram () at /cygdrive/c/Work/SDKs/Git_SDKs/sdk_6.2/project/realtek_amebaD_va0_example/GCC-RELEASE/project_lp/asdk/flashloader/rtl_flash_download.c:120 120 in /cygdrive/c/Work/SDKs/Git_SDKs/sdk_6.2/project/realtek_amebaD_va0_example/GCC-RELEASE/project_lp/asdk/flashloader/rtl_flash_download.c
make debug
make -C asdk debug
make[1]: Entering directory '/home/
Hi @RomanLuchyshyn, Great! I will proceed to close the issue. Thank you.
OS Linux (Ubuntu 20)
When I run make flash it fails with next output:
make flash make -C asdk gdb make[1]: Entering directory '/home//ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_lp/asdk'
cp /home//ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_lp/asdk/gnu_utility/gnu_script/acut_loader/ /home/ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_lp/asdk/gnu_utility/gnu_script/
cp: cannot stat '/home//ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_lp/asdk/gnu_utility/gnu_script/acut_loader/ ': No such file or directory
make[1]: *** [Makefile:311: gdb] Error 1
make[1]: Leaving directory '/home//ambd_sdk/project/realtek_amebaD_va0_example/GCC-RELEASE/project_lp/asdk'