libera/#maemo-leste/ Saturday, 2024-10-05

freemangordonarno11: so, you said removing dsmetool call makes pui work?06:54
freemangordonarno11: please change /etc/X11/Xsession.post/15hildon-status-menu to:07:14
freemangordonDEBUG_OUTPUT=1 G_MESSAGES_DEBUG=all /usr/sbin/dsmetool -t '/usr/bin/hildon-status-menu > /home/user/hsm.log'07:14
freemangordonthen reboot and provide /home/user/hsm.log07:14
freemangordonWizzup: uvos: seems new kernel fixes "wifi first connect failure" on d407:19
freemangordonsicelo: might be related http://47.144.20.137/lists//linux-omap/msg170791.html07:22
freemangordonhmm, bug is still there07:30
sicelofreemangordon: ah thanks. funny enough - i had seen that message, but completely forgot about it when Andreas wrote08:28
Wizzupfreemangordon: oh great @ wifi11:17
freemangordonWizzup: no, it is not fixed13:58
Wizzupok13:59
arno11freemangordon: i can't get any logs from hsm xsession during boot. it works only if i block hsm on boot and start it with debug stuff from user space, so not really useful16:39
arno11(or maybe i'm doing something wrong)16:39
arno11btw @wifi, i got quite similar bug on my n900 but it happens only without sim iirc16:41
arno11@hsm, yes pui 'works' without dsmetool but if i click on gps btn for example, hsm stops working16:45
Wizzupfreemangordon: btw, re the python porting, the real problem is that there is no way to use gtk2 with python316:45
Wizzupso evne if you port say python-hildon, it's mostly useless16:46
arno11wow, that's a big problem16:47
Wizzupbeen for years :)16:47
Wizzupuvos: btw did you know https://packages.debian.org/bullseye/gconf-gsettings-backend16:48
Wizzupwonder if that can assist us during the migration16:48
uvosWizzup: no16:57
uvosWizzup: yeah that sounds good if it works16:57
uvosone thing i wonder is how this affects the fact that on leste nokia did gconf bakwards16:57
uvosin gconf issues warning when a app reads a key that is not registered with the shema of that app while in gsettings its an error and gsettings will just assert16:58
uvossadly nokia did this wrong everywhere, mce's gconf keys are for instance in shemas that are packaged with the status applets, which ofc is wrong since mce can run without the status applet but the applet cant run without mce.16:59
uvossame with everything else17:00
uvosso when porting to gesttings you will nessecarly have conflicting shema where you add the gsettings keys to the base dependancy while the applet still has the gconf shema17:00
uvosi wonder what this tool dose in this case17:00
Wizzupmhm, maybe we just need to bite the bullet at some point17:07
Wizzuphttps://docs.gtk.org/gio/migrating-gconf.html17:07
Wizzupnot sure if we do it for bookworm17:07
siceloI'll submit a patch for droid4-linux in an hour or so (I'm away from PC atm). it solves the issue of getting uevents when charger is connected/disconnected. could we get it built today, at least for experimental, if not devel?17:11
siceloWizzup: freemangordon, so now we do get reliable uevents from our charger, yay! it's still not instant, but I think that's correct/normal, per the 2s detection period mentioned in docs. Even the 'standard' LED takes a couple of seconds  to show up.  Now upower sees the ONLINE state much earlier17:19
siceloI'll submit the patch upstream as well17:21
sicelohttps://github.com/maemo-leste/droid4-linux/pull/1218:30
Wizzupsicelo: sweet!18:45
Wizzupuvos: if you can prep a build I'll start it18:45
Wizzupfreemangordon: for the record from my pov the wifi issue is not juts on boot, it also happens frequently after18:49
tmlindfreemangordon: that wifi connect failure on start-up, it might be related to not enough random data during boot as no hardware rng accessible. if so, generating some entropy on boot by reading sensors etc and feeding it to /dev/random might help19:01
uvosi mean the connection failure happens often after also19:02
uvosbut only with icd2 never with wpa_cli or networkmanager. Not saying icd is doing anything wrong, just that icd could handle the connection failing better than just giving up.19:03
sicelomaybe someday we shift to iwd :-P19:05
uvosoutside the wl1285 driver/firmware maybe having a small bug, association can fail for lots of temporary reasons outside the devices controll, like a burst of interferance, or the ap being busy or whatever19:05
siceloBTW the connection issue doesn't affect N900?19:05
uvosi have never expiranced it there no?19:06
uvoss/?/.19:06
sicelosomeday I might look into improving it icd-side. not making a solemn promise though19:08
Wizzuptmlind: from my pov it looks like the association just fails immediately, three times in dmesg19:12
Wizzupand it fails after milliseconds, not after a sensible set of time19:13
Wizzupuvos/sicelo: it's not a problem in icd2, it's in the driver/kernel19:13
arno11sicelo: cool ! @charger19:15
siceloarno11: I'm looking forward to have you test :-)19:16
arno11np :)19:20
tmlindWizzup: can you check if wpa_supplicant is actually running at that point? if not enough entropy, i think wpa_supplicant refuses to start19:23
WizzupI'm confident that it is running, as we first scan on maemo, which uses wpa supplicant, and then connect using the resulting scan list19:31
WizzupThe problem seems to be some race condition between the firmware and the driver I think, it doesn't just happen shortly after boot, but also regularly after that19:32
tmlindok different issue then19:32
tmlindthe issue i'm describing is related to device not connecting to wlan automatically after boot if not enough entropy19:33
Wizzupcheck19:33
Wizzupwhat I mean is this:19:33
Wizzup[17366.187713] wlan0: authenticate with 7c:77:16:35:f5:c119:33
Wizzup[17366.198211] wlan0: send auth to 7c:77:16:35:f5:c1 (try 1/3)19:33
Wizzup[17366.210052] wlan0: send auth to 7c:77:16:35:f5:c1 (try 2/3)19:33
Wizzup[17366.220886] wlan0: send auth to 7c:77:16:35:f5:c1 (try 3/3)19:33
Wizzup[17366.231414] wlan0: authentication with 7c:77:16:35:f5:c1 timed out19:33
Wizzupsee hoe quickly the auth times out - within 40ms of starting the authentication, and that's three attempts even19:34
Wizzuphow quickly*19:34
tmlindhmm ok19:34
Wizzuphere is a working one 15 seconds later:19:34
Wizzup[17384.560638] wlan0: authenticate with 7c:77:16:35:f5:c119:34
Wizzup[17384.575073] wlan0: send auth to 7c:77:16:35:f5:c1 (try 1/3)19:34
Wizzup[17384.580078] wlan0: authenticated19:34
Wizzup[17384.590179] wlan0: associate with 7c:77:16:35:f5:c1 (try 1/3)19:34
Wizzup[17384.598358] wlan0: RX AssocResp from 7c:77:16:35:f5:c1 (capab=0x1c11 status=0 aid=3)19:34
Wizzup[17384.611450] wlcore: Association completed.19:34
tmlindmaybe run wpa_supplicant in the foreground to log it?19:35
tmlindin the verbose mode19:35
Wizzupcan do, from what I recall it doesn't get anything meaninful, but that was maybe 2 years ago at this point19:36
tmlindok19:37
WizzupI remember trying to figure out if wpa supplicant want setting some bad timeout, but it didn't seem that was the case, I might even have logs somewhere from trying more verbose debug on the kernel wifi layer...19:37
tmlindi guess the kernel could run out of entropy during runtime too, should see something in the dmesg19:38
WizzupI think I remember toying with wl12xx_debug_level, let me check irc logs19:43
tmlindand you do have separate wl12xx mac addresses for each device set with the tool from uvos?19:46
tmlindduplicate mac addresses could cause issues like you're describing..19:46
siceloI also see those issues, and have exactly one D4 ;-)19:48
tmlindok19:49
Wizzupyeah it happens on all the mapphones I think19:52
Wizzupmaybe it's related to a force country code, like with iw get reg19:54
Wizzupbut I don't think so19:54
Wizzupfreemangordon: I think we can close https://github.com/maemo-leste/bugtracker/issues/746 and https://github.com/maemo-leste/bugtracker/issues/747 ?20:25
tmlindnow that i think about it, it was my mz617 where wl12xx did not often connect on boot while my d4 was connecting20:36
Wizzupif it didn't connect on boot, might be worth checking if you see the same early auth aborts in dmesg20:36
tmlindhere's the openrc script i did to add more entropy before wpa_supplicant, might be worth a try just in case: http://muru.com/linux/mapphone-entropy20:37
tmlindmight be a good idea to add something like that anyways for devices with no hw rng available20:37
Wizzupperhaps haveged can also help20:37
Wizzupheh iio seems clever too :)20:37
tmlindnot sure if the sha256sum makes any difference there20:38
tmlindanyways, that made my mz617 to connect on boot20:38
uvosoh i thought the kernel uses sensors for rng anyhow - like it dose input devices20:39
tmlindyeah but nothing reads them on boot20:39
uvosi see20:40
uvosi gues i expected the kernel to just read them if it finds itself out of entropy20:40
uvosso til20:40
tmlinduvos: actually looks like iio devices need to add it? see git grep add_device_randomness drivers/iio/20:41
tmlindi guess we could also automatically read some data on the iio driver probe20:42
tmlindbut nothing would still ensure iio would be loaded before wl12xx..20:43
tmlindhmm not sure if the iio driver should call add_device_randomness() on a single sensor data, it may not change at all while a combination of many sensors is likely to change20:48
freemangordonarno11: don't follow, did you made the change I asked for?20:53
freemangordonthis:20:53
freemangordonDEBUG_OUTPUT=1 G_MESSAGES_DEBUG=all /usr/sbin/dsmetool -t '/usr/bin/hildon-status-menu > /home/user/hsm.log'20:53
arno11freemangordon: yes, with your changes20:54
arno11yes20:54
freemangordonit outputs to /home/user/hsm.log20:54
freemangordonnot to xsession-error20:54
arno11yes but the file is empty20:54
freemangordonhow's that?!?20:55
arno11*empty whatever i do20:55
arno11it creates only an empty file20:55
arno11it works only from userspace20:55
freemangordonI tested in the VM and can assure you the file is not empty20:55
freemangordonsorry, what is userspace?20:55
arno11i mean, after boot20:56
freemangordonplease elaborate, what works after boot?20:56
freemangordonarno, hmm, perhaps try to append20:57
freemangordonDEBUG_OUTPUT=1 G_MESSAGES_DEBUG=all /usr/sbin/dsmetool -t '/usr/bin/hildon-status-menu >> /home/user/hsm.log'20:57
arno11to resume, as i previously said: only an empty file with your changes. if i block hsm on boot and start it with debug stuff after boot, it works20:57
arno11i already tried20:57
arno11same result20:58
freemangordondid you try with a different file name?20:58
arno11yep20:58
freemangordonmaybe you have some remnant from previous tries that overwrite hsm.log20:58
arno11i already check20:58
freemangordonsee, with DEBUG_OUTPUT=1, h-s-m writes to console20:59
freemangordonthere is no way for that to not work if written properly20:59
arno11agree21:00
freemangordonso, please pastebin the content of /etc/X11/Xsession.post/15hildon-status-menu21:00
arno11if you want21:01
arno11https://paste.debian.net/1331448/21:03
freemangordon:(21:05
freemangordonarno11: where are the quotes?21:05
freemangordonDEBUG_OUTPUT=1 G_MESSAGES_DEBUG=all /usr/sbin/dsmetool -t '/usr/bin/hildon-status-menu >> /home/user/hsm.log'21:06
freemangordonsee the apostrophes around the command21:06
freemangordonsee mine https://pastebin.com/gHrLYPff21:07
arno11omg, tired today, sorry21:07
arno11will check again21:07
freemangordonok21:08
arno11biab, rebooting21:10
freemangordontmlind: basically every second connection attempt fails21:18
freemangordonsicelo: why it started to work?21:19
freemangordonlike, you said it sends wring status21:19
freemangordon*wrong21:19
Wizzupftr I'm working on daedalus a bit21:20
Wizzuplooks like gtk2 is completely unchanged from bullseye->bookworm21:20
Wizzupkinda nice in some way ;)21:20
freemangordonyeah, saw it on ##leste-ci21:20
freemangordonI hope that finally we'll have fixed sgx userspace blobs21:21
Wizzupoh yes, that will be interesting for sure21:22
freemangordondo you remember where the new repo is?21:22
Wizzuphttps://git.ti.com/cgit/graphics/omap5-sgx-ddk-um-linux/log/ ?21:22
Wizzupthat's just in my firefox history21:22
Wizzupdon't know if it is new21:22
freemangordonI meant - the new mesa21:23
WizzupI don'21:23
Wizzupt understand what you mean21:23
freemangordonthere is a mesa fork that imcludes support for pvr21:23
freemangordon*includes21:24
Wizzupsorry, don't remember21:24
Wizzuphttps://git.ti.com/cgit/graphics/omap5-sgx-ddk-um-linux/log/?h=1.17.4948957/mesa/glibc-2.35 this has mesa in the tag at least21:24
Wizzuphttps://docs.mesa3d.org/drivers/powervr.html ?21:26
Wizzupthis is only for new powervr I think21:27
freemangordonwait21:27
Wizzupmhm21:28
freemangordonsee https://gitlab.freedesktop.org/StaticRocket/mesa/-/branches/stale21:28
freemangordonhttps://gitlab.freedesktop.org/StaticRocket/mesa/-/commits/powervr/kirkstone/22.3.5/?ref_type=heads21:29
Wizzupand this is for old powervr hw?21:30
freemangordonyes21:31
freemangordonthis is the same/similar to what we have21:31
freemangordonbut for newer mesa that dropped old drivers support21:31
uvosdose that even matter given that mesa-amber exits (in debian too)21:32
freemangordonno idea21:33
uvosmesa-amber is a maintianed fork with the support for mesa classic drivers21:33
freemangordonbut I guess yes, it matters as we can ask for help/support/fixes21:33
uvosit was forket at the same time as we forked mesa for pvr21:33
uvosso we just rebase on that and its the same thing21:33
uvosfreemangordon: i gues yes21:33
Wizzupthere is also this https://gitlab.freedesktop.org/StaticRocket/mesa/-/commits/powervr/23.2.121:37
freemangordonuvos: https://gitlab.freedesktop.org/StaticRocket/mesa/-/tree/powervr/kirkstone/22.3.5/src/gallium/frontends/sgx?ref_type=heads21:37
freemangordonWizzup: I don;t think 23.2.1 branch supports sgx21:38
Wizzupok21:40
Wizzupwell bullseye had 20.x, we had 21.x ourselves, and bookworm has 22.x, so I guess we can make this work21:40
freemangordonmhm21:41
freemangordonI will forward-port whatever patches we have on top21:41
freemangordonI really hope that would finally fix qt fullscreen hangs21:42
Wizzuphttps://github.com/maemo-leste/bugtracker/issues/75121:42
Wizzupthere is some time until we hit mesa ;)21:42
freemangordonyeah21:42
freemangordonhildon-desktop-clutter-1.x?21:42
freemangordondo we need that?21:42
freemangordonok, have to go, night!21:44
Wizzupwe do not need it21:45
Wizzupgn21:45
Guest2030freemangordon: https://paste.debian.net/133145821:47
arno11Wizzup: not sure issues 746 and 747 should be closed: on n900 pulsesrc works but with few changes iirc and outgoing still doesn't work21:51
Wizzupah21:57
arno11Wizzup: outgoing works on another network on my device :)22:14
arno11too happy22:15
WizzupI still have to do more testing of this and also experience that feeling :D22:15
arno11ok :)22:15
Wizzupfreemangordon: ah, so the building of packages with the same version went wrong because the dch hook didn't have aliases for chimaera and daedalus, only for ascii and beowulf22:24
Wizzupoops22:24
Wizzup(I fixed it now obviously)22:47
uvosWizzup: whats the use of mz617-tiny-bootstrap supposed to be?23:03
Wizzupthat's the image that you can flash to install leste to the main partition23:09
Wizzupbut in its current form you can't just flash it23:09
uvosyeah but its not fit for puropse23:09
uvosunless i missunderstand23:09
Wizzupnot yet, no23:09
uvosthe only partition flashable via fastboot that is large enough is cache at 850 ish mb23:09
uvosbut this image's fs is 3Gigs in size and its 2 partitons23:10
uvosWizzup: ok gotcha23:10
Wizzupwell yes but the 3GB aren't all used23:10
Wizzupit's close to what it is supposed to be, but it's not it...yet23:10
uvossure but i was expecting this to be an image that can be "fastboot flash cache image.img "23:10
Wizzupyeah.23:10
Wizzupmaybe you can try massaging it for this purpose23:11
WizzupI think it just needs a small amount of losetup (loopback) massaging23:11
uvosi hosed my mz617 again :P23:11
Wizzupuf :D23:11
Wizzupdo you still have my manually made img?23:11
uvosim manually makeing an img from the tiny image23:11
Wizzupok, pls record the steps23:11
uvosits not hard just create a 850mb fs and copy both boot and root there23:11
Wizzupyeah that works too23:12
uvosim not shure how the image builder works at all23:12
uvosbut i think this should be fairly trivial to do or?23:12
Wizzupmostly yes23:13
Wizzuphttps://github.com/maemo-leste/image-builder/blob/master/chimaera.config23:13
Wizzuphttps://github.com/maemo-leste/image-builder/blob/master/chimaera.config23:13
uvosshould the second one be a different link?23:13
Wizzupyeah meant to link to the .blend file as well23:13
Wizzupin any case the .config line 167 is where most of the cleaning happens, and then I guess it needs a special finalize procedure23:14
Wizzupsorry I menat .blend 16723:14
Wizzupgithub is just silly23:14
uvosi must be blind23:17
uvosbut i dont see where the partition table and the partitions are created23:17
uvosthats the main problem really the mz617 image needs to be one parition not 223:17
uvossame for installing to mapphone emmc in gernal (having emmc images for d4 would be a nice spinoff here)23:18
Wizzupyou're not blind, it's just not that easy to plug in :)23:20
Wizzuplet me see if I can find it23:20
WizzupI think arm-sdk/boards/mz617.sh would need to be modified23:21
Wizzupand then I don't know if arm-sdk supports a single partition for everything, probably does23:21
Wizzupit looks like if bootfs is none (do not know if that is a special zsh value or not) then it will not do any bootfs stuff23:23
Wizzupthis is in arm-sdk/libdevuansdk/zlibs/imaging23:23
uvosoh no23:28
uvoshttps://uvos.xyz/maserati/xycrash.txt23:28
uvosthe stock kernel crashes before it even gets to kexec23:28
Wizzupstrange...23:29
Wizzupseems like it is unhappy with some of the partitions23:30
Wizzupmaybe if you clear data.. (but yeah)23:30
Wizzupactually wai23:30
Wizzupit doesn't crash before kexec23:30
Wizzupinsmod: can't insert '/lib/modules/3.0.8-g448a95f/kernel//uart.ko': File exists23:30
Wizzupinsmod: can't insert '/lib/modules/3.0.8-g448a95f/kernel//arm_kexec.ko': File exists23:31
Wizzupinsmod: can't insert '/lib/modules/3.0.8-g448a95f/kernel//kexec.ko': File exists23:31
uvosthats fine23:31
Wizzupkexec failed: Operation not permitted23:31
uvosthats huh23:31
uvosyeah23:31
Wizzupisn't that when it should kexec?23:31
uvosyeah23:31
uvoswonder why it then dereferenes a nullptr23:31
Wizzupprobably something with system or data being mangled from its pov23:31
uvosok well one problem is23:34
uvosthat the image lacks omap4-xyboard-mz617.dtb23:34
uvos:P23:34
Wizzupheh.23:38
Wizzupthx for trying this, I think we can maybe get this fixed pretty soon23:38
uvosWizzup: yeah so the current devel pacakas the dtb23:40
uvosbut the images all lack it23:40
uvosi presume thats because the stable kernel also lacks23:40
Wizzuphm, I think it's because I haven't built images in 2-3 weeks23:41
Wizzupbut yes, at the time of building that image it probably lacked it23:41
Wizzup(I have to restart the image builder vm)23:41
Wizzupbrb23:41

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