IRC log of #maemo for Thursday, 2015-12-31

PaliDocScrutinizer05: N9 with JTAG instead SIM slot: http://talk.maemo.org/showthread.php?p=1492999#post149299900:02
DocScrutinizer05hmm, well, not exciting. It's a well known fact that N9 has the debug-testpoints (incl JTAG) inside the SIM slot00:04
DocScrutinizer05thanks anyway Pali00:05
DocScrutinizer05(ian)  https://www.reddit.com/r/linux/comments/3yktcg/ian_murdock_debian_founder_is_threatening_suicide/00:05
DocScrutinizer05ooh, sorry, didn't notice the previous post00:06
*** Arch-TK has quit IRC00:15
DocScrutinizer05but this http://pastebin.com/yk8bgru5 is really worrying00:15
*** Ras_Older has quit IRC00:17
freemangordonPali: nishant usually hangs on #maemo-ssu00:17
*** Kilroo has quit IRC00:18
*** futpib_ has quit IRC00:19
*** Arch-TK has joined #maemo00:19
*** Arch-TK has quit IRC00:23
*** Arch-TK has joined #maemo00:24
KotCzarnyhttps://www.reddit.com/r/linux/comments/3yktcg/ian_murdock_debian_founder_is_threatening_suicide/cygmtve00:26
*** Ras_Older has joined #maemo00:29
sixwheeledbeastworrying?00:31
*** at1as has quit IRC00:32
*** louis_ has joined #maemo00:40
*** Pali has quit IRC00:42
*** Arch-TK has quit IRC00:44
*** louis_ has quit IRC00:44
*** Ras_Older has quit IRC00:45
*** Ras_Older has joined #maemo00:45
*** xorly has joined #maemo00:47
*** Ras_Older has quit IRC00:49
*** Ras_Older has joined #maemo00:50
*** Arch-TK has joined #maemo00:50
*** LauRoman|Phone has joined #maemo01:07
*** eMHa_ has joined #maemo01:13
*** eMHa has quit IRC01:16
*** DocScrutinizer05 is now known as sounds01:16
*** sounds is now known as DocScrutinizer0501:16
*** user has joined #maemo01:24
*** RzR is now known as rZz01:24
*** user is now known as ceene90001:24
*** rZz is now known as rZr01:24
*** at1as has joined #maemo01:32
*** at1as has quit IRC01:42
*** LauRoman has quit IRC01:44
*** florian has quit IRC01:48
*** florian has joined #maemo01:55
*** xorly has quit IRC01:58
*** Kilroo has joined #maemo02:06
*** louisdk has quit IRC02:12
*** louisdk has joined #maemo02:12
*** at1as has joined #maemo02:19
*** Hurrian has quit IRC02:21
jonwilLooks like there should be no problems updating the root certificates in CSSU once I figure out how to convert the output of parse-certdata-txt.c to what is needed for the maemosec-certman-common-ca package (or once Juhani responds to my email and shares how to do that :)02:28
DocScrutinizer05https://i.4cdn.org/g/1451516326761.jpg02:39
*** at1as has quit IRC02:45
*** florian has quit IRC03:01
*** robbiethe1st has joined #maemo03:53
*** eMHa__ has joined #maemo04:20
*** eMHa_ has quit IRC04:24
*** krnlyng has quit IRC04:26
*** louisdk has quit IRC04:34
*** krnlyng has joined #maemo04:39
*** Humpelstilzchen has quit IRC04:42
*** Hurrian has joined #maemo04:44
*** Defiant has joined #maemo04:47
*** louisdk has joined #maemo04:59
*** pozitrono has joined #maemo05:24
*** louisdk has quit IRC05:25
*** louisdk has joined #maemo05:45
*** fuz_ has quit IRC05:46
*** Roth has joined #maemo05:50
*** robbiethe1st has quit IRC05:57
*** fuz_ has joined #maemo06:05
*** DocScrutinizer05 has quit IRC06:06
*** DocScrutinizer05 has joined #maemo06:06
*** krnlyng has quit IRC06:25
*** krnlyng has joined #maemo06:39
*** sparetire_ has quit IRC06:54
*** jonwil has quit IRC07:09
*** jonwil has joined #maemo07:13
*** louisdk has quit IRC07:31
*** ceene has quit IRC07:35
*** LauRoman has joined #maemo07:37
*** Sicelo009N has quit IRC08:05
*** Sicelo009N has joined #maemo08:07
*** krnlyng has quit IRC08:09
*** LauRoman has quit IRC08:26
*** LauRoman|Phone has quit IRC08:29
*** krnlyng has joined #maemo08:30
*** pozitrono has quit IRC08:59
*** Roth has quit IRC09:04
*** RedW has quit IRC09:05
*** RedW has joined #maemo09:06
*** futpib_ has joined #maemo09:31
*** ceene has joined #maemo09:48
*** geaaru has joined #maemo10:02
*** Pali has joined #maemo10:02
*** krnlyng has quit IRC10:04
*** krnlyng has joined #maemo10:32
*** florian has joined #maemo10:44
Palifreemangordon: I fixed some problems in libcal & osso-product-info11:29
*** ceene has quit IRC11:55
freemangordonPali: great11:56
Palichanges are in git11:56
freemangordonis there deb?11:56
Palibut do now if it helps you11:56
freemangordonok, I'll build and test11:57
Palino deb yet11:57
jonwilok, looks like I am running stock versions of both of those so I dont need to upgrade :)11:59
*** florian has quit IRC11:59
freemangordonjonwil: grab my CAL , mount it and test12:00
freemangordon:)12:00
*** ceene has joined #maemo12:00
*** ceene is now known as sslayer12:00
KotCzarnysoup slayer?12:01
sslayeruhm12:01
sslayerhi12:01
*** sslayer is now known as ceene12:01
ceenethis better12:01
ceenei'm trying an irc proxy12:01
ceenekind of like screen but for irc12:02
KotCzarnyyup12:03
KotCzarnypretty useful12:03
KotCzarnyin case you dont have stable shell12:03
ceenethis should let me connect with n900's xchat and receive a backlog of last things spoken and all that12:03
ceenei usually ssh this server and screen -rd an irssi12:04
ceenebut i like n900's xchat12:04
jonwilceene: Thanks to Juhani Mäkelä we now have the "official" parse-certdata-txt.c file used to update the root certificates in Maemo12:04
ceenejonwil: cool!12:04
jonwilso we dont need the python script that you edited last night12:04
ceenelol12:04
ceeneall that work for nothing :P12:04
jonwilI 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 sture12:05
ceenebut it's okay, it's better having the original!12:05
jonwilstore12:05
ceeneseems look a cool guy, doesn't he?12:05
jonwilwell it seems like he is willing to share info12:05
ceenecool enough for us12:05
jonwilhopefully he responds with the rest of the steps to take :)12:06
jonwilthen 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 :)12:07
*** ceene900 has quit IRC12:10
jonwiland one part of the security system at least will be up-to-date12:11
ceenethat'd be a great step12:11
ceeneand alongside openssl1.0.2e we're cutting edge on a 6 years old device12:12
KotCzarny:)12:15
KotCzarnymy laptop is from 200612:15
ceeneso12:18
ceenehi12:18
ceeneuhm12:18
ceenefunny12:18
ceenei can connect with two clients to the proxy12:18
ceeneat the same time12:18
ceenecool :)12:18
ceeneceene: you're a cool guy, man12:18
Sicelo009Nyou're talking about a bouncer?12:19
ceeneand speaking my name triggers a notification on n90012:19
ceeneapt-get install bip :)12:19
ceeneyes, something like that12:19
jonwilceene: Updating OpenSSL is a great start but we also really need to update NSS inside microb12:19
ceenehow does one start doing that?12:20
ceeneto be honest, i don't use microb12:20
ceenei use midori running on an easy debian image12:20
ceenewhich i find to be blazing fast12:20
ceenealthough i understand microb is used too by things like modest12:20
jonwilYes microb is used for modest12:21
jonwiland also for conversations app12:21
jonwiland nokia maps12:21
jonwilAnyone here running a stock Maemo Fremantle PR1.3.1 install? (i.e. not running CSSU or updated versions of any system packages)12:21
bencohjonwil: last time I checked, it seemed like NSS should keep some kind of backward compat with older apps12:22
ceeneit's called libnss3 both on maemo and debian sid12:23
bencoh(ABI-wise)12:23
ceeneso it's probably compatible12:23
ceeneand only repackaging up to date libnss3 is enough?12:23
bencohso we might try building latest libnss312:24
bencohceene: maybe12:24
bencohif it's not, well... we need to replace the libnss3 source in the microb-engine tree and see what happens12:24
bencoh(and/or diff source, bleh, the usual stuff)12:24
jonwilhmmm, I still cant find out how libcurl on a stock N900 gets its root certificates12:34
freemangordonPali: https://github.com/community-ssu/osso-product-info/blob/master/osso-product-info.c#L8712:42
freemangordon:)12:42
Pali*p = 0;  if(osso_set_product_info(code, p) < 0)12:42
Palihere it is12:43
freemangordonyes12:43
Palibut first fix why '-q' param crash!12:43
freemangordonalso, are you sure "RX-51_2009SE_21.2011.38-1_PR_MR0" should be in quotes12:43
freemangordonPali: it no longer crashes, after your fixes12:43
Paliquotes are removed by bash12:43
freemangordonsure?12:44
Palifreemangordon: and what is output now?12:44
freemangordon~ #  osso-product-info -q OSSO_VERSION12:44
freemangordonERROR: Could not find value for key /device/sw-release-ver12:44
freemangordonError getting variable OSSO_VERSION value12:44
Palishell remove quotes everytime, so if you want to pass ' or " into shell you need to escape it12:44
freemangordonok12:44
Palifreemangordon: great, query it fixed12:45
freemangordonthat  *p = 0; should be p ++; IMO12:45
freemangordoncorrect?12:45
freemangordonor remove it alltogether and pass p + 1 to the function12:46
Pali*p=0; p++;12:46
Paliyou need to remove char '='12:46
Paliso optarg is key12:46
Paliand p is value12:46
Paliformat is "key=value"12:46
freemangordonPali: but oh, yes12:48
KotCzarny++p ?12:50
PaliKotCzarny: in C without checking lvalue is ++p and p++ same, gcc optimize p++ code12:51
KotCzarnyahm12:52
KotCzarnydidnt know gcc does it anyway12:52
freemangordonPali: hmm, another bug https://github.com/community-ssu/osso-product-info/blob/master/libossoproductinfo.c#L7612:55
Palihm?12:56
freemangordonwe search for /device/sw-release-ver, but set sw-release-ver12:56
Paliits ok12:56
Palisw-release-ver is CAL key12:56
Pali/device/sw-release-ver is sysinfod DBUS key12:56
Pali"sw-release-ver" is correct CAL key (section) name12:57
freemangordonyes, but see what  get_product_info does12:57
*** xorly has joined #maemo12:57
Palimaybe replace product_info_keys[i].name with key at line 370?12:59
Palibut both in this case should be valid12:59
freemangordonget_info call sysinfo functions13:00
Paliand?13:00
freemangordonoh, maybe I should rebott13:01
Paliyes, sysinfo read CAL suff when starting13:01
freemangordonfor the value in CAL to take effect, lemme try13:01
freemangordonok13:01
freemangordonmakes sense13:01
Palieither restart sysinfo13:01
Palior reboot device13:01
freemangordonrebooting13:01
Palistop sysinfod && start sysinfod13:01
freemangordontoo late, also I wont to boot into 4.413:02
freemangordon*want13:02
*** Sicelo009N has quit IRC13:02
*** Sicelo009N has joined #maemo13:07
freemangordonPali: it is ok after reboot13:07
Paligreat13:07
Palipush fixes to git13:07
freemangordonwill do13:08
Paliand ideally also new packages into cssu-devel13:08
freemangordonno, as my SB target is for linux, don;t want to switch it now13:08
freemangordonmaybe later13:08
ceeneoh, i see libnss3' source is microb-engine13:09
freemangordonPali: http://talk.maemo.org/showthread.php?p=1493038#post149303813:11
freemangordon:)13:11
bencoh:)13:12
Paligreat :-)13:12
ceenefreemangordon: cool!13:12
freemangordonPali: BTW osso-product-info is missing CFLAGS for optimization and debug symbols13:13
Palifreemangordon: can you test HW if working?13:13
freemangordonwhat HW?13:13
Paliwifi, ...13:13
Palitouchscreen, ..13:13
Palietc13:13
Palibasicly what should be supported according to elinux.org/N90013:13
Palitest for regressions13:13
Palifreemangordon: modem is working or not?13:14
Paliand SGX?13:14
freemangordonPali: comeon, this is xterm13:14
freemangordonsee wifi icon in status menu :)13:14
freemangordonPali: going to install syslog and reboot, will pastebin boot log in a minute13:15
freemangordonhmm, where is syslog? in SDK repo?13:18
Palisyslog?13:19
Paliin nokia ssu repo13:19
jonwilyou want apt-get sysklogd13:19
Paliksyslogd13:19
jonwilhttp://maemo.org/packages/view/sysklogd/13:20
jonwilits in device repo13:20
freemangordon"E: Couldn't find package sysklogd" :)13:21
freemangordonit is in SDK repo13:21
Paliyou need also klogd13:22
freemangordonyeah13:22
Palihttp://repository.maemo.org/pool/maemo5.0/free/s/sysklogd/sysklogd_1.5-5maemo7+0m5_armel.deb13:22
Palihttp://repository.maemo.org/pool/maemo5.0/free/s/sysklogd/klogd_1.5-5maemo7+0m5_armel.deb13:22
freemangordonI installed the repo13:23
freemangordonPali: leds work13:24
freemangordonRGB led that is13:24
freemangordonseems like mce does not disable backlight13:25
freemangordonand kbd backlight as well13:26
freemangordonPali: http://pastebin.com/haRz2j2Y13:27
freemangordonalso, charging doesn't seem to work13:28
Palisr_init: No PMIC hook to init smartreflex13:29
freemangordonyeah13:29
freemangordonit has always been like that13:29
Paliomap-sham 480c3000.sham: initialization failed.13:30
Paliomap-sham worked, I fixed in older version13:30
Pali isp1704_charger isp1704: failed to register isp1704 with error -1913:30
freemangordoncould be13:30
Pali--> isp is broken13:30
Palineeded for charger autodetection13:31
Paliit worked in older version too!13:31
freemangordonbut -> "omap_ssi 48058000.ssi-controller: ssi controller 0 initialized (1 ports)!"13:31
*** eijk has joined #maemo13:31
freemangordonand omap_ssi_port 4805a000.ssi-port: ssi port 0 successfully initialized (cawake=151)13:31
freemangordonBT seems to work as well13:32
PaliBT is working??13:32
Paliwait, maybe this is older version13:33
freemangordonmodprobe bq27x00_battery failed13:33
Palibq27x00_battery was renamed to bq27xxx_battery13:35
Paliit is working, see: "bq27xxx-battery 2-0055: battery is not calibrated! ignoring capacity values"13:35
freemangordonok13:36
freemangordoncellular: ssc[958]: modem connection cannot be established, retry (9 of 10)13:36
freemangordon:(13:36
Palisame problem as previous13:36
Paliit is there for a long time13:36
Palibut I think you once fixed it13:36
freemangordonyes, and I was thinking the fix is uppstreamed13:37
Palilooks like it is not in upstream...13:37
freemangordonyeah13:38
Palilibcmtspeechdata: hw6x_backend: unable to open device /dev/cmt_speech ('No such file or directory').13:39
freemangordonyep13:40
Palido you have drivers loaded?13:40
Palinokia_modem and others?13:40
freemangordondunno, I rebooted in KP to charge the battery as I got battery low warning13:40
freemangordonwill check in a while13:40
freemangordonhmm, my patch seems to be upstreamed13:41
Palifreemangordon: edit /sbin/preinit and add "nokia-modem" to line "load_modules rx51_battery"13:42
Palithis is early init stage modules loading13:42
Palirx51_battery is needed here for BSI13:42
Paliand nokia-modem is needed for gpio stuff in /sbin/preinit13:43
freemangordonok13:43
Palibut now check if nokia-modem is loaded or not13:43
freemangordonok13:43
* jonwil wonders if this kernel work will help with Neo90013:44
freemangordonyes13:45
freemangordonmost of the stuff will be the same13:45
jonwilMy current work is to do whatever I can in support of improving the security of Maemo13:46
Palifreemangordon, post output from $ lshal13:47
Palike-recv needs fixing too...13:47
jonwilalthough I will also be devoting a chunk of time to the PC upgrade I am about to undertake :)13:48
jonwilAnd to playing Fallout 4 once said PC upgrade is complete :)13:48
freemangordonPali: ok, just a second13:48
freemangordon[  278.728698] nokia-modem n900-modem: Could not get gpio 013:50
freemangordonPali: http://pastebin.com/Y9z2uJWY13:51
Paligpio 0 ?13:51
Palilooks like bug in nokia-modem or in DTS13:52
freemangordonPali: kbd open sensor doesn't seem to work either13:52
freemangordonPali: yeah13:52
Paliyes, it is GPIO13:52
Paliand mce search for /sys/ ... gpio-swicth13:52
Palithis needs to be fixed in mce to use /sys/class/gpio/13:52
freemangordonyep13:53
Palinow kernel export just static data for gpio-switch13:53
Palianyway in upstream kernel keyboard open sensors is input device in /dev/input/event...13:54
Paliso needs to be fixed13:54
freemangordonI will fix mce, probably later today13:54
freemangordonPali: seems  devm_gpiod_get_index fails13:55
freemangordonsomething in DTS13:56
freemangordonPali: sorry, still can;t grok that DTS stuff :(13:57
freemangordonPali: gpio 0 is index, not the gpio istelf14:04
freemangordongpio index 0 is 7014:05
freemangordonPali: and it is used in  rx51_gpio_switches in pdata-quirks.c, could it be that gpio switch driver is using it?14:07
*** eijk has quit IRC14:10
Palifreemangordon: maybe, check if .failed is set to true14:16
Paliif is failed = true, then it is *not* used14:16
freemangordonit is not set14:18
PaliRX51_GPIO_CMT_APESLPX is gpio 7014:20
freemangordonso?14:20
Paliare you sure that isp1704/7 needs cmt_apeslpx?14:20
freemangordonI am talking about nokia-modem :)14:20
Paliah, right!14:21
Palibut sscd try to use gpio_switch and enabled/disable modem itself14:21
Palinot via nokia_modem.ko14:21
Palifreemangordon: try to boot with nokia-modem.pm=114:22
Palipower management should be handed by userland14:22
freemangordonok14:22
Palifreemangordon: no14:23
Palikernel ignores gpio only if pm is set to zero14:23
Paliso boot with nokia-modem.pm=014:23
Palinokia-modem.pm=0 is also in CONFIG_CMDLINE14:24
freemangordonthis is what is in the config file14:24
Palibut why then you have line "nokia-modem n900-modem: Could not get gpio 0" in dmesg?14:24
freemangordon"Enable power management (0=disabled, 1=userland based [default])");14:24
Paliline "Could not get gpio" is only in function nokia_modem_gpio_probe()14:24
freemangordonthis should be 1, not zero14:25
Paliand function nokia_modem_gpio_probe() is called only if pm != 014:25
Palino, it must be zero, see nokia_modem_gpio_probe() function14:25
Paliit just export gpio numbers via /sys/class/gpio nothing more14:25
Palisame code which is in gpio-switch14:26
Paliand we need to export those gpios by gpio-switch, so sscd could handle it by correct path14:26
freemangordonhmm, correct14:26
Palirmmod nokia_modem14:27
freemangordonoh, wait, I did modprobe by hand14:27
* Wizzup is excited since he ran into these modem issues some time ago and got stuck14:27
Palimodprobe nokia_modem pm=014:27
freemangordonlemme try again14:27
* Wizzup is silent again14:27
freemangordon:nod:14:27
*** Ras_Older has quit IRC14:27
*** darkschneider has quit IRC14:27
*** Arch-TK has quit IRC14:28
*** darkschneider has joined #maemo14:28
freemangordonPali: but then I'd rather fix pminit14:29
freemangordon*preinit14:29
*** Ras_Older has joined #maemo14:29
Palisimple modprobe nokia_modem should work (without args)14:29
Palis/_/-/14:30
infobotPali meant: simple modprobe nokia-modem should work (without args)14:30
Paliif you have set nokia-modem.pm=0 in cmdline14:30
freemangordonput it does not14:30
* freemangordon is afk for a while14:30
*** Arch-TK has joined #maemo14:31
*** Arch-TK has quit IRC14:32
*** Ras_Older has quit IRC14:35
*** Arch-TK has joined #maemo14:39
freemangordonPali: for some reason cmdline does not work14:40
*** Ras_Older has joined #maemo14:40
Palibah :-(14:41
freemangordon~ # cat /proc/cmdline14:41
freemangordoninit=/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=014:41
Pali$ dpkg -S /sbin/modprobe14:41
Palimodule-init-tools: /sbin/modprobe14:41
Paligoing to look into source14:41
Palifreemangordon: we have old version of module-init-tools without support for /proc/cmdline :-(14:44
Palithis should be fixed14:44
Palifreemangordon: so create /etc/modprobe.d/nokia-modem.conf with options nokia-modem pm=014:45
PaliI will fix default value in linux-n900 git tree14:46
freemangordonno, don't14:46
freemangordonwe'd better have .conf file14:46
Paliok, conf file14:47
freemangordonsoon or later we should make a support package, will put it there14:48
*** Arch-TK has quit IRC14:49
*** Ras_Older has quit IRC14:49
*** Ras_Older has joined #maemo14:50
*** Arch-TK has joined #maemo14:51
freemangordonDec 31 14:56:09 Nokia-N900 cellular: ssc[3314]: CMT self tests passed.14:57
freemangordonPali: ^^^14:57
Paligreat :-)14:57
Palican you test SIM card?14:57
freemangordonyup. but conf file is not used in preinit :(14:57
*** louisdk has joined #maemo14:58
*** xorly has quit IRC14:58
freemangordonor I did not put the correct contents in it14:58
freemangordonPali: also, emmc is not mounted15:01
Pali /opt?15:02
freemangordonMyDocs15:02
Palimaybe fsck is running?15:02
freemangordondunno15:03
Palips | grep fsck15:04
freemangordonlooks correc, ain't? "options nokia-modem pm=0"15:04
Paliyes15:04
freemangordonpreinit modprobe does not use it15:05
freemangordonanyway, will stop for a while, until the battery is charged a bit15:06
freemangordonPali: any idea how to test isp?15:06
Paliisp = camera?15:06
freemangordonno, charger detection15:06
Palicat /sys/class/power_supply/...15:07
Palierr, cat --> ls15:07
Paliit should be there15:07
*** Ras_Older has quit IRC15:08
*** Ras_Older has joined #maemo15:09
freemangordonPali: wanna remote access to the device?15:09
Palino need...15:10
freemangordon~ # ls /sys/class/power_supply/15:10
freemangordonbq24150a-0    bq27200-0     rx51-battery15:10
Paliso isp probe fails15:10
Palithat error message in dmesg15:10
freemangordonhmm, modprobe succeed15:11
freemangordonbut charging still does not work15:12
freemangordonand it is still not liset in power_supply15:13
*** louisdk has quit IRC15:15
freemangordonisp1704_charger isp1704: init gpio 6715:15
Palimodprobe is just loading module15:16
Palirmmod and modprobe again15:16
freemangordonyeah15:16
freemangordonthis is the result15:16
Pali$ ls /sys/class/power_supply/15:16
freemangordon[  514.637176] isp1704_charger isp1704: init gpio 6715:16
freemangordon[  514.647979] isp1704_charger isp1704: failed to register isp1704 with error -1915:16
freemangordonno isp there15:16
Paliah :-(15:16
Palineed to debug init routine15:17
*** Ras_Older has quit IRC15:17
*** Ras_Older has joined #maemo15:18
freemangordonPali: will put some printk to see where it fails15:20
keriowhere does the output of printk go? dmesg?15:21
Palifreemangordon: use this http://pastebin.com/GCViTeVF15:21
Palikerio: yes dmesg15:21
freemangordonPali: ok15:21
freemangordonPali: not all error cases are covered15:23
Palithats enough15:23
freemangordonlike  of_get_named_gpio and  devm_gpio_request_one15:23
freemangordonok15:23
Palihm.. there can be problem too?15:24
freemangordonwhy not?15:25
freemangordonif you check for error...15:25
freemangordonPali: [ 1130.078521] isp1704_charger isp1704: isp1704_test_ulpi failed15:27
freemangordonhmm, "omap_i2c 48072000.i2c: controller timed out"15:30
*** Hurrian has quit IRC15:33
Pali-19 is -ENODEV15:35
*** Ras_Older has quit IRC15:35
Palifreemangordon: so isp1704_test_ulpi fails at some -ENODEV15:35
*** Ras_Older has joined #maemo15:36
*** Hurrian has joined #maemo15:36
freemangordonwill put pr_err in that function15:40
*** Ras_Older has quit IRC15:41
*** Ras_Older has joined #maemo15:41
freemangordonPali:   isp1704_read(isp, ULPI_SCRATCH); does not return 0xAA15:48
Paliand what?15:49
Palifreemangordon: can you compare result from that isp1704_read with some 3.x kernel?15:50
freemangordonjust a second, to put some more traces15:50
*** Ras_Older has quit IRC15:53
*** Ras_Older has joined #maemo15:54
freemangordonPali: musb-hdrc musb-hdrc.0.auto: musb_init_controller failed with status -51715:56
freemangordonand "HS USB OTG: no transceiver configured" before that15:57
Paliright, isp will not work without musb15:57
freemangordonsomething in the .config?15:58
*** Ras_Older has quit IRC15:58
Palino idea...15:59
Palido you have musb in /sys/ ?15:59
freemangordon# CONFIG_USB_ULPI_BUS is not set16:00
Palido you have g_nokia gadge active?16:00
PaliI think CONFIG_USB_ULPI_BUS is not relevant16:00
freemangordonthis is from 4.216:00
Paliwas it enabled in 4.2?16:01
freemangordonno idea16:01
freemangordonbut see http://cateee.net/lkddb/web-lkddb/USB_ULPI_BUS.html16:01
Palilook into git16:01
*** Arch-TK has quit IRC16:02
Palihm... looks like ulpi code is now in kernel16:02
freemangordonit was not enabled16:02
freemangordonI.ll enable that16:02
Palithis probably duplicates isp charger code...16:02
freemangordonah16:02
freemangordonhmm, CONFIG_USB_ULPI=y16:04
*** Ras_Older has joined #maemo16:08
*** Ras_Older has quit IRC16:12
*** Arch-TK has joined #maemo16:20
*** Ras_Older has joined #maemo16:20
freemangordonPali: could it be that dtb is broken?16:23
Palimaybe16:23
freemangordonhow to check?16:23
freemangordonas I see usb-phy configured in the dts file16:24
freemangordonoh, wait16:24
freemangordonit should be in /sys?16:25
*** Arch-TK has quit IRC16:25
*** Arch-TK has joined #maemo16:25
freemangordonhmm, we have  usb_otg_hs16:26
*** realitygaps has quit IRC16:30
*** realitygaps has joined #maemo16:30
*** Ras_Older has quit IRC16:34
*** Ras_Older has joined #maemo16:34
*** at1as has joined #maemo16:39
*** Arch-TK has quit IRC16:41
*** Ras_Older has quit IRC16:42
*** Ras_Older has joined #maemo16:44
*** Arch-TK has joined #maemo16:44
*** Arch-TK has quit IRC16:49
*** Ras_Older has quit IRC16:49
*** Arch-TK has joined #maemo16:56
*** Sicelo009N has quit IRC16:58
freemangordonPali: shouldn't isp1704 return -EDEFER in case it cannot init ulpi?17:00
*** Arch-TK has quit IRC17:00
Palithere is no explicit defer17:01
*** Arch-TK has joined #maemo17:01
*** Arch-TK has joined #maemo17:01
freemangordonPali: as -517 is -EPROBE_DEFER17:02
freemangordonso actually musb is ok17:02
Paliok17:02
Palithem problem is in isp170417:02
freemangordonyes17:02
Palitry 3.x kernel what that method returns and compare17:02
freemangordonI don;t have 3.x kernel17:02
freemangordonbut what I see is that  isp1704_read(isp, ULPI_SCRATCH); returns 0x00 instead of 0xAA17:03
*** Arch-TK has quit IRC17:05
freemangordonPali: maybe isp should power up the usb?17:06
Palino idea whats with that17:06
Paliyou can try to compile g_nokia as external module17:06
Palinow it is compiled into zImage17:06
*** Arch-TK has joined #maemo17:07
*** Ras_Older has joined #maemo17:09
*** Sicelo009N has joined #maemo17:10
*** Sicelo009N has quit IRC17:10
*** Sicelo009N has joined #maemo17:10
*** darkschneider has quit IRC17:19
*** Arch-TK has quit IRC17:20
*** Ras_Older has quit IRC17:22
*** Arch-TK has joined #maemo17:23
*** Ras_Older has joined #maemo17:23
*** vakkov has quit IRC17:24
*** Ras_Older has quit IRC17:28
*** Ras_Older has joined #maemo17:28
*** Arch-TK has quit IRC17:36
*** Ras_Older has quit IRC17:37
*** vakkov has joined #maemo17:38
*** Arch-TK has joined #maemo17:40
*** florian has joined #maemo17:40
*** Arch-TK has quit IRC17:45
*** Arch-TK has joined #maemo17:47
*** Ras_Older has joined #maemo17:50
*** trx has joined #maemo17:56
*** trx has quit IRC17:56
*** trx has joined #maemo17:56
*** Ras_Older has quit IRC18:06
*** Arch-TK has quit IRC18:07
*** Arch-TK has joined #maemo18:08
*** Ras_Older has joined #maemo18:12
*** Arch-TK has quit IRC18:26
*** Ras_Older has quit IRC18:28
*** Arch-TK has joined #maemo18:30
*** t_ has joined #maemo18:30
*** Ras_Older has joined #maemo18:33
*** Ex-Opesa has quit IRC18:40
*** Ex-Opesa has joined #maemo18:41
*** Sicelo009N has quit IRC18:45
*** Sicelo009N has joined #maemo18:47
*** Sicelo009N has quit IRC18:49
*** krnlyng has quit IRC18:51
*** Ras_Older has quit IRC18:51
*** Arch-TK has quit IRC18:53
*** geaaru has quit IRC18:55
*** florian has quit IRC18:58
*** Ras_Older has joined #maemo18:58
*** Arch-TK has joined #maemo18:58
*** Arch-TK has joined #maemo18:59
*** t_ has quit IRC19:02
*** Wizzup has quit IRC19:03
*** Wizzup has joined #maemo19:06
freemangordonPali: if I remove the check for 0xAA return value, the driver registers ok and cherging works19:06
freemangordon*charging19:07
Palifreemangordon: is charger detection working?19:08
Palicheck sysfs node for that19:09
freemangordonI saw "Charging" banner19:09
freemangordon:)19:09
freemangordonand battery indicator is animated19:09
freemangordonPali: http://pastebin.com/mjvZMK6n19:11
Paliusb cable19:12
Palinow try disconnecting usb cable19:12
Paliit should change state19:12
Paliand try wallcharger, POWER_SUPPLY_CURRENT_MAX should be 120019:12
*** Ras_Older has quit IRC19:13
*** Arch-TK has quit IRC19:13
*** Arch-TK has joined #maemo19:13
freemangordonPali: this is wallcharger19:14
*** Ras_Older has joined #maemo19:14
Palifreemangordon: then it is not working19:14
*** sparetire_ has joined #maemo19:15
Paliwallcharger detection failed19:15
freemangordonPali: sure, but before commenting that, no charging was working at all19:15
freemangordonso it is better than before19:15
Palifreemangordon: sure, because isp was not loaded and no event was sent19:15
freemangordonyes19:16
Paliyou can enable charging, just telling bq2415x to enable charging19:16
Paliecho host > /sys/class/power_supply/bq24150a/mode19:16
freemangordonthat won;t make isp1704 working19:18
*** Arch-TK has quit IRC19:18
*** Ras_Older has quit IRC19:19
*** Arch-TK has joined #maemo19:21
freemangordonPali: I think I found the problem http://lxr.free-electrons.com/source/drivers/power/isp1704_charger.c#L37019:24
freemangordonisp1704_write(struct isp1704_charger *isp, u32 val, u32 reg)19:24
*** Arch-TK has quit IRC19:24
freemangordonit is val, reg not reg, val19:25
Paliomfg19:25
freemangordon:D19:25
Palibut... how that it worked?19:26
Paligoing to look into git history19:26
freemangordonno idea19:26
freemangordonPali: all isp1704_write are like that19:27
Palino19:28
Paliisp1704_charger_verify() uses reg, val19:28
Paliisp1704_charger_detect() uses reg, val19:28
*** Ras_Older has joined #maemo19:28
*** Arch-TK has joined #maemo19:28
freemangordonfor example isp1704_write(isp, ULPI_OTG_CTRL, otg_ctrl);19:28
Paliisp1704_test_ulpi uses reg, val19:28
freemangordonPali: all calls are on the oposite19:29
Paliisp1704_charger_type() uses val, reg19:29
Paliand then reg, val19:29
PaliOMFG19:29
freemangordonoh, yes19:29
freemangordonwho wrote that code?19:29
freemangordon:p19:30
PaliI will use the most dangerous git command now!19:30
Palieverything Heikki Krogerus <ext-heikki.krogerus@nokia.com> !!19:31
*** krnlyng has joined #maemo19:31
Palistatic inline int usb_phy_io_write(struct usb_phy *x, u32 val, u32 reg) { ...19:32
Paliis signature in include/linux/usb/phy.h19:32
freemangordonyes19:32
Paliso isp1704_write() has correct signature/parameters too19:33
freemangordonyes19:33
freemangordonbut the code calls it with random order19:33
*** Ras_Older has quit IRC19:33
*** Arch-TK has quit IRC19:34
*** Arch-TK has joined #maemo19:34
*** Ras_Older has joined #maemo19:34
Palifreemangordon: can you try fix driver and test it again?19:35
freemangordonsure19:35
Palithis is total nonsense here...19:35
freemangordonlets hope GF does not get angry on my :)19:35
freemangordonyeah19:35
bencohwhy, is it her n900?19:36
bencoh:]19:36
*** vakkov has quit IRC19:36
Palifreemangordon: that code is also in stock nokia kernel: drivers/usb/musb/musb_core.c19:37
freemangordonomg19:37
Palijust different function names, like: musb_verify_charger19:37
freemangordonbut, but, how that works at all?19:37
Palioh, no, stock nokia kernel has switched params19:39
Palireg, val19:39
freemangordonmaybe we should just switch the parameters as well19:39
freemangordonalso, what is ULPI_CLR?19:39
Pali#define ULPI_CLR(a)                             (a + 2)19:40
Palihttp://lxr.free-electrons.com/source/include/linux/ulpi/regs.h#L919:40
freemangordonyes, saw that19:40
freemangordonis that reg or val?19:40
Paliregister19:41
freemangordonPali: all calls are (reg, val)19:42
freemangordonPali: I'll just change the signature19:43
Paliok19:43
freemangordonPali: I guess the smae problem exists in KP19:44
freemangordon*same19:44
Paliwhy same problem?19:44
freemangordonwith bme replacement19:44
PaliI checked it now, it has correct signature19:44
freemangordonso, in kp it is  isp1704_write(struct isp1704_charger *isp, u32 reg, u32 val)19:45
freemangordon?19:45
Palinokia kernel just read each reg before write new value (and or it)19:45
Paliin kp it is musb_ulpi_writeb()19:45
freemangordonwhat about isp1704 in KP?19:45
Palistatic inline void musb_ulpi_writeb(void __iomem *addr,u8 offset, u8 data)19:46
freemangordonok19:46
Paliiskp1704 is integrated in musb in nokia kernel19:46
Palithat is originally in nokia kernel, not bme replacment code19:46
freemangordonso, bme replacement does not use isp1704?19:47
freemangordonor it uses it, but it is ok?19:47
Palibme replacement does not use isp170419:48
Palikp has modified bq2415x to receive charger events from musb (where is that isp code)19:48
freemangordonok19:48
*** Arch-TK has quit IRC19:48
*** Arch-TK has joined #maemo19:49
freemangordonPali: Much better now :) http://pastebin.com/uWibq2qe19:50
*** Ras_Older has quit IRC19:50
freemangordonPali: and USB charger is correctly detected19:51
Paligreat19:51
Paliit is enough to change signature?19:52
Palior that ulpi test is need to fix too?19:52
freemangordonyes, changing signature is all that is needed19:53
freemangordonok, /me going afk19:53
*** Arch-KT has joined #maemo19:53
*** Arch-TK has quit IRC19:54
Palifreemangordon: it is broken since this commit: fcc8ebc99034bae4020a3cec030553d469e265db19:57
PaliSigned-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>19:57
*** Ras_Older has joined #maemo19:58
*** vakkov has joined #maemo20:01
*** pcfe has quit IRC20:03
freemangordonPali: yeah20:04
*** Arch-KT has quit IRC20:07
*** ced117 has quit IRC20:07
*** Ras_Older has quit IRC20:07
*** Arch-TK has joined #maemo20:09
*** Ras_Older has joined #maemo20:09
*** vakkov has quit IRC20:13
*** ced117 has joined #maemo20:22
*** vakkov has joined #maemo20:27
*** Arch-TK has quit IRC20:28
*** Arch-KT has joined #maemo20:28
*** krnlyng has quit IRC20:58
*** krnlyng has joined #maemo21:11
ceenehappy new year, guys!21:12
freemangordonPali: how cute :( http://pastebin.com/sxDC5tcx21:24
*** Arch-KT is now known as Arch-TK21:26
*** lxp has joined #maemo21:29
jonwilbah, nothing more from Juhani yet :P21:35
bencohfreemangordon: when trying to mount a modem data interface?21:40
KotCzarnyceene: premature greetings21:42
KotCzarnystill 3.3h before the 00:0021:42
KotCzarnypali, fmg, i love you guys for what you are doing21:43
* jonwil still cant figure out how to get the output of parse-certdata-txt into the root CA store :(21:44
KotCzarnyjonwil: treat it as an challenging adventure game without walkthrough21:44
KotCzarnyalso, love you too21:44
freemangordonbencoh: seems like related. but whatever it is, it should not oops the kernel21:47
* RST38h yawns21:59
KotCzarnywow, another dinosaur22:00
RST38hKotCzarny, in the flesh22:00
KotCzarnyrst38h: pink floyd?22:00
* RST38h pours some milk 22:00
* KotCzarny meows22:01
RST38hFunny, how Maemo appears to have outlived not just Meego but Jolla as well22:01
KotCzarnygood enough tech [tm]22:01
KotCzarnyandroid with all those shinies is for the kids22:01
Vajbi recently bumb up to odd thing22:02
RST38hOh, WinPhone also dead, afaik22:02
Vajbi pad is found under bluetooth, but even tho it is connected it is not show in bluetooth filesharing option22:03
KotCzarnyrst38h, we will hear about intel phone sooner or later22:03
RST38hKotCzarny: FCC is currently rubberstamping Google Glass 2, with Intel inside22:03
RST38hThere is also a bunch of Intel-based Android gadgets, like Dell Venue and some Motorola phones. Not particularly good games compatibility though.22:05
KotCzarnythey still have to work on input interface22:07
KotCzarnyhands/fingers are like parallel input22:07
RST38hThen, there are Tizen releases in India (budget Z1, full Z3) and Tizen also runs Samsung Gear watches22:07
RST38hDebian, SMACK, the whole shebang22:08
KotCzarnyuntil then, it all will be too laggy to fully immerse22:08
RST38hYou mean the Glass? They are targeting Glass 2 to industrial workers, repairmen, doctors, etc. No immersive.22:09
KotCzarnyi'm waiting for fully immersive interface22:09
RST38hCheck out HTC's rig then - reviwers claim it is immersiviest of 'em all22:10
* RST38h forgot to mention Ubuntu phone in the lineup =)22:10
KotCzarnyhmm22:15
KotCzarnyopen source?22:15
RST38hUbuntu? Yeah, one way open source22:16
bencohthe ubuntuphone layer is, more or less. the hw adaptation layer, on the other hand....22:18
bencoh(you know, the android stack with closed drivers/ril/userland + libhybris + ubuntu on top)22:19
KotCzarnyso, not much changed22:19
KotCzarnybut at least it shows some activity22:19
RST38hAndroid no longer has HAL separation22:21
RST38hBut most of it (other than video hw drivers, ril, etc) is open source, in the sense that you can see and use the source22:22
jonwilSo many people seem to be using Android drivers and related bits as the base for some other smartphone platform.22:22
RST38hCan't commit back to Android of course. Nor will you be able to pass Google's certification if they do not like you.22:23
jonwilProbably because its the only way to get usable drivers for e.g. a Qualcomm Snapdragon22:23
RST38hjonwil: correct22:23
*** krnlyng has quit IRC22:40
*** krnlyng has joined #maemo22:53
Palifreemangordon: looks like bug in net subsytem, skb23:08
bencohjonwil: surprisingly enough ... http://cateee.net/lkddb/web-lkddb/USB_NET_QMI_WWAN.html23:12
bencohqualcomm is still a pain, but not for this specific part (qmi driver)23:14
bencohdont expect to get a free RIL, but you should be able to drive it through qmi/libqmi23:15
* jonwil suspects Qualcomm actually benefits from not having Snapdragon bits in mainstream kernels (or easily usable from vanilla Linux)23:15
jonwilLets them hand out different kernel stuff and drivers and blobs to different Snapdragon users based on what features they are willing to pay for...23:16
RST38hHNY 2016!23:18
KotCzarnynot yet23:18
RST38hit is, here23:18
jonwilits 2016 here too23:18
KotCzarnyi dont feel any different, so it must still be 201523:19
RST38hjonwil: I do not understand obsession with Snapdragon23:19
jonwilIts the most popular mobile device chip :P23:19
RST38hjonwil: In the US it is23:19
bencohnot just in the US23:19
RST38hjonwil: But in terms of bang for the buck, I would consider RK or MTK instead23:20
bencohMTK means low-end device / no support23:20
RST38hGetting any support from Qualcomm? =)23:20
bencohI guess the vendos are getting some23:21
bencohit couldn't get worse than MTK anyway :p23:21
jonwilSnapdragon is the most popular for Android devices because Qualcomm has put a bunch of effort into making Android run real good on those chips23:21
RST38hRK-based Android devices are actually pretty good, as long as manufacturer installs a decent screen23:22
jonwilI 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)23:22
bencohRST38h: RK-base phones?23:22
RST38hjonwil: yep23:22
RST38hjonwil: Even the Chinese are more outgoing23:22
KotCzarnyhehe, now that's rude23:23
RST38hKotCzarny: Well, these guys have got the language barrier working against them but at least they are trying23:24
RST38hAnd their stuff is pretty standard on the inside, almost no surprises23:24
KotCzarnythey are masters of cloning, not breaking working designs23:24
KotCzarnyfixing stuff takes too much time/resources23:25
RST38hstandard multicore ARM, standard 3D hw, video buffers freely accessible, fb* devices work the way they are expected to work with minor bugs23:26
RST38hKotCzarny: What else would one want from them?23:26
KotCzarnygsm chips23:26
bencohjonwil: TI isnt that bad, btw23:27
RST38hEven got little lizard brain doing h264 decoding and color conversions =)23:27
bencohjonwil: apart from the SGX stuff and their bootloader, it's quite documented23:27
jonwilyeah I know23:27
jonwilthats why I said Qualcomm is worse23:27
* RST38h steps away to throw up after hearing "SGX"23:27
KotCzarny:)23:27
bencohjonwil: worse than "almost good"? :)23:28
jonwilSurprised they aren't more open about their bootloader and boot process...23:28
bencohRST38h: :-)23:28
jonwilOr is there some sort of "Secret sauce" in there they dont wanna share?23:28
RST38hBut look at the bright side: Imagetech now owns two greatest hardware designs in human history: PVR and MIPS!23:28
DocScrutinizer05hey RST38h, long time no see23:28
RST38hHello, Doc23:29
keriointel confirmed trying to bring maemo down23:29
KotCzarnyo.O23:29
bencohjonwil: http://processors.wiki.ti.com/index.php/Boot_Sequence23:29
KotCzarnybackup, i need backup!23:29
bencohkerio: wait, what?23:29
keriore: mainline linux broken on rx51 since a commit by an intel guy23:29
bencohhaha23:30
DocScrutinizer05((Maemo appears to have outlived not just Meego but Jolla as well)) tells a story, no?23:30
KotCzarnykerio, wouldnt they be after meego and not maemo?23:30
KotCzarnysomeone should send them an email23:30
bencohKotCzarny: meego's already dead ;)23:30
RST38hSending emails to Intel employees? No, THAT is such a meaningful activity...23:30
DocScrutinizer05kerio: so can't that commit get wrapped up and shove it up the rear of the author?23:31
KotCzarnyrst38h: email bomb then?23:31
bencohRST38h: aww, they're humans too! they've got feelings :)23:31
kerioidk i think that bugs happen23:31
RST38hbencoh: Got CNDA and annual review coming up in 2 months.23:32
RST38hbencoh: rest is strictly decorative23:32
DocScrutinizer05(meego (aka maemo6) dead) I hate saying "I told ya"23:32
DocScrutinizer05~aegis23:32
infobothttp://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.gif23:32
RST38hDoc: There has never been "Meego".23:33
RST38hDoc: There was Maemo Harmattan, Moblin 2, and Tizen23:33
RST38hDoc: Of these, we have hardly known Harmattan, Moblin 2 is fortunately dead, and Tizen is alive and kicking, WITH Aegis23:34
jonwilThe 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 community23:34
RST38hjonwil: People say HTC Desire HD has had the same fate23:34
keriowhy's that23:34
KotCzarnyjonwil, its only because there is no successor23:34
keriowhat's particular about it?23:35
RST38hkerio: Desire HD? No idea. Have one in the family. A decent Gingerbread phone, built like a tank, dunno why it keeps being developed for though23:35
kerioi should probably buy another n90023:36
kerioor merge the two i have into one fully functioning one23:36
KotCzarnyabout 'merging': http://img.sadistic.pl/pics/155264cf138d.gif23:37
kerioLOL23:37
RST38hWhy does he need that thing with the fragile screen, anyway?23:37
*** ds3 has quit IRC23:37
KotCzarnyrst38h: maybe there is another part to cover the screen too23:37
RST38hyeah, the one he uses for browsing internet23:38
RST38hthe voice call part looks covered too =)23:38
KotCzarny:)23:38
bencohKotCzarny::D23:45
bencohnothing beats wap browsing on a good old b&w nokia23:46
* KotCzarny tried wap browsing once on ericsson t3923:52
KotCzarnyit was awful23:53
KotCzarny(browsing, phone was superb)23:53
freemangordonPali: yeah, maybe you should upgrade to newer rcN to check if it is fixed23:57

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