libera/#maemo-leste/ Sunday, 2022-12-04

Wizzuplol00:02
Wizzupyup dist-upgrade successful :P01:24
Wizzupfreemangordon: my droid 4 with chimaera mostly just works, but maemo-summoner /usr/bin/osso-addressbook.launch fails it seems02:05
WizzupI'll figure it out tomorrow or so02:05
tmlinduvos: didn't we already patch kexecboot to use KEY_END?07:23
tmlindfyi, i recreated my earlier hack to allow dtc fdtdump command to decode motorola little-endian dtb files:07:24
tmlindhttp://muru.com/linux/d4/0001-Quick-hack-to-allow-fdtdump-to-work-for-little-endia.patch07:24
tmlinddtc -I dtb -O dts will fail with errors, but fdtdump produces somewhat readable output07:24
tmlindit's against dtc at https://github.com/dgibson/dtc07:25
tmlindoh dtc -f -I dtb -O dts dtbname works too07:54
tmlindand with dtc the decoded addresses have wrong endianess compared to dtcdump, oh well dtcdump should do the trick anyways07:57
tmlindoh and on the tablets, the vsimcard regulator is for emmc, not micro-sd08:14
tmlindno, i'm confused.. dts is ok, emmc always uses vsdio, micro-sd is supposed to use vsimcard on tablets instead of vwlan208:53
uvostmlind: your right, thats the same as mz6xx09:33
uvoswierd ok so the power key in kexecboot is another problem09:33
uvostmlind: 2022-11-29 is built from the right kexecboot branch/tag right?09:34
uvosandroid getevent for sure reports it as end09:34
uvostmlind: btw any idea what your supposed to do on xt910 if the device hangs09:38
uvosboth volume buttons are on the omap keymatix09:38
uvosso no power+volume reset claw09:38
tmlindhmm i think power+vol down works for me09:39
uvosyour right it works09:39
uvosmuss have connected the button to both somehow09:39
tmlindi guess i need to check the kexecboot binaries again on mz617 for the power key, maybe i messed up something while redoing the branch09:39
uvostmlind/ Wizzup: so whats the offending modem module called?09:46
uvosid like to rescue the n90009:46
uvosby blacklisting it09:46
Wizzupuvos__: nokia-modem or nokia_modem might be enough,11:35
Wizzupuvos__: or just mv /etc/init.d/cellulard /etc/init.d/cellulard_11:35
Wizzupso that nothing onlines the modem (iiuc)11:35
Wizzupuvos__: I don't remember the other names, but there are others, it might be in the trace11:35
Wizzuphttps://wizzup.org/n900-6.1-panic.txt11:35
Wizzupfreemangordon: for the qt5 menu indicator, how would we/qt5 know whether the application wants to use maemo style menus, or regular qt menus12:01
Wizzupfreemangordon: for example in 'dorian' I simply hide the menu, and then pressing the top bar does the right thing12:01
Wizzupbut non-native maemo apps do not hide their menu12:01
Wizzupso how do we know the application wants 'maemo' style basically is the question12:02
Wizzupshould I make that explicit?12:02
Wizzupcould be:12:03
Wizzup#if defined(Q_WS_MAEMO_5) setProperty("X-Maemo-Style", 1);12:03
Wizzup#endif12:03
Wizzup(or even without the devices for an application)12:03
bencohI'd leave a way to change that without rebuilding any binary12:04
bencohwith a default (global) config, and a per-app/context config to override it (envvar, whatever)12:05
Wizzupsure, with additional env12:05
Wizzupbecause our qt stuff is now entirely a plugin, there are no compile directives to influence qt12:05
Wizzupbut yeah, I was also thinking of env fallback12:06
Wizzupthis was I an just always render the _HILDON_WM_WINDOW_MENU_INDICATOR when an application is 'maemo mode' en has a qmenu12:06
Wizzups/en has/and has/12:06
Wizzupthis way* :)12:06
Wizzupuvos__: opinions ^^?12:06
Wizzupbtw, maybe setProperty is not global enough12:07
Wizzupunless setProperty can be done on the QApplication object12:07
Wizzupyeah, that's a qobject thing, so that should be possible12:07
uvosWizzup: sounds fine really12:10
Wizzupok12:10
Wizzuphow about the env var12:11
WizzupQT_MAEMO_MODE=maemo ?12:11
uvosyes with additional env var override12:11
uvosoh the name12:11
Wizzupyeah12:11
uvosabove sounds sane12:11
uvosid also really really wish the menu would support qmenu hierachies by just opening one menu window after the other ie for file->action12:12
uvosinstead of flattening the actions12:12
uvosbut thats out of scope atm12:12
WizzupI was literally thinking the same right now12:13
WizzupQMaemo5ApplicationMenu::recursiveAddActions12:14
Wizzupthis flattens all the actions12:14
Wizzupwe could have it act on subsections that are pressed12:14
uvosthat would go a long way towards makeing regular desktop applications useable12:15
WizzupDid you also said you used a different scaling for many qt appls?12:16
Wizzupapps*12:16
Wizzupdid you also say*12:16
Wizzupbtw https://github.com/maemo-leste/bugtracker/issues/67712:16
uvosWizzup: yes for desktop applications i just set the QT_SCALE_FACTOR in the .desktop file12:17
uvosto make them most useable12:17
Wizzupok12:17
uvosusually 1.2 or so12:17
WizzupI wonder if I could also detect if an application is linked against maemo components, then we could also auto enable the property12:17
Wizzup$ ldd $(which dorian) | grep -i maemo libQt5Maemo5.so.5 => /usr/lib/x86_64-linux-gnu/libQt5Maemo5.so.5 (0x00007fd414597000)12:17
uvoswell i have this https://github.com/maemo-leste/hildon-desktop/pull/1012:18
uvosthe heuristic here being if the desktop file is in hildon subdir or not12:18
uvosits not that ideal tho since it affects only applications launched via h-d, not xterm or so12:18
Wizzupwell what I mean is here the qt platform plugin could know automatically if it is maemo without the app calling setProperty("X-Maemo-Style", "maemo")12:19
uvosalso idk if autodetecting the scale factor in particular is sane12:19
Wizzupyeah, not sure if it is12:20
uvosits not12:20
Wizzupbtw that PR has 'X-Maemo-Hilon' everywhere12:20
Wizzupnot 'X-Maemo-Hildon'12:20
uvosWizzup: this pr is abandoned12:21
uvossince freemangordon dident like it at all12:21
uvosso it wont be merged ever anyhow12:21
Wizzupok12:21
Wizzupmaybe close it then as such12:21
uvoswell i like mergeing it privately, but yeah i can keep it in a branch instead12:21
uvosanyhow so with some applications i use fusion and a scale factor, with others i use maemo style (which is bigger allready) and no scale factor and with some i use maemo style and a scale factor (mostly qml)12:22
uvosso scale heurisic istent going to work imo12:22
Wizzupright12:25
Wizzupyour qml apps automatically get the maemo style?12:25
uvosno ofc not (besides dialogs and sutch) thats not how qml works12:26
uvosbut dialogs and sutch are a thing :)12:26
Wizzupright12:27
Wizzuphttps://github.com/maemo-leste/bugtracker/issues/53 added some 'tasks' here12:37
Wizzupplease feel free to suggust more12:37
Wizzup(there's vkb I guess)12:37
tmlinduvos: power button fails with the most recent image also on mz617, will try to figure out what i messed up12:37
uvostmlind: ok, probubly just built the wrong commit in buildroot ;)12:38
uvosWizzup: https://github.com/maemo-leste/droid4-linux/blob/09549b1a0b1944a648ab283d51fb7dab604d635b/debian/rules#L412:38
uvoswtf is this and how is it building d3 and n900 dts12:38
Wizzupuvos: for sure there are others, but I am not sure this is used12:40
Wizzup./scripts/package/mkdebian12:41
uvoslets just remove this then, its confusing12:41
Wizzupyeah, I need a bit of time to remember this12:41
WizzupI'll brb, but can look at this when back12:42
Wizzupafaik we just build all dtbs really12:42
Wizzupand maemo-kernel-config  copies things12:42
Wizzuphttps://github.com/maemo-leste/maemo-kernel-config/ just for n90012:42
uvostmlind: btw i disagree to calling the phone common dts "droid"12:47
uvos1. the xyboard was sold as the droid xyboard when sold via verizon contract12:47
uvos2. the name "droid" was owned by lucas arts and licenced to verizon only, and they used this name as a prefix or as the name of all thair devices during this time period, not just motorola devices12:48
uvos3. because the the droid name was licenced to verizon not motorola all the phones where sold under other names outside the us (ie droid 1/2/3/4 -> milestone 1/2/3/4, droid razr -> razr etc)12:49
Wizzupuvos: dpkg -L linux-image-omap has all the DTBs it seems13:07
Wizzupso as long as you add it to kernel makefile it should be fine13:07
tmlinduvos: well do you have some better name in mind? i used motorola-mapphone-phone.dtsi, but has phone twice..13:08
tmlindupdated droid4-kexecboot images pushed out to https://github.com/tmlind/droid4-kexecboot/tree/master/2022-12-0413:08
tmlindi updated kexecboot in buildroot, not sure why the patch did not get picked up when i built few days ago13:09
uvosi dont see why we should shy away from phone twice, motorola used "mapphone" for tablets, hardly our fault :P13:09
tmlindi also though about motorola-mapphone-handset.dtsi13:09
uvosthat would be good too13:09
tmlindok let's use that then13:10
tmlindi noticed aliases are still there for xt910-xt912 shared file, will remove the aliases13:10
tmlindany other issues known?13:11
uvosWizzup: i dont follow the package hardly contains "all" dtbs13:11
uvostmlind: not yet13:11
tmlindok13:11
tmlindwill push out v2 branch shortly then13:12
uvostmlind: maybe you could add d3 dts13:12
uvosand rename motorola-mapphone-xt875-xt894.dtsi motorola-mapphone-xt8xx.dtsi13:14
uvossince it now covers xt86x too13:14
uvosand not mz6xx or xt9xx13:14
tmlindok13:15
uvostmlind: sec ill push d3 dts13:15
tmlindok13:16
tmlindhmm need to check tmp105 is not there on tablets13:18
uvosor like this here: https://uvos.xyz/maserati/omap4-droid3-xt86x.dts13:18
Wizzupuvos: did you fix up the d3 keymap? I don't remember if I fully finished it13:19
uvosyes13:19
uvoskeymap is fine13:19
Wizzupgreat13:19
tmlinduvos: can you do a proper d3 dts patch for mainline? leave out ramoops lcd etc stuff that does not related to mainline13:20
uvostmlind: sure13:20
uvosbut rn it depends on your wip stuff13:20
uvos(dtsi rearangeing)13:20
tmlindthen i can rebase patches on v6.2-rc1 and send them all to the lists13:21
tmlindah ok yeah few mins13:21
Wizzupjust for the record, the xt86x has stability issues, but it's not clear those are related to the dts13:21
uvosi dont think this should excude it from mainline, d4 as stability issues too :P13:22
Wizzupright, just wanted it to be clear/known :)13:22
uvosbesides im tired of rebaseing it whenever the other dts changes :P13:22
Wizzup:)13:23
tmlindwe're better off if we have minimal skeleton device dtsi files in the mainline, makes patching in devices easier13:23
tmlindand a lot of features already work on all of them13:23
tmlindhmm so tmp105 is there on tablets, need to check if it's on the same bus13:24
tmlindyeah i'll add tmp105 to the mapphone-common.dtsi13:25
uvosoh btw13:33
uvostmlind: xt91x was updated to android 4.1 with a slightly different kernel than d413:34
uvostmlind: its possible that on devices updated to 4.1 the kexec modules for the kernel shipped with android 4.0 wont work13:34
uvostmlind: but we can just flash the 4.0's kernel, but this might break android (no idea)13:35
uvoswe cant fully downgrade because some fuses where blown13:35
uvosat least if its the same as xt87513:36
uvosfor some reason xt894/mz6xx where never updated so they dont have this problem13:36
Wizzupthey probably decided the d4 was locked down enough as it is in the modem :P13:36
uvoswell its mostly a android version update13:37
uvoswith new features13:37
Wizzup(it was a joke :) )13:40
uvosim german, we don't do jokes.13:41
Wizzup;)13:41
tmlinduvos: ok13:43
tmlindpushed out new branch https://github.com/tmlind/linux/tree/mapphone-v6.1-take213:43
tmlindheading out here now, bbl13:47
Wizzupttyl :)13:47
uvosttyl13:48
uvosWizzup: ok so i pushed a new maemo-6.1 that supports xt91013:48
uvosbut i still dont get where the package decides what to include dtb wise13:49
Wizzupso all dtb'd are in the package13:49
Wizzupthe question I think is what end up in boot13:49
uvosthats mapphone-kexecboot-config13:49
uvospackage13:49
uvosthats not the problem13:49
Wizzupyes, exactly13:49
Wizzupso what is the problem?13:49
uvosbut the not _all_ dtbs are in the package13:49
Wizzupare you sure?13:49
uvosthers only d4, xt875, n900 and d313:50
Wizzup# dpkg -L linux-image-omap | grep dtb -c13:50
Wizzup14113:50
Wizzup# ls /usr/lib/linux-image-omap/*.dtb | wc -l13:50
Wizzup14113:50
uvosok but ls /boot/boot/13:50
uvoswho decides what ends up there13:50
Wizzupafaik that is mapphone-kexecboot-config13:51
uvoshttps://github.com/maemo-leste/mapphone-kexecboot-config/tree/master/debian13:52
uvosdont see it13:52
Wizzupok13:52
Wizzup5 mins13:52
Wizzupok, I think I recall now13:52
Wizzupsee scripts/package/builddeb13:53
Wizzupin maemo-6.113:53
Wizzup(droid4-linux)13:53
uvossure i greped that file for mapphone13:53
uvosdosent contain13:53
uvosoh because the dtb dont contain that string13:54
uvosduh13:54
uvosok13:54
uvosfound it13:54
Wizzupgreat13:54
Wizzupand yeah it's not perfect, but it works13:54
uvosthe debian/rules way seams way more obvious13:55
uvoshow is this better?13:55
Wizzupthis gets updated with the kernel releases13:55
WizzupI don't know anymore, it's been a few years since we switched13:55
WizzupI have root on my xt912 4.0.4 now btw13:55
uvosok as tmlind mentioned could you check the partion table?13:56
Wizzupok13:59
uvosWizzup: what section shal we put xt910?14:14
Wizzupwhat package specifically?14:15
uvosxt912-kexecboot-config14:15
uvosits14:15
uvosPackage: bionic-kexecboot-config14:15
uvosSection: bionic14:15
uvosetc14:15
Wizzupyou can make it Section: razr14:15
Wizzupor something like that14:16
uvosto follow this mold we need one section for xt910 and one for xt912 even14:16
Wizzupso14:16
Wizzupas far as I can concerned it can be section: mapphone14:16
uvossince they need different dtb14:16
Wizzupand we can just put all future stuff in there14:16
uvosok14:16
Wizzupthe only use for the sections is that it -can- make package dep resolving easier14:16
uvosso what shal i do rn14:16
uvoschange all of them to mapphone?14:16
Wizzupand I think if we simply have an explicit meta for each device we don't need it14:16
Wizzupeither that or make it razr :P14:16
Wizzupwe also have just 'droid3', not 'xt860', 'xt861', 'xt862'14:17
uvossure but all d3 have one dts14:17
Wizzup30s14:17
uvosxt91x are more like different phones in this way14:17
uvosand differ way more than d3 varaints14:17
uvosanyhow ill just make everything mapphone here14:17
uvosand check if the metapackage is sane14:17
Wizzupok so there is a reason not to go for Section: mapphone14:17
uvosyes?14:18
Wizzupwait, is that even true... hm14:18
WizzupI think you can just leave Section empty really14:18
uvosso one problem with makeing things mapphone14:18
uvosis  that current installs dont have it14:18
Wizzupwe don't want phones that just have a 'droid4' component to not get updates14:18
Wizzupyes exactly14:18
uvosin the deb string14:18
Wizzupbut if you just omit the section it should just land in the normal ones14:19
WizzupI don't think there's a reason we really need separate sections even14:19
uvosno is shal make everything d414:19
uvossince bionic is just an overlay of d414:19
Wizzupwhy not just omit Section?14:19
uvosand bionic has droid4 bionic in its sections14:19
uvosfor this package thats fine14:19
uvosbut for others its not14:20
WizzupI'd rather not have droid4 everywhere in chimaera14:20
Wizzupif you omit the section, it should just work14:20
uvosfor this package yes14:20
Wizzupthe main reason we would want section is to prevent users from say installing n900 kernel on d414:20
Wizzup(even though it's a shared kernel, but you get the idea)14:20
uvosbut we have packages where we have a mapphone variant14:20
uvoswith the same name14:20
uvosthat shal only be installed on mapphones14:20
Wizzupuvos: which packcages?14:20
uvosthe droid4 section is currently used for this14:20
uvosin the past at least ofono, not sure if we changed this14:21
Wizzupwe have a unified ofono14:21
Wizzup(now)14:21
uvosalso mesa, but i unified this one14:21
uvosso not sure14:21
uvosmaybe we dont anymore14:21
WizzupI think I'd just remove the section for now, and if we need it, we can go for a shared mapphone14:21
uvosok14:21
Wizzup(remove the section from debian/control)14:22
Wizzuplet's do experimental for now -just in case-14:22
uvoswell for this package its fine for sure14:22
uvosill remove parazyd and add myself as maintainer too ok?14:22
Wizzupsure14:22
Wizzupbtw https://twitter.com/maemoleste/status/1599204587998625793 :p14:23
bencoh:)14:28
uvosERROR: Permission to maemo-leste/mapphone-kexecboot-config.git denied to IMbackK.14:28
uvosWizzup: pls14:28
Wizzupdone14:28
Wizzuptmlind: uvos: https://wizzup.org/xt912-fdisk.txt https://wizzup.org/utags-xt912.bin14:34
Wizzuphttps://wizzup.org/xt912-p13.bin14:35
uvosWizzup: ok checks out14:36
uvosyou can use xt910 kexecboot/ utags14:36
Wizzupam I crazy or do they just contain zeroes14:36
uvosyes14:37
uvosthat exactly what we want to see14:37
Wizzupok14:37
uvosif p13 dident contain zeros this would mean the baseband software parttion would be used for something14:37
Wizzupcheck14:37
uvosso it wouild be bad if you just overwrote that with kexecboot14:37
Wizzup:)14:37
tmlindWizzup: ok yeah so first flash allow-mbmloader-flashing-mbm.bin14:45
uvoshttp://uvos.xyz/maserati/mbm14:48
uvosthey doubled the size of mbm sometime between edison and maserati14:49
uvosnever noticed before14:49
Wizzuptmlind: ok, let me find a xt912 fw with that file14:53
uvosjust linked the file14:53
Wizzupah, so spyder14:53
Wizzupty14:53
uvosxt912 = droid razr = sypder14:54
uvossimple :P14:54
Wizzupyep14:54
Wizzupuvos: ok, flashed that14:55
uvosjust follow regular kexecboot install procedure14:55
WizzupIt isn't clear to me if I need to re-do my dd commands after I flashed this14:55
Wizzupok14:56
uvoswith the xt910 files14:56
uvosno14:56
uvosunless you flash the xt910 bootloader14:56
uvoswell even then14:56
uvoswe just established the partition table is the same14:56
Wizzupdo I still need to flash utags - I guess with the xt910 files as you said?14:56
uvosyes14:56
Wizzupok14:56
Wizzupthat's the files I d/l'd for you yesterday?14:57
uvosyes14:57
Wizzupthe ones here: https://archive.org/~merlijn/uvos/ ?14:57
Wizzupok14:57
WizzupI'll use VRZ_XT912_6.7.2-180_DHD-16_M4-31_1FF.xml.zip14:57
uvossure14:57
uvosany will work you can flash any bootloader14:57
uvosthey never blew any fuses14:57
Wizzup:)14:57
WizzupI like the razr screen, will be cool to see maemo on it14:58
uvosoled14:58
Wizzupyeah14:58
uvosWizzup: ERROR: Permission to maemo-leste/mapphone-kexecboot-config.git denied to IMbackK.15:02
uvos?15:02
uvos(dident change)15:03
tmlindWizzup: here are the commands to try just in case, use today's droid4-kexecboot files:15:04
tmlindfastboot flash mbm allow-mbmloader-flashing-mbm.bin15:04
tmlindfastboot reboot bootloader15:04
tmlindfastboot flash utags utags-xt910-16-mmcblk1p8-boots-mmcblk1p13-kexecboot.bin15:04
tmlindfastboot flash cache droid4-kexecboot.img15:04
tmlindfastboot reboot15:04
tmlindsorry15:04
tmlindfastboot flash bpsw droid4-kexecboot.img, cache is only used on the tablets15:05
Wizzuptmlind: thanks, I had the droid 4 wiki page open, looks similar15:08
Wizzupuvos: did you accept the invitation?15:08
Wizzupuvos: I can't "add" people, only "invite" them15:08
uvosah right yes im not in the orga15:09
uvosso you can only invite15:09
WizzupI want to take another look at how we do this15:10
Wizzuptake myself out of the equation a bit if possible15:10
Wizzupkexecboot shows up15:13
WizzupI don't think it wants to boot stock android at this point15:14
uvosdident want to here either15:15
uvosthis state is dangourous15:15
uvossince you cant charge15:15
Wizzupright15:15
uvosand you cant shutdown eihter15:15
uvossince the power key dosent work15:15
Wizzupit does now I think15:16
uvosah right ok15:16
uvostmlind updated kexecboot15:16
uvosWizzup: if you want to get out of this state15:16
uvosfastboot erase utags15:16
uvosand fastboot reboot15:16
uvosto charge a bit in android15:16
Wizzupthe battery is full, it's all good15:16
WizzupI just turned it off15:16
buZzhmmm, if i switch to a fullscreen application, compositing is now always off?15:19
buZzctrl-shift-N makes it fast again, but kinda annoying, did this change?15:19
WizzupbuZz: that was always the case15:19
buZzoh, ok15:19
buZzguess i never noticed prior15:19
Wizzupunless you meant to say ON and not OFF15:20
buZzhmmm not sure15:20
buZzits a fullscreen chromium window15:21
buZzi dont remember experiencing such fullscreen windows to slow down from switching, but maybe i never noticed15:21
uvosthis is not true15:22
WizzupI guess we also ought to rework how the image building works at this point15:22
Wizzupit's kind of senseless that build so many images that are almost entirely identical15:22
Wizzupdroid3/droid4/bionic (and soon razr/mz609/mz617,....)15:23
buZzuvos: what isnt?15:23
tmlindWizzup: sounds like the stock boot.img initramfs offset is different on your firmware if stock android won't start15:23
uvostmlind: it dosent boot here eihter15:23
uvosbtw15:23
Wizzuptmlind: hm, ok, it sounds like uvos had the same on his xt910 - this is xt91215:23
uvosyes xt91015:23
uvoshildon dosent suspend compositing since it wants to display banners15:23
uvos@buZz15:23
uvosor the volume thingy15:24
buZzuvos: fullscreen windows dont show hildon15:24
tmlindyeah ok i'll i'll add the xt912 initramfs offset to kexecboot15:24
uvosbuZz: the notification banner15:24
Wizzuptmlind: need any info from me?15:24
uvosor the volume banner15:24
uvosthose things15:24
buZzuvos: fullscreen windows15:24
uvosbuZz: yes15:24
uvosbuZz: open fullscreen window15:24
uvospress vol up15:24
uvoswhach what happens15:24
buZzpressing volume -does- reenable compositing, nive15:24
buZzpressing volume -does- reenable compositing, nice tricks15:25
uvosexactly15:25
buZzbut would be nicer to use the fs program without having to do ctrlshiftN all the time :P (or volume buttons)15:26
buZzcan i force it alwayson for a program?15:26
Wizzupyes, this is an atom the program can set afaik15:26
uvosthere is a hildon hint15:26
WizzupI don't know if it fully overrides it15:26
uvosbut this is silly15:26
uvossince h-d can just do what every other wm dose15:26
uvosand suspend whenever there is only one window15:26
Wizzuplooks like my mz617 is android 4.1.215:27
buZzwell, chromium improves greatly in speed from having it on15:28
uvosworking on mz617 is painfull, no sdcard no allow-mbmloader...15:29
uvosno bpsw, flashing kexecboot to cache makes android buggy15:29
buZzeven 'windowed' you can notice the speed difference a lot15:29
uvosyes compoiting is extreamly hevy15:29
buZzno, -without- compositing it is slower15:30
uvosthats wierd15:30
buZztry it15:30
buZzwith it on, i can even use youtube, without its too slow15:31
uvosat least scrolling on bbc news15:31
uvossuspended is mutch faster15:31
buZztry in hildon15:31
uvosyes in hildon15:31
Wizzupuvos: well it sounds like tmlind had it working15:31
buZznot what i'm seeing, lol15:32
uvosWizzup: might be android 4.1 vs 4.0.415:32
uvoswe both have 4.0.415:32
uvostmlind: ^^ ?15:32
Wizzupuvos: I mean on mz61715:32
uvoswhat now15:32
uvosmy mz617 works fine15:32
uvosbooting android after kexecboot15:32
uvosbut you break androids chache15:32
uvosthat dosent stop it form booting15:32
uvosbut there are issue15:32
uvoss15:32
Wizzupyeah, so my remark about tmlind had it worked was about mz617, and your comment wrt kernel versions was about razr :)15:33
uvosright15:33
Wizzupkind of a shame that the mz617 doesn't have a microsd card yeah ;)15:33
Wizzupslot*15:33
uvosand the bootloader...15:33
uvosit has a microsdcard slot btw15:33
Wizzuphm15:34
uvosmotorola dident populate it on us variants15:34
WizzupI was looking at mine and it looks like there's space for it15:34
uvosfor some reason15:34
uvosbut its there15:34
uvosbehind a plastic cover15:34
uvos(the footprint, its not populated)15:34
Wizzupah, so if you cut the plastic open it is there? ok15:34
Wizzupok, so without a holder15:34
uvosyes15:34
Wizzupwell, that's not too hard to fix :p15:34
buZzhmhm yeah, after volumebar fades out, it switches comp back off, slow again, ONLY on fullscreen, not on windowed15:34
WizzupbuZz: so 'comp off' and 'slow again' doesn't make sense to me15:35
Wizzupyou mean 'comp on'15:35
buZzWizzup: no15:35
Wizzupunless I'm going nuts15:35
uvoshe is reporting some bug15:35
Wizzuphow can compositing being off make things slow?15:35
uvosi cant repo it15:35
Wizzupaha15:35
tmlinduvos: yeah cache can be flashed.. could not find other partition15:35
uvosomapddx could misbehave15:35
buZzcomp -off- on -fullscreen- chromium windows makes them slower15:35
uvoswith comp on h-d renders the frame15:36
uvosoff omapddx dose15:36
tmlindWizzup: care to flash cdma_spyder_9.8.2O-72_VZW-16_1ff.xml.zip. on your xt912 and i'll provide an experimental kexecboot image to try?15:36
uvosthere might be something wrong in omapddx15:36
buZzuvos: it does render, but a lot slower15:36
tmlindwe need to figure out how to extract the initramfs address dynamically..15:36
buZzmight be the 'reboot device, your gpu is in weird state'15:36
buZzi'll try15:36
Wizzuptmlind: I will need to find that image first, but then I'm happy to try. I also have two here, one with kernel 4.1.2 (or so), if that's what you'd like me to try?15:36
uvos*android 4.1.215:37
Wizzupuvos: yes ty15:38
Wizzuphttps://rootjunkysdl.com/?dir=Droid%20Razr%20Maxx/Jelly%20bean%20update%20from%208%20to%2016 looks like it's here (the file)15:38
tmlindok15:39
uvoshttps://github.com/maemo-leste/leste-config/pull/3315:40
Wizzupuvos: left a comment15:41
Wizzupuvos: wait, is your razr 4.0.4 or 4.1.2 ?15:42
uvos4.0.415:42
Wizzupok15:42
uvosmy 4.1.2 razr is also 40415:42
WizzupI don't understand that :)15:42
Wizzup404 as in http?15:42
uvosyes i dont have one15:42
uvosfixed @pr15:42
WizzupI thought you didn't do jokes15:43
Wizzup;)15:43
uvoswho says what is joke and what is not?15:43
Wizzupthe joke police?15:44
Wizzupuvos: btw the leste-config change was for Section: droid4, I assumed that was intended15:46
uvosyeah15:46
tmlindWizzup: here are the xt912 test images to try after you've updated the firmware to cdma_spyder_9.8.2O-72_VZW-16_1ff.xml.zip http://muru.com/linux/d4/test/15:47
uvosWizzup: btw images15:47
uvoswe should just disrobute boot and root seperatly15:47
uvoshmm nvm15:47
uvosthat dosent help because of leste-config15:47
uvoswhat is cdma_spyder_9.8.2O-72_VZW-16_1ff.xml.zip?15:48
uvosandroid version wise15:48
uvosi dont know if updateing to 4.1 and blowing the fuse is a good idea15:48
Wizzupuvos: I was planning to use my 4.1.x one15:48
Wizzupif that makes sense15:48
uvosthen it probubly wont work if its not a 4.1 image15:48
uvosat least thats how it works on bionic15:49
tmlindanybody have a good shell trick in mind to extract the initramfs address with busybox sh? multiple matches with grep -oban $'\x1f\x8b' boot.img..15:49
buZzalright, took 4 powercycles, but now chromium fullscreen is just as fast with compositing enabled as disabled15:51
Wizzuptmlind: I can try to help, if that's the grep command to start out with15:51
uvoshmm15:51
uvos@buZz15:51
buZzguess its the gpu bug freemangordon spoke about before15:52
uvosprobubly15:52
uvosvsync behavior is different in these modes15:52
uvosmust be some timeing bug with cm pannel15:52
buZz-some- boots he couldnt get yt playing fast, but 'normally' it works15:52
uvosor something like that15:52
uvosbuZz: did you hard reboot (via power off)15:53
uvosor reboot15:53
buZzyes , poweroff15:53
buZz'reboot' rarely ever helps15:53
uvosright15:53
buZzsounds familiar? :)15:53
tmlindWizzup: ok cool, some comments on it here, see also abootimg: https://github.com/tmlind/buildroot/blob/mapphone-kexecboot-2017.11/board/motorola/droid4/rootfs_overlay/sbin/preinit.sh15:54
uvosreboot not helping makes sense since not all regisers reset15:54
uvosbut no i have not seen the perf bug15:54
uvos(or noticed at least)15:54
buZzmaybe we can somehow overwrite 'all registers' with knowngood values?15:54
Wizzupuvos: btw I think the release tmlind mentioned is 4.1, judging from https://forum.xda-developers.com/t/index-motorola-droid-razr-2012.3023837/15:55
uvosno also resigers was the wrong word15:55
uvosi ment hw state in general15:55
uvosnot only accessable regisers15:55
buZzah hmhm15:55
uvosmaybe boot android and see if that helps15:55
uvosit might know how to get the hw in the right state better15:55
uvos(as a workaround only ofc)15:56
Wizzuptmlind: busybox might have 'xxd' it makes grepping any easier15:57
WizzupI'm assuming it's here somewhere (the first hit):15:58
Wizzup00004e40: 6f72 0000 756e 636f 6d70 7265 7373 696f  or..uncompressio15:58
Wizzup00004e50: 6e20 6572 726f 7200 1f8b 0800 0000 0000  n error.........15:58
Wizzup00004e60: 0203 9cfd 0f78 54c5 f53f 8edf bb7f 9225  .....xT..?.....%15:58
Wizzupyeah, ok15:59
uvosWizzup: sphone should build now16:01
uvos(for chimaera)16:01
uvosglib docs where simply wrong16:01
buZzw00t16:01
buZzuvos: could you have the sphone txt displays be selectable? so i could copypaste numbers from it to contacts16:01
buZzspecifically the sms inbox16:02
uvossure but needs some thought how to do exactly16:03
buZzmaybe just a longhold->copynumbertobuffer ?16:04
uvosdunno16:04
uvosneeds to work well on desktop and on leste16:04
uvosneeds some thought as i say16:04
buZzeither way its now 'write number on paper' and then switch to other16:04
buZzprogram to enter it16:04
buZzlol16:04
uvossure it needs some kind of method16:05
uvosmaybe you can copy from abook (for now)?16:05
buZznope16:05
buZzyou cant get details for contacts that dont exist, try it16:05
uvosok16:06
buZzadding a 'import this unknown contact' in abook would be cool too16:06
buZzooo, i guess i could just dump the db in xterm and copy there16:06
uvosor allways run sphone in verbose mode and copy it from its logs xD16:07
Wizzuptmlind: busybox xxd -p -c 10000000  boot.img this can make it one simple line of hex, and with normal grep you can then find the offset with --byte-offset16:07
Wizzupbut busybox grep doesn't have --byte-offset16:07
uvosWizzup: btw regarding not building almost identical images.16:12
uvosat least we are not behind here, even los with a huge amount of devcies in support do this16:13
Wizzupyeah, it's just that it's slow I guess, that's what bothers me16:13
Wizzupin the next two months my living place should stabilise and I'd have more room to improve it16:13
Wizzups/place/situation/16:13
Wizzupuvos: I can try to build a razr image?16:14
WizzupI guess we might need a meta update for it16:14
uvosyes16:14
uvostheres more stuff16:14
Wizzupapart from hildon-meta ?16:14
uvosno probubly not16:14
uvosbut i was going to try and flash d4 image16:14
uvosupdate to expiramental on d416:15
Wizzupyeah that's easier/better16:15
uvosand then change boot.conf by hand16:15
uvosand shove the sd into a razr16:15
Wizzupcp: cannot stat '/usr/lib/linux-image-omap/omap4-razr-xt910.dts': No such file or directory16:15
Wizzupmaybe I'm not n experimental16:15
buZzmaybe we just need a faster CI server? :P16:15
uvosbuZz is paying16:15
buZzhehe16:15
WizzupI don't think buzz has any idea how fast it already is16:16
buZzwhat do we have? maybe i can find some hw for free16:16
uvosthats why he is paying16:16
Wizzupit's just the image building process itself that involves a lot of network fetching and otherwise i/o stuff on loopback mounted cr*p16:16
buZzah right16:16
WizzupbuZz: https://www.solid-run.com/arm-servers-networking-platforms/honeycomb-workstation/16:16
buZzneeds nvme and optane i guess , hehe16:16
Wizzupwe have this16:16
buZzah cool16:16
Wizzupgood luck trying find anything better that's affordable :)16:16
Wizzupwell not the 1U one, but the workstation one :P16:17
uvosi gues we could farm out the image building to an amd64 machine16:17
WizzupI think that is exactly what happens16:17
Wizzupso it does qemu-user emulation16:17
Wizzupfor some of it16:17
uvosoh ok16:17
Wizzupthere's many reasons it's slow, but the hw isn't the main reason, IIRC16:17
Wizzupin any case...16:17
buZzyeah that would be my idea too, x86 old servers are cheaper than arm ones16:18
Wizzupuvos: so there's some weird mismatch for me, is the razr dts included in the experimental kernel?16:19
uvoshopefully, cant check rn, makeing food16:19
Wizzupcp: cannot stat '/usr/lib/linux-image-omap/omap4-razr-xt910.dts': No such file or directory16:19
Wizzupshouldn't that be DTB?16:19
uvosmight be my typo yeah16:20
Wizzupand also xt91216:20
Wizzupnot xt91016:20
uvosi added both16:20
Wizzupwell the xt910 isn't in the package I have :)16:20
uvosok probubly dtb dts typo somewhere16:20
uvosbrb16:20
Wizzupyes, typo, but also xt910 is not in the package16:22
Wizzup# dpkg -L linux-image-omap | grep xt916:22
Wizzup/usr/lib/linux-image-omap/omap4-razr-xt912.dtb16:22
* Wizzup also taking a break16:23
Wizzuptmlind: I didn't quite figure out the grep thing, sry16:23
tmlindyeah np16:24
uvosWizzup: found 2 issues and rebuilding kenrel16:59
uvoshttps://github.com/maemo-leste/droid4-linux/commit/3db510adca228d322f9ccc6b5994d15ea1a4bc9d16:59
uvoshttps://github.com/maemo-leste/droid4-linux/commit/316ea636c6b8a75f40a46da7539b55209302354016:59
Wizzupuvos: are you sure that the xt910 dts is included17:05
Wizzupah17:05
Wizzupok17:05
WizzupI clicked the same commit twie17:05
Wizzuptwice17:05
tmlindheh hd boot.img | head -n1 | cut -d' ' -f12,13,14,15 | sed -e 's/ //g;' | tac -rs ..17:05
tmlindgets the kernel size, then presumably the initramfs is 5 * 1024 after that17:06
tmlindthis might work:17:27
tmlindkernel_size_hex="0x$(hd ${boot_img} | head -n1 | cut -d' ' -f12,13,14,15 | sed -e 's/ //g;' | tac -rs .. | tail -n1)"17:28
tmlindkernel_pages=$((${kernel_size_hex}/1024))17:28
tmlindinitramfs_offset=$(((${kernel_pages}*1024) + (1024 * 3)))17:28
bencohwhere did you get the 1024*3 from?18:01
tmlindwell there's a header.. the pages need to be rounded up so the above is buggy18:30
tmlindstill having issues though18:30
tmlindhere's my current buggy version:18:32
tmlindboot_img="${1}"18:32
tmlindks="$(hd ${boot_img} | head -n1 | cut -d' ' -f12,13,14,15 | sed -e 's/ //g;')"18:32
tmlindkernel_size_hex="0x${ks:6:2}${ks:4:2}${ks:2:2}${ks:0:2}"18:32
tmlinddd if=${boot_img} skip=${initramfs_offset} bs=1 count=4 | hd18:32
tmlindkernel_pages=$((((${kernel_size_hex} + 1023) & ~1023) / 1024))18:32
tmlindinitramfs_offset=$(((${kernel_pages}*1024) + (1024 * 2)))18:32
tmlindfor some cases it needs (1024 * 3), for some cases (1024 * 2), not sure if there is sometimes an empty page between kernel and initramfs18:33
bencohisn't that because they want some "aligned" adress for initramfs?18:43
tmlindhmm yeah.. and i think it needs to be page aligned 0x800 + kernel_address18:45
tmlindhehe this one seems to work so far for me:19:33
tmlindboot_img="${1}"19:33
tmlindks="$(hd ${boot_img} | head -n1 | cut -d' ' -f12,13,14,15 | sed -e 's/ //g;')"19:33
tmlindkernel_size_hex="0x${ks:6:2}${ks:4:2}${ks:2:2}${ks:0:2}"19:34
tmlindecho "kernel size: $((${kernel_size_hex}))"19:34
tmlindalign=$((2048 - 1))19:34
tmlindinitramfs_offset=$(((0x800 + ${kernel_size_hex} + ${align}) & ~${align}))19:34
tmlindecho "initramfs at: ${initramfs_offset}"19:34
tmlinddd if=${boot_img} skip=${initramfs_offset} bs=1 count=4 | hd19:34
Wizzupsweet19:42
Wizzupdid you still need me to try this .xml.zip file, and shall I try it on my already 4.1.2 razr then?19:42
tmlindWizzup: sorry can't follow what you mean, which firmware do you have now?19:44
Wizzuptmlind: so I had a razr with some 4.0.4 on it, that I didn't clean-flash, and I put kexecboot on that one. I also have a 4.1.2 razr that I haven't put kexecboot on it yet, then you asked me to try it (kexecboot) with cdma_spyder_9.8.2O-72_VZW-16_1ff - which is 4.1.2 iiuc19:50
Wizzupuvos said maybe it's not a good idea to upgrade my 4.0.x to 4.1.x so I said I can flash it to the razr that is already on 4.1.219:51
WizzupI'm just checking if you still wanted me to flash cdma_spyder_9.8.2O-72_VZW-16_1ff to my 4.1.2 and see if kexecboot works with that19:51
tmlindWizzup: ok if you did not yet update, please just wait a bit then :)19:58
Wizzupok :)19:59
uvosWizzup: booting a new d4 image20:00
uvosit stalled for a really really long time generating ssh keys20:00
uvosprobubly rand starvation20:00
tmlindsomehow similar changes in preinit.sh are not working yet.. need to debug with a serial console at some point, have to give up for now20:19
uvosaand like an idiot i pushed the sdcard into xt910's simcard slot20:20
uvosand now having a hard time getting it out20:20
norayruh20:21
norayrsicelo, i got an n900 from someone who knows me and doesn't want to use it anymore.20:21
norayrbut no leste on it yet.20:22
norayri checked live wallpaper and apparently the board there doesn't have a message under fremantle as well.20:22
norayrso i need ho figure out where the message should come from, if there should be any.20:23
norayrmaybe some http connection became https?20:23
norayror maybe the site doesn't exist anymore.20:23
norayranyone remembers live wallpaper's modern theme behaviour ten years ago?20:24
uvosmy xt910 is in hildon!20:27
uvostmlind: theres something wrong with the pannel timeing20:27
uvostmlind: it rolles like a tv out of hsync20:27
uvossensors dont work yet20:28
uvosinteresting20:29
uvoson xt910 the buttons on the bottom are _not_ part of the main touch screen20:29
sicelonorayr: i never used live wallpaper20:31
uvosnone of the leds work20:31
uvosbesides notification20:31
tmlinduvos: cool that you got it going :)20:48
tmlindlater20:48
Wizzupuvos: sweet21:02
uvosWizzup: im doing inital wiki page21:03
uvosim noticing how out of date the d4 page is....21:03
uvoscan you include stuff on media wiki21:04
uvosie if i write a section on bluetooth21:04
uvoscan we just include that on the xt875,xt894 and xt91x pages?21:04
sicelousing templates is one of the best/easiest ways to achieve that21:05
uvoshttps://leste.maemo.org/Motorola_Razr_(2011)21:12
uvossicelo: ok21:12
uvosanyhow its not very happy: http://uvos.xyz/maserati/videos/razr.mkv21:17
uvosapt reinstall firmware-ti-connectivity21:20
uvosReinstallation of firmware-ti-connectivity is not possible, it cannot be downloaded.21:20
uvosuh what now21:20
uvos(same on my main d4)21:20
uvosapt install firmware-ti-connectivity21:21
uvosfirmware-ti-connectivity is already the newest version (20190114-2).21:21
siceloapt-cache policy might tell you where it expects to download it from, and you can hopefully then figure out why it can't21:22
sicelotalking about leds, uvos, i think you said the green charging led is hardcoded or something? it's hardcoded in hw, that is?21:59
* sicelo wishes it could blink21:59
uvoscpcap dose that in hw22:45
uvoshowever there is a register to turn it off22:45
uvosthe mainline kernel dosent have any way to set this22:46
siceloso i guess cpcap-charger would need to be unloaded, then manually toggle the register (via i2c?) ?22:50
buZzif you want some funny ringtone ; http://space.nurdspace.nl/~buzz/maemo/buzz-redoes-nokiatune.wav22:50
buZzor http://space.nurdspace.nl/~buzz/maemo/buzz-redoes-nokiatune2.wav22:50
buZz(its shitty-sung on purpose btw, lol)22:51
uvossicelo: no the mainline kernel resets  these resigers as part of its inialization code22:54
uvosyou have to patch the driver22:54
uvoscpcap is on spi22:55
buZzafaik the mainline kernel -does- have support to blink that led, at least in white ... i think maybe other colors too?23:20
buZzeven has a 'charging' triggermode23:21
buZznot sure if it would be flashing though, hmm23:21
sicelowhen connected to a charger, the led becomes green and cannot be controlled. you can write any value to /brightness, with no effect23:23
sicelobut yes, at other times, you can do what you want23:24
buZzright23:24
buZzmaybe the keyboard capslock light can be used for your purpose? :D23:25
sicelono. because that requires keyboard to be slid out first before it can be useful as a notification light23:29
siceloanyway, i just wanted to know if there was no way to retain control of that LED while charging23:30
sicelofwiw, N900's charger also does the same thing to the LED, except in its case, it's not hard to disable that function and retain control of LED23:31
uvosits not hard with cpcap either23:44
uvosjust 1 bit in a register23:45
uvosthe problem is more that there is not really a standart userspace interface you could use23:45
uvosalso personally i dont care since i like the hw control23:46
buZzsicelo: ooo, the backlight of the 4 hw touchbuttons? :D23:47
buZzhahaha23:47
buZzhahahahahahaha, as root ; echo "battery-charging-blink-full-solid" > /sys/class/leds/button-backlight/trigger23:49
buZznot sure if it works when screen is off23:50
buZzi guess not :/23:50
buZzhmm oh, someone is turning off the trigger :D23:52

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