00:00.26 | sailus | Do you have a working setup with any kernel at the moment? |
00:03.38 | DocScrutinizer05 | no DT support sounds like fun |
00:04.21 | DocScrutinizer05 | sailus: well Nokia kernel works just fine ;-) |
00:04.41 | DocScrutinizer05 | a tad long in the teeth though |
00:05.42 | DocScrutinizer05 | I think freemangordon got it semi-working with a 3.x or 4.x kernel, at times |
00:06.43 | DocScrutinizer05 | I dunno if the relevant bit in Nokia kernel (and userland) are FOSS though |
00:07.28 | DocScrutinizer05 | bits even |
00:07.51 | sailus | They're not. |
00:08.30 | sailus | The omap3camd is closed, and it implements the automatic exposure, white balance and focus algorithms. |
00:08.34 | DocScrutinizer05 | there's /lib/firmware/et8ek8-0002.bin |
00:08.57 | sailus | The APIs it expects are not upstreamed, but one could implement a wrapper to convert the IOCTLs to what's in the mainline kernel. |
00:08.59 | DocScrutinizer05 | yeah, thought as much |
00:09.16 | sailus | I think it'd be good to get it working on a recent kernel first. |
00:09.25 | sailus | Either of the cameras. |
00:09.27 | DocScrutinizer05 | yes, for sure |
00:09.52 | DocScrutinizer05 | you know if there's any init of the sensor done in mainline? |
00:10.13 | DocScrutinizer05 | see my URL wall above |
00:10.35 | sailus | There's no DT support for CCP2 in upstream. |
00:10.52 | DocScrutinizer05 | then anything beyond is moot to discuss |
00:10.55 | sailus | Other than that, the front camera should be supported in upstream with the smiapp driver. |
00:11.17 | DocScrutinizer05 | may I query you? |
00:12.55 | sailus | What about the screenshots? |
00:22.53 | sailus | For what it's worth, I have preliminary patches for CCP2 support: |
00:23.01 | sailus | http://git.retiisi.org.uk/?p=~sailus/linux.git;a=shortlog;h=refs/heads/rm696-056-ccp2 |
00:23.21 | sailus | (I'm pushing right now so it won't work until after a while.) |
00:24.14 | sailus | I didn't upstream those as some of the patches are hacks and they haven't been verified with CCP2 working. |
02:11.03 | *** join/#maemo-ssu RedW (~redw@89-76-164-87.dynamic.chello.pl) |
02:16.19 | *** join/#maemo-ssu RedM (~redw@89-76-164-87.dynamic.chello.pl) |
03:11.26 | *** join/#maemo-ssu RedW (~redw@89-76-164-87.dynamic.chello.pl) |
03:23.31 | *** join/#maemo-ssu DocScrutinizer05 (~saturn@openmoko/engineers/joerg) |
05:56.40 | *** join/#maemo-ssu arcean (~arcean@62.159.77.166) |
05:57.56 | *** join/#maemo-ssu amiconn (~amiconn@rockbox/developer/amiconn) |
06:12.13 | freemangordon | sailus: There is *some* DT support/setup in Pali's tree, no idea if it is correct, but ooks like. see https://github.com/pali/linux-n900/commit/ec98148da1b1665facb13f49757742952d8eb47d |
06:14.54 | freemangordon | that video-bus-switch is a driver from sre, that controls camera switch gpio based on which pad is linked. I verified the clocks and power supplies, all seems fine, smiapp is ok too, according to the logs (it has debug logs enabled) |
06:16.35 | freemangordon | but as I told you, CSI1 never gets enabled, so I had to patch that, see https://github.com/pali/linux-n900/blob/v4.6-rc1-n900/drivers/media/platform/omap3isp/ispccp2.c#L840 |
06:18.54 | freemangordon | ccp2->phy is always NULL, as there is no PHY for CSI1. No idea if this is the way it should be, however I added a code enabling CSI1 (CONTROL_CSIRXFE) in ccp2_if_configure() |
06:21.21 | freemangordon | I also got all the values from ISP_CSI1B register array, while front camera is active in stock kernel and put them back while trying to get some video with mainline (with devmem2), no sucess |
06:24.33 | freemangordon | sailus: this is the pipeline I use http://pastebin.com/AtbriatN , I see on obvious mistakes in it |
06:26.46 | freemangordon | also, in DTS there vdds_csib-supply was missing, but in the DTS here it is added |
06:28.13 | freemangordon | the only suspicious things in the logs is "omap3isp 480bc000.isp: Entity type for entity OMAP3 ISP XXXXX was not initialized!", where XXXXX is CCP2, CSI2a, CCDC... |
06:33.01 | freemangordon | sailus: yavta, from the pastebin ^^^ just hangs waiting for a frame, mplayer times out. When I try to stop mplayer or yavta, there are messages like "OMAP3 ISP resizer: module stop timeout." and "CCDC stop timeout!" |
06:35.12 | freemangordon | sailus: http://pastebin.com/EZKs6Gst , ISP registers from one of my attempts, CCP2 enable bit is 0, but that's normal as registers are printed just before CCP2 is enabled |
06:40.22 | *** join/#maemo-ssu futpib (~futpib@37.113.239.183) |
06:41.53 | freemangordon | sailus: http://pastebin.com/Ne3zE0tz full log with printks on various places, ignore those bus errors, it is me playing with devmem2 :) |
06:52.02 | freemangordon | sailus: BTW I am unable to open http://git.retiisi.org.uk/?p=~sailus/linux.git;a=shortlog;h=refs/heads/rm696-056-ccp2 |
07:37.17 | *** join/#maemo-ssu freemangordon_ (~ivo@92.247.16.102) |
07:51.47 | sailus | freemangordon: video-bus-switch sounds like the right thing, I haven't looked at it though. |
07:53.44 | bencoh | regarding automatic exposure/wb/focus we have fcam drivers/userland as well |
07:54.19 | bencoh | I dunno if it depends on omap3camd in some way |
07:54.26 | freemangordon_ | sailus: yeah. https://github.com/pali/linux-n900/blob/v4.6-rc1-n900/drivers/media/platform/video-bus-switch.c |
07:55.00 | freemangordon_ | I had to do a couple of fixes though |
07:56.00 | freemangordon_ | sailus: however, to my understanding, vbs doesn't look related to the problems I face |
07:58.21 | sailus | I think I must have suspended my laptop before the push finished. |
07:58.26 | sailus | I'll redo that noe. |
07:58.29 | freemangordon_ | :) |
08:04.04 | sailus | Hmm. I pushed it to wrong repository. :-P |
08:04.31 | sailus | Pushing again now... |
08:05.43 | sailus | There it is. |
08:06.04 | sailus | freemangordon_: Do you happen to get interrupts from the isp? |
08:13.03 | freemangordon_ | sailus: I suspect no (IRQ debug is not enabled in the config) |
08:13.45 | freemangordon_ | sailus: "Firefox can't find the server at git.retiisi.org.uk." |
08:14.25 | freemangordon_ | are you sure this server is connected to internet? |
09:25.38 | *** join/#maemo-ssu freemangordon_ (~ivo@92.247.16.100) |
10:10.56 | sailus | I'm pretty sure it is. I'm running irssi on the server and I'm at the office right now. |
10:11.04 | sailus | What's the problem you have? |
10:11.34 | sailus | I.e. can you connect to it using telnet on that port, or not, and ipv4 or ipv6? |
10:11.45 | sailus | Both should work. |
10:16.10 | freemangordon_ | sailus: trying to open "http://git.retiisi.org.uk/?p=~sailus/linux.git;a=shortlog;h=refs/heads/rm696-056-ccp2" in ff results in "Firefox can't find the server at git.retiisi.org.uk.". trying to open "http://retiisi.org.uk/?p=~sailus/linux.git;a=shortlog;h=refs/heads/rm696-056-ccp2" brings me to "http://retiisi.org.uk/~sailus/", unfortunately the page is not in English, so I am not sure what is written there |
10:49.48 | sailus | Ah, I added git recently, and there's probably a negative match or stale data in a secondary DNS server. |
10:50.17 | sailus | http://salottisipuli.retiisi.org.uk/cgi-bin/gitweb.cgi?p=~sailus/linux.git;a=shortlog;h=refs/heads/rm696-056-ccp2 |
11:16.46 | *** join/#maemo-ssu arcean (~arcean@62.159.77.166) |
11:43.24 | *** join/#maemo-ssu RedW (~redw@89-76-164-87.dynamic.chello.pl) |
11:51.39 | *** join/#maemo-ssu RedW (~redw@89-76-164-87.dynamic.chello.pl) |
12:14.24 | *** join/#maemo-ssu RedW (~redw@89-76-164-87.dynamic.chello.pl) |
12:39.07 | *** join/#maemo-ssu RedM (~redw@89-76-164-87.dynamic.chello.pl) |
12:44.24 | *** join/#maemo-ssu RedW (~redw@89-76-164-87.dynamic.chello.pl) |
12:49.32 | *** join/#maemo-ssu RedW (~redw@89-76-164-87.dynamic.chello.pl) |
12:50.35 | *** join/#maemo-ssu NishanthMenon (nmenon@unaffiliated/nishanthmenon) |
12:59.16 | *** join/#maemo-ssu RedM (~redw@89-76-164-87.dynamic.chello.pl) |
13:22.47 | *** join/#maemo-ssu corvinux (~hashcore@unaffiliated/corvinux) |
13:28.05 | *** join/#maemo-ssu RedW (~redw@89-76-164-87.dynamic.chello.pl) |
13:40.47 | *** join/#maemo-ssu RedW (~redw@89-76-164-87.dynamic.chello.pl) |
13:46.55 | *** join/#maemo-ssu RedW (~redw@89-76-164-87.dynamic.chello.pl) |
13:48.00 | freemangordon | sailus: those patches are already in the tree I use |
13:50.30 | freemangordon | sailus: https://github.com/pali/linux-n900/commits/v4.6-rc1-n900?page=4 |
14:01.08 | freemangordon | feels stupid, interrupts are in /proc, not in /sys/kernel/debug :( |
14:06.32 | freemangordon | sailus: "480bd400.mmu, OMAP3 ISP" interrupt count stays at zero |
14:15.17 | sailus | Yeah, I think it's the same problem that's been seen before. |
14:15.51 | sailus | I can't give other suggestions than to bisect that, or check the hardware configuration at register level with a working setup. :-( |
14:16.27 | freemangordon | sailus: which registers I should check? |
14:16.43 | freemangordon | only CCP or CCDC etc as well? |
14:20.39 | sailus | At least system clock tree configuration and the control block register for the receivers. |
14:21.01 | sailus | I think there once was a suspicion that this could have been caused by changes in the clock control. |
14:21.26 | sailus | pinchartl might remember. |
14:21.54 | sailus | Pali as well. Googling should turn up results. |
14:22.45 | freemangordon | sailus: well, I already checked clocks, see http://pastebin.com/dM8Zf60M |
14:22.56 | freemangordon | looks ok, ain;t? |
14:25.46 | freemangordon | sailus: there *is* a difference in what stock kernel sets in ISP_CSI1B compared with mainline, howecer writing the same values with devmem2 doesn't make a differenece |
14:32.04 | sailus | What are the values? |
14:33.36 | freemangordon | sailus: http://pastebin.com/fZaJ1uvy |
14:34.09 | freemangordon | the major difference I see is in CSI1B_DAT_START/SIZE |
14:35.10 | freemangordon | sailus: hmm, isn;t there a typo when getting clock-lane? http://salottisipuli.retiisi.org.uk/cgi-bin/gitweb.cgi?p=~sailus/linux.git;a=commitdiff;h=3710afacd0dfec5504ebfbf5d5850bbb07ee28c6 |
14:36.26 | freemangordon | sailus: also, why bus type should be CCP2 but not CSI1? |
14:37.28 | freemangordon | afaik cameras on n900 are connected to CSI1b, not CCP |
14:44.07 | sailus | freemangordon: I'll have to check that later on, I have a meeting starting soon... |
14:45.00 | freemangordon | sailus: ok, in the meanwile I think I am on something |
15:23.05 | *** join/#maemo-ssu Pali (~pali@Maemo/community/contributor/Pali) |
16:11.55 | *** join/#maemo-ssu RedW (~redw@89-76-164-87.dynamic.chello.pl) |
16:17.03 | *** join/#maemo-ssu RedW (~redw@89-76-164-87.dynamic.chello.pl) |
16:23.44 | *** join/#maemo-ssu RedM (~redw@89-76-164-87.dynamic.chello.pl) |
16:50.18 | *** join/#maemo-ssu futpib (~futpib@176.214.26.133) |
17:22.38 | *** join/#maemo-ssu M4rtinK (~M4rtinK@ip-78-102-146-111.net.upcbroadband.cz) |
17:28.11 | *** join/#maemo-ssu kerio (kerio@bad.memes.vs.dank.ninja) |
17:35.44 | *** join/#maemo-ssu kerio (kerio@bad.memes.vs.dank.ninja) |
17:47.48 | DocScrutinizer05 | remarks that many N900 video/stillcam apps only worked decently after a genuine Nokia camera app been started before (and after last boot) |
17:48.32 | DocScrutinizer05 | sticky config in sensor? |
18:23.36 | *** join/#maemo-ssu kerio (kerio@bad.memes.vs.dank.ninja) |
19:18.57 | *** join/#maemo-ssu kerio (kerio@bad.memes.vs.dank.ninja) |
20:06.40 | freemangordon | DocScrutinizer05: not in the sensor, but in v4l |
21:32.27 | *** join/#maemo-ssu RedW (~redw@89-76-164-87.dynamic.chello.pl) |
21:32.54 | *** join/#maemo-ssu freemangordon (~ivo@46.249.74.23) |
23:12.39 | *** join/#maemo-ssu RedW (~redw@89-76-164-87.dynamic.chello.pl) |