Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android-fastboot简介与基本用法 #21

Open
jeffrey1995 opened this issue Nov 7, 2016 · 0 comments
Open

Android-fastboot简介与基本用法 #21

jeffrey1995 opened this issue Nov 7, 2016 · 0 comments

Comments

@jeffrey1995
Copy link
Owner

jeffrey1995 commented Nov 7, 2016

1.Fastboot简介

(参考资料:http://www.omappedia.org/wiki/Android_Fastboot#Updating_system_image_on_NAND)
Fastboot是Android快速升级的一种方法,Fastboot的协议fastboot_protocol.txt在源码目录./bootable/bootloader/legacy下可以找到。
Fastboot客户端是作为Android系统编译的一部分,编译后位于./out/host/linux-x86/bin/fastboot目录下。
Fastboot命令实例:sudo fastboot flash kernel path-to-kernel/uImage
烧写rootfs类似:sudo fastboot flash system path-to-system/system.img

2.常用命令

2.1.进入fastboot模式。
adb reboot bootloader
2.2.重启系统。
sudo fastboot reboot
2.3.升级系统。(可以针对系统不同分区写入)
sudo fastboot flash bootloader u-boot.bin
sudo fastboot flash kernel uImage
sudo fastboot flash system system.img
sudo fastboot flash userdata userdata.img
sudo fastboot flash ramdisk ramdisk-uboot.img
sudo fastboot erase cache
2.4 查看版本号
sudo fastboot getver:version

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant