libera/#maemo-leste/ Friday, 2023-11-24

Wizzupok00:07
Wizzuparno11: didn't we verify that even 'sw' wasn't enough, or?12:28
WizzupI think booting a new image with verbose logging/serial might help, otherwise we can add some potential hack12:29
arno11Wizzup: i've just doublechecked on Debian.org (and ubuntu official doc) and sw seems necessary to enable swap (but not to create the partition)12:33
arno11i tried to add sw on my config and it works (to activate swap)12:34
arno11but we need to try from a fresh install...12:34
Wizzupso we need to dd, mount the sd card, add sw, then do first boot12:39
Wizzuptechnically the one time mount could make a difference, but maybe we want to rule that out for now12:39
arno11To be 100% sure (and avoiding bias) i think we should make a new N900image (with sw in postinst script), then dd and doing first boot12:44
Wizzupthat will be the next step I think12:45
arno11i already tried this: completely remove swap (swapoff and fstab cleared) then reboot, then add a new fstab line without sw and...it works. So the problem is really during install/first boot12:48
arno11but if you want to try the first step, i have a sd card ready for this12:51
arno11i just need the process to add sw before the first boot12:52
Wizzupyes, that seems like a good step imo12:53
arno11ok :)12:54
arno11* dd new image12:57
arno11image ok and mounted on my desktop machine13:05
arno11postinstall script modified13:11
arno11i'll try to boot and see :)13:11
arno11booting13:14
arno11swap not activated13:22
arno11i'll check fstab13:22
arno11ah the script didn't work13:26
Wizzupwhat script?13:27
Wizzupoh13:27
WizzupI see13:27
Wizzupuh13:27
arno11postinst13:27
Wizzupthe postinstall won't do anything on boot13:27
Wizzupthat should run in the image13:27
Wizzupwait, so the swap line isn't in etc/fstab when you dd the image?13:27
arno11exactly13:28
Wizzupooooooooooooooooooooooo13:28
Wizzupcan you add the line before first boot, either with 'sw' or 'defaults (or default I don't remember) and sahre if it works then?13:28
arno11you mean in fstab ?13:29
Wizzupyes13:30
arno11ok (just to be sure), let's go13:30
Wizzupmake sure you use tabs of whatever fstab wants13:32
Wizzup(so that it can parse the line)13:32
arno11yep13:34
dsc_fstab is not a makefile :D13:34
dsc_dont think the tabs matter hehe13:34
arno11fstab edited, booting on the device13:41
Wizzupdsc_: it does very much actually :)13:44
dsc_hmm13:44
arno11it works :) and make a HUUUUGE difference on first boot13:47
arno11/dev/mmcblk1p3    swap   swap sw  0    013:49
Wizzupgreat, so somehow arm-sdk overwrites the etc/fstab or the postinst doesn't work well13:50
Wizzupin any case we can work around this easily13:50
freemangordondoes parazyd still support it?13:51
WizzupI support it13:51
freemangordonok13:51
Wizzuparno11: ty13:51
arno11no probs13:51
arno11ah and IMO we must modify swappiness a bit13:52
arno1130 is good and works well (with not too much things moved in swap and enough ram available)13:54
arno1160 by default is too much, specially if the sd card is a bit low13:55
freemangordonarno11: with swap on emmc, sdcard speed should not matter :)13:57
arno11pfff lol indeed13:57
freemangordonand yes, I am using 30 on fremantle for the last 10 years or so13:59
freemangordonso this should be the default, at least on n90013:59
arno11yes13:59
freemangordonttyl14:00
mdzcan anyone help me with 2G internet not working on N900?14:03
mdzalso i am having trouble with phone app not really working, I understand that all of this is still in alpha but on the wiki its listed as working14:05
arno11mdz: hi14:06
arno11you need to upgrade to devel first14:07
arno11and phone is working 'manually'14:07
arno11not out of the box14:07
mdzwdym by manually?14:08
arno11you need to edit pulse/daemon.conf and run manually cmtspeech to be able to use phone functionalities14:08
arno11anyway it is better to wait a bit to try it14:08
mdzalso any ideas on the cellular int not working?14:09
arno11you mean 2G data or?14:09
Wizzupmdz: is there 2g in your area? just checking14:09
mdzweird thing is that its trying to connect but fails to recive dhcp settings14:10
mdzyeah 2G data14:10
Wizzupso you are on the network, but gprs doesn't work14:10
Wizzupok14:10
arno11ah14:10
WizzupI *think* sicelo fixed this, and yes the fix should be in the -devel repos14:10
arno11you probably need to activate roaming14:10
arno11i mean data roaming14:11
mdzalso still have the Maemo 5 working and thats able to connect to 2.5G net14:11
arno11ok let me check something14:11
mdzso dunno whats up withmthat14:11
mdzbut thanks for the devel repos advice will upgrade to that14:12
WizzupI think the iproute2 change + libicd-network-ofono pull request from recent days fixes this14:13
arno11sometimes it is not enough14:13
Wizzupor maybe that was absense of gw14:13
arno11depending of the operator14:14
mdzinteresting14:14
arno11mdz: try /usr/share/ofono/scripts/set-roaming-allowed14:15
mdzand also, i am having trouble with the GPS, for some reason it doesnt respond so it may be a hardware problem, cuz it also doesnt work on Ma514:16
mdzanyone has any idea on how to fix or diagnose the GPS14:16
Wizzupit can take a long time to get a gps lock, what do you mean when it does not respond?14:18
mdzarno11: seems it worked14:20
arno11cool14:20
mdzarno11: recieved an IP but no net access14:20
arno11ah that's normal14:20
arno11you have to upgrade to devel or just wait 1 min14:20
arno11i'm looking for the right command14:21
arno11mdz: try sudo ip route add default dev gprs014:22
Wizzupright this is the default gw thing14:22
mdzWizzup: when i run the nokia-n900-gps (idk how its called exactly) the output is no response14:23
mdzarno1114:23
mdzwhys that normal?14:23
mdzu meam operators firewall blocking the traffic or?14:23
arno11nope just Leste related14:23
Wizzupmdz: what if you run maep or gpsrecorder?14:23
mdzmaep tryes to get a lock but nothing14:24
Wizzupmdz: it's not 'normal', it's a bug that's fixed in the devel repo, but we didn't push it yet to stable, so until we do, this is 'expected'14:24
mdzookay14:24
Wizzupmdz: gpsrecorded can show you if it seems any sattelites at all14:24
Wizzupgpsrecorder*14:27
Wizzupn900 is old hw, you kind of have to be outside or near a window to get a lock in say 30mins or so without agps14:27
mdzthanks Wizzup: agps?14:35
Wizzupsomething we don't support atm :)14:37
Wizzupbut once you get a lock, it should be a bit quicker to get it next time, if you're in the same area14:37
mdzokay, anyways will upgrade to devel and ill reachout after14:50
mdzthanks14:51
sicelogps should be 12 mins :-)14:56
arno11Wizzup: so what's the next step for swap stuff ? :P15:03
Wizzupprobably just updating the image-builder with a custom fstab file15:03
Wizzupand then remove the postinst stuff15:03
Wizzupor keep the postinst stuff anyway, for upgrades15:03
arno11ok15:05
arno11it will help new users a lot15:05
arno11(last img's are really unusable ootb)15:06
Wizzupso also replace defaults with sw ?15:10
arno11yes i think15:13
arno11/dev/mmcblk1p3    swap   swap sw  0    015:13
Wizzupso I think I see what is happening15:16
Wizzuparm-sdk will copy generic files to the n900 board, overriding the postinst in the vm15:16
Wizzuphttps://github.com/maemo-leste/arm-sdk/blob/master/lib/helpers#L9615:17
Wizzupthis will replace the fstab that we made15:17
Wizzupand this runs after everything is run, postinst and all15:17
arno11ah15:17
Wizzupand there is extra/generic-root/etc/fstab15:18
Wizzupso we can make extra/nokia-n900/etc/fstab15:18
Wizzupthat will work around the problem15:18
arno11ok cool15:18
Wizzuparno11: making the change now15:25
arno11Wizzup: if you change things for a new image, could be useful to add custom daemon.conf to get sip working OOTB (and voice at 90%)15:25
Wizzupthe daemon.conf we can do through apt I think15:25
Wizzuplet me make arm-sdk changes first15:25
arno11ok15:26
Wizzupbuilding now, #17515:27
Wizzuphttps://phoenix.maemo.org/view/Images/job/leste-image-n900/175/console15:27
arno11cool15:27
Wizzupthanks for being persistent15:27
arno11:)15:30
arno11mdz: if you want to speed up N900 a bit, see: https://leste.maemo.org/Nokia_N900#Tips_.2F_Tweaks15:42
Wizzupif 16bpp works well on n90015:44
WizzupI wonder if it isuseful on d4 too15:44
arno11ah that was a question for me too15:44
sicelobut d4 is fast enough already15:44
arno11maybe it can allow d4 to play higher res videos15:45
freemangordonWizzup: yes, it is15:45
freemangordonbut share the same problems with n90015:46
freemangordonlike glimagesink not working15:46
Wizzupright15:46
freemangordonalong with qtqmlwidget not working15:46
freemangordonlike, unfortunately, we shall forget about 16bpp15:46
dsc_can it also be set to 8bit?15:46
freemangordonand find a way to speed-up 24bpp15:47
freemangordondri3 it is15:47
freemangordonbut I want to finish OMP as much as I can15:47
freemangordonfirst15:47
Wizzupfreemangordon: so the always on top made it work for our leste programs15:48
freemangordonbut that's a hack15:48
arno11but it works :P15:48
freemangordonbut is a hack15:48
freemangordonand does not help glimagesink15:48
freemangordonsee, I want 16bpp sisnce we started the project15:49
freemangordon*since15:49
freemangordonbut we have too many applications not working properly15:49
freemangordonalso, n900 was way faster with older blobs and omapfb15:50
arno11i think that's a key point15:51
freemangordonand at some point I had modesetting/glamor working, but then I hit omapdrm fences bug (whatever it is) and back then I didn;t know what the issue is15:51
freemangordonbut with ms/glamor it was faster15:51
freemangordonnot to say I made glamor replacement, that is using PVR blobs directly15:52
freemangordonthat should be even faster15:52
freemangordonOTOH, I am not sure when would be ther right time to get back to it15:53
freemangordongiven the pile of pending tasks :(15:53
WizzupI think there are a few other things to take care of first year15:54
freemangordonmhm15:56
Wizzups/year/yeah/16:00
arno11Wizzup: what about light transitions ? IMO they are essential in a fresh install ATM. (i mean for calls and to not wait at least 45 sec to open a qt5 app...)16:39
arno11not really user-friendly without that16:39
Wizzuparno11: so the transitions cause this 45s startup delay?16:55
Wizzuparno11: let's first check if swap works now :)16:55
arno11yes ofc :)16:55
arno11(with light transitions: 45sec ---> 3-10sec)16:56
Wizzupweird, how does that work16:57
arno11i think zoom and animations are blocking apps startup16:59
arno11but it is really depending of the sd card type too17:00
Wizzuphm, maybe some shader compilation?17:01
arno11with U3, ootb around 12 sec to start qt5 app17:01
arno11and far better with no zoom/animations17:03
arno11once we are ok with swap, i'll dd and boot the same img with all tweaks included to see how it runs ootb17:06
Wizzupok, great, I hope to finally get my leste n900 going again17:07
WizzupI have a few other n900's here, one should work at least17:07
arno11ok17:13
freemangordonafaik qml does shaders cache17:37
freemangordonbut transitions duration should not affect that17:37
arno11that's not transitions duration itself but zoom/animation deactivation that helps imo17:45
arno11from what i see in my device, transitions.ini file is not only affecting qt5 apps but it's slowing down the entire device (like Fremantle with no cssu in fact)17:58
Wizzuparno11: the image is built19:50
arno11currently dd it :)19:50
arno113 min remaining before first boot19:54
Wizzup:)19:58
arno11let's check fstab first20:00
arno11arghhh it seems erased20:00
Wizzupwtf20:04
arno11don't know20:04
Wizzupok, I'll just keep trying to fix this until it works, I can build on my machine20:05
arno11ok cool20:07
arno11(i'm trying a first boot with tweaks to see how it works)20:07
Wizzuparno11: btw in case this is helpful..20:16
Wizzupsudo losetup loop0 maemo-leste-1.0-armhf-n900-20231124.img20:16
Wizzupsudo partprobe /dev/loop020:16
Wizzupsudo mount /dev/loop0p2 /mnt/extern20:16
Wizzupcat /mnt/extern/etc/fstab20:16
Wizzup...20:16
Wizzupmight save you burning to sd20:16
Wizzupand yes indeed it doesn't contain the right data...20:17
Wizzup(sudo losetup -D to detatch)20:17
Wizzupdetach*20:17
arno11ok thx20:17
arno11so i tried to do a first boot with emmc swap, 16bpp and custom transitions20:21
arno11directly usable after 2min loading stuff :)20:21
arno11quite fast20:22
arno11no bugs20:22
arno11i know that's just workarounds/tweaks but from a user perspective, not comparable with stock parameters20:25
arno11brb20:26
arno11back (using the n900, still first boot)20:36
WizzupI'm building an image on my laptop, with the same code, since I think it should work20:38
arno11ok20:38
Wizzuphmm....20:38
Wizzuphttps://phoenix.maemo.org/job/leste-image-n900/175/consoleText20:38
Wizzupbelow20:39
Wizzup[35m[00m [01;32m(*)[00m [22;32mcopying generic-root[00m20:39
WizzupI guess skip_arm_device_root was set somehow?20:39
Wizzuparg we set it in our config20:40
Wizzupfor n90020:40
Wizzupok mystery solved...20:40
arno11ah20:40
Wizzupbuilding again20:46
arno11ok20:46
arno11fingers crossed20:46
Wizzupthis is it I'm pretty sure :)20:46
arno11cool :)20:47
Wizzupnow let me see if I can get a n900 going again here20:47
arno11yep20:47
Wizzuplooking forward, the only thing the generic-root copying gives us is an rc.local that generates a ssh-key on boot, a sshd_config and a etc/fstab that gets modified with the boot device21:03
Wizzupand zram by default21:03
Wizzupimo zram should be a pkg, not in there by default21:03
Wizzupthe rc.local + ssh key generation I am not sure, doesn't debian generate host keys by default?21:04
arno11no idea21:04
arno11not 100% sure but seems automatically generated21:18
Wizzupwell yes, currently by our code21:21

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