版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、2020/9/5,1,dragonboard 410c 開發(fā)入門,怎樣搭建開發(fā)環(huán)境,thundersoft confidential,2020/9/5,thundersoft confidential,2,dragonboard 410c配件準備,12v/2a 1.7mm power,hdmi線級顯示器,usb鍵盤、鼠標,sd卡,usb線,2020/9/5,3,dragonboard 410c 系統(tǒng)安裝,thundersoft confidential,2020/9/5,thundersoft confidential,4,通過sd卡安裝系統(tǒng),安裝 步驟,sudo dd if=db410_sd
2、_install_android.img of=/dev/xxx bs=2m sudo sync,2020/9/5,thundersoft confidential,5,通過fastboot安裝系統(tǒng),安裝 步驟,2020/9/5,thundersoft confidential,6,dragonboard 410c啟動到fastboot模式 首先需要確保s6處于0-0-0-0狀態(tài),然后需要通過usb連接到pc機。 如果系統(tǒng)處于android系統(tǒng)的啟動狀態(tài)的話,可以執(zhí)行如下命令進入fastboot模式。 sudo adb reboot bootloader 另外可以通過在啟動時按住s4(音量 -
3、)鍵的方式進入fastboot模式。 燒寫bootloader 解壓縮下載的bootloader,然后進入解壓后的目錄并執(zhí)行以下命令燒寫bootloader sudo ./flashall 因為bootloader部分包括分區(qū)信息,所以燒寫完bootloader后一定要重新啟動后在燒寫其他部分 sudo fastboot reboot bootloader,通過fastboot安裝系統(tǒng),2020/9/5,thundersoft confidential,7,燒寫系統(tǒng)image 安裝android系統(tǒng) 執(zhí)行以下命令安裝系統(tǒng)image sudo fastboot flash boot boot.i
4、mg sudo fastboot flash system system.img sudo fastboot flash userdata userdata.img sudo fastboot flash recovery recovery.img sudo fastboot flash persist persist.img sudo fastboot flash cache cache.img 安裝linux系統(tǒng) 執(zhí)行以下命令安裝系統(tǒng)image sudo fastboot flash boot boot-linaro-vivid-qcom-snapdragon-arm64-build#.i
5、mg sudo fastboot flash rootfs linaro-vivid-developer-qcom-snapdragon-arm64-build#.img 重啟系統(tǒng) fastboot reboot,通過fastboot安裝系統(tǒng),2020/9/5,8,win10 iot 系統(tǒng)燒寫,thundersoft confidential,2020/9/5,thundersoft confidential,9,dragonboard 410c支持win10 iot操作系統(tǒng),系統(tǒng)包可以在微軟官方網(wǎng)站里下載。 http:/ms-iot.github.io/content/en-us/downl
6、oads.htm,搭建win10 lot系統(tǒng),2020/9/5,thundersoft confidential,10,下載完成后的系統(tǒng)包如下 在windows系統(tǒng)電腦下安裝該系統(tǒng)包,系統(tǒng)包內(nèi)置了驅(qū)動,直接默認全部安裝即可。默認安裝在c:program fileswindows iot文件夾內(nèi)。 從qdn網(wǎng)站下載燒機工具windows10 iot update tool for dragonboard ,搭建win10 iot系統(tǒng),2020/9/5,thundersoft confidential,11,搭建win10 iot系統(tǒng),工具安裝成功會在桌面生成快捷方式 打開工具,界面如下圖所示 點
7、擊browse按鈕,選擇默認路徑下:c:program filesmicrosoft iotffuqcdb410cflash.ffu文件。,2020/9/5,thundersoft confidential,12,搭建win10 iot系統(tǒng),連接dragonboard 410c的micro usb到電腦主機,把dragonboard 410c的啟動開關(guān)設(shè)置為1000。 插上電源適配器,系統(tǒng)上電后,工具界面連接狀態(tài)燈變?yōu)榫G色,可以開始燒錄系統(tǒng)。 點擊工具界面的program按鈕,幾分鐘后系統(tǒng)安裝完成,并彈出安裝成功的對話框。,2020/9/5,thundersoft confidential,1
8、3,搭建win10 iot系統(tǒng),拔出電源adapter,把啟動開關(guān)設(shè)置0000,即默認狀態(tài)。 用hdmi線連接dragonboard 410c和外部顯示器,連接usb鼠標、鍵盤。插入電源adapter,開始啟動windows10 iot。,2020/9/5,14,android系統(tǒng)定制,thundersoft confidential,2020/9/5,thundersoft confidential,15,通過以下命令安裝jdk sudo apt-get update sudo apt-get install openjdk-7-jdk 安裝必要的軟件和lib庫(ubuntu 14.04)
9、sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl zlib1g-dev gcc-multilib g+-multilib libc6-dev-i386 lib32ncurses5-dev x11proto-core-dev libx11-dev lib32z-dev ccache libgl1-mesa-dev libxml2-utils xsltproc unzip,搭建android編譯環(huán)境,2020/9/5,thundersoft confidential,16,從codeauror
10、a下載android代碼,repo init -u git://platform/manifest -b release -m la.br.1.2.4-01810-8x16.0.xml,repo sync -c -no-tags -j4,2020/9/5,thundersoft confidential,17,確認kernel/arch/arm64/boot/dts/qcom/msm8916.dtsi里的blsp1_uart2設(shè)置,修改確認kernel的uart配置,blsp1_uart2: serial78b0000 compatible = qcom,msm-l
11、suart-v14; reg = ; interrupts = ; status = disabled; clocks = , ; clock-names = core_clk, iface_clk; ;,2020/9/5,thundersoft confidential,18,確認kernel/arch/arm64/boot/dts/qcom/msm8916-pinctrl.dtsi里的uartconsole設(shè)置,修改確認kernel的uart配置,pmx-uartconsole qcom,pins = , ; qcom,num-grp-pins = ; qcom,pin-func = ;
12、label = uart-console; uart_console_sleep: uart-console drive-strength = ; bias-pull-down; ; ;,2020/9/5,thundersoft confidential,19,確認kernel/drivers/clk/qcom/clock-gcc-8916.c中的blsp1_uart2_apps_clk_src,修改確認kernel的uart配置,static struct rcg_clk blsp1_uart2_apps_clk_src = .cmd_rcgr_reg = blsp1_uart2_apps_
13、cmd_rcgr, .set_rate = set_rate_mnd, .freq_tbl = ftbl_gcc_blsp1_uart1_6_apps_clk, .current_freq = ,2020/9/5,thundersoft confidential,20,通過以下命令編譯android系統(tǒng)。編譯完的image可以通過fastboot命令燒寫到dragonboard 410c上。 source build/envsetup.sh lunch msm8916_64-userdebug make -j4,編譯android系統(tǒng),2020/9/5,21,linux系統(tǒng)定制,thunder
14、soft confidential,2020/9/5,thundersoft confidential,22,dragonboard 410c是一個64位的armv8平臺,所以在pc機上編譯arm架構(gòu)的代碼需要交叉編譯環(huán)境。 /14.11/components/toolchain/binaries/aarch64-linux-gnu/gcc-linaro-4.9-2014.11-x86_64_aarch64-linux-gnu.tar.xz 解壓工具鏈 /dragonboard/toolchain/: tar xz gcc-linaro-4.9
15、-2014.11-x86_64_aarch64-linux-gnu.tar.xz,搭建交叉編譯環(huán)境,2020/9/5,thundersoft confidential,23,設(shè)置環(huán)境變量 export arch=arm64 export cross_compile=path to your gcc cross compiler/aarch64-linux-gnu-,搭建交叉編譯環(huán)境,2020/9/5,thundersoft confidential,24,通過linaro qualcomm landing team git repository來查找linux kernel信息,下載linux
16、 kernel源碼,2020/9/5,thundersoft confidential,25,根據(jù)tags信息,我們可以看到,dragonboard 410c的最新linux源碼是15.09版本 通過以下命令下載linux kernel源碼 /dragonboard/git clone -n/landing-teams/working/qualcomm/kernel.gitcd kernelgit checkout -b kernel-15.09 ubuntu-qcom-dragonboard410c-15.09 此版本存在一個build的問題,所以我們
17、需要通過cherry-pick來修復(fù)一下 git cherry-pick -n e4df9dd88bb3b37d84db277e0f6a5d59cf5ac737,下載linux kernel源碼,2020/9/5,thundersoft confidential,26,通過以下命令編譯kernel make defconfig distro.config make -j4 image dtbs kernelrelease=4.2.0-linaro-lt-qcom,編譯kernel,2020/9/5,thundersoft confidential,27,boot image是由三部分組成的:
18、設(shè)備樹表鏡像(dt.img) kernel鏡像(image) init ramdisk鏡像。 下載安裝dt工具以及鏡像生成工具 sudo apt-get install device-tree-compilergit clone git://quic/kernel/skales 編譯dt鏡像 ./skales/dtbtool -o dt.img -s 2048 arch/arm64/boot/dts/qcom/ 獲取init ramdisk鏡像 wget/releases/dragonboard410c/linaro
19、/ubuntu/15.09/initrd.img-4.2.0-linaro-lt-qcom,打包boot image,2020/9/5,thundersoft confidential,28,生成boot image ./skales/mkbootimg kernel arch/arm64/boot/image ramdisk initrd.img-4.2.0-linaro-lt-qcom output boot-db410c.img dt dt.img pagesize 2048 base 0 x80000000 cmdline “root=/dev/disk/by-partlabel/ro
20、otfs rw rootwait console=ttymsm0,115200n8”,打包boot image,2020/9/5,thundersoft confidential,29,在燒寫前,我們可以先測試一下boot image能否正常工作 sudo fastboot boot boot-db410c.img 如果可以正常啟動,通過fastboot命令燒寫 sudo fastboot flash boot boot-db410c.img,燒寫boot image,2020/9/5,thundersoft confidential,30,demo 展示,2020/9/5,thunderso
21、ft confidential,31,dragonboard 410c 傳感器應(yīng)用,demo目標 通過傳感器連接以及3d建模驗證傳感器與開發(fā)板的工作模式 環(huán)境搭建 基于android 5.0系統(tǒng),運行演示app app界面和3d模型基于adreno gpu加速 外接seeedstudio的grove系列傳感器 通過hdmi接口,將視頻傳輸?shù)斤@示器 通過usb接口,連接鼠標鍵盤 采用的grove 傳感器: demo效果 手勢傳感器,實現(xiàn)手勢識別的功能,控制app中模型縮放和位置移動 光線傳感器,基于環(huán)境光照,控制app中界面背景亮度 顏色傳感器,基于物體反射光,控制app中模型的背景色,2020
22、/9/5,thundersoft confidential,32,dragonboard 410c 問答應(yīng)用,demo目標 驗證基于win10 iot 開發(fā)應(yīng)用 環(huán)境搭建 基于win 10 iot系統(tǒng),運行演示答題器 外接紅、綠、藍三個燈和按鍵 通過hdmi接口,將視頻傳輸?shù)斤@示器 通過usb接口,連接鼠標鍵盤 demo效果 類似“一站到底”式的問答游戲 外接紅、綠、藍三個實體按鈕,根據(jù)問題和選項作答 題目是事先制作的,打包成xml格式,保存在相應(yīng)目錄中 有不同題庫可以進行選擇 當答題完畢時,系統(tǒng)調(diào)用攝像頭留下精彩一刻,2020/9/5,thundersoft confidential,33,dragonboard 410c 超聲波應(yīng)用,demo目標 通過超聲傳感器驗證與開發(fā)板的工作模式 環(huán)境搭建 基于android 5.0系統(tǒng),運行演示app 外接level shift 和 ultrasonic module 通過hdmi接口,將視頻傳輸?shù)斤@示器 通過usb接口,連接鼠標鍵盤 demo效果 用物體靠近超聲波傳感器 通過超聲波測試與物體之間的距離,并通過app 顯示測距結(jié)果 測量有效距離為20mm-450mm之間 當物體逐漸靠近超
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 小學(xué)生家長培訓(xùn)課件購買
- 2026年深圳中考英語核心考點密押試卷(附答案可下載)
- 口試英語題目及答案
- 2026年大學(xué)大二(健康促進)社區(qū)健康促進方案制定綜合測試題及答案
- 2026年深圳中考數(shù)學(xué)統(tǒng)計與概率專項試卷(附答案可下載)
- 2026年深圳中考生物綠色植物的光合作用試卷(附答案可下載)
- 色彩冷門考題題庫及答案
- 靜脈曲張術(shù)后早期護理
- 2026年深圳中考地理二模仿真模擬試卷(附答案可下載)
- 發(fā)展經(jīng)濟學(xué)經(jīng)濟發(fā)展的質(zhì)量和方式
- 北京通州產(chǎn)業(yè)服務(wù)有限公司招聘參考題庫必考題
- 【高三上】2026屆12月八省聯(lián)考(T8聯(lián)考)語文試題含答案
- DZ/T 0270-2014地下水監(jiān)測井建設(shè)規(guī)范
- 醫(yī)生重癥醫(yī)學(xué)科進修匯報
- 《航空電子系統(tǒng)概述》課件
- 中國醫(yī)護服裝行業(yè)未來發(fā)展趨勢分析及投資規(guī)劃建議研究報告
- 《廣州天河商圈》課件
- H31341 V2.5 HCIP-TranSmission 傳輸網(wǎng)練習(xí)試題及答案
- 下肢靜脈曲張課件
- (高清版)DZT 0428-2023 固體礦產(chǎn)勘查設(shè)計規(guī)范
- XXX縣村鎮(zhèn)空氣源熱泵區(qū)域集中供熱項目可行性研究報告
評論
0/150
提交評論