2023-10-03.log

- colinsane (QUIT: Quit: bye) (~colinunin@97-113-128-229.tukw.qwest.net)00:02
+ colinsane (~colinunin@97-113-128-229.tukw.qwest.net)00:04
- S0rin (QUIT: Ping timeout: 255 seconds) (~S0rin@user/s0rin)00:13
+ S0rin (~S0rin@user/s0rin)00:13
- klardotsh (QUIT: Ping timeout: 272 seconds) (~klardotsh@c-67-170-115-80.hsd1.wa.comcast.net)00:17
- colinsane (QUIT: Quit: bye) (~colinunin@97-113-128-229.tukw.qwest.net)00:34
+ colinsane (~colinunin@97-113-128-229.tukw.qwest.net)00:36
- jacobk (QUIT: Quit: http://quassel-irc.org - Chat comfortably. Anywhere.) (~quassel@utdpat241106.utdallas.edu)00:41
+ jacobk (~quassel@utdpat241106.utdallas.edu)00:44
- mjw (QUIT: Ping timeout: 252 seconds) (~mjw@gnu.wildebeest.org)00:59
+ klardotsh (~klardotsh@c-67-170-115-80.hsd1.wa.comcast.net)01:53
- mtm (QUIT: Ping timeout: 272 seconds) (~mtm@c-71-228-84-213.hsd1.fl.comcast.net)02:02
+ bkeys (~Thunderbi@134.22.115.162)02:30
- jacobk (QUIT: Ping timeout: 255 seconds) (~quassel@utdpat241106.utdallas.edu)02:38
- nsc (QUIT: Ping timeout: 255 seconds) (~nicolas@84-97-142-46.pool.kielnet.net)03:09
+ nsc (~nicolas@128-48-142-46.pool.kielnet.net)03:11
+ mtm (~mtm@c-71-228-84-213.hsd1.fl.comcast.net)04:07
+ jacobk (~quassel@129.110.242.173)04:37
+ chomwitt (~chomwitt@2a02:587:7a24:b000:1ac0:4dff:fedb:a3f1)07:24
- jacobk (QUIT: Ping timeout: 255 seconds) (~quassel@129.110.242.173)07:24
- chomwitt (QUIT: Ping timeout: 264 seconds) (~chomwitt@2a02:587:7a24:b000:1ac0:4dff:fedb:a3f1)07:55
- jomo (QUIT: Quit: The Lounge - https://thelounge.github.io) (~jomo@user/jomo)07:59
+ jacobk (~quassel@64.189.201.150)08:30
- GNUmoon (QUIT: Remote host closed the connection) (~GNUmoon@gateway/tor-sasl/gnumoon)08:41
+ GNUmoon (~GNUmoon@gateway/tor-sasl/gnumoon)08:42
- jacobk (QUIT: Ping timeout: 248 seconds) (~quassel@64.189.201.150)09:06
+ chomwitt (~chomwitt@2a02:587:7a24:b000:1ac0:4dff:fedb:a3f1)09:11
- klardotsh (QUIT: Ping timeout: 255 seconds) (~klardotsh@c-67-170-115-80.hsd1.wa.comcast.net)09:18
vkoskivExciting day today, UPS says A311D will arrive before end of day09:20
vkoskivI wonder if I'm in the first batch, then? I haven't read much about people doing the upgrade yet09:20
Boostisbettervkoskiv: congrats! Looking forward to hearing about it!09:37
vkoskivI'll definitely try to document my findings09:41
minutevkoskiv: we only sent out around 16 so far i think? so you're one of the first, yup10:10
+ mjw (~mjw@gnu.wildebeest.org)10:58
+ dmorn (~dmorn@host-95-231-165-204.business.telecomitalia.it)11:45
- dmorn (PART: !!unknown attribute: msg!!) (~dmorn@host-95-231-165-204.business.telecomitalia.it)11:46
violetyeah i think mine's set to arrive tomorrow as well12:56
violetlooking forward to trying quartz shenanigans12:57
vkoskivviolet: quartz?13:01
violetpine64 has a cm4-compatible module called the soquartz, which i happen to have a number of 13:02
violet4x cortex a55, 8 gigs ram, panfrost-compatible GPU13:03
vkoskivAah, cool13:03
violetso its a nice low-power option13:03
violetbut no idea if itll actually work. minute hasnt had the bandwidth to attempt any sort of bringup on it, so im going to be experimenting13:04
- Boostisbetter (QUIT: Ping timeout: 255 seconds) (4a410829d7@irc.cheogram.com)13:08
+ Boostisbetter (4a410829d7@irc.cheogram.com)13:20
- mjw (QUIT: Ping timeout: 272 seconds) (~mjw@gnu.wildebeest.org)13:56
* mark_ -> mjw13:59
- mtm (QUIT: Ping timeout: 260 seconds) (~mtm@c-71-228-84-213.hsd1.fl.comcast.net)14:03
abortretryfailminute: is that modification to delete the UVLO circuit documented in detail somewhere? I was just looking at the schematic and EN on the standby regulator is tied to battery Vout via a 0 ohm resistor (R1), this also matches my motherboard.14:11
minuteabortretryfail: what's your motherboard revision?14:12
abortretryfailR214:12
abortretryfailMore specifically, MREFPMOB20R0214:13
minutehm, you are correct... my memory of this was wrong, then14:16
abortretryfailno worries. Maybe that was a problem with an earlier revision?14:16
minutevery possible, maybe the beta version14:16
minutebtw TIL about "blue patch" or nylok screws14:20
vkoskivI thought that was just blue threadlock that manufacturers put on screws before installation14:21
vkoskivApparently they sell them with goop preapplied? Huh14:21
abortretryfailheh, time saver.14:22
minuteit's not threadlock14:35
minuteit's nylon14:35
minutei also thought it was just loctite14:35
abortretryfailyeah, like the built-in washers in lock nuts14:36
minutehttps://nylok.com/wp-content/uploads/2021/06/BluePatchTorqPatch-2019.pdf14:36
minuteyeah14:36
- GNUmoon (QUIT: Remote host closed the connection) (~GNUmoon@gateway/tor-sasl/gnumoon)14:58
+ jacobk (~quassel@64.189.201.150)15:05
- stites (QUIT: Ping timeout: 260 seconds) (~stites@130.44.147.204)15:18
+ stites (~stites@2607:fb91:dc1:c31f:f5a5:ac9:104d:5b91)15:19
- stites (QUIT: Read error: Connection reset by peer) (~stites@2607:fb91:dc1:c31f:f5a5:ac9:104d:5b91)15:42
+ stites (~stites@155.33.132.39)15:42
- stites (QUIT: Read error: Connection reset by peer) (~stites@155.33.132.39)15:44
+ stites (~stites@155.33.132.39)15:45
- cwebber (QUIT: Read error: Connection reset by peer) (~user@user/cwebber)15:56
vkoskivI wonder why UPS still does the weird dance of "we couldn't deliver to your door, pick up here instead"16:02
vkoskivWould be much nicer if they just said to pick up at place X in the first place16:02
sevanheh16:03
vkoskivIt's not evident to me that they even attempt direct delivery anyway. The packages have my phone #, address and the door code on them, they don't call or anything.16:03
vkoskivI don't mind, the drop off point is nearby, and I need to pick up groceries anyway, but it's just a weird experience every time16:04
vkoskivPretty sure it's just a case of the delivery people not being given enough time to reasonably deliver everything.16:04
abortretryfailthey deliver to my house no problem. that wasn't the case when i lived in an apartment.16:05
sevansame for me, when the reform turned up & when the upgraded battery bank. They rang the bell, I let them in. Couple of minutes later I receive a message that "we tried to deliver your parcel but you weren't in" :D16:05
vkoskivI think I've ever had one package actually delivered to my door in the last X years. I was quite bewildered :D16:06
vkoskivThat was domestic Posti, though. Maybe they have more reasonable schedules.16:06
vkoskivAaand it's ready for pickup. That was fast16:08
vkoskiv16:22: "couldn't deliver". Just now: Ready for pickup16:08
vkoskivProbably a good idea to rsync ~ to my desktop before doing anything w.r.t. migrating my nvme luks to work with the new module16:09
+ mtm (~mtm@c-71-228-84-213.hsd1.fl.comcast.net)16:09
vkoskivAlthough, since /boot is on emmc, does the actual luks volume need anything done to it when swapping a module?16:10
vkoskivI need to scroll up to re-read josch's overview of the process from some days ago16:10
abortretryfaillol, i put the reform handbook PDF on my Kobo Clara HD ereader and the text is all trainwrecked together :D 16:18
abortretryfailwonder if Calibre can fix that16:19
+ cwebber (~user@user/cwebber)16:22
dozensi wonder if it tried to convert the pdf to epub or something16:25
vkoskivI wonder why the OLED specs say it's 128px wide when it's actually 126px, seemingly16:31
vkoskivI did see the 126px limit in the firmware in matrix_render_direct(), but I bumped that up to 128 and it's still not 128 columns wide16:32
vkoskivthing is, if I adjust my light just right, and light up pixel at index 125, I can actually see two extra columns of pixels to the right of it16:33
vkoskivSo physically the pixels are there16:33
vkoskivI tried reading the OLED module documentation, but it all seems to just assume it's 128x6416:35
vkoskivOh, I think it might be to make firmware text writing work nicer, since 126/6 is an even 2116:39
vkoskivBut that same limit is imposed on arbitrary bitmaps coming from HID reports16:40
vkoskivHey! I think I fixed a bug :D16:41
vkoskivI can now address the full 128x64 from Linux.16:41
vkoskivDoesn't touch the existing text rendering code, just removes that limit from bitmap draws16:42
vkoskivTook me a while to figure this out too, I ran into this last year, but didn't get this far in my investigation16:45
vkoskivTweaked kbdgfx to match, MR to follow.16:46
abortretryfaildozens: no it renders pdfs, but it tried to scale/reflow the text or something and it all just crashed together.16:58
- stites (QUIT: Read error: Connection reset by peer) (~stites@155.33.132.39)17:35
+ stites (~stites@155.33.132.39)17:36
- stites (QUIT: Read error: Connection reset by peer) (~stites@155.33.132.39)17:38
+ stites (~stites@155.33.132.39)17:39
- stites (QUIT: Read error: Connection reset by peer) (~stites@155.33.132.39)17:41
+ stites (~stites@155.33.132.39)17:41
+ klardotsh (~klardotsh@c-67-170-115-80.hsd1.wa.comcast.net)18:03
- jacobk (QUIT: Ping timeout: 248 seconds) (~quassel@64.189.201.150)18:27
minutevkoskiv: there's UPS My Choice where you can preselect that18:27
+ vagrantc (~vagrant@2600:3c01:e000:21:7:77:0:20)18:34
vkoskivYeah, I think I did that too late perhaps18:37
vkoskivBut the email said they did try, maybe it's a glitch18:37
vkoskivI have in my posession a box with MNT tape 8)18:37
vkoskivI do hope they don't charge you by weight, because this box says 11KG and another label 10.5KG, and it is most certainly not that.18:38
minutenice. not nice @ the 10kg, what? :D18:47
minutesounds like a zero too much18:47
vkoskivIt said that in the tracking and on the box as well18:47
minutebizarre18:50
minutehmm. i hope the weight is not set up wrongly in the shop18:50
minuteit actually is18:51
minutevkoskiv: thanks for reporting this!18:52
vkoskivGlad to help!18:52
+ mark_ (~mjw@gnu.wildebeest.org)18:53
vkoskivIf I were to use the M.2 -> mPCIe adapter with the imx8 module, could I put two SSDs in here? :D18:57
minutevkoskiv: rcm4 has only one pcie lane unfortunately18:58
minute(one could develop a rcm4 version with a pcie switch--but alas, i did not)18:58
vkoskivYeah, but with the existing imx8 I mean18:58
vkoskivSince that already uses M.2 + PCIe for the wifi18:58
minutevkoskiv: ah sorry, didn't catch that. yes, you could18:58
vkoskivFun! So a module somewhere down the line could also make use of both18:59
minuteso you could use ZFS mirroring or sth18:59
vkoskivCool, I'm waiting for this rsync to finish, then I'll start hardware hacking18:59
vkoskivBy hacking I mean plugging connectors into each other :D18:59
vkoskivTwisting a few screws18:59
vkoskivAnd I just discovered that my home network is somehow broken19:00
vkoskivrsync over ethernet to my box seems to fail after a while, and connections on my desktop slow to a crawl19:00
vkoskiv4MB/s over gigabit ethernet? Yeah, right19:00
minutemhm mhm!19:01
vkoskivTIL pigz is a much faster gzip19:07
vkoskivUses multiple threads to compress19:07
minuteyep, we use that in the CI as well19:13
- mjw (QUIT: Killed (NickServ (GHOST command used by mark_!~mjw@gnu.wildebeest.org))) (~mjw@2001:1c06:2488:1400:4fd:39a7:74ac:7bae)19:15
* mark_ -> mjw19:15
+ mark_ (~mjw@2001:1c06:2488:1400:4fd:39a7:74ac:7bae)19:16
vkoskivI wonder what the odds are that the Pi5 cm will have the same connectors/footprint19:23
minutecan't have exactly the same i think19:25
vkoskivAdmiring the hardware while data is migrating19:35
vkoskivCan't look at it much once the thermal pad is on there19:35
vkoskivI forgot this has 6 cores! I remember hearing that the linux kernel knows to schedule background tasks more on the A53 cores, is that right?19:36
minutehaven't really looked into this yet!19:38
minutefound this https://docs.kernel.org/scheduler/sched-capacity.html19:38
- robin (QUIT: Ping timeout: 260 seconds) (~robin@user/terpri)19:49
abortretryfailUPS expedited is the only option for shipping a couple battery boards and keycaps? The shipping alone is like 40 euros :(19:50
abortretryfail(to USA, FL 33714) 19:50
klardotshping bnys maybe, they're up here in the PNW which at least might reduce the shipping cost. unsure if they have those parts handy but they do group buys and so forth every so often, battery boards were one19:51
abortretryfailis that somebody's name?19:53
klardotshit's their screenname on the forum and on mastodon. I dunno if I see them in here much, I just idle here on occasions :)19:53
Boostisbetterhe lives in Washington, I believe. He has organized some group shipping things, I beleive as wlel. 19:54
Boostisbetterhe lives in Washington, I believe. He has organized some group shipping things, I beleive as well. 19:54
abortretryfailah okay19:55
+ ajr (uid609314@user/ajr)19:58
klardotsh10/10 recommend the battery boards though. last time I left a Reform unplugged from the wall for a month I came back to cells under 2.2V (read: perma-dead). this time I came back to cells all at exactly 2.21V (read: trickle charge to bring back to life, then bulk charge, and now they work "fine" it seems so far)19:58
abortretryfailhmm. i wonder if i can do this faster and cheaper by ordering the PCBs from oshpark, extra components from digikey, and desoldering the rest of the bits from my original boards.19:59
+ robin (~robin@user/terpri)19:59
Boostisbetterhey maybe, but I can absolutely speak to MNT's quality products. So up to you. 20:00
abortretryfailOh sure, I'm only considering this because overseas shipping is a hassle and I can do this kind of work myself. :)20:03
minutebnys is brendan who works with us in the US. he also organizes group buys sometimes to reduce shipping cost to US20:06
minuteabortretryfail: the only special sauce on those boards are the nisshinbo R5617L020FF, available at mouser20:08
abortretryfailYeah, I was checking out the board schematic. Seems pretty straightforward20:08
minutebtw i just pushed a little update for keyboard v3 firmware (not sure if any of you have this one yet though...) which puts home/end/pgup/pgdn on hyper+cursor keys20:09
abortretryfailooh, i want that on my v2 20:11
abortretryfailACTION git pulls20:11
abortretryfailhuh a big lpc change too20:12
- stites (QUIT: Read error: Connection reset by peer) (~stites@155.33.132.39)20:12
+ stites (~stites@155.33.132.39)20:12
vkoskivRelated: Small MR for the keyboard fw: https://source.mnt.re/reform/reform/-/merge_requests/4720:14
vkoskivFixes the missing 2px on the right edge of OLED when drawing via HID WBIT commands20:15
- Ar|stote|is (QUIT: Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) (~linx@149.210.32.204)20:15
vkoskivTested on my unit, it doesn't touch any of the keyboard-local drawing code20:15
+ Ar|stote|is (~linx@149.210.32.204)20:16
minuteabortretryfail: lpc change was just not merged before (oversight), it's to support motherboard 2.520:22
minutevkoskiv: cool, thanks! IIRC i also did a similar fix when i ported the code to rp2040 for the pocket... this doesn't affect the position of the current text/menus, yes?20:23
vkoskivIt doesn't touch the menus at all, no. Purely drawing from HID WBIT commands.20:24
vkoskivI also fixed the kbdgfx demo, so you can give it a go, should see all 128 columns active20:25
+ jacobk (~quassel@utdpat241088.utdallas.edu)20:37
minutevkoskiv: thanks, lets merge this21:02
- jacobk (QUIT: Ping timeout: 255 seconds) (~quassel@utdpat241088.utdallas.edu)21:06
vkoskivThis rsync is taking forever21:21
vkoskiv1.1kB/s over ethernet, and one switch in between21:21
vkoskivbleh21:21
vkoskivI had to move to a spinning disk for storage, my main system is running out of space on the nvme21:22
vkoskivSo I think it's trying to figure out what to send and what not21:22
abortretryfailhome/end on hyper+pgup/hyper+pgdn is non-terrible. 21:22
vkoskivlots of reading on dest system spinning rust21:22
joschmy reform now turns off at around 20% battery remaining :(21:30
joschminute: maybe i should flash a new lpc firmware that sets 0% at a different charge level?21:30
abortretryfailI thought it learns the new 0% when it gets to undervolted21:31
joschabortretryfail: does that work for you?21:31
abortretryfailNot at all. Mine is basically guaranteed to say ???% unless it's plugged in all day.21:32
joschmine will say ???% once it undervolted and switched off21:34
joschit does so right now21:34
joschso it's learning 100% again now21:34
vkoskivThe difference between the sysv4 images is basically just the bootloader part, right?21:53
vkoskivSo when I swap in this module, it'll try to boot off the SD card, so I'll flash a fresh image on there21:53
vkoskivThen start trying to patch the boot config to get it to boot my nvme21:53
joschvkoskiv: nope, sysv4 has quite a few changes compared to sysv3 -- much more than just the bootloaders21:54
vkoskivI'm already running sysv4 though21:54
joschnice21:54
vkoskivJust planning what to do after swapping. You mentioned the steps a while ago, I'll re-read them21:55
joschi recently wrote down some steps of what to do21:55
joschah yes21:55
joschthose steps should be written down because they are not only important when swapping the SoM21:55
joschthe exact same steps have to be taken any time, /boot on emmc gets messed up21:55
joschso documenting this is even important when *not* swapping SoMs21:55
joschdocumenting this is hard because there are so many possible setups21:58
joschi'm running root+swap inside lvm inside luks on nvme, so i will document that21:58
vkoskivFound the steps, September 28th I think was the date21:58
joschvkoskiv: are you going to do this now?21:59
vkoskivHopefully? It's getting a bit late and my rsync is still going21:59
joschit's 22:00 where i am, i can stay up a bit longer to potentially assist :)21:59
vkoskivYeah, I think I'll get going shortly22:00
vkoskivflashing sd card while it's doing that too22:01
vkoskivWonder if there are any other steps I could do to make my life easier22:01
vkoskivI already installed updates, I'll do that once more before opening the back22:02
joschtake photos! :D22:02
vkoskivWill do!22:03
vkoskivOoh! There we go, rsync finished22:05
jjblissSorry to hop in the middle of this conversation, but I just got my RCM4/A311D board.  I've swapped the module and it seems to be working great.  I've got it booting from a fesh sdcard image right now.  @josch are these steps you mentioned for migrating an existing install for the new SoM? I've had an existing install from a v3 image on NVME with /boot on sdcard.22:07
vkoskivI'm just about to start the process. Though I have my /boot on emmc. And I'm already on Sysv422:07
joschjjbliss: i posted some untested steps a few days ago. There is no step-by-step process yet that was tried and worked.22:08
vkoskivjosch: okay if I pastebin the steps you outlined22:09
vkoskivOr is there a better text paste service than pastebin22:09
joschvkoskiv: feel free to pastebin what i wrote22:09
joschalternatively:22:09
vkoskivhttps://pastebin.com/Yqk19JBx22:10
joschhttps://mntre.com/reform-irc-logs/2023-09-28.log.html#t13:27:0522:11
jjblissThanks!22:11
- blast007 (QUIT: Quit: When the pin is pulled, Mr. Grenade is not our friend) (~blast@user/blast007)22:11
+ blast007 (~blast@user/blast007)22:13
vkoskivfor /sys and /dev I want --rbind, right? And for /proc just 'mount -t proc /proc /mnt/proc'22:14
vkoskivNot there yet, just reminding me of things22:14
vkoskivSD card is doing SD card things at many megabytes per second22:15
joschvkoskiv: just -o bind should work. Whether or not you do the recursive version matters for some niche things you probably do not need when regenerating initramfs.22:16
joschmounting proc should be: mount -t proc proc /mnt/proc22:16
joschor you could bind-mount that as well22:17
vkoskivOkay, system is now going down for surgery!22:22
vkoskivAnd it begins22:22
abortretryfailbest of luck22:22
vkoskivI'll go wash my hands first22:22
vkoskivDish soap works good to deep-remove finger oil. But only ever so often, as not to dry out skin.22:23
joschtoo late for my reform. mechanical keyboard also means that all kind of stuff enters the main box and starts collecting on the bottom acrylic...22:23
Boostisbettereasy to clean up though. Open the bottom and let it all fall out. hahaha22:26
minutesorry, i am on an "early" feierabend but looking in here every now and then because curious how your rcm4 upgrades are going22:27
joschtrue, but lots of stuff doesn't make it all the way down and gets stuck at the keyboard or mainboard22:27
Boostisbetterbtw, as the constant dude talking about suspend still, I just wanted to inform everyone I am up to 63 succesful resumes from suspend on the 6.5 kernel. 22:27
minutereform in dishwasher challenge22:27
joschthe worst is when i take my reform with me in my backpack or in the bike basket where it gets rattled a lot -- all the dirt gets rattled free XD22:27
minute(not tested)22:27
joschminute: you just want my money when i send it in for repair afterwards ;)22:28
minutelol!!22:28
joschsurprisingly i had quite a few things like usb stick and sd cards survive my washing machine22:28
Boostisbetterjosch: good to hear that the Reform handles the rattling of biking well. 22:28
vkoskivPulled the cells out for good measure, after disconnecting the boards22:29
minutejjbliss: did you notice a performance increase?22:29
joschyeah, it's too easy to accidentally touch some of the battery board contacts the wrong way with a metal tool...22:29
abortretryfaileven just touching the contacts or parts of the motherboard with your fingers will give you a good shock. 22:30
jjblissminute: Seems like a good increase so far, but I haven't done much yet.22:30
minutevkoskiv: btw i have not yet tested booting from emmc on a311d. not trivial to unbrick probably22:30
minutei am not sure if a311d rom prefers emmc or sd in boot order22:31
minutei guess i shall investigate that soon (i have the bpi base board for it which allows usb unbricking)22:32
joschBoostisbetter: yup, it's turned on all the time in my basket (because suspend doesn't work) and so far never has switched off during that treatment22:33
minutejosch: about lpc, not sure what's going on. i think what we need is some tooling to record and graph the mAh accounting to debug this more in depth22:33
Boostisbetterjosch: very impressive. 22:33
joschminute: but you have seen this issue yourself as well?22:33
minutejosch: i often get the ???22:33
Boostisbetterjosch: when you get the new board, I think it will be the end of an era that you can now suspend. 22:34
minutei haven't really checked at what % it turns off for me22:34
minuteBoostisbetter: why do you think so?22:34
minuteit's probably more related to the imx8mq som22:34
abortretryfailthe a311d reform doesn't have the issue?22:38
joschabortretryfail: the issue i have with suspend is specific to my unit -- others can suspend just fine with kernel 6.522:39
minuteabortretryfail: the a311d reform can't suspend at all atm22:39
minutethe hw can technically do it but the mainline drivers aren't fully ready i guess22:40
minutepersonally i don't really use suspend, i just turn the machine off and on. it boots pretty quickly with a311d22:40
joschi leave mine on 24/7 because setting up 11 workspaces full of stuff on every boot the way things were takes too much effort XD22:42
abortretryfailoh, misread. I thought it was about the ???% issue with the lpc. sorry22:42
abortretryfaili dont usually suspend my laptops since i had a HP that would over-discharge its battery in sleep, so i just shut it down. The only reason I did it on Sunday was as a test.22:43
minuteabortretryfail: ah, the ??? is not related to the processor. it's business of the LPC (separate microcontroller on the motherboard)22:45
abortretryfailright, i was confused :)22:46
abortretryfailhmm... the LPC can't read the RTC directly can it22:46
minuteabortretryfail: no.22:48
abortretryfaildarn22:49
minuteabortretryfail: why?22:49
abortretryfailwould be useful for the data logging battery life 22:49
vkoskivMIPI DSI cable is a bit tricky, the connectors are offset a bit22:50
vkoskivBut I got it in there22:50
minutevkoskiv: yep, just force it :D22:50
abortretryfailor detecting whether it has crashed/reset/brownout22:50
minuteabortretryfail: this it can detect22:52
abortretryfailsure, it can detect that it has happened, but not when or why22:53
minutewell, it does count the time22:53
minutejust relative, not absolute22:53
vkoskivThe way the heat sink perfectly aligns with the body is very satisfying22:53
abortretryfailhmm, maybe a relative uptime is enough22:54
vkoskivWhat are the 4 screws with the mPCIe adapter for?22:55
minutei think it always crashes/restarts/forgets the charge in sleep22:55
minutevkoskiv: idk, i didn't use any22:55
vkoskivI'll just reuse the screw I took off22:56
vkoskivScratch that, different threads22:56
vkoskivahh, I take the cylinder off with the screw on the back22:57
minutevkoskiv: yes exactly22:57
vkoskivAnd that then grabs the lip of the M.222:57
minuteyup yup22:57
vkoskivNot wrong threads, there's just a screw in there already22:57
+ jacobk (~quassel@129.110.242.224)22:57
minutethat's all you need... the adapter itself just snaps in22:57
vkoskivFrom the other side, yeah22:57
vkoskivClearly not MNT OEM part, this is the first time I have to swap out my screwdriver bit :D22:58
minutevkoskiv: btw sorry i didn't figure out a way to update reform-boot-config / nvme migration tooling on time22:58
minutevkoskiv: haha that's true, atypical for us, but i thought spinning my own adapter would be overkill r/n22:58
vkoskivIt's okay, it's good to remind myself of the process once in a while22:58
vkoskivLUKS is one of those things I do seldom enough to always forget the details :D22:59
vkoskivTook detailed shots of the M.2 adapter screw arrangement to document it23:00
minutei think mostly you need to adjust /etc/fstab and /etc/crypttab both on your target volume (nvme) and on the boot volume and then run update-initramfs -u again...23:02
minutemy fstab has (on a311d):23:02
minute /dev/mapper/crypt / auto errors=remount-ro 0 123:02
minute /dev/mmcblk0p1 /boot auto errors=remount-ro 0 123:02
minute(on a311d, mmcblk0 is sd card, and mmcblk1 is emmc, the other way around from imx8mq)23:02
vkoskivDouble-checked hw, putting it back together now23:03
joschi think /etc/crypttab can be left alone, no? Because neither the uuid nor the device name changed, right?23:03
minute ^-- by boot volume i actually mean the root fs of the sd card, imprecise wording here23:03
minutejosch: probably yes, but you need to copy it over to the sd card once so the first update-initramfs picks it up, no?23:04
minute(copies it into initramfs)23:04
minuteexcept if you chroot into your target system and do everything there after an apt update+upgrade23:04
minutewith the caveat that you need to mount /dev etc in the chroot23:05
joschminute: that's the strategy i suggested vkoskiv to use23:05
minuteok23:05
joschvkoskiv: we talked about the correct mount commands earlier. Here is what reform-boot-config does and that works: https://source.mnt.re/reform/reform-tools/-/blob/main/sbin/reform-boot-config?ref_type=heads#L22523:05
vkoskivFYI: Laird antenna doesn't fit between the two acrylics :D23:06
minutein my mind i have the ~vision~ of putting this all (i.e. a next version of reform-migrate) into a GUI wizard perhaps23:06
minutevkoskiv: hmm, for me it did23:06
minutemaybe a little squeezy?23:06
jjblissflip the antenna upside down23:06
jjblissand rotate it23:06
jjblissThere are two orientations that look like they will screw in place, but only one way fits the antenna right23:07
vkoskivGlued down already I'm afraid :D I think I can drill another screwhole and rotate the acrylic23:07
minuteohh. 23:07
vkoskivFor now, I'll leave it floating in there. It was floating before the upgrade too, WIP23:07
jjblissAH, I think I misunderstood23:07
minutethe acrylic is designed so that one end is flush with the ethernet connector23:07
vkoskivIt is installed that way, but I centered the antenna on there23:08
vkoskivIs yours on the left edge, if the batteries face you?23:08
minutehm. currently i don't have the laird in here but i had it in there before23:08
minutecurrently using molex23:08
minute(because i needed to test it also)23:08
minuteprobably we should make it 2mm rather than 3mm23:09
minute(thick)23:09
vkoskivYeah the acrylic sheet could def. just be thinner23:10
vkoskivOo, I found a spot where the acrylic just kinda sits in there, lower down23:10
vkoskivYeah, this will work23:11
joschminute: creating a script or even gui that does the migration could be tricky because of how heterogeneous everybody's setup will be i think23:12
joschremember the attempts to move people from sysimage-v2 to v3?23:12
minutejosch: yep, but i'd still want a solution for the most common cases. like, you get your new reform and sysimage v4 on sd. now you want to continue on nvme. this should be painless to do. right now, it's not23:13
minuteesp. on non-imx8m23:13
vkoskivIt found a nice spot in there, one corner between middle two battery holders, one edge just touching the internal line in pin, and another edge touching the big inductor (?) next to the HTP connector23:13
vkoskivAlright, flipping it over, moment of truth!23:14
vkoskivlol 323:14
jjblissYeah, I just tried to switch to booting from nvme, and I am getting some nvme timeout messages on boot23:14
vkoskivlol @ all the gunk that falls on the LCD from between the keys23:14
jjblissWell, booting from SD but with / on nvme23:14
minutejjbliss: how'd you set that up?23:15
minutejjbliss: can you see the effective kernel cmdline?23:15
minute(i.e. cat /proc/cmdline in rescue console)23:16
minutefor nvme on a311d these are essential: pci=pcie_bus_perf libata.force=noncq nvme_core.default_ps_max_latency_us=023:16
vkoskivBooted!23:17
vkoskivWasn't getting any video, but then I saw the SD card sitting on my desk23:17
minutevkoskiv: oh :D23:17
minutevkoskiv: also, display needs like 10 seconds to show up after sd boot23:17
vkoskiv> nproc23:17
vkoskiv623:17
vkoskivWooo!23:17
minutenoice23:17
joschvkoskiv: that's with rootfs on your luks nvme?23:18
vkoskivNo, just booted off the SD for the first time23:18
vkoskivNeed to set up the nvme stuff now23:18
vkoskivSSD detected, that's good23:18
abortretryfailI wonder how much proximity to the motherboard detunes that wifi antenna23:19
- S0rin (QUIT: Ping timeout: 272 seconds) (~S0rin@user/s0rin)23:21
vkoskivRF is black magic to me. So maybe. But then also maybe not?23:21
vkoskivAnd I mean, I'm a licensed HAM, so I'm supposed to know *something* about RF propagation23:21
vkoskivBut once you get >VHF, I'm kinda just ehhh..?23:22
abortretryfailalso a ham, but i dont have a VNA that goes into the gigglehertz to test it with23:22
abortretryfailI was doing some shopping online to see if anyone made a chassis mount one that i could stick out the back of the reform thru a hole, but not a lot of good luck there.23:22
abortretryfailTbh, it'd be absolutely sick to design a cut-in slot antenna into the metal of the display 23:23
violethey do i gotta switch back to unstable repo to use the banana23:24
vkoskivHmm, do I want /dev/mmcblk1boot0 or boot123:25
vkoskivfor /mnt/boot23:25
vkoskivGuessing 0?23:25
joschviolet: yes, the a311d either requires kernel 6.5 or you need to backports more patches to earlier versions23:25
violetkk23:25
jjblissminute: So, the nvme from i.mx8mq install.  I tried following josch's instructions for using chroot to run update-initramfs -u and flash-kernel 23:25
vkoskivWait, there's mmcblk1, then separately mmcblk1boot0 and mmcblk1boot1 that are both 4M23:27
joschvkoskiv: what do you have matching /dev/mmcblk1* -- the boot* parts should be for u-boot itself not for the /boot partition23:27
vkoskivmmcblk1 is 14.6G23:27
vkoskivAh, gotcha. I probably want /dev/mmcblk1 then23:27
joschvkoskiv: /dev/mmcblk1 should be the whole disk -- not a partition on it23:27
joschvkoskiv: you have to ask minute about the expected partition layout on emmc23:28
vkoskivIt doesn't list partitions in lsblk23:28
vkoskivFor that drive23:28
joschoh :(23:28
joschthen you have to ask minute about this23:28
jjblissvkoskiv: if you run "mount" you can see what is currently mounted as /boot from the sd card23:28
minutevkoskiv: see above23:29
vkoskivAh, sec23:29
minutevkoskiv: mmcblk0 is the sd card. mmcblk1 is emmc. emmc boot is completely untested and may brick your device23:29
vkoskivAah, so SD card boot it is then?23:29
joschoooh23:30
minutevkoskiv: yes, i recommend that until i had a chance to test emmc. as i wrote earlier, i have the io board for the cm4 and can unbrick it via usb, but you probably don't have one23:30
vkoskivGotcha. Won't mess with that yet then23:30
joschokay, that is good to know23:30
joschthen better not mess with emmc XD23:30
joschvkoskiv: then i guess your first step is to umount /boot23:30
joschand then mount it into your /mnt/boot after having mounted your rootfs into /mnt23:31
+ S0rin (~S0rin@user/s0rin)23:34
- jacobk (QUIT: Ping timeout: 272 seconds) (~quassel@129.110.242.224)23:35
vkoskivMounted all the things I need I think. Then chroot, edit /etc/fstab, then move /etc/flash-kernel/machine to a spot elsewhere, then update-initramfs -u, then flash-kernel23:36
vkoskivMounted, haven't done those other steps yet23:36
vkoskivGonna do it though, I'll just give it a go23:36
jjblissthat's what I did23:36
joschvkoskiv: from inside the chroot, what is in /proc/device-tree/model?23:37
vkoskivI think my /etc/fstab is already okay, since I'm going from emmc on the imx8 to sd on here23:37
joschvkoskiv: removing /etc/flash-kernel/machine is only safe if you have the right value in /proc/device-tree/model23:37
vkoskiv"MNT Reform 2 with BPI-CM4 Module"23:37
joschgood23:37
joschafter running flash-kernel you could double-check if the right dtb was copied into /mnt/boot23:38
minutesounds good so far23:38
vkoskivBoth update-initramfs and flash-kernel were talking about bananapi while doing their thing23:40
joschwell...23:41
joschthen i guess it's time to umount and reboot :D23:41
vkoskivYep, was about to say23:41
joschand luksclose and stuff of course23:41
vkoskivHmm, /mnt: target is busy23:42
minutebind mounts23:43
minuteare still active23:43
vkoskivI think I umounted everything in there already...23:43
vkoskivOh23:43
vkoskivI 100% forget what to do about that23:43
minuteumount /mnt/dev etc...23:43
abortretryfailjust unmount them first23:43
vkoskiv/mnt/dev: device is busy23:43
vkoskivs/device/target23:43
joschvkoskiv: how did you mount /dev?23:44
joschdid you do it using rbind?23:44
abortretryfailthere's also a umount --recursive. Might work23:44
vkoskivmount --rbind /dev /mnt/dev/23:44
joschwhat abortretryfail said23:44
vkoskivsame issue with recursive umount23:44
vkoskivtarget is busy23:44
joschthen add --lazy23:44
abortretryfaillsof or fuser might help in that case23:45
vkoskivthere we go23:45
vkoskivunmounted /mnt, now luksClose...23:45
- chomwitt (QUIT: Ping timeout: 240 seconds) (~chomwitt@2a02:587:7a24:b000:1ac0:4dff:fedb:a3f1)23:45
joschin reform-boot-config we use non-recursive mount which avoids these umount troubles23:45
vkoskivHuh, still in use. Not according to lsblk it isn't23:45
joschvkoskiv: did you lvchange -an?23:45
vkoskivNo, what's that do?23:46
joscherr...23:46
joschvgchange -an23:46
joschyou have lvm inside your luks, right?23:46
joschyou need to deactivate that first before closing luks23:46
vkoskivRebooting!23:46
vkoskivI closed the luks first ofc23:46
vkoskivThen reboot23:46
vkoskivoof, nvme timeout23:48
jjblissyup23:48
jjblisssame here23:48
jjblissminute: you mentioned checking cmdline in rescue console23:48
minutedamn23:48
vkoskivRight away on boot, it seems23:48
jjblissyup23:49
vkoskivI think it's just trying to figure the nvme out, and it's not responding23:49
minutevkoskiv: i hope you get initramfs console after a while23:49
vkoskivI'll let it do its thing23:49
jjblissI've left it running and more messages happen eventually, but I never get to an interactive prompt.  I'm going to try letting it sit for a few minutes this time.23:49
joschdoes either of you have a uart adapter to copypaste the boot messages?23:50
minute(note that uart adapter goes to SER2 with a311d, not SER1)23:50
vkoskivI don't think I have one with the right connector23:50
jjblissI have one somewhere, but not sure where it is.23:50
minuteit is strange though that you were able to mount and write to the nvme after booting from sd23:51
vkoskivOnly 3 pins, I could hack something in23:51
vkoskivYeah, nvme didn't seem to freeze once while in chroot there23:51
minutehmmmmm maybe some driver is missing in initramfs23:51
vkoskivAnd I'd see the completion polled messages since I was in text mode console23:51
vkoskivThis is where it goes a bit beyond my linux knowhow :D23:52
jjblissmine too23:52
vkoskivFor me, initramfs and flash-kernels are just tools that make the thing do the thing to then eventually boot23:52
joschthe black magic is updateinitramfs23:52
vkoskivHappy to try out stuff, I'll be up for a bit more, then I'll continue tomorrow23:53
joschflash-kernel is just a shell script that copies in the right device tree and creates boot.scr23:53
minutesooo personally i use a bodged boot.scr since a while23:53
joschthen maybe next step is sharing the boot.scr that flash-kernel created?23:53
vkoskivOkay, one moment23:53
minutewhich has > setenv bootargs "rw root=/dev/mapper/crypt rootwait no_console_suspend cma=512M pci=pcie_bus_perf libata.force=noncq nvme_core.default_ps_max_latency_us=0 iommu=soft console=ttyAML0,115200 console=tty1"23:53
vkoskivActually, how do I boot from just the SD then?23:53
minutevkoskiv: you would need to modify the boot.scr, which you can only do on another computer23:54
joschvkoskiv: you mean with rootfs on sd-card?23:54
vkoskivOkay, I can do that, I'll pull up another laptop23:54
vkoskivI have many of them :D (dozens)23:54
minutevkoskiv: best would be to pastebin us a copy of the boot.scr on that first partition on the sd card23:54
dozensdozens you say??23:54
minutejjbliss: same for you btw23:54
joschminute: maybe it could also help if you share the boot.scr that works for you23:54
minutemine uses a hardcoded (and older) fk_kvers though23:55
joschah right23:55
minuteand hardcoded root=... that applies to my encrypted nvme23:55
minutei still have to migrate to the official setup23:55
vkoskivTwo fancy screenshot, in case you're interested: https://share.icloud.com/photos/00fP6kyu4QJwERTqkUIX7AU-g23:56
vkoskivMore messages did appear23:56
joschvkoskiv: the easiest way to boot with the rootfs from sd-card again is to flash the rescue image to a second sd-card23:56
joschvkoskiv: the initramfs in the first partition of your sd-card currently is configured to look for the rootfs on nvme23:56
- stites (QUIT: Ping timeout: 255 seconds) (~stites@155.33.132.39)23:57
vkoskivI'll grab the boot.scr first23:57
minutethese error messages look as if the nvme-related kernel commandline options are not there23:58
minuteso boot.scr will be most helpful yes23:58
+ stites (~stites@2607:fb91:dca:1fe3:e61a:30b8:bd10:dac3)23:58
jjblisshttps://pastebin.com/9cWPrsZW23:59
joschhrm... i wonder what went wrong23:59
vkoskiv2005 Fujitsu to the rescue23:59
joschyou don't have the most recent reform-tools installed it seems23:59
jjblissah23:59
vkoskivOh. I forgot I put SerenityOS on here :D23:59
vkoskivLOL23:59
vkoskivWas *not* expecting that23:59
minutejjbliss: thank you!23:59

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