libera/#maemo-leste/ Friday, 2021-07-23

Wizzupuvos: no, the "Help I'm alive" does not show either00:04
uvoshmm00:04
uvosthat suggests that there is something wrong with the modules00:04
WizzupI replaced uart.ko with your version00:04
Wizzupmaybe that wasn't ok?00:04
uvosno ofc00:04
uvosyou should load all modules as in the tar above00:04
Wizzuphm?00:04
WizzupI replaced all of them00:04
uvosand none of the safestrap ones00:04
uvosok00:05
Wizzupbut yours was not called uart.ko, so I renamed it00:05
uvosyeah thats just how the build system works on the 2.6x branch00:05
uvosjust geussing maybe there is some issue with compieling the module with a different gcc version that the kernel itself00:05
Wizzupit does print stuff, at various times, though00:06
uvossutch as?00:06
Wizzupwell, the noise00:06
uvosright00:07
uvoscan you try to load the old uart .ko?00:07
Wizzupsure00:07
Wizzupnow I do see serial messages00:09
WizzupABE[    0.000000] Booting Linux on physical CPU 0x000:09
uvoswoooo00:09
Wizzup[    0.000000] printk: bootconsole [omap8250] enabled00:09
uvosits booting00:09
Wizzupthat's the last msg I see00:09
uvosuh00:09
Wizzuphttps://pastebin.com/AF80P0EW00:09
Wizzupso maybe the serial is different?00:11
uvosso whats your kernel cmdline?00:11
Wizzupit's literally taken from the bionic boot.cfg, with one thing added: earlyprintk00:11
uvosWizzup: could be also maybe the multiplexing workd sifferently00:11
Wizzupone sec00:11
Wizzupuvos: oh lol00:12
WizzupI think it's this:00:12
Wizzupconsole=tty0 debug earlycon ro rootwait rootfstype=ext4 root=/dev/mmcblk0p200:12
uvosyeah ok00:12
Wizzupconsole=tty000:12
uvoswell you should avoid disableing serial outpu :P00:12
Wizzupconsole=ttyS2,115200 then?00:12
uvosyeah00:12
Wizzupok00:12
Wizzupone sec00:12
uvosanyhow [    0.000000] OF: fdt: Machine model: Motorola Droid 3 XT862 is alllready a nice milestone :)00:13
Wizzupoh actually I did have the console in the cmdline00:14
Wizzupit is thi satm00:14
Wizzup/kexec -l /kernel --dtb=/devtree --command-line="console=tty0 console=ttyS2,115200 debug earlycon ro rootwait rootfstype=ext4 root=/dev/mmcblk0p2 softlevel=shell earlyprintk"00:14
uvosok00:14
uvoshmm :|00:15
Wizzuplet me take out console=tty000:15
Wizzupand softlevel=shell00:15
Wizzupsame thing00:17
Wizzupmaybe I should try the non-static bionic kernel, just in case my system miscompiles or something00:18
Wizzup(seems unlikely but hey)00:18
uvossure i mean that should be quick to do00:19
Wizzupyeah00:19
Wizzupyeah...00:20
Wizzupgets further.00:20
uvoswierd00:20
Wizzup[    1.414611] 8<--- cut here ---00:20
Wizzup[    1.414642] ------------[ cut here ]------------00:20
Wizzup[    1.417755] Unhandled fault: imprecise external abort (0x1406) at 0xd3eef09d00:20
Wizzup[    1.422515] WARNING: CPU: 0 PID: 0 at drivers/bus/omap_l3_noc.c:147 l3_interrupt_handler+0x228/0x37400:20
Wizzup[    1.429748] pgd = (ptrval)00:20
Wizzup[    1.439147] 44000000.ocp:L3 Standard Error: MASTER MPU TARGET AES2 (Read Link): At Address: 0x00101080 : Data Access in User mode during Functional access00:20
uvosoh ok00:20
uvoswe had that before00:20
uvossome omap co-processor is not in reset after kexec00:21
Wizzuphttps://pastebin.com/raw/S14QHSkH00:21
uvosand the android firmware messes with the kernel00:21
Wizzuphm00:22
uvoswhere are you kexecing from?00:22
Wizzupsafestrap00:22
WizzupI can try to do clownboot tomorrow if you think that makes more sense00:22
uvosonly in the vaguest maybe sense00:23
uvosi think it makes more sense to try and parse the kernel ops00:23
Wizzupops=oops?00:24
uvosyeah *oops00:24
WizzupI suppose since this is our general bionic kernel we should have the debug symbols00:25
Wizzupfor addr2line and such00:25
uvosyeah00:25
uvosanyhow good night00:27
Wizzupyeah, thank you!00:27
uvosyw00:27
Wizzupmaybe it's memory setup00:36
Wizzuptmlind: if you have any ideas, btw: 00:21 < Wizzup> https://pastebin.com/raw/S14QHSkH00:45
* Wizzup now also zzz00:45
tmlindWizzup: oh cool, you got it booting :) looks like aes2 is not accessible on those devices, try setting:06:17
tmlind&aes2_target {06:17
tmlindstatus = "disabled";06:18
tmlind};06:18
Wizzuptmlind: thanks, will do09:20
Wizzuptmlind: INIT: version 2.93 booting09:26
Wizzup:-)09:26
Wizzuphttps://pastebin.com/raw/8gydpDZP09:28
Wizzupwaiting for a bit got me to inittab09:30
Wizzuper, serial09:30
Wizzup(tty)09:30
Wizzupwireless seems to work09:31
Wizzupusbnet works09:33
Wizzupdisplay not working mihgt relate to this, perhaps?09:34
WizzupJul 23 09:28:49 localhost kernel: [    3.340942] abe_cm:clk:0028:0: failed to enable09:34
WizzupJul 23 09:28:49 localhost kernel: [    3.340942] ti-sysc: probe of 4012208c.target-module failed with error -1609:34
WizzupJul 23 09:28:49 localhost kernel: [    3.363189] clk: failed to reparent abe_cm:clk:0060:24 to sys_clkin_ck: -2209:34
Wizzuplater on also:09:34
WizzupJul 23 09:28:49 localhost kernel: [    7.583190] abe_cm:clk:0030:0: failed to enable09:34
WizzupJul 23 09:28:49 localhost kernel: [    7.827301] lm75: probe of 0-0048 failed with error -12109:35
uvosWizzup: sweet looks like mosty everything works :)10:37
uvosi would not worry about the omap_vc_calc_vsel: voltage not supported by pmic: 1375000 vs max 1350000  i had that on bionic too its just the bootloader starting the device with higher voltage than d4/bionic and so higher than the kernel expects moto likely gained confidence in the silicon over time and reduced the voltage in stepps10:39
uvosi have no idea on the dsi, really10:40
uvosother than to, again, compear the stock kernel between d3 and bionic10:40
Wizzupok11:07
tmlindWizzup: great, you need to look at the dtb blob and get the timing values for the panel and figure out if it's a dsi command mode panel or a regular dsi panel11:46
tmlindthe motorola dtb is non-standard endian, just look at it with a hex editor and compare to droid4 and bionic11:47
tmlindthe property to look at is probably named Display@011:48
tmlindhmm actually it's easier to get the info from the stock kernel dmesg11:49
tmlindand then you need to configure the backlight controller11:50
tmlindmaybe post the stock kernel dmesg output somewhere to look at?11:55
tmlindbbl11:55
Wizzuptmlind: ok, ty12:14
Wizzupwill do12:14
Wizzuptmlind: here is dmesg https://pastebin.com/raw/3fvEQ1fP13:31
Wizzupthat is dmesg from safestrap13:31
uvoshmm13:42
uvosits missing board_panel13:42
uvoscould you do from android13:43
uvosWizzup: also it looks like backing off 2mb is not nessecary on d313:43
uvosoh its just formated different on the older kernel13:44
uvos<6>[    1.768554] DT: x_res=540 y_res=960 phy_w_mm=50 phy_h_mm=8913:44
uvos<6>[    1.768585] DT: hfp=0 hsw=2 hbp=2 vfp=0 vsw=1 vbp=113:44
uvos<6>[    1.768585] DT: clk_lane=1 clk_pos=1 d1_lane=2 d1_pos=113:44
uvos<6>[    1.768585] DT: d2_lane= 3 d2_pos= 1 xfer_mode= 013:44
uvos<6>[    1.768615] DT: panel_id=0x9000413:44
uvos<6>[    1.768615] DT: regn=13 regm=230 regm3=7 regm4=7 lp_clk_div=8 lck_div=1 pck_div=413:44
uvos<6>[    1.778472] Mapphone panel: controller supplier id(A1h)=0x10b13:44
uvos<6>[    1.778503] Mapphone panel: panel manufacturer ID (DAh)=0x113:44
uvos<6>[    1.778533] Mapphone panel: controller version (DBh)=0x113:44
uvos<6>[    1.778594] Mapphone panel: controller driver ID(DCh)=0x213:44
uvoslooks the same as d413:45
uvoswhich makes sense13:45
uvosthe pannel has the same part number printed on it13:45
uvosah no its subtaly different13:47
uvosclk_pos=0 vs clk_pos=113:47
uvostimeings (back front portch etc) are the same13:51
uvosnot sure what clk_pos is13:51
uvosdatasheet time i gues13:51
Wizzupuvos: still need it from android?13:55
uvosWizzup: no13:55
Wizzupok13:55
uvoshas something to do with port {} in dts i gues13:55
uvosclk_lane and d1 lane and so on are different13:55
uvosso the lcd is the same lcd13:56
uvosconnected to different pins13:56
Wizzupsame panel id?13:56
uvosiiuc13:56
uvosyeah that too13:56
uvosbu also same timeings etc13:56
uvosshould not be to hard to figure out how to set it by reading the dts binding documentation and omap datasheet13:57
uvosbut maybe tmlind just knows13:58
Wizzuphm, where do the bionic lcd panel timings come from, also motorola-mapphone-common.dsti?13:59
uvosyeah its dsi113:59
uvosin that file13:59
uvosthe part we are worryed about is port {13:59
uvosthe stuff in lcd0: panel@0 { looks like its the same between d4 and d314:00
Wizzupok14:01
uvosat least if im reading this correctly14:02
Wizzuprecommendation for hex editor? I usually use xxd14:03
uvosi use okteta14:04
uvosbut i mean any should do14:04
Wizzupthis is the stock dtb: https://wizzup.org/d3_device_tree.bin14:05
uvoscan you still boot 3.0 ?14:06
uvosthe 2.6 kernel dosent print some stuff14:06
uvoslike dsi_vc_cmd14:07
uvoswich i assume tells us if the fw of the lcd is configured for video mode or not14:07
Wizzupok, yeah, I can install safestrap 3.x in a bit14:08
Wizzupxxd doesn't make much sense of that device tree as is14:08
uvosthe data for the display is at 0x25014:10
uvosbut dont ask me how to interpret it14:11
WizzupLet me see if I can pull in okteta without the entirety of kde14:15
Wizzup(nope)14:24
uvosbless then?14:25
Wizzuptrying wxhexeditor atm14:26
Wizzuplol it writes "Rahman ve Rahim olan Allah'ın adıyla." on exit14:30
Wizzupok14:30
Wizzupyeah so it looks like the dtc opcodes are the opposite endianness, but the strings are not, obviously16:07
uvoshi16:31
uvosWizzup: did you get anywhere in my absense16:31
uvosi dont think you accutally need to decompile the dtb16:32
uvosyou just have to figure out how d1_pos .. dn_pos mapps to mainline dts16:33
Wizzupuvos: I'm having trouble reading the dtb properly, did you see the one I uplodaed?16:33
uvossure but that would not help us that much anyhow16:34
uvosit contains the same info16:34
uvosand then we still dont know how the bindings work for mainline16:34
Wizzupok16:34
uvosjust look at the mainline dts binding doucmentation16:34
Wizzuplet me make a coffee first16:35
Wizzupbtw, it would still be good see if we can find the dts patch somewhere16:36
uvosi suspect d1...d5 that is the only difference between d4 and d3 corrisponds to lanes = <0 1 2 3 4 5>;16:36
uvossomehow16:36
Wizzupthere might be more devices where we want this16:36
uvosbut thats just my guess16:36
Wizzupuvos: yeah I also saw the lanes in dmesg16:36
uvosWizzup: sure @patch16:37
uvosi want to do  xt910 at some point16:38
uvosso yeah16:38
uvosthe lcd data lines are liekly connected differently due to board space conciderations. for the the d3 they where still saveing space by haveing the kayboard and sensors on own super thin flex pcbs, while the d4 is a cost reduced design where there is only 1 pcb with everything. as a side effect they had more space for routing traces17:00
uvosthats also why the d4 is so mutch thicker than d1-317:01
Wizzupmhm17:05
Wizzupuvos: so you're asking what the lanes = < ... > are exactly, and would like me to see if I can find that in the device-tree doc ?17:06
uvosyeah17:06
Wizzupgrepping for lanes should indeed different orders (say in 950 dts)17:11
Wizzupnot quite sure where I can find the dsi port/lanes info yet (grepping my way around Documentation/device-tree)17:12
Wizzupit looks like the panel doc is display/panel/panel-dsi-cm.yaml - but it doesn't mention the port17:15
Wizzupmaybe ./display/ti/ti,omap4-dss.txt ?17:17
WizzupDSI Endpoint required properties:17:17
Wizzup- lanes: list of pin numbers for the DSI lanes: CLK+, CLK-, DATA0+, DATA0-, DATA1+, DATA1-, ...17:17
Wizzupuvos: ^^ ?17:17
Wizzupuvos: I mean assuming that clk_lane = 1 means that the clock is the first, then data0, then data1 the regular order might make sense?17:20
Wizzupnot sure what the '*_pos=1' means17:21
uvosWizzup:  clk_lane on d4 i s017:23
uvos*Wizzup:  clk_lane on d4 is 017:23
Wizzupas opposed to 1, you mean?17:23
uvosyeah17:23
uvossec17:23
Wizzupthe thing is that the <lanes> mentions pos and neg17:23
Wizzupbut the dmesg talks about 3 lanes only17:23
uvosso dose dmseg17:23
uvosclk_pos is clk+17:24
Wizzupso I figured the _pos=1 means os comes first or something17:24
Wizzup<6>[    1.768585] DT: clk_lane=1 clk_pos=1 d1_lane=2 d1_pos=117:24
Wizzup<6>[    1.768585] DT: d2_lane= 3 d2_pos= 1 xfer_mode= 017:24
uvosand lane is clk -17:24
uvosbut the number is the same17:24
uvosso thats wierd17:24
WizzupI think all the _pos=117:24
uvoslet me boot los on d4 again sec17:24
uvosmaybe that means +117:24
uvosbut no ida17:24
uvosidea17:24
Wizzupyes, it could be either :p17:24
uvos[    0.201080,0] board_panel: DT: phy.dsi: data1_lane=2 data1_pol=017:27
uvos[    0.201110,0] board_panel: DT: phy.dsi: data2_lane=3 data2_pol=017:27
uvos[    5.275909,0] DT: clk_lane=1 clk_pos=0 d1_lane=2 d1_pos=0 d2_lane=3 d2_pos=017:28
uvos[    5.276062,0] DT: d3_lane=0 d3_pos=0 d4_lane=0 d4_pos=017:28
uvos[    5.276153,0] DT: panel_id=0x90004 type= 017:28
uvosso for starters d1_lane is 217:28
uvosbut then it dosent make any sense17:29
uvossince d4 and and d3 is 017:29
uvosso it cant mapp to data0+-/data1+- in any sane way17:29
uvoshere is d4's entier print on the lcd for referance:17:30
uvos[    0.201049,0] board_panel: DT: width= 540 height= 96017:30
uvos[    0.201049,0] board_panel: DT: hfp=0 hsw=2 hbp=2 vfp=0 vsw=1 vbp=117:30
uvos[    0.201080,0] board_panel: DT: gpio_reset=101 panel_id=0x9000417:30
uvos[    0.201080,0] board_panel: DT: phy.dsi: pixel_size=24 te_scan_line=30017:30
uvos[    0.201080,0] board_panel: DT: phy.dsi: data1_lane=2 data1_pol=017:30
uvos[    0.201110,0] board_panel: DT: phy.dsi: data2_lane=3 data2_pol=017:30
uvos[    0.201110,0] board_panel: DT: clocks.dsi : regn=13 regm=23017:30
uvos[    0.201110,0] board_panel: DT: clocks.dsi : regm3=6 regm4=617:30
uvos[    0.201141,0] board_panel: DT: clocks.dsi : lp_clk_div=9, lck_div=1, pck_div=417:30
uvos[    0.201141,0] board_panel: DT: phy.dsi.type=017:31
Wizzup_pos here are all 0 instead of 1, it looks like17:31
uvos[    5.275634,0] DSI: dsi_vc_cmd = 0, dsi_vc_video = 117:31
uvos[    5.275695,0] DT: x_res=540 y_res=960 phy_w_mm=50 phy_h_mm=8917:31
uvos[    5.275848,0] DT: hfp=0 hsw=2 hbp=2 vfp=0 vsw=1 vbp=117:31
uvos[    5.275909,0] DT: clk_lane=1 clk_pos=0 d1_lane=2 d1_pos=0 d2_lane=3 d2_pos=017:31
uvos[    5.276062,0] DT: d3_lane=0 d3_pos=0 d4_lane=0 d4_pos=017:31
uvos[    5.276153,0] DT: panel_id=0x90004 type= 017:31
uvos[    5.276275,0] DT: regn=13 regm=230 regm3=6 regm4=6 lp_clk_div=9 lck_div=1 pck_div=417:31
uvos[    5.276367,0] DT: te_support=1, te_type=017:31
uvos[    5.276489,0] DT: number of power supplies=117:31
uvos[    5.276580,0] DT: Supply #0, reg name=sw5, gpio=96, gpio_en_val=117:31
uvos[    5.295471,0] Mapphone panel: controller supplier id(A1h)=0x10b17:31
uvos[    5.295562,0] Mapphone panel: panel manufacturer ID (DAh)=0x117:31
uvos[    5.295745,0] Mapphone panel: controller version (DBh)=0x117:31
uvos[    5.295837,0] Mapphone panel: controller driver ID(DCh)=0x217:31
uvosyeah17:31
Wizzupso maybe something like <1 0 3 2 5 4> could work?17:31
uvosmaybe17:31
Wizzup(assuming pos just means if it comes first or not)17:31
uvosits clear that clk_lane and d*_lane corrispond to the CLK+, CLK-, DATA0+, DATA0-, DATA1+, DATA1- somehow17:32
Wizzupkernel driver could maybe tell us17:32
uvosbut yeah17:32
uvosWizzup: wich one?17:32
Wizzuphttps://github.com/STS-Dev-Team/kernel_kexec_modules/blob/5f4220efe52185f602ccd7496f01a0b1c66ef95d/drivers/video/omap2/displays/panel-mapphone.c#L963 ?17:33
Wizzupso pos is the polarity?17:33
Wizzup(data1_pol)17:33
uvosthat makes sense yeah17:33
Wizzupwhat confuses me here a bit is how one could have clk+ ,data0-, etc in this schema17:34
uvosbut to flip the polarity fliping data*+ and data*- in mainline kernel should work17:34
Wizzupmaybe nobody does it for some EE reason17:34
Wizzupuvos: yes17:34
uvosso flip every 2 values where pol is different from d4 and try it?17:34
Wizzupwell, that is everywhere, no?17:35
Wizzup(if I read correctly)17:35
uvoslooks like17:35
uvosyeah17:35
Wizzupso that would be:17:35
Wizzup17:31 < Wizzup> so maybe something like <1 0 3 2 5 4> could work?17:35
uvosyes17:35
uvosbrb17:36
Wizzupuvos: ;-)17:45
Wizzuphello powervr17:45
uvosdose this mean it worked?17:47
Wizzupyes17:48
Wizzuptouch doens't work17:48
Wizzupbut pvr works, display work17:48
Wizzups17:48
uvossweet17:48
uvoskeyboard also dosent work because your using bionic dts :P17:48
Wizzupyes17:48
uvosi suspect the d3's keyboard matrix is the d4's but with the same mapping for the vol buttons as bionic17:49
Wizzupany clue on touch?17:50
uvosyeah if the touch coordinates are different enough17:50
Wizzupaudio works17:50
uvostouchscreen buttons might be freaking out17:51
WizzupI think there is just no driver (probe fails)17:51
uvosok17:51
uvosthen thats not it17:51
uvosmight be a different chip entirely17:51
uvosso do the usual17:51
uvosi2cdetect etc17:51
Wizzup'usual' :p17:51
uvosthe accelerometer should work17:52
uvosits the same one as bionic (as oppsed to d4)17:53
Wizzupcan't tell from tklock :p17:53
uvosalso we have wl1285c like d4 (as opposed to bionics wl1271) so maserati-callibrate should work17:53
uvostouch is Atmel MXT224E17:54
Wizzupyeah wifi works17:54
WizzupI need to figure out how to do input/touch17:54
Wizzup:p17:54
uvosd4 has the same touch chip17:55
uvosso thats wierd17:55
uvosregulator might be missconfigured17:55
Wizzupone sec17:55
Wizzuplet me log in over usb18:00
Wizzup(easier)18:00
WizzupJul 23 17:45:12 localhost kernel: [    8.709350] atmel_mxt_ts 1-004a: Family: 129 Variant: 1 Firmware V0.4.30 Objects: 1818:01
WizzupJul 23 17:45:12 localhost kernel: [    8.757965] atmel_mxt_ts 1-004a: Direct firmware load for maxtouch.cfg failed with error -218:01
WizzupJul 23 17:45:12 localhost kernel: [    8.822021] atmel_mxt_ts 1-004a: Touchscreen size X1023Y102318:01
WizzupJul 23 17:45:12 localhost kernel: [    8.839111] usbcore: registered new interface driver usbfs18:01
WizzupJul 23 17:45:12 localhost kernel: [    8.847015] input: Atmel maXTouch Touchscreen as /devices/platform/44000000.ocp/48000000.interconnect/48000000.interconnect:segment@0/48072000.target-module/48072000.i2c/i2c-1/1-004a/input/input118:01
WizzupI don't see it in xinput though18:01
Wizzupuvos: btw power button works18:02
uvosthats cpcap18:02
uvosyeah18:02
uvosshould work18:02
uvosso dose evtest show anything18:02
Wizzupdon't have it, just setting up a wifi hotspot, but need to connect to the wifi somehow18:02
uvosbecause input1 is blacklisted by us via libinput18:02
Wizzupoh, I can do usb for network18:03
Wizzupwhy do we blacklist it?18:03
uvosor wpa_cli18:03
uvosbecause of ts-buttons18:03
Wizzupok18:03
uvoswhat dose touchscreen-buttons say18:03
uvosdose it bind to the atmel driver?18:03
uvostouchscreen-buttons mapphone_touchscreen: Binding to device: input118:04
uvosinput: Filtered Touchscreen as /devices/platform/mapphone_touchscreen/input/input418:04
Wizzupsec18:04
Wizzupok so evtest shows ts works18:05
Wizzupuvos: I don't see any touchscreen-buttons in kern.log I think18:06
uvoswhat kernel are you useing?18:06
Wizzupbionic kernel18:07
uvoshmm ok18:07
uvosso it dosent probe18:07
uvosthats wierd18:07
uvosfor now you can rm /lib/udev/rules.d/85-input-devices.rules.leste18:07
uvosto let x use the ts directly18:07
Wizzupand reboot I guess18:08
uvosudevadm trigger might work18:08
Wizzuprecall the command?18:08
uvosudevadm trigger18:08
uvos?18:08
Wizzupit shows in xinput:18:09
Wizzup⎜   ↳ Atmel maXTouch Touchscreen              id=8[slave  pointer  (2)]18:09
Wizzup(it didn't before)18:09
Wizzupbut using it doesn't really seem to work18:09
Wizzupwell, I mean, it probably needs calibration18:10
uvosits rotated 90deg now18:10
uvosand uncalibrated18:10
uvosbut thats not so bad18:10
uvos(the calibration part)18:10
Wizzupok, I manually unlocked using dbus18:10
Wizzupand yeah it seems rotated18:10
uvosjust rotate the display back an fourth with the acell18:11
uvos(the accel might be in the wrong orientation so rotate the device in varous ways)18:11
Wizzupit's in landscape atm, I don't think it rotates based on accelerometer yet18:11
uvoshildon-desktop-rotate-touchscreen.sh then18:12
Wizzupthat did it18:12
Wizzupwell... :)18:12
uvospictures time :P18:13
Wizzupmore like video time :p18:13
Wizzupkeyboard doesn't work yet, but eh18:13
uvosthat should be trival18:13
uvoscopy &keypad { from droid4-xt894.dts18:14
uvosand add the vol keys from bionic18:14
uvosbut yeah you have some dts cleaning to do18:14
uvoswrt spliting mapphone-common a bit more18:14
Wizzupyeah, and making clownboot work or so18:14
uvosonce you have sane dts18:15
uvosthat should be easy18:15
Wizzupwell the magic trick really was tmlind's info and your modules18:15
uvoswas a team effort18:16
WizzupI'll try to get the keyboard going and make a proper vide18:22
Wizzupo18:22
Wizzupuvos: shall I try to copy the keypad slide from d4 dts?18:23
uvosyeah and add the vol button from bionic18:23
uvosthe vol button on d4 and xt910 is on cpcap18:24
uvoson xt875 its on the matrix18:24
Wizzupdo you recall (I think you just looked) if the accelerometer is from bionic or d418:24
uvosi strongly suspect it is on d3 too18:24
uvosits the bionic one18:24
uvosktxf918:24
Wizzupok18:24
uvosintterupt pin might be elsewhere18:25
uvos(if it probes but dosent work)18:25
Wizzupso I will take the VOLUMEDOWN from bionic as 3,018:25
uvosyeah18:25
Wizzupok18:25
uvosWizzup: i fwd you a message about the gpios18:27
uvosin case you need to parse it from dtb18:27
Wizzupregarding key map you mean?18:27
Wizzupok18:27
uvosno the the accel intterupt (or any other)18:27
Wizzupok18:27
Wizzupright18:27
uvosif the accel wont work but the driver probes this is the problem18:28
Wizzupok18:30
Wizzupsome of the map is slightly different18:31
Wizzup(keys)18:31
uvosok18:32
Wizzupit has a mic and search key18:32
uvosshould be easy to fix by watchin MS_SCANN18:32
Wizzupwhere d4 has the SYM18:32
Wizzupvolume both work18:32
Wizzupslide not yet I think18:32
uvosthe d3 like all the other non cost reduced droids might have 2 slide keys18:33
uvosone for fully closed and one for 3/4 open18:33
Wizzupaha18:33
uvosso that you dont accidentaly wake the device by popping it slightly in you pocket ;)18:34
uvos(somehting i find majorly annoying on d4 btw)18:34
Wizzupwell it did freeze up just now, so there might be some things to iron out ;)18:39
uvosyou might want to reduce the frequency18:39
uvosthe d3 was never clocked at 1.2Ghz by moto18:39
uvosand i has older revision of the omap418:39
uvosit might not make it18:40
uvosthen again its the same revision as bionic18:40
uvosso idk18:40
Wizzupvideo incoming18:46
Wizzuphttps://wizzup.org/droid3-initial-s.mp418:49
stano_elegantly slim18:49
stano_congrats wizzup ✓18:50
WizzupBus 002 Device 002: ID 22b8:2a70 Motorola PCS modem not visible in ofono yet18:51
buZznice18:52
uvosWizzup trys to type uname twice ... gives up :P18:53
Wizzupyeah :-D18:54
WizzupI forgot I had to press sym + v18:54
Wizzupso I put a sim card in my d3 on android and now it locked me out again19:31
Wizzuplmao what19:31
Wizzupputting it in airplane mode works19:32
stano_ftl: vncserver -geometry 959x484 on server gives a full window on droid4's vncvlient19:33
Wizzupuvos: ugh this one wants a network unlock code19:36
Wizzuphm:20:00
WizzupJul 23 19:57:10 localhost pulseaudio: modules/alsa/alsa-ucm.c:608:pa_alsa_ucm_query_profiles:Failed to get the verb HiFi20:00
WizzupJul 23 19:57:10 localhost pulseaudio: modules/alsa/alsa-ucm.c:608:pa_alsa_ucm_query_profiles:Failed to get the verb Voice Call20:00
WizzupJul 23 19:57:10 localhost pulseaudio: modules/alsa/alsa-ucm.c:616:pa_alsa_ucm_query_profiles:No UCM verb is valid for Mapphone Audio20:00
stano_you seem to be the resident pulse/UCM expert :)20:12
Wizzupmeh20:12
Wizzupbrain is dead today20:12
stano_brain fog can be a sign of diet in need of correction20:13
stano_many people are taking far too many complex carbohydrates20:13
stano_this droid4 keeps losing ability to wlan, scanning stops working, nothing visible anymore20:19
stano_after installing firmware-ti and maserati-calibrate and reboot even20:19
stano_and the accesspoing is 90 cm away20:19
stano_maybe i'll try without calibration20:20
uvosstano_: upgrade20:30
uvosstano_: preferably to devel20:30
uvosstano_: there where issues with wifi in recent packages20:31
uvosstano_: its all fixed tho20:31
stano_that's great thanks20:31
uvosWizzup: yeah us d3 is verizon locked afaik20:31
uvosWizzup: should have bought a milestone 3 instead :P20:31
Wizzupuvos: annoying, that's an added cost then20:31
uvosWizzup: maybe we can get a milestone 3 and see if we can unlock the d3 by seting the nvmem values like on the m320:32
uvossadly m3s where sold only in south/central america and asia afaik20:32
Wizzupyeah I didn't find any on ebay20:33
uvosa eu version was planned but canceld in favor of a eu m4 that never made it before moto died20:33
Wizzupuvos: either that or unlocking one and comparing nvmem values?20:33
uvosWizzup: sure if you can20:33
Wizzupthere's 10+ websites that will give you a proper unlock code (so they claim) for like 10 bucks20:33
uvossound shady not gonna lie20:34
uvosmaybe if you ask vrz nicely20:34
uvosyou could try at least20:34
Wizzupheh20:34
WizzupI think that's naive, they have a line you can call but you have to be a customer20:34
Wizzupit's not a thing here, but in the US it's common I think20:34
uvosok20:35
WizzupI'll probably try it for this one at some point20:35
uvoslocked phones?20:35
Wizzupyes20:35
uvosyeah back then in us the cariers dided even allow you to bring your own device20:35
uvosit had to be a vrz device20:35
uvosand they made contracts with device oems to make the deivces20:36
uvosand exclusivity deals20:36
uvoswhere the picked the soc and sutch even20:36
uvosthats how moto ended up in this terrible situation where they have 100s of variants fo devices with qualcomm msm tegra 2 and omap4 socs20:36
uvosand no resources to support all of them20:36
uvosthat basicly sunk them20:37
Wizzuphttps://www.digitaltrends.com/mobile/how-to-unlock-a-phone-on-every-carrier/20:41
WizzupThe account holder’s Social Security number or password20:41
WizzupA completed contract and/or device payment plan20:41
Wizzupyup20:41
uvosnice :P20:42
Wizzuphttps://sim-unlock.net/simlock/Motorola/Droid_3/20:42
Wizzup7 eur20:42
uvosluckly we have our resident guinea pig: Wizzup20:43
uvosdont forget to dump the nvmem first20:44
Wizzupyeah not going to do it yet20:44
Wizzupbut when I got it booted I did order a few from ebay so now I'm pissed :D20:44
uvoslol20:45
Wizzupyeah, great stuff :-D20:47
uvosWizzup: https://forum.xda-developers.com/t/guide-unlock-xt862-for-t-mobile-att.1406812/20:52
uvoslinks even still work20:52
uvoslooks like thay just flash the m3 raido.img20:53
stano_after update, ssh to droid4 is still responsive even while playing a movie in vncviewer20:55
tmlindWizzup: cool you got it configured :)21:09
uvostmlind: yeah was just the polarty of the data lines21:09
uvosthe pannel is the same one21:09
uvosalso looks like radiocomm  can sim unlock d321:09
uvosaccording to xda21:10
uvosso its in nvmem for sure21:10
Wizzuptmlind: yeah, things to work on, but it's a fun start21:10
Wizzupuvos: got a link?21:11
Wizzupuvos: the the 'a' didn't work on the keyboard21:14
Wizzupthat's why I couldn't type uname21:14
WizzupI need to fix the keymap I think21:14
uvosWizzup: in the same thread as posted above21:15
uvosWizzup: thats easy21:15
uvosWizzup: just check scanncodes with evtest21:15
uvosand ajust acordingly21:16
Wizzupuvos: ah missed it21:17
Wizzup(@ link)21:17
Wizzupuvos: yeah I wil21:17
uvosis parazyd around?21:18
uvoswe should probubly rethink how we do the repos and leste-config for mapphones21:18
uvosthe current setup dosent scale that well21:18
Wizzuphe's more close to me distance wise than usual for sure :p21:18
uvosand now we have 3 mapphones soon to be 4 (mz617) and maybe 6 (mz609, xt91x)21:19
uvosits wierd that audio works for you21:20
uvosbut ucm dosent21:20
uvosthat seams impossible really21:20
Wizzuppa does not pick it up21:21
uvoswierd21:22
Wizzup(sorry, finger food dinner , hard to type :p)21:22
Wizzupuvos: the card name did match the ucm dir, so I'll debug and figure it out, maybe tomorrow21:46
Wizzupdownloaded the unlock.zip (with radio.img), glad the mediafire still exists..21:47
Wizzupuvos: btw you said the reserved ram isn't necessary right?21:51
uvosyeah21:51
uvosthe stock kernel dosent do it21:51
uvos(saw in your dmesg)21:51
Wizzupok21:51
Wizzupcheck21:51
uvoswe should maybe try and reclaim it on d4 too21:52
uvosi dont see a reason for mbm to be mapped to ram all the time21:52
Wizzupnot first thing on my list but yeah :p21:53
uvosand no idea what mb 1023 eve is21:53
uvos*even21:53
uvosyeah 2mb isent a huge deal on d421:53
WizzupI am hoping that for everything but browsing ~250MB will be enough for leste21:54
Wizzupwe'll see how that pans out21:54
uvosgona be tight when you start to update toolkits21:54
Wizzupgtk3 much worse?21:54
uvosyeah the theaming engine21:55
uvossame with qt5,621:55
uvosfreemantle hovers at 200mb after boot allready21:55
Wizzupmhm, we have thumb though, but we'll see21:56
uvosi honestly dont see how we can keep the n900 going mutch longer (other than just not updateing leste to new tech)21:56
Wizzupjust for the record it is 'fremantle' not 'freemantle'21:56
Wizzupuvos: yeah this is not about the n900 per se really21:56
uvos ~250MB will be enough for leste sounds pretty n900ish to me :P21:56
Wizzupit does but I didn't mean it21:56
uvosok21:57
Wizzupas in, the d3 is pretty neat too imho21:57
uvoswell it has 512, i think thats more realistic21:57
Wizzupmhm21:58
WizzupI mean, zram on n900 almost gets you there too :P21:58
sixwheeledbeasthttps://en.wikipedia.org/wiki/Fremantle_Doctor  Nokia named versions after winds hence choice of https://en.wikipedia.org/wiki/Leste22:00
Wizzupyeah22:00
uvosyeah its neat22:00
Wizzupalso I think if the sim unlock works, that means the d3 will work in the us22:01
uvosyes22:01
Wizzupwhereas the d4 does not22:01
uvosthats an advatage22:01
uvossame as bionic22:01
Wizzup+keyboard,-ram22:02
uvosyeah22:02
WizzupI'll take it22:02
uvosbtw with d4 2 tabs open in ff, mpd running and asileriot open i am at 378mb useage (this is just what i had open at the moment)22:03
uvosso even browsing should be fine on d322:03
Wizzupmhm, we also have zram there22:04
stano_is there a way to see why ssh sessions and pings suddenly go to really slow (20sec - 1 minute) response times?22:05
uvoswifi chip is asleap22:05
Wizzupstano_: ping from or to device>22:07
stano_ping to device.  i see pinging using the d4 works just fine22:08
stano_so ping -i 5 <ap addr>  seems to keep things awake often enough22:08
Wizzuptry iw dev wlan0 set power_save off22:08
Wizzup(iirc that is the syntax)22:08
stano_oh ty22:08
Wizzupit will increase power usage, but you will not see the slowdowns anymore22:08
Wizzupwifi does deep sleeps unless the device transmits, it doens't care much for outside comms (but with enough pings, you can wake it up)22:09
Wizzupthere is a checkbox for this in the UI, but it is not yet implemented22:09
Wizzupsee https://github.com/maemo-leste/bugtracker/issues/17222:09
stano_that archos 80 with omap3 could run leste too22:18
stano_but it'd just be one to add another device to the list.  few people have it.22:19
uvosstano_: sure anything can run leste, if you put the work into it22:20
stano_and the kernel i have is superold22:20
stano_yea22:20
uvosstano_: with other mapphones its easy since they are all the same22:20
uvosstano_: so geting up to date kernel going is pretty trivial22:20
stano_not all kinds of weird peripherals?22:21
stano_those probably are good targets then22:21
uvosnot mutch the peripherals and cpcap setup varies only tiny bit22:23
uvosofc we dont really know, some other random mapphone like atrix 2 might have totaly different sensors or something, but its unlikely22:24
stano_seeing 2-3.2ms pings arm :)  it's so nice22:25
stano_*atm22:25
Wizzupuvos: I don't have/drive a car, but if I had I'm definitely try to make it work on some in-car thing22:44
Wizzupseems like a decent fit imho22:45
uvosWizzup: the d3?22:45
Wizzupnah, leste22:45
uvosoh22:46
WizzupI'm not _that_ _delusional_ / hyped :p22:46
Wizzuphm only meant that for the second word22:46
uvosim confused22:46
uvosdo you want to run leste on some infotainment system? :P22:46
uvosor a car mode app for leste?22:47
uvoslike android has22:47
stano_i think TI got a lot of omaps into car systems22:47
Wizzupinfotainment yeah, or for directions22:47
Wizzupuvos: I mean infotainment but useful yeah22:47
uvosWizzup: ok to be clear you want to run leste on a car build in infotaiment system hardware or write a infotainment application for leste phones/tablets22:48
Wizzupuvos: former22:49
Wizzupok, apparently the 'a' key is type 4 (EV_MSC), code 4 (MSC_SCAN), value 3d22:50
uvosdo you have a particular model in mind?22:50
Wizzupcar?22:50
Wizzupmy knowledge of cars is really close to nothing, so no :)22:50
uvoswell infotainment system22:50
WizzupI also don't drive one22:50
uvosthe car its install in is secondary22:50
WizzupI don't know, I just know that some cars have like android built in :)22:51
uvosthis seams a bit random22:51
uvos:P22:51
uvosbut would be cool no doubt22:51
uvosi also dont drive for the record22:51
Wizzupuvos: so I have the key codes, how do I actually get it to pass the 'a' key properly22:51
WizzupI just see MATRIX_KEY macros (presumably)22:51
uvos1sec22:52
uvosyou should get something like: type 4 (EV_MSC), code 4 (MSC_SCAN), value 2f22:52
uvosdo you not get a value?22:52
Wizzupyes, see above22:52
Wizzup22:50 < Wizzup> ok, apparently the 'a' key is type 4 (EV_MSC), code 4 (MSC_SCAN), value 3d22:53
uvosoh i missed it somehow22:53
uvosok so its 3, d> in the macro or maybe d, 3> i dont quite remember but the corrispondance was obvious when i was doing this for bionic22:54
Wizzupoh, so MATRIX_KEY does not correspond to the matrix on the keyboard or something22:54
Wizzupoh, wait, I see22:54
Wizzupmaybe it's 0x3 and 0xd ?22:56
uvosyeah22:58
uvosits really obvious22:58
uvosjust type a key that works22:58
uvosand see22:58
WizzupI mean there is no MATRIX_KEY in arch/arm/boot/dts that uses a value above 0x7 i seems22:58
Wizzuphm, if I type a key in that works, I won't see the value22:58
Wizzupunless I comment it22:58
uvos?22:58
uvosyou should see all values22:58
uvosi can see all of them on d422:58
Wizzupthe value will be 0 or 1, depending on if it is pressed22:58
Wizzupno?22:58
uvosno22:58
Wizzupmaybe you're using a program other than evtest22:59
uvosyou get a msc_scann event too22:59
uvosno22:59
Wizzuphm22:59
uvosyou get a key event22:59
uvosand a scann event22:59
Wizzupcheck22:59
WizzupEvent: time 1627073983.311370, type 4 (EV_MSC), code 4 (MSC_SCAN), value 1722:59
WizzupEvent: time 1627073983.311370, type 1 (EV_KEY), code 31 (KEY_S), value 122:59
uvosright23:00
uvosso now you can reverse engeneer the macro23:00
uvosthats how i did it23:00
Wizzup    MATRIX_KEY(2, 7, KEY_S)23:00
uvosofc you could also read the documentation23:00
uvosbut thats boring23:00
Wizzup:p23:00
Wizzup#define MATRIX_KEY(row, col, code)  \ ((((row) & 0xFF) << 24) | (((col) & 0xFF) << 16) | ((code) & 0xFFFF))23:02
inkydid anyone try pinephone or droid4 with some debian camera program?23:02
stano_usb camera?23:03
inkyis it a name of the program?23:06
Wizzupinky: does the droid4 camera work then?23:06
inkyor you mean if i connected usb camera?23:06
uvosinky cameras cant work on d423:07
uvoson pp they might, not sure if we have the relevant patches23:07
uvosbut its possible at least23:07
uvosusb cameras over otg should work ofc23:07
inkya right, it's not working. but on pp?23:07
Wizzupuvos: funny how it's obvious to you and not at all to me :-D23:08
inkycamera support is not on wiki for pinephone. (:23:08
uvos^^^ thats bait23:08
Wizzupmore specifically it's not clear to me how the msc_scan value in any way relates to the row/column that one can pick, which are determined from the row/column gpios23:09
Wizzupper https://www.kernel.org/doc/Documentation/devicetree/bindings/input/gpio-matrix-keypad.txt23:09
Wizzupah I guess it is https://www.kernel.org/doc/Documentation/devicetree/bindings/input/gpio-keys.txt23:10
Wizzupnope23:10
uvosWizzup: fine ill take a look :P23:10
uvosno23:10
Wizzupnah, I can look tomorrow as well, I'm just tired now I guess23:10
Wizzuphttps://www.kernel.org/doc/Documentation/devicetree/bindings/input/omap-keypad.txt23:11
Wizzupdefined in omap4-l4.dtsi it looks like23:12
Wizzupmeanwhile gpio122 is indeed changed by the slider23:14
Wizzup(I exported it in /sys/class/gpio and the value changes with the slider)23:14
Wizzupyeah I misdefined it in the dts :)23:17
Wizzup(the slider)23:17
uvos__[23:13] <uvos> ok so on d423:17
uvos__[23:13] <uvos> key 723:17
uvos__[23:13] <uvos> is 0 123:17
uvos__[23:14] <uvos> and key 2 is 0 623:17
uvos__[23:14] <uvos> scann of 7 is 623:17
uvos__[23:14] <uvos> scann of 7 is 123:17
uvos__[23:14] <uvos> and scann of 2 is 623:17
uvos__[23:14] <uvos> then r is 1 023:17
uvos__[23:14] <uvos> and r is scan 823:17
uvos__[23:15] <uvos> see a pattern?23:17
uvos__[23:15] <uvos> its23:17
uvos__[23:15] <uvos> keypad,num-rows = <8>;23:17
uvos__[23:15] <uvos> keypad,num-columns = <8>;23:17
uvos__[23:16] <uvos> so a is 7, 5> on d323:17
uvos__[23:16] <uvos> Wizzup: ^^^23:17
uvosin c pseduo code its MATRIX_KEY(MSC_SCAN >> 1, MSC_SCAN%8, KEY_0)23:19
Wizzupone second23:19
Wizzupwen you write MSC_SCAN, do you mean the value of MSC_SCAN?23:23
uvosyes23:24
uvosso a is MATRIX_KEY(0x3d >> 1, 0x3d % 8, KEY_A)23:24
Wizzupper your formula I don't see how that gets to 7,523:24
Wizzup0x3d>>1 = 3023:25
uvosno 0x3d = 6123:25
uvosmod(61, 8) = 723:25
uvosaccording to my calcualtor23:25
uvosrm = 523:25
uvosand 61 / 8 = 7.soemthing23:26
uvosso 723:26
uvos* mod(61, 8) = 5 ofc23:26
Wizzupmaybe you don't mean >> 1 then?23:26
uvosyes23:26
uvosi ment /823:26
uvosnot /223:26
uvosits /keypad,num-rows23:26
uvosand then the floor of that23:26
uvossry23:26
uvosMATRIX_KEY((int)(0x3d/8), 0x3d % 8, KEY_A)23:27
uvosthat should do it23:27
Wizzupok, yeah, so just mod and div then23:27
Wizzupslider works now, btw :)23:27
uvosgreat23:27
uvoswas it a gpio key?23:28
Wizzupno, it was my not defining the gpio-keys compatible23:28
uvoshow many slider keys do we have on d3?23:28
uvosok23:28
Wizzupthe gpio is the same as the d423:28
uvosok23:28
WizzupI don't know if there are more23:28
uvosok23:28
uvoscheck with androids version of evtest i gues (on android)23:28
Wizzupfor msc_scan ?23:28
uvos"getevent"23:29
Wizzupnot sure what you mean23:29
uvosno if another slider switch exitsts23:29
uvosgetevent == evtest (but on android)23:29
Wizzupbtw, the microphone key currently is leftalt (which makes sense I guess)23:29
Wizzupand then the search key is KEY_MINUS (less ok)23:29
Wizzupand the @ key next to it is KEY_EQUAL23:29
uvosbut d3 has a alt already no?23:30
Wizzupalt is ctrl23:30
uvoswhere shift is on d423:30
uvosok23:30
Wizzupno :d23:30
uvosuh23:30
Wizzupshift is shift23:30
Wizzupalt=control23:30
Wizzupmic=alt23:30
uvoshmm sounds confusing23:30
uvosmaby have alt=alt and mic=ctrl23:30
Wizzuphttps://upload.wikimedia.org/wikipedia/commons/a/a6/DROID_3.jpg23:31
uvoswierd that they have shift where capslock is on d423:31
uvosand we switched it back :P23:31
Wizzupyeah23:31
Wizzupyup23:31
uvosat least you muscel memory will be all right :P23:31
Wizzupnot looking forward to doing the xkb-data23:32
uvosthe keyboard looks way nicer23:33
uvosall those special keys have labels23:33
Wizzupyeah, the led is also in a nicer place imho23:33
Wizzupand it doesn't auto turn on when the usb is connected :p23:33
Wizzupso now I can actually have mce do a proper pattern23:33
Wizzup;)23:34
uvosit has another white charge led by the usb input like d1 or?23:34
Wizzupyeah23:34
Wizzupuvos: do you recall what should be done to enable the charging pattern in led-sw (to have it be anything)23:38
Wizzupmce.ini says # Charging = orange tinted, should be pulsating, but we don't do that atm in led-sw23:38
uvos70-bionic.ini disabels it23:39
Wizzupoh, nvm23:39
Wizzupyeah23:39
Wizzupjust realised23:39
uvosbut if the white usb led works23:40
uvosi would keep it disabled23:40
WizzupI want to see blink blink :-)23:40
uvosbut a dedicated light is better :P23:41
Wizzupnot really, it's on the side and not visible23:41
uvosi dissagree23:41
uvosbut ok23:41
Wizzup:D23:41
Wizzupit's kind of on the bottom/side and not visible (the white one)23:42
Wizzupand it would not be visible at all if hdmi was also plugged in23:42
Wizzupoh, it would be23:42
Wizzupstill23:42
uvospff you can barstardize that unit as mutch as you want :D23:43
uvosanyhow ttyl23:43
Wizzuphehe23:43
Wizzupttyl23:43
Wizzupthat's part of the fun, no23:43
inkytoday i connected the jack to droid4, my friend helped me to have the jack (aux?) input in the car radio, so i use phone via jack usually to play something, and it seems that droid didn't understand something is connected to the jack. is it right?23:45
Wizzupinky: yes, you need to select that specifically23:45
Wizzup(currently)23:45
Wizzupinstall pavucontrol-qt and set it in the output devices tab23:45
inkyyay.23:45
Wizzupwe're working on fixing that (uvos on the kernel side, me on userspace)23:45
inkyi had pulseaudio scripts on sailfish to do that when sailfish was not able to do that on xperia.23:45
Wizzupnice, there's also a shift key led23:52

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!