maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Alternatives (https://talk.maemo.org/forumdisplay.php?f=36)
-   -   debian jessie image for N900 (https://talk.maemo.org/showthread.php?t=93251)

AapoRantalainen 2014-06-15 11:52

Re: debian jessie image for N900
 
Quote:

Originally Posted by Android_808 (Post 1429619)
is hal really necessary though? if we (maemo5) are only using it to automount hotplugged devices, udev+udisks would be sufficient. to use old software maybe but are you risking recreating the whole fork/cross version situation we have already.

This is indeed something I want to avoid. I don't yet know how much hal is even used. One package just needed hal-dev, and I tested can I produce hal-dev.deb. (Yes, I can). It might be better to not use hal, but udev.


Quote:

Originally Posted by Android_808 (Post 1429635)
clutter: does using gl instead of gles make much difference in terms of performance? if we can build against a newer version even better.

I haven't had tried to get gles-driver working, thus I have seen rumours it could be possible. Software GL seems to be fast enough at least for testing (30 fps on glxgears). If clutter is later recompiled with gles-flavour, it can just be swapped in use (no modifications, no recompilation for other packages).

Quote:

Originally Posted by Android_808 (Post 1429635)
finally, does anyone have instructions for setting up a build environment for this via vbox or scratchbox?

This would be handy. Now I'm compiling everything on device, building one deb could take 15-40 minutes.

AapoRantalainen 2014-06-15 12:40

Re: debian jessie image for N900
 
1 Attachment(s)
I was wrong.

I was wrong how close I was to get something interesting visible to the screen.
I was wrong how slow software GL is.
Here is the first screencast: Debian Jessie on N900 running Hildon-desktop: http://youtu.be/erf_Dr16Pdo


*Backgrond images must be in .pvr format (I don't know why), I took some from PowerVR/GraphicsSDK.
*Changing desktop to another seems to work (because background image changes)
*Pink thing is "hd_launcher_tile_set_icon_name: couldn't find icon tasklaunch_default_application", but clicking it shows application menu, which can be cancelled or it can start application (Don't know will it scroll if there are more icons, probably yes)
*Dash-board (=all running windows) can be achieved with pink thing or with ctrl+backspace.
*Screenshot is disabled currently on code-level.

misiak 2014-06-15 12:56

Re: debian jessie image for N900
 
Quote:

Originally Posted by AapoRantalainen (Post 1429659)
I was wrong how slow software GL is.

Indeed quite slow... However, I remember that in the past I've hit an issue that some GLES code was much much slower due to some messup with window compositing... I cannot give you any direct links now, I'm sorry :( Closest that I found is this post by javispedro: http://talk.maemo.org/showpost.php?p=576020&postcount=7 which seems to also mention clutter, gles, images, etc (maybe that's also the cause of need for backgronds in pvr format? maybe the gles renderer in clutter changes them internally to pvr format as our gpu may only support that, while the gl renderer doesn't do anything to textures as desktop gpus generally tend to support more formats etc?). I think javispedro could help you a lot with getting to know the whole graphics system, I consider him a guru of this stuff in Fremantle.

Quote:

Originally Posted by AapoRantalainen (Post 1429659)
Here is the first screencast: Debian Jessie on N900 running Hildon-desktop: http://youtu.be/erf_Dr16Pdo

It is really amazing achievement, man! :)

edit: qwazix in this thread http://talk.maemo.org/showthread.php?t=84987 also had some fights with clutter and other libs, maybe you could ask him about his advices and what he found during reviews of code.

Android_808 2014-06-15 13:16

Re: debian jessie image for N900
 
great progress. i can't even imagine building xulrunner/gecko on device.

i don't see why i can't build an i686 virtual box image using jessie and install debians cross compile tools. my new pc is nearly done, just waiting on a 4790k at the moment, then i'll have a go.

Android_808 2014-06-15 15:16

Re: debian jessie image for N900
 
if you do investigate gles, be aware that gles headers on maemo are missing definition of glchar. just discovered that trying sdl-2.0.3

wicket 2014-06-15 16:22

Re: debian jessie image for N900
 
Quote:

Originally Posted by AapoRantalainen (Post 1429654)
Quote:

Originally Posted by Android_808 (Post 1429635)
finally, does anyone have instructions for setting up a build environment for this via vbox or scratchbox?

This would be handy. Now I'm compiling everything on device, building one deb could take 15-40 minutes.

I'm not sure if this works with caveman's image but I can chroot straight into my images on my PC, qemu runs automatically (I'm building my images using qemu-debootstrap).

Sorry for the delay in releasing my scripts. I'm almost done testing but IRL stuff keeps getting in the way.

AapoRantalainen 2014-06-15 17:40

Re: debian jessie image for N900
 
Quote:

Originally Posted by Android_808 (Post 1429673)
if you do investigate gles, be aware that gles headers on maemo are missing definition of glchar. just discovered that trying sdl-2.0.3

I don't have any ideas how I could use GLES.


I have nokia-binaries -repository in /etc/apt/sources and downloaded packages with aptitude

Code:

aptitude download opengles-sgx-img-common:armel libgles2-sgx-img-dev:armel libgles2-sgx-img:armel

ar x libgles2-sgx-img_0.20100611.6+0m5_armel.deb
tar xvf data.tar.gz

file ./usr/lib/libGLESv2.so
./usr/lib/libGLESv2.so: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, stripped

ldd ./usr/lib/libGLESv2.so
 not a dynamic executable

Does this mean I need armel libc6 (additionally to armhf libc6) to even plan to use these libraries? And if there some kernel-modules involved, how they could be handled?

misiak 2014-06-15 18:00

Re: debian jessie image for N900
 
Quote:

Originally Posted by AapoRantalainen (Post 1429683)
I don't have any ideas how I could use GLES.


I have nokia-binaries -repository in /etc/apt/sources and downloaded packages with aptitude

Code:

aptitude download opengles-sgx-img-common:armel libgles2-sgx-img-dev:armel libgles2-sgx-img:armel

ar x libgles2-sgx-img_0.20100611.6+0m5_armel.deb
tar xvf data.tar.gz

file ./usr/lib/libGLESv2.so
./usr/lib/libGLESv2.so: ELF 32-bit LSB shared object, ARM, EABI5 version 1 (SYSV), dynamically linked, stripped

ldd ./usr/lib/libGLESv2.so
 not a dynamic executable

Does this mean I need armel libc6 (additionally to armhf libc6) to even plan to use these libraries? And if there some kernel-modules involved, how they could be handled?

Do you have gcc-multilib package installed? Quick search on stack overflow suggested that this might help to ldd. I don't think having armel libc6 is necessary, but I'm not an expert sadly.

Android_808 2014-06-15 18:49

Re: debian jessie image for N900
 
why not grab meege ce version? it was armhf iirc

edit: mer files:

http://repo.merproject.org/obs/nemo:...mv7hl/armv7hl/
http://repo.merproject.org/obs/nemo:...:/omap3:/n900/

theres even a version for wayland

freemangordon 2014-06-15 20:15

Re: debian jessie image for N900
 
Guys, I didn't get which kernel is used (and I am too lazy right now to re-read the whole thread), but I can provide patches for or push to github 3.15-rc7 with working SGX driver that comes with omap1 kernel. No idea which userland drivers it will work with (besides those from fremantle).

http://talk.maemo.org/showpost.php?p...&postcount=115


All times are GMT. The time now is 01:50.

vBulletin® Version 3.8.8