# Setup the build environment for Ameba SDK ###### tags: `Realtek` `Ameba` Ameba SDK Github: [https://github.com/ambiot/ambd_sdk](https://github.com/ambiot/ambd_sdk) ## Linux - #### Install library packages > libc6-i386 > lib32ncurses5 > make > bc > gawk > ncurses ## Windows - #### Download **Cygwin 2.912-x86 32-bit** from: **[https://cygwin.com/setup/setup-2.912.x86.exe](https://cygwin.com/setup/setup-2.912.x86.exe)** **==!!! Don’t download the latest version of Cygwin from official website. !!!==** <p style="text-align: center"><img src="https://hackmd.io/_uploads/r1Z9CFWSa.png"></p> - #### Install Cygwin via Windows Command Prompt 1. Press **“Windows”+”R”** to open the launch window. 2. Type **“cmd”** to run the Windows Prompt application. 3. Type the below command to install Cygwin ``` setup-2.912.x86.exe --allow-unsupported-windows --site http://ctm.crouchingtigerhiddenfruitbat.org/pub/cygwin/circa/2022/11/23/063457 ``` <p style="text-align: center"><img src="https://hackmd.io/_uploads/HJtUWcbB6.png"></p> 4. Check the installing version before press "Next" <p style="text-align: center"><img src="https://hackmd.io/_uploads/r1kY-5WH6.png"></p> 5. Select "Install from Internet" <p style="text-align: center"><img src="https://hackmd.io/_uploads/Bkxlmq-Bp.png"></p> 6. Normally, it will be installed in C:\cygwin path. <p style="text-align: center"><img src="https://hackmd.io/_uploads/BkSd75-HT.png"></p> 7. Press “Next” to continue the installation process. 8. Don’t care the claims message. <p style="text-align: center"><img src="https://hackmd.io/_uploads/SkecQ9-H6.png"></p> 9. Install Cygwin with ‘make’ and ‘bc’ packages. - Devel -> make <p style="text-align: center"><img src="https://hackmd.io/_uploads/HJb9VcbS6.png"></p> - Devel -> cmake <p style="text-align: center"><img src="https://hackmd.io/_uploads/HJ2TE9bS6.png"></p> - Devel -> gcc-g++ <p style="text-align: center"><img src="https://hackmd.io/_uploads/Sk2ANcbS6.png"></p> - Math -> bc <p style="text-align: center"><img src="https://hackmd.io/_uploads/S1YbB9bH6.png"></p> - Python -> python3 <p style="text-align: center"><img src="https://hackmd.io/_uploads/S1YMBqWrp.png"></p> - Python -> python3-devel <p style="text-align: center"><img src="https://hackmd.io/_uploads/SJU7SqWS6.png"></p> - Archive -> unzip <p style="text-align: center"><img src="https://hackmd.io/_uploads/HkxNr5bBa.png"></p> - Net -> wget <p style="text-align: center"><img src="https://hackmd.io/_uploads/HJRiCf7H6.png"></p> 10. Press “Next” to start the installation. <p style="text-align: center"><img src="https://hackmd.io/_uploads/BkZD85-r6.png"></p> ## Build images > cd /cygdrive/{path}/project/realtek_amebaD_va0_example/GCC-RELEASE/project_lp > cd /cygdrive/{path}/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp ``` make clean make all ``` ## Get built images > cd /cygdrive/{path}/project/realtek_amebaD_va0_example/GCC-RELEASE/project_lp/asdk/image ``` km0_boot_all.bin ``` > cd /cygdrive/{path}/project/realtek_amebaD_va0_example/GCC-RELEASE/project_hp/asdk/image ``` km4_boot_all.bin km0_km4_image2.bin ``` ## Flash images - Launch **“ImageTool_v2.5.2”** - Chip Select: **AmebaD(8721D)** <p style="text-align: center"><img src="https://hackmd.io/_uploads/By7mD3ZHa.png"></p> - Baudrate: **1500000** <p style="text-align: center"><img src="https://hackmd.io/_uploads/HkM4w2ZBT.png"></p> - Addr: **0x08000000** ; Size: **4096** <p style="text-align: center"><img src="https://hackmd.io/_uploads/rJo4P3-Ba.png"></p> - File images & Address <p style="text-align: center"><img src="https://hackmd.io/_uploads/B1GfthWr6.png"></p>
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up