顯示具有 Android 標籤的文章。 顯示所有文章
顯示具有 Android 標籤的文章。 顯示所有文章

星期五, 12月 27, 2013

add exist git repo up to github

Take uboot_savage_mx6 as example.

1. git remote add pb https://github.com/allencyhsu/uboot_savage_mx6.git

2. git remote -v
origin  git://git.freescale.com/imx/uboot-imx.git (fetch)
origin  git://git.freescale.com/imx/uboot-imx.git (push)
pb  https://github.com/allencyhsu/uboot_savage_mx6.git (fetch)
pb  https://github.com/allencyhsu/uboot_savage_mx6.git (push)

3. git push pb savage-jb
   answer the id & pass question.

4. wait couple minutes to complete upload.

5. go to github to check the code uploaded.

星期二, 9月 17, 2013

Add a project on exist AOSP repository


Add a project on exist AOSP repository (ex: realtek android driver)


  • Make a git repository & add/commit files
    cd /hardware/realtek/wlan
    git init
    git add *
    git commit -m "1st release" -a


  • Create .repo/projects
    cd .git
    mkdir -p ../../../../.repo/projects/hardware/realtek/wlan.git
    cp -a * ../../../../.repo/projects/hardware/realtek/wlan.git/

  • Remove local git files & make link to .repo/projects
    rm -rf branches/ config description hooks/ info/ logs/ objects/ refs/
    ln -s ../../../../.repo/projects/hardware/realtek/wlan.git/branches .
    ln -s ../../../../.repo/projects/hardware/realtek/wlan.git/config .
    ln -s ../../../../.repo/projects/hardware/realtek/wlan.git/description .
    ln -s ../../../../.repo/projects/hardware/realtek/wlan.git/hooks .
    ln -s ../../../../.repo/projects/hardware/realtek/wlan.git/info .
    ln -s ../../../../.repo/projects/hardware/realtek/wlan.git/logs .
    ln -s ../../../../.repo/projects/hardware/realtek/wlan.git/objects .
    ln -s ../../../../.repo/projects/hardware/realtek/wlan.git/refs .


  • Edit project.list and manifest.xml

    vi .repo/project.list
- add
 hardware/realtek/wlan
    vi .repo/manifest.xml 
- add
         

星期日, 10月 21, 2012

Android keylayout support

1. kernel add gpio key support
2. choose the right .kl & .kcm
it should be the same with the gpio key driver name(ex: gpio-keys.xx)

星期五, 6月 24, 2011

OMAPDSS:How to enable DVI display

How to enable DVI display
DVI display can be enabled in two ways
1. Using bootargs
Eg: omapdss.def_disp="dvi" omapfb.mode=dvi:720x480@60
2. Using SYSFS attributes
echo 0 > /sys/devices/platform/omapdss/display0/enabled
echo "" > /sys/devices/platform/omapdss/manager0/display
fbset -fb /dev/fb0 -xres 720 -yres 480
echo "dvi" > /sys/devices/platform/omapdss/manager0/display
echo 1 > /sys/devices/platform/omapdss/display2/enabled
kill
Restart without enabling rotation: matrix_gui -qws /usr/share/matrix/html/menu_main.html

ref: http://processors.wiki.ti.com/index.php/AM37x_EVM_Software_Developer%27s_Guide

星期一, 12月 20, 2010

network adb in beagleboard

since rowboat gadget driver does not works for me. so i choose use network adbd for my beagleboard-xm.

target:
setprop service.adb.tcp.port 5555
stop adbd
start adbd

windows:
adb connect xxx.xxx.xxx.xxx:5555

done.