# Transferring Files from Host to Board

{% tabs %}
{% tab title="Linux Host" %}
**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.**

![TFTP](/files/-LeRWolgHV4GruFpZD43)

**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.**

![To check the server address.](/files/-LeRX_EE8SN-OoF7ocfR)

**Step 6: Create and copy a test file(Ex: test.txt) to tftpboot folder. Create a file named test.txt**`touch test.txt`**copy 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.**

![test.txt file transferred to the board](/files/-LeR_F-uVMmtunf8J3Xd)
{% endtab %}

{% tab title="Windows Host" %}

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ruggedboard.gitbook.io/ruggedboard/hello-world/transferring-files-from-host-to-board.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
