# Step 2 - Bring up Ultra96v2

## Step 2-1 : Insert SD card and power on Ultra96v2 board

ในขั้นตอนนี้เราจะนำ sdcard ที่ทำได้จากในขั้นตอนที่แล้ว มาทำการใช้งานเพื่อทำการเปิดระบบตัว VAM box ที่มีบอร์ด Ultra96 V2 อยู่ในนั้น ซึ่งในการทดลองนี้เราจะเน้นไปที่การใช้งานบอร์ด Ultra96v2&#x20;

1. แกะกล่อง VAMbox โดยแกะน็อต 8 ตัวดังนี้ ฝั่งละ 4 จุดดังภาพ

<figure><img src="/files/bcJw8YgyRhgn6PZda0Ln" alt=""><figcaption><p>ถอดน็อตออกจากกล่อง</p></figcaption></figure>

2. หลังจากแกะกล่อง VAMbox เสร็จเราจะถอด sdcar reader ออกจากเครื่องคอมพิวเตอร์แล้วนำเฉพาะตัว sd card ออกมาเพื่อใส่ไปในบอร์ด Ultra96v2 ใน VAM box

<figure><img src="/files/UfnjiAIce9Me23rUwiDy" alt=""><figcaption><p>VAMBox</p></figcaption></figure>

<div><figure><img src="/files/obQhdpk7wMB0aHF7ksJG" alt=""><figcaption><p>ใส่ SD card ลงในสล็อต</p></figcaption></figure> <figure><img src="/files/DUUBoNGWzlu3zefbnhjH" alt=""><figcaption><p>ดันแล้วกดเข้าไปให้ดังกริ้ก ไม่ต้องกดแรง</p></figcaption></figure></div>

3. ทำการเชื่อมต่อหน้าจอและเม้าส์คีย์บอร์ดเข้ากับบอร์ดทดสอบ

<div><figure><img src="/files/aBkFyggDMIASsJQRLYd2" alt=""><figcaption><p>เสียบสาย Display port</p></figcaption></figure> <figure><img src="/files/h1NbNdvJ530ffEEfFdXS" alt=""><figcaption><p>เสียบสายคีย์บอร์ดและเม้าส์</p></figcaption></figure></div>

4. เสียบสายไฟทำการกดปุ่มเปิดสวิตชที่ด้านหน้าแล้วรอสักพัก

<div align="center"><figure><img src="/files/9QNx4TWKKWXOTV6spq0v" alt=""><figcaption><p>เสียบสายไฟ</p></figcaption></figure> <figure><img src="/files/553voT9M8Cr8VfcFHvLU" alt=""><figcaption><p>กดเปิดสวิตช</p></figcaption></figure></div>

## Step 2-2 : Connect Wifi to Ultra96v2

&#x20;5\. ทำการเชื่อมต่อ Wifi กับบอร์ดทดสอบ

&#x20;          5.1 เปิดหน้า Terminal เพื่อเตรียมใช้คำสั่งต่อ Wifi

<figure><img src="/files/BsXSNgEw0RBMwUWAj1H6" alt=""><figcaption><p>หน้าจอที่ขึ้นหลังเปิดเครื่อง</p></figcaption></figure>

&#x20;          5.2 ทำการใส่คำสั่งลงในหน้าต่าง terminal แล้วกด Enter เพื่อส่งคำสั่ง

{% code title="Terminal" overflow="wrap" %}

```bash
$ vim wpa_supplicant.conf
```

{% endcode %}

* จะเห็นหน้าต่างการใช้งาน Vim ดังภาพด้านล่าง ให้นิสิตทำการแก้ไขเพื่อเชื่อมต่อสัญญาณ Wifi ดังต่อไปนี้
  * ทำการ share hotspot จากโทรศัพธ์ของตนเองเพื่อทำการแชร์สัญญาณ Wifi
  * แก้ไข ssid ภายใต้เครื่องหมาย “your wifi’s name”
  * แก้ไข psk ภายใต้เครื่องหมาย “your wifi’s password”

<figure><img src="/files/6UUrDvJQv0pMzudieyi8" alt=""><figcaption><p>เปลี่ยนรหัสไวไฟในกรอบตามรูป</p></figcaption></figure>

&#x20;           5.3 หลังจากทำการแก้ไขให้ทำการเขียนทับไฟล์และออกจากไฟล์ wpa\_supplicant.conf โดยกดปุ่ม Esc ที่คีย์บอร์ดแล้วพิมคำสั่งด้านล่างแล้วจึงกด Enter

{% code title="Terminal inside vim" %}

```vim
# กดปุ่ม Esc แล้วพิมคำสั่งข้างล่าง
:wq! 
```

{% endcode %}

6. ทำการรัน script เชื่อมต่อ wifi และรอจนขึ้น Adding DNS server เรียบร้อย

{% code title="Terminal" %}

```bash
# ทำการ run script เชื่อมต่อ WiFi 
$ ./wifi
```

{% endcode %}

<figure><img src="/files/HyU12pWVjmYvXdaFgPMv" alt=""><figcaption><p>เชื่อมต่อสำเร็จจะเป็นดังภาพ</p></figcaption></figure>

7. ทำการตรวจสอบ IP ของบอร์ดทดสอบเพื่อเตรียมทำการเชื่อมต่อที่เครื่องของเรา แล้วจดเลข IP ในกระดาษและเอกสารบันทึกการทดลอง

{% code title="Terminal" %}

```bash
# ทำการตรวจสอบ IP ที่เชื่อมต่อ WiFi 
$ ifconfig
```

{% endcode %}

### Step 2-3 : Connect SSH to Ultra96v2

8. ทำการเชื่อมต่อ Wifi ที่แชร์ Hotspot กับเครื่องของเรา
9. เปิด WSL(Ubuntu) แล้วพิมคำสั่งด้านล่าง

{% code title="Terminal" %}

```bash
$ ssh root@[IPV4]
# ให้ใช้ [IPv4] ที่เจอจากตัวอย่างคือ 192.168.1.11 ซึ่งจะแตกต่างไปแต่ละกลุ่มทดลอง 
# แต่ละกลุ่มทดลองจะมี IP ไม่เหมือนกัน โดยหลังจากพิมคำสั่งดังรูป
# 1. ตอบว่า yes 
# 2. ตอบว่า root เวลาพิมจะไม่ขึ้นตัวหนังสือไม่ต้องตกใจ เป็น Privacy ของ Linux
```

{% endcode %}

ถ้าขึ้นหน้าต่างดังรูปก็จะจบในขั้นที่ Step ที่ 2 แล้วครับ อีกนิดเดียวจะจบแล้วว !!!!


---

# 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://docs.aic-eec.com/fpga-design/c-c++-programming-on-ultra96v2-fpga-board/application-c-c++-on-ultra96v2-part-1/step-2-bring-up-ultra96v2.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.
