9x15 build tutorial
DESCRIPTION
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. - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: 9X15 build tutorial](https://reader033.vdocument.in/reader033/viewer/2022061518/568147a4550346895db4df4d/html5/thumbnails/1.jpg)
9X15 build tutorial
CNAndress Kuo
![Page 2: 9X15 build tutorial](https://reader033.vdocument.in/reader033/viewer/2022061518/568147a4550346895db4df4d/html5/thumbnails/2.jpg)
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?
![Page 3: 9X15 build tutorial](https://reader033.vdocument.in/reader033/viewer/2022061518/568147a4550346895db4df4d/html5/thumbnails/3.jpg)
How to setup power supply
• Working power voltage interval is 3.7v~4.2v.• Working power current is 1A.
![Page 4: 9X15 build tutorial](https://reader033.vdocument.in/reader033/viewer/2022061518/568147a4550346895db4df4d/html5/thumbnails/4.jpg)
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.
![Page 5: 9X15 build tutorial](https://reader033.vdocument.in/reader033/viewer/2022061518/568147a4550346895db4df4d/html5/thumbnails/5.jpg)
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.
![Page 6: 9X15 build tutorial](https://reader033.vdocument.in/reader033/viewer/2022061518/568147a4550346895db4df4d/html5/thumbnails/6.jpg)
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.
![Page 7: 9X15 build tutorial](https://reader033.vdocument.in/reader033/viewer/2022061518/568147a4550346895db4df4d/html5/thumbnails/7.jpg)
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.
![Page 8: 9X15 build tutorial](https://reader033.vdocument.in/reader033/viewer/2022061518/568147a4550346895db4df4d/html5/thumbnails/8.jpg)
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.
![Page 9: 9X15 build tutorial](https://reader033.vdocument.in/reader033/viewer/2022061518/568147a4550346895db4df4d/html5/thumbnails/9.jpg)
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”
![Page 10: 9X15 build tutorial](https://reader033.vdocument.in/reader033/viewer/2022061518/568147a4550346895db4df4d/html5/thumbnails/10.jpg)
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
![Page 11: 9X15 build tutorial](https://reader033.vdocument.in/reader033/viewer/2022061518/568147a4550346895db4df4d/html5/thumbnails/11.jpg)
Question?
![Page 12: 9X15 build tutorial](https://reader033.vdocument.in/reader033/viewer/2022061518/568147a4550346895db4df4d/html5/thumbnails/12.jpg)
D2 agenda-Building environment setup
• Tool installation• How to use build command• Question?
![Page 13: 9X15 build tutorial](https://reader033.vdocument.in/reader033/viewer/2022061518/568147a4550346895db4df4d/html5/thumbnails/13.jpg)
Tool installation
• Already provided by mail.
![Page 14: 9X15 build tutorial](https://reader033.vdocument.in/reader033/viewer/2022061518/568147a4550346895db4df4d/html5/thumbnails/14.jpg)
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.
![Page 15: 9X15 build tutorial](https://reader033.vdocument.in/reader033/viewer/2022061518/568147a4550346895db4df4d/html5/thumbnails/15.jpg)
Question?
![Page 16: 9X15 build tutorial](https://reader033.vdocument.in/reader033/viewer/2022061518/568147a4550346895db4df4d/html5/thumbnails/16.jpg)
D3 agenda-Tutorial to build the code
• For example to build the code• Question?
![Page 17: 9X15 build tutorial](https://reader033.vdocument.in/reader033/viewer/2022061518/568147a4550346895db4df4d/html5/thumbnails/17.jpg)
Example1. cd external2. mkdir helloworld3. cd helloworld4. Put your source code under the folder, you can refer to attached example “helloworld.c” for practice.5. touch chksum6. md5sum chksumit should generate a checksum as below, you need the value in step9.
![Page 18: 9X15 build tutorial](https://reader033.vdocument.in/reader033/viewer/2022061518/568147a4550346895db4df4d/html5/thumbnails/18.jpg)
Example(cont.)
7. cd oe-core/meta-msm/recipes8. mkdir helloworld9. 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 .bb10. cd oe-core/build11. re-clean compile, running below cmd.12. bitbake -cf clean helloworld13. bitbake -cf compile helloworld bitbake -cf install helloworld
![Page 19: 9X15 build tutorial](https://reader033.vdocument.in/reader033/viewer/2022061518/568147a4550346895db4df4d/html5/thumbnails/19.jpg)
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$
![Page 20: 9X15 build tutorial](https://reader033.vdocument.in/reader033/viewer/2022061518/568147a4550346895db4df4d/html5/thumbnails/20.jpg)
Question?
![Page 21: 9X15 build tutorial](https://reader033.vdocument.in/reader033/viewer/2022061518/568147a4550346895db4df4d/html5/thumbnails/21.jpg)
D4 agenda-Hands-on session
• Build an application and run it on the target.• How to debug your application.• Question?
![Page 22: 9X15 build tutorial](https://reader033.vdocument.in/reader033/viewer/2022061518/568147a4550346895db4df4d/html5/thumbnails/22.jpg)
Build an application and run it on the target.
• Demo
![Page 23: 9X15 build tutorial](https://reader033.vdocument.in/reader033/viewer/2022061518/568147a4550346895db4df4d/html5/thumbnails/23.jpg)
Question?