This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello,
I would like to modify the file makefile_linux_arm.mak to do the same steps as "make linux_fs_install_sd" but installing the filesystem on a mounted filesystem over ssh directly from the evm.
I was not able to do this task. Could you please provide some help? Thanks a lot
Hi Mariem,
If you intend to have the rootfs in the NFS then you can use 'make linux_fs_install_nfs'. If you are using the file system on SD/eMMC then i recommend using make linux_fs_install_sd. Do you want to avoid inserting/removing SD card? Where is your file system hosted?
- Keerthy
Hello Keerthy,
Thank you for your response.
The board is hosted in a server and I am accessing it via ssh. I would like to copy the generated binaries over the network (via ssh/scp or sshfs). I tried to copy them using scp but the inference did not work correctly, I think I am doing it wrong.
I worked previously with make linux_fs_install_sd when I was using the board locally, but when moving the board to the server, I encountered problems when trying to perform the same task on the server via SSH. Can I have some support ? Is there any solution that can be suggested?
Thanks a lot,
Mariem
Hi Mariem,
Can you share the commands/changes you used to copy?
You can use scp command from your Linux machine to the Board to copy from a remote machine to the board.
- Keerthy
Hi Keerthy,
First, I use the command linux_fs_install_sd_temp, it does the steps as linux_fs_install_sd but it copies the files in local directories:
ROOT_PATH ?= /ti_sdk/rootfs
BOOT_PATH ?= /ti_sdk/BOOT
linux_fs_install_sd_temp: linux_fs_install
$(call CLEAN_COPY_FROM_STAGE,$(ROOT_PATH))
ifneq ($(HS),1)
cp -rf $(LINUX_BOOTFS_STAGE_PATH)/* $(BOOT_PATH)/
endif
$(call MODIFY_FS,$(ROOT_PATH),$(BOOT_PATH))
ifeq ($(BUILD_CPU_MCU1_0),yes)
ifeq ($(BUILD_TARGET_MODE),yes)
$(call UBOOT_INSTALL,linux,$(BOOT_PATH))
endif
endif
sync
Then, I copy the generated files to the board using the following commands. I used these commands in order to be able to update the files that already exist in the SD card, because when copying with just scp -r, the files that exist in the board are not updated.
find /ti_sdk/rootfs/lib/firmware/ -type f -exec scp {} root@$(ip_address):/lib/firmware/ \;
find /ti_sdk/rootfs/opt/vision_apps/ -type f -exec scp {} root@$(ip_address):/opt/vision_apps \;
find /ti_sdk/rootfs/opt/vx_app_arm_remote_log.out -type f -exec scp {} root@$(ip_address):/opt/ \;
find /ti_sdk/rootfs/etc/security/ -type f -exec scp {} root@$(ip_address):/etc/security/ \;
find /ti_sdk/rootfs/usr/lib/ -type f -exec scp {} root@$(ip_address):/usr/lib/ \;
Hi,
So can you make sure that scp command is working? Basically the host PC able to copy files from PC to the target board's SD card?
Best Regards,
Keerthy
Hello Keerthy,
Yes the scp command is working and the files are updated in the SD card. However, I am getting an error when running the inference:
VX_ZONE_ERROR:[ownReleaseReferenceInt:297] Invalid reference error. But when do the same steps locally (not in the server) the inference works well.
Could you please confirm that the files that I am copying are the right files to copy? Isn't there missing files to copy ?
Hi Mariem,
Typically we even need to copy the modules. /lib/modules/
Can you try to copy that as well?
- Keerthy
Hello Keerthy,
In the /tmp/tivision_apps_targetfs_stage/ I can find only /lib/firmware. there is no repo called /lib/modules/
Hi,
VX_ZONE_ERROR:[ownReleaseReferenceInt:297] Invalid reference error. But when do the same steps locally (not in the server) the inference works well.
Could you please confirm that the files that I am copying are the right files to copy? Isn't there missing files to copy ?
Please share the full logs when this error happens.
- Keerthy
Hello Keerthy,
I have successfully ran the inference :) There was one difference between the codes (the one locally and the one in the server) that is why I was getting the error [ownReleaseReferenceInt:297] . When both are identical, the inference worked successfully when I just copied the /opt/vision_apps binaries using scp -r.
Thanks