libera/#maemo-leste/ Monday, 2024-01-15

Wizzuparno11: on the n900 pw question... it's difficult/complicated. what you (imo) really need is the ability to use a serial device with the n900, and (probably) also some external power supply00:08
Wizzuparno11: something like this: http://n900.elektranox.org/serial-adapter-gallery.html00:09
Wizzuparno11:  then you can boot just the kernel to say init=/bin/sh and probe modules one by one00:09
Wizzupand if you use a lab power supply you can just see the power usage on the display00:09
Wizzupbasically what I wrote here: https://github.com/maemo-leste/bugtracker/issues/545#issuecomment-99749391500:10
Wizzupsomething like that is what I ran: https://github.com/maemo-leste/bugtracker/issues/545#issuecomment-99021482300:11
Wizzupthe problem is that for these tests, you really probably don't even want the display on, or the keyboard enabled, initially00:11
Wizzuparno11: perhaps more feasible is just trying to identify blockers from a running maemo leste system, but this is also not at all easy unfortunately, we do have a way to print the (sub)system that is blocking idle, and then we can maybe guess the driver00:12
Wizzuptsc2005 blocks idle for one, see https://lists.dyne.org/lurker/message/20211127.145147.a3d42f2e.en.html and https://github.com/maemo-leste/bugtracker/issues/32100:14
gnarfacedunno if it's important or not, but anecdotally, in relation to the specs on the 2 main pinephone models, it should be mentioned for completeness there's also a 3GB version of the regular (allwinner) pinephones' motherboards in the wild10:32
gnarfacei just remembered that i'd forgotten to mention it when it came up before10:32
Wizzupgnarface: I think they sell that, right?10:55
Wizzupoh, of the regular pinephone10:56
* Wizzup waking up10:56
gnarfaceyes, they sell them too, and they sell the boards as a replacement part12:18
gnarfaceso you can theoretically upgrade a 2GB one to a 3GB one by replacing the mainboard12:19
Wizzuptmlind: if you recall, do you know why in particular having the modem on spi is problematic?13:53
Wizzupuvos and I were looking yesterday and he said the main problem was some big userspace blob on android that is required for it to work at all13:54
Wizzupor he said that was what he recalls anyway13:54
uvosThats just why looking at the android implementation is only semi-usefull14:05
uvosthe qmi over usb mapphones use the same blob14:05
uvosits not related what exactly is bus senstive in the mainline kernel14:06
uvosi have no idea about that14:06
tmlindi think there's a separate qmi driver for spi in the v3.0.8 kernel sources, no idea how much work making that work with the usb qmi in the mainline kernel could be14:06
tmlindif the spi driver just implements a network interface maybe it would be simple14:06
tmlindhmm no i guess the transport is usb underneath qmi..14:06
uvosthe kernel side is super simple on android14:06
Wizzupwe found this: https://github.com/STS-Dev-Team/android_kernel_motorola_omap4-common/tree/cm-11.0/drivers/net/spi14:06
uvostmlind: could you point us to where usb qmi is implemented in mainline?14:07
uvosie what driver this is14:07
tmlindi think the kernel parts are drivers/usb/class/cdc-wdm.c, not sure though14:10
Wizzupso this file is a network device over spi for the mdm6600 according to the comment in the file: https://github.com/STS-Dev-Team/android_kernel_motorola_omap4-common/blob/cm-11.0/drivers/net/spi/qmi_net.c14:11
tmlindyeah but i think that's not how the mainline kernel does qmi, it's mostly the libqmi doing i believe14:13
tmlindon the kernel side it seems to be cdc_wdm and qmi_wwan modules14:16
tmlindso some kind of spi ethernet device would need to be implemented i think similar to usb ethernet similar to qmi_wwan14:18
Wizzupthat doesn't sound too easy but conceptually also perhaps not too hard14:24
Wizzupuvos: so for mz617,15:25
Wizzupoops15:25
Wizzupso for mz617, which partitions can we safely nuke?15:25
Wizzupand can we re-partition somehow? to merge partitions?15:25
uvosWizzup: we can not modify the partition table in any way its singed and the bootloader relies on the exact table to function anyhow (since it checks partitions for integrety)16:26
uvosim not exactly sure for mz617, it depends on if you want to sacrifice android or not16:27
uvosyou can use cache and emtstorage if you need to keep android16:27
uvosand preinstall16:28
uvosif you dont care about android you can also eat system and data16:28
uvossystem needs to stay ext3, the bootloader checks this16:28
uvosotherwise it dosent care about these partitions16:28
uvos(its not only ext3 but also the exact fs label and uuid)16:29
uvosdata and emtstorage are probubly the only ones of usefull size16:31
uvosfor a rootfs that is16:31
uvoswe could use a btrfs spaned volume to span all the partitions together16:32
uvosfor rootfs maybe16:32
uvosand use system as ext3 for boot16:32
uvossince the 3.0.8 kernel wont be able to mount a btrfs volume to kexec a kernel there16:33
Wizzupuvos: heh yeah @ btrfs16:47
Wizzupthat's a good idea16:47
uvosthere is also cdrom16:51
uvosits small16:51
uvosbut thats where i have kexecboot16:51
uvosiirc16:51
uvoson mz61716:52
Wizzupand I guess we need to be able to actually format these partitions somehow16:58
Wizzuplike, we can't from android, and not from kexecboot16:58
Wizzupalso, I think if btrfs uses more than one device, it needs an initramfs unfortunately16:58
Wizzup(as root)16:58
Wizzuphm: https://unix.stackexchange.com/questions/435250/is-it-possible-to-boot-to-a-raid1-btrfs-root-file-with-no-initramfs16:59
Wizzupwell this is fine really16:59
uvoswe dont want to use raid17:14
uvoswe want to use span17:14
uvosraid would be terrible17:14
Wizzupraid0 is span17:14
uvosno17:15
uvosraid0 is striped17:15
Wizzupoh, right17:15
Wizzupok, you're right17:15
Wizzupbut the same principle applies17:15
uvoson a single device this would mean allways doing random reads/writes17:15
Wizzupit needs to find all the devices17:15
WizzupI don't know if what you describe exists though17:16
uvosyes it dose17:16
uvosbtrfs has a spaned mode17:16
Wizzupoh yes17:16
Wizzupok, -d single17:16
Wizzupmaybe also with -m single17:17
uvosyes both17:17
Wizzupso how do we do this in a method that isn't completely a pita17:17
uvoswe have an installer17:17
uvoswe flash it to system with the contense of boot17:18
Wizzupcan we have the user kexec to a usb stick (or microsd on usb stick) which then runs a script that sets this up?17:18
uvosthat boots, sets up the partitions17:18
Wizzupah17:18
uvoswe can just use fastboot17:18
Wizzupwait so what is actually on /boot ?17:18
Wizzupor 'boot' rather17:18
uvosthe android kernel17:18
uvosthat bit needs to stay17:18
uvosofc17:18
uvossince kexecboot uses it17:18
uvosbesides its signed you cant change it anyhow17:18
Wizzupoh, sorry, you said we flash it to system17:18
uvosyes17:18
uvoswe flash leste boot + small rootfs to system17:19
uvosthe small rootfs sets up everything else17:19
Wizzupok, so leste boot is kernel, dtb, and some busybox with btrfs-progs17:19
uvosand then prompts the user for wifi to download the real rootfs image to flash to the spaned volume17:19
uvosjup17:19
Wizzupargh, that would require making some ui for wifi17:20
uvosnot really17:20
Wizzupcan't we have the image on usb or so?17:20
uvoscould just be a cli program17:20
Wizzupoh, they would use otg with keyboard?17:20
uvossure but that requires everyone to have an otg cable17:20
uvosid rather it just pull it via wifi really17:20
uvosWizzup: we have fbkeyboard17:20
Wizzupwhat I meant to ask is how do you type in your wifi credentials without a keyboard17:20
Wizzupok17:20
uvosfbkeyboard works great17:21
Wizzupwifi to mean feels less reliable but if that works, then great17:21
Wizzupto me*17:21
uvosseams the simplest for the user17:21
uvosto me17:21
uvosits also how destop installers work17:21
uvosafter all17:21
Wizzupwhat if we set up usbnet and ssh and just have them rsync17:21
uvossure17:21
uvosbut thats more involved for the user too17:21
uvossince he has to use the cli on his desktop17:22
uvosthe wifi method could be fully automated after the fastboot call17:22
uvosbesides asking the user for wifi pw via fbkeyboard17:22
uvoswait no17:23
uvosall this is unessecary17:23
uvosyou can add to a btrfs span while its mounted17:23
uvosso we can simply flash a leste rootfs to data or emtstorage (need to try if fastboot allows either of those with an unsinged image, but probubly)17:24
uvosand then when leste boots the first time it adds the spans17:24
uvosether data or emstorage would be big enough for this maneouver17:25
Wizzupleste rootfs needs over a gigabyte17:25
Wizzupunless we also have btrfs compress, then it might be smaller17:25
uvosemstorage is 817:25
uvosand data is 4 iirc17:25
uvosso no problemo17:25
Wizzupoh, then we can just dd a leste image indeed17:25
uvosyou cant dd17:26
Wizzupwell fastboot17:26
uvosbut you can ask fastboot nicely17:26
uvosim not sure it will allow it17:26
Wizzupwould be worth checking17:26
Wizzupbtw, I have a mz617 here that is the 16G version17:26
uvosyeah mine is 16g too17:26
WizzupI didn't try kexecboot yet (since the utags file has 23 in it, not 16)17:26
uvosi used custom utags for it17:27
uvosit boots from cdrom, as i say17:27
Wizzupok so we could try to set up a loopback and format it as btrfs, rsync an image (minus boot) and try to use fastboot17:27
Wizzupok, well, if we can have a utags file for 16G that would be good for users (me :D )17:27
uvosneeds to be exact size17:27
uvosim not sure if the partion table is different17:28
uvosbesides different sizes17:28
uvosi think not17:28
uvosso same utags should be fine17:28
Wizzupok17:31
Wizzupwhat do you think about btrfs compression?17:31
WizzupI think it might make sense given the space contraints17:31
Wizzupzstd should be quite good for this17:33
uvosidk omap4 is pretty slow too17:36
uvoson the 32gb variants it seams excessive for sure17:37
bencohif that thing has a microsd slot I wouldn't bother with compression17:38
uvosthey dont17:38
bencohoh17:38
uvosits 16gb with 12 or so usable17:39
Wizzupzstd is quite fast though17:39
uvosquite tight17:39
uvosor 32gb with 25 or so usable17:39
uvospretty ok17:39
Wizzupwell, let's just get it working and then we can see :)17:40
arno11Wizzup: for pm stuff: thank you for helping me to understand :)18:48
arno11freemangordon: i maybe found something interesting about slow shutdown18:50
arno11event 4 - gpio_keys: client bug: event processing lagging behind 12ms, your system is too slow18:52
arno11twl4030 keypad client bug: event processing lagging behind 12ms, your system is too slow18:52
arno11it happens on other distros and seems related to CONFIG_USB_AUTOSUSPEND_DELAY=2 in kernel config18:53
arno11the delay is too low18:54
Wizzuparno11: yeah so it's not trivial unfortunately, and most of it requires kernel work/dev18:58
Wizzupfinding what blocks is just the first step, the second is then to actually fix the drivers18:59
arno11yup, makes sense19:05
freemangordonarno11: what it is?19:23
arno11i don't know exactly how it works atm, but increasing the delay could help apparently19:30
arno11bbl19:35
Wizzuparno11: when you get back, can you share some links on this finding?19:39
uvosarno11: thats harmless really19:54
uvosthis is just libinput complaining that it cant keep up with evdev events which is fine and expected on a heavly loaded n900 (like during shutdown)19:54
uvosyou can make this happen at any time on d4 to by loading its io alot and then madly swipeing at the ts19:55
uvosi also suspect this sort of thing will be compleatly unavoidable when/if we get off mode working on n90019:56
uvosconsidering how long the n900 takes to wake up from ret and off19:56
sicelothis happens even on my i5-4300M + 16GB RAM20:02
Wizzupsicelo: your system is too slow20:11
siceloyeah, libinput needs amd epyc :-p20:16
Wizzuphey, that's what they tested it on ;)20:22
Wizzupuvos: did you find the time to look at the derive tree from atrix2?20:22
Wizzups/derive/device/20:22
arno11Wizzup: https://bugzilla.redhat.com/show_bug.cgi?id=189128620:29
arno11https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/470920:29
arno11https://bbs.archlinux.org/viewtopic.php?id=26269020:31
arno11https://askubuntu.com/questions/1292691/why-am-i-getting-event-processing-lagging-behind-msg-in-ubuntu-20-1020:34
arno11apologies guys, didn't see last msgs :P20:37
humanbetaHow to take screenshot with Pinephone?20:59
humanbetaI tested Qshot for screenshot, but I don't know how to save..it has Save As-button and I can write filename, but what then?21:03
humanbetaThe Meamo 5 keyboard shortcut (volume down+power button) for screenshot doesn't work.21:09
humanbetaalso ctrl+shift+p doesn't work.21:22
uvosWizzup: i lost the script for the signal map21:22
uvos_again_ since sre also lost  his script21:23
uvosbut i just rewrote it21:23
uvoshttps://github.com/IMbackK/unsignalmap21:25
uvosnow that wont happen again21:25
Wizzupheh21:26
Wizzupuvos: https://github.com/tmlind/dtb-signalmap not sure if helpful, you probably had this already and referred just to the python part21:26
uvosheh21:27
uvosno thats the same thing21:27
uvosanyhow21:27
uvosshould have guesed tmlid also had a version of this21:27
uvosWizzup: anyhow its here now https://uvos.xyz/maserati/stockinfo21:28
Wizzupit seems to have less entries than xt87521:31
uvos1 modem21:31
Wizzuppardon my ignorance but which are the modem ones21:33
Wizzupipc_* ?21:33
uvosvery likely this is omap4->omap2 comms21:34
uvosinter processor comunication baseband proc wake21:34
uvosand21:34
uvosinter processor comunication application proc wake21:34
uvosetc21:34
uvoswhats wierd21:34
uvosis the missing cpcap-*21:34
uvosalso lm3532_reset is the same21:35
uvoswhich is annoying21:35
uvossince that means 1 it exists and 2 the gpio is the same21:35
uvosbut its not working21:35
uvosmaybe its on another bus21:35
uvosno its not bus1devices = "lm3532";21:36
uvoshuh21:36
uvosno idea why its not working21:36
uvosregulator different maybe21:37
uvoshmm not it must be getting power otherwise the backlight would simply be off21:37
Wizzupmaybe this is silly but you're sure the python unsignalmap does the right thing?21:41
Wizzup(just in case that might explain the diff)21:41
Wizzupalso, I think this confirms that the modem is not on usb, eh21:41
uvosit decodes the bionic signalmap the same as the file21:42
uvosalso the signalmap for edison is simply mutch shorter (raw bytes)21:42
uvosalso the gpios of edison are all the same as bionic (when listed)21:43
uvosso21:43
uvosim pretty sure21:43
uvosat least the accelrometer not working is no suprise21:49
uvosit uses lis3dh like d4 not kxtf9 like bionic21:49
uvosbut it also has the magnetometer like bionic, unlike d4/321:50
uvosthats sad kxtf9 is the better chip21:50
uvosWizzup: modem is spi21:52
uvosModem@0 type = <0x2400>; is the same as xt910 but unlike xt875/xt894 so 0x2400 is probubly the spi variant21:53
Wizzupyeah :(21:54
uvosyeah usb mbm6600 is 0x1e0001 across the board21:54
uvosso besides the spi modem21:57
uvosthe only unsolved mystery is why whats wrong with lm353221:57
uvosprobubly the same thing thats wrong with lm3532 on the d3 so would be good to find out21:58
uvosotherwise its just copy bionic dts, replace the accel node with the one from d4 and add the shutter button to the omap matrix and were done here21:59
Wizzupoh, right, the d3 also had backlight problems22:00
uvossame exact thing22:00
Wizzupyeah22:00
uvosdts entries and gpios are the same as on d422:00
uvosbut writeing there dosent do anything22:00
Wizzupwrt modem on spi, this also means currently we don't get an audio card, can we get it without modem?22:01
uvossure we can22:01
uvosyou just have to eject it from the dts for me/mb86522:02
Wizzupright22:02
uvosme865 seams exatcly the same btw22:02
uvossame dts same signal map to the byte22:02
Wizzupyeah was just about to ask :)22:04
uvosme865 is just the retail non-att branded version22:05
uvosits not a huge suprise its the same device22:05
uvospresumably only the modem firmware differs22:05
uvosif that22:05
Wizzupmhm22:06

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