Transferring Files from Host to Board

To setup TFTP server on HOST PC

Step 1: Open a Terminal window on your PC and navigate to the scripts folder. This folder contains 3 files: elinux_pkg.sh, if_machine_is_64-bit.sh, tftp-script.sh.

Step 2: If you are running 64 bit machine, run if_machine_is_64-bit.sh. NOTE: You can ignore this step or else.

Step 3: Run the elinux_pkg.sh, tftp-script.sh.

Step 4: Check if tftpboot folder has been created in /var/lib/ directory, The box highlighted in green shows that tftpboot folder has been created in /var/lib/ directory.

Step 5: Connect an ethernet cable to the board and type ifconfig on your PC and note down your server address. Highlighted white text shows server address in my case.

Step 6: Create and copy a test file(Ex: test.txt) to tftpboot folder. Create a file named test.txttouch test.txtcopy it to /var/lib/tftpboot cp test.txt /var/lib/tftpboot.

Step 7: Switch to your board's terminal and type in tftp -r test.txt -g 192.168.1.12.

Step 8: Now you should be able to see the file on your board.

Last updated