GPIO status

Kernel development related

Re: GPIO status

Postby Dopi » Mon Jan 31, 2011 10:48 am

Jose_Paramore wrote:maybe I am wrong but I think the flickering is because of frame buffer isn't it?
Cheers,
Jose

Yes, this could be the case. I will contact Almar on this as he had some ideas how to solve this from his work on the Omnia II.

Cheers,
Dopi
Ad banners support the JetDroid forum. Please consider clicking them once in a while.
User avatar
Dopi
Dev Team
Dev Team
 
Posts: 926
Joined: Sun Aug 22, 2010 9:47 pm

Advertisement

Re: GPIO status

Postby MadRocker » Sat Feb 05, 2011 12:22 am

See the testing forums 2D/3D clone for 4Feb cloned Eclair as there is few or no flicker in it.
MadRocker
Dev Team
Dev Team
 
Posts: 528
Joined: Sun Dec 12, 2010 7:15 am

Re: GPIO status

Postby MadRocker » Sun Feb 06, 2011 6:17 am

PMEM works with 29 Jan kernel "KB kernel"
Code: Select all
<6>[    1.254622] brd: module loaded
<6>[    1.265710] loop: module loaded
<6>[    1.265986] pmem: 1 init
<6>[    1.267288] pmem_render: 0 init
<6>[    1.268527] pmem_stream: 0 init
<6>[    1.269776] pmem_stream2: 0 init
<6>[    1.271148] pmem_preview: 0 init
<6>[    1.272420] pmem_picture: 0 init
<6>[    1.273955] pmem_jpeg: 0 init
<6>[    1.275863] PPP generic driver version 2.4.2
<6>[    1.278439] PPP MPPE Compression module registered
<6>[    1.278643] NET: Registered protocol family 24


Code: Select all
<6>[    2.561735] S3C6400 MFC Driver, (c) 2007 Samsung Electronics
<4>[    2.583453] S3C6400 MFC driver module init OK.
<6>[    2.591971] S3C PostProcessor Driver v3.12, (c) 2009 Samsung Electronics
<6>[    2.610357] S3C Rotator Driver, (c) 2008 Samsung Electronics
<6>[    2.627328] s3c_rotator_probe called
<4>[    2.636944] s3c_rotator_probe success
<6>[    2.646012] S3C JPEG Driver, (c) 2007 Samsung Electronics
<4>[    2.659160]  S3C G2D  Init : Done
<6>[    2.667751] S3C G3D Driver, (c) 2007-2009 Samsung Electronics
<4>[    2.685794] s3c_g3d version : 0x1050000
<4>[    2.694263] G3D_RESERVED_MEM_SIZE : 32 MB
<4>[    2.702586] G3D_CHUNK_SIZE : 2 MB
<4>[    2.710989] G3D_CHUNK_NUM : 16 (UI_CHUNK:3)
<4>[    2.719218] 0 th virt_addr = 0xcb000000, phy_addr = 0x5b000000
<4>[    2.735583] 1 th virt_addr = 0xcb200000, phy_addr = 0x5b200000
<4>[    2.751817] 2 th virt_addr = 0xcb400000, phy_addr = 0x5b400000
<4>[    2.768326] 3 th virt_addr = 0xcb600000, phy_addr = 0x5b600000
<4>[    2.784729] 4 th virt_addr = 0xcb800000, phy_addr = 0x5b800000
<4>[    2.801383] 5 th virt_addr = 0xcba00000, phy_addr = 0x5ba00000
<4>[    2.818068] 6 th virt_addr = 0xcbc00000, phy_addr = 0x5bc00000
<4>[    2.835096] 7 th virt_addr = 0xcbe00000, phy_addr = 0x5be00000
<4>[    2.852236] 8 th virt_addr = 0xcc000000, phy_addr = 0x5c000000
<4>[    2.869722] 9 th virt_addr = 0xcc200000, phy_addr = 0x5c200000
<4>[    2.887386] 10 th virt_addr = 0xcc400000, phy_addr = 0x5c400000
<4>[    2.904886] 11 th virt_addr = 0xcc600000, phy_addr = 0x5c600000
<4>[    2.922564] 12 th virt_addr = 0xcc800000, phy_addr = 0x5c800000
<4>[    2.940257] 13 th virt_addr = 0xcca00000, phy_addr = 0x5ca00000
<4>[    2.957791] 14 th virt_addr = 0xccc00000, phy_addr = 0x5cc00000
<4>[    2.975593] 15 th virt_addr = 0xcce00000, phy_addr = 0x5ce00000
<6>[    2.993731] S3C CMM Driver, (c) 2008 Samsung Electronics


The black screen issue we had after normal animation is dew to "out of memory" error and editing the init.rc 6 slots + lowmemorykiller and freeing mem will get it working again.

IE: "Thijs-Working-26Jan2011.tar.gz" upload (egl+modules folder only) now works with enough free mem + 29jan KB kernel on 4Feb-Eclair.
Code: Select all
refresh rate = 60.00 Hz

I/SurfaceFlinger( 1865): OpenGL informations:
I/SurfaceFlinger( 1865): vendor    : Samsung Electronics
I/SurfaceFlinger( 1865): renderer  : FIMG-3DSE v1.5
I/SurfaceFlinger( 1865): version   : OpenGL ES-CM 1.1

Will clean 4Feb-Eclair up and post a working clone then we can github it from there.

Alternative look at this link that explains the free mem by using apps.
http://www.androidcentral.com/fine-tuning-minfree-settings-improving-androids-multi-tasking

We should likely add swap partition or swap file on sdcard to help with future mem issues.
MadRocker
Dev Team
Dev Team
 
Posts: 528
Joined: Sun Dec 12, 2010 7:15 am

Re: GPIO status

Postby Thijs » Sun Feb 06, 2011 2:47 pm

Hi MadRocker,

Good investigation & analysis! Great to see we solved that one!

Best regards - Thijs
Thijs
Dev Team
Dev Team
 
Posts: 114
Joined: Fri Sep 10, 2010 6:28 pm

Re: GPIO status

Postby Dopi » Mon Feb 07, 2011 11:02 pm

Thijs wrote:Good investigation & analysis! Great to see we solved that one!

Yes, I agree. Great work! Can't wait to see the patches :D

Cheers,
Dopi
Ad banners support the JetDroid forum. Please consider clicking them once in a while.
User avatar
Dopi
Dev Team
Dev Team
 
Posts: 926
Joined: Sun Aug 22, 2010 9:47 pm

Re: GPIO status

Postby MadRocker » Wed Feb 09, 2011 5:52 am

Update for developer testing + moding:
Busy uploading the 3D changes with zero / no flicker and decent responsiveness with every max animation and other slow down effects on.

Once the developers reviewed this files + make it more stable then we can make it available for the other users.

2D/3D FPS is still 2 to 3 fps in quadrant.apk using KB 29Jan Kernel with all animation /slow down stuff enabled.

This init.rc and the advanced init.rc I am working on opens up a lot of hardware that is already there but not active or gets it 80% and is missing some ../etc/*.conf files.

Changes:
Replaces whole /system/lib and its content with added CM 6.1 eclair files and a few others.
Replaces init.rc and add 2 missing files (not now needed but) good to have in /system/bin for gps.

Why ../lib replace = 65 extra lib files we do not have there is 1 or 2 files that makes this work, did not find correct ones yet.

init.rc needs a lot of love from the developers. Something in only this init.rc makes this work and I could not find what it is yet. :oops:
lowmemorykiller options works decent for now but might need future review.

What does not work = wifi not active, sdcard fat32 not mounting.
Did not test Gapps on this yet.

Easter egg's:
You might see evdev accelerometer something possibly a module or likely 1 of the newer 1FEB Dopi module I was testing, not sure + triggered by this init.rc . Kernel.log has interesting GPIO entry's.
AKM8973 compass driver: init ??

Sensitive files that changes / messes everything up:
loglevel "anything above 3 eats a lot of ram in kernel and in init.rc"
init.rc ,
egl folder , ( med sensitivity, most stable version of the fimg I have found and ginger android.so )
chunk + gralloc , ( extremely sensitive, pmem other mem issues, black screen with just white _ , ioctl )
2d /3d modules, ( low sensitivity )
changing one of these files changes from

Code: Select all
I/SurfaceFlinger( 1865): OpenGL informations:
I/SurfaceFlinger( 1865): vendor    : Samsung Electronics
I/SurfaceFlinger( 1865): renderer  : FIMG-3DSE v1.5
I/SurfaceFlinger( 1865): version   : OpenGL ES-CM 1.1

to
Code: Select all
I/SurfaceFlinger( 1868): OpenGL informations:
I/SurfaceFlinger( 1868): vendor    : Android
I/SurfaceFlinger( 1868): renderer  : Android PixelFlinger 1.4
I/SurfaceFlinger( 1868): version   : OpenGL ES-CM 1.0


This last "Android PixelFlinger 1.4" is the one I have active in this update as it is nicer user experience, will also upload the 5Feb-FIMG version where "FIMG-3DSE v1.5" , "not stable" happened and needs extra lib files to complete, for reference if needed.

This files ../egl and ../hw should work in Froyo and ginger as well + possibly need to use gralloc + chunk from that platform, (not sure ioctl issue) Needs more testing. Have to use default froyo / ginger ../lib if testing this.

All of this is open for updating and improvement, feel free to do so.
http://code.google.com/p/mad-rocker-s8000/downloads/detail?name=JetDroid%20Video%20Patch%208Feb.tar.gz&can=2&q=

5Feb-FIMG updated from 4Feb Fimg working for reference:
http://code.google.com/p/mad-rocker-s80 ... z&can=2&q=
MadRocker
Dev Team
Dev Team
 
Posts: 528
Joined: Sun Dec 12, 2010 7:15 am

Re: GPIO status

Postby sploutch » Wed Feb 09, 2011 12:10 pm

You did a fantastic job.

With the latest kernel experimental-2.6.29-dopi there is no flickering, sleep works very well and we can now change the brightness settings.

It is a real fantastic advanced, thank you for your work. :D

Cheers,
Sploutch
JetPlatform Froyo on GitHub : https://github.com/sploutch
User avatar
sploutch
Dev Team
Dev Team
 
Posts: 139
Joined: Fri Oct 22, 2010 1:16 pm
Location: France

Re: GPIO status

Postby Jose_Paramore » Wed Feb 09, 2011 3:17 pm

How did you changed the brightness settings? I can't do this :S
And sleeps works... but the phone is just like dead, maybe I have to install GApps...
P.S.: I'm using only this: http://code.google.com/p/mad-rocker-s8000/downloads/detail?name=Fimg-Working-5Feb.tar.gz&can=2&q=
Come on JétDroid team!!! ;D
User avatar
Jose_Paramore
Forum Moderator
Forum Moderator
 
Posts: 312
Joined: Thu Oct 21, 2010 3:44 pm
Location: Spain

Re: GPIO status

Postby MadRocker » Wed Feb 09, 2011 7:18 pm

Hi Jose, he is likely using the better version 8Feb.
5Feb = unstable. Lots of white screens on gallery exit and other stuff.

Both needs a lot of testing and adjustment, this downloads seems to works for now, this does not mean they are correct or optimal. They would likely make nasty for other things as well.

For the developers that want to do more testing I added init.rc folder on github, the developer init.rc is what I used on my recent Froyo testing, just not sure how well all the #### is, as it should be ignored during the script loading.

Different options in init.rc triggers more hardware in combination with some modules and lots more GPIO activity then as well.

NB: If you need write access to any files then shout as we can use this as testing github and maybe have good versions on Dopi github or something. https://github.com/MadRocker This is all new to me so will get more organized in the next few days.
MadRocker
Dev Team
Dev Team
 
Posts: 528
Joined: Sun Dec 12, 2010 7:15 am

Re: GPIO status

Postby sploutch » Thu Feb 10, 2011 1:27 am

Jose_Paramore wrote:How did you changed the brightness settings? I can't do this :S

I use the Jetplatform0.3pre1
kernel : latest experimental-2.6.29-dopi

Put JetDroid in sleep mode, then wake up him, go to the settings and adjust the brightness
JetPlatform Froyo on GitHub : https://github.com/sploutch
User avatar
sploutch
Dev Team
Dev Team
 
Posts: 139
Joined: Fri Oct 22, 2010 1:16 pm
Location: France

PreviousNext

Return to JetKernel

Who is online

Users browsing this forum: No registered users and 1 guest

  • Advertisement
cron