libera/#maemo-leste/ Sunday, 2021-06-13

ajrLooks like my lucky day.. snagged a brand new d4 from ebay02:25
mighty17[m]<parazyd "Thanks for considering :)"> Form unavailable:(06:15
ajrWorked for me a couple hours ago, must have closed06:16
ajrlooks like a cool project06:16
tmlinduvos: ok so bad emmc, but still some hope for usable xoom2 allow-mbmloader-flashing-mbm.bin then, i need to at least make a backup of my rootfs before i will try it though07:03
tmlindalso what needs to be tested is if booting to recovery and resetting the system also resets the utags partition, i doubt it though, but would allow a way to recover07:04
parazydajr, mighty17[m]: thanks. Yeah, I guess it's done.08:32
uvosparazyd: missed it :(10:32
parazydNo worries :D10:32
parazydbtw. I'll try to compile also 5.10 kernel with the updates and patches today.10:33
parazyd-devel with 5.11 seems fine.10:33
Wizzupajr: great @ snag :)10:34
Wizzupparazyd: do we have a way to test that 5.10 before it goes out to everyone?10:35
parazydNot unless we use the same kernel both in devel and stable10:36
parazydWhich we should imo10:36
Wizzuphow do we test new kernel versions then?10:36
WizzupI'm trying to guard against a one time bad build or something that breaks all user devices after upgrade10:37
parazydWe test new versions in devel.10:37
parazydMy point is we would propagate 5.11 to stable (but we cant because of bugs)10:37
parazydIdeally we go to ddk 1.19 and solve everything10:38
Wizzupmhm10:38
parazyderr 1.17 but you get the point10:39
uvoswe could revert to 5.1o in devel10:39
uvoswe could revert to 5.10 in devel10:39
uvosand put 5.11 into expieramental10:39
uvosor drop it10:39
parazydAlso a possibility, yes10:39
mighty17[m]uvos: kernel panics, no working init found10:56
mighty17[m]i passed init=/init in cmdline `mkbootimg  --kernel Image-dtb --cmdline "console=tty0 ignore_loglevel debug earlycon ro rootwait rootfstype=ext4 root=/dev/mmcblk0p1 init=/init" --output ~/maemo/boot.img`10:56
uvoswhy?10:56
uvosthere is no /init10:57
mighty17[m]so how do i fix that10:57
parazydinit=/sbin/init, or just leave itout10:58
mighty17[m]leaving it out causes kernel panic10:58
parazydSaying what?10:58
mighty17[m]can i send in a pic here?10:58
parazydSure10:58
mighty17[m]ok gimme a sec10:58
uvosi also doubt that /dev/mmcblk0p1 is rootfs10:59
uvossince you flashed the d4 image10:59
* parazyd too10:59
uvosit should be the second partition10:59
parazydGuessing that's the panic10:59
* mighty17[m] uploaded an image: (127KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/iVEruvPFsrocUYsbbmfqdKJw/IMG_2021-06-13-14-29-46-831.jpg >11:00
parazydYeah wrong partition for root=11:00
parazydMost probably11:00
mighty17[m]oh as i flashed d4 rootfs11:01
uvosyou flashed d4 imaga11:01
uvosnot rootfs11:01
uvosthe image contains a boot and a root partition11:01
parazydThen you probably want root=/dev/mmcblk0p211:01
uvosd4 just boots zimage form a ext2 partition11:01
uvosalso drop ro11:02
mighty17[m]still the same error11:02
uvosok11:03
uvosdose --cmdline " in mkbootimg even work for you11:03
uvosi know that it dosent on mapphones11:03
uvosie is the cmdline set11:03
mighty17[m]hm i'll rebuild the kernel then11:03
uvosalso is mmcblk0 even the sdcard11:03
mighty17[m]yes i think, simplefb goes too fast to read11:04
* mighty17[m] uploaded an image: (156KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/PaIhEkediDtZOrGrMBaOWspz/IMG_2021-06-13-14-40-23-864.jpg >11:10
mighty17[m]uvos should I just rm the fstab11:10
uvosno11:11
uvosit never even mouts rootfs11:11
uvosso fstab has nothing to do with it11:12
uvoswhy is it trying to mount that11:12
uvosthats wierd11:12
uvossoemthing is wrong in your kernel side...11:12
mighty17[m]:(11:13
mighty17[m]Wait d4 has 5.10 kernel in /boot11:13
mighty17[m]But I flash my boot.img so that shouldn't matter11:13
uvosright the kernel in /boot is irrelivant11:13
uvoseither mmcblk0 is not the sdcard11:14
uvosor your kernel has a broken block layer11:14
mighty17[m]Well there's no way to chech11:15
mighty17[m]Check*11:15
uvosmmcblk1p2 and mmcblk2p211:17
uvosor build a initramfs with busybox and take a look around11:18
uvoshmm no you cant do that you have no keyboard and no external serial port11:18
mighty17[m]Mmcblk1p2 worked but it's stuck11:18
uvosstuck where?11:18
* mighty17[m] uploaded an image: (148KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/jOoyOyWuxzbHhNffNgRabQRq/IMG_2021-06-13-14-48-18-694.jpg >11:19
mighty17[m]Sorry if I'm spamming with these images :(11:19
uvosif it just freezes there it proubly becuase omapdrm/ pannel driver is missconfigured11:20
uvoslikely its continueing to boot but never refreshing the display again11:20
mighty17[m]I'll wait then11:20
uvosi wont ever do anything else that you can see11:21
uvosif this is the case11:21
uvos*it11:21
uvosyou really need serial somehow really....11:22
mighty17[m]No the cursor is blinking11:22
uvosoh ok11:22
uvossomething else then11:22
mighty17[m]I got crng init done after 100s11:22
uvosoh right11:23
uvosyeah if you have no entropy sources it might wait forever really11:23
mighty17[m]But now 300s have passed and nothing11:23
uvosright11:23
uvosit cant setup /dev/random because of no entropy sources11:23
uvosno its proubly not it accutally11:24
mighty17[m]Huh never faced it11:24
uvosif its done11:24
uvosrm fstab11:24
uvosit might be waiting for /dev/mmcblk0p111:25
uvosalso your sdcard is /dev/mmcblk2p211:27
uvosit saies in the image11:27
mighty17[m]It looks like MMC values change with every boot11:27
uvosso your booting something else there11:27
uvosyeah well you need to fix that then11:28
mighty17[m]Isn't this already an issue in linux-omap11:28
mighty17[m]Also now it's unable to mount rootfs, looks like same issue of mmc11:28
uvosnot randomly11:29
uvosalso was fixed iirc11:29
uvostmlind: ^^^ knows details11:29
mighty17[m]In pmos boot 1 - emmc =mmc0 sdcard =mmc1 boot 2 - emmc =mmc1 sdcard =mmc2, they take random vlaues11:30
mighty17[m]uvos pvr fails for me now11:35
* mighty17[m] uploaded an image: (125KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/GClvlIaLnsfKzoRdmNMcbztA/IMG_2021-06-13-15-05-18-062.jpg >11:35
mighty17[m]Probably coz the kernel u told to use doesn't have pvr :P11:36
uvosright we merge in pvr just before compileing11:38
uvosthe patches are supposed to be on top of the non pvr kenrel11:38
uvosyou should run the the non pvr kernel with pvr merged on top11:38
mighty17[m]Okay... It seems like it boots! I saw cursor for split second but no ui/display yet ig11:40
uvosok you should merge in pvr and fix the mmcblk problem11:41
uvosand then it should work now11:41
mighty17[m]Yay!11:41
uvosdont worry about x not working without pvr11:42
uvosits missconfigured for you atm11:42
mighty17[m]Also I have an older dts with working usb (it's some twl6030 and twl6032 issue) I'll give that a go11:48
parazyduvos: Does the "generate entropy at boot" kernel config option help with this? I remember seeing it.12:06
mighty17[m]Still no ui with pvr kernel :(13:29
mighty17[m]It's just blank screen13:29
Wizzupmighty17[m]: does x start? do you have ssh/serial?13:33
* mighty17[m] uploaded an image: (135KiB) < https://libera.ems.host/_matrix/media/r0/download/matrix.org/IAOarmRRdtFwouFAvgeoQdVO/Screenshot_20210613-170717_Gallery.png >13:37
mighty17[m]Wizzup I am trying to get in ssh, will req some changes13:38
mighty17[m]Changes in kernel*13:38
Wizzupmighty17[m]: aha, ok13:41
mighty17[m]Any clues the image I sent gives!13:41
mighty17[m]Pvr doesn't load13:41
mighty17[m]Pretty sure some module isue13:42
Wizzupdepmod -a perhaps13:42
Wizzupis our powervr service starting?13:43
Wizzupthe one that sets up stuff?13:43
mighty17[m]Nope doesn't looke like it's starting13:43
Wizzupcan you run depmod -a on the device?13:49
WizzupI'm surprised also that it says it cannot find some modules13:49
Wizzupdid you copy the modules over?13:49
mighty17[m]Wizzup: yes i copied modules over14:02
mighty17[m]Wizzup: https://pastebin.ubuntu.com/p/vXx42V95h6/ whats the ssh ip?14:03
mighty17[m]seems like ssh isnt working14:08
mighty17[m]https://pastebin.ubuntu.com/p/RhbMQCyjVs/14:10
Wizzupmighty17[m]: ssh ip for usbnet, you mean?14:10
Wizzuphttps://leste.maemo.org/Status/USB_Peripheral14:10
mighty17[m]yup Wizzup14:10
Wizzupmighty17[m]: ^^14:10
mighty17[m]https://pastebin.ubuntu.com/p/RhbMQCyjVs/ Wizzup thats what i did14:11
Wizzup$ sudo ip address add 192.168.42.1/24 dev enx2612631b80da14:11
WizzupRTNETLINK answers: File exists14:11
Wizzupthat does not sound like it worked14:11
WizzupI don't know the magic of these commands, so it's harder for me to help debug14:11
mighty17[m]mighty@insipron:~/Tab2Dev/Maemo-Leste/pvr-kernel$ sudo ip address add 192.168.42.1/24 dev enx2612631b80da14:11
mighty17[m][sudo] password for mighty:14:11
Wizzupcan you ping it?14:11
mighty17[m]wait, i have a vid of the simplefb stuff, maybe that will help14:16
Wizzupmighty17[m]: if usbnet works, maybe host mod works too? so can you plug in a keyboard?14:16
mighty17[m]i dont hv a keyboard14:16
mighty17[m]Wizzup:14:18
mighty17[m]https://pastebin.ubuntu.com/p/QkDsKcRxYT/14:18
mighty17[m]pinging 192.168.42.1 seems to work14:19
Wizzupthat is yourself14:20
Wizzupso maybe the usbnet doesn't go up14:20
Wizzuphard to tell why that would be the case, how did you get the rootfs set up?14:20
Wizzup(really, serial or keyboard would be much easier to debug)14:20
mighty17[m]<Wizzup "hard to tell why that would be t"> rootfs is droid414:20
mighty17[m]but this device isnt droid4***14:20
Wizzupso you dd'd a droid4 to a sd card and starting modifying it, right?14:21
Wizzupa droid4 image14:21
mighty17[m]yes14:21
Wizzupok14:21
WizzupI am not sure if the usbnet service starts when X does not start14:22
mighty17[m]ohk, well where can i upload a vid of simplefb logs14:23
tmlindmighty17[m]: if you have your mmc devices moving around, apply commit 77335a040178 ("ARM: dts: Fix moving mmc devices with aliases for omap4 & 5")19:57
mighty17[m]Thanks, so it will start from &mmc1 now?20:04
tmlindmighty17[m]: it keeps micro-sd at mmc0 and emmc typically at mmc120:11
mighty17[m]and sdio would be mmc(x-1) right20:12
tmlindmighty17[m]: depends where it's wired, but keeps the order specified in the aliases20:14
mighty17[m]yeah basically mmc1(sdcard) -> mmc0 , mmc2 -> mmc1 and so on20:16
tmlindyeah20:21
uvosmighty17[m]: forget about the random thing, i missinterpreted something20:30
mighty17[m]yes i know the cause was random mmc names20:30
uvosmighty17[m]: like Wizzup saies the modules thing is strange, the image loades those modules via modules-load.d20:31
uvosyou dont need them but if you built omap2plus_defconfig and installed it properly they should exist20:31
uvos(but then not probe)20:31
mighty17[m]<uvos "you dont need them but if you bu"> i installed then in the rootfs/sdcard20:32
mighty17[m]oops reply sorry20:32
uvosso maybe you are building the wrong defconfig or you failed to install the kernel modules to /lib/modules/$(uname)20:32
uvosbut then again i would expect the system to not boot at all wthout modules20:32
uvosunless you specified some additional stuff to be built in20:33
mighty17[m]no the modules do get loaded20:33
uvosok20:34
uvosso is the pvr module loaded?20:34
mighty17[m]they did show that in simplefb, but even if pvr fails, no ui? not even sw rendering20:34
mighty17[m]uvos: is the /var/log/dmesg of any help20:34
uvosif pvr fails no ui20:34
uvosbecuase the ui will try to use libgles and segfault20:34
uvosmighty17[m]: best would be some whay to have an interactive shell on device20:35
uvosmighty17[m]: since you have no serial (im very thankfull motorola made this very easy for us :P) you should setup wpa_supplicant to auto connect20:36
mighty17[m]yes there were comr CRITICAL ERRORS or smth20:36
mighty17[m]s/comr/some20:36
uvosand mv /etc/init.d/dsme  /etc/init.d/dsme_20:36
uvosthen you should be able to boot to shell20:36
mighty17[m]yeah wifi ssh is the only option ig, how would i do that20:37
uvosand have ssh20:37
uvosjust setup wpa_supplicant20:37
uvosgoogle around its not so hard20:37
uvosssh is enabled by default on leste20:37
mighty17[m]ohk great thank20:37
mighty17[m]yeah i read that20:37
mighty17[m]heres /var/log/dmesg https://pastebin.ubuntu.com/p/YZZjMpSDCt/20:38
lelIMbackK opened a pull request: https://github.com/maemo-leste/leste-config/pull/23 (Mapphones: switch away from mono mode on exiting internal speaker hifi output)21:26
inkyi don't understand, i think i was able to change the d4 from pc by using usb condom. i forgot the wire and the condom somewhere, and was unable to change d4 for a week. now i got it, d4 is exhausted, and it doesn't take charge, i am trying second day.21:32
inkyit wasn't taking charge with usb condom immediately, i had to enter safestram android distro, then it would draw this empty battery with the question mark.21:33
inkyand then that battery would start to charge. that was the way.21:33
uvosif the battery is to low android will (rightfully) refuse to charge it21:34
inkyto be precise, that battery would show the slow charge process. and it was usually second time i entered the safstrap android. not the first time.21:34
uvosunfortionatly the mainline kernel can cause the battery to underdischarge21:34
inkyomg.21:34
inkyso i need to get it out and charge separately?21:34
uvosif android wont charge it and cpcap dosent charge it without booting yes21:35
inkycpcap is what?21:35
uvosin a very narrow band around 3v cpcap will charge the battery slowly while the device is off (led will light). with a condom this should also happen.21:36
uvosa condom should not boot the device21:36
uvossince the id pin should not be disconnected...21:36
inkyhmmm, condom boots it. well turns it on, and i see the boot menu.21:36
uvoshmm21:36
uvoswith just vbus and gnd connected?21:37
inkywell i don't know may be my usb condom is wrong, but this device claims to be that.21:37
inky(:21:37
uvosinky: ok so micro usb has 5 pins21:37
uvosvbus d+ d- and id21:38
uvosa condom could have id connected and still be a condom21:38
uvosbut this would boot the device (which is undesirable here)21:38
inkyok i see. the condom i have is not condomy enough.21:38
uvosanyhow if you cant charge via android and have no full condom (with id disconnected) you must charge the battery externaly21:38
uvossorry21:39
inkyokay (:21:39
inkyi don't understand, what is 'battery calibration'?21:39
uvosWizzup: please please review the mce patches that prevent users ending up in this situation....21:39
uvosinky: hmm?21:39
inkyis it something about internals of the battery or is it something inside the os that knows the battery better.21:39
uvosbettery callibration where?21:39
uvosjust that the os knows the battery21:39
inkywell, since i changed the battery it is 'uncalibrated'.21:40
uvosinky: yeah sure thats fine21:40
uvosits allways uncalibrated in leste untill the device sees full or empty on that boot btw21:40
uvosthis dosent affect anything but the accuracy of the battery display21:40
inkyi mean that means leste 'remembers' something about the battery.21:41
inkywhat is calibration, so can battery be calibrated in leste but uncalibrated in android?21:41
inkyjust interesting.21:41
uvosinky: yeah sure21:41
uvosbut andorid hides the callibrated state anyhow21:41
inkyokay.21:41
uvosi dont think it ever tells you if it knows21:41
inkynow i think i understand it better.21:42
inkyuvos, i found a charger that doesn't boot it, and green led lights up. (:22:02
Wizzupuvos: ok. tomorrow I can do all of that, will you be around to coordinate?22:14
uvosWizzup: do you have some time after 17 CEST till around 21?22:15
Wizzupyeah, I think that should be fine, I might have a mtg around 1830 but otherwise I have time22:16
uvosok22:16
Wizzupuvos: sorry it's taking a while, I just got the place where I will spend several months so I'm more stable now22:18
Wizzup(and I have the tablets here, and soon lab psu, and pinephone, and d4, and bionic, and d3 ... :-D)22:18
uvosWizzup: no stress22:18
uvosnice :)22:18
* uvos is doing 700 ish package upgrade on n90022:20
Wizzupehe22:21
Wizzupyeah, I need to fix the locale gen and language applet to make it work22:21
uvosthat will finish like thusday22:21
Wizzupthere's some weird bug22:21
uvosok22:21
Wizzupfor me all the entries get set to "Nederlands" (Dutch) and one to English22:22
uvosbtw due to me being an idiot all d4s where playing music in downmixed mono22:23
uvosupps22:23
uvos(on headphones)22:23
WizzupI saw that yeah, does it affect earpiece in any way?22:23
uvosno22:23
Wizzupok22:26
uvosoh yes the change dosent affect earpice22:27
uvosbut the earpice profile has the same bug22:28
uvosWizzup: (which is what you ment i assume)22:28
Wizzupwell, earpiece is mono though22:29
uvosright22:29
uvosbut the earpice profile dosent switch out of mono22:29
Wizzupah22:29
uvosso if you go internal speaker -> earpice -> headphones22:29
uvosheadphones ends up in mono again22:30
uvossec ill fix it22:30
lelIMbackK synchronize a pull request: https://github.com/maemo-leste/leste-config/pull/23 (Mapphones: switch away from mono mode on exiting internal speaker hifi output)22:30
uvosfixed22:30
Wizzupcool22:32
freemangordonWizzup: uvos: did you try latest wlan fixes? Are connection problems still exist?22:44
freemangordon*Do22:44
Wizzupfreemangordon: I started to, but didn't finish, I should try the python-conic example22:46
Wizzupthat was a 100% fail22:46
WizzupI am fixing another bug atm22:47
uvosfreemangordon: sorry not yet22:47
uvosill do it rn22:47
Wizzuposso-applet-languageregional only works when launched with controlpanel.launch, not with controlpanel22:47
Wizzupmaemo-launcher restart fixes it, meh22:50
* uvos grubles something about the usefullness of maemo-launcher22:50
uvos:P22:50
uvosfreemangordon: so it still seams buggy22:51
freemangordonwhich one?22:51
uvosso i started d4 and waited untill icd starts22:51
uvosthen i upend the dialog and pressed on my ap22:51
Wizzupuvos: that is wifi22:52
uvosthis immidatly failed with the retry thing22:52
Wizzupsometimes assocation fails22:52
Wizzupand the plugin should try harder22:52
Wizzupthat is not the bug fmg fixed22:52
uvosright22:52
uvosWizzup: wait a second22:52
uvosso then the popup would you like to try again came up22:52
uvosi pressed yes22:52
uvosand then the network cooser came up again but my ap was missing22:53
uvosi waited some time22:53
uvosit dident appear22:53
uvosso i closed the dialog22:53
uvosand opend it again22:53
uvosmy ap was there again22:53
uvosi clicked on it22:53
uvosand now the status menu icon is blinking forever22:53
uvosand its connected22:53
uvoslet me reboot and try again.22:54
freemangordonuvos: this is the latest icd2, connui-common and connui-interned, right?22:54
freemangordon*connui-internet22:54
uvosfreemangordon: yeah i just updated on devel22:54
uvosfreemangordon: so i have whatever is latest on devel22:54
Wizzupfreemangordon: the bug is solved for me22:54
WizzupI cloned python-conic and ran this:22:54
Wizzuppython tests/test_connect.py22:54
Wizzupand then I could connect right away22:55
freemangordonuvos: good. with older versions didn;t you have "no saved connections available" message over and over again?22:55
uvosno22:55
uvosi never saw that22:55
freemangordonweird22:55
freemangordonI've seen it lots of times on d4. But anyway, as Wizzup said, what you explain is another issue22:56
uvosok22:56
uvosok this time it just connected22:56
uvosi dont think it ever did it first try before22:56
* uvos reboots again22:57
Wizzupuvos: the icd2 wlan plugin should perhaps retry on initial association failure22:57
freemangordonon d4 it always fails for me after reboot even if I use wpa_supplicant only22:57
Wizzupcurrently it just gives up right away22:57
uvosfreemangordon: thats wierd22:57
uvosit never fails with just wpa for me22:58
freemangordonmaybe I shall upgrade kernel and retest though22:58
uvosanyhow i think the other issue is fixed22:58
uvosie you can connect again after failuer22:58
freemangordonmhm22:58
uvoswithout closing all dialogs22:58
freemangordonthis is what I was talking about22:59
uvosok22:59
uvosbut there is something else22:59
freemangordonyes, but I think it is something d4 specific22:59
freemangordonFW bug or something22:59
uvosthe endless blinking wifi icon is still a bug thats not d4 specific22:59
freemangordonyes, this is a bug in icd2 wlan plugin22:59
uvosok22:59
freemangordonWizzup is aware of it23:00
uvosok23:00
freemangordonbut I think wlan is in a much better shape now that it was a week ago23:00
uvosno doubt23:00
uvosyeah works23:01
uvosit just failed to connect23:01
uvosi could rety after pressing yes on the prompt23:01
uvosso confirmed23:01
freemangordongreat23:01
freemangordonWizzup: good that python test case also confirms it, I think we will be able to close a couple of issues23:03
Wizzupfreemangordon: yeah23:10
uvosWizzup: parazyd: please update fbkeyboard from https://github.com/IMbackK/fbkeyboard23:19
uvosalso please just give me commit access to my packages23:19
uvosthis is somewhat silly23:19
Wizzupuvos: agreed, zzz first for me though23:38
uvosWizzup: good night23:38
parazyduvos: ok, will do it in the morning23:43
uvosparazyd: great thank you23:49
uvosparazyd: byw any ideas how we could bring fbkeayboard to devices other than xt875?23:50
uvosthe only real universal thing i can think of is have a charge-mode style thing that checks if vol down is pressed or so23:51
uvosand then switches to the fbkeyboard mode23:51
parazydWill think about it. Need some sleep now :)23:52
uvosi dont like this that much23:52
uvosok good night :)23:52
parazydShould be fairly simple really23:52
parazydgn23:52

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