IRC log for #neo900 on 20160617

08:10.13*** join/#neo900 infobot (ibot@rikers.org)
08:10.13*** topic/#neo900 is http://neo900.org | CCCAMP15 lightning talks at http://neo900.org/stuff/cccamp15/ - major: http://neo900.org/stuff/cccamp15/ccc2015talk/neo900-wpwrak_CCC2015.webm | conversations are logged to http://infobot.rikers.org/%23neo900/ and http://irclog.whitequark.org/neo900
08:10.13*** mode/#neo900 [+v infobot] by ChanServ
08:21.39*** join/#neo900 Defiant (erik@x4e36bd49.dyn.telefonica.de)
08:23.59*** join/#neo900 Xiaoman (~Xiaoman@unaffiliated/xiaoman)
08:34.54*** join/#neo900 saper_ (saper@m.saper.info)
08:36.10*** join/#neo900 bredebid (~bredebid@207.43.54.77.rev.vodafone.pt)
08:36.52*** join/#neo900 kodomo (~gregor@92.63.174.119)
08:37.14*** join/#neo900 Wizzup_ (~Wizzup@a82-161-36-93.adsl.xs4all.nl)
08:38.31*** join/#neo900 JoHnY_ (~johny@imaginarium.2600.sk)
08:42.24*** join/#neo900 varu- (~whee@67.213.82.179)
08:42.54*** join/#neo900 hellekin (hellekin@gateway/shell/gnu/x-lswxetbndxtvofjf)
08:42.54*** mode/#neo900 [+v hellekin] by ChanServ
08:43.25*** join/#neo900 Pali (~pali@Maemo/community/contributor/Pali)
08:44.17*** join/#neo900 ceene (~ceene@collins.gmr.ssr.upm.es)
09:00.46*** join/#neo900 lobito (~lobito@unaffiliated/lobito)
09:03.36*** join/#neo900 freemangordon_ (~ivo@213.222.56.174)
10:21.14*** join/#neo900 vakkov (~vakkov@s3n104.brunel.ac.uk)
10:49.26*** join/#neo900 vakkov (~vakkov@134.83.225.3)
10:57.40DocScrutinizer05~closed
10:57.41infobotit has been said that closed is http://wiki.maemo.org/Why_the_closed_packages or https://wiki.maemo.org/Fremantle_closed_packages, or http://elinux.org/N900
12:04.03*** join/#neo900 jonsger (~Thunderbi@2a02:8070:799:dd00:ad7f:653b:c0e:6427)
13:06.55*** join/#neo900 bredebid (~bredebid@207.43.54.77.rev.vodafone.pt)
13:37.47*** join/#neo900 jonsger (~Thunderbi@2a02:8070:799:dd00:ad7f:653b:c0e:6427)
13:50.31*** join/#neo900 enyc (~enyc@muddle.enyc.org.uk)
14:12.45*** join/#neo900 pagurus (~user@ppp-46-244-226-178.dynamic.mnet-online.de)
14:13.42*** join/#neo900 Xiaoman (~Xiaoman@unaffiliated/xiaoman)
14:46.02*** join/#neo900 Guest68977 (~Wizzup@a82-161-36-93.adsl.xs4all.nl)
14:46.22*** join/#neo900 Wizzup_ (~Wizzup@a82-161-36-93.adsl.xs4all.nl)
15:03.17*** join/#neo900 mrcaaattt (~callisto@14.192.213.220)
15:14.36*** join/#neo900 galiven (~Andrew@50-205-116-131-static.hfc.comcastbusiness.net)
15:38.14*** join/#neo900 louisdk (~louisdk@static-5-103-130-65.seas-nve.net)
15:50.54*** join/#neo900 xman (~xman@user-0cdft6f.cable.mindspring.com)
16:20.04*** join/#neo900 louisdk (~louisdk@static-5-103-130-65.seas-nve.net)
16:23.02*** join/#neo900 illwieckz (~illwieckz@AToulon-256-1-157-105.w83-113.abo.wanadoo.fr)
16:23.02*** join/#neo900 illwieckz (~illwieckz@unvanquished/developer/illwieckz)
16:30.35*** join/#neo900 SylvieLorxu (~TheLastPr@541B7AAC.cm-5-4b.dynamic.ziggo.nl)
16:34.41*** join/#neo900 freemangordon (~ivo@46.249.74.23)
16:58.33*** join/#neo900 freemangordon (~ivo@46.249.74.23)
17:28.55*** join/#neo900 SylvieLorxu (~TheLastPr@541B7AAC.cm-5-4b.dynamic.ziggo.nl)
17:30.43*** join/#neo900 Xiaoman (~Xiaoman@unaffiliated/xiaoman)
17:35.14*** join/#neo900 SylvieLorxu (~TheLastPr@541B7AAC.cm-5-4b.dynamic.ziggo.nl)
17:52.03*** join/#neo900 herpderphurr (~afwang@c-98-234-221-193.hsd1.ca.comcast.net)
18:21.41*** join/#neo900 illwieckz (~illwieckz@unvanquished/developer/illwieckz)
19:37.31*** join/#neo900 xman1 (~xman@user-0cdft6f.cable.mindspring.com)
19:46.32*** join/#neo900 xman (~xman@user-0cdft6f.cable.mindspring.com)
19:55.13*** join/#neo900 enyc (~enyc@muddle.enyc.org.uk)
20:11.02wpwrakPali, freemangordon: i have a question about GPIOs we need to retain for compatibility with non-open N900 software: i discussed such pins with joerg, and i get the impression that nokia actually did some quite clean abstraction, with the part that actually knows there a certain signal is, being part of (open) kernel code
20:12.58wpwrakin other words: it seems to me that there are few if any signals that would actually have to be at the same pin for compatibility, given that the kernel needs some amount of adaptation anyway.
20:13.37wpwrakwould you concur with this interpretation ? or are there some nasties i haven't thought of ?
20:25.42*** join/#neo900 lobito (~lobito@unaffiliated/lobito)
20:41.56*** join/#neo900 jonsger (~Thunderbi@2a02:8070:799:dd00:ad7f:653b:c0e:6427)
20:43.21freemangordonwpwrak: well, Nokia did the so-called gpio-switch driver which isn't upstream and won;t be
20:44.00freemangordonthe "modern" way to do stuff is to use gpio-keys driver, which has board-dependent configuration
20:44.36freemangordonso, in that regard, gpio numbers does not really matter, just be careful to not use a pin assigned for other function
20:54.57wpwrakeven gpio-switch looks pretty friendly. nice maps in arch/arm/mach-omap2/board-rx51-peripherals.c and arch/arm/mach-omap2/pdata-quirks.c :)
20:57.33wpwrakand yes, we have to avoid the function blocks. pinmux will help with that. https://neo900.org/git/?p=misc;a=blob;f=pinmux/neo900.assign
20:58.37wpwrakso, no unusual placement restrictions then. kewl. thanks a lot !
21:02.58freemangordonwpwrak: just double-check with Pali :)
21:03.06DocScrutinizer05I still fail to see why "the kernel needs some adaption anyway"
21:03.48DocScrutinizer05anyway see
21:03.52DocScrutinizer05~fptf
21:03.52infobotfptf is, like, the Fremantle Porting Task Force, see http://talk.maemo.org/showthread.php?t=91308
21:05.54wpwrakfreemangordon: yup, it's the sort of question where it is better to not act already on the first response ;-)
21:06.17DocScrutinizer05givern we talk about KP, I don't see which are the changes needed in kernel
21:06.55DocScrutinizer05we *might* need a new bootloader and actually I'm pretty sure we want a new and free one, but kernel?
21:07.22freemangordonDocScrutinizer05: KP?
21:07.23wpwrakDocScrutinizer05: device tree at least. and i'm sure there's some glue stuff that won't fit, drivers that may need small improvements, etc. standard stuff, basically. also, won't we switch to a more modern kernel ?
21:07.42DocScrutinizer05Pali's PowerKernel aka Kernel-Power
21:07.56freemangordonwon't work on 3730 IMO
21:08.15freemangordonalso, i don;t see why not use 4.7 and above
21:08.16DocScrutinizer05freemangordon: why?
21:08.28DocScrutinizer05sure we can use 4.7
21:08.30freemangordonbecause n900 has almost everything upstreamed
21:08.43DocScrutinizer05but I don't see why we *need* a new kernel
21:08.56freemangordonbecause of 3730
21:09.16DocScrutinizer05so? that's supposed to be compatible to 3530, no?
21:09.19freemangordonno
21:09.32DocScrutinizer05what differs?
21:09.35wpwrak(new kernel) because we're not identical to n900 ? :) we need new drivers (and won't need some old ones) and so on
21:09.35freemangordonfor example ISP is totally different
21:10.03DocScrutinizer05ISP?
21:10.09freemangordonthere are other major differences as well
21:10.21freemangordonimage signal processor, aka cameras
21:10.34DocScrutinizer05wow, you might be right
21:11.00freemangordonI am, I am struggling with cameras on n900 for the last 3 months or some
21:11.10DocScrutinizer05I know :-)
21:11.15freemangordonwhich involves ISP driver code as well
21:11.21DocScrutinizer05:nod:
21:11.48wpwrakah, ISP sounds interesting. will this break the old cam blob ? or does that one sit on "portable" interfaces ? (v4l, etc.)
21:12.28DocScrutinizer05i'm aware we have no HS device, but that shouldn't matter. I always was under the impression all other IP was backward compatible to 34xx in 36xx/37xx (where xx = xx)
21:12.48freemangordonwell, it is tricky, there is omap3camd which uses some proprietary (but foss) interface to v4l (iirc), we will have to reomplement that
21:13.21freemangordonDocScrutinizer05: no, there is no 100% compatibility
21:14.06DocScrutinizer05there's a TI porting from 34 to 36 guide IIRC
21:14.38freemangordongood, but I prefer to have support from the kernel devs than struggle with porting KP by myself
21:14.50DocScrutinizer05sure
21:15.04freemangordonthat is why upstream is the viable option
21:15.17freemangordonalso, DT is not *that* bad
21:15.49wpwrakfreemangordon: don't forget defconfig ! ;-)
21:15.52DocScrutinizer05DT is broken by concept, in my book
21:16.46wpwrakand i bet we'll find some things where existing abstractions don't quite fit, or where the driver doesn't use the chip the way we want to. especially if it's drivers for some older "compatible" chip.
21:16.48freemangordonwpwrak: there'll be no problem to have one and the same kernel for n900 and Neo900, with different attached .dtb
21:17.14wpwrakfreemangordon: oh, sure. i wasn't proposing we'd need a fork ;-))
21:17.27*** join/#neo900 silviof (~silviof@unaffiliated/silviof)
21:18.25DocScrutinizer05I was assuming we *could* run even original kernel, and until we tested that I don't believe in too many incompatibilities, particularly none that couldn't get patched in original kernel
21:18.34freemangordonsee, right now, in 4.7-rc we have everything but ISP/cameras and DSP working(if I am not missing something) . And that includes cpufreq, PM, etc
21:19.05freemangordonthere are still problems with PM, but the framework is there
21:19.54DocScrutinizer05I'm not saying we can't use 4.7+
21:20.05freemangordonlook at http://elinux.org/N900#Kernel_Status
21:20.37freemangordonaah, I missed bluetooth
21:20.56DocScrutinizer05I just say I can't believe and didn't know so gar that Nokia did invompatible changes in register addresses or semantics from 3430 to 3730
21:21.16DocScrutinizer05so far*
21:22.42wpwrakoriginal kernel wouldn't make sense. we have lots of differences already in peripherals. even if you could get it to boot somehow, it wouldn't be useful. not even for development, since you'd never quite know if problems would be caused by confused drivers and such.
21:22.55freemangordon:nod:
21:22.59DocScrutinizer05no, we don't have that many diffs in peripherals
21:23.28wpwrakbesides, then you'd have to preserve pretty much all gpio-pin associations, which would be a little nightmare of its own
21:23.29DocScrutinizer05actually for those peripherals we had in N900 there should be zilch diff
21:24.10DocScrutinizer05yes we have new peripherals, that's no reason why we need a new kernel
21:24.23DocScrutinizer05please see
21:24.26DocScrutinizer05~fptf
21:24.26infobotmethinks fptf is the Fremantle Porting Task Force, see http://talk.maemo.org/showthread.php?t=91308
21:24.35freemangordonit is, because we don;t have the manpower to support the old one
21:24.40DocScrutinizer05yes, that is the idea to preserve as many GPIO as possible
21:25.42freemangordonDocScrutinizer05: what will be the PM controller? twl4030?
21:26.02Paliwhy do you care about GPIO numbers and it compatibility?
21:26.14PaliIIRC cssu-devel userspace use it only for cellular modem
21:26.29wpwrakwhat good would a kernel do that doesn't even have keyboard, no connectivity at all (i.e., no USB), ... ? that just doesn't make sense
21:26.29Paliall other stuff in cssu-devel was converted to proper kernel layers
21:26.30freemangordonPali: what about different switches?
21:26.40Paliwhich switches?
21:26.46freemangordonkbd, power, etc
21:27.10freemangordonPali: BTW, wpwrak is asking :)
21:27.18Paliisnot mce using /dev/input layer (which comes from gpio-keys)?
21:27.41DocScrutinizer05don't get me wrong, I'm not saying we don't need any patches to make maemo work on Neo900, but that's no reason to now abandon the concept of keeping maximal compatibility to N900
21:27.44wpwrakPali: i'm trying to correctly describe the compatibility needs for GPIOs. DocScrutinizer05 always said that there was a lot of non-open user space code that depended on 1:1 compatibility
21:27.56Palionly sscd daemon for cellular modem needs that GPIO switches in userspace
21:27.59wpwrakPali: but now it seems that this isn't really an issue
21:28.00freemangordonPali: yes, iirc, I ported that, but I guess wpwrak doesn;t have the time needed to dig into mce code
21:28.10DocScrutinizer05wpwrak: the compatibility needs are described in ~fptf #1 #2
21:28.35DocScrutinizer05wpwrak: we won't introduce new GPIO pin number just because we can, now
21:28.38freemangordonDocScrutinizer05: well, afaik the concept is to keep neo900 compatible with Maemo
21:28.43PaliI think there will not be compatbility for bb5 cellular chip, right?
21:29.26DocScrutinizer05again
21:29.29DocScrutinizer05~fptf
21:29.29infobotextra, extra, read all about it, fptf is the Fremantle Porting Task Force, see http://talk.maemo.org/showthread.php?t=91308
21:29.55DocScrutinizer05he mantra:
21:29.57DocScrutinizer05first we try to fix the fremantle core system foss bits to match the new hw platform.
21:29.58DocScrutinizer05if that can't be done we try to patch the kernel device drivers so the new device looks like the the N900 one to userland
21:30.00DocScrutinizer05if that can't be done we try to RE userland blobs or binary-patch them or write bridging-adapters from one ABI to the other
21:30.01DocScrutinizer05if that can't be done we need to adapt the hw platform to more closely resemble the N900.
21:30.52wpwrakit seems that "first" is easily covered. no need to try to design hardware around a problem that's trivial to fix in software ;-)
21:31.12Paliyes
21:31.36DocScrutinizer05I won't take that for given until POC exists
21:32.05DocScrutinizer05my problem is I work that list bottom up
21:32.32wpwrakany in any case, if you want a usable system you can't use the old kernel binaries. and in any case you really don't want to be stuck with a kernel based on some ancient mainline.
21:32.42DocScrutinizer05that's why I asked SERVERAL TIMES to make a port of maemo to a BB-xN
21:32.55DocScrutinizer05to see what actually can get patched easily
21:33.24DocScrutinizer05wpwrak: proof needed
21:34.06DocScrutinizer05the 2nd half of that sentence is irrelevant to me, since that's the devel's business
21:34.21DocScrutinizer05the first half is unsupported by any proof
21:35.40wpwrakhow do you expect to, say, use the keyboard if you don't have a driver for it ? also, does a wl1837 (wlan) driver even exist for that ancient kernel ?
21:35.54DocScrutinizer05I'm still pretty sure we could boot into KP5x and modprobe a few new modules, and done as far as kernel is concerned
21:37.10DocScrutinizer05a wl1837 driver can get built for stock nokia kernel like it can get built for 4.7 kernel
21:37.41wpwrakyou could probably create an out-of-tree build to add some drivers. then backport others. etc. but why would you want to do that ? if you go to the pub, do you take a route that crosses antarctica ? ;-)
21:38.08DocScrutinizer05because of compatibility, heck!!!
21:38.48DocScrutinizer05and we WILL NOT go do weird reassigns of GPIO just because we can, and becuse you _assume_ it doesn't matter anyway
21:39.50DocScrutinizer05we are NOT going to rebuilt the complete system for a new target hw platform, the platform still is supposed to be compatible
21:40.27DocScrutinizer05to the point where in theory you could flash the original fiasco and then install a Neo900 compatibility metapackage from HAM
21:43.02DocScrutinizer05you are the kernel devel guys, you tell me where the build differences are between OMAP35xx and OMAP37xx target, which #DEFINEs kick in and spoil stuff
21:45.03DocScrutinizer05until you show me that a certain GPIO number is OMAP35xx specific and needs patches in 37xx anyway, I'll assume we stay compatible on a hw level and sw devels won't even need to think about it
21:46.02*** join/#neo900 SylvieLorxu (~TheLastPr@541B7AAC.cm-5-4b.dynamic.ziggo.nl)
21:46.38DocScrutinizer05heck, users pondered, even *tried*, to replace the SoC in **N900** by a DM3730, and all evaluations so far came to the result that it mostly should "just work"
21:47.02wpwrakseems that we "kernel devel guys" already have broad agreement that the best way forward is to stay close to today's mainline, and that gpios and such can be easily reassigned. and some changes to mainline will be needed anyway. or rather, it is strongly desirable to make these changes in mainline instead of having a bunch of local hacks that would have to be ported along.
21:47.21DocScrutinizer05I will ignore that
21:47.23DocScrutinizer05sorry
21:47.36DocScrutinizer05that's not a part of Neo900 design rules
21:48.31DocScrutinizer05you're drifting away on the "we can do it in software so we don't worry about it in hw" path
21:48.56DocScrutinizer05this approach always been a big NOGO for Neo900
21:50.07DocScrutinizer05agauin: as long as we can stay compatible with N900 on a hw level, WE WILL DO SO. period
21:51.07DocScrutinizer05I already elaborated on the few excemptions of that rule I consider tolerable, in private channel, this noon
21:52.13DocScrutinizer05they are basically all those switches and (hall-)sensors that show up as GPIO-switch in sysfs
21:52.30DocScrutinizer05except those who are closely entangled with blobs
21:55.30DocScrutinizer05just because we _got_ IO-extenders now, doesn't mean we will use them for everything and reassign _all_ GPIO from SoC to extenders just because we can
21:55.42*** join/#neo900 enyc (~enyc@muddle.enyc.org.uk)
21:55.51DocScrutinizer05IO-Extenders are a last resort
21:56.08DocScrutinizer05and a fine means for signals we didn't even have in N900 anyway
21:56.27DocScrutinizer05the rest stays untouched!
21:58.48DocScrutinizer05let me be very clear on that: we WILL NOT assign every possible IO signal on lower to a IO-Extender, and in the end of the day celebrate that we have 37 unisued pins on the 2 B2B conns between LOWEr and UPPER thanks to that
21:59.12DocScrutinizer05unused*
22:00.18DocScrutinizer05au contraire we will try to assign / route every IO signal in system to its legacy pin on SoC and only when we run into issues we can't solve we resort to IO-extenders
22:00.51DocScrutinizer05this doesn't apply to all-new signals like the whole modem (monitoring) stuff
22:03.41DocScrutinizer05this applies all the more when we hear freemangordon claim that we don't have manpower to maintain the old kernel. So we ned to design the hardware in a way so it is maximum useful with unmaintained kernel
22:12.11*** join/#neo900 louisdk (~louisdk@static-5-103-130-65.seas-nve.net)
22:32.21*** join/#neo900 freemangordon (~ivo@46.249.74.23)
22:41.08*** join/#neo900 freemangordon (~ivo@46.249.74.23)
23:00.02DocScrutinizer05to avoid ambiguities and misconceptions: I will ignore what kernel devel guys agree upon as best way forward (despite I wholeheartedly agree with you on it) simply because it's irrelevant for how we design the Neo900 hardware
23:01.50DocScrutinizer05so as long as the way Neo900 is designed will not be a *roadblock* to that best approach you and me agree upon, there's no impact from that on the Neo900 design. I don't see any such possible roadblock in keeping maximum compatibility to N900
23:11.32*** join/#neo900 enyc (~enyc@muddle.enyc.org.uk)

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