2023-06-05.log

jfredHuh. There's an M.2 Oculink adapter mentioned here... could it be possible to connect a Pocket Reform to an eGPU this way? https://www.theverge.com/2023/6/2/23747057/gpd-g1-dock-crowdfunding-announce-oculink00:59
jfredyou'd have to route it to the outside of the case somehow of course01:00
jfredI'm sure the CPU would be a huge bottleneck there but it'd be kinda hilarious01:00
+ mtm (~mtm@c-71-228-84-213.hsd1.fl.comcast.net)01:24
+ mtm- (~mtm@c-71-228-84-213.hsd1.fl.comcast.net)01:26
- mtm (QUIT: Remote host closed the connection) (~mtm@c-71-228-84-213.hsd1.fl.comcast.net)02:00
+ mtm (~mtm@c-71-228-84-213.hsd1.fl.comcast.net)02:01
- mtm- (QUIT: Ping timeout: 265 seconds) (~mtm@c-71-228-84-213.hsd1.fl.comcast.net)02:03
- S0rin (QUIT: Ping timeout: 250 seconds) (~S0rin@user/s0rin)02:19
+ S0rin (~S0rin@user/s0rin)02:22
AbortRetryFailI've salvaged dozens of 18650 cells from old laptop batteries. They're all li-ion though not lifepo4 03:22
dozensdozens you say??03:22
AbortRetryFailyeah, often the "high capacity" packs have 9 or 12 cells in them, when they are "dead" it's just one of the cells is gone bad03:23
AbortRetryFail"18650" is just the dimensions of the cell. 18mm diameter x 65mm length03:24
AbortRetryFaillol dammit, i am looking at weechat colors here and didn't realize i hit you with a nick hilight, sorry :)03:25
dozenshappens all the time ;)03:36
- nsc (QUIT: Ping timeout: 240 seconds) (~nicolas@236-98-142-46.pool.kielnet.net)03:39
+ nsc (~nicolas@236-98-142-46.pool.kielnet.net)03:40
+ vagrantc (~vagrant@2600:3c01:e000:21:7:77:0:50)03:56
+ mtm- (~mtm@c-71-228-84-213.hsd1.fl.comcast.net)04:10
- vagrantc (QUIT: Quit: leaving) (~vagrant@2600:3c01:e000:21:7:77:0:50)04:38
- eery (QUIT: Remote host closed the connection) (~eery@77.137.65.251)06:19
+ bgs (~bgs@212-85-160-171.dynamic.telemach.net)07:15
+ reading (~reading@174.164.41.109)07:56
readinggreetings, i have a few questions about the lpc firmware update process07:57
ex-parrotask away reading 07:58
readingfirst off, is there an artifact in the CI pipeline somewhere for the firmware.bin? ive poked around here but didnt find anything: https://source.mnt.re/reform/reform/-/tree/master/reform2-lpc-fw07:58
readingsecondly, im getting a build error when i try to make it myself which i didnt get around a month ago and was wondering if anyone can help me debug. i see there havent been any checkins since it worked last time, so the issue is on my end. but i blew away my dev environment and am not sure what's different this time around08:00
readingso i was hoping for a quick download of the firmware.bin from somewhere in the repository in case it takes a while to debug my build environment.08:03
- bgs (QUIT: Remote host closed the connection) (~bgs@212-85-160-171.dynamic.telemach.net)08:07
readingas for the build error, the reform2-lpc-fw/tools/lpcrc makes fine first, but when i then try to make from reform2-lpc-fw i get the following error:08:12
readingLINKING bin/firmware.elf (cortex-m0 -O2 CFG_BRD_REFORM2)08:12
reading /usr/lib/gcc/arm-none-eabi/12.2.1/../../../arm-none-eabi/bin/ld: cannot find -lm: No such file or directory08:12
readingah, gotta run for now but ill check the irc logs later in case someone happens to have any tips. thanks08:28
- reading (PART: !!unknown attribute: msg!!) (~reading@174.164.41.109)08:28
- mjw (QUIT: Ping timeout: 248 seconds) (~mjw@gnu.wildebeest.org)13:00
* mark_ -> mjw13:52
- mtm- (QUIT: Ping timeout: 250 seconds) (~mtm@c-71-228-84-213.hsd1.fl.comcast.net)14:02
- mtm (QUIT: Ping timeout: 250 seconds) (~mtm@c-71-228-84-213.hsd1.fl.comcast.net)14:02
- robin (QUIT: Remote host closed the connection) (~robin@user/terpri)14:10
+ robin (~robin@user/terpri)14:11
- robin (QUIT: Remote host closed the connection) (~robin@user/terpri)14:14
+ robin (~robin@user/terpri)14:14
- robin (QUIT: Remote host closed the connection) (~robin@user/terpri)14:16
+ robin (~robin@user/terpri)14:16
- robin (QUIT: Remote host closed the connection) (~robin@user/terpri)14:19
+ robin (~robin@user/terpri)14:19
- robin (QUIT: Read error: Connection reset by peer) (~robin@user/terpri)14:30
+ robin (~robin@user/terpri)15:03
+ eery (~eery@77.137.65.251)16:04
+ mtm (~mtm@c-71-228-84-213.hsd1.fl.comcast.net)16:08
joschreading: if you are writing the logs later, let me write you now even though you are offline :)16:10
joschvagrantc is working on making the firmware binaries available as a Debian package: https://salsa.debian.org/vagrant/mnt-reform-firmware16:11
+ mtm- (~mtm@c-71-228-84-213.hsd1.fl.comcast.net)16:11
joschon which platform are you building this and what command are you running?16:11
joschi can also build (and sign with my gpg key) a lpc firmware binary for you if you'd like16:12
+ mark_ (~mjw@gnu.wildebeest.org)16:30
- mark_ (QUIT: Ping timeout: 265 seconds) (~mjw@gnu.wildebeest.org)17:11
+ vagrantc (~vagrant@2600:3c01:e000:21:7:77:0:50)17:44
joschvagrantc: earlier a user was interested in prebuilt reform lpc firmware files -- how far is your Debian packaging of those?17:55
- XYZ (QUIT: Remote host closed the connection) (~XYZ@89-24-41-33.nat.epc.tmcz.cz)18:17
+ XYZ (~XYZ@89-24-41-33.nat.epc.tmcz.cz)18:26
vagrantcjosch: i've only built them for myself ... but it worked last i tried :)18:53
vagrantcjosch: the whole upstream monorepo thing makes it kind of mildly frustrating to maintain over time ... but not a total deal breaker18:54
+ mark_ (~mjw@gnu.wildebeest.org)18:54
- mjw (QUIT: Killed (NickServ (GHOST command used by mark_!~mjw@gnu.wildebeest.org))) (~mjw@2001:1c06:2488:1400:4fd:39a7:74ac:7bae)19:00
* mark_ -> mjw19:00
+ mark_ (~mjw@2001:1c06:2488:1400:4fd:39a7:74ac:7bae)19:01
- robin (QUIT: Quit: Leaving) (~robin@user/terpri)19:04
joschminute: can we have git tags for the lpc and keyboard firmware? this is of course a bit weird because of the mono-repo but it would be nice if one could say "i'm running version X of the firmware"19:21
+ robin (~robin@user/terpri)19:23
AbortRetryFailI'm glad I was not the only one confused about the LPC firmware versions.19:27
minutejosch: yes, wondering how they should be formatted. iso dates?19:28
joschminute: i guess that depends on whether you want to have something similar to semver or just rolling releases?19:34
joschideally, that version should also be displayed when pressing circle+s19:34
joschthe current firmware has been saying 20220221 for a while19:35
joschthat would be FW_STRING3 in reform2-lpc-fw/src/boards/reform2/board_reform2.c19:36
joschand KBD_FW_REV in reform2-keyboard-fw/constants.h19:36
joschi guess you should go with just an iso8601 based version string because semver doesn't make much sense in a mono-repo, right?19:37
- eschaton (QUIT: Ping timeout: 248 seconds) (~eschaton@li541-49.members.linode.com)19:52
- jnerula (QUIT: Ping timeout: 240 seconds) (~jnerula@li1009-93.members.linode.com)19:53
+ jnerula (~jnerula@li1009-93.members.linode.com)19:54
+ eschaton (~eschaton@li541-49.members.linode.com)19:55
+ nocko (~nock@user/nocko)20:39
+ reading (~reading@174.164.41.109)20:40
AbortRetryFailor change the FW_STRING3 so it gets populated at build time with the git short hash20:47
minutejosch: yes, rolling makes more sense20:55
minuteand it also tells you how old that is at a glance20:55
readingjosch: im running debian unstable on a reform =). and was following the instructions from nanocodebug on july '22 in this thread https://community.mnt.re/t/lpc-spi-firmware-and-driver-prototype/1030/1820:56
readingthe first make in reform2-lpc-fw/tools/lpcrc worked but the second make in reform2-lpc-fw is the one that failed20:56
readingand actually, just searching through the history of that repository i may have just answered my own question. for some reason i thought this had been merged back upstream into the main reform tree. so i was just following these instructions but inside a clone of the main reform/reform21:04
readinghum. but the lpc driver was definitely been merged back into reform-tools. so does that mean the reform2-lpc-fw in reform/reform is out of sync with the NanoCodeBug/reform-lpc-fw-spi fork?21:13
readinghopefully that makes sense. im only now trying to ramp up on the codebase and git organization, so i may be totally confused =p21:17
readinglet me go try buildling the firmware from nanocodebug's fork and see if that works. (ill keep checking the irc logs, thanks for responding btw)21:19
- reading (QUIT: Quit: Client closed) (~reading@174.164.41.109)21:19
joschAbortRetryFail: this makes it harder to build without the git but from release tarballs instead -- in Debian you don't have the upstream git at hand but a tarball instead21:30
AbortRetryFailhm, good point21:30
minutereading: i have recently built the fw on my computer and didn't experience your problem. let me try again21:32
minutereading: i am on master branch of https://source.mnt.re/reform/reform21:33
minutereading: arm-none-eabi-gcc (15:12.2.rel1-1) 12.2.1 2022120521:34
minutereading: you probably need the package libnewlib-arm-none-eabi, maybe it's not installed?21:35
joschreading: to build all the reform firmware you need the following packages: avr-libc gcc-avr gcc-arm-none-eabi libnewlib-arm-none-eabi21:37
joschI also just successfully built from git a55fa397d18cfaa630f67bcf96dcb4b6300476b121:37
joschreading: also, if you are looking to upgrade your lpc firmware to get the battery status updates you do not need to build any fork21:40
joschi would like to tell you what firmware i'm running but the versioning is missing ;)21:41
joschminute: would you like a merge request to get the versioning thing going?21:41
joschminute: would you like some gitlabci thing to build the firmware so that it gets published as an artifact?21:41
joschhrm... but it would be nice if, when building any firmware from mnt.re git, the version would include the git hash21:54
joschsomething similar to git describe --always --dirty --tags21:55
+ reading (~reading@174.164.41.109)21:56
joschvagrantc: do you know an easy way to do that such that this does not interfer with the packaging git? Maybe d/rules passes the version as read from dpkg-parsechangelog to the build to override this?21:56
readingminute/josch: thank you. that was it i was just missing those packages21:58
vagrantcjosch: not quite following ... you want a firmware-specific version?22:02
vagrantcjosch: and each firmware in theory would have it's own version ...22:03
vagrantcor you just use the git head ...22:03
readingare the full build insructions online or in the repo somewhere? id like to make sure im not missing anything else for the future22:03
joschvagrantc: minute said that they would just do a date-based tagging for the repo22:04
joschvagrantc: it would be nice if the built firmware included that tag22:04
joschnow it would be simple to just edit the respective headers with the tag name for each commit that one puts the tag on22:04
joschthe disadvantage of that would be that if one builds from git between two tags, this information would not be reflected in the built firmware files22:05
vagrantcjosch: could either pass configure options to override or maybe environment variables. ..22:05
vagrantci mean, in theory ... would require code changes to make it actually work22:05
joschas such it would be nicer if the built generated that version on the fly, for example by running "git describe --always --dirty --tags"22:05
josch(which is what i saw other projects run)22:06
joschbut that would break the Debian packaging as it would pick up the tags from the packaging git22:06
vagrantcright22:06
joschso i was wondering what you are thinking about overriding that information with an argument to make, environment variable or some such22:07
vagrantcalso, the newer trackball2 firmware requires things not in debian yet22:07
joschthat variable could automatically be filled from the output of dpkg-parsechangelog22:08
joschvagrantc: do you have a trackball2?22:08
vagrantcno22:08
joschme neither, so it's not a problem ;)22:08
vagrantcbut someone surely does...22:08
vagrantcand i guess they can fix it if they want it. :)22:08
joschwell, it's certainly not a blocker22:09
vagrantcjosch: i do not see anything wrong with passing variables or configure or make arguments or whatever for specific firmware versions22:09
joschoh, the pico-sdk?22:09
joschvagrantc: okay, then i'll propose doing it like that to minute and then send you a merge request as well once that is done (unless you want to set this up yourself)22:10
vagrantcjosch: if you're motivated to do it, please go for it. :)22:10
vagrantchappy to see merge requests as long as i understand them :)22:10
joschit will be a simple one22:11
joschi'm just annoyed that pressing circle+s doesn't show me the firmware version i'm running22:11
joschand i'm annoyed that it already happened multiple times that people come online here and ask how they should compile the firmware -- i don't think they should have to do that22:12
joschso i want to fix this :)22:12
vagrantcgood. :)22:13
- eery (QUIT: Ping timeout: 240 seconds) (~eery@77.137.65.251)22:17
readingjosch: thanks for the help, i should have just come here first instead of searching the forum =). im hoping to poke around the codebase some more, are there full build instructions somewhere i can walk through? (like in case the needed packages change at some point)22:19
joschminute: this pipeline is stuck again: https://source.mnt.re/josch/reform/-/pipelines/95322:19
joschminute: maybe you have to manually enable the CI for my fork?22:20
joschreading: they are here for the keyboard: https://mntre.com/reform2/handbook/parts.html#keyboard-firmware22:21
joschhrm... the lpc section of the handbook misses compilation instructions: https://mntre.com/reform2/handbook/parts.html#flashing-the-firmware22:22
readingjosch: yea thats what i was following initially but the package list isnt there22:22
readingheh, right22:22
joschreading: I used this for the package list: https://salsa.debian.org/vagrant/mnt-reform-firmware/-/blob/wip/debian/latest/debian/control22:23
readingi only picked up the (partial/incorrect) list from forum searching22:23
joschif all goes well the problem should soon be fixed by a) downloadable firmware from gitlab artifacts and b) installable firmware via a signed Debian package22:24
readingreading: ahh very nice. yes that's perfect thank you. im new to linux development, so sorry if this was something obvious i should have known =)22:26
readingerr, that was for josch obviously. i only talk to myself in my head22:27
joschreading: no worries, if nobody complains and puts their finger at a problem, things don't get fixed, so thank you! :)22:27
minutejosch: yes, a MR to get the versioning going, for sure22:30
minutejosch: and gitlabci artifact: yes pleaes22:31
minuteplease22:31
readingwell, im off to flash away. thanks again for the help!22:31
minutereading: enjoy!22:31
minutei have just tested external PCIe (via special hdmi cable/adapter) on the LS1028A for the first time, works22:32
- reading (QUIT: Quit: Client closed) (~reading@174.164.41.109)22:32
joschnice!! @ LS1028A hdmi+pci :)22:33
joschminute: do you have an idea why my pipeline is stuck?22:33
minutejosch: lets see, maybe it's on the wrong builder22:35
minutereform does not have a builder yet!22:37
joschit didn't have a .gitlab-ci.yml yet, so that makes sense :)22:37
minutejosch: the builder is now assigned to your fork and to the main repo22:38
joschthank you!! :)22:39
minuteit's doing something https://source.mnt.re/josch/reform/-/jobs/124322:39
joschnice :)22:39
joschwell that was easy22:40
joschsucceeded on the first try22:40
minutenice!22:40
joschreading left a few minutes too early XD22:40
minutewow, all 3 at once!22:41
joschlpc is missing22:42
joschso there was a problem22:42
joschpushed the fix now22:42
joschseems to work now -- feel free to merge https://source.mnt.re/reform/reform/-/merge_requests/4122:45
joschthis also documents the needed dependencies and it documents the commands needed to compile everything22:45
minutejosch: perfect, thanks! good work!22:52
- S0rin (QUIT: Ping timeout: 248 seconds) (~S0rin@user/s0rin)22:53
+ S0rin (~S0rin@user/s0rin)22:54
joschreading: in case you read this from the log, there are now officially built firmware files here: https://source.mnt.re/reform/reform/-/jobs/1245/artifacts/browse23:10
- S0rin (QUIT: Ping timeout: 256 seconds) (~S0rin@user/s0rin)23:26
+ S0rin (~S0rin@user/s0rin)23:27

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