2025-01-12.log

* mark_ -> mjw00:08
- mtm (QUIT: Ping timeout: 260 seconds) (~textual@47.202.75.129)01:03
+ mtm (~textual@47.202.75.129)01:05
- colinsane (QUIT: Quit: bye) (~colinunin@97-126-4-196.tukw.qwest.net)01:50
+ colinsane (~colinunin@97-126-4-196.tukw.qwest.net)01:53
- colinsane (QUIT: Ping timeout: 244 seconds) (~colinunin@97-126-4-196.tukw.qwest.net)02:03
- mjw (QUIT: Ping timeout: 244 seconds) (~mjw@gnu.wildebeest.org)02:41
- cobra (QUIT: Ping timeout: 260 seconds) (~cobra@user/Cobra)02:49
- wickedshell (QUIT: Ping timeout: 246 seconds) (~wickedshe@2601:8c0:800:4baa:444a:1b9b:da9d:99ca)02:55
- paperManu (QUIT: Ping timeout: 252 seconds) (~paperManu@107.159.243.8)03:28
- op_4 (QUIT: Remote host closed the connection) (~tslil@user/op-4/x-9116473)04:05
+ op_4 (~tslil@user/op-4/x-9116473)04:05
- aloo_shu (QUIT: Ping timeout: 252 seconds) (~aloo_shu@85.51.18.252)04:47
+ aloo_shu (~aloo_shu@85.51.18.68)04:50
+ wickedshell (~wickedshe@2601:8c0:800:4baa:3f1d:d321:6c17:f039)05:02
+ gustav28 (~gustav@c-78-82-52-175.bbcust.telenor.se)10:02
- jacobk (QUIT: Ping timeout: 260 seconds) (~quassel@47-186-65-73.dlls.tx.frontiernet.net)10:04
+ jacobk (~quassel@47-186-65-73.dlls.tx.frontiernet.net)10:05
- aloo_shu (QUIT: Ping timeout: 244 seconds) (~aloo_shu@85.51.18.68)10:08
+ aloo_shu (~aloo_shu@85.51.18.112)10:10
- gustav28 (QUIT: Quit: Quit) (~gustav@c-78-82-52-175.bbcust.telenor.se)12:09
minuteBoostisBetter: great to hear12:30
+ mjw (~mjw@gnu.wildebeest.org)12:31
amospallaOn my Pocket I have access to devices /dev/mmcblk2boot{0,1}, shouldn't these be hidden?13:00
amospallaI am playing with reform-emmc-debootstrap, recently, but I have also rebooted since then.13:01
- mtm (QUIT: Ping timeout: 252 seconds) (~textual@47.202.75.129)13:03
+ mtm (~textual@47.202.75.129)13:05
amospallajosch: I'm trying to implement the FIXME for reform-emmc-bootstrap to allow running from nvme when boot is on sdcard13:15
amospallaI need to detect if boot is on emmc, but both sdcard and emmc are /dev/mmcblk devices. I guess I can not rely on /dev/mmcblk2boot{0,1} to be available because these should be hidden (IIRC).13:16
joschamospalla: why do you need to detect whether /boot is on sd-card?13:17
joschwhat you need to detect is whether your currently running system has its rootfs from SSD or not (and that's hard)13:18
amospallaI can only think on the emmc device size, because it has some MiB hidden, it should not class with the sdcard size, so a "there one and only one mmcblk with this size check" should work.13:18
amospallasorry, eMMC, not sd-card.13:18
joschreform-emmc-bootstrap should not care where your current /bot is13:18
joscherrr /boot13:19
amospallaI have the root detection already done, now I need to know if boot is on sd-card or emmc.13:19
joschbecause it sets your system up such that /boot will be on emmc -- irrespectivey where it was before13:19
joschwhy?13:19
amospallaI see.13:19
joschhow did you do the root detection?13:19
joschi was not able to figure this out13:19
amospallagrep /proc mounts with a device13:19
amospallajosch: https://paste.debian.net/1344934/13:20
amospallaline 62, using that check on other parts of the code can get wether the specified device is current live root13:21
joschamospalla: this does not work when your rootfs comes from /dev/mapper/reformvg-root, for example13:22
amospallawhy?13:22
joschit also does not work is the rootfs is mounted with UUID=13:22
joschoh, typo, it does work with /dev/reformvg/root13:23
joschbut instead of parsing /proc, maybe do:13:24
joschlsblk --noheadings --output=MOUNTPOINT /dev/reformvg/root13:24
joschanother way is to use this:13:25
joschfindmnt --fstab --noheadings --evaluate --mountpoint / --output SOURCE13:25
joschthe latter has the advantage, that it also finds out where your / is mounted if your /etc/fstab uses a UUID=13:25
amospallagreat, I'll use that13:27
amospallaohhh, you already have set DEV_MMC, yay.13:28
amospallashould it abort when /boot is already on eMMC, but not abort when /boot is on sd-card?13:33
amospallaThat is, when the tool is executed when system is running from nvme. If it is running from nvme and /boot is already on eMMC then it means that it booted correctly, so there should be no reason to overwrite it.13:36
joschin that case, why did the user run it?13:42
joschmaybe make an interactive question informing the user of the situation and ask them whether they really want to proceed13:42
amospallaRight, I was just being defensive.13:42
joschremember, that even if /boot is mounted from emmc13:43
joschit's still possible that your kernel that is currently running came from a partition on your sd-card13:43
amospallaTrue, but in that situation the user has been messing and is already doing some "advanced things (tm)"13:43
joschyes, i imagine that one use-case of the script can be: user messed up and wants to get the system into a working state again13:44
josch(which is part of why i didn't want to name the tool "migrate"-something)13:44
amospallaThat means comparing mount point and fstab13:44
josch(which is the primary functionality that minute wants to use this for)13:44
amospallaok, I got a bit lost at this point, is it desired any change to current script?13:46
amospallaAs it resides on git repository currently I mean. It has the following FIXME lines:13:49
amospalla# FIXME: support the scenario where we we are currently running from nvme13:49
amospalla# FIXME: in that case, fail if /boot is already on emmc13:49
amospallaI see, it is in the lines of "user wanta a working state again"13:52
chwith util-linux hat on: generally please use findmnt over blkid/lsblk; and always set the output options instead of doing some grep/awk parsing13:55
amospallathank you, I didn't know that tool.13:56
BoostisBetterminute: just had the kb reset on its own again. Very good. Really think this was a good addition tot he kb. 14:03
+ paperManu (~paperManu@107.159.243.8)14:05
+ cobra (~cobra@user/Cobra)14:32
joschch: i actually have a util-linux question. I'm sometimes (for example in reform-emmc-bootstrap) deliberately using blkid over lsblk because its man page says that it reads directly from the device and since some tools write stuff to the device, i do want blkid for non-cached direct information, right?14:38
joschamospalla: yes "user wanta a working state again" is a good description. A bit more specific would be "user has rootfs on SSD and lost their /boot and wants to set it up on emmc"-tool14:40
joschamospalla: yes, i'd be looking forward to receiving a patch which implements the case where you run this from a system on SSD14:41
chjosch: kinda. but mostly you dont want blkid14:41
joschgit grep lsblk | wc -l14:41
josch1514:41
joschgit grep blkid | wc -l14:41
josch414:41
joschgit grep findmnt | wc -l14:42
josch1214:42
joschis there a reason why i should convert from lsblk to findmnt? lsblk seems to have all the options i want to use it in a script14:42
chjosch: so mostly blkid has illdefined behaviour, and might or might not give you what you want. new features go into lsblk/findmnt14:42
joschch: what do you mean by "illdefined behaviour"?14:43
joschif you tell me that i should just blindly convert from blkid to lsblk i can do that14:43
joschbut the man page, while it very directly pushes towards lsblk is still suggesting to me that there are valid uses of blkid14:44
amospallajosch: I'm only adding this: (1) allow running when current root is on nvme, (2) fail if eMMC has something mounted.14:45
joschamospalla: cool! :)14:45
amospallaAnd it does what it was doing before, whatever there is on eMMC, whatever it was booting from before, it just overwrites the eMMC to a working state.14:46
joschgood14:46
- cobra (QUIT: Quit: ZNC 1.8.2 - https://znc.in) (~cobra@user/Cobra)14:46
joschminute: that's what you want, right? ^14:46
chjosch: iirc blkid is ok, -if- you pass --probe and can/want to live with that14:50
+ cobra (~cobra@user/Cobra)14:50
chjosch: if you want info that is consistent with udev etc, probably use lsblk14:50
chjosch: unfortunately the answer is "it depends" and what it depends on is not very clear14:50
joschi see, thank you!14:52
- aloo_shu (QUIT: Ping timeout: 252 seconds) (~aloo_shu@85.51.18.112)14:57
+ aloo_shu (~aloo_shu@85.51.18.40)14:59
- cobra (QUIT: Quit: ZNC 1.8.2 - https://znc.in) (~cobra@user/Cobra)15:00
joschch: while i have you here, how do i convert "blkid -s TYPE" to lsblk? For blkid, TYPE is "ext4", for example. But in lsblk, it is "part" which is not what i want.15:07
chFSTYPE?15:08
chdepending on what you want (:15:09
joschooooh15:10
joschit would help to have a list of the possible values somewhere15:10
joschyes, i want FSTYPE it seems15:10
+ cobra (~cobra@user/Cobra)15:10
ch--list-columns gives you column names15:12
ch-O prints all rows with all cols15:12
joschthose are a lot of columns15:13
chyeah15:13
joschand i have no idea what half of them mean XD15:13
ch-O --json might be easier on the eye15:13
joschbut i could've found FSTYPE via the column value, indeed15:13
joschI recently added jq as a Depends of reform-tools15:14
joschi didn't want to parse the parted output with shell anymore...15:14
ch:)15:14
chuse JSON; ?15:14
joschnot sure whether a Depends on jq or libjson-perl is nicer. I have no strong opinion on that.15:16
joschIt's working fine with jq now.15:16
chwell the script could stop being shell, mayb15:16
joschyes, but calling external programs in perl is also a pain and easier in shell :/15:17
joschin any case, blkid is now out and lsblk is in: https://source.mnt.re/reform/reform-tools/-/merge_requests/110/diffs?commit_id=6a24903541d3b6d984c1edfd4d6c384509d438e815:20
+ josch89 (~josch@37.4.230.248)16:09
- josch89 (PART: !!unknown attribute: msg!!) (~josch@37.4.230.248)16:09
- aloo_shu (QUIT: Ping timeout: 252 seconds) (~aloo_shu@85.51.18.40)16:31
+ aloo_shu (~aloo_shu@90.166.193.22)16:33
amospallajosch: here is the patch https://paste.debian.net/1344950/17:27
joschamospalla: can you send that as an email to josch@debian.org? Then I can leave comments inline17:28
amospallasure17:28
amospallajosch: sent you the patch, but forgot to mention that I tested it on a Pocket Reform, both when booted from sd-card and nvme.18:10
joschthank you, i can test it on classic reform with imx8mq here18:14
amospalladoing this helped me understand boot things, now I think I could my root on f2fs or btrfs.18:15
amospallaI'll probably move back to emmc from nvme, my nvme takes a good portion of battery.18:16
cwebberACTION checks forum18:49
cwebberWell definitely looks like I am not longer the only user who hit the blank screen thing anymore18:49
joschyup https://community.mnt.re/t/screen-turns-on-and-off-but-wont-boot/293818:51
minutecwebber: yeah. i'm really curious what exactly is the root cause, but i'll hopefully see that soon when your pocket arrives19:10
cwebberYes hopefully!19:10
cwebberminute: I hope it's not this but if it turns out that the board is borked or something can I just buy one of the new boards and have you install it while it's there?19:11
cwebberThe new boards seem interesting anyway19:12
cwebberBut I shouldn't be preemptively pessimistic!19:12
minutecwebber: if something is borked we will replace under warranty19:42
minutecwebber: also, there isn't a new board for pocket... only for classic reform :319:42
cwebberOkie :)19:58
cwebberThx 💜19:58
- ericsfraga (QUIT: Quit: ERC 5.6.1-git (IRC client for GNU Emacs 31.0.50)) (~user@2a00:23cc:b43d:4b00::3ce)20:09
mhoyeThere's a new board for Classic Reform?21:26
mhoyeACTION clicks around madly21:26
BoostisBettermhoye: I think the v3 board is the newest and I'm not sure it is out yet. 21:26
BoostisBettermhoye: I also know that the Reform Next boards should work with the Classic as well. 21:27
mhoyeI'll hold my breath21:27
minuteBoostisBetter: that's not yet certain @ next, it would require a bunch of mechanical adapters that are not developed yet.21:29
BoostisBetterminue: roger! Really looking forward to the Next!21:39
BoostisBetterminute: when pushing the reset button on the kb controller, all you are doing is power cycling it right?21:41
BoostisBetterNothing bad happens if you hold it down for a while longer or anything like that?21:41
minuteBoostisBetter: not even power cycling, it's just a reset signal to the rp2040 cpu21:41
BoostisBetterminute: I had an issue where the kb firmware reset the kb, but the kb didn't seem connected as trackball and keys weren't doing anything21:42
BoostisBetterminute: I used the manual reset a few times and it came back up, but it took a couple of times (like 3)21:42
minuteBoostisBetter: soon we should update your imx8mp uboot21:43
minuteit has a new thing in it where it explicitly resets the usb hub at boot21:43
minuteit could be that this reset not being done causes the instability21:43
BoostisBetterminute: you think that is the ticket? uboot is causing issues with the kb controller?21:43
BoostisBetterminute: ahh I see. That would make sense as well21:43
minutewe discovered this a few days ago during re-installing imx8mp pocket motherboards, and each time booting them from emmc after install, the keyboard wouldn't work21:44
minutebut the usb hub reset fixed that21:44
BoostisBetterminute: I am up to 6 days in uptime on the Pocket. so it seems like the kb and hub were always the issue and not the SoC21:44
minutenice @ uptime21:45
BoostisBetterminute: that is awesome to hear! Looking forward to the uboot update. Will it be announced?21:45
BoostisBetterminute: the reset functionality that is going into the uboot update, is it possible to expose this via the oled menu, such that when you reset the kb there, it is doing the same thing as uboot?21:50
BoostisBetterminute: please excuse my ignorane on the inner workings of uboot and the interface with the RP204021:51
minuteBoostisBetter: the uboot update is already available but idk if reform-flash-uboot already knows about it cc josch21:51
BoostisBetterminute: gotcha, I asked him privately. 21:51
+ savasten (~savasten@64.39.201.193)21:57
- aloo_shu (QUIT: Ping timeout: 244 seconds) (~aloo_shu@90.166.193.22)22:08
savastengood day all, this can wait until Monday if people are busy relaxing this weekend. In an attempt to flash an updated system controller firmware meant to help with a black screen issue. i am stuck with an error from picotool stating No accessible RP2040/RP2350 devices in BOOTSEL mode were found.22:08
savastencommand i am running is sudo picotool load build/sysctl.uf2 -f --vid 0x1209  --pid 0x6d0722:09
BoostisBettersavasten: why are you not using the update script instead of running picotool manually?22:10
+ aloo_shu (~aloo_shu@85.51.17.247)22:10
savastenthe script looks for a vendor id and product id that is no longer current after the previous update.22:15
savastenhttps://source.mnt.re/reform/pocket-reform/-/issues/422:15
+ jevans (~jevans@174-29-202-198.hlrn.qwest.net)22:17
savasten└─[$] <> sudo ./update-sysctl-firmware.sh22:18
savastenpicotool is already the newest version (2.0.0-3).22:18
savastenSummary:22:18
savasten  Upgrading: 0, Installing: 0, Removing: 0, Not Upgrading: 022:18
savastenRP2040 System Controller device not found or more than one found, exiting.22:18
- jevans (QUIT: Changing host) (~jevans@174-29-202-198.hlrn.qwest.net)22:21
+ jevans (~jevans@user/jevans)22:21
minutesavasten: you can use fwupd with the cab file or you can use reform-mcu-tool22:25
minute(reform-mcu-tool does the initial reset instead of picotool now with our new usb vendor/product id)22:25
minutei'll try fwupd with the cab now on my system to double check if that works already...22:26
minutetrying: fwupdmgr install sysctl.cab22:34
minute"no supported devices found"22:34
minuteah lol i forgot the usb jumpers on my pocket22:35
minuteah funny > Specified firmware is older than installed 'ga98e2bd < 20250107'22:37
minutefwupdmgr install --allow-older sysctl.cab22:38
minuteah > firmware signature missing or not trusted; set OnlyTrusted=false in /etc/fwupd/fwupd.conf ONLY if you are a firmware developer22:39
minuteaha, now it does something22:40
minute> Successfully installed firmware22:40
minutesavasten: ok so you can do: 1. sudo apt install fwupd 2. add the line OnlyTrusted=false to /etc/fwupd/fwupd.conf 3. fwupdmgr install --allow-older sysctl.cab22:41
- aloo_shu (QUIT: Ping timeout: 252 seconds) (~aloo_shu@85.51.17.247)22:42
+ aloo_shu (~aloo_shu@85.51.17.148)22:44
joschminute: oh no... i totally missed that you released a new imx8mp u-boot git tag :(22:45
minutejosch: aw, no worries22:46
- savasten (QUIT: Ping timeout: 240 seconds) (~savasten@64.39.201.193)22:46
+ savasten (~savasten@64.39.201.193)22:50
joschhm... something is not right...22:52
joschminute: the build failed: https://source.mnt.re/reform/reform-imx8mp-uboot/-/jobs/739022:52
joschminute: and it strangely was started only an hour ago but the tag is from two days ago?22:52
minutejosch: i reran it an hour ago because i saw that failure22:52
minute> EXTRAVERSION in u-boot/Makefile is different from that:22:53
joschoooh :)22:53
minutenot sure what that was about22:53
joschone sec, i'll give you a MR with a more useful error message22:53
josch(and the fix for the error)22:54
minuteoh nice22:54
- savasten (QUIT: Ping timeout: 240 seconds) (~savasten@64.39.201.193)23:09
joschminute: is this error message better describing what's going on? https://source.mnt.re/josch/reform-imx8mp-uboot/-/jobs/739423:11
+ savasten (~savasten@64.39.201.193)23:19
minutejosch: yes, much better, thanks!23:22
joschminute: hopefully even better: https://source.mnt.re/josch/reform-imx8mp-uboot/-/jobs/739923:26
joschminute: then you can merge this: https://source.mnt.re/reform/reform-imx8mp-uboot/-/merge_requests/523:29
joschit should be ready for you to put the tag 2025-01-12 to the top commit23:29
joschyou have to do that manually as i cannot send you a tag via a MR23:29
minutejosch: awesome, thank you23:29
joschsorry for the confusion23:29
joschminute: you set it to auto-merge (thank you) but it will have to fail with the latest commit23:30
joschbecause the latest commit expects there to be a tag 2025-01-12 but only you can add that to the reform/reform-imx8mp-uboot repository23:31
minuteyeah i merged now immediately and will add a tag in the UI23:31
joschah okay :)23:31
+ aloo_shu_ (~aloo_shu@85.51.17.85)23:32
- aloo_shu (QUIT: Ping timeout: 265 seconds) (~aloo_shu@85.51.17.148)23:32
* aloo_shu_ -> aloo_shu23:32
joschyay it worked :)23:34
joschwill be part of reform-tools 1.66: https://source.mnt.re/reform/reform-tools/-/merge_requests/110/diffs?commit_id=b5e5dfe5812f2dafce707983c8b0523a4037396f23:38
- savasten (QUIT: Quit: Client closed) (~savasten@64.39.201.193)23:46
+ savasten (~savasten@64.39.201.193)23:49
ch> talking to the util-linux maintainer today motivated me to report this.23:56
chwhat a way to start a bug mail!23:56
ch:)23:56
joschhaha :D23:56
joschsorry XD23:56
ch(:23:56
savastenminute i followed the three steps. a few times even sudo once. after i run the command the system almost instantly powers off with just a flash of a new line under the command. then i need to cycle the power switch before it will power on. the firmware version does not seem the update. Current version:    g2ab0d3a23:56
savastenshould i be changing the jumpers on the main board?23:57

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