当前位置: 移动技术网 > IT编程>移动开发>Android > Fastboot烧写Android镜像文件到eMMC

Fastboot烧写Android镜像文件到eMMC

2018年03月12日  | 移动技术网IT编程  | 我要评论

富宁县政务网,撸后宫,百娱影院

Fastboot烧写Android镜像文件到eMMC

以友善之臂Smart4418为例:
电路板有拨码开关,拨到SD卡一侧为SD卡启动,拨到eMMC一侧为eMMC启动。
需要注意的是,如果设置为SD卡启动,通过fastboot烧写镜像是烧写到SD卡上,如果设置从eMMC启动,通过fastboot烧写镜像是烧写到eMMC上。

ubuntu环境准备

因为Android源码编译在ubuntu中,所以也通过ubuntu进行烧写Android镜像。
在ubuntu中安装fastboot:

sudo apt-get install  android-tools-fastboot

开发板配置

将开发板启动开关拨到eMMC启动侧 连接开发板串口到电脑上的DNW 连接开发板USB调试接口到ubuntu上(或者到ubuntu的虚拟机上) 接通电源,在DNW上点击任意键,取消自启动,进入命令模式 在命令行输入fastboot,使开发板进入fastboot模式

烧写镜像

在ubuntu中进入Android镜像文件夹,通过下列命令逐条烧写:

cd out/target/product/nanopi2
sudo fastboot flash boot boot.img
sudo fastboot flash cache cache.img
sudo fastboot flash userdata userdata.img
sudo fastboot flash system system.img
sudo fastboot reboot

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网