IRC log for #maemo-ssu on 20160411

00:00.26sailusDo you have a working setup with any kernel at the moment?
00:03.38DocScrutinizer05no DT support sounds like fun
00:04.21DocScrutinizer05sailus: well Nokia kernel works just fine ;-)
00:04.41DocScrutinizer05a tad long in the teeth though
00:05.42DocScrutinizer05I think freemangordon got it semi-working with a 3.x or 4.x kernel, at times
00:06.43DocScrutinizer05I dunno if the relevant bit in Nokia kernel (and userland) are FOSS though
00:07.28DocScrutinizer05bits even
00:07.51sailusThey're not.
00:08.30sailusThe omap3camd is closed, and it implements the automatic exposure, white balance and focus algorithms.
00:08.34DocScrutinizer05there's /lib/firmware/et8ek8-0002.bin
00:08.57sailusThe 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.59DocScrutinizer05yeah, thought as much
00:09.16sailusI think it'd be good to get it working on a recent kernel first.
00:09.25sailusEither of the cameras.
00:09.27DocScrutinizer05yes, for sure
00:09.52DocScrutinizer05you know if there's any init of the sensor done in mainline?
00:10.13DocScrutinizer05see my URL wall above
00:10.35sailusThere's no DT support for CCP2 in upstream.
00:10.52DocScrutinizer05then anything beyond is moot to discuss
00:10.55sailusOther than that, the front camera should be supported in upstream with the smiapp driver.
00:11.17DocScrutinizer05may I query you?
00:12.55sailusWhat about the screenshots?
00:22.53sailusFor what it's worth, I have preliminary patches for CCP2 support:
00:23.01sailushttp://git.retiisi.org.uk/?p=~sailus/linux.git;a=shortlog;h=refs/heads/rm696-056-ccp2
00:23.21sailus(I'm pushing right now so it won't work until after a while.)
00:24.14sailusI 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.13freemangordonsailus: 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.54freemangordonthat 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.35freemangordonbut 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.54freemangordonccp2->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.21freemangordonI 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.33freemangordonsailus: this is the pipeline I use http://pastebin.com/AtbriatN , I see on obvious mistakes in it
06:26.46freemangordonalso, in DTS there vdds_csib-supply was missing, but in the DTS here it is added
06:28.13freemangordonthe 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.01freemangordonsailus: 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.12freemangordonsailus: 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.53freemangordonsailus: http://pastebin.com/Ne3zE0tz full log with printks on various places, ignore those bus errors, it is me playing with devmem2 :)
06:52.02freemangordonsailus: 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.47sailusfreemangordon: video-bus-switch sounds like the right thing, I haven't looked at it though.
07:53.44bencohregarding automatic exposure/wb/focus we have fcam drivers/userland as well
07:54.19bencohI dunno if it depends on omap3camd in some way
07:54.26freemangordon_sailus: yeah. https://github.com/pali/linux-n900/blob/v4.6-rc1-n900/drivers/media/platform/video-bus-switch.c
07:55.00freemangordon_I had to do a couple of fixes though
07:56.00freemangordon_sailus: however, to my understanding, vbs doesn't look related to the problems I face
07:58.21sailusI think I must have suspended my laptop before the push finished.
07:58.26sailusI'll redo that noe.
07:58.29freemangordon_:)
08:04.04sailusHmm. I pushed it to wrong repository. :-P
08:04.31sailusPushing again now...
08:05.43sailusThere it is.
08:06.04sailusfreemangordon_: Do you happen to get interrupts from the isp?
08:13.03freemangordon_sailus: I suspect no (IRQ debug is not enabled in the config)
08:13.45freemangordon_sailus: "Firefox can't find the server at git.retiisi.org.uk."
08:14.25freemangordon_are you sure this server is connected to internet?
09:25.38*** join/#maemo-ssu freemangordon_ (~ivo@92.247.16.100)
10:10.56sailusI'm pretty sure it is. I'm running irssi on the server and I'm at the office right now.
10:11.04sailusWhat's the problem you have?
10:11.34sailusI.e. can you connect to it using telnet on that port, or not, and ipv4 or ipv6?
10:11.45sailusBoth should work.
10:16.10freemangordon_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.48sailusAh, I added git recently, and there's probably a negative match or stale data in a secondary DNS server.
10:50.17sailushttp://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.00freemangordonsailus: those patches are already in the tree I use
13:50.30freemangordonsailus: https://github.com/pali/linux-n900/commits/v4.6-rc1-n900?page=4
14:01.08freemangordonfeels stupid, interrupts are in /proc, not in /sys/kernel/debug :(
14:06.32freemangordonsailus: "480bd400.mmu, OMAP3 ISP" interrupt count stays at zero
14:15.17sailusYeah, I think it's the same problem that's been seen before.
14:15.51sailusI can't give other suggestions than to bisect that, or check the hardware configuration at register level with a working setup. :-(
14:16.27freemangordonsailus: which registers I should check?
14:16.43freemangordononly CCP or CCDC etc as well?
14:20.39sailusAt least system clock tree configuration and the control block register for the receivers.
14:21.01sailusI think there once was a suspicion that this could have been caused by changes in the clock control.
14:21.26sailuspinchartl might remember.
14:21.54sailusPali as well. Googling should turn up results.
14:22.45freemangordonsailus: well, I already checked clocks, see http://pastebin.com/dM8Zf60M
14:22.56freemangordonlooks ok, ain;t?
14:25.46freemangordonsailus: 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.04sailusWhat are the values?
14:33.36freemangordonsailus: http://pastebin.com/fZaJ1uvy
14:34.09freemangordonthe major difference I see is in CSI1B_DAT_START/SIZE
14:35.10freemangordonsailus: 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.26freemangordonsailus: also, why bus type should be CCP2 but not CSI1?
14:37.28freemangordonafaik cameras on n900 are connected to CSI1b, not CCP
14:44.07sailusfreemangordon: I'll have to check that later on, I have a meeting starting soon...
14:45.00freemangordonsailus: 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.48DocScrutinizer05remarks that many N900 video/stillcam apps only worked decently after a genuine Nokia camera app been started before (and after last boot)
17:48.32DocScrutinizer05sticky 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.40freemangordonDocScrutinizer05: 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)

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.