Jump to content

User talk:Liuxg wiki: Difference between revisions

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Content deleted Content added
SineBot (talk | contribs)
m Signing comment by 192.88.158.212 - ""
No edit summary
Line 189: Line 189:
Triple Buffer:<br />
Triple Buffer:<br />
modules/gralloc/framebuffer.cpp<br />
modules/gralloc/framebuffer.cpp<br />
#define NUM_BUFFERS 3<br />
#define NUM_BUFFERS 3<br /> <span style="font-size: smaller;" class="autosigned">— Preceding [[Wikipedia:Signatures|unsigned]] comment added by [[Special:Contributions/192.88.158.212|192.88.158.212]] ([[User talk:192.88.158.212|talk]]) 02:19, 27 April 2012 (UTC)</span><!-- Template:Unsigned IP --> <!--Autosigned by SineBot-->






Revision as of 02:27, 27 April 2012

CTS related:
http://source.android.com/compatibility/downloads.html
start --plan CTS -t android.opengl.cts.EglConfigTest#testEglConfigs
start --plan CTS -p android.text.cts.AutoTextTest
run cts --c libcore.java.net.URLConnectionTest --m testInspectSslAfterConnect
run cts -p android.graphics
run cts --plan CTS


MAX LAYER define:
NUM_LAYERS_MAX is define in ShareBufferStack.h


How to update OMX libs:
cp ../../out/target/product/imx51_bbg/system/lib/libmediaplayerservice.so /home/kevin3/Nfs/android/android_fs/system/lib/ cp ../../out/target/product/imx51_bbg/system/lib/libmedia_jni.so /home/kevin3/Nfs/android/android_fs/system/lib/ cp ../../out/target/product/imx51_bbg/system/framework/ext.jar /home/kevin3/Nfs/android/android_fs/system/framework/ cp ../../out/target/product/imx51_bbg/system/framework/framework.jar /home/kevin3/Nfs/android/android_fs/system/framework/


HTML5 benchmarks:
http://ie.microsoft.com/testdrive/Performance/FishIETank/Default.html


GIT related:
cat kernel_imx/.git/config git log -p -- file git push ssh://r66033@repomad1/opt/pool/AndroidRepo/platform/device/fsl.git local_branch:remote_branch
Signed-off-by: Richard Liu <r66033@freescale.com>
Acked-by: Lily Zhang
git push ssh://sw-git01-tx30.am.freescale.net/git/sw_git/repos/linux-2.6-imx.git <your local branch>:imx_2.6.38_android
git diff LOCAL_BRANCH REMOTE_BRANCH
./repo forall -c git fetch repomad –tags
git fetch repomad --tags


Generate Image:
make_ext4fs -l 148M -a system out/target/product/imx6q_arm2/obj/PACKAGING/systemimage_intermediates/system.img
out/target/product/imx6q_arm2/system


Enable 1.2G:
i2c mw 0x48 0x2e 0x60
i2c mw 0x48 0x3c 0x61
clk core 1200


Disable DVFS:
echo 0 > /sys/device/platform/dvfs_core.0/enable
echo 0 > /sys/devices/platform/mxc_dvfs_core.0/enable
echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_govenor


ICS dd SDCard:
sudo prebuilt/linux-x86/fsl/fsl-sdcard-partition.sh /dev/sdb
dd if=u-boot.bin of=/dev/sdb bs=1K skip=1 seek=1
dd if=boot.img of=/dev/sdb1
dd if=system.img of=/dev/sdb5
dd if=recovery.img of=/dev/sdb2


Git rebases:
git checkout -b icsupdate
git rebase android-4.0.3_r1
git push --force ssh://r66033@repomad1/opt/pool/AndroidRepo/platform/packages/apps/Music.git icsupdate:maddev_ics


nfsroot wifi:
1. Re-Configure your NFS server (assuming you are using nfs-kernel-server)
sudo vi /etc/default/nfs-kernel-server
Change below line:RPCMOUNTDOPTS=--manage-gids to RPCMOUNTDOPTS=
2. Re-start your NFS server
sudo service nfs-kernel-server --full-restart
3. Remove your current temporary files
sudo rm -rf YOUR_NFS_ROOT/data/misc
4. Reboot your board


Enable ipu debug:
ipu/mxc_ipu_hl_lib.c
-static int debug_level = DBG_ERR;
+static int debug_level = DBG_INFO;


Draw FB directly:
android_createDisplaySurface
include <ui/FramebufferNativeWindow.h>


Fetch ICS code:
$ curl https://dl-ssl.google.com/dl/googlesource/git-repo/repo > repo
$ ./repo init -u git://repomad1/platform/manifest.git -b android-4.0.1_r1 --repo-url=git://repomad1/tools/repo.git
$ ./repo sync


List added patch:
./repo forall -c git format-patch imx-android-r10.3.1..remotes/repomad/maddev-gingerbread
find . -name '*.patch' -mmin -2 > gingerbread_patch.log


Kernel build:
make imx6_android_defconfig ARCH=arm
make menuconfig ARCH=arm
make ARCH=arm CROSS_COMPILE=../prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
or make kernelimage -j4
Device Drivers --> MXC Support Driver --> MXC Vivante GPU support (M,module)
mkimage -A arm -O linux -T kernel -C none -a 0x10008000 -e 0x10008000 -n "Android Linux Kernel" -d ./zImage ./uImage


Adb over TCP:
Console:
setprop service.adb.tcp.port 5555
stop adbd
start adbd
[/nfs/AndroidR91]adb connect 10.192.241.197:5555


Enable Viv GPU DEBUG:
make imx6_android_defconfig ARCH=arm
make menuconfig ARCH=arm
Device Drivers --> MXC Support Driver --> MXC Vivante GPU support (M,module)
make -j4 ARCH=arm CROSS_COMPILE=../prebuilt/linux-x86/toolchain/arm-eabi-4.4.3/bin/arm-eabi-
kernel_imx/drivers/mxc/gpu-viv/config
+DEBUG  ?= 1
external/gpu-viv/driver/Android.mk.def
+DEBUG  ?= 1


Change system writeable:
mount -o remount,rw -t ext3 /dev/block/mmcblk0p2 /system


Android compass link address:
http://compass.freescale.net/go/197547635


Wiki page:
http://wiki.freescale.net/display/MADAndroid/Welcome+to+Android+Wiki
http://wiki.freescale.net/display/MADAndroid/What%27s+ongoing
http://wiki.freescale.net/display/MADAndroid/MX6Q+GPU+integration+for+Honeycomb
http://wiki.freescale.net/display/MADSoftware/AndroidGraphic
http://en.wikipedia.org/wiki/User:Liuxg_wiki Liuxg wiki


Enable Samba:
http://ubuntublog.org/how-to-setup-samba-server-in-ubuntu.htm


R13.2 HDMI boot:
console=ttymxc0,115200 androidboot.console=ttymxc0 init=/init rw video=mxcfb0:dev=hdmi,1920x1080M@60 ip=dhcp fbmem=28M nfsroot=10.192.224.178:/nfsroot/r66033/R13.3-pre vmalloc=576M


Oprofile:
opcontrol --setup --event=CPU_CYCLES:15000:::1:1 --vmlinux=/system/xbin/vmlinux --kernel-range=0xc0008000,0xcfffffff
opcontrol --setup --timer --vmlinux=/system/xbin/vmlinux --kernel-range=0xc0008000,0xcfffffff
opcontrol --setup --vmlinux=/vmlinux --kernel-range=0xc0008000,0xcfffffff
opcontrol --reset
opcontrol --start
opcontrol --stop


Texture image:
frameworks/base/opengl/tests/gl_yuvtex
TexBuffer = new GraphicBuffer
TexBuffer->lock
TexBuffer->unlock
TexBuffer->getNativeBuffer()
eglCreateImageKHR
glGenTextures(1, &yuvTex);
glBindTexture(GL_TEXTURE_EXTERNAL_OES, yuvTex);
glEGLImageTargetTexture2DOES(GL_TEXTURE_EXTERNAL_OES, (GLeglImageOES)img);


Display steps:
dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY)
eglInitialize(dpy, &majorVersion, &minorVersion)
window = android_createDisplaySurface()
EGLUtils::selectConfigForNativeWindow(dpy, s_configAttribs, window, &myConfig)
surface = eglCreateWindowSurface(dpy, myConfig, window, NULL)
context = eglCreateContext(dpy, myConfig, EGL_NO_CONTEXT, context_attribs);
eglMakeCurrent(dpy, surface, surface, context)
eglQuerySurface(dpy, surface, EGL_WIDTH, &w);
eglQuerySurface(dpy, surface, EGL_HEIGHT, &h);
glViewport(0, 0, w, h);
eglSwapBuffers(dpy, surface);
— Preceding unsigned comment added by 192.88.158.212 (talk) 02:26, 27 April 2012 (UTC)[reply]


Triple Buffer:
modules/gralloc/framebuffer.cpp

  1. define NUM_BUFFERS 3


Others:
svc power stayon true &
Find . –name xxx
monkey -p com.android.gallery3d -v 50000