2023-09-30.log

abortretryfailHow's the burn-in happen? folks turn on their Reform and just leave the keyboard alone with the logo showing?00:08
sigridbasically00:09
sigridI think one way to fix it is to have an inverted image displayed for some time00:10
sigrid(I might be partially joking)00:10
vkoskivThere are also some cases, for instance when you plug in a unit with low battery, that the keyboard controller may reset and present the logo.00:11
abortretryfailACTION goes to take a peek at the keeb fw00:12
jfredHmm. My Reform today has been having trouble staying associated to wifi APs. I did just apt-get upgrade recently so I wonder if there was a regression somewhere. Just cracked it open to see if one of the antenna cables had come loose but they seem fine00:21
jfredoh there are new kernel packages available00:25
jfredACTION tries another upgrade00:25
- mjw (QUIT: Ping timeout: 255 seconds) (~mjw@gnu.wildebeest.org)00:29
minutejfred: someone mentioned a similar issue on community. i wonder if something is wrong with the kernel commandline. can you check if pci=nomsi is still there?00:32
minutein /proc/cmdline for example00:32
jfredoh, nope, it's not00:33
jfredjfred@reform:~$ cat /proc/cmdline 00:33
jfredconsole=tty1 ro no_console_suspend cma=512M@3G cryptomgr.notests00:33
minutedamn00:34
minutecc josch00:34
minutejfred: that's the issue then. you have graphical uboot, right? can you stop it (press space) and do: setenv bootargs pci=nomsi00:35
minuteand then: boot00:35
jfredI do, will give that a try - one moment00:35
jfredminute: interesting, I set that boot arg from within uboot but it didn't end up in the kernel cmdline00:39
minutehmmmmmm00:39
minutecan you pastebin your /boot/boot.scr?00:39
jfredhttps://bpa.st/3WYA00:41
minutejfred: also, do you have the file: /usr/share/flash-kernel/ubootenv.d/00reform2_ubootenv 00:43
jfredyup, seems to exist00:44
jfred-rw-r--r-- 1 root root 546 Sep 28 09:03 /usr/share/flash-kernel/ubootenv.d/00reform2_ubootenv00:44
minutejfred: ok, thank you! can you check one more thing in u-boot's console for me? the output of: print board00:45
minuteperhaps it's not nitrogen8m_som00:46
jfredOh yep, it's listed as "MNT Reform 2.0"00:47
minuteoh wow ok00:48
jfred(Also thanks, this has given me more of a feel for where things are in ARM-land haha - more used to x86 and GRUB)00:50
minuteok, so this might be a fix:00:50
minutejfred: can you replace the contents of the above mentioned 00reform2_ubootenv with this: https://source.mnt.re/reform/reform-tools/-/raw/main/flash-kernel/ubootenv.d/00reform2_ubootenv?ref_type=heads00:51
minutei added another if case for your board value00:51
jfredOut grabbing food real quick but I can try that when I get back to my Reform00:52
minutejfred: after that you only have to run `sudo flash-kernel`00:52
minutei think00:52
minutesure!00:53
vkoskivI guess I ended up learning DBus, then. My program is now doing the right thing, listening for signals instead of polling properties like I initially wrote it00:54
vkoskivI'm looking at periodic battery state updates from UPower 8)00:55
vkoskivAll sorts of goodies in here00:55
minutevkoskiv: cool!00:56
jfredminute: yup that did it, thanks!01:18
- chomwitt (QUIT: Ping timeout: 255 seconds) (~chomwitt@2a02:587:7a24:b000:1ac0:4dff:fedb:a3f1)01:20
minutejfred: cool, thanks for testing!01:46
jfredno prob :)01:49
- mtm (QUIT: Ping timeout: 260 seconds) (~mtm@c-71-228-84-213.hsd1.fl.comcast.net)02:04
vkoskivI got deep into this apparently. Wrote an entire parser + callback dispatcher for dbus signals02:08
vkoskivIt now has a very satisfying API.02:08
vkoskivHook the system bus, hook a desired signal with a provided callback, done.02:08
vkoskivI'm sure glib bindings would do something similar, but then I'd have to link in a bunch of libraries02:09
vkoskivAnd I'd have to write less code02:09
- jacobk (QUIT: Ping timeout: 260 seconds) (~quassel@utdpat241106.utdallas.edu)02:31
- nsc (QUIT: Ping timeout: 255 seconds) (~nicolas@250-97-142-46.pool.kielnet.net)03:10
+ nsc (~nicolas@67-98-142-46.pool.kielnet.net)03:12
josch"MNT Research Shop Shipment Notification" \o/03:20
joschminute: your u-boot must be very old :D you changed the value for "board" in u-boot env from nitrogen8m_som to "MNT Reform 2.0" in May 2020: 7d4327e9938f6c3f3d016bbf0a89296a0536053c03:24
joschis anybody out there currently using such an old u-boot?03:25
joschalso, thet "setenv bootargs" at the very top of 00reform2_ubootenv, should that not also have a ${bootargs} in it?03:25
joschyou suggested jfred to set ${bootargs} in the interactive u-boot console but whatever is set there is currently ignored by our boot.scr as it is03:26
joschthat should not happen, right?03:26
+ mtm (~mtm@c-71-228-84-213.hsd1.fl.comcast.net)04:09
- murphnj (QUIT: Quit: Leaving) (~murph@user/murphnj)04:58
- bkeys (QUIT: Ping timeout: 248 seconds) (~Thunderbi@199.226-24.cm.ptn.tftn.dynamic.friendlycity.net)05:05
+ Gooberpatrol66 (~Gooberpat@user/gooberpatrol66)07:22
- vagrantc (QUIT: Quit: leaving) (~vagrant@2600:3c01:e000:21:7:77:0:50)08:35
+ jacobk (~quassel@64.189.201.150)08:42
+ chomwitt (~chomwitt@2a02:587:7a24:b000:1ac0:4dff:fedb:a3f1)09:17
- Gooberpatrol66 (QUIT: Remote host closed the connection) (~Gooberpat@user/gooberpatrol66)09:18
+ Gooberpatrol66 (~Gooberpat@user/gooberpatrol66)09:18
- chomwitt (QUIT: Ping timeout: 260 seconds) (~chomwitt@2a02:587:7a24:b000:1ac0:4dff:fedb:a3f1)09:22
minutejosch: correct. but also, if you look at jfreds boot.scr paste, you will see that there is a default old bootargs from somewhere, and then you'll have a clash with a bunch of redundant args11:32
minutejosch: i guess i didn't understand how "board" works and can't look up that commit right now because i'm on phone11:33
minutejosch: also i hadn't looked into the deb changelog commands yet (and was too tired last night) so i didn't make another packages build, but we should make one swiftly 11:35
minutefor reform-tools i mean11:35
joschminute: i can take care of reform-tools and triggering the reform-debian-packages pipeline11:35
joschminute: the "default old bootargs from somewhere" come from /etc/default/flash-kernel11:36
joschminute: we are not creating that file anymore with sysimage-v4 but existing installations will still have it11:36
joschsince it lives in /etc it's not so easy to replace it with an upgrade of reform-tools11:37
joschmaybe i should just add another test in reform-check that if reform-tools is new enough (i.e it includes the new 00reform2_ubootenv) then /etc/default/flash-kernel should be deleted11:37
minutejosch: yea11:37
minuteyes11:37
minuteso lets override the whole bootargs as it is, it's more deterministic11:38
joschokay11:38
joschshipping better default bootargs for each board in u-boot itself will still be useful though for users of other distros than Debian11:38
minuteand one can edit the ubootenv script to include a custom variable if needed11:39
minutethat is true11:39
joschso i think there is some utility in making sure that each of the u-boot variants ships good values (even if they get overridden by boot.scr via flash-kernel)11:39
minuteyes, agreed11:39
joschnice :)11:39
minutecan you perhaps create a quick issue ticket for it in reform-tools? then it's not forgotten11:40
joschto add another test in reform check deleting /etc/default/flash-kernel? sure, will do11:41
joschat least it's not harmful to have it in there11:41
minuteah i meant to make sure that all uboots set good default bootargs also11:43
joschi think they currently do11:44
joschissue for reform-check so that i don't forget: https://source.mnt.re/reform/reform-tools/-/issues/311:45
joschi think our uboots already set the correct default cmdline values. you recently approved merge requests of mine that did this11:51
joschbut let me check again -- i think there were some changes to 00reform2_ubootenv that are not reflected in some u-boot yet11:51
joschokay, ls1028a uboot was the only one were bootargs were not the same as the ones set by flash-kernel. MR here: https://source.mnt.re/reform/reform-ls1028a-uboot/-/merge_requests/211:56
joschokay, i merged https://source.mnt.re/reform/reform-tools/-/merge_requests/56 and will now trigger reform-debian-packages11:59
minutejosch: great, thanks for checking this so quickly!12:00
- klardotsh (QUIT: Ping timeout: 255 seconds) (~klardotsh@c-67-170-115-80.hsd1.wa.comcast.net)12:00
minutei'm also now on a computer (it's by MNT)12:00
+ eery (~eery@77.137.73.95)12:10
+ chomwitt (~chomwitt@2a02:587:7a24:b000:1ac0:4dff:fedb:a3f1)12:56
+ mjw (~mjw@gnu.wildebeest.org)13:23
violetMNT, ive heard of them13:31
- Boostisbetter (QUIT: Ping timeout: 240 seconds) (4a410829d7@irc.cheogram.com)13:32
+ Boostisbetter (4a410829d7@irc.cheogram.com)13:39
- mtm (QUIT: Ping timeout: 255 seconds) (~mtm@c-71-228-84-213.hsd1.fl.comcast.net)14:03
Boostisbetterminute: Reform, Pocket, thin, or Rack? 14:29
minuteBoostisbetter: reform this time!14:54
- jacobk (QUIT: Ping timeout: 255 seconds) (~quassel@64.189.201.150)15:02
Boostisbetterminute: mosts excellent, me too.  15:19
+ mtm (~mtm@c-71-228-84-213.hsd1.fl.comcast.net)16:09
vkoskivOof, dbus introspection returns... XML. Now I'm going to have to link in an XML parser :(16:13
vkoskivI was planning on just having a json parser, but it seems that binary bloat will be unavoidable if I want DBus support16:14
minutelibxml is very common i think16:16
vkoskivYeah, I'm trying to stick to libraries that ship by default with Sysv4, and that is included16:16
vkoskivSo not too bad.16:16
vkoskivI don't know what it is about xml, but any exposure to it makes computing slightly less fun for me :D16:17
vkoskivWhy can't the pkg-config name for a package just be... The package name16:21
vkoskivIn this case package is 'libxml2', but pkg-config wants you to guess 'libxml-2.0'16:22
vkoskivBut for dbus the package is 'libdbus-1-dev, and pkg-config wants just 'dbus-1'16:24
vkoskivAm I supposed to just know that, or am I doing something wrong?16:24
vkoskivI always just have to hammer in a bunch of guesses to find the right permutation for a given package16:25
vkoskivI guess I could write some kind of script to just try everything, and find the name for me?16:25
vkoskiv(first example, package name is probably also 'libxml2-dev')16:26
+ nocko (~nock@user/nocko)16:26
vkoskivI guess I can tab-complete under /usr/lib/aarch64-linux-gnu/pkgconfig/, but couldn't pkg-config just go "did you mean <correct_name>"? :D16:28
vkoskivOr better yet, have the same name for the .pc files as the name of the dev package16:28
vkoskivAnyway, rant over, if I'm having trouble adding two packages to my tiny makefile, I can't imagine how much of a headache package maintainers have :D16:35
minutevkoskiv: yeah what i do is a combo of apt-file search and grep for the .pc16:36
vkoskivFeels like a gap in tooling that everyone just scripts their way around, no?16:37
vkoskivThis is the kind of stuff that pushes developers towards single file libraries, and towards static linking as a result.16:38
vkoskivI've done the same thing, I had no idea how to do any of this ~8 years ago when I was working on my first C projects16:39
vkoskivFinding a .h, dropping it in, that worked.16:39
vkoskivFar too often I also do `apt search <thing> | grep <thing>`16:40
vkoskivI now know of --names-only, but I still get a bagillion results that I have to manually scan to find the one thing I was looking for16:40
minutei agree16:43
- stites (QUIT: Ping timeout: 260 seconds) (~stites@130.44.147.204)16:43
+ stites (~stites@2607:fb90:ad62:a207:f0a1:b4c8:6d1c:d465)16:44
- ethulhu (QUIT: Excess Flood) (ethulhu@nora.ethulhu.co.uk)16:49
joschvkoskiv: do you think there is something i can help you with? i do not yet understand exactly what the confusion is17:02
vkoskivOh, I don't think there is an issue per se, just wondering if there would be ways to improve the discoverability of development packages somehow17:06
joschvkoskiv: you mean you need header foo.h and you want to find out what package you have to install on Debian to get it?17:07
vkoskivYeah, currently doing that for cJSON.h. I see that the .so is installed, but there is no .pc file, and I can't find a header17:08
vkoskiv2015 me just copied the .c and .h files to my repo, but for this project, I'd like to do it the proper way for all libs.17:09
joschfor shared libraries, the package name is *always* (except for zlib because of historical reasons) derived from the SONAME17:09
joschso your case you have libcjson.so.1 and that must be in the package called libcjson117:10
vkoskivAha, I'm missing libcjson-dev17:10
joschyou could then run: apt-cache showsrc libcjson117:11
joschthat would show you from which source package the binary package would be built and then in the Binary: field you would see that the source package also builds a binary package called libcjson-dev17:11
joschand that is the one you were looking for17:11
vkoskivE: You must put some 'deb-src' URIs in your sources.list17:11
vkoskivWhen trying that showsrc command17:11
joschyes, you have to add that17:11
joschdo you know how?17:11
vkoskivI'll look it up17:12
joschwithout a deb-src line in your sources.list, finding and installing development headers is not much fun :)17:12
joschthe second way to find out that you need libcjson-dev is by using:17:12
joschapt-file search /cJSON.h17:13
joschand that would also list you libcjson-dev17:13
vkoskivOoh, I think that's what I was missing17:13
joschin general (but not always, so i always run apt-file search anyways) development header binary packages are named after their library names17:13
vkoskivAh, I don't have apt-file installed17:14
vkoskiv'apt search apt-file' feels very meta :D17:14
joschso you need xml2, so install libxml2-dev. you need dbus-1 (according to pkgconfig), so install libdbus-1-dev,17:14
joschand libcjson-dev if you need cjson17:14
joschfor *-dev packages, naming is not 100% uniform compared to shared libraries, so i always run apt-file instead17:15
vkoskivsame repo url for deb-src in sources.list, yeah?17:15
joschessentially, you copy the "deb *" line of your main repo and do s/^deb /deb-src /17:15
vkoskivCool, then apt-file update?17:16
vkoskivIt seems to work now, not sure if this warning I got is relevant: W: Skipping acquire of configured file 'main/source/Sources' as repository 'https://mntre.com/reform-debian-repo reform InRelease' does not seem to provide it (sources.list entry misspelt?)17:17
vkoskivapt-file search works now, very useful17:18
joschvkoskiv: yes, you do not need a deb-src entry for https://mntre.com/reform-debian-repo because there are indeed no source packages in there17:18
joschyou want a deb-src entry for deb.debian.org17:18
vkoskivapt-cache showsrc still says the same error, though.17:19
joschvkoskiv: knowing about apt-file was the main puzzle piece you were missing. Now you can just search for a path or parts of in and find the package that provides it. :)17:19
vkoskivOh, I just copied the existing deb line there and made it deb-src17:19
vkoskivjosch: indeed, thanks a bunch!17:19
joschvkoskiv: after changing your sources, did you run "apt-get update"?17:19
vkoskivYeah. apt-cache still isn't happy, though.17:20
vkoskivConfused, so should the deb-src line point to deb.debian.org or mntre.com, or both?17:20
joschwhat's the error? can you show your sources.list?17:20
joschonly deb.debian.org17:20
joschit will not have any effect pointing at mntre.com17:20
josch(because no source packages are shipped in that repo)17:21
vkoskivAha, 'deb-src [trusted=yes] https://deb.debian.org/' ?17:21
joschleave out the [trusted=yes]17:21
joschbecause in contrast to mntre.com, deb.debian.org is gpg signed17:21
joschso no need to disable signature verification17:21
+ RPPeakt (~ERueanion@117.104.246.210)17:21
RPPeakthttps://supernets.social damn elon musk sucks dick17:22
RPPeaktRPPeakt stites nocko mtm Boostisbetter mjw chomwitt eery Gooberpatrol66 nsc sigrid Ar|stote|is colinsane doppler XYZ bleb rah marty_mcfly88 mark_ eschaton S0rin GNUmoon robin dozens henesy sknebel V swivel mhoye blast007 josch lexik minute leonardo ec0 truck laumann hl pinoaffe flowy deflated8837 plomlompom _nrb_ reformer sbp inhji jnerula kremlin XgF ndufresne5 skalk tarxvf brennen sundog2062 17:22
- RPPeakt (PART: TRUMP WON IN 2016) (~ERueanion@117.104.246.210)17:22
vkoskivMore errors, 404s with this config.17:22
dozenswhy17:22
joschi can show you my sources.list if you like17:22
vkoskivAh, I had reform on the debian.org line17:22
vkoskivProbably want 'unstable main' instead17:22
joschyes17:22
vkoskivStill 404s in apt-get update17:23
vkoskivErr:6 https://deb.debian.org unstable Release17:23
vkoskiv  404  Not Found [IP: 151.101.246.132 443]17:23
vkoskivThen at the end it says that one doesn't have a release file17:24
vkoskivWhich makes sense, I guess17:24
vkoskivdeb http://deb.debian.org/debian unstable main17:24
vkoskivdeb-src https://deb.debian.org/ unstable main17:24
vkoskivdeb [trusted=yes] https://mntre.com/reform-debian-repo reform main17:24
vkoskivOh, where thit that /debian come from17:25
vkoskivIt was there before, I'll add it for the deb-src too17:25
vkoskiv*now* it works :D17:25
vkoskivapt-cache too works17:25
vkoskivI chose cJSON because I'm familiar with the API, and the library ships by default in SysV417:27
+ ethulhu (ethulhu@nora.ethulhu.co.uk)17:29
joschvkoskiv: yes, adding /debian was the missing part -- the rest looks correct. Good luck! :)17:31
joschoh one thing17:31
joschyou don't need https17:31
joschsince the repo is gpg signed, https does not add very much17:31
joscha case for https in Debian mirrors could be made if one argues that by snooping http traffic, an attacker could find out which security updates a Debian system has applied and which ones it is still vulnurable to -- but you are using unstable :)17:32
vkoskivYeah, encrypting that traffic for almost no reason does add overhead17:39
- xktr (QUIT: Quit: leaving) (~xktr@2602:fe3d:c01:10ca:1050:1ace:0:b)17:54
+ xktr (~xktr@2602:fe3d:c01:10ca:1050:1ace:0:b)17:57
vkoskivC designated initializers, my beloved18:05
vkoskivhttps://pastebin.com/esYrnyQ618:09
vkoskivQuick and dirty inline bitmaps, with nearly live editing as I work on things18:09
vkoskivI have entr rebuilding and restarting the project whenever I :w, it takes less than a second to come back up18:09
vkoskivI can stick these in named variables later for reuse, but for prototyping, this is excellent.18:10
- Boostisbetter (QUIT: Ping timeout: 260 seconds) (4a410829d7@irc.cheogram.com)18:52
+ Boostisbetter (571d69e5d6@irc.cheogram.com)18:58
- Boostisbetter (QUIT: Ping timeout: 260 seconds) (571d69e5d6@irc.cheogram.com)19:33
+ Boostisbetter (4a410829d7@irc.cheogram.com)19:34
- stites (QUIT: Read error: Connection reset by peer) (~stites@2607:fb90:ad62:a207:f0a1:b4c8:6d1c:d465)19:53
+ stites (~stites@130.44.147.204)19:53
- stites (QUIT: Read error: Connection reset by peer) (~stites@130.44.147.204)19:55
+ stites (~stites@130.44.147.204)19:56
- XYZ (QUIT: Remote host closed the connection) (~XYZ@37-48-8-141.nat.epc.tmcz.cz)20:50
+ XYZ (~XYZ@37-48-8-141.nat.epc.tmcz.cz)20:54
- XYZ (QUIT: Read error: Connection timed out) (~XYZ@37-48-8-141.nat.epc.tmcz.cz)21:13
+ XYZ (~XYZ@37-48-8-141.nat.epc.tmcz.cz)21:31
+ klardotsh (~klardotsh@c-67-170-115-80.hsd1.wa.comcast.net)21:58
+ jacobk (~quassel@utdpat241106.utdallas.edu)22:22
+ vagrantc (~vagrant@2600:3c01:e000:21:7:77:0:20)23:16

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