IRC log of #maemo-ssu for Monday, 2016-04-11

sailusfreemangordon: Pong.00:01
freemangordonsailus: hi! I am trying to make cameras working on n900, linux 4.6-rc1. No matter what I do, all I can get is a green image, the same as with 3.x kernels. So, is CSIb supported in ISP driver and what needs to be done to implement that support if not?00:48
freemangordonI am using Pali's linux-n900 tree, there are a couple of fixes from you (and sre) to make N9/50 cameras working00:50
freemangordonIn dmesg log everything seems ok, there are no errors, etc00:50
freemangordonsailus: One thing I saw missing, is enabling the CSI1 receiver in SCM CONTROL_CSIRXFE register, but even after I added the needed code, still no success00:52
DocScrutinizer05silly question: you got proper initialization for the camera(s)?01:30
DocScrutinizer05SMIA95_AF_camera module_APL_090511.doc  ET8EK801:33
DocScrutinizer05http://wstaw.org/m/2016/04/11/plasma-desktopUk2219.png01:34
DocScrutinizer05http://wstaw.org/m/2016/04/11/plasma-desktopqJ2219.png  http://wstaw.org/m/2016/04/11/plasma-desktophw2219.png  http://wstaw.org/m/2016/04/11/plasma-desktopIL2219.png01:45
DocScrutinizer05https://www.google.de/search?q=SMIA95_AF_camera+module_APL_090511.doc01:46
DocScrutinizer05http://mg.pov.lt/maemo-irclog/%23maemo.2013-03-02.log.html#t2013-03-02T08:21:1501:49
*** Pali has quit IRC02:30
sailusfreemangordon: I think the CCP2 receiver should be ok. No-one has verified the changes though. And AFAIR there's no DT support (in the mainline kernel).02:58
sailusI remember there were issues with clocks on 3430, I have to say I don't know whether the issue was resolved since. :-I02:59
sailusDo you have a working setup with any kernel at the moment?03:00
DocScrutinizer05no DT support sounds like fun03:03
DocScrutinizer05sailus: well Nokia kernel works just fine ;-)03:04
DocScrutinizer05a tad long in the teeth though03:04
DocScrutinizer05I think freemangordon got it semi-working with a 3.x or 4.x kernel, at times03:05
DocScrutinizer05I dunno if the relevant bit in Nokia kernel (and userland) are FOSS though03:06
DocScrutinizer05bits even03:07
sailusThey're not.03:07
sailusThe omap3camd is closed, and it implements the automatic exposure, white balance and focus algorithms.03:08
DocScrutinizer05there's /lib/firmware/et8ek8-0002.bin03:08
sailusThe APIs it expects are not upstreamed, but one could implement a wrapper to convert the IOCTLs to what's in the mainline kernel.03:08
DocScrutinizer05yeah, thought as much03:08
sailusI think it'd be good to get it working on a recent kernel first.03:09
sailusEither of the cameras.03:09
DocScrutinizer05yes, for sure03:09
DocScrutinizer05you know if there's any init of the sensor done in mainline?03:09
DocScrutinizer05see my URL wall above03:10
sailusThere's no DT support for CCP2 in upstream.03:10
DocScrutinizer05then anything beyond is moot to discuss03:10
sailusOther than that, the front camera should be supported in upstream with the smiapp driver.03:10
DocScrutinizer05may I query you?03:11
sailusWhat about the screenshots?03:12
sailusFor what it's worth, I have preliminary patches for CCP2 support:03:22
sailushttp://git.retiisi.org.uk/?p=~sailus/linux.git;a=shortlog;h=refs/heads/rm696-056-ccp203:23
sailus(I'm pushing right now so it won't work until after a while.)03:23
sailusI didn't upstream those as some of the patches are hacks and they haven't been verified with CCP2 working.03:24
*** RedW has quit IRC05:09
*** RedW has joined #maemo-ssu05:11
*** RedM has joined #maemo-ssu05:16
*** RedW has quit IRC05:16
*** Sicelo009N has quit IRC05:49
*** RedM has quit IRC06:10
*** RedW has joined #maemo-ssu06:11
*** DocScrutinizer05 has quit IRC06:23
*** DocScrutinizer05 has joined #maemo-ssu06:23
*** corvinux has quit IRC08:40
*** amiconn has quit IRC08:55
*** arcean has joined #maemo-ssu08:56
*** amiconn has joined #maemo-ssu08:57
freemangordonsailus: 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/ec98148da1b1665facb13f49757742952d8eb47d09:12
freemangordonthat 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)09:14
freemangordonbut 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#L84009:16
freemangordonccp2->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()09:18
freemangordonI 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 sucess09:21
freemangordonsailus: this is the pipeline I use http://pastebin.com/AtbriatN , I see on obvious mistakes in it09:24
freemangordonalso, in DTS there vdds_csib-supply was missing, but in the DTS here it is added09:26
freemangordonthe 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...09:28
freemangordonsailus: 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!"09:33
freemangordonsailus: 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 enabled09:35
*** futpib has joined #maemo-ssu09:40
freemangordonsailus: http://pastebin.com/Ne3zE0tz full log with printks on various places, ignore those bus errors, it is me playing with devmem2 :)09:41
*** futpib has quit IRC09:48
freemangordonsailus: BTW I am unable to open  http://git.retiisi.org.uk/?p=~sailus/linux.git;a=shortlog;h=refs/heads/rm696-056-ccp209:52
*** freemangordon_ has joined #maemo-ssu10:37
sailusfreemangordon: video-bus-switch sounds like the right thing, I haven't looked at it though.10:51
bencohregarding automatic exposure/wb/focus we have fcam drivers/userland as well10:53
bencohI dunno if it depends on omap3camd in some way10:54
freemangordon_sailus: yeah. https://github.com/pali/linux-n900/blob/v4.6-rc1-n900/drivers/media/platform/video-bus-switch.c10:54
freemangordon_I had to do a couple of fixes though10:55
freemangordon_sailus: however, to my understanding, vbs doesn't look related to the problems I face10:56
sailusI think I must have suspended my laptop before the push finished.10:58
sailusI'll redo that noe.10:58
freemangordon_:)10:58
sailusHmm. I pushed it to wrong repository. :-P11:04
sailusPushing again now...11:04
sailusThere it is.11:05
sailusfreemangordon_: Do you happen to get interrupts from the isp?11:06
freemangordon_sailus: I suspect no (IRQ debug is not enabled in the config)11:13
freemangordon_sailus: "Firefox can't find the server at git.retiisi.org.uk."11:13
freemangordon_are you sure this server is connected to internet?11:14
*** freemangordon_ has quit IRC12:09
*** freemangordon_ has joined #maemo-ssu12:25
sailusI'm pretty sure it is. I'm running irssi on the server and I'm at the office right now.13:10
sailusWhat's the problem you have?13:11
sailusI.e. can you connect to it using telnet on that port, or not, and ipv4 or ipv6?13:11
sailusBoth should work.13:11
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 there13:16
*** freemangordon_ has quit IRC13:32
sailusAh, I added git recently, and there's probably a negative match or stale data in a secondary DNS server.13:49
sailushttp://salottisipuli.retiisi.org.uk/cgi-bin/gitweb.cgi?p=~sailus/linux.git;a=shortlog;h=refs/heads/rm696-056-ccp213:50
*** arcean has quit IRC14:06
*** arcean has joined #maemo-ssu14:16
*** RedW has quit IRC14:40
*** RedW has joined #maemo-ssu14:43
*** RedW has quit IRC14:51
*** RedW has joined #maemo-ssu14:51
*** RedW has quit IRC15:14
*** RedW has joined #maemo-ssu15:14
*** RedW has quit IRC15:39
*** RedM has joined #maemo-ssu15:39
*** RedM has quit IRC15:44
*** RedW has joined #maemo-ssu15:44
*** RedW has quit IRC15:48
*** RedW has joined #maemo-ssu15:49
*** NishanthMenon has joined #maemo-ssu15:50
*** RedW has quit IRC15:59
*** RedM has joined #maemo-ssu15:59
*** corvinux has joined #maemo-ssu16:22
*** RedW has joined #maemo-ssu16:28
*** RedM has quit IRC16:28
*** corvinux has quit IRC16:30
*** RedW has quit IRC16:40
*** RedW has joined #maemo-ssu16:40
*** RedW has quit IRC16:46
*** RedW has joined #maemo-ssu16:46
freemangordonsailus: those patches are already in the tree I use16:48
*** arcean has quit IRC16:50
freemangordonsailus: https://github.com/pali/linux-n900/commits/v4.6-rc1-n900?page=416:50
* freemangordon feels stupid, interrupts are in /proc, not in /sys/kernel/debug :(17:01
freemangordonsailus: "480bd400.mmu, OMAP3 ISP" interrupt count stays at zero17:06
sailusYeah, I think it's the same problem that's been seen before.17:15
sailusI can't give other suggestions than to bisect that, or check the hardware configuration at register level with a working setup. :-(17:15
freemangordonsailus: which registers I should check?17:16
freemangordononly CCP or CCDC etc as well?17:16
sailusAt least system clock tree configuration and the control block register for the receivers.17:20
sailusI think there once was a suspicion that this could have been caused by changes in the clock control.17:21
sailuspinchartl might remember.17:21
sailusPali as well. Googling should turn up results.17:21
freemangordonsailus: well, I already checked clocks, see http://pastebin.com/dM8Zf60M17:22
freemangordonlooks ok, ain;t?17:22
freemangordonsailus: 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 differenece17:25
sailusWhat are the values?17:32
freemangordonsailus: http://pastebin.com/fZaJ1uvy17:33
freemangordonthe major difference I see is in CSI1B_DAT_START/SIZE17:34
freemangordonsailus: 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=3710afacd0dfec5504ebfbf5d5850bbb07ee28c617:35
freemangordonsailus: also, why bus type should be CCP2 but not CSI1?17:36
freemangordonafaik cameras on n900 are connected to CSI1b, not CCP17:37
sailusfreemangordon: I'll have to check that later on, I have a meeting starting soon...17:44
freemangordonsailus: ok, in the meanwile I think I am on something17:45
*** Pali has joined #maemo-ssu18:23
*** RedW has quit IRC19:07
*** RedW has joined #maemo-ssu19:11
*** RedW has quit IRC19:16
*** RedW has joined #maemo-ssu19:17
*** RedM has joined #maemo-ssu19:23
*** RedW has quit IRC19:23
*** futpib has joined #maemo-ssu19:50
*** M4rtinK has joined #maemo-ssu20:22
*** kerio has quit IRC20:23
*** kerio has joined #maemo-ssu20:28
*** kerio has quit IRC20:32
*** kerio has joined #maemo-ssu20:35
* DocScrutinizer05 remarks that many N900 video/stillcam apps only worked decently after a genuine Nokia camera app been started before (and after last boot)20:47
DocScrutinizer05sticky config in sensor?20:48
*** kerio has quit IRC21:21
*** kerio has joined #maemo-ssu21:23
*** kerio has quit IRC22:17
*** kerio has joined #maemo-ssu22:18
*** NishanthMenon has quit IRC23:06
freemangordonDocScrutinizer05: not in the sensor, but in v4l23:06
*** futpib has quit IRC23:43

Generated by irclog2html.py 2.15.1 by Marius Gedminas - find it at mg.pov.lt!