libera/#maemo-leste/ Monday, 2024-02-19

Wizzuparno11: great00:09
freemangordontmlind: heh, I think I found the missing events issue :) . here https://github.com/maemo-leste-upstream-forks/ofono/blob/maemo/chimaera-devel/plugins/udevng.c#L41008:04
duuude U-Boot with kernel 2.6.28-omap1 won't get installed08:05
duuude it violates "third party package policy"08:05
duuude what to exactly do now?08:05
freemangordonit takes the last wdm device (cdc-wdm3). if I change that to use first device (cdc-wdm0), at least NAS and SMS notifications are comming08:06
tmlindfreemangordon: oh nice :)08:07
freemangordonthis is for device in BP mode08:07
freemangordonbut I assume it will be the same if we boot leste08:07
tmlindshould be yeah :)08:07
freemangordonwill test that later on08:08
freemangordonalso, I have upstream ofono working with it, without gsmmux08:08
freemangordonis it needed for voica calls, right?08:08
freemangordonor, is it?08:08
freemangordonif qmimodem in ofono support voice calls over qmi, do we need gsmmux?08:09
tmlindfor voice call routing and mixer we need something for alsa08:09
freemangordonbut do we need gsmmux?08:09
tmlindgnss should be doable over qmi too08:10
freemangordoncool08:10
tmlindyou can use the tool i did to dump and diff the modem nvram and attempt to replicate the same with qmi commands08:10
freemangordonwait, WTYM? qmi interface is standard08:11
tmlindalsa needs some notification, but that might be doable with the audiocalld or whatever the newish daemon was called08:11
tmlindmotorola implemented some custom calls that likely just tweak some nvram options and the modem firmware then sets things as requested08:11
tmlindthe qmi calls also mostly just set nvram values fyi08:12
freemangordonare you sure motorola implementd custom qmi calls? what for?08:12
tmlindfor their audio setup i think08:13
freemangordonI just doubt that motorola had to do it besides perhaps some FW download08:13
freemangordonhmm08:13
freemangordonok, will see08:13
tmlindanyways, you can diff the nvram values with https://github.com/tmlind/tcmdrw08:13
tmlindmaybe you can dump the nvram over qmi too, don't know08:14
freemangordonme neither08:14
freemangordonqmicli is far from being complete08:14
freemangordonbut I found qmi specs over the inet08:14
tmlindanyways, if you got the qmi notifications working for incoming sms, we can get pretty far with not gsmmux stuff08:15
freemangordonyes, I sent sms and saw the notification08:15
tmlindgreat08:15
freemangordontmlind: https://pastebin.com/AAHkamJQ08:17
tmlindanyways, if we end up adding the gsmmux stuff to ofono later on, it should be implemented with raw read and write using ell08:17
freemangordonbut we still need the kernel driver, right?08:17
tmlindno need to try to use atmodem stuff for it08:17
tmlindright, kernel driver or the userspace tool that won't work with pm08:18
tmlindwhatever attach it was called08:18
freemangordonok I lack teh details here08:18
tmlindcool nice to hear you figured out the missing notifications08:18
tmlindanyways, i agree with you, let's try to use mainline ofono with qmi where possible and then patch in the gsmmux if and when needed08:19
freemangordon:nod:08:19
freemangordonI'll try to prepare and send patches for upstreaming of motmdm08:21
tmlindfor the voice call alsa driver, don't recall if we need to do some gsmmux modem commands beyond mixer and dtmf08:21
freemangordonI have no clue08:21
freemangordonbut anyways we need qmi voice calls working in upstream first08:22
tmlindit could be we're only configuring the mcbsp and pmic for the tdm use for voice call08:22
freemangordonmhm08:22
freemangordonbut you do that in the driver08:22
tmlindyeah08:22
freemangordonwhich looks like a hack as well, but that's another story :)08:23
tmlindright, it should be the whatever voicecallaudiod doing it nowadays and that likely already has qmi support08:23
freemangordonok, thanks! will keep you informed on the progress.08:23
freemangordonbbl08:24
tmlindok great, ttyl08:24
sicelonote that voicecallaudiod might not have a future ... there's talk to drop it once pipewire can handle some of those things by itself08:25
tmlindoh ok good to know, anyways nice to hear there's some kind of userspace path for dealing with these things08:26
duuude U-Boot with kernel 2.6.28-omap1 won't get installed09:25
duuude it violates "third party package policy"09:25
duuude what to exactly do now?09:25
duuudeWizzup freemangordon09:29
duuudeit wasn't like this the year before or at least I don't remember such a thing.09:30
siceloi said install it with apt. did you try that?09:33
duuudesicelo: I probably wasn't online when you said that09:37
duuudethough, I found an apt command from postmarketos' gitlab issues which also didn't work09:37
sicelowhat command was it?09:39
duuudeapt install uboot-menu? was something like this09:39
sicelomaybe share the link :-) ... there's no 'apt install' in maemo fremantle09:51
duuudeI don't know what was the problem the first time (I had entered "apt-get") but it worked this time: apt-get install u-boot-flasher u-boot-tools u-boot-bootimg09:56
duuudesicelo: how to enable on-screen keyboard? I can't enter ">"09:59
duuudethese weren't problems the first time09:59
sicelowhat device?10:00
duuuden90010:00
duuudeon the terminal10:00
siceloFn+Ctrl, i think ... the standard way in Fremantle10:00
freemangordontmlind: why not using AT interface for voice calls?10:13
freemangordonI tried and got NO CARRIER, but this could be because I didn;t set-up the modem properly10:13
duuudeI got stuck in "Welcome to Leste"10:24
duuudeit doesn't seem to take input10:24
duuudeit somehow went away, but looking frozen isn't good ux10:26
siceloi think on first boot, N900 just can't handle the amount of stuff happening in the background. using a fast SD card helps somewhat10:41
Wizzupfreemangordon: great @ ofono11:03
sarah_duuude: see leste n900 wiki: https://leste.maemo.org/Nokia_N900#Tips_.2F_Tweaks (SD card and first boot)11:59
arno11btw "Welcome to Leste" seems to be a problem on N900 and a bit annoying for users12:08
arno11if you click nowhere for at least 3 min once H-D is visible, everything is fine then. Otherwise N900 is slowing down a lot and users think Leste is really slow and unusable on N900...12:11
Wizzupwe could have a splash screen, or ry to emit the h-d is ready signal later12:12
arno11a splash screen could be cool12:25
arno11btw there is quite a similar issue with 'pin entry code' applet: N900 is unusable until the applet appears on the screen. Not a major concern but also annoying for new users.12:43
arno11bbl12:43
duuudesicelo, Wizzup: addition of a text "(the freeze is normal)" could be nice.14:23
duuudewould leste dry up the battery to the last second like before?14:39
uvos__the greeting text is common to all devies16:10
uvos__only the n900 has issues so its not so easy16:10
uvos__if it really is unresponsive for 3 minutes i dont think a splash screen is enough really16:11
uvos__that calls for at least a thobber otherwise people will think its frozen16:11
tmlinduvos__: fyi https://lore.kernel.org/dri-devel/20240219142001.19727-1-tony@atomide.com/T/#t16:12
tmlindfreemangordon: well the at interface is buggy from what i recall..16:13
tmlindfreemangordon: also, if you're booting to bp mode with m-l kernel, the gsmtty kick might cause the qmi notifications to happen for you on your x86 vm..16:13
uvos__tmlind: sweet :)16:15
tmlinduvos__: also another series fyi https://lore.kernel.org/dri-devel/20240215123222.42609-11-tony@atomide.com/16:16
sicelofor the first boot on N900, maybe let's introduce a lysti LED pattern, in a fast heartbeart, to signal to user that *something* is happening16:16
tmlindi've moved to mostly automated git email scripts, currently missing option to add a manual cc list..16:17
bencohsicelo: why not a "please wait while bootstrapping" message on first boot then?16:17
sicelobecause, ... 17:11 < uvos__> that calls for at least a thobber otherwise people will think its frozen16:20
bencohah, so you mean both, nevermind16:22
uvos__a pattern would work yeah16:26
sicelofreemangordon: "I want to discuss with16:40
sicelothe author of QMI voice calls support in PMOS" ... who's that?16:40
freemangordonsicelo: https://codeberg.org/305a385/pmaports/src/branch/master/temp/ofono/0005-qmimodem-implement-voice-calls.patch16:45
freemangordontmlind: I am booting from power-off and d4 is attached to my ubuntu laptop :)16:46
freemangordonI am not sure what you meant16:46
freemangordonqmi notifications didn't happen in that setup until I changed to /dev/cdc-wdm016:47
freemangordonthis https://pastebin.com/qwnjSXmG is how things look like with upstream ofono and d4 modem attached in BP only mode17:00
freemangordononly qmi interface is used, not AT, no MUX (gsmtty)17:00
freemangordonnot sure how to test gps though17:01
freemangordonBTW, what is the 'official' name of the modem? m6600?17:04
uvos__freemangordon: if you use bp mode from the bootloader the deivce routes out the usb interface of the modem17:11
uvos__freemangordon: if you then boot the leste kernel it might affect the result because it uses the gsmtty interface17:11
uvos__is what he is saying17:12
freemangordonuvos__: I understand that, but I think the plan is to try to not use gsmtty. Also, I doubt I will lose notifications in qmi because of gsmtty. However, will test on the device in couple of minutes and will see17:13
freemangordonalso, we'll have issue with notifications as currently I am not aware of any way to disable them (on qmi interface that is) outide of ofono17:14
freemangordonand ofono does not expose any interface for doing that17:14
uvos__sure @plan, no idea at if gsmtty use by ofono on device affects qmi connected to the host17:14
freemangordonit should not, but... who knows :)17:14
freemangordonoh, but ofono *does not* use gsmtty17:15
freemangordonwell, the upstream one17:15
freemangordonnot what we have currently in leste17:15
uvos__sure but what we have in leste ist running in this configuration17:15
uvos__also mce kicks gsmtty17:15
freemangordonbut I will replace ofono on my d4 with upstream one17:16
uvos__right ok17:16
uvos__mce still kicks gsmtty iirc17:16
freemangordonyeah17:16
freemangordondo disable RSSI on display off, right?17:16
uvos__yeah and it just kicks it too17:16
freemangordonwhy?17:16
uvos__for some reason doing open() and then close() on the if gets the modem "unstuck"17:17
uvos__the modem gets stuck in some wierd state where it uses more power17:17
uvos__for reasons unkown17:17
uvos__as a workaround we do that every 10 min or so17:17
freemangordonuvos__: by 'modem' you mean AT modem, right?17:28
tmlindfreemangordon: so best to run your tests with no ofono running on d4 while testing :)17:28
tmlindfreemangordon: the modem name is mdm660017:29
freemangordontmlind: why no ofono (upstream)?17:29
freemangordonit does not touch either AT modem (/dev/ttyUSBn) or gsmmux17:30
tmlindfreemangordon: only run ofono on your x86 during the test, not on d4 to avoid d4 patched ofono kicking the usb interface17:30
freemangordonnothing more to test on x8617:30
freemangordonand I will replace ofono on d4 with upstream one17:30
tmlindok yeah interesting to see what happens :)17:31
freemangordonmhm17:31
freemangordonbesides missing voice call it should work, in theory17:31
tmlindWizzup: i think your usb hang may be reproducable with something like this: mosh or ssh over usb doing dmesg -w, then unblank the lcd17:52
tmlindso usb traffic while tiler doing something maybe?17:52
tmlindat least i can hang the device pretty easily with that, no oops logs so far though17:53
tmlindhehe yup, i've had two of these now:18:06
tmlinddmm 4e000000.dmm: timed out waiting for done18:06
tmlindomapdrm omapdrm.0: could not unpin pages: -11018:06
tmlinddmm 4e000000.dmm: timed out waiting for done18:06
tmlinddmm 4e000000.dmm: timed out waiting for done18:06
tmlindomapdrm omapdrm.0: could not pin: -11018:06
tmlindPVR_K:(Error): DmaBufImportAndAcquirePhysAddr: dma_buf_map_attachment failed: -11018:06
tmlindPVR_K:(Error): PVRSRVMapDmaBufKM: Failed to get dma-buf phys addr18:06
tmlindPVR_K:(Error): PVRSRVMapDmaBufBW: Failed to map dma-buf handle18:06
tmlind...18:06
tmlindand then bad things happen and device will reboot quit soon18:06
tmlindi'll try enabling i878 workaround in omap_dmm_tiler.c, let's see if that helps18:19
freemangordonok, upstream ofono (with motmdm ported) works in leste, besides there is some issue with reporting RAT18:20
tmlindcool18:23
tmlindenabling i878 workaround does not help with the "timed out waiting for done" errors18:24
tmlindfreemangordon: so you got sms receiving working with just qmi?18:24
freemangordonyes18:24
tmlindfreemangordon: and you get a qmi notification on disconnecting from a network with tin foil? :)18:25
freemangordontmlind: seems only RSSI and SMS notifications work properly so far18:25
tmlindfreemangordon: ok18:25
freemangordonbut this is a matter of fixing here and there, not some general issue18:27
tmlindok great18:28
freemangordonhmm... actually18:29
freemangordonI had to kick it18:30
freemangordonmaybe gsmtty behaves18:30
freemangordonanyway, have to run now, bbl18:30
tmlindyeah me too later18:31
freemangordontmlind: if I rmmod n_gsm, would that release gsmtty?22:12

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