ruggedBOARD
Tutorial Using Python
Tutorial Using Python
  • Overview
  • Quick Start with RB
    • Pre-Requisite
      • Required Hardware and Software Components
      • Host Setup
      • Linux Commands
    • Power Up your RB
    • Fiddle with RB Command-line
  • Lib-Mraa & UPM Sensor Libraries (Python)
    • First Python Program
    • Know Your Libraries
      • LibMRAA
        • Python Programming using MRAA (SPI)
        • Python Programming using MRAA (PWM)
        • Python Programming using MRAA (gpio_blink)
        • Python Programming using MRAA (Aio)
      • LibUPM
    • Example Programs for Sensors
      • Procedure to interface phyNODE with RB
      • Accelerometer
      • Temperature Sensor
      • Pressure Sensor
      • Humidity Sensor
      • Magnetometer
      • PIR Sensor
      • Ultrasonic Sensor
      • Gas Sensor (MQ5)
    • mikroBUS UPM Sensor
    • Example programs for Communication Protocols
      • GPIO
      • I2C
      • UART
  • Hello World in C language
    • Setting up Environment
    • Transferring Files from Host to Board
    • Write your first C program
  • IoT Implementation
    • What is IoT?
    • IoT Protocols
    • MQTT Setup
  • Peripherals Functionality Testing using C Language
    • Interfaces
      • GPIO(General purpose Input/Output):
      • UART(Universal Asynchronous Receiver-Transmitter)
      • RS232
      • RS485
      • CAN
      • MikroBUS
      • mPCIe
  • Advance RB
    • Preparing SD card in case of OS failure
Powered by GitBook
On this page

Was this helpful?

  1. Hello World in C language

Transferring Files from Host to Board

PreviousSetting up EnvironmentNextWrite your first C program

Last updated 6 years ago

Was this helpful?

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.

TFTP
To check the server address.
test.txt file transferred to the board