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)

[ACL] 12-16-2010 06:28 AM

Test with framebuffer
 
Can i get some peeps to test this out on haret (no nand)?

Index of /files/test/

This is a test with the .35fb. There is a good chance you will need to use the latest gralloc and lib since .35 doesnt like the original libs due to the memory miss match.

if this goes well.. then i will commit it tonight.

friedmjb 12-16-2010 08:03 AM

Re: Test with framebuffer
 
ACL - can you post a link to the latest grollac and GLIB? or should I just use the one's from TIAD's thread? 11/26 - 12/1

tiad8 12-16-2010 09:37 AM

Re: Test with framebuffer
 
Quote:

Originally Posted by [ACL] (Post 2014566)
Can i get some peeps to test this out on haret (no nand)?

Index of /files/test/

This is a test with the .35fb. There is a good chance you will need to use the latest gralloc and lib since .35 doesnt like the original libs due to the memory miss match.

if this goes well.. then i will commit it tonight.

ACL. quick question, do we have to download both files?. i downloaded modules-2.6.27.46-01232-gb7033df-dirty.tar.gz but for reason the zImage downloaded as txt format.

thanks man. i love your works

fishingmedic 12-16-2010 09:59 AM

Re: Test with framebuffer
 
ACL, like Tiad noted, can't get the zimage as anything other than a text file.

drewcam888 12-16-2010 10:07 AM

Re: Test with framebuffer
 
Just change the file extension once it is downloaded.

[ACL] 12-16-2010 12:04 PM

Re: Test with framebuffer
 
i ziped it up.. can yall try the zimage again?

tiad8 12-16-2010 12:16 PM

Re: Test with framebuffer
 
Quote:

Originally Posted by [acl] (Post 2014657)
i ziped it up.. Can yall try the zimage again?

it works. I'll test it right know. Thanks

tiger2wander 12-16-2010 12:47 PM

Re: Test with framebuffer
 
[ACL], zImage.gz still download as text/plain, I see the status from wget output on my console! could u please update again?

Code:

┌─(uocnb@oxygen)-(23:45:51-:-16/12)─-]∙-∙∙·
└─(12.16.10-dirty_35fb)─∙· wget http://htcdevs.wirelesstcp.net/files/test/zImage.gz
--2010-12-16 23:45:53--  http://htcdevs.wirelesstcp.net/files/test/zImage.gz
Resolving htcdevs.wirelesstcp.net... 64.166.55.250
Connecting to htcdevs.wirelesstcp.net|64.166.55.250|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1663972 (1.6M) [text/plain]
Saving to: `zImage.gz'

100%[=============================================================================================================>] 1,663,972    216K/s  in 8.9s   

2010-12-16 23:46:03 (182 KB/s) - `zImage.gz' saved [1663972/1663972]

thanks for great job!

tiad8 12-16-2010 12:57 PM

Re: Test with framebuffer
 
Quote:

Originally Posted by tiger2wander (Post 2014672)
[acl], zimage.gz still download as text/plain, i see the status from wget output on my console! Could u please update again?

Code:

┌─(uocnb@oxygen)-(23:45:51-:-16/12)─-]∙-∙∙·
└─(12.16.10-dirty_35fb)─∙· wget http://htcdevs.wirelesstcp.net/files/test/zimage.gz
--2010-12-16 23:45:53--  http://htcdevs.wirelesstcp.net/files/test/zimage.gz
resolving htcdevs.wirelesstcp.net... 64.166.55.250
connecting to htcdevs.wirelesstcp.net|64.166.55.250|:80... Connected.
Http request sent, awaiting response... 200 ok
length: 1663972 (1.6m) [text/plain]
saving to: `zimage.gz'
 
100%[=============================================================================================================>] 1,663,972    216k/s  in 8.9s   
 
2010-12-16 23:46:03 (182 kb/s) - `zimage.gz' saved [1663972/1663972]

thanks for great job!

same with me. Thanks

[ACL] 12-16-2010 01:13 PM

Re: Test with framebuffer
 
the zip is fine since im able to uncompress even if it dls as plain text. Does it not load in haret?

tiger2wander 12-16-2010 01:16 PM

Re: Test with framebuffer
 
I can not unzip using 7z, its said corrupted data. I was just try to re-download using wget and can unzip it :). Error was come with file download using Google's Chrome. Go to HaRET now :). Thanks

steveholtam 12-16-2010 01:20 PM

Re: Test with framebuffer
 
I'm going to test it right now for you. One quick question, do I leave the word dirty in the modules name?

tiger2wander 12-16-2010 01:26 PM

Re: Test with framebuffer
 
My bootanimation flashing with some red lines in the end of screen, I'm using skyraider bootanimation package with red color as main color. But home screen show up seen good with no flashing and Screen Dimming work like charm. Going to check some benchmark and report soon!

My RHOD500 using GSM simcard, 3G & Wifi connections. and OC @ 768Mhz.

tiad8 12-16-2010 01:26 PM

Re: Test with framebuffer
 
Quote:

Originally Posted by [ACL] (Post 2014686)
the zip is fine since im able to uncompress even if it dls as plain text. Does it not load in haret?

haret Does not load

it says. failed to load file /storage card/zimage

thanks

EDIT. I FIX IT

tiad8 12-16-2010 01:28 PM

Re: Test with framebuffer
 
Quote:

Originally Posted by tiger2wander (Post 2014694)
My bootanimation flashing with some red lines in the end of screen, I'm using skyraider bootanimation package with red color as main color. But home screen show up seen good with no flashing and Screen Dimming work like charm. Going to check some benchmark and report soon!

My RHOD500 using GSM simcard, 3G & Wifi connections. and OC @ 768Mhz.

how you got zimage to work. thanks

EDIT. I FIX IT

modeuce 12-16-2010 01:28 PM

Re: Test with framebuffer
 
Try renaming the zip so that the .gz is no longer in the zImage.gz name like drewcam888 suggested. File name should just be "zImage" not "zImage.gz" Worked for me but neocore flickers the whole time. Thanks for all your guys hard work!

steveholtam 12-16-2010 01:30 PM

Re: Test with framebuffer
 
Well, its working for me. At least it booted. I put this on a clean boot (new data file). The xda boot animation was flickering though.

I rebooted again and everything seems to be working. The only issue was the flickering/tearing boot video. It seems a bit faster.

tiger2wander 12-16-2010 01:44 PM

Re: Test with framebuffer
 
Benchmark report:
- Fps2D:
+ 1. avg=30 stdev=4.97
+ 2. avg=30 stdev=4.28
+ 3. avg=30 stdev=4.39
+ 4. avg=30 stdev=4.63
- Quadrant: 3 times tested: flashing screen with a colored box in the bottom of screen while testing 3D, score: 431

My last benchmark with kernel 12.12.10 from tiad8 is:
- Fps2D: avg=30 stdev=4.78
- Quadrant: score 660 with no flashing went 3D test

natemcnutty 12-16-2010 01:45 PM

Re: Test with framebuffer
 
Quote:

Originally Posted by steveholtam (Post 2014700)
Well, its working for me. At least it booted. I put this on a clean boot (new data file). The xda boot animation was flickering though.

I rebooted again and everything seems to be working. The only issue was the flickering/tearing boot video. It seems a bit faster.

Was the flickering only during the first few seconds of boot and then smoothed out after that? Also, what variant are you on?

tiger2wander 12-16-2010 01:50 PM

Re: Test with framebuffer
 
I'm unzip zImage.gz to zImage and HaRET boot fine for me, just checked with old zImage with file command and its reported as:
Code:

┌─(uocnb@oxygen)-(00:17:07-:-16/12)─-]∙-∙∙·
└─(12.16.10-dirty_35fb)─∙· file '/media/t2w/andboot/bk/12.12.10/zImage'
/media/t2w/andboot/bk/12.12.10/zImage: data

By the theory, "z" prefix is meaning zipped kernel image (just FYI: some of zip method is used such as: lzma, gzip, lzo ...) but dunno why "file" command report as "data" :-)

tiad8 12-16-2010 01:58 PM

Re: Test with framebuffer
 
ok guys. this is what i have

FPS2D 29
NEOCORE 20.4
QUADRANT 614

11.30 gralloc
11.29 3d

no flickering here. none

very stable. ACL

thanks

tiger2wander 12-16-2010 01:59 PM

Re: Test with framebuffer
 
For your need, I have posted dmesg and logcat here:
- dmesg: [ 0.000000] Linux version 2.6.27.46-01232-gb703 - Uoc Nguyen
- logcat: E/Tethering( 1664): attempting to remove unknown i - Uoc Nguyen

tiger2wander 12-16-2010 02:09 PM

Re: Test with framebuffer
 
Yeah, rebooting with 3D 11.29 driver, no flickering at least with boot animation :D
Very fast boot even I've just removed all dalvik-cache :D.
Continuous testing with this driver and will report soon.

Thanks!

tacotoy 12-16-2010 02:09 PM

Re: Test with framebuffer
 
18.1 on neocore
angry birds full has little if any tearing now

running 11.29/30 gralloc and lib
oc to 700

tiger2wander 12-16-2010 02:29 PM

Re: Test with framebuffer
 
Here is whats I've got:
- Fps2D:
+ 1. avg: 28 stdev:6.83, highest peek is: 50 in >1 second :D, so its great to see.
+ 2. avg: 30 stdev: 4.30
+ 3. avg: 30 stdev: 4.45
- Quadrant:
+ 1. score at 450
+ 2. score at 634 after kill all running tasks and sleep for few seconds to allow my sdcard some rest and make it cooler (I has experienced with performance when heavily IO load on sdcard is not good as NAND for example: time right after boot or downloading/installing application from market, syncing something...)

So, with 11.29 3D driver there is no more flickering/tearing issue! very stable now

Again, I'm still running with OC @ 768Mhz with 64Mb of swap using /sdcard/swapfile, mounted by froyo.user.conf script.

Thanks!

Adrenalinus 12-16-2010 03:26 PM

Re: Test with framebuffer
 
Hey. First of all, as a first time poster, greetings to all and a big thanks to all the TP2 dev team for the effort you put on this project, specially to ACL.

These are mine results:

- Fps2D
1. avg 30 sted 4,69
2. avg 30 sted 4,40
3. avg 30 sted 4,51
4. avg 30 sted 4,11

- Neocore
1. 20,4 FPS
2. 18,5 FPS
3. 18.8 FPS

- Quadrant
1. 566
2. 611
3. 586

Running on Rhod100 with OC @700Mhz and using 11/29 3D driver.

[ACL] 12-16-2010 03:41 PM

Re: Test with framebuffer
 
Awesome.. i want to make sure all the Rhod variants are covered. I will commit this since it looks like it works for almost everyone now.

One thing some people noticed is the spike to 50fps. This is what we are working on now. I just got my hands on the novtec documentation 2 days ago so we are still trying to see how we can benefit from this.

The good news is our topaz brethren are also helping out in the quest for 50fps so lets hope one of us stumble on it. For those of you who havent heard of the theory. We cant update the screen until the vsync happens. It happens only 60times per second, so if we miss it by just a few ms, then we have to wait for the next one killing our fps by half pretty much.

I can share the documentation with anyone who can compile and are willing to make a few changes on their own. This limit was discovered by toastcfh when the 30fps cap was changed on the evo.

https://github.com/toastcfh/Superson...705a7e7fb497b5

The link above is the commit that managed to break 30fps on the evo. I already tried and it does not work for us, but maybe im missing something. Sometimes it takes a few eyes to figure this out.

i had a lot of wine so i cant think any more.. thanks fellas (those of you who tested)

InvincibleLiving 12-16-2010 03:51 PM

Re: Test with framebuffer
 
Quote:

Originally Posted by tiger2wander (Post 2014733)
Here is whats I've got:
- Fps2D:
+ 1. avg: 28 stdev:6.83, highest peek is: 50 in >1 second :D, so its great to see.
+ 2. avg: 30 stdev: 4.30
+ 3. avg: 30 stdev: 4.45
- Quadrant:
+ 1. score at 450
+ 2. score at 634 after kill all running tasks and sleep for few seconds to allow my sdcard some rest and make it cooler (I has experienced with performance when heavily IO load on sdcard is not good as NAND for example: time right after boot or downloading/installing application from market, syncing something...)

So, with 11.29 3D driver there is no more flickering/tearing issue! very stable now

Again, I'm still running with OC @ 768Mhz with 64Mb of swap using /sdcard/swapfile, mounted by froyo.user.conf script.

Thanks!

Hey Tiger, I want to know more about the swapfile you referenced, can you share? TIA

steveholtam 12-16-2010 03:55 PM

Re: Test with framebuffer
 
Quote:

Originally Posted by natemcnutty (Post 2014706)
Was the flickering only during the first few seconds of boot and then smoothed out after that? Also, what variant are you on?

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.

[ACL] 12-16-2010 04:05 PM

Re: Test with framebuffer
 
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.

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 07:11 AM.

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


Content Relevant URLs by vBSEO 3.6.0