> For the complete documentation index, see [llms.txt](https://docs.aic-eec.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.aic-eec.com/fpga-design/c-c++-programming-on-ultra96v2-fpga-board/application-c-c++-on-ultra96v2-part-1/step-1-burn-the-image-to-sd-card.md).

# Step 1 - Burn the image to SD card

เริ่มต้นเราจามาทำการโหลดอิมเมจมาใส่ SDcard เพื่อใส่ Embedded board ถ้านิสิตมีสัญญาณอินเตอร์เน็ตที่เสถียรสามารถโหลดจากลิ้งด้านล่างได้เลย uz96v2\_sbc\_base : <http://avnet.me/avnet-u96v2_sbc_base-vitis-ai-1.4-image>*(2021-10-14 - MD5SUM = af763fa2d43cbef75bd93d0be173951f)* หลังจากติดตั้งแล้วเราจะเข้าสู้ขั้นตอนการเตรียม image บน SDcard

ไฟล์ที่ดาวน์โหลดมาจะถูกเรียกว่า image file โดยที่ image นี้ไม่ใช่รูปภาพแต่เป็นไฟล์ที่ใช้ในการทำการเปิดบอร์ดให้ทำงานได้ โดยภายในจะประกอบไปด้วย&#x20;

* Partition 1 : BOOT เป็นไฟล์ที่เก็บข้อมูลในการบูทบอร์ดเพื่อเริ่มต้นการทำงาน โดยจะมีไฟล์เกี่ยวกับ Hardware และโมดูลพิเศษ
* &#x20;Partition 2 : rootfs หรือ root file system เป็นที่ๆรวมไฟล์ข้อมูลการทำงานของ OS โดยจะมีไฟล์ package ต่างๆที่ทำงานร่วมกับโปรแกรมหรือโมดูล Hardware ที่เราออกแบบมาใช้งาน&#x20;

1. โดยหลังจากที่เราโหลดโปรแกรมมาเรียบร้อยเราจะทำการเสียบ SDcard ลงใน SDcard reader แล้วเสียบเข้ากับ Computer

<div><figure><img src="/files/QqSAF9V8SaHSEg3gsO2N" alt=""><figcaption><p>เสียบ SDcard reader เข้าที่เครื่อง Host computer</p></figcaption></figure> <figure><img src="/files/8DaYpfUeQogADYkzKT1g" alt=""><figcaption><p>SDcard reader</p></figcaption></figure></div>

2. ทำการดาวน์โหลดโปรแกรม [E](https://www.balena.io/etcher/)[tcher](https://www.balena.io/etcher/)&#x20;

<figure><img src="/files/7EdeNw3l20TVeMnLhrr6" alt=""><figcaption><p>โปรแกรม Etcher</p></figcaption></figure>

3. ทำการติดตั้งโปรแกรมที่ดาวน์โหลดไป กดยอมรับแล้วโปรแกรมจะติดตั้งอัตโนมัติ

<figure><img src="/files/k7H7jhMoiS12wi64Ly7j" alt=""><figcaption><p>หน้าต่างการติดตั้ง Etcher</p></figcaption></figure>

4. เมื่อดาวน์โหลดเสร็จจะขึ้นหน้าต่างดังรูป&#x20;

<figure><img src="/files/YQdFW4hT6ZpxtYCnb0zj" alt=""><figcaption><p>หน้าต่างโปรแกรม Etcher</p></figcaption></figure>

5. ให้ผู้ทดลองทำการแตกไฟล์ที่ดาวน์โหลดมา จากที่ให้ภายในห้อง AIC หรือดาวน์โหลดจากลิ้งข้างต้น&#x20;

<figure><img src="/files/WbFFiTkjxFcVhH5nCTaj" alt=""><figcaption><p>ไฟล์โปรแกรมที่ดาวน์โหลดมา</p></figcaption></figure>

6. หลังจากแตกไฟล์เสร็จจะได้ไฟล์ image ของบอร์ด Ultra96v2 มาใช้งานดังรูป

<figure><img src="/files/Hcq5xEPpdVUcnYeg201n" alt=""><figcaption><p>ไฟล์ที่ต้องการใช้หลังแตกไฟล์ออกมา</p></figcaption></figure>

7. กลับไปที่หน้าโปรแกรมเลือกไฟล์ image ที่แตกออกมา แล้วกดไปที่ Select target เพื่อเลือก sdcard ที่ต้องการ burn image ลงไป

<figure><img src="/files/tjFveKiXF3LVO1pOkBOI" alt=""><figcaption><p>เลือกไฟล์ที่หน้าโปรแกรม Etcher</p></figcaption></figure>

&#x20;

8. เลือกไปที่ไดรฟ์ของ SD card ที่พึ่งเสียบเข้าไป  แล้วกด select

{% hint style="danger" %}
**คำเตือน** ตรวจสอบไดรฟ์ที่เลือกให้ดี ถ้าเลือกผิดอาจทำให้ต้องลงวินโดว์ใหม่ หรือไฟล์งานสูญหายทางเราจะไม่รับผิดชอบ
{% endhint %}

<figure><img src="/files/BGapu3CCm9AWNPWoAVE5" alt=""><figcaption></figcaption></figure>

9. หลังจากนั้นกดที่ปุ่ม Flash จะขึ้นหน้าต่างดังกล่าวรอจนกว่าจะสำเร็จ

{% hint style="warning" %}
**คำเตือน** อย่ากดปิดจนกว่าจะสำเร็จ
{% endhint %}

<figure><img src="/files/rLInhXfKQnb95Y6wqJkM" alt=""><figcaption><p>กำลังโหลด image เข้าสู่ SDcard</p></figcaption></figure>

10. เมื่อสำเร็จแล้วจะขึ้นหน้าต่างดังรูป ให้ทำการปิดหน้าต่างโปรแกรม

<figure><img src="/files/Bv9giJLfzkjRYBZ5IHUc" alt=""><figcaption><p>เสร็จสิ้นการ burn image ลงบน SDcard</p></figcaption></figure>

11. เมื่อทำการ Flash image ของบอร์ดทดสอบเรียบร้อยให้ทำการดาวน์โหลด Point cloud 3D detection จากผู้สอน เพื่อนำมาใช้งานบนบอร์ด หลังจากดาวน์โหลดเสร็จให้ทำการโยนไฟล์ไปที่ sdcard โดยมี partition ชื่อว่า BOOT ดังรูป

<figure><img src="/files/JSsH8y5ObEwNLkUygOmU" alt=""><figcaption><p>ใส่ไฟล์ที่โหลดจาก thumb drive หรือ Google drive ไว้ใน SDcard</p></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` 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-1-burn-the-image-to-sd-card.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
