<Wizzup> I think I'm getting closer to the problems on the n900 wrt rotation
<Wizzup> but it's bed time now :)
sunshavi has joined #maemo-leste
sunshavi has quit [Read error: Connection reset by peer]
sunshavi has joined #maemo-leste
zhxt has joined #maemo-leste
joerg has quit [Read error: Connection reset by peer]
joerg has joined #maemo-leste
joerg has quit [Ping timeout: 260 seconds]
joerg has joined #maemo-leste
amk has quit [Ping timeout: 268 seconds]
amk has joined #maemo-leste
<sicelo> Wizzup: that would be awesome. i see your ticket!
zhxt has quit [Ping timeout: 245 seconds]
xmn has quit [Quit: ZZZzzz…]
inky has joined #maemo-leste
_inky has quit [Ping timeout: 260 seconds]
inky_ has quit [Ping timeout: 245 seconds]
Pali has joined #maemo-leste
pere has quit [Ping timeout: 265 seconds]
<Wizzup> we'll see, I'm not super deep into this X stuff
_inky has joined #maemo-leste
pere has joined #maemo-leste
<Wizzup> heh:
<Wizzup> /* SGX has a 2048x2048 maximum texture size limit */
<Wizzup> /* FIXME should be limited further based on the amount of vram */
<Wizzup> xf86CrtcSetSizeRange(pScrn, 1, 1, 2048, 2048);
<Wizzup> might make sense to do that I think
inky has quit [Ping timeout: 245 seconds]
_inky has quit [Ping timeout: 245 seconds]
uvos has joined #maemo-leste
<uvos> Wizzup: hmm?
inky has joined #maemo-leste
freemangordon has quit [Ping timeout: 250 seconds]
inky has quit [Ping timeout: 245 seconds]
freemangordon has joined #maemo-leste
<Wizzup> uvos: remind me?
_inky has joined #maemo-leste
<uvos> "might make sense to do that I think"
<Wizzup> the crtc seems too large for n900 but that is not the bug
<uvos> xf86CrtcSetSizeRange
<Wizzup> I decided to dive a bit into the rotate crash and why it crashes is obvious
<uvos> even modern fat desktop gpus have that
<Wizzup> the solution less so
<uvos> with a 16k maximum
<uvos> as thats the texture size limit on amd gcn for instance
<Wizzup> mhm, it might not be relevant
<uvos> its not
<uvos> but anyhow geting rotation to work would be neat
<Wizzup> uvos: unrelated, do you see ts buttons wake up device when it is locked
<uvos> Wizzup: no
<uvos> and they should not
<Wizzup> hm, now I do not see it
<Wizzup> weird, might be me
<uvos> im not sure fixing video-pvrsgx makes sense
<uvos> vs fixing -modesetting on ddk1.17
<Wizzup> it might be a relatively simple fix and sphone won't cause resets anymore ;)
<uvos> sure
<Wizzup> unless you want to hold back hildon-desktop xinput changes until 1.17
<Wizzup> since it also breaks ts
<uvos> no but a sanity check would be ok
<uvos> i just would avoid spending to muich time on it
<Wizzup> agreed
<Wizzup> I might have some questions a bit later wrt X
<uvos> btw we cant move to ddk1.17 wihtout either fixing chromeos mesa pvr
<uvos> or moveng to a debian 11
<uvos> base
<uvos> so gconf blocks here too a bit
<uvos> becasue mesa cant dlopen the pvr_dri plugin (because its compile agains later libc)
<uvos> so even with weakend symbol versions you have to preload pvr_dri
<uvos> but having it preloaded for everything (since how would you know what uses libgles when setting the envvar)
<uvos> causes lots of funn issues
<uvos> wrt symbol resolition in random binarys
<uvos> and also stuff like cp sometimes segfaulting
<uvos> this getting rid of gconf is pretty important
<uvos> (or fixing foss pvr mesa pick your poison)
<sicelo> how would a debian 11 base help?
<uvos> it has newer libc
<uvos> so mesa can dlopen binary pvr_dri.so
<sicelo> ok
<uvos> Chimaera i gues
<uvos> i just mentiond debain 11 becaus idk how devuan versions line up
<uvos> obv. it would be something devuan based.
<Wizzup> another reason to first fix this ddx probably
_inky has quit [Ping timeout: 260 seconds]
Twig has joined #maemo-leste
xmn has joined #maemo-leste
zhxt has joined #maemo-leste
<Wizzup> root@devuan-n900:/sys/devices/platform/omapdss/display0# ls|grep rotate
<Wizzup> rotate
<Wizzup> rotate: ERROR: cannot read `rotate' (No such file or directory)
<Wizzup> root@devuan-n900:/sys/devices/platform/omapdss/display0# file rotate
<Wizzup> ugh
<uvos> wtf is it doing
<uvos> it should be using the drm interface
<Wizzup> n900 is not omapdrmfb
<Wizzup> with the powervr driver
<Wizzup> I think the pvr kernel driver we use doesn't support it?
<Wizzup> (not sure about that)
<uvos> its runing on the old fb video interface?
<uvos> ugh
<Wizzup> yes
<uvos> ok
<Wizzup> so the problem could be that the rotate just fails, which then makes that not work, but I need to check that
<uvos> so ddk1.9 never was available for omap3?
<uvos> at least its not this crusty
MartijnBraam[m] has quit [Read error: Connection reset by peer]
mighty17[m] has quit [Read error: Connection reset by peer]
asriel_dreemurr has quit [Read error: Connection reset by peer]
argon has quit [Read error: Connection reset by peer]
tvall has quit [Read error: Connection reset by peer]
tvall has joined #maemo-leste
<Wizzup> I don't think so
argon has joined #maemo-leste
<Wizzup> we could check, but no point in trying to go back
mighty17[m] has joined #maemo-leste
MartijnBraam[m] has joined #maemo-leste
asriel_dreemurr has joined #maemo-leste
<Wizzup> r = dss2_read_int(dss2_fb, idx, "mirror", &mirror);
<Wizzup> if (r && errno != ENOENT)
<Wizzup> goto error;
<Wizzup> can_mirror = !r;
<Wizzup> lol
<Wizzup> uvos: I wonder if the zero width and height come from the other fb devices
xmn has quit [Quit: ZZZzzz…]
<Wizzup> most of that logic seems to be in crtc_set_mode_major
zhxt has quit [Ping timeout: 245 seconds]
<Wizzup> maybe the problem is that the overlay rotate is 0 when it should not be?
<Wizzup> yeah ovl_rotate is OMAP_ROTATE_0 when it should be OMAP_ROTATE_90 ?
alex1216 has joined #maemo-leste
alex1216 has quit [Client Quit]
<Wizzup> none of this makes any sense
<Wizzup> for example this call:
<Wizzup> [ 882.456] fbdev_crtc_config_resize(0x5ab518, 480, 800)
<Wizzup> why would it have this effect:
<Wizzup> [ 882.485] overlay_update: putting fb_var_screeninfo xres 480 yres 480
<Wizzup> and for this call:
<Wizzup> [ 882.501] crtc_set_mode_major(crtc=0x5ac358, mode=0xbeb69068, rotation=8, x=0, y=0)
<Wizzup> [ 882.501] mode = 800x480
<Wizzup> I can imagine that maybe mode 800x480 with rotation=8 (RR_Rotate_270) means that the mode is actually 480x800
<Wizzup> but then a simple switch statement to set the omap mode to OMAP_ROTATE_90 just returns OMAP_ROTATE_0
<Wizzup> which I think is why the ovl does not fit
<Wizzup> which makes the enable write fail
<uvos> well in x screen mode scann mode and screen size are different things
<uvos> 800x480 with rotation=8 makes perfect sense if the 800x480 is the scann mode
<uvos> no idea how rotation works in the fbdev interface kernel side
<uvos> the kernel itself dosent change any buffers when you rotate the console on fbdev
<uvos> it just renders stuff sideways
<uvos> in drm mode it changes how the frambuffer is scanned out to really rotate it
<freemangordon> Wizzup: maybe ask tomi for help
<freemangordon> this looks like a bug in omapfb
<freemangordon> also, IIRC rotation was working on Pali's tree
<Wizzup> yes, but this is one that spinal forked
<Wizzup> I really don't know what/which version is newest/latest, etc
<freemangordon> he forked which tree? Pali's?
<Wizzup> I don't know
<freemangordon> :)
<freemangordon> Wizzup: I mean - what kernel?
<Wizzup> freemangordon: 5.1
<freemangordon> mhm
<freemangordon> oh, I see, we don;t have armhf meego binaries
<Wizzup> yes
<freemangordon> Wizzup: the ^^6 logs are from dmesg, right?
<uvos> its X
<Wizzup> the Xorg.log I pasted is from Xorg with pvrdrv with all debug on
<Wizzup> the few lines in the github issue are from kernel
<freemangordon> ok
<freemangordon> and, what happens if you try to rotate through sysfs?
<Wizzup> with X on?
<freemangordon> mhm
<Wizzup> will try in a bit
<Wizzup> I assume you mean the fb0/rotate file
<freemangordon> right
<Wizzup> will try, but everything with n900 takes time
<freemangordon> :)
<Wizzup> lots of time
<freemangordon> hmm:
<freemangordon> unrelated, but still
<freemangordon> Wizzup: hmm, rotate 270 is rotate 0 + mirror
<freemangordon> isn;t it?
<Wizzup> oh I see
<Wizzup> so maybe it works with blit and flip was just always broken
<Wizzup> those are kind of conflicting commits
<freemangordon> no, wait, rotate 270 is not rotate 0 + mirror
<freemangordon> yes, my point
<Wizzup> it should just be rotate yes
<Wizzup> in any case it looks like (still trying to figure it out) that the enable write fails (see kernel msg) because ovl_rotate = 0
<Wizzup> and it should not be 0
<Wizzup> there is other weirdness going on, but that seems to be the main reason
<freemangordon> ok
<Wizzup> apart from the segfault I fixed earlier
<freemangordon> do you need any help with that?
<Wizzup> (where they do not free the pixmap, and just null the pixmap pointers, and then try to access the pixmap pointers)
<Wizzup> maybe you can read through my thoughts on the issue and comment here
<Wizzup> in particular
<Wizzup> the suggested fix is not perfect, since it still needs to destroy the pixmaps before they get nulled, but that's an easy fix later on
<Wizzup> and yes I would appreciate help if you have spare cycles
<Wizzup> but if it's too much of a timesink I suggest we drop it and focus on new pvr stuff later
<freemangordon> but, is it possible that because of those contradicting commits, half of the code tries to blit, the other half to flip?
<Wizzup> yes, we can try to synchronise that first
<freemangordon> mhm
<Wizzup> first I need to fix my driver because I forgot a break; in a switch where it had default: assert(0) :p
<freemangordon> :)
<freemangordon> re new ddk - is there any change since I last tried
<freemangordon> on 5.10 it was just freezing the device
<Wizzup> probably nobody tried since
<freemangordon> :(
<Wizzup> I wasn't going to look at the old driver at all except that the new hildon-desktop rotation code breaks all touch on n900
<freemangordon> maybe I can try latest, if anybody points me to the latest
<Wizzup> because it reports some size of (0, 0) and maps all touch input to 0, 0
<Wizzup> freemangordon: I'd ask uvos or tmlind
<freemangordon> uvos: any clue which one is the latest pvr?
<uvos> wdym?
<freemangordon> what repo/branch
<uvos> 5.11 (but realistcly you should use 5.10 because its lts) is the last version to support ddk 1.9 and 1.14
<freemangordon> 1.17 is what I mean
<freemangordon> I want to build for n900 and see if it works
<freemangordon> lat time I tried it was not
<uvos> there is 5.15 rc
<freemangordon> where?
<uvos> the usual place
<freemangordon> thanks
<uvos> im pretty sure sicelo or someone tried 5.13 on n900 with ddk1.17
<uvos> and it worked
<freemangordon> that would be great
<freemangordon> going to try 5.15-rc
<uvos> maybe he can comment
inky has joined #maemo-leste
<Wizzup> [ 130.343] fbdev_rr_to_omap_rotate rotation = 8 -> rotate= 1
<Wizzup> [ 130.343] ovl_mirror = 0, ovl_rotate=0
<Wizzup> lol
<Wizzup> how
<Wizzup> oh, I see...
<Wizzup> freemangordon: doesn't look like the swap method makes xrandr work
<Wizzup> uvos: re: ddk 1.17 and requiring chimeara
<Wizzup> don't we have a way to weaking the symbols in the pvr libs?
<Wizzup> weaken*
<uvos> sortof helps partailly
<uvos> but dlopen in mesa still fails
<uvos> so you have to preload the dri componant
<uvos> and that causes a bounch of other issues
<Wizzup> ok
<uvos> because you have to do it golbaly
<Wizzup> well we can import gconf in chimeara I bet :)
<uvos> maybe
<Wizzup> I did the same for python-gconf and some other things iirc
<uvos> parazyd mentioned its hard
<uvos> becuase of dh involement not sure exactly
<uvos> manwhile i also ported maemo-input sounds away from gconf
<uvos> *meanwhile
<Wizzup> it might make sense to start a tracking ticket for all of this stuff
<Wizzup> like we did with beowulf
<uvos> we have one
<Wizzup> ah, where is it?
<uvos> for gconf
<uvos> not for porting to chimera generally
<Wizzup> do you have a link?
<uvos> no just search gconf on the tracker
<uvos> so i have mce, osso-applet-display, osso-applet-notificationlight, simple-brightness-applet and maemo-input-sounds ported away from gconf
<uvos> all of these where just in the way when porting mce away really
pere has quit [Ping timeout: 245 seconds]
<uvos> yes
<Wizzup> well we can decide to bite the bullet if the 3d sitation is better, otherwise I don't feel like doing it yet
<Wizzup> is gsettings and dconf available on beowulf then as well?
<freemangordon> is port trivial?
<uvos> port what?
<uvos> away from gconf?
<freemangordon> gconf->gsettings
<uvos> no idea i havent done it
<Wizzup> so what did you port them to, if not to gsettings?
<freemangordon> "(18,16,30) uvos: so i have mce, osso-applet-display, osso-applet-notificationlight, simple-brightness-applet and maemo-input-sounds ported away from gconf" ?!?
<freemangordon> yep, same question
<uvos> ok so with mce i ported to expose its external iterfaces that it has on gconf to also have getter/setter/notify methods on dbus
<uvos> then the mce faceing applets i ported to these dbus interfaces
<uvos> mce also has selectable config backends so it can save to gconf of just a ini file with gsettings bein wip (havent finnished that yet)
<uvos> and then osso-applet-displa also set on other gconf key
<uvos> the one that tells maemo-input-sounds to vibrate the with touchscreen presses
<uvos> this is also the only gconf key it uses, with everthing else, (ie if a sound is to be played when the ts is touched etc) it gets from libprofile
<Wizzup> so the ui can't set a value unless mce is running?
<Wizzup> or do I misunderstand
<Wizzup> freemangordon: so uh, writing to the fb0/rotate doesn't do much with X running
<uvos> so i just added a touchscreen.vibrattion.enabled key to profiled
<uvos> and now that is profile dependant same as touchscreen.sounds.enabled
<uvos> whitch makes more sense anyhow
<uvos> Wizzup: yeah mce needs to be running for the ui to change the setting, but i dont see how thats a problem, gconf also had to be running and both of those are system global deamons
<Wizzup> yes but gconf is the config management system
<Wizzup> and for example settings keys in the ci when building images was already tricky
<Wizzup> if it requires mce to run it will get a lot more tricky
<uvos> the main benefit with this is that now all mce interfaces are on dbus so they are allways availbe and dont change when mce changes settings backend.
<uvos> well mce still stores the stuff soemwhere
<uvos> so in ci you can just chagne the gconf or gsettings key
<uvos> i dont see the problem
<uvos> or in the default ini file if you want to use the ini backend
<uvos> but thats mainly intended to be a fallback
<Wizzup> it just seems backwards to me that if an app wants to change a config key that it has to go through mce to set the config key, instead of mce listening to config key changes, I suppose
<Wizzup> there is already a tool it needs to go through to changes, which is gconf/dconf iiuc
<uvos> sortof
<uvos> but if you look at the keys
<uvos> only really the led ones are really config
<uvos> its allso really backwards for the external application to request a change in lcd brightness by setting some config key
<uvos> imo
<uvos> and since the gconf interfaces are so few (only 3 unique ones)
<uvos> it makes sense to just move everything to dbus
<uvos> in this case
<uvos> i do agree that moveing everything to dbus is not a solution in the general case
<uvos> outside of mce
<uvos> the main point here also is that mce can be used with different settings backends and its not ok that mce dependant applicaitons (also outside of maemo leste here) cant be sure that x interface will be available becasue the user decidede to use a different settings strorage backend
<Wizzup> so in the current beowulf setup, the keys will just end up back in gconf, is that right?
<Wizzup> via mce
inky_ has joined #maemo-leste
<uvos> yeah both interfaces are allways kept in sync by mce
<uvos> ie a dbus request to change the lcd brightness will cause mce to store this in gconf
<uvos> (or in the ini file if you load that plugin instead)
<uvos> and changing the gconf key with cause mce to notify its dbus clients of the change also
inky has quit [Ping timeout: 245 seconds]
<uvos> i would like to know if there are any remaining qualms about how this works...
<Wizzup> all my qualms currently are with this fbdev clone :)
<uvos> btw we could also consider
<uvos> instead of moving to gsetttings
<uvos> to minimally extending profiled to also provide profile independant keys (or even just using the override profile) and porting everthing to that since this accives independance from gnome wimms and we are lugging profiled around as a settings deamon anyhow
<uvos> libprofile and gconf are really close in terms of api too
<Wizzup> I think many things should not go in libprofile
<Wizzup> like when the email client last updated
<Wizzup> just check how many gconf keys there are for modest alone
<uvos> yeah i mean profiled would need a special overarching noprofile profile
<uvos> other than that i dont see the problem really
<Wizzup> I think it's not a bad idea to port to gsettings
<Wizzup> I hope the api will be similar (dconf)
<uvos> the amount of keys seams not relevant
<uvos> dconf dosent have stable api at all afaik
<uvos> we should avoid using it directly
<Wizzup> I mean it seems literally the same
<uvos> sure yeah
<Wizzup> %s/gconf/g_settings/g
<Wizzup> default key handling seems different but we always did that anyway
<uvos> yeah i dont think porting stuff to gesttings is hard
joerg has quit [Ping timeout: 245 seconds]
joerg has joined #maemo-leste
_inky has joined #maemo-leste
_inky has quit [Ping timeout: 245 seconds]
pere has joined #maemo-leste
<mighty17[m]> tmlind: wlroots + sway isnt working as well now :/
uvos has quit [Read error: Connection reset by peer]
uvos has joined #maemo-leste
inky_ has quit [Ping timeout: 265 seconds]
Twig has quit [Ping timeout: 265 seconds]
<mighty17[m]> wht sway version do you use?
Twig has joined #maemo-leste
Twig has quit [Ping timeout: 252 seconds]
Twig has joined #maemo-leste
inky_ has joined #maemo-leste
_inky has joined #maemo-leste
<Wizzup> freemangordon: I am going to stop looking at the ddx for a bit
<Wizzup> (the old one)
<freemangordon> ok
<freemangordon> I am compiling 5.15-rc
<uvos> Wizzup: if your not going to solve the ddx problem
<MartijnBraam[m]> 5.15 for n900? :D
<freemangordon> yes
<uvos> please add a workaround to the h-d function that detects the ddx failure and avoids setting the transform matrix
<freemangordon> I want to see if pvr driver is working
<MartijnBraam[m]> the pmos n900 kernel is a bit behind :P
<sicelo> not a bit :-)
<freemangordon> so is leste
<uvos> the leste kernel is more behind im sure
<sicelo> i wanted to work on it (pmos), then ... the usual
<freemangordon> sicelo: do you have working config around?
<uvos> dose omap2plus_defconfig not work?
<uvos> it should
<uvos> pls report if it dosent....
<freemangordon> it didn;t last time
<uvos> well thats a bug
<freemangordon> also, it has a pile of stuff not used on n900
<uvos> just searching for some other defconfig is not a solution
<uvos> so its just modules
<freemangordon> could be, but my task is to check pvr, not omap2plus_defconfig
<MartijnBraam[m]> I just remember skipping a few versions because the display was broken, and now we're still on 5.7
<uvos> we are on 5.1 so we win
<sicelo> yes omap2plus should work. i also added a few more modules to it, and Tony kindly accepted my changes :-)
<MartijnBraam[m]> oof
<MartijnBraam[m]> are you really winning though?
<sicelo> freemangordon: but let me quickly check what i have on my laptop
<freemangordon> sicelo: so you think I should use omap2plus_defconfig to test pvr?
<freemangordon> hmm
<freemangordon> ok
inky_ has quit [Read error: Connection reset by peer]
inky has joined #maemo-leste
<sicelo> yes, should be fine
_inky has quit [Read error: Connection reset by peer]
<freemangordon> ok
<uvos> freemangordon: maybe also try chromeos mesa while at it
<freemangordon> lemme first have a kernel
<Wizzup> MartijnBraam[m]: we had trouble forward porting 3d to 5.2+
<Wizzup> at least the old 3d
<Wizzup> uvos: yeah ok @ workarounds, but not yet
<Wizzup> uvos: if I add a workaround I will make sure that it also refuses to do xrandr so that sphone won't cause resets :P
<freemangordon> uvos: this one does not require newer glibc, no?
<uvos> right
<freemangordon> so there is no hard dependency to chimaera, IIUC
<uvos> no it works fine on beowulf
<freemangordon> mhm
<uvos> well aside the ususal bugs
<freemangordon> yeah
* Wizzup curious
<Wizzup> if it doesn't just straight up hang the device I would be up for trying to help making it work somehow
R0b0t1` has quit [Ping timeout: 265 seconds]
<Wizzup> brb
<uvos> welcome to the fun times of messing with imagination hw
<uvos> imagination - its what you need so see it working.
R0b0t1` has joined #maemo-leste
<Wizzup> lol
<freemangordon> and it does not compile :(
<uvos> the kernel?
<freemangordon> mhm
<uvos> it compiles for sure
<uvos> i do that often
<uvos> gcc version maybe?
<freemangordon> well, the branch I checked out
<freemangordon> I compile in leste
<uvos> what did you check out?
<freemangordon> letux-pvrsrvkm-5.15-rc1
<uvos> i use mutch newer gcc
<uvos> oh
<uvos> why
<freemangordon> why what?
<uvos> use droid4-pending
<freemangordon> for n900?
<uvos> yeah
<freemangordon> why?
<freemangordon> last time it has droid patches which made it not boot on n900
<uvos> its best maintiained and there are not d4 specific hacks in there really
<uvos> the droid4-pending sgx branch
<freemangordon> could you provide link?
<uvos> has nothing d4 specific
<uvos> this contains just plain 5.15 with tmlinds latest sgx patches
<uvos> this is where the real pending d4 specific patches are
<uvos> ts-buttons and modem code and so on
<uvos> cpcap charger
<uvos> so i would checkout latest rc
<uvos> and then merge droid4-pending-pvr-omapdrm-v5.15
<freemangordon> uvos: latest -rc is supposed to have sgx driver as well
<uvos> ?
<uvos> we are on 5.15 rc3
<uvos> er 4 now
<freemangordon> ok
<uvos> droid4-pending-pvr-omapdrm-v5.15 is rc2
<uvos> so checkout mainline 5.15 rc4 and merge in droid4-pending-pvr-omapdrm-v5.15
<freemangordon> hmm, only 1.17 is there
<freemangordon> but that's fine
<uvos> ofc
<uvos> the old ones where dropeed with 5.11 because major rework is needed to get them to compile with omapdrm > 5.13
<uvos> becasue it tunnels the ioctls through it before ddk1.17
_inky has joined #maemo-leste
<freemangordon> thats fine as we are not interested in anything < 1.17
<Wizzup> right
<freemangordon> same failur :(
<Wizzup> it resets when?
<Wizzup> hangs?
<freemangordon> I cannot compile the kernel
<Wizzup> you need newer uh
<Wizzup> dtc
<freemangordon> hmm?
<Wizzup> actually, git reset --hard (save the config)
<Wizzup> so I had this problem recently
<uvos> or mrproper
<freemangordon> I think I already did
<uvos> it compiles fine for me
<Wizzup> from old logs
<Wizzup> 18:23 < uvos> mrproper aka rebuild everything helped in these cases
<Wizzup> 18:23 < bencoh> yeah, mrproper is magic sometimes
<Wizzup> 18:24 < Wizzup> ok, trying
<Wizzup> 18:25 -!- Pali [~pali@user/pali] has joined #maemo-leste
<Wizzup> 18:28 < Wizzup> I mean I don't really need a new dtb anyway
<Wizzup> 18:30 < Wizzup> ah, no, it looks like the fdt.c errors are from the kernel needing libfdt to unpack the dts
<Wizzup> 18:31 < Wizzup> I'm using droid4-linux droid4-pending-pvr-omapdrm-v5.11
<Wizzup> 18:32 < Wizzup> internet suggests git clean -xdf
<Wizzup> 18:36 < Wizzup> that fixed it
<freemangordon> ok, lemme try
<freemangordon> ah, this is also known as -dfx :D
<Wizzup> what's the joke?
<freemangordon> Wizzup: no need to keep the config as I am using vanilla omap2plus_defconfig
<freemangordon> Wizzup: I am using -dfx and was wondering what -xdf does
<Wizzup> dfx is Don't FiX
<freemangordon> or rather - I am used to -dfx
<freemangordon> I see
<Wizzup> (that was a joke)
<Wizzup> (and not funny)
<freemangordon> yeah
<Wizzup> I try too hard
<uvos> btw
<uvos> charging light on n900 works again right?
<freemangordon> ok, this time it compiles
<sicelo> rgb led? i won't be surprised if it doesn't, because there are some issues with the lp55xx LED drivers. 'charging light' is h/w controlled, so that works at all times, unless i'm forgetting something
<uvos> sicelo: this is about a spcific mce but i fixed
<uvos> (and introduced in the first place)
<sicelo> ok. no idea about *that*. if kernel driver doesn't work though ...
<uvos> it works
<uvos> (on 5.1)
<freemangordon> hmm, latest u-boot should boot zImage, right?
<freemangordon> *should be able to boot
<uvos> theoreticly yeah
<uvos> the new uboot that is
<uvos> but i havent gotten it to work
<uvos> but i also gave up almost immidatly
<freemangordon> ok, will do with uImage
<freemangordon> sicelo: hmm, with omap2plus_defconfig, shall I appned the dtb?
<sicelo> yes, if you're using uImage
<freemangordon> but, in kernel config this is not set. or, u-boot is smart enough?
<sicelo> it isn't set? last i remember it was
<freemangordon> in omap2plus_defconfig?
<freemangordon> didn;t check but I doubt it is
<uvos> cmdline is ofc not forced
<sicelo> it is
<sicelo> CONFIG_ARM_APPENDED_DTB=y
<uvos> idk what you mean
<sicelo> CONFIG_ARM_ATAG_DTB_COMPAT=y
<uvos> oh that yeah
<uvos> yes
<freemangordon> ok
<freemangordon> mkimage: Can't read zImage: Invalid argument
<freemangordon> :(
<freemangordon> any idea?
<freemangordon> ok, PEBCAK
<sicelo> :-)
* sicelo has his fingers crossed that the N900 will boot fine (to a working display)
<freemangordon> I doubt :)
<uvos> i still find it kindof funny that the d4 with its locked bootloader ends up with more user frendly boot ergonimics
<sicelo> freemangordon: the display is the most annoying part of booting a new kernel on N900. (i still need to build my console thingy for N900)
<freemangordon> and... poweroff
<uvos> mh
<uvos> you have the debugkit right
<freemangordon> no
<uvos> hmm
<uvos> great
<sicelo> oh :-) i don't recall facing that one, but then, i haven't been building N900 kernels for too long
<freemangordon> yeah :)
<freemangordon> (debugkit)
<Wizzup> uvos: latest u-boot for n900? the one I built should work fine?
<Wizzup> uvos: yes, the mce fix worked for charging light
<freemangordon> hmm, it has usb console
<sicelo> i didn't find the uboot console super useful, since kernel disables it once it starts. and the problems are in the kernel. maybe there's a way to ask kernel to not disable it?
<Wizzup> it is useful for testing / remote stuff
<Wizzup> compared to typing on that keyboard... ugh
<Wizzup> I mean I like the keyboard, but not in u-boot :)
<sicelo> yeah
<sicelo> it's just that most of the time, the real problems are in the kernel, not uboot :-(
<sicelo> maybe we really should check if there's no way to have that console persist
<freemangordon> ok, as expected, omap2plus_defconfig doesn;t boot
<freemangordon> if anyone has a working config around, please share
<sicelo> make the watchdog built in. that's one change i usually make to omap2plus
<sicelo> +CONFIG_OMAP_WATCHDOG=y
<sicelo> +CONFIG_TWL4030_WATCHDOG=y
<freemangordon> I am trying leste config ATM
<sicelo> we should get you its serial console - i want to build one (based on sre's design), but i don't know if i'll be able to understand issues it reports. at least you would
<freemangordon> do you have the schematics around?
<freemangordon> or, are those available to buy online?
<sicelo> even though he didn't provide schematic, it's a bit straightforward. https://n900.elektranox.org/serial-adapter.html
<freemangordon> hmm, I wonder if I can build something that can fit bellow the battery, so no external power to be needed
<sicelo> i think so. something that could fit snuggly in the cutout under the battery, then have some thin/flexible wires or ribbon as a breakout
<freemangordon> mhm
<freemangordon> but I am not sure I want to take that as well
<freemangordon> maybe tomorrow I will try to boot vanilla 5.15
<freemangordon> if it boots, then maybe a bisect
<freemangordon> now going to have some sleep. good night!
<sicelo> o/
Twig has quit [Ping timeout: 265 seconds]
uvos has quit [Ping timeout: 252 seconds]
<Wizzup> sicelo: weird idea but maybe we can get some made in china if the schematics are there
<Wizzup> (yeah, I'm a bit lazy)
<Wizzup> freemangordon: if you send me your kernel I can boot it with my serial
<sicelo> :-)
<Wizzup> (also modules pls)
<Wizzup> uvos: do you test mce in a vm?
_inky has quit [Ping timeout: 252 seconds]
mardy has quit [Quit: WeeChat 2.8]
_inky has joined #maemo-leste
<_inky> we don't have libosso-gnomevfs2-dev
<_inky> right?
<_inky> but mappero needs it. :/
<lel> MerlijnWajer assigned an issue: https://github.com/maemo-leste/bugtracker/issues/261 (gtk3 port)
<lel> MerlijnWajer assigned an issue: https://github.com/maemo-leste/bugtracker/issues/261 (gtk3 port)
<Wizzup> inky: you need to port from gnomevfs to gio, it's usually simple
<Wizzup> err _inky ^
<Wizzup> libosso-gnomevfs2-dev is dead, basically, iiuc :)
<_inky> i don't even understand what you've said
<_inky> can i just use gnome-vfs packages?
<_inky> instead of libosso-gnomevfs
<_inky> oh there are nothing like that.
<_inky> i am not sure what in mappero needs it.
<Wizzup> _inky: gnomevfs does not exist anymore
<Wizzup> _inky: so you can no longer link against the library
<Wizzup> it's mostly used to read/parse the filesystem and such, to do i/o
<Wizzup> trhe replacement is "gio"
<Wizzup> there are various examples out there, I can take a look with you if you want
<_inky> minute
<_inky> this is it, fremantle's latest mappero.
<_inky> if you can make it use gio instead of libosso-gnomevfs, would be very thankful.
<Wizzup> I'd rather you take a look and try :p
<Wizzup> let me see
<_inky> what is gio, is it in debian or maemo repos?
<Wizzup> are you able to write C?
<Wizzup> btw, mappero as you linked doesn't have a debian dir?
<_inky> well, i guess so.
<_inky> it has, minute
<_inky> check maemo/beowulf branch
<_inky> i have a working ready for jenkins port of lagrange - gemini browser.
<_inky> but that's another story. i did many changes but not in c source.
elastic_dog has quit [Ping timeout: 265 seconds]
xmn has joined #maemo-leste
<Wizzup> _inky: hang on, brb
<_inky> yes
elastic_dog has joined #maemo-leste
<Wizzup> _inky: it seems to just compile, but there is a linking problem
<Wizzup> working on it
<Wizzup> but pls study the commit so you can do it too :)
<Wizzup> ah ok now I hit the gnome-vfs stuff
<_inky> heh.
<_inky> aha let me see
<Wizzup> this should getr you to the point where you can build it and vfs complains
<Wizzup> it doesn't actually do the gvfs porting yet
<Wizzup> the first I see is this:
<Wizzup> maps.c: In function ‘download_tile’:
<Wizzup> maps.c:461:5: error: unknown type name ‘GnomeVFSResult’; did you mean ‘GTestResult’? GnomeVFSResult vfs_result;
<_inky> i was guessing so, that it needs the lib to store downloaded tiles.
<Wizzup> yes, but gio replaces gnome vfs, you just need to do the actual porting
<_inky> ok i guess it's very late at your side. i'll see what can i do.
<_inky> thank you.
<Wizzup> for example, gnome_vfs_read_entire_file might become https://docs.gtk.org/gio/method.InputStream.read_all.html in combination with something that opens a url as file handle
<Wizzup> yeah it's 1am so I can't/won't do it now
<Wizzup> lmk if you run into trouble, I like gps apps :)
<Wizzup> also just googling for "gio read remote url" or "glib read remote url" might help
<Wizzup> keep in mind that gnome/gtk broke *all* their doc links
<Wizzup> it's insane but true, so when you click a link and it doesn't work, search for the method name again in the title bar
<inky> okay!
<Wizzup> in any case dpkg-buildpackage -b -uc should mostly work now with the patch applied
<inky> oh indeed it's later here, about 3 am (:
<Wizzup> (git am blabla.patch)
<Wizzup> also just 'make' will work if you did dpkg-buildpackage -b -uc once
<Wizzup> I made one other change:
<Wizzup> #ifdef MAEMO_CHANGES /* probably not the best macro to check for here */
<Wizzup> +//# include <device_symbols.h> #endif
<Wizzup> -# include <device_symbols.h>
<Wizzup> because I don't know where that file is, but it's not in the repo
<inky> yeah. i hope i'll tinker tomorrow.
<Wizzup> :)
<inky> oh
<inky> i see
<inky> i suffered with build system of lagranfe gemini browser a lot
<inky> it builds but sometimes crashes
<inky> also
<inky> it says on console that
<inky> libgl error: failed to load omapdrm
<inky> it works nice even without it
<Wizzup> are you building on the droid?
<Wizzup> ooh, sorry, got confused
<Wizzup> yeah, that libgl error is 'normal'
<Wizzup> I would recommend generally to try building in the VM if you can
<_inky> yep, building on the droid (:
<Wizzup> would recommend to do it on a VM if you can
<_inky> i did so before
<Wizzup> ok
<_inky> but it's not that convenient.
<Wizzup> it's just much faster/easier
<Wizzup> ok :P
<_inky> (:
<Wizzup> let me know wrt mappero, I might have more time later if you need help
<Wizzup> there doesn't seem to be too much, maybe 6 places/uses of vfs
<_inky> okay, i'll see, i hope will be able to solve this.
<Wizzup> it's probably ~1-2h if you know what you're doing
<Wizzup> there are also examples of this porting in other repos
<_inky> i never used gtk and its libs, but i'll see.
<Wizzup> that shows how to replace the string escaping (provided I did it right)
<_inky> thaaanks
<_inky> this seems very helpful.
<Wizzup> sure, lmk
belcher has quit [Ping timeout: 268 seconds]
belcher has joined #maemo-leste
_inky has quit [Ping timeout: 245 seconds]