2023-10-15.log

joschyou are!00:01
joschnow you can post your a311d kernel build time yourself even :)00:01
vkoskivDone! First toot00:08
vkoskivHey! Follower!00:10
vkoskivIt even makes a lil sound00:10
joschi hate it when my browser tabs make sound XD00:11
vkoskivFavourite image viewers on wayland? I've used feh, but it's a bit spartan00:11
vkoskivYeah, discord is also really good at making a sound, and then not indicating anywhere where it came from00:11
joschi'm a feh user as well00:12
minutevkoskiv: sxiv (well, i guess that's X, and gthumb)00:12
joschwhen i like most about feh in contrast to other viewers is the --action option which lets me script all kinds of stuff00:12
joschand then always with --sort mtime --reverse --auto-rotate --recursive --fullscreen --hide-pointer --draw-filename --draw-actions00:13
vkoskivReally, the thing I miss from macOS is a quick and ergonomic way to browse a tree of folders containing pics00:13
vkoskivMy film photos are organized (loosely) hierarchically00:13
joschthunar or the kde equivalent do this00:13
- S0rin (QUIT: Ping timeout: 255 seconds) (~S0rin@user/s0rin)00:24
+ S0rin (~S0rin@user/s0rin)00:25
vkoskivWonder when the bot detector gets triggered when I just spam the follow button on anyone that sounds familiar :D00:39
vkoskivA lot of notifications are happening now00:44
vkoskivI guess the bot detector did fire, I followed a bunch of people, but it still only shows 400:46
vkoskivWasn't expecting *this* many notifications :D01:09
- minute (QUIT: Ping timeout: 248 seconds) (~mntirc@softboy.mntmn.com)01:27
+ minute (~mntirc@softboy.mntmn.com)01:29
+ ndufresne2 (~ndufresne@apple.collaboradmins.com)01:51
- ndufresne (QUIT: Ping timeout: 255 seconds) (~ndufresne@apple.collaboradmins.com)01:52
* ndufresne2 -> ndufresne01:52
- Boostisbetter (QUIT: Ping timeout: 252 seconds) (4a410829d7@irc.cheogram.com)02:11
vkoskivI posted a thing: https://community.mnt.re/t/my-a311d-installation-with-pictures/169302:29
- mark_ (QUIT: Ping timeout: 255 seconds) (~mjw@gnu.wildebeest.org)02:51
- nsc (QUIT: Ping timeout: 264 seconds) (~nicolas@201-98-142-46.pool.kielnet.net)03:55
+ nsc (~nicolas@14-48-142-46.pool.kielnet.net)03:57
+ Boostisbetter (4a410829d7@irc.cheogram.com)08:12
Boostisbettervkoskiv: have you tried suspend on the A311D? Is it working? 08:26
Boostisbettervkoskiv: I just remembered that it is CM4 based, and does not have the faculities for suspend. 08:27
BoostisbetterI'm not sure if banana pi has RTC or sleep functionalities included. 08:30
minuteBoostisbetter: it does have the facility to suspend. it is not cm4 "based". it just has the same shape as the rpi cm4, but it's a totally different processor.11:04
joschBoostisbetter: so once the a311d can suspend we both upgrade to it? :D11:10
+ mark_ (~mjw@gnu.wildebeest.org)13:27
- S0rin (QUIT: Ping timeout: 255 seconds) (~S0rin@user/s0rin)13:28
+ S0rin (~S0rin@user/s0rin)13:42
- S0rin (QUIT: Ping timeout: 245 seconds) (~S0rin@user/s0rin)13:55
+ S0rin (~S0rin@user/s0rin)14:13
BoostisbetterNot sure, needs more RAM to encourage me14:22
- TadeusTaD (QUIT: Remote host closed the connection) (tadeustad@psifactor.pl)14:44
+ TadeusTaD (tadeustad@psifactor.pl)14:50
BoostisbetterBut I do like the ability to suspend. I also think it is cool that the Banana Pi is faster than the CM4 and the IMX815:02
BoostisbetterHeck who am I kidding. That thing is super appealing. I do wonder if regular CM4 ships would work in there as well? It seems like 8GB CM4 chips might start be possible to get again. 15:05
- mjw (QUIT: Killed (NickServ (GHOST command used by mark_!~mjw@gnu.wildebeest.org))) (~mjw@2001:1c06:2488:1400:4fd:39a7:74ac:7bae)15:08
* mark_ -> mjw15:08
+ mark_ (~mjw@2001:1c06:2488:1400:4fd:39a7:74ac:7bae)15:08
joschBoostisbetter: when you say "CM4" you actuaully mean "raspi CM4", right? Becauuse CM4 is just the form factor+connectors.15:19
jfredI plan on switching to the a311d module when mine comes in but likewise also like the ability to suspend. It hasn't yet really worked for me on the original CPU module either though15:24
jfredUSB 2 is the only noteworthy downgrade for me I think but I rarely need USB 3 speeds15:24
jfred(I might eat my words the next time I need to write a new live USB 😆)15:25
Boostisbetterjosch: yes I mean Raspberry Pi. 15:36
minuteyes, you can also use rpi cm4 with 8gb.15:56
minutethere's a caveat though, we don't have a system image for that15:56
minutehttps://source.mnt.re/reform/mnt-reform-raspberry-pi-cm4-som#2-working-with-raspberry-pi-cm415:57
- stites (QUIT: Read error: Connection reset by peer) (~stites@130.44.147.204)16:37
+ stites (~stites@130.44.147.204)16:38
- stites (QUIT: Ping timeout: 255 seconds) (~stites@130.44.147.204)16:49
+ stites (~stites@2607:fb90:ade3:cc85:9fb2:d897:5057:9250)16:49
Boostisbetterminute: thanks! Impressive work as usual!17:29
BoostisbetterI wonder if the the new RPI5 will eventually have compute models as well. 17:30
BoostisbetterSince it is using cusotm silicon (RP1) I wonder if that would be possible. 17:30
BoostisbetterAlso sense the Pi 5 now has sleep functionality it would be something very nice to possibly be able to get for a CPU upgrade in the Reform or Pocket. Although the active cooling might be a problem. 17:30
vkoskivBoostisbetter: I've tried suspend, it doesn't work at the moment17:58
vkoskivI do have UART set up to investigate, but haven't gotten anywhere yet17:59
Boostisbettervkoskiv: fingers crossed! Hope you have luck! 18:04
joschBoostisbetter: in before the rpi5 compute module is completely incompatible with CM4 XD18:09
joschvkoskiv: do you have some time of testing custom u-boot on your a311d reform? :)18:10
josch*for testing18:10
+ vagrantc (~vagrant@2600:3c01:e000:21:7:77:0:20)18:17
+ IchikaZou (~IchikaZou@36-231-116-153.dynamic-ip.hinet.net)19:00
- stites (QUIT: Read error: Connection reset by peer) (~stites@2607:fb90:ade3:cc85:9fb2:d897:5057:9250)19:02
+ stites (~stites@130.44.147.204)19:02
- stites (QUIT: Remote host closed the connection) (~stites@130.44.147.204)20:07
vkoskivYeah, what are you working on>20:20
vkoskivs/>/?20:20
joschvkoskiv: bit-by-bit reproducible u-boot for a311d20:28
joschcurrently, there are a few random bytes in it20:29
joschvkoskiv: as you maybe have seen in the conversation over in #linux-amlogic, those are supposedly *random* bytes so maybe we can just overwrite them with zeroes and everything keeps working20:29
vkoskivCool! Side note, I don't have video in u-boot with the a311d, is that expected?20:29
joschyes, display support is not part of upstream u-boot yet20:30
vkoskivOkay20:32
vkoskivMeanwhile, I'm reading Azoteq documentation, the linux multitouch hid driver code, and mnt trackpad firmware code to try and make sense of it all :D20:32
vkoskivI'm fairly confident I can make some improvements to the firmware eventually20:33
joschvkoskiv: once you have some time, could you please test if this u-boot.bin works on a311d for you: https://source.mnt.re/reform/reform-a311d-uboot/-/jobs/2343/artifacts/raw/flash.bin20:33
vkoskivazoteq doesn't document the default values for the touch controller parameters, I think I'll just have to dump it out to look at it20:34
vkoskivWhat's the offset for that binary?20:35
joschyou flash it to your sd-card like this:20:35
joschdd if=./flash.bin of="/dev/yoursd" conv=notrunc bs=512 skip=1 seek=120:35
joschthis will probably break so please have a backup sd prepared XD20:36
vkoskivYeah, writing it on my other card20:36
vkoskivjosch: I see linux booting, seems like you got it right?20:40
joschthat was the unmodified version to make sure that the base of my changes works :)20:41
joschhere is the modified flash.bin:20:41
vkoskivAha20:41
joschhttps://mister-muffin.de/reform/flash.bin20:42
joschsha1sum should be c1b9d8e43ece1b2d29ff64d57277674ec133495e20:42
joschyou can diff it to the flash.bin you had before to make sure it replaces the first 512 bytes with zeroes and then some random bytes with MNTREFORMAMLBOOT20:43
vkoskivIt is, yes20:43
vkoskivDiff looks okay, flashing20:44
vkoskivStill boots!20:46
joschwow20:46
joschso those proprietary statically linked x86 binaries really write useless random bytes to flash.bin20:46
joschthat was too easy20:46
vkoskivMaybe they are receiving money from Big Compression? :O20:46
joschminute: do you agree to overwrite the random bytes in our build process to make flash.bin bit-by-bit reproducible if the input is the same?20:47
minutejosch: suee21:01
minutesure21:02
- bkeys (QUIT: Remote host closed the connection) (~Thunderbi@199.226-24.cm.ptn.tftn.dynamic.friendlycity.net)21:23
vkoskivThe 'failed to send h2c command' spam in dmesg is quite fast sometimes, it seems22:22
vkoskivI get a few of them every 2 seconds or so now22:22
vkoskivAnd the wifi is not sending any packets in this state22:23
vkoskivThere seems to be some issue that causes the wifi to not work after a while, reconnecting fixes it22:23
minutevkoskiv: hmm ok so for me, what happens is that the wifi stops working for a bunch of seconds and then just magically works again22:24
minutei'm mostly on ethernet atm though22:24
vkoskivreconnecting also silences the spam of that in the log, at least for a bit22:24
minutehm22:24
vkoskivFor me, it might do that also, but most of the times I've noticed it, it's down until I reconnect22:24
vkoskivI've also mostly been on ethernet22:24
minuteso from previous debugging what i think happens is that the module sends some garbage data to the host / they get out of sync22:25
minutewhile this was in development the driver would then crash and take parts of the system with it22:25
vkoskivAbout 60sec after reassociating with base station, I get the first error in dmesg22:25
minutei worked with the driver maintainer(s) to fix that though22:25
vkoskivYeah, I haven't taken a look at the driver yet22:25
minutethe big Q is, why doesn't it happen for vendor linux22:25
vkoskivIs that fix in the patches?22:25
minuteafaik it only happens in mainline22:25
vkoskivAh. Could we compare mainline vs vendor drivers to check?22:26
vkoskivOkay, I have my first attempt to resolve the sleepy trackpad thing, about to flash it to test22:26
vkoskivI'm just disabling the active mode timeout entirely for now22:27
minutethe person who knows most about the driver is xdarklight in #linux-amlogic btw22:27
vkoskivI'll ask them if they need help debugging, perhaps?22:31
vkoskivAssuming they have the hw though, if they are developing the thing22:31
vkoskivSo far, my little fix seems to work. I no longer get a brief moment of no tracking when mousing after some idle time22:32
vkoskivHmm, maybe it just happeed...22:33
vkoskivTesting involves waiting ~30s and moving the cursor22:33
vkoskivI don't know the default value, docs don't say, I think the vendor configures that during manufacture22:33
vkoskivI could read it and dump it out22:33
vkoskivOkay, yeah, the issue persists22:34
vkoskivWhoops22:34
minutevkoskiv: xdarklight does not have this exact hw combo unfortunately22:35
vkoskivOh, maybe it's the idle touch mode timeout, actually22:37
vkoskivminute: I'll offer to test things on my hw, then?22:37
vkoskivMaybe a bit difficult though22:37
vkoskivMany variables22:38
minutevkoskiv: that's kind of how i did it, yeah22:38
minuteand i also tried debugging it myself22:38
vkoskivI'll read the driver code myself and pretend to understand it.22:38
minutesee also https://lore.kernel.org/lkml/20230709195712.603200-1-martin.blumenstingl@googlemail.com/T/22:38
minutein the end i figured out that the patch was not completely right, but that in case of errors, one had to read the whole packet from the card22:40
minuteotherwise things would go out of step22:40
minutewhat i would suggest at first is to turn of rx aggregation in the driver, see if the problem goes away22:40
minuteah yeah, so we carry the fixed patch https://source.mnt.re/reform/reform-debian-packages/-/blob/main/linux/patches/meson-g12b-bananapi-cm4-mnt-reform2/0019-wifi-rtw88-sdio-Honor-the-host-max_req_size-in-the-R.patch?ref_type=heads22:42
minutebut if one turns of rx aggregation there's no read loop at all22:43
minuteoff22:43
minutevkoskiv: you can try to modify this function to just return at the top https://elixir.bootlin.com/linux/latest/source/drivers/net/wireless/realtek/rtw88/sdio.c#L65522:44
vkoskivI found another error in the kernel log, firmware failed to ack driver for entering Deep Power Mode22:46
minutemaybe this can be turned off?22:47
vkoskivYeah, not sure if it's related, I'll investigate22:47
vkoskivrealtek/rtw88/ps.c:10622:48
joschminute: all three u-boot builds are now bit-by-bit reproducible. Should I let reform-system-image be built with those new u-boot versions?22:53
minutejosch: sounds good!22:53
joschi tested that it works on imx and ls1028a22:53
joschbut it should not break anything as i only added SOURCE_DATE_EPOCH and vkoskiv tested a311d22:53
joschbut vkoskiv only tested the manually patched binary and not what the CI pipeline produced but it should be identical22:54
minutejosch: you have my blessing23:02
joschminute: cool! the next big thing is the reform-tools MR which adds support for ls1028a and a311d23:03
joschhttps://source.mnt.re/reform/reform-tools/-/merge_requests/5823:03
joschi marked it as draft because it should be tested more before people's setups break again23:03
minutejosch: awesome! i'll write down to review it23:04
joschthank you!23:05
joschi tested it on ls1028a only23:05
joschbecause i cannot thrash my imx XD23:05
minuteunderstandable!23:08
- GNUmoon (QUIT: Remote host closed the connection) (~GNUmoon@gateway/tor-sasl/gnumoon)23:36
+ GNUmoon (~GNUmoon@gateway/tor-sasl/gnumoon)23:37

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