maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N9 / N950 (https://talk.maemo.org/forumdisplay.php?f=51)
-   -   The N9/N950 Kernel Upstreaming Force (https://talk.maemo.org/showthread.php?t=95966)

amigo157 2016-05-21 18:16

Re: The N9/N950 Kernel Upstreaming Force
 
Hi! I saw a new image Nemo Mobile but it can not download. Error № 403... Planned a new image Sailfish?

marmistrz 2016-05-28 14:46

Re: The N9/N950 Kernel Upstreaming Force
 
Filip, I should have some free time in July. I think I'd start back where I finished - trying to boot the Nemo kernel under Debian. Or maybe the things have changed and it'd be better to sit down to something else?

It's distant future - about a month, but it's worth to plan a little.

filip.pz 2016-05-28 15:24

Re: The N9/N950 Kernel Upstreaming Force
 
Quote:

Originally Posted by marmistrz (Post 1506406)
Filip, I should have some free time in July. I think I'd start back where I finished - trying to boot the Nemo kernel under Debian. Or maybe the things have changed and it'd be better to sit down to something else?

It's distant future - about a month, but it's worth to plan a little.

Well, I've been in touch with Sebastian and he's working on N950 kernel and using Debian for testing. I've decided to wait for his patches to go into mainstream and add support for N9 where appropriate. At the moment not much is there, but it's being worked on. Also his approach to display is much better in the long run than mine (https://git.kernel.org/cgit/linux/ke...h=n950-display) - he's using omapdrm but w/o PVR drivers. When these go in, I'll try to add support for N9 display and patch PVR kernel "shim driver" to use that one instead of omapfb. He's also being optimistic regarding charging support w/o bme - that one would be really good.

At this point your best bet would be using his n950-display branch to see if you can get anything displayed on N950. My dropbox contains fairly fresh patchset for mainline but that would be for N9 only (no n950 display support).

marmistrz 2016-05-28 16:04

Re: The N9/N950 Kernel Upstreaming Force
 
Hell, you have such good news and don't say a word! Shame on you! :)

Can you shed some light on the omapdrm/pvr difference? Why does it matter?

Is Sebastian here on TMO, watching our thread?

filip.pz 2016-05-29 06:44

Re: The N9/N950 Kernel Upstreaming Force
 
Quote:

Originally Posted by marmistrz (Post 1506409)
Can you shed some light on the omapdrm/pvr difference? Why does it matter?

It's more like drm vs fbdev - kernel is migrating from fbdev to drm and fbdev is in "maintanance mode". PVR uses open source driver for interaction between it's closed source binaries and the rest of the kernel trough fbdev. Moving support for our display panels to drm requires converting PVR "middle layer" also and that could be quite tricky. Sebastian is not interested in using closed source binaries, so that would be our job. PVR just provides us with GLES/EGL but OMAP DSS is the one responsible for rendering the image from framebuffer to display panel (ie you can do without PVR). I'm not an expert in the whole thing TBH.

Quote:

Originally Posted by marmistrz (Post 1506409)
Is Sebastian here on TMO, watching our thread?

Nope, but I asked him if I can share what we've discussed here and he's OK with that :)

marmistrz 2016-07-03 17:13

Re: The N9/N950 Kernel Upstreaming Force
 
Are the N9 components anywhere on elinux.org? I found only the page for N950.

This matters when writing the DeviceTree.

filip.pz 2016-07-04 05:08

Re: The N9/N950 Kernel Upstreaming Force
 
Quote:

Originally Posted by marmistrz (Post 1508918)
Are the N9 components anywhere on elinux.org? I found only the page for N950.

This matters when writing the DeviceTree.

Nope, we are too lazy I guess :o

N950 list is being maintained by Sebastian, and N9 specific stuff would be (IIRC):
  • ALS/PS sensor is apsd990x (vs bh1770glc/sfh7770)
  • ak8975 magnetometer (vs ak8974)
  • Display panel (SMD vs AUO)
  • Main camera - list of possible camera modules: https://github.com/nemomobile/kernel...-camera.c#L249 vs (12MP Toshiba)
  • separate vibrator (N950 has it connected to TWL5031)
  • LP5521 LED controller (vs LP5523 on N950)

LED, ALS/PS and vibration all work. AK8975 is also done but untested. Cameras should work (not done by me), but I didn't test them (autofocus and flash seem to be missing). Display is being worked on (moving to DRM) - I'm not sure how much time it'll take to adapt PVR drivers to DRM.

marmistrz 2016-07-04 07:06

Re: The N9/N950 Kernel Upstreaming Force
 
Is the N9 display working at all atm? Without it, it'll be difficult to develop the rest.

There's someone with an N9 who'd like to help too.

filip.pz 2016-07-04 08:14

Re: The N9/N950 Kernel Upstreaming Force
 
Quote:

Originally Posted by marmistrz (Post 1508945)
Is the N9 display working at all atm? Without it, it'll be difficult to develop the rest.

There's someone with an N9 who'd like to help too.

At the moment both fbdev and drm (with some minor bugs, and w/o PVR) work. I'm working on omapdrm for the last couple of days by using patches from here: https://git.kernel.org/cgit/linux/ke...h=n950-display, and getting a few things sorted out. Once that is complete I'll see what can be done to make PVR use omapdrm.

For now fbdev is the one to use (patches located at https://www.dropbox.com/s/ogx2nbzoxf...x.tar.bz2?dl=1 should be enough)

marmistrz 2016-07-04 08:48

Re: The N9/N950 Kernel Upstreaming Force
 
peterleichnen offered testing a long time ago, can you get in touch with him and give him something to test? :)


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

vBulletin® Version 3.8.8