• 분류 전체보기 (30)
    • android (8)
    • ubuntu (10)
    • python (2)
    • matlab (1)
    • etc (9)

인기 글

최근 글

최근 댓글

태그

  • cuda 8.0
  • rgb2ntsc
  • nvidia-367
  • Google Drive
  • Vendor
  • cups
  • build
  • AOSP
  • full source
  • DSM
  • mmm
  • Deep learning
  • PyDev
  • gtx 1080
  • Ubuntu 16.04
  • Synology
  • rgb2ycbcr
  • ubuntu
  • docker
  • 중고폰
  • cudnn
  • vrapper
  • grive
  • 아메리칸투어리스터
  • flashing
  • Android
  • Write
  • 예약인쇄
  • 자동인쇄
  • eclipse
전체 방문자
오늘
어제

티스토리

hELLO · Designed By 정상우.
097

Tip Archive

[AOSP 빌드] 3. 빌드, 플래싱
android

[AOSP 빌드] 3. 빌드, 플래싱

2014. 8. 5. 17:43

#ref. http://thdev.net/498, http://yijoongwon.com/?p=119

 

#1. 안드로이드 명령셋 등록 http://source.android.com/source/building-running.html

~/temp# source build/envsetup.sh

 

#2. 빌드 타겟 설정 

http://source.android.com/source/building-devices.html#picking-and-building-the-configuration-that-matches-a-device

여기서 자신의 device를 확인하자.

~/temp# lunch full_grouper-userdebug
or
~/temp# lunch
하여 선택 가능.

 

#3. 빌드

 

~/temp# make (or make -j3)

 

 

#4. usb 설정

 

1. lsusb로 vendor:product 알아내기.

~/temp# lsusb
아마 Google Inc. 가 지금 연결된 Nexus7 인 것 같다. -> vendor:product = 18d1:4e42

 

 

 

2. /etc/udev/rules.d/xx-android.rules 에 규칙 추가. (xx = 두 자리 숫자 아무거나)

~/temp# gedit /etc/udev/rules.d/99-android.rules
에


# adb protocol on grouper/tilapia (Nexus 7)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e42", MODE="0600", OWNER="<USER>"


# fastboot protocol on grouper/tilapia (Nexus 7)
SUBSYSTEM=="usb", ATTR{idVendor}=="18d1", ATTR{idProduct}=="4e40", MODE="0600", OWNER="<USER>"
빨간 부분을 자신에 맞게 수정하여 추가. (4e40은 fastboot mode에서의 product id이다. 직접 fastboot mode에서 lsusb로 확인해 보시길.)
 
그리고 udev restart.
~/temp# service udev restart

 

#5. flashing http://source.android.com/source/building-devices.html

 

 

 

 

1. fastboot 모드로 진입.

~/temp# adb reboot bootloader
or
http://source.android.com/source/building-devices.html#booting-into-fastboot-mode
이렇게 수동으로 진입.

 

 

2. flash

 

 

 

 

 

 

 

~/temp# fastboot flashall -w

(-w 옵션은 device의 /data 파티션을 삭제함.)

 

 

 

 

 

 

 

 

저작자표시 (새창열림)

'android' 카테고리의 다른 글

mr? fr?  (0) 2014.08.27
안드로이드 부분 빌드  (0) 2014.08.08
[AOSP 빌드] 2. vendor 생성  (0) 2014.08.05
[AOSP 빌드] 1. 안드로이드 full source 다운로드  (0) 2014.08.05
이클립스 컬러 테마 변경  (0) 2013.10.05
    'android' 카테고리의 다른 글
    • mr? fr?
    • 안드로이드 부분 빌드
    • [AOSP 빌드] 2. vendor 생성
    • [AOSP 빌드] 1. 안드로이드 full source 다운로드
    097
    097

    티스토리툴바