android fastboot 사용하기
fastboot란 우리가 빌드한 이미지들을 타겟에 올릴수있게 도와주는 툴이다.
사용하기위해서는 fastboot모드로 부팅해야한다.
Device | Keys |
---|---|
crespo | Press and hold Volume Up, then press and hold Power |
crespo4g | Press and hold Volume Up, then press and hold Power |
passion | Press and hold the trackball, then press Power |
sapphire | Press and hold Back, then press Power |
dream | Press and hold Back, then press Power |
파티션의 구조
splash1 : 320*480 image
kernel : boot.img
recovery : recovery.img
system : android platform
userdata : application and userdata
cache : temp
fastboot command
usage: fastboot [ <option> ] <command>
commands:
update <filename> reflash device from update.zip
flashall flash boot + recovery + system
flash <partition> [ <filename> ] write a file to a flash partition
erase <partition> erase a flash partition
getvar <variable> display a bootloader variable
boot <kernel> [ <ramdisk> ] download and boot kernel
flash:raw boot <kernel> [ <ramdisk> ] create bootimage and flash it
devices list all connected devices
reboot reboot device normally
reboot-bootloader reboot device into bootloader
options:
-w erase userdata and cache
-s <serial number> specify device serial number
-p <product> specify product name
-c <cmdline> override kernel commandline
-i <vendor id> specify a custom USB vendor id
-b <base_addr> specify a custom kernel base address
-n <page size> specify the nand page size. default: 2048
예시
$fastboot erase boot
$fastboot erase recovery
$fastboot boot {kernel} {ramdisk}
$fastboot flash:raw boot {kernel} {ramdisk}
ex)fastboot flash 파티션 이미지
'Dev > Android' 카테고리의 다른 글
git command , git 명령어 (0) | 2011.05.21 |
---|---|
android source 브랜치 가져오기 (0) | 2011.05.20 |
우분투에 안드로이드 프로젝트 세팅 (0) | 2011.05.18 |
Real 3D - 단순 이미지 3D 구현 (0) | 2011.04.20 |
Real 3D 개요 (0) | 2011.04.19 |