PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   Android On TP2 (http://forum.ppcgeeks.com/forumdisplay.php?f=179)
-   -   Test with framebuffer (http://forum.ppcgeeks.com/showthread.php?t=138451)

tiad8 12-16-2010 04:05 PM

Re: Test with framebuffer
 
Quote:

Originally Posted by steveholtam (Post 2014780)
I had the flickering during the entire boot animation. I am using all of your latest files, except I am using the 11/26 gles file and I'm back to the 12/2 build.prop.

Just ran Neocore, 19.7 and flickering the entire time.

I'm going to try the 11/29 gles and see what happens.

yes. 11.29 3d and grolloc 11.29. works really good. i already test it with the 11.26 i got some flickering.

to be honest i use 11.26 if im playing games and a few other stuff. but 11.29 3d and gralloc 11.30 very stable. thanks

steveholtam 12-16-2010 04:15 PM

Re: Test with framebuffer
 
Yep, switched to the 11/29 gles and no more flickering. Also got my highest neocore score, 20.6 with no sound. This is about as fast as a stock Eros I think.

InvincibleLiving 12-16-2010 10:04 PM

Quote:

Originally Posted by steveholtam (Post 2014796)
Yep, switched to the 11/29 gles and no more flickering. Also got my highest neocore score, 20.6 with no sound. This is about as fast as a stock Eros I think.

quite impressive if you ask me!



Sent from my MSM using Tapatalk

tiger2wander 12-17-2010 12:27 AM

Re: Test with framebuffer
 
2 Attachment(s)
Quote:

Originally Posted by InvincibleLiving (Post 2014773)
Hey Tiger, I want to know more about the swapfile you referenced, can you share? TIA

Yeah, I've got it by create a swapfile at /sdcard/swapfile by `dd` command on the my Linux box:
Code:

dd if=/dev/zero of=$HOME/swapfile bs=1M count=64
and then make Swap FS with that file
Code:

mkswap -f $HOME/swapfile
Then modified froyo.user.conf to look like this:
Code:

# custom shell commands, these commands run last
custom_shells{
  chmod 777 /etc/dbus.conf

  echo "Remove dirty files"
  rm /sdcard/FSCK*.REC
  rm /sdcard/fsck*.rec

  echo "Copy hosts to remove ad"
  cp -fv /sdcard/tools/etc/hosts /data/etc/hosts
  cp -fv /sdcard/tools/etc/hosts /system/etc/hosts
 
  echo "Mounting external mods."
  mount --bind /sdcard/mods/libGLES_qcom.so.11.29.10 /system/lib/egl/libGLES_qcom.so
  mount --bind /sdcard/mods/gralloc.msm7k.so /system/lib/hw/gralloc.msm7k.so
  mount --bind /sdcard/mods/build.prop /system/build.prop
 
  echo "Mounting swapfile on /sdcard/swapfile"
  swapon /sdcard/swapfile
}

I was move all the test drivers to /sdcard/mods to get more clean look at root of my sdcard, also I have done with some tricks to remove some dirty files generated while fsck is run, mapped hosts file to remove ad from application...

Also, I was modified block "swap_file" to look like this:
Code:

#create swap file for compcache or linux swap
swap_file{
  swap_file_en=1  # set to 1 to create swap file
        # set to 0 to del the swap file
  linux_swap_file_size=64 # swap file size in MB
  linux_swap_file=/sdcard/swapfile  # pointing to the swap file location ( must be /system/sd/)
}

But seen its look not make any sense and kernel not go to use swap, just ignore it.

This is block I was modified to make kernel using more swap when more applications running to give more ram for focusing activity:
Code:

#virtual memory
sys_vm{       
  sys_vm_en=1 # enable(1) or disable(0) virtual memory configurations
  swappiness=20 # default 60
  page_cluster=0  # default 3, (0 since CM3.9.6+)
  laptop_mode=5 # default 0
  dirty_expire_centisecs=3000 # default 3000
  dirty_writeback_centisecs=1500  # default 500
  dirty_background_ratio=3  # default 5
  dirty_ratio=5 # default 10
  vfs_cache_pressure=200  # default 100 (tendency of the kernel to reclaim cache memory)
  overcommit_memory=1 # default 0 (0=Heuristic 1=Always overcommit 2=Don't overcommit)
  overcommit_ratio=80 # default 50 (% of Physical+Virtual memory to allow allocation)
}

That is what's I've done. I have attach my froyo.user.conf and swapfile as you need to make it. (Good for M$'s user which not have dd tool already :P )

tiger2wander 12-17-2010 12:32 AM

Re: Test with framebuffer
 
Quote:

Originally Posted by [ACL] (Post 2014787)
One last thing. Can yall test gallery3d ? this doesnt work on the Raph and is the main reason why this commit is taking so long.

It works on rhod nand but i need to make sure haret works ok as well.

My phone was go back to bootanimation at the morning when I wake up and start the browser. bootanimation was play some cycle then stop loading, seen it freezing and now I can not start android again, infinitive loop at bootanimation screen, its playing for few minutes before stop :( I can access adb now, do some dump log to see what's happen. After that I'm going to try the older kernel and if failed then delete data.img :-)

EDITED: Confirmed, I can boot android up after switch back to 12.12.10 kernel and remove all /data/dalvik-cache/*
I'm still get freeze at the bootanimation screen even with 12.12.10 kernel. Going to test NAND and then fresh install of HaRET :(

docnas 12-17-2010 02:21 AM

Re: Test with framebuffer
 
Ok running 11-30 and 11-29 gral and lib and using new module and imagez

Sprint TP2
1st run -fps2d avg 29 stdev 6.31

2nd run -fps2d avg 28 stdev 7.92

3rd run phone froze for 2 mintutes forced closed restarted

4th run -fps2d avg 29 stdev 6.07

not sure whey the stdev value changed every time though

Neocore score was run 18.6 (without sound 20) 3rd run gave me 19.2
quadrant= 574, 2nd run 660

this is a brand new install with deleted data image after waiting 10 minutes after it booted and its overclocked to 787200

Adrenalinus 12-17-2010 08:35 AM

Re: Test with framebuffer
 
Quote:

Originally Posted by [ACL] (Post 2014787)
One last thing. Can yall test gallery3d ? this doesnt work on the Raph and is the main reason why this commit is taking so long.

It works on rhod nand but i need to make sure haret works ok as well.

Working on mine without any problem.

[ACL] 12-17-2010 09:44 AM

Re: Test with framebuffer
 
Ok you guys can stop testing. I committed the updates but the gles lib and gralloc still are being examined. So for now keep modding your startup so you can use the ones that work for you. Also someone reported the stock xdandroid works fine so whats the point in even moving away from it?

not sure but i guess i'll leave it up to you guys to give me a good answer. Also for those of you sending money to the wrong place my donate button is on my sig.. someone told me they sent money to the wrong person so i want to make sure no one else makes the same mistake

zeurx 12-17-2010 12:41 PM

Re: Test with framebuffer
 
Quote:

Originally Posted by tiger2wander (Post 2015134)
Code:

# custom shell commands, these commands run last
custom_shells{
  chmod 777 /etc/dbus.conf

  echo "Remove dirty files"
  rm /sdcard/FSCK*.REC
  rm /sdcard/fsck*.rec

  echo "Copy hosts to remove ad"
  cp -fv /sdcard/tools/etc/hosts /data/etc/hosts
  cp -fv /sdcard/tools/etc/hosts /system/etc/hosts
 
  echo "Mounting external mods."
  mount --bind /sdcard/mods/libGLES_qcom.so.11.29.10 /system/lib/egl/libGLES_qcom.so
  mount --bind /sdcard/mods/gralloc.msm7k.so /system/lib/hw/gralloc.msm7k.so
  mount --bind /sdcard/mods/build.prop /system/build.prop
 
  echo "Mounting swapfile on /sdcard/swapfile"
  swapon /sdcard/swapfile
}



A better method to make it work for everyone would be...
Code:

# custom shell commands, these commands run last
custom_shells{
  chmod 777 /etc/dbus.conf

# Setup vars --------------------
FSCK_CLEAN=`/bin/grep -o "fsck_cleanup=.*" /proc/cmdline | /bin/sed -e "s/.*fsck_cleanup=//g" -e "s/ .*//g"`
3D_TEST=`/bin/grep -o "3d_test=.*" /proc/cmdline | /bin/sed -e "s/.*3d_test=//g" -e "s/ .*//g"`
SWAP_ENABLE=`/bin/grep -o "swap_enable=.*" /proc/cmdline | /bin/sed -e "s/.*swap_enable=//g" -e "s/ .*//g"`
CARD_PATH=`/bin/grep -o "rel_path=.*" /proc/cmdline | /bin/sed -e "s/.*rel_path=//g" -e "s/ .*//g"`
if [ "$CARD_PATH" = "" ];then
        CARD_PATH="andboot"
fi;
if [ -d /sdcard/$CARD_PATH ] ; then
        card=/sdcard/$CARD_PATH
else
        card=/sdcard
fi
# -------------------------------

  if [ "$FSCK_CLEAN" == "1" ]; then
    echo "Remove dirty files"
    rm /sdcard/FSCK*.REC
    rm /sdcard/fsck*.rec
  fi

  if [ -f /sdcard/$card/extras/hosts ]; then
    echo "Copy hosts to remove ad"
    cp -fv $card/extras/hosts /data/etc/hosts
    cp -fv $card/extras/hosts /system/etc/hosts
  fi
 
  if [ "$3D_TEST" == "1" ] && [ -f $card/extras/3d/libGLES_qcom.so ] && [ -f $card/extras/3d/gralloc.msm7k.so ] && [ -f $card/extras/3d/build.prop ]; then
    echo "Mounting external mods."
    mount --bind $card/extras/3d/libGLES_qcom.so /system/lib/egl/libGLES_qcom.so
    mount --bind $card/extras/3d/gralloc.msm7k.so /system/lib/hw/gralloc.msm7k.so
    mount --bind $card/extras/3d/build.prop /system/build.prop
  fi

  if [ "$SWAP_ENABLE" == "1" ] && [ -f $card/swap ]; then
    echo "Mounting swapfile on $card/swap"
    swapon $card/swap
  fi

Then place your extra file in /sdcard/andboot/extras and extras/3d. Enable the options using "fsck_cleanup=1 3d_test=1 swap_enable=1" in your startup.txt and if the files exists the options will be enabled, if not then no worry it will just default to normal behavior. I hope this doesn't step on anyones toes and that adding these to the startup.txt isn't that bad of a thing.


All times are GMT -4. The time now is 11:28 AM.

Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com


Content Relevant URLs by vBSEO 3.6.0