资源描述
单击此处编辑母版文本样式,第二级,第三级,第四级,第五级,单击此处编辑母版标题样式,2016/9/13,ThunderSoft Confidential,#,Dragonboard 410c,开发,入门,怎样搭建开发环境,9/30/2024,1,ThunderSoft Confidential,Dragonboard,410c,配件准备,9/30/2024,2,ThunderSoft Confidential,12V/2A 1.7mm power,HDMI,线级显示器,USB,键盘、鼠标,SD,卡,USB,线,DragonBoard 410c,系统安装,9/30/2024,3,ThunderSoft Confidential,通过,SD,卡安装,系统,9/30/2024,4,ThunderSoft Confidential,安装,步骤,Windows,:,通过工具,Win32DiskImager,将,image,文件写入,SD,卡,Linux,:,可以通过,dd,命令写入,将,image,写入,SD,卡,将,SD,卡插入卡槽,然后将板子背面的,S6,开关设置为,0110,模式,然后加电启动,按照画面提示安装系统即可。,通过,SD,卡安装系统,可以到,96-Boards,网站下载对应的,image,文件,下载,image,sudo dd if=db410_sd_install_android.img of=/dev/XXX bs=2M,sudo sync,通过,fastboot,安装,系统,9/30/2024,5,ThunderSoft Confidential,安装,步骤,Windows,:,安装,Android Studio,,或第三方独立,fastboot,包,Linux,:,可以通过以下命令安装,sudo apt-get install android-tools-fastboot,安装,fastboot,可以通过,fastboot,命令安装下载好的,image,。,安装系统,可以到,96-Boards,网站下载对应的,image,文件,下载,image,DragonBoard 410c,启动到,fastboot,模式,首先需要确保,S6,处于,0-0-0-0,状态,然后需要,通过,USB,连接,到,PC,机,。,如果系统处于,Android,系统的启动状态的话,可以执行如下命令进入,fastboot,模式。,sudo adb reboot,bootloader,另外可以通过在启动时按住,S4,(音量,-,),键的方式进入,fastboot,模式。,烧写,bootloader,解压缩下载的,bootloader,,然后进入解压后的目录并执行以下命令烧写,bootloader,sudo./,flashall,因为,bootloader,部分包括分区信息,所以烧写完,bootloader,后一定要重新,启动后在烧写其他部分,sudo fastboot reboot bootloader,通过,fastboot,安装,系统,9/30/2024,6,ThunderSoft Confidential,烧写系统,image,安装,Android,系统,执行以下命令安装系统,image,sudo fastboot flash boot boot.img,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,系统,执行以下命令安装系统,image,sudo fastboot flash boot boot-linaro-vivid-qcom-snapdragon-arm64-BUILD#.img,sudo,fastboot flash rootfs linaro-vivid-developer-qcom-snapdragon-arm64-BUILD#.img,重启,系统,fastboot reboot,通过,fastboot,安装,系统,9/30/2024,7,ThunderSoft Confidential,WIN10 IoT,系统烧写,9/30/2024,8,ThunderSoft Confidential,DragonBoard 410c,支持,win10 IoT,操作系统,系统包可以在微软官方网站里下载,。,http,:/,ms-iot.github.io/content/en-US/Downloads.htm,搭建,WIN10 loT,系统,9/30/2024,9,ThunderSoft Confidential,下载完成后的系统包,如下,在Windows系统电脑下安装该系统包,系统包内置了驱动,直接默认全部安装即可。默认安装在C:Program FilesWindows IoT文件夹内。,从,QDN,网站下载烧机工具Windows,10 IOT Update Tool,for,dragonboard,https,:/ IoT,系统,9/30/2024,10,ThunderSoft Confidential,搭建,WIN10 IoT,系统,9/30/2024,11,ThunderSoft Confidential,工具安装成功会在桌面生成快捷方式,打开工具,界面如下图所示,点击,Browse,按钮,选择默认路径下:C:Program FilesMicrosoft IoTFFUQCDB410Cflash.ffu文件。,搭建,WIN10 IoT,系统,9/30/2024,12,ThunderSoft Confidential,连接,Dragonboard 410c,的,Micro USB,到电脑主机,把,Dragonboard 410c,的启动开关设置为,1000,。,插上电源适配器,系统上电后,工具界面连接状态灯变为绿色,可以开始烧录系统。,点击工具界面的,Program,按钮,几分钟后系统安装完成,并弹出安装成功的对话框。,搭建,WIN10 IoT,系统,9/30/2024,13,ThunderSoft Confidential,拔出电源,Adapter,,把启动开关设置,0000,,即默认状态。,用,HDMI,线连接,Dragonboard 410c,和外部显示器,连接,USB,鼠标、键盘。插入电源,Adapter,,开始启动,Windows10 IoT,。,Android,系统定制,9/30/2024,14,ThunderSoft Confidential,通过以下命令安装,JDK,sudo apt-get update,sudo apt-get install openjdk-7-jdk,安装必要的软件和,lib,库(,Ubuntu,14.04,),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,编译环境,9/30/2024,15,ThunderSoft Confidential,https:/ Confidential,repo init-u git:/codeaurora.org/platform/manifest-b release-m LA.BR.1.2.4-01810-8x16.0.xml,repo sync-c-no-tags-j4,确认,kernel/arch/arm64/boot/dts/qcom/msm8916.dtsi,里的,blsp1_uart2,设置,修改确认,kernel,的,UART,配置,9/30/2024,17,ThunderSoft Confidential,blsp1_uart2:serial78b0000,compatible=,qcom,msm-lsuart-v14,;,reg=;,interrupts=;,status=,disabled,;,clocks=,;,clock-names=,core_clk,iface_clk,;,;,确认,kernel/arch/arm64/boot/dts/qcom/msm8916-pinctrl.dtsi,里的,uartconsole,设置,修改确认,kernel,的,UART,配置,9/30/2024,18,ThunderSoft Confidential,pmx-uartconsole,qcom,pins=,;,qcom,num-grp-pins=;,qcom,pin-func=;,label=,uart-console,;,uart_console_sleep:uart-console,drive-strength=;,bias-pull-down;,;,;,确认,kernel/drivers/clk/qcom/clock-gcc-8916.c,中的,blsp1_uart2_apps_clk_src,修改确认,kernel,的,UART,配置,9/30/2024,19,ThunderSoft Confidential,static struct rcg_clk blsp1_uart2_apps_clk_src=,.cmd_rcgr_reg=BLSP1_UART2_APPS_CMD_RCGR,.set_rate=set_rate_mnd,.freq_tbl=ftbl_gcc_blsp1_uart1_6_apps_clk,.current_freq=&rcg_dummy_freq,.base=&virt_basesGCC_BASE,.c=,.dbg_name=,blsp1_uart2_apps_clk_src,.ops=&clk_ops_rcg_mnd,VDD_DIG_FMAX_MAP2(LOW,32000000,NOMINAL,64000000),CLK_INIT(blsp1_uart2_apps_clk_src.c),;,通过以下命令编译,Android,系统。编译完的,image,可以通过,fastboot,命令烧写到,DragonBoard 410c,上,。,source,build/envsetup.sh,lunch,msm8916_64-userdebug,make-,j4,编译,Android,系统,9/30/2024,20,ThunderSoft Confidential,Linux,系统定制,9/30/2024,21,ThunderSoft Confidential,DragonBoard 410c,是一个,64,位的,ARMv8,平台,所以在,PC,机上编译,ARM,架构的代码需要交叉编译环境,。,http,:/,releases.linaro.org/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-2014.11-x86_64_aarch64-linux-gnu.tar.xz,搭建交叉编译环境,9/30/2024,22,Thunder
展开阅读全文