Active Topics

 


Reply
Thread Tools
Posts: 210 | Thanked: 841 times | Joined on Feb 2013
#31
Originally Posted by pycage View Post
I wonder why a TCP connection. Shouldn't a local Unix datagram socket be good enough but without the additional overhead of network and TCP?
in the end i might write a kernel module which does the communication between the host and the chroot, which seems to be a nice solution, or does somebody have a better idea?
 

The Following User Says Thank You to liar For This Useful Post:
Posts: 165 | Thanked: 625 times | Joined on Oct 2012
#32
hmm...sorry, what is the advantage of using your own module over using unix local sockets (or even FIFOs). If both ends of the communication are in userspace, I wonder if a custom kernel module will be faster than unix sockets?
__________________
My N9 apps: MeeTeleGram, Dukto, Prayers, Saaghar, N9 Easy Boot
Donations are appreciated
 

The Following 2 Users Say Thank You to hedayat For This Useful Post:
Posts: 210 | Thanked: 841 times | Joined on Feb 2013
#33
Originally Posted by hedayat View Post
hmm...sorry, what is the advantage of using your own module over using unix local sockets (or even FIFOs). If both ends of the communication are in userspace, I wonder if a custom kernel module will be faster than unix sockets?
i haven't fully thought this through but the module could have some sort of shared memory between the chroot and the host renderer, which might make it faster because nothing has to be sent...
 

The Following 2 Users Say Thank You to liar For This Useful Post:
Posts: 210 | Thanked: 841 times | Joined on Feb 2013
#34
okay i am facing a pretty weird bug... no window is displayed... i tried to make an application which des exactly the same as the renderer and that works... then i tried to copy this application into the renderer and that still does not display a window! :O???
 

The Following User Says Thank You to liar For This Useful Post:
Posts: 210 | Thanked: 841 times | Joined on Feb 2013
#35
once i link against utils the test application fails, but i don't know why yet...
 

The Following 2 Users Say Thank You to liar For This Useful Post:
Posts: 210 | Thanked: 841 times | Joined on Feb 2013
#36
ok the window does appear now but it renders garbage
 

The Following 4 Users Say Thank You to liar For This Useful Post:
HtheB's Avatar
Moderator | Posts: 3,718 | Thanked: 7,419 times | Joined on Dec 2009 @ Bize Her Yer Trabzon
#37
https://www.youtube.com/watch?v=1NprEtCBVKQ
__________________
www.HtheB.com
Please donate if you think I'm doing a good job.
 

The Following User Says Thank You to HtheB For This Useful Post:
Posts: 165 | Thanked: 625 times | Joined on Oct 2012
#38
Originally Posted by liar View Post
i haven't fully thought this through but the module could have some sort of shared memory between the chroot and the host renderer, which might make it faster because nothing has to be sent...
Yeah, that might be faster. Again, you probably doesn't need a kernel module for it. It should be easy enough to have a shared memory accessible by both main OS and chroot one.
__________________
My N9 apps: MeeTeleGram, Dukto, Prayers, Saaghar, N9 Easy Boot
Donations are appreciated
 

The Following User Says Thank You to hedayat For This Useful Post:
endsormeans's Avatar
Posts: 3,141 | Thanked: 8,161 times | Joined on Feb 2013 @ From my Gabriola Island hermitage, near the Edge of the World
#39
Originally Posted by HtheB View Post
https://www.youtube.com/watch?v=1NprEtCBVKQ
hahahaha...durn made me laugh with that .. HtheB
__________________
Lurker since 2007, Member since 2013, Certifiable since 1972

Owner of :
1-n770 (in retirement), 3-n800's / 3-n810's (still in daily use), 5-n900's ((3 are flawless, 1 loose usb ( parts), 1 has no telephony (parts))
3-nexus 5's : 1 w/ Floko Pie 9.1 (running beautifully) waiting for Stable Droid 10 rom, 1 w/ ̶Ubuntu Touch, 1 with Maru OS (intend maemo leste when ready)

1/2 - neo900 pre- "purchased" in 2013. N̶o̶w̶ ̶A̶w̶a̶i̶t̶i̶n̶g̶ ̶r̶e̶f̶u̶n̶d̶ ̶p̶r̶o̶c̶e̶s̶s̶ ̶l̶a̶s̶t̶ ̶f̶e̶w̶ ̶y̶e̶a̶r̶s̶ - neo900 start up declared officially dead -
Lost invested funds.


PIMP MY N8X0 (Idiot's Guide and a video walkthrough)http://talk.maemo.org/showthread.php?t=94294
THE LOST GRONMAYER CATALOGShttp://talk.maemo.org/showthread.php...ight=gronmayer
N8X0 VIDEO ENCODING THE EASY WAYhttp://talk.maemo.org/showthread.php...ght=mediacoder
242gb ON N800http://talk.maemo.org/showthread.php?t=90634
THE PAIN-FREE MAEMO DEVELOPMENT LIVE DISTRO-ISO FOR THE NOOB TO THE PROhttp://talk.maemo.org/showthread.php?t=95567
AFFORDABLE MASS PRODUCTION FOR MAEMO PARTShttp://talk.maemo.org/showthread.php?t=93325

Meateo balloons now available @ Dave999's Meateo Emporium
 
Posts: 210 | Thanked: 841 times | Joined on Feb 2013
#40
Originally Posted by hedayat View Post
Yeah, that might be faster. Again, you probably doesn't need a kernel module for it. It should be easy enough to have a shared memory accessible by both main OS and chroot one.
i am not sure if this is possible, because bionic probably has it's own implementation of mmap and so on, although if mmap is called through the kernel it might be possible

EDIT: current issue: GL_INVALID_OPERATION, this error comes from the blob drivers when the chroot calls glCopyTexImage2D, what is weird though, i added printfs in the decoder methods and it seems glCopyTexImage2D is never called on the host

Last edited by liar; 2015-06-22 at 06:10.
 

The Following User Says Thank You to liar For This Useful Post:
Reply

Tags
apkenv


 
Forum Jump


All times are GMT. The time now is 23:15.