Once the board is on your network, copying files over SSH is usually the fastest workflow. If you can’t use WiFi, you can still move files with a USB drive. Create a test file to transfer.
echo "test" > test.txt
You’ll need the board’s IP address. On the board, run:
ifconfig | grep RUNNING -A 1
Look for the WiFi interface (often mlan0) and note the inet address.
On your host machine, copy a file to the board with scp by updating the IP address in the following command:
scp test.txt root@<ip-address>:/root/test.txt
If you haven’t used SSH with this board before, you might be prompted to accept the host key. That’s expected.
If WiFi isn’t available, copy your files onto a USB-A thumb drive on your development machine, then insert the drive into the board.
On the board, mount the drive and copy the file:
mount /dev/sda1 /mnt
cp /mnt/test.txt /root
If /dev/sda1 doesn’t exist, list block devices and use the partition that matches your USB drive:
lsblk
For example:
cp /mnt/test.txt ./
When you’re done, unmount the drive:
umount /mnt
You should now see the file in the root directory:
:~# ls /root
test.txt
Proceed to the final section to automate reconnecting to WiFi.