1 / 23

9X15 build tutorial

9X15 build tutorial. CN Andress Kuo. D1 agenda-Board/tool setup. How to setup power supply How to setup cable cable connected How to setup ADB USB connected How to download built image to the target Question?. How to setup power supply. Working power voltage interval is 3.7v~4.2v.

archer
Download Presentation

9X15 build tutorial

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 9X15 build tutorial CN Andress Kuo

  2. D1 agenda-Board/tool setup • How to setup power supply • How to setup cable cable connected • How to setup ADB USB connected • How to download built image to the target • Question?

  3. How to setup power supply • Working power voltage interval is 3.7v~4.2v. • Working power current is 1A.

  4. How to setup cable cable connected • 1. plug in debug cable on PC. • 2. Install USB to UART debug cable driver, The driver is under the folder with namely DebugCable_driver.zip, please unzip it.

  5. How to setup ADB USB connected(1/2) • boot device up. • Plug in USB on PC, and connect to device. • install usb driver when it prompt to ask installing usb driver, The driver is under the folder with namely QDP_USB_HOST_DRIVER.zip, please unzip it. • After above steps done, Check ADB is avaiable no not.

  6. How to setup ADB USB connected(2/2) • Unzip adb tool folder, The adb tool is under the folder with namely adb_fastboot_tool.zip. • Launch cmd windows, and path to adb tool folder. • Enter “adb shell” as below screenshot, it means that adb driver was installed successfully and adb tool is avaiable.

  7. How to download built image to the target • Plug in debug cable on PC. • Open a hybrid terminal window and choose a COM port available. if your laptop is win7 system, you should install 3’rd hybrid terminal first, Because Microsoft is not long support hybrid terminal on win7. • Boot device up. • Keep pressing “space” key on hybrid terminal until below message occurred.

  8. How to download built image to the target(cont.) • Connect to device by USB. • Installing fastboot driver when it prompts to ask driver location. • Path to fastboot driver, it is under QDP_USB_HOST_DRIVER folder. • After fastboot driver install successfully, you will see the driver is ready on device manager as below.

  9. How to download built image to the target(cont.) • Copy image which you want to update to fastboot tool foler, it is under adb_fastboot_tool foder. • For example: update system image cmd as fastboot flash system “msm-9615-cdp-image- ipk-9615-cdp.rootfs.yaffs2”

  10. How to download built image to the target(cont.) • For example: update userdata image cmd as fastboot flash userdata 9615-cdp-usr-image.usrfs.yaffs2

  11. Question?

  12. D2 agenda-Building environment setup • Tool installation • How to use build command • Question?

  13. Tool installation • Already provided by mail.

  14. How to use build command • Copy 2020.tar.gz into your build environment. • Unzip the package as below cmd, tar –xvf 2020.tar.gz • Need to clean build kernel first for generating related tool chain as below cmd: cd 2020/oe-core source build/conf/set_bb_env.sh Build9615 • you can start to use bitbake to build your code, we will have example at next course.

  15. Question?

  16. D3 agenda-Tutorial to build the code • For example to build the code • Question?

  17. Example 1. cd external 2. mkdir helloworld 3. cd helloworld 4. Put your source code under the folder, you can refer to attached example “helloworld.c” for practice. 5. touch chksum 6. md5sum chksum it should generate a checksum as below, you need the value in step9.

  18. Example(cont.) 7. cd oe-core/meta-msm/recipes 8. mkdir helloworld 9. make a .bb file, you can refer to attached helloworld_1.0.0.bb, and add checksum value of step6 into the .bb, you can refer to line5 on the .bb 10. cd oe-core/build 11. re-clean compile, running below cmd. 12. bitbake -cf clean helloworld 13. bitbake -cf compile helloworld bitbake -cf install helloworld

  19. Example(cont.) 14. Tool will be generated on below patch. /2020/oe-core/build/tmp-eglibc/work/armv7a-vfp-neon-oe-linux-gnueabi/helloworld-1.0.0-r0/helloworld/helloworld$

  20. Question?

  21. D4 agenda-Hands-on session • Build an application and run it on the target. • How to debug your application. • Question?

  22. Build an application and run it on the target. • Demo

  23. Question?

More Related