libera/#maemo-leste/ Tuesday, 2021-10-19

WizzupI think it does, if you enable it00:00
Wizzupit does on my laptop with kms00:00
Wizzupin any case it looks like kexecboot gets stuck on a non existent file?00:00
uvosnah its part of the fbdev code00:00
uvosif it shows your useing fbdev for at least part of the boot00:00
uvosWizzup: i gues00:00
uvosWizzup: wierd00:00
Wizzupfbdev emulation is on00:01
Wizzupbut that's about it00:01
uvoshmm00:01
Wizzupmaybe it's time I dig up your specific bionic config00:06
Wizzup(it boots to leste with dmse disabled just fine fwiw)00:06
uvos /dev/ttyO2 dosent exist on d4 either00:07
uvosso00:07
uvosits wierd00:07
Wizzupmaybe it's there on serial too then00:07
Wizzupand something else is blocking it from continuing00:07
uvosyeah00:07
uvoslet me check00:07
uvosnope00:11
uvosdosent complain on bionic00:11
uvosand /dev/ttyO2 only exists on the android kernel00:11
uvosso im puzzeled00:11
uvosah00:15
uvosWizzup:00:15
uvosif you exit kexecboot00:16
uvoscan't open /dev/ttyO2: No such file or directory repeats00:16
uvosso kexecboot (the binary) is crashing00:16
uvosthis is tmlinds script that enables wifi in this case00:16
uvoshttps://github.com/tmlind/buildroot/blob/9dd76697ccd2bac65a78fd7687899e1c9ca14465/configs/pandaboard_defconfig00:19
uvosif you change that you should get a shell00:19
uvosto ttyS2 that is00:20
uvospassword is cat /sys/board_properties/soc/die_id | sha256sum | head -c1200:26
WizzupI did not enable wifi00:33
Wizzuplet me get a log00:33
uvosWizzup: kexecboot trys to enable wifi00:33
uvosand getty on /dev/ttyO200:33
uvosthese things are android kernel specific00:33
uvosbut it dose that only after kexecboot exits00:33
uvoswhich it should never doo00:33
uvosunless you click exit on the menu00:34
uvosor it crashes00:34
uvos(otherwise this ends in kexec ofc)00:34
uvoshttps://github.com/tmlind/buildroot/blob/droid4-kexecboot-2017.11/configs/droid4_kexecboot_defconfig00:35
uvosthe /dev/ttyO2 comes from there00:35
uvosyou can chang ttyO2 is the serial port on android00:35
Wizzuphmm00:35
uvosand then you get a shell00:35
uvosif you change it to ttyS200:35
uvossince thats the serial port on mainline00:36
uvosttyO2 is the port on android00:36
Wizzuplet me get a log00:36
Wizzuphttps://dpaste.com/FKT9GTPNQ00:38
Wizzupit doesn't mention drm at all (the log)00:40
uvosWizzup: you forgot init=/sbin/preinit.sh00:40
uvosyou silly person :P00:40
Wizzupoh00:41
Wizzupok, kexecboot works00:45
uvosyay :)00:45
uvosgreat work00:45
Wizzupat least the menu and everything00:46
uvosfbcon=rotate:1 should help00:46
Wizzupnot sure if it can actually load the other leste kernel00:46
uvosdid you enable kexec in the mainline kernel?00:46
uvosas built in00:46
Wizzupit did load something, it just didn't get far00:47
uvosok00:47
uvosgn800:47
uvosprogress :)00:47
Wizzuphttps://dpaste.com/BF5UFF5XN00:48
Wizzupgn00:48
uvosthats it?00:48
uvoshmm00:48
uvosok00:48
Wizzup[    0.000000] OF: fdt: Machine model: Motorola Droid Bionic XT87500:49
Wizzupthat could be a problem :)00:49
Wizzupprobably need to check the dts in /boot00:49
Wizzup# cat boot.cfg.leste00:50
WizzupLABEL=Maemo Leste00:50
WizzupPRIORITY=800:50
WizzupDTB=/boot/omap4-droid-bionic-xt875.dtb00:50
Wizzupyeah00:50
Wizzupyay00:52
Wizzupok, tomorrow the upstreaming will begin00:53
Wizzupthanks for all the help00:54
Wizzupuvos: for the record my kernel config is omap2plus + m -> y + olddefconfig, and then some dvb stuff removed00:56
sicelo(yeah the dvb stuff is annoying)01:06
Wizzupuvos: hehehe the d3 doesn't have the green light always on when it's powered (different led), so the mce patterns actually work properly11:19
WizzupI have a nice orange light now11:19
uvosyeah i  know it has a white led next to the usb port like every droid < 411:21
Wizzupyeah, but it's nice :p11:21
uvosthis is supierior to the n900/d4 anyways becasue if you see a light on the device its allways a notification11:21
Wizzupok so what I need to do is check why the brightness adjustment doesn't work and the modem doesn't (seem) to work, and then it's looking pretty good11:21
uvosok11:21
bencohright, I wanted to ask ... that green light on d4 is fully hw?11:21
Wizzupbencoh: it can disabled in cpcap11:22
bencohah, alright11:22
Wizzuplike with the n900, which has a gpio for it11:22
uvosits a seperate led controled by cpcap11:22
Wizzupwe disable that in our n900 init script11:22
uvosmaybe the fw11:22
uvosso might not be totaly hw11:22
uvosthe brightness is likely on a different channel11:23
Wizzupyeah, I didn't look at the dts part of that yet11:23
Wizzupgoing to test a bit more, but it really -looks- like the freezes are gone11:24
Wizzupwhich makes me happy11:24
uvosthat would be wierd11:24
uvoswhy would the double kexec change that11:24
Wizzupkexecboot might set up the clocks just right or something11:24
Wizzupall I could think of11:24
Wizzupah yeah and there's accelerometer stuff I think11:27
uvosi2cdetect -r 1 0x38 0x3811:28
uvoswhat dose that show on d311:29
uvosi2cdetect -r 1 0x38 0x3811:29
uvos*i2cdetect -r 0 0x38 0x3811:29
Wizzupdo you know what package that is part of?11:30
Wizzup(searching)11:30
tmlindi2c-tools11:30
Wizzupty11:30
Wizzuphttps://pastebin.com/raw/aZw1W8rs11:31
uvosok11:31
uvosthe led chip is the same11:31
uvosand present11:31
uvosdifferent channel then11:31
uvosi2cdetect -r 3 0x18 0x18?11:32
Wizzuphttps://dpaste.com/4Y2RPLYP411:32
tmlindfreemangordon: fyi, still slowly setting up pvr-drv with reg read/write access for ocp regs, and interrupt handler for the socs that use it. still need to move the interrupt handler(s)..11:33
tmlindi guess the next logical step would be to move the mmu code to a new file pvr-mmu.c or something11:33
uvosWizzup: ok no accel11:33
uvosi2cdetect -r 3 0x0f 0x0f shows UU probubly11:33
uvosie it has the same accel as bionic11:34
* tmlind bbl11:34
Wizzupuvos: yes11:34
Wizzupso I'll take that from the bionic dts?11:35
uvosyeah11:35
Wizzuphow about the led controller?11:35
uvoshttps://www.ti.com/lit/ds/symlink/lm3532.pdf11:35
uvosuse i2cset to mess with the channels until you find what is connected to the backlight11:36
uvosie 0x16 0x18 or 0x1A11:37
uvoscarefull tho11:37
uvosone might be the flash led11:37
uvosyou can kill that fast by having it on at full power to long11:37
Wizzupmaybe it's easier to check android?11:38
uvosthats boring :P11:38
uvosnot sure about easier but possible yeah11:38
Wizzupok11:43
WizzupI will try in a bit, but def don't want to damage the led ;)11:43
siceloWhich reminds me that I was going to work on the N900 flash LED11:46
siceloEverytime i see the rgb led on my n900 it's due to a notification. If that's not always the case for you, something's borked on your device11:49
uvos? the n900 uses the leds for lots of stuff that isent a notfication, like the silly power down animation and the charging animation etc11:51
uvosthe old motorola devices have a dedicated led for system state and one for only comunication notifications11:51
uvosmaking its more clear whats happening11:51
Wizzupsicelo: what do you mean, due to a notification?11:53
bencohuvos: actually the fact that they both sit in the same area defeats the point of having two :)11:57
uvosbencoh: on d3 and lower they dont11:57
Wizzupuvos: hm wait, I already had the bionic entry in my dts11:57
uvosbencoh: one is where the led on d4 is and one is a big white one next to the usb port11:57
uvoson d4 its defeated yeah11:57
uvosWizzup: well dose it work?11:58
Wizzupit doens't do anything when I rotate the device11:58
Wizzupotherwise I would not have asked ;)11:58
uvoscheck the number in sysfs11:58
uvosit might just be oriented differently11:59
uvosmaybe it rotates when you place the device face down or something :P11:59
Wizzupok11:59
uvoswhat device image is your rootfs based on?11:59
Wizzupholding it upside down makes it rotate12:00
Wizzupupside down in portrait12:00
uvosok12:00
uvosthats easily fixable12:00
Wizzupbut then holding it normally keeps it there12:00
Wizzuprootfs is bionic12:00
uvosWizzup: ofc it keeps it there12:01
Wizzupmhm12:01
uvosyou need to rotate it landscape upside down12:01
Wizzupyeah, lol12:01
uvoshttps://github.com/maemo-leste/leste-config/blob/master/leste-config-bionic/lib/udev/rules.d/50-iio-sensors.rules.leste12:01
uvosedit this12:01
Wizzupok12:01
uvosyou need to rotate the matrix 180deg12:01
uvosaround z12:01
uvoshttps://en.wikipedia.org/wiki/Rotation_matrix12:02
* Wizzup did linalg at uni12:02
uvosgreat12:02
bencohlinalg <312:03
Wizzup:)12:03
WizzupI'll look at this in a bit, I will also need to make the leste-config thing then12:03
Wizzupuvos: where shall I push the 5.10.y kernel for kexecboot, droid4-linux ?12:04
uvosid make a  sperate clownboot kernel repo12:04
uvosmaybe we should gather all of this in one git project12:04
uvos(icl the android kernel kexec modules12:05
uvos)12:05
uvos*github project12:05
Wizzupatm those will go into a branch of the bionic clown boot, but yeah12:05
uvosi mean the sources for those12:05
Wizzupright12:05
Wizzupyeah I suppose we could do that, an extra orga is maybe a bit overkill but we could12:05
Wizzupno real opinion(s)12:05
Wizzupwhat do you prefer?12:09
uvosidk just make a repo with the kernel that incls the needed patches and defconfig12:09
uvoswe can pull it into a orga later if need be12:09
Wizzupok12:10
Wizzupbrb12:11
lelMerlijnWajer created a repository: https://github.com/maemo-leste/clown-boot-kernel12:39
lelMerlijnWajer created a repository: https://github.com/maemo-leste/clown-boot-kexec12:40
lelMerlijnWajer created a repository: https://github.com/maemo-leste/clown-boot12:40
Wizzupuvos: ^ something like this?12:40
Wizzupclown-boot-kernel for linux stable + patches, clown-boot-kexec for android kexec modules and other android specific stuff, clown-boot for the clown boot stuff12:41
Wizzupalso, I'd like to host the android images somewhere, I guess we can do maedevu12:41
Wizzupit's silly for people to have to search for the android image they want to flash only to load clown boot using it12:41
Wizzupuvos: yeah ok freeze is still there12:46
Wizzupto be continued12:46
freemangordontmlind: nice13:29
freemangordontmlind: do you have any idea which fd shall I use for mmap so  PVRMMap() to be called?13:30
freemangordonI tried BO fd and /dev/dric/card1 fd, ni dice13:30
freemangordon*no13:30
buZzsomeone is hinting that maemo leste should promote compatibility with https://www.engadget.com/fisher-price-working-chatter-telephone-040026739.html13:35
buZzas a meme/commercial/funnonsense i think it could get more eyes on us13:35
buZzits just a BT headset so should work totally fine i guess13:36
dreamerI think parazyd can guess who it was :P13:37
buZz:)13:37
tmlindfreemangordon: not sure.. i think /dev/dri/card0 currently needs to be used at least for all allocations.. but i'm lost there how it's working13:48
freemangordonthis is omapdrm, right?13:48
freemangordonor pvr13:48
buZzparazyd: you wanna meme that fisherprice thing up? :D14:10
tmlindfreemangordon: at least weston-simple-dmabuf-egl --drm-render-node=/dev/dri/card0 works14:23
* tmlind on gsm connection with d414:24
tmlindyeah that's the omapdrm device, you can use drm_info to see what's available14:28
freemangordontmlind: try glmark-es2-drm14:50
freemangordonthe fuck? now works14:50
freemangordonah, on the second try device hung14:52
tmlindcan't try until next week or so14:55
freemangordonok14:55
uvosWizzup: sure idk if it belongs into the leste ogra but ok18:53
uvosWizzup: please fork the clownboot repo then18:54
uvosand give me ownership18:54
Wizzupuvos: ok19:02
lelMerlijnWajer deleted a repository: https://github.com/maemo-leste/clown-boot19:03
lelMerlijnWajer created a repository: https://github.com/maemo-leste/bionic-clown-boot19:04
lelMerlijnWajer renamed a repository: https://github.com/maemo-leste/clown-boot19:04
lelMerlijnWajer closed a pull request: https://github.com/maemo-leste/maemo-input-sounds/pull/1 (remove gconf usage by adding support for the touchscreen.vibration.enabled profiled key)19:53
Wizzupuvos: I think all are built now20:21
Wizzupwell m-i-s is still ongoing20:22
uvosWizzup: in order to now change ts vibration20:27
uvosyou need to also do a release of profilesx20:27
uvosor wait until i do it20:27
WizzupI can wait for you to do it20:28
uvosok20:28
uvoshttps://github.com/maemo-leste/sphone/commit/1f50ad1092499c937dfed6bdafba5574f954e4ca sphone modularization :)20:28
Wizzupneat!20:29
uvosonce you get around to geting ohmd to work writing a module like this should allow switching between ohmd/ucm only at runtime https://github.com/maemo-leste/sphone/blob/master/src/modules/route-pulseaudio.c20:29
Wizzupyeah, ohm is next. I will do the clown boot thing you suggested, then the news post, then the audio20:31
uvosWizzup: you dident merge into beowulf-devel for mis22:05
uvosWizzup: and other i think22:05
uvosWizzup: so you just rebuilt the same pacakge22:06
Wizzupapart from mis, where did I do that?22:09
Wizzuprerunning mis22:10
uvosidk but phoenix-bot not showing changes for imple-brightness-applet-repos is suspicous22:11
uvossame with profiled22:12
uvosprofiled is fine tho22:12
uvosno idea why phoneix-bot dident show changes22:13
Wizzupphoenix-bot is not to be trusted22:18
Wizzupit randomly doesn't output22:18

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