**** BEGIN LOGGING AT Thu Dec 31 02:59:58 2015 Dec 31 09:29:52 freemangordon: I fixed some problems in libcal & osso-product-info Dec 31 09:56:39 Pali: great Dec 31 09:56:49 changes are in git Dec 31 09:56:50 is there deb? Dec 31 09:56:58 but do now if it helps you Dec 31 09:57:00 ok, I'll build and test Dec 31 09:57:01 no deb yet Dec 31 09:59:26 ok, looks like I am running stock versions of both of those so I dont need to upgrade :) Dec 31 10:00:18 jonwil: grab my CAL , mount it and test Dec 31 10:00:22 :) Dec 31 10:01:23 soup slayer? Dec 31 10:01:28 uhm Dec 31 10:01:29 hi Dec 31 10:01:38 this better Dec 31 10:01:51 i'm trying an irc proxy Dec 31 10:02:04 kind of like screen but for irc Dec 31 10:03:25 yup Dec 31 10:03:30 pretty useful Dec 31 10:03:40 in case you dont have stable shell Dec 31 10:03:44 this should let me connect with n900's xchat and receive a backlog of last things spoken and all that Dec 31 10:04:03 i usually ssh this server and screen -rd an irssi Dec 31 10:04:14 but i like n900's xchat Dec 31 10:04:17 ceene: Thanks to Juhani Mäkelä we now have the "official" parse-certdata-txt.c file used to update the root certificates in Maemo Dec 31 10:04:26 jonwil: cool! Dec 31 10:04:28 so we dont need the python script that you edited last night Dec 31 10:04:32 lol Dec 31 10:04:37 all that work for nothing :P Dec 31 10:05:02 I sent a follow up question asking what to do with the output of parse-certdata-txt and how to get said output into the actual root CA sture Dec 31 10:05:03 but it's okay, it's better having the original! Dec 31 10:05:05 store Dec 31 10:05:17 seems look a cool guy, doesn't he? Dec 31 10:05:36 well it seems like he is willing to share info Dec 31 10:05:48 cool enough for us Dec 31 10:06:25 hopefully he responds with the rest of the steps to take :) Dec 31 10:07:16 then we can have something in SVN where you just download the latest certdata.txt from mozilla and run some things and get an up-to-date maemosec-certman-common-ca package :) Dec 31 10:11:06 and one part of the security system at least will be up-to-date Dec 31 10:11:53 that'd be a great step Dec 31 10:12:48 and alongside openssl1.0.2e we're cutting edge on a 6 years old device Dec 31 10:15:11 :) Dec 31 10:15:20 my laptop is from 2006 Dec 31 10:18:14 so Dec 31 10:18:16 hi Dec 31 10:18:21 uhm Dec 31 10:18:22 funny Dec 31 10:18:32 i can connect with two clients to the proxy Dec 31 10:18:35 at the same time Dec 31 10:18:37 cool :) Dec 31 10:18:52 ceene: you're a cool guy, man Dec 31 10:19:02 you're talking about a bouncer? Dec 31 10:19:10 and speaking my name triggers a notification on n900 Dec 31 10:19:21 apt-get install bip :) Dec 31 10:19:33 yes, something like that Dec 31 10:19:55 ceene: Updating OpenSSL is a great start but we also really need to update NSS inside microb Dec 31 10:20:07 how does one start doing that? Dec 31 10:20:13 to be honest, i don't use microb Dec 31 10:20:21 i use midori running on an easy debian image Dec 31 10:20:27 which i find to be blazing fast Dec 31 10:20:57 although i understand microb is used too by things like modest Dec 31 10:21:08 Yes microb is used for modest Dec 31 10:21:14 and also for conversations app Dec 31 10:21:17 and nokia maps Dec 31 10:21:49 Anyone here running a stock Maemo Fremantle PR1.3.1 install? (i.e. not running CSSU or updated versions of any system packages) Dec 31 10:22:52 jonwil: last time I checked, it seemed like NSS should keep some kind of backward compat with older apps Dec 31 10:23:16 it's called libnss3 both on maemo and debian sid Dec 31 10:23:21 (ABI-wise) Dec 31 10:23:23 so it's probably compatible Dec 31 10:23:32 and only repackaging up to date libnss3 is enough? Dec 31 10:24:06 so we might try building latest libnss3 Dec 31 10:24:08 ceene: maybe Dec 31 10:24:36 if it's not, well... we need to replace the libnss3 source in the microb-engine tree and see what happens Dec 31 10:24:52 (and/or diff source, bleh, the usual stuff) Dec 31 10:34:31 hmmm, I still cant find out how libcurl on a stock N900 gets its root certificates Dec 31 10:42:04 Pali: https://github.com/community-ssu/osso-product-info/blob/master/osso-product-info.c#L87 Dec 31 10:42:06 :) Dec 31 10:42:57 *p = 0; if(osso_set_product_info(code, p) < 0) Dec 31 10:43:00 here it is Dec 31 10:43:06 yes Dec 31 10:43:30 but first fix why '-q' param crash! Dec 31 10:43:39 also, are you sure "RX-51_2009SE_21.2011.38-1_PR_MR0" should be in quotes Dec 31 10:43:52 Pali: it no longer crashes, after your fixes Dec 31 10:43:56 quotes are removed by bash Dec 31 10:44:06 sure? Dec 31 10:44:08 freemangordon: and what is output now? Dec 31 10:44:35 ~ # osso-product-info -q OSSO_VERSION Dec 31 10:44:35 ERROR: Could not find value for key /device/sw-release-ver Dec 31 10:44:35 Error getting variable OSSO_VERSION value Dec 31 10:44:50 shell remove quotes everytime, so if you want to pass ' or " into shell you need to escape it Dec 31 10:44:57 ok Dec 31 10:45:04 freemangordon: great, query it fixed Dec 31 10:45:34 that *p = 0; should be p ++; IMO Dec 31 10:45:37 correct? Dec 31 10:46:03 or remove it alltogether and pass p + 1 to the function Dec 31 10:46:11 *p=0; p++; Dec 31 10:46:22 you need to remove char '=' Dec 31 10:46:34 so optarg is key Dec 31 10:46:37 and p is value Dec 31 10:46:45 format is "key=value" Dec 31 10:48:13 Pali: but oh, yes Dec 31 10:50:27 ++p ? Dec 31 10:51:41 KotCzarny: in C without checking lvalue is ++p and p++ same, gcc optimize p++ code Dec 31 10:52:24 ahm Dec 31 10:52:39 didnt know gcc does it anyway Dec 31 10:55:46 Pali: hmm, another bug https://github.com/community-ssu/osso-product-info/blob/master/libossoproductinfo.c#L76 Dec 31 10:56:13 hm? Dec 31 10:56:24 we search for /device/sw-release-ver, but set sw-release-ver Dec 31 10:56:34 its ok Dec 31 10:56:42 sw-release-ver is CAL key Dec 31 10:56:58 /device/sw-release-ver is sysinfod DBUS key Dec 31 10:57:39 "sw-release-ver" is correct CAL key (section) name Dec 31 10:57:49 yes, but see what get_product_info does Dec 31 10:59:13 maybe replace product_info_keys[i].name with key at line 370? Dec 31 10:59:23 but both in this case should be valid Dec 31 11:00:25 get_info call sysinfo functions Dec 31 11:00:59 and? Dec 31 11:01:00 oh, maybe I should rebott Dec 31 11:01:14 yes, sysinfo read CAL suff when starting Dec 31 11:01:16 for the value in CAL to take effect, lemme try Dec 31 11:01:19 ok Dec 31 11:01:21 makes sense Dec 31 11:01:23 either restart sysinfo Dec 31 11:01:26 or reboot device Dec 31 11:01:38 rebooting Dec 31 11:01:40 stop sysinfod && start sysinfod Dec 31 11:02:03 too late, also I wont to boot into 4.4 Dec 31 11:02:07 *want Dec 31 11:07:21 Pali: it is ok after reboot Dec 31 11:07:48 great Dec 31 11:07:58 push fixes to git Dec 31 11:08:06 will do Dec 31 11:08:07 and ideally also new packages into cssu-devel Dec 31 11:08:33 no, as my SB target is for linux, don;t want to switch it now Dec 31 11:08:53 maybe later Dec 31 11:09:55 oh, i see libnss3' source is microb-engine Dec 31 11:11:34 Pali: http://talk.maemo.org/showthread.php?p=1493038#post1493038 Dec 31 11:11:36 :) Dec 31 11:12:05 :) Dec 31 11:12:11 great :-) Dec 31 11:12:20 freemangordon: cool! Dec 31 11:13:01 Pali: BTW osso-product-info is missing CFLAGS for optimization and debug symbols Dec 31 11:13:02 freemangordon: can you test HW if working? Dec 31 11:13:09 what HW? Dec 31 11:13:13 wifi, ... Dec 31 11:13:17 touchscreen, .. Dec 31 11:13:19 etc Dec 31 11:13:37 basicly what should be supported according to elinux.org/N900 Dec 31 11:13:45 test for regressions Dec 31 11:14:12 freemangordon: modem is working or not? Dec 31 11:14:28 and SGX? Dec 31 11:14:36 Pali: comeon, this is xterm Dec 31 11:14:55 see wifi icon in status menu :) Dec 31 11:15:44 Pali: going to install syslog and reboot, will pastebin boot log in a minute Dec 31 11:18:03 hmm, where is syslog? in SDK repo? Dec 31 11:19:24 syslog? Dec 31 11:19:27 in nokia ssu repo Dec 31 11:19:31 you want apt-get sysklogd Dec 31 11:19:31 ksyslogd Dec 31 11:20:23 http://maemo.org/packages/view/sysklogd/ Dec 31 11:20:31 its in device repo Dec 31 11:21:19 "E: Couldn't find package sysklogd" :) Dec 31 11:21:40 it is in SDK repo Dec 31 11:22:19 you need also klogd Dec 31 11:22:31 yeah Dec 31 11:22:47 http://repository.maemo.org/pool/maemo5.0/free/s/sysklogd/sysklogd_1.5-5maemo7+0m5_armel.deb Dec 31 11:22:58 http://repository.maemo.org/pool/maemo5.0/free/s/sysklogd/klogd_1.5-5maemo7+0m5_armel.deb Dec 31 11:23:18 I installed the repo Dec 31 11:24:35 Pali: leds work Dec 31 11:24:42 RGB led that is Dec 31 11:25:11 seems like mce does not disable backlight Dec 31 11:26:06 and kbd backlight as well Dec 31 11:27:54 Pali: http://pastebin.com/haRz2j2Y Dec 31 11:28:04 also, charging doesn't seem to work Dec 31 11:29:28 sr_init: No PMIC hook to init smartreflex Dec 31 11:29:35 yeah Dec 31 11:29:55 it has always been like that Dec 31 11:30:07 omap-sham 480c3000.sham: initialization failed. Dec 31 11:30:24 omap-sham worked, I fixed in older version Dec 31 11:30:47 isp1704_charger isp1704: failed to register isp1704 with error -19 Dec 31 11:30:48 could be Dec 31 11:30:54 --> isp is broken Dec 31 11:31:01 needed for charger autodetection Dec 31 11:31:07 it worked in older version too! Dec 31 11:31:33 but -> "omap_ssi 48058000.ssi-controller: ssi controller 0 initialized (1 ports)!" Dec 31 11:31:55 and omap_ssi_port 4805a000.ssi-port: ssi port 0 successfully initialized (cawake=151) Dec 31 11:32:19 BT seems to work as well Dec 31 11:32:58 BT is working?? Dec 31 11:33:09 wait, maybe this is older version Dec 31 11:33:27 modprobe bq27x00_battery failed Dec 31 11:35:24 bq27x00_battery was renamed to bq27xxx_battery Dec 31 11:35:37 it is working, see: "bq27xxx-battery 2-0055: battery is not calibrated! ignoring capacity values" Dec 31 11:36:14 ok Dec 31 11:36:35 cellular: ssc[958]: modem connection cannot be established, retry (9 of 10) Dec 31 11:36:37 :( Dec 31 11:36:44 same problem as previous Dec 31 11:36:49 it is there for a long time Dec 31 11:36:56 but I think you once fixed it Dec 31 11:37:14 yes, and I was thinking the fix is uppstreamed Dec 31 11:37:32 looks like it is not in upstream... Dec 31 11:38:13 yeah Dec 31 11:39:34 libcmtspeechdata: hw6x_backend: unable to open device /dev/cmt_speech ('No such file or directory'). Dec 31 11:40:04 yep Dec 31 11:40:11 do you have drivers loaded? Dec 31 11:40:18 nokia_modem and others? Dec 31 11:40:48 dunno, I rebooted in KP to charge the battery as I got battery low warning Dec 31 11:40:56 will check in a while Dec 31 11:41:54 hmm, my patch seems to be upstreamed Dec 31 11:42:17 freemangordon: edit /sbin/preinit and add "nokia-modem" to line "load_modules rx51_battery" Dec 31 11:42:40 this is early init stage modules loading Dec 31 11:42:46 rx51_battery is needed here for BSI Dec 31 11:43:10 and nokia-modem is needed for gpio stuff in /sbin/preinit Dec 31 11:43:22 ok Dec 31 11:43:40 but now check if nokia-modem is loaded or not Dec 31 11:43:51 ok Dec 31 11:44:37 * jonwil wonders if this kernel work will help with Neo900 Dec 31 11:45:20 yes Dec 31 11:45:29 most of the stuff will be the same Dec 31 11:46:47 My current work is to do whatever I can in support of improving the security of Maemo Dec 31 11:47:09 freemangordon, post output from $ lshal Dec 31 11:47:25 ke-recv needs fixing too... Dec 31 11:48:21 although I will also be devoting a chunk of time to the PC upgrade I am about to undertake :) Dec 31 11:48:40 And to playing Fallout 4 once said PC upgrade is complete :) Dec 31 11:48:58 Pali: ok, just a second Dec 31 11:50:33 [ 278.728698] nokia-modem n900-modem: Could not get gpio 0 Dec 31 11:51:19 Pali: http://pastebin.com/Y9z2uJWY Dec 31 11:51:58 gpio 0 ? Dec 31 11:52:06 looks like bug in nokia-modem or in DTS Dec 31 11:52:08 Pali: kbd open sensor doesn't seem to work either Dec 31 11:52:15 Pali: yeah Dec 31 11:52:21 yes, it is GPIO Dec 31 11:52:36 and mce search for /sys/ ... gpio-swicth Dec 31 11:52:57 this needs to be fixed in mce to use /sys/class/gpio/ Dec 31 11:53:03 yep Dec 31 11:53:09 now kernel export just static data for gpio-switch Dec 31 11:54:02 anyway in upstream kernel keyboard open sensors is input device in /dev/input/event... Dec 31 11:54:06 so needs to be fixed Dec 31 11:54:55 I will fix mce, probably later today Dec 31 11:55:56 Pali: seems devm_gpiod_get_index fails Dec 31 11:56:28 something in DTS Dec 31 11:57:46 Pali: sorry, still can;t grok that DTS stuff :( Dec 31 12:04:30 Pali: gpio 0 is index, not the gpio istelf Dec 31 12:05:18 gpio index 0 is 70 Dec 31 12:07:13 Pali: and it is used in rx51_gpio_switches in pdata-quirks.c, could it be that gpio switch driver is using it? Dec 31 12:16:23 freemangordon: maybe, check if .failed is set to true Dec 31 12:16:34 if is failed = true, then it is *not* used Dec 31 12:18:53 it is not set Dec 31 12:20:08 RX51_GPIO_CMT_APESLPX is gpio 70 Dec 31 12:20:24 so? Dec 31 12:20:26 are you sure that isp1704/7 needs cmt_apeslpx? Dec 31 12:20:41 I am talking about nokia-modem :) Dec 31 12:21:01 ah, right! Dec 31 12:21:27 but sscd try to use gpio_switch and enabled/disable modem itself Dec 31 12:21:32 not via nokia_modem.ko Dec 31 12:22:03 freemangordon: try to boot with nokia-modem.pm=1 Dec 31 12:22:16 power management should be handed by userland Dec 31 12:22:20 ok Dec 31 12:23:21 freemangordon: no Dec 31 12:23:33 kernel ignores gpio only if pm is set to zero Dec 31 12:23:48 so boot with nokia-modem.pm=0 Dec 31 12:24:02 nokia-modem.pm=0 is also in CONFIG_CMDLINE Dec 31 12:24:03 this is what is in the config file Dec 31 12:24:20 but why then you have line "nokia-modem n900-modem: Could not get gpio 0" in dmesg? Dec 31 12:24:51 "Enable power management (0=disabled, 1=userland based [default])"); Dec 31 12:24:51 line "Could not get gpio" is only in function nokia_modem_gpio_probe() Dec 31 12:25:01 this should be 1, not zero Dec 31 12:25:06 and function nokia_modem_gpio_probe() is called only if pm != 0 Dec 31 12:25:37 no, it must be zero, see nokia_modem_gpio_probe() function Dec 31 12:25:55 it just export gpio numbers via /sys/class/gpio nothing more Dec 31 12:26:05 same code which is in gpio-switch Dec 31 12:26:28 and we need to export those gpios by gpio-switch, so sscd could handle it by correct path Dec 31 12:26:47 hmm, correct Dec 31 12:27:14 rmmod nokia_modem Dec 31 12:27:15 oh, wait, I did modprobe by hand Dec 31 12:27:21 * Wizzup is excited since he ran into these modem issues some time ago and got stuck Dec 31 12:27:21 modprobe nokia_modem pm=0 Dec 31 12:27:23 lemme try again Dec 31 12:27:25 * Wizzup is silent again Dec 31 12:27:27 :nod: Dec 31 12:29:05 Pali: but then I'd rather fix pminit Dec 31 12:29:15 *preinit Dec 31 12:29:39 simple modprobe nokia_modem should work (without args) Dec 31 12:30:03 s/_/-/ Dec 31 12:30:03 Pali meant: simple modprobe nokia-modem should work (without args) Dec 31 12:30:08 if you have set nokia-modem.pm=0 in cmdline Dec 31 12:30:42 put it does not Dec 31 12:30:57 * freemangordon is afk for a while Dec 31 12:40:03 Pali: for some reason cmdline does not work Dec 31 12:41:06 bah :-( Dec 31 12:41:23 ~ # cat /proc/cmdline Dec 31 12:41:23 init=/sbin/preinit ubi.mtd=rootfs root=ubi0:rootfs rootfstype=ubifs rootflags=bulk_read,no_chk_data_crc rw mtdoops.mtddev=log console=tty0 console=ttyO2 omapfb_vram=7M omapfb.mode=lcd:848x480-16 nokia-modem.pm=0 Dec 31 12:41:47 $ dpkg -S /sbin/modprobe Dec 31 12:41:47 module-init-tools: /sbin/modprobe Dec 31 12:41:53 going to look into source Dec 31 12:44:14 freemangordon: we have old version of module-init-tools without support for /proc/cmdline :-( Dec 31 12:44:18 this should be fixed Dec 31 12:45:47 freemangordon: so create /etc/modprobe.d/nokia-modem.conf with options nokia-modem pm=0 Dec 31 12:46:07 I will fix default value in linux-n900 git tree Dec 31 12:46:22 no, don't Dec 31 12:46:34 we'd better have .conf file Dec 31 12:47:10 ok, conf file Dec 31 12:48:56 soon or later we should make a support package, will put it there Dec 31 12:57:11 Dec 31 14:56:09 Nokia-N900 cellular: ssc[3314]: CMT self tests passed. Dec 31 12:57:22 Pali: ^^^ Dec 31 12:57:37 great :-) Dec 31 12:57:47 can you test SIM card? Dec 31 12:57:59 yup. but conf file is not used in preinit :( Dec 31 12:58:50 or I did not put the correct contents in it Dec 31 13:01:49 Pali: also, emmc is not mounted Dec 31 13:02:07 /opt? Dec 31 13:02:17 MyDocs Dec 31 13:02:27 maybe fsck is running? Dec 31 13:03:29 dunno Dec 31 13:04:42 ps | grep fsck Dec 31 13:04:47 looks correc, ain't? "options nokia-modem pm=0" Dec 31 13:04:59 yes Dec 31 13:05:20 preinit modprobe does not use it Dec 31 13:06:09 anyway, will stop for a while, until the battery is charged a bit Dec 31 13:06:25 Pali: any idea how to test isp? Dec 31 13:06:34 isp = camera? Dec 31 13:06:40 no, charger detection Dec 31 13:07:05 cat /sys/class/power_supply/... Dec 31 13:07:23 err, cat --> ls Dec 31 13:07:28 it should be there Dec 31 13:09:54 Pali: wanna remote access to the device? Dec 31 13:10:06 no need... Dec 31 13:10:26 ~ # ls /sys/class/power_supply/ Dec 31 13:10:27 bq24150a-0 bq27200-0 rx51-battery Dec 31 13:10:34 so isp probe fails Dec 31 13:10:44 that error message in dmesg Dec 31 13:11:30 hmm, modprobe succeed Dec 31 13:12:13 but charging still does not work Dec 31 13:13:50 and it is still not liset in power_supply Dec 31 13:15:47 isp1704_charger isp1704: init gpio 67 Dec 31 13:16:02 modprobe is just loading module Dec 31 13:16:08 rmmod and modprobe again Dec 31 13:16:09 yeah Dec 31 13:16:16 this is the result Dec 31 13:16:29 $ ls /sys/class/power_supply/ Dec 31 13:16:41 [ 514.637176] isp1704_charger isp1704: init gpio 67 Dec 31 13:16:42 [ 514.647979] isp1704_charger isp1704: failed to register isp1704 with error -19 Dec 31 13:16:47 no isp there Dec 31 13:16:57 ah :-( Dec 31 13:17:44 need to debug init routine Dec 31 13:20:25 Pali: will put some printk to see where it fails Dec 31 13:21:12 where does the output of printk go? dmesg? Dec 31 13:21:17 freemangordon: use this http://pastebin.com/GCViTeVF Dec 31 13:21:25 kerio: yes dmesg Dec 31 13:21:48 Pali: ok Dec 31 13:23:05 Pali: not all error cases are covered Dec 31 13:23:17 thats enough Dec 31 13:23:38 like of_get_named_gpio and devm_gpio_request_one Dec 31 13:23:39 ok Dec 31 13:24:36 hm.. there can be problem too? Dec 31 13:25:26 why not? Dec 31 13:25:34 if you check for error... Dec 31 13:27:03 Pali: [ 1130.078521] isp1704_charger isp1704: isp1704_test_ulpi failed Dec 31 13:30:57 hmm, "omap_i2c 48072000.i2c: controller timed out" Dec 31 13:35:08 -19 is -ENODEV Dec 31 13:35:40 freemangordon: so isp1704_test_ulpi fails at some -ENODEV Dec 31 13:40:54 will put pr_err in that function Dec 31 13:48:59 Pali: isp1704_read(isp, ULPI_SCRATCH); does not return 0xAA Dec 31 13:49:12 and what? Dec 31 13:50:08 freemangordon: can you compare result from that isp1704_read with some 3.x kernel? Dec 31 13:50:12 just a second, to put some more traces Dec 31 13:56:57 Pali: musb-hdrc musb-hdrc.0.auto: musb_init_controller failed with status -517 Dec 31 13:57:10 and "HS USB OTG: no transceiver configured" before that Dec 31 13:57:29 right, isp will not work without musb Dec 31 13:58:35 something in the .config? Dec 31 13:59:28 no idea... Dec 31 13:59:44 do you have musb in /sys/ ? Dec 31 14:00:06 # CONFIG_USB_ULPI_BUS is not set Dec 31 14:00:08 do you have g_nokia gadge active? Dec 31 14:00:27 I think CONFIG_USB_ULPI_BUS is not relevant Dec 31 14:00:46 this is from 4.2 Dec 31 14:01:09 was it enabled in 4.2? Dec 31 14:01:25 no idea Dec 31 14:01:29 but see http://cateee.net/lkddb/web-lkddb/USB_ULPI_BUS.html Dec 31 14:01:30 look into git Dec 31 14:02:14 hm... looks like ulpi code is now in kernel Dec 31 14:02:37 it was not enabled Dec 31 14:02:48 I.ll enable that Dec 31 14:02:50 this probably duplicates isp charger code... Dec 31 14:02:56 ah Dec 31 14:04:25 hmm, CONFIG_USB_ULPI=y Dec 31 14:23:28 Pali: could it be that dtb is broken? Dec 31 14:23:36 maybe Dec 31 14:23:52 how to check? Dec 31 14:24:07 as I see usb-phy configured in the dts file Dec 31 14:24:54 oh, wait Dec 31 14:25:01 it should be in /sys? Dec 31 14:26:57 hmm, we have usb_otg_hs Dec 31 15:00:23 Pali: shouldn't isp1704 return -EDEFER in case it cannot init ulpi? Dec 31 15:01:35 there is no explicit defer Dec 31 15:02:04 Pali: as -517 is -EPROBE_DEFER Dec 31 15:02:15 so actually musb is ok Dec 31 15:02:21 ok Dec 31 15:02:29 them problem is in isp1704 Dec 31 15:02:39 yes Dec 31 15:02:42 try 3.x kernel what that method returns and compare Dec 31 15:02:51 I don;t have 3.x kernel Dec 31 15:03:33 but what I see is that isp1704_read(isp, ULPI_SCRATCH); returns 0x00 instead of 0xAA Dec 31 15:06:08 Pali: maybe isp should power up the usb? Dec 31 15:06:34 no idea whats with that Dec 31 15:06:42 you can try to compile g_nokia as external module Dec 31 15:06:47 now it is compiled into zImage Dec 31 17:06:57 Pali: if I remove the check for 0xAA return value, the driver registers ok and cherging works Dec 31 17:07:03 *charging Dec 31 17:08:46 freemangordon: is charger detection working? Dec 31 17:09:02 check sysfs node for that Dec 31 17:09:14 I saw "Charging" banner Dec 31 17:09:16 :) Dec 31 17:09:25 and battery indicator is animated Dec 31 17:11:51 Pali: http://pastebin.com/mjvZMK6n Dec 31 17:12:20 usb cable Dec 31 17:12:27 now try disconnecting usb cable Dec 31 17:12:46 it should change state Dec 31 17:12:59 and try wallcharger, POWER_SUPPLY_CURRENT_MAX should be 1200 Dec 31 17:14:26 Pali: this is wallcharger Dec 31 17:14:38 freemangordon: then it is not working Dec 31 17:15:11 wallcharger detection failed Dec 31 17:15:38 Pali: sure, but before commenting that, no charging was working at all Dec 31 17:15:56 so it is better than before Dec 31 17:16:00 freemangordon: sure, because isp was not loaded and no event was sent Dec 31 17:16:05 yes Dec 31 17:16:17 you can enable charging, just telling bq2415x to enable charging Dec 31 17:16:41 echo host > /sys/class/power_supply/bq24150a/mode Dec 31 17:18:37 that won;t make isp1704 working Dec 31 17:24:23 Pali: I think I found the problem http://lxr.free-electrons.com/source/drivers/power/isp1704_charger.c#L370 Dec 31 17:24:45 isp1704_write(struct isp1704_charger *isp, u32 val, u32 reg) Dec 31 17:25:06 it is val, reg not reg, val Dec 31 17:25:38 omfg Dec 31 17:25:54 :D Dec 31 17:26:19 but... how that it worked? Dec 31 17:26:26 going to look into git history Dec 31 17:26:27 no idea Dec 31 17:27:37 Pali: all isp1704_write are like that Dec 31 17:28:05 no Dec 31 17:28:11 isp1704_charger_verify() uses reg, val Dec 31 17:28:42 isp1704_charger_detect() uses reg, val Dec 31 17:28:56 for example isp1704_write(isp, ULPI_OTG_CTRL, otg_ctrl); Dec 31 17:28:58 isp1704_test_ulpi uses reg, val Dec 31 17:29:19 Pali: all calls are on the oposite Dec 31 17:29:21 isp1704_charger_type() uses val, reg Dec 31 17:29:37 and then reg, val Dec 31 17:29:42 OMFG Dec 31 17:29:49 oh, yes Dec 31 17:29:56 who wrote that code? Dec 31 17:30:05 :p Dec 31 17:30:31 I will use the most dangerous git command now! Dec 31 17:31:05 everything Heikki Krogerus !! Dec 31 17:32:25 static inline int usb_phy_io_write(struct usb_phy *x, u32 val, u32 reg) { ... Dec 31 17:32:37 is signature in include/linux/usb/phy.h Dec 31 17:32:43 yes Dec 31 17:33:02 so isp1704_write() has correct signature/parameters too Dec 31 17:33:07 yes Dec 31 17:33:18 but the code calls it with random order Dec 31 17:35:08 freemangordon: can you try fix driver and test it again? Dec 31 17:35:15 sure Dec 31 17:35:27 this is total nonsense here... Dec 31 17:35:30 lets hope GF does not get angry on my :) Dec 31 17:35:32 yeah Dec 31 17:36:45 why, is it her n900? Dec 31 17:36:46 :] Dec 31 17:37:26 freemangordon: that code is also in stock nokia kernel: drivers/usb/musb/musb_core.c Dec 31 17:37:39 omg Dec 31 17:37:40 just different function names, like: musb_verify_charger Dec 31 17:37:56 but, but, how that works at all? Dec 31 17:39:01 oh, no, stock nokia kernel has switched params Dec 31 17:39:07 reg, val Dec 31 17:39:30 maybe we should just switch the parameters as well Dec 31 17:39:41 also, what is ULPI_CLR? Dec 31 17:40:08 #define ULPI_CLR(a) (a + 2) Dec 31 17:40:30 http://lxr.free-electrons.com/source/include/linux/ulpi/regs.h#L9 Dec 31 17:40:50 yes, saw that Dec 31 17:40:57 is that reg or val? Dec 31 17:41:03 register Dec 31 17:42:13 Pali: all calls are (reg, val) Dec 31 17:43:36 Pali: I'll just change the signature Dec 31 17:43:43 ok Dec 31 17:44:29 Pali: I guess the smae problem exists in KP Dec 31 17:44:32 *same Dec 31 17:44:40 why same problem? Dec 31 17:44:46 with bme replacement Dec 31 17:44:48 I checked it now, it has correct signature Dec 31 17:45:27 so, in kp it is isp1704_write(struct isp1704_charger *isp, u32 reg, u32 val) Dec 31 17:45:29 ? Dec 31 17:45:38 nokia kernel just read each reg before write new value (and or it) Dec 31 17:45:53 in kp it is musb_ulpi_writeb() Dec 31 17:45:57 what about isp1704 in KP? Dec 31 17:46:05 static inline void musb_ulpi_writeb(void __iomem *addr, u8 offset, u8 data) Dec 31 17:46:06 ok Dec 31 17:46:19 iskp1704 is integrated in musb in nokia kernel Dec 31 17:46:48 that is originally in nokia kernel, not bme replacment code Dec 31 17:47:35 so, bme replacement does not use isp1704? Dec 31 17:47:46 or it uses it, but it is ok? Dec 31 17:48:02 bme replacement does not use isp1704 Dec 31 17:48:32 kp has modified bq2415x to receive charger events from musb (where is that isp code) Dec 31 17:48:35 ok Dec 31 17:50:25 Pali: Much better now :) http://pastebin.com/uWibq2qe Dec 31 17:51:25 Pali: and USB charger is correctly detected Dec 31 17:51:45 great Dec 31 17:52:04 it is enough to change signature? Dec 31 17:52:19 or that ulpi test is need to fix too? Dec 31 17:53:01 yes, changing signature is all that is needed Dec 31 17:53:25 ok, /me going afk Dec 31 17:57:30 freemangordon: it is broken since this commit: fcc8ebc99034bae4020a3cec030553d469e265db Dec 31 17:57:54 Signed-off-by: Heikki Krogerus Dec 31 18:04:54 Pali: yeah Dec 31 19:12:28 happy new year, guys! Dec 31 19:24:32 Pali: how cute :( http://pastebin.com/sxDC5tcx Dec 31 19:35:19 bah, nothing more from Juhani yet :P Dec 31 19:40:03 freemangordon: when trying to mount a modem data interface? Dec 31 19:42:44 ceene: premature greetings Dec 31 19:42:55 still 3.3h before the 00:00 Dec 31 19:43:45 pali, fmg, i love you guys for what you are doing Dec 31 19:44:02 * jonwil still cant figure out how to get the output of parse-certdata-txt into the root CA store :( Dec 31 19:44:51 jonwil: treat it as an challenging adventure game without walkthrough Dec 31 19:44:59 also, love you too Dec 31 19:47:33 bencoh: seems like related. but whatever it is, it should not oops the kernel Dec 31 19:59:27 * RST38h yawns Dec 31 20:00:14 wow, another dinosaur Dec 31 20:00:15 KotCzarny, in the flesh Dec 31 20:00:39 rst38h: pink floyd? Dec 31 20:00:43 * RST38h pours some milk Dec 31 20:01:02 * KotCzarny meows Dec 31 20:01:21 Funny, how Maemo appears to have outlived not just Meego but Jolla as well Dec 31 20:01:40 good enough tech [tm] Dec 31 20:01:58 android with all those shinies is for the kids Dec 31 20:02:10 i recently bumb up to odd thing Dec 31 20:02:30 Oh, WinPhone also dead, afaik Dec 31 20:03:05 i pad is found under bluetooth, but even tho it is connected it is not show in bluetooth filesharing option Dec 31 20:03:28 rst38h, we will hear about intel phone sooner or later Dec 31 20:03:59 KotCzarny: FCC is currently rubberstamping Google Glass 2, with Intel inside Dec 31 20:05:20 There is also a bunch of Intel-based Android gadgets, like Dell Venue and some Motorola phones. Not particularly good games compatibility though. Dec 31 20:07:17 they still have to work on input interface Dec 31 20:07:35 hands/fingers are like parallel input Dec 31 20:07:44 Then, there are Tizen releases in India (budget Z1, full Z3) and Tizen also runs Samsung Gear watches Dec 31 20:08:04 Debian, SMACK, the whole shebang Dec 31 20:08:08 until then, it all will be too laggy to fully immerse Dec 31 20:09:04 You mean the Glass? They are targeting Glass 2 to industrial workers, repairmen, doctors, etc. No immersive. Dec 31 20:09:37 i'm waiting for fully immersive interface Dec 31 20:10:15 Check out HTC's rig then - reviwers claim it is immersiviest of 'em all Dec 31 20:10:57 * RST38h forgot to mention Ubuntu phone in the lineup =) Dec 31 20:15:38 hmm Dec 31 20:15:42 open source? Dec 31 20:16:05 Ubuntu? Yeah, one way open source Dec 31 20:18:25 the ubuntuphone layer is, more or less. the hw adaptation layer, on the other hand.... Dec 31 20:19:00 (you know, the android stack with closed drivers/ril/userland + libhybris + ubuntu on top) Dec 31 20:19:24 so, not much changed Dec 31 20:19:30 but at least it shows some activity Dec 31 20:21:28 Android no longer has HAL separation Dec 31 20:22:33 But most of it (other than video hw drivers, ril, etc) is open source, in the sense that you can see and use the source Dec 31 20:22:50 So many people seem to be using Android drivers and related bits as the base for some other smartphone platform. Dec 31 20:23:03 Can't commit back to Android of course. Nor will you be able to pass Google's certification if they do not like you. Dec 31 20:23:04 Probably because its the only way to get usable drivers for e.g. a Qualcomm Snapdragon Dec 31 20:23:15 jonwil: correct Dec 31 21:08:59 freemangordon: looks like bug in net subsytem, skb Dec 31 21:12:44 jonwil: surprisingly enough ... http://cateee.net/lkddb/web-lkddb/USB_NET_QMI_WWAN.html Dec 31 21:14:26 qualcomm is still a pain, but not for this specific part (qmi driver) Dec 31 21:15:26 dont expect to get a free RIL, but you should be able to drive it through qmi/libqmi Dec 31 21:15:48 * jonwil suspects Qualcomm actually benefits from not having Snapdragon bits in mainstream kernels (or easily usable from vanilla Linux) Dec 31 21:16:24 Lets them hand out different kernel stuff and drivers and blobs to different Snapdragon users based on what features they are willing to pay for... Dec 31 21:18:13 HNY 2016! Dec 31 21:18:20 not yet Dec 31 21:18:35 it is, here Dec 31 21:18:48 its 2016 here too Dec 31 21:19:06 i dont feel any different, so it must still be 2015 Dec 31 21:19:12 jonwil: I do not understand obsession with Snapdragon Dec 31 21:19:31 Its the most popular mobile device chip :P Dec 31 21:19:39 jonwil: In the US it is Dec 31 21:19:54 not just in the US Dec 31 21:20:06 jonwil: But in terms of bang for the buck, I would consider RK or MTK instead Dec 31 21:20:39 MTK means low-end device / no support Dec 31 21:20:58 Getting any support from Qualcomm? =) Dec 31 21:21:12 I guess the vendos are getting some Dec 31 21:21:21 Snapdragon is the most popular for Android devices because Qualcomm has put a bunch of effort into making Android run real good on those chips Dec 31 21:21:21 it couldn't get worse than MTK anyway :p Dec 31 21:22:02 RK-based Android devices are actually pretty good, as long as manufacturer installs a decent screen Dec 31 21:22:18 I have heard Qualcomm is one of the harder vendors to work with when it comes to getting information, data sheets, specs, drivers etc (worse than, say, TI) Dec 31 21:22:22 RST38h: RK-base phones? Dec 31 21:22:28 jonwil: yep Dec 31 21:22:41 jonwil: Even the Chinese are more outgoing Dec 31 21:23:00 hehe, now that's rude Dec 31 21:24:02 KotCzarny: Well, these guys have got the language barrier working against them but at least they are trying Dec 31 21:24:27 And their stuff is pretty standard on the inside, almost no surprises Dec 31 21:24:49 they are masters of cloning, not breaking working designs Dec 31 21:25:04 fixing stuff takes too much time/resources Dec 31 21:26:14 standard multicore ARM, standard 3D hw, video buffers freely accessible, fb* devices work the way they are expected to work with minor bugs Dec 31 21:26:33 KotCzarny: What else would one want from them? Dec 31 21:26:56 gsm chips Dec 31 21:27:07 jonwil: TI isnt that bad, btw Dec 31 21:27:07 Even got little lizard brain doing h264 decoding and color conversions =) Dec 31 21:27:24 jonwil: apart from the SGX stuff and their bootloader, it's quite documented Dec 31 21:27:30 yeah I know Dec 31 21:27:37 thats why I said Qualcomm is worse Dec 31 21:27:44 * RST38h steps away to throw up after hearing "SGX" Dec 31 21:27:52 :) Dec 31 21:28:03 jonwil: worse than "almost good"? :) Dec 31 21:28:04 Surprised they aren't more open about their bootloader and boot process... Dec 31 21:28:05 RST38h: :-) Dec 31 21:28:15 Or is there some sort of "Secret sauce" in there they dont wanna share? Dec 31 21:28:44 But look at the bright side: Imagetech now owns two greatest hardware designs in human history: PVR and MIPS! Dec 31 21:28:59 hey RST38h, long time no see Dec 31 21:29:05 Hello, Doc Dec 31 21:29:26 intel confirmed trying to bring maemo down Dec 31 21:29:34 o.O Dec 31 21:29:41 jonwil: http://processors.wiki.ti.com/index.php/Boot_Sequence Dec 31 21:29:42 backup, i need backup! Dec 31 21:29:51 kerio: wait, what? Dec 31 21:29:55 re: mainline linux broken on rx51 since a commit by an intel guy Dec 31 21:30:08 haha Dec 31 21:30:19 ((Maemo appears to have outlived not just Meego but Jolla as well)) tells a story, no? Dec 31 21:30:21 kerio, wouldnt they be after meego and not maemo? Dec 31 21:30:28 someone should send them an email Dec 31 21:30:52 KotCzarny: meego's already dead ;) Dec 31 21:30:56 Sending emails to Intel employees? No, THAT is such a meaningful activity... Dec 31 21:31:24 kerio: so can't that commit get wrapped up and shove it up the rear of the author? Dec 31 21:31:31 rst38h: email bomb then? Dec 31 21:31:35 RST38h: aww, they're humans too! they've got feelings :) Dec 31 21:31:42 idk i think that bugs happen Dec 31 21:32:04 bencoh: Got CNDA and annual review coming up in 2 months. Dec 31 21:32:16 bencoh: rest is strictly decorative Dec 31 21:32:41 (meego (aka maemo6) dead) I hate saying "I told ya" Dec 31 21:32:51 ~aegis Dec 31 21:32:52 http://www.developer.nokia.com/Community/Wiki/Harmattan:Developer_Library/Developing_for_Harmattan/Harmattan_security/Security_guide , or "The purpose of this framework is: ... to make sure that the platform meets the requirements set by third party software that requires a safe execution environment.", or http://en.wikipedia.org/wiki/Trusted_Computing#Criticism, or http://en.qi-hardware.com/w/images/1/10/ME_382_LockedUpTechnology2.gif Dec 31 21:33:01 Doc: There has never been "Meego". Dec 31 21:33:16 Doc: There was Maemo Harmattan, Moblin 2, and Tizen Dec 31 21:34:06 Doc: Of these, we have hardly known Harmattan, Moblin 2 is fortunately dead, and Tizen is alive and kicking, WITH Aegis Dec 31 21:34:10 The N900 really is the "little phone that could". Its still popular long after Android phones of the same vintage have stopped being supported by the dev community Dec 31 21:34:35 jonwil: People say HTC Desire HD has had the same fate Dec 31 21:34:44 why's that Dec 31 21:34:50 jonwil, its only because there is no successor Dec 31 21:35:07 what's particular about it? Dec 31 21:35:49 kerio: Desire HD? No idea. Have one in the family. A decent Gingerbread phone, built like a tank, dunno why it keeps being developed for though Dec 31 21:36:04 i should probably buy another n900 Dec 31 21:36:12 or merge the two i have into one fully functioning one Dec 31 21:37:00 about 'merging': http://img.sadistic.pl/pics/155264cf138d.gif Dec 31 21:37:09 LOL Dec 31 21:37:32 Why does he need that thing with the fragile screen, anyway? Dec 31 21:37:53 rst38h: maybe there is another part to cover the screen too Dec 31 21:38:13 yeah, the one he uses for browsing internet Dec 31 21:38:26 the voice call part looks covered too =) Dec 31 21:38:36 :) Dec 31 21:45:28 KotCzarny::D Dec 31 21:46:41 nothing beats wap browsing on a good old b&w nokia Dec 31 21:52:58 * KotCzarny tried wap browsing once on ericsson t39 Dec 31 21:53:02 it was awful Dec 31 21:53:23 (browsing, phone was superb) Dec 31 21:57:05 Pali: yeah, maybe you should upgrade to newer rcN to check if it is fixed Dec 31 22:02:41 HNY guys :) Dec 31 22:02:49 not yet! Dec 31 22:02:52 :) Dec 31 22:08:54 -1h for me Dec 31 22:16:57 Most of my family owns crApple iFail devices :P Dec 31 22:17:39 do they use it for anything else than phoning? Dec 31 22:18:37 My brother has one that he plays some sort of game with dragons in it (one of those "free to play but pay to actually get anywhere in the game" pieces of crap) Dec 31 22:19:36 One member of the family doesn't own an iFail, they own some sort of Sony piece of crap Dec 31 22:20:04 as long he uses it for audio it might be actually good Dec 31 22:20:58 I have at least one family member who does use their iDevice for music Dec 31 22:21:09 beats carrying a car load of CDs... Dec 31 22:21:18 ;) Dec 31 22:21:27 or minidiscs Dec 31 22:21:36 or casette tapes Dec 31 22:23:21 all of my music listening is done on my PC (either via my music collection or via the billions of music related videos on YouTube) so I dont need a portable player Dec 31 22:23:48 portable player is still useful as a controller Dec 31 22:24:04 (in such case) Dec 31 22:25:25 in any case I refuse to buy any Apple product ever (even stuff as gifts for my Apple-using family) Dec 31 22:29:00 the 15" macbook pro is the best laptop i've ever used Dec 31 22:30:09 but idk ¯\_(ツ)_/¯ Dec 31 22:49:13 not long now fir Apple Dec 31 22:50:10 Solid financial management is in and they are trying their best to solidly financially manage the company =) Dec 31 22:58:53 Apple stopped having genuinely new ideas years ago (probably when Jobs died, if not before) Dec 31 22:59:04 Now they just copy stuff Dec 31 23:23:16 But they are solidly managed! Dec 31 23:23:52 Responsible, level headed decision making is the key to stagnation =) Dec 31 23:57:24 Anyone who wants an example of how NOT to run a company, look at Xerox in the 1970s. They had the laser printer, GUI-based desktop computer, local area networking and other forward-thinking technologies but the idiots running Xerox at the time (especially the money men at the top who had been hired from Ford) didn't realize what they had and as a result Apple and Microsoft took it all Jan 01 00:49:28 happy new year maemoites Jan 01 01:30:33 s/new/gnu/ Jan 01 01:58:50 Yup Jan 01 01:59:41 robbiethe1st!! long time no see :-) Jan 01 01:59:51 I'm still around... ish Jan 01 01:59:58 If someone highlights me, that is Jan 01 02:02:07 That being said, I'm still running my N900 and N950. N950's glass cracked a few months back, but still works. And I'm still waiting for something better. **** ENDING LOGGING AT Fri Jan 01 02:59:58 2016