2022-10-10.log

- chomwitt (QUIT: Ping timeout: 268 seconds) (~chomwitt@2a02:587:dc0c:c200:9b5d:e3:b4f7:170c)01:20
- mtm (QUIT: Ping timeout: 252 seconds) (~mtm@c-71-228-84-213.hsd1.fl.comcast.net)02:03
- vagrantc (QUIT: Quit: leaving) (~vagrant@97-120-22-213.ptld.qwest.net)03:42
+ mtm (~mtm@c-71-228-84-213.hsd1.fl.comcast.net)04:08
- mlarkin (QUIT: Quit: Lost terminal) (~mlarkin@047-048-086-214.biz.spectrum.com)05:07
+ mlarkin (~mlarkin@047-048-086-214.biz.spectrum.com)05:07
+ bgs (~bgs@212-85-160-171.dynamic.telemach.net)07:37
- bgs (QUIT: Remote host closed the connection) (~bgs@212-85-160-171.dynamic.telemach.net)08:36
joschI just bought a new SSD for my reform. One from a brand that wasn't mentioned yet on the "Confirmed Working NVME Drives" forum thread to create another data point. If that drive also doesn't work with suspend, then this might be yet another 5.19 regression... sigh...09:37
vkoskivIs there a quick way to switch back to 5.18 so I could confirm? I see it's still installed on my system09:38
joschvkoskiv: If the 5.18 kernel is still installed for you, then checking this is indeed very easy: just remove the 5.19 kernel package and make sure the 5.18 package is still installed.09:39
joschAs long as you have at least one kernel installed, flash-kernel will take care of creating a working boot.scr for you.09:40
joschvkoskiv: removing your 5.19 kernel package will also remove the linux-image-arm64 package but that is okay as long as you still have linux-image-5.18.X-reform2-arm64 installed09:41
joschthe linux-image-arm64 package is just a meta-package that depends on the latest real kernel package09:41
vkoskivCool, I'll give this a go after work09:59
- jjbliss (QUIT: Remote host closed the connection) (~jjbliss@1464766-static.elnsmiaa.metronetinc.net)10:00
+ jjbliss (~jjbliss@1464766-static.elnsmiaa.metronetinc.net)10:17
- mjw (QUIT: Killed (NickServ (GHOST command used by wielaard!~mjw_@2001:1c06:2488:1400:9e5c:8eff:fe8f:a440))) (~mark@gnu.wildebeest.org)10:33
* wielaard -> mjw10:33
+ mark_ (~mark@gnu.wildebeest.org)10:33
+ MajorBiscuit (~MajorBisc@145.94.167.158)10:37
+ chomwitt (~chomwitt@2a02:587:dc0c:c200:b8b0:dc:a578:bfaa)13:22
- mtm (QUIT: Ping timeout: 265 seconds) (~mtm@c-71-228-84-213.hsd1.fl.comcast.net)14:03
+ bgs (~bgs@212-85-160-171.dynamic.telemach.net)15:28
- MajorBiscuit (QUIT: Ping timeout: 268 seconds) (~MajorBisc@145.94.167.158)15:34
+ mtm (~mtm@c-71-228-84-213.hsd1.fl.comcast.net)16:10
vkoskivI didn't see anything in apt when searching for 'kernel', 'linux' or 'image'17:16
vkoskivApparently apt just has a poorly implemented search. I found the package name by just grepping the output17:17
vkoskivI borked my system. It failed to pick up 5.18, I chrooted on there from sd to rescue, but now I can't install 5.19 anymore either17:30
vkoskivapt won't sync, and throws some file size mismatch error when trying to install 5.1917:31
joschvkoskiv: what exactly did you run? Do you have logs?17:39
vkoskivI uninstalled 5.19 and  rebooted, it didn't come up17:39
joschvkoskiv: but do you have logs of your removal?17:39
vkoskivThen booted off SD, chrooted to nvme, tried running that flash-kernel tool but it threw some error17:40
vkoskivI do not.17:40
joschwhat error did it throw?17:40
vkoskivCouldn't find dtb17:42
joschvkoskiv: for 5.18? What is the contents of your /boot?17:44
joschvkoskiv: when you install, upgrade and remove the kernel, make sure to have the correct /boot partition mounted.17:44
vkoskivI have the emmc mounted under /boot, yeah.17:45
vkoskivReinstalling 5.18 yields a different error, it just says it couldn't be downloaded17:46
vkoskivAnd apt update won't sync because gpg is missing for whatever reason17:46
joschYes, you cannot re-install 5.18 after removing it because it's not available in the repos anymore.17:47
vkoskiv(Even though the packages are in $PATH)17:47
joschWhat is the precise gpg error message?17:47
vkoskivSo I need to fix flash-kernel17:47
vkoskivapt says: E: gpgv, gpgv2 or gpgv1 required for verification, but neither seems installed17:48
vkoskivIt didn't look hard enough - gpgv is installed17:48
joschThis sounds like your system is broken somehow. The apt package directly depends on gpgv or gpgv2 or gpgv1.17:49
vkoskivYeah, but again, it *is* installed and available in $PATH17:50
vkoskivI don't know how to fix this.17:52
+ MajorBiscuit (~MajorBisc@145.94.167.158)17:55
- MajorBiscuit (QUIT: Client Quit) (~MajorBisc@145.94.167.158)17:55
joschvkoskiv: what exactly did you run to generate the error?17:57
vkoskivflash-kernel18:01
joschvkoskiv: are you sure? flash-kernel does nothing with apt or gpgv18:03
vkoskivAnd it just says it can't find the dtb for imx8mq18:03
vkoskivI'd like to just reinstall 5.19 again but that's a different error, it says the package is invalid on the remote end18:05
+ vagrantc (~vagrant@2600:3c01:e000:21:7:77:0:20)18:05
joschvkoskiv: did you run "apt update"?18:05
vkoskivI did, which yielded that gpgv error18:05
joschah that's where that comes from18:05
vkoskivYeah, I might have not been clear18:05
joschat least I'm left very confused what you ran in which order and what generated what error18:06
joschit would've greatly helped to keep a log with the commands you ran and the output they generated18:06
vkoskivSorry, it takes too long to copy that stuff off the screen18:06
joschvkoskiv: the reform has the trackball activated by default which lets you copypaste even when not in wayland18:08
joschvkoskiv: I'm not expecting you to manually type anything :)18:08
vkoskivI can't paste things anywhere - the system barely works as is18:09
vkoskivI can't even do dns queries without messing around with it first18:09
joschvkoskiv: can you connect via serial? That might make it easier to copypaste18:09
vkoskivNo adapter.18:09
joschoh :(18:10
joschvkoskiv: are you still around in a few hours? Solving this might take a bit longer and my daughter only goes to bed in about ~2 hours.18:10
vkoskivMovie night a bit later, maybe18:11
vkoskivwhere are dtbs normally held18:11
joschvkoskiv: in /boot there is a dtbs subdirectory as well as symlinks into it18:11
vkoskivAh, I see the 5.18 dtbs are missing from under /boot18:11
vkoskivOnly 5.1918:11
vkoskivSo the core issue is the 5.19 package being corrupt, the size is unexpected18:12
joschvkoskiv: you correct that by running "apt update"18:12
vkoskivhold up, a different error now with update18:13
vkoskiv/usr/bin/apt-key: 95: cannot create /dev/null: permission denied18:13
vkoskivbut /dev/null already exists, so that makes no sense18:13
vkoskivNo need to create it.18:14
vkoskivI'm guessing I did the chroot wrong somehow, but no idea why that is18:15
vkoskivI mounted root and /boot, that should be it18:16
joschvkoskiv: no, you need to bind-mount /dev18:18
joschunless you are only doing very basic things, before entering the chroot you also might want to mount this:18:18
joschmount -o bind /dev "$MOUNTROOT/dev"18:19
joschmount -t sysfs sys "$MOUNTROOT/sys"18:19
joschmount -t proc proc "$MOUNTROOT/proc"18:19
joschThese mounts are definitely necessary when you do things around installing, upgrading or removing kernels18:19
joschthis is what reform-boot-config does, for example to be able to run update-initramfs -u18:20
vkoskivDone,and now apt update works!18:20
joschhah18:20
vkoskivInstalling 5.19, should be good to go now.18:20
vkoskivAnd I learned more about chrooting, so win-win!18:21
vkoskivThanks for the help!18:21
joschno problem, glad it worked now!18:21
vkoskivI'll retry regression testing 5.18 now that I can fix this state.18:21
vkoskivSo I'll uninstall 5.19 again and then I'll try running flash-kernel right after, instead of rebooting first18:22
joschvkoskiv: i thought you were missing the 5.18 dtb?18:23
joschvkoskiv: if the 5.18 package is still installed, there is no need to run flash-kernel manually18:23
joschvkoskiv: what is your output when you run this "dpkg -l | grep linux-image | grep 5.18"18:24
vkoskivIt just lists that package18:24
joschif it lists the package, then that's good18:24
joschbut then you should also have the dtb18:24
vkoskivii  linux-image-5.18.0-reform2-arm64               5.18.14-1+reform1                  arm64        Linux 5.18 for 64-bit ARMv8 machines18:25
joschthat looks good18:25
vkoskivvkoskiv@reform:~$ ls /boot/dtbs/18:25
vkoskiv5.19.0-reform2-arm64  boot  freescale18:25
joschthat's missing a 5.18 folder18:26
joschwithout that folder it will not boot i'm afraid :(18:26
vkoskivYeah. Not sure what happened to it. I didn't delete it.18:27
vkoskivI do appreciate how apt has that extra check to make sure I want to actually remove the kernel :D18:31
- vagrantc (QUIT: Quit: leaving) (~vagrant@2600:3c01:e000:21:7:77:0:20)18:41
- mjw (QUIT: Killed (NickServ (GHOST command used by mark_!~mark@gnu.wildebeest.org))) (~mjw_@2001:1c06:2488:1400:9e5c:8eff:fe8f:a440)18:58
* mark_ -> mjw18:58
+ wielaard (~mjw_@2001:1c06:2488:1400:9e5c:8eff:fe8f:a440)18:59
+ ajr (~ajr@user/ajr)19:03
minutejosch: would it be possible to include some modules in our kernel instead of having them as modules? otherwise we would need to do some deeper debugging on their interactions, and fix a lot of oopses that happen when unloading/reloading19:31
minutejosch: the modules in question are (so far): mxsfb, nwl-dsi, imx_dcss19:33
minuteif you do `rmmod nwl-dsi` and then `rmmod mxsfb` it will crash the system19:33
minutejosch: also, `rmmod nwl-dsi; modprobe nwl-dsi; rmmod mxsfb; modprobe mxsfb` does not crash, but then the display is blank19:38
minute(it then complains: `mxsfb 30320000.lcd-controller: [drm] Cannot find any crtc or sizes`)19:40
joschminute: yes, we can run any kernel config we want.19:57
minutejosch: my motivation is that i still get a blank display on 50% of boots with `reform-display dual` configuration19:58
joschminute: the downside of not building them as modules is, that then we will always be stuck with our self-built kernel as the problems will not get fixed19:59
minutejosch: yeah, that's true19:59
minute`rmmod mxsfb; modprobe mxsfb` makes the display work again in such a state :|20:00
joschminute: if you want to build anything into the kernel just add the option to https://source.mnt.re/reform/reform-debian-packages/-/blob/main/linux/config20:01
joschThat list can be greatly reduced btw. These days, only CONFIG_DRM_CDNS_HDMI_CEC=m and CONFIG_DRM_IMX_CDNS_MHDP=m should be necessary. Once I find some time I test it out.20:09
joschMy plan was to get this list down to zero as more stuff gets merged upstream but that effort seems to be stalled.20:09
minuteyeah, there are some unnecessary items there 20:10
minutei'm playing with reordering things in /etc/initramfs-tools/modules and doing `update-initramfs -v -u -k 5.19.0-reform2-arm64` but not sure if it makes a difference20:11
minutei.e. i don't know exactly how /etc/initramfs-tools/modules is processed20:11
joschvagrantc has a better understanding of that part20:12
minutei have a feeling that the order of the lines in the file is not respected?20:12
joschone sec, I'm reading the sources...20:12
minutein any case, i guess it boils down to a bug in mxsfb20:13
minutebecause if there's a blank screen where i can log in, it means a framebuffer console is created even if it is not correctly set up20:14
joschminute: the module ordering comes from the kernel and is encoded in /lib/modules/*/modules.order20:16
minuteahh20:17
joschit seems that initramfs-tools relies on what depmod and modules.dep think is the correct order20:23
minutedo these refer to modules.order or again other files?20:25
minuteinitramfs-tools does not seem to respect modules.order at least.20:26
minutejosch: nevermind, i think it's better to debug exactly what is going on in mxsfb20:41
minute / lcdif20:41
minutein the failing case, we get `[    7.171135] mxsfb 30320000.lcd-controller: [drm] Cannot find any crtc or sizes`. in the working case, we get `[    7.451390] mxsfb 30320000.lcd-controller: [drm] fb0: mxsfb-drmdrmfb frame buffer device`20:42
q66minute: https://github.com/chimera-linux/cports/compare/3b274afdfbff...b4c6362d0c55 , https://github.com/chimera-linux/chimera-live/commit/fec14ef742c364ad1d73045c4fbb556f902c193d20:57
minuteq66: exciting!21:00
q66if you see anything outright wrong, lemme know, otherwise i can probably prepare an image for somebody to test21:00
minuteq66: is this building mainline u-boot?21:03
q66it's your downstream repo21:03
q66i don't think mainline has support at the moment, does it21:04
minuteugh https://source.mnt.re/reform/reform-boundary-uboot/-/jobs/88321:06
q66yeah that's because somebody updated the blobs/code and only shoved extra vars into the dotconfig without updating kconfig accordingly21:07
minuteah, so that's what you're patching21:07
q66yeah21:07
minuteq66: thanks, i imported this here https://source.mnt.re/reform/reform-boundary-uboot/-/commit/c3da64bdd2b79e5b55e4e100e3652a54adc4e08e21:16
q66cool21:17
q66i diffed the dotconfigs pre and post refresh and they seem the same21:17
q66so it should be ok21:17
q66https://repo.chimera-linux.org/live/testing/ feel like giving it a quick boot?21:19
q66i'd like to know if it actually works21:19
q66and if not, why doesn't it21:19
joschminute: okay, so I've done a more thorough reading of the initramfs-tools sources and from what I understand, the order of entries in /etc/initramfs-tools/modules *is* honored, *but* for each entry, `modprobe --all --show-depends` is executed to figure out its dependencies that are then also copied over and loaded in the order of dependencies that modprobe printed.21:22
- jackhill (QUIT: Remote host closed the connection) (~jackhill@kalessin.dragonsnail.net)21:33
joschminute: I'm now quite sure that above is correct. After changing /etc/initramfs-tools/modules, your selection is stored in /conf/modules in the initramfs. The initramfs on my reform (you can unpack it using unmkinitramfs) contains exactly the contents of my /etc/initramfs-tools/modules without any reordering. The load_modules() function in /scripts/functions then does a "while read -r m; do 21:40
josch/sbin/modprobe; done < /conf/modules"21:40
joschSo your manual order of /etc/initramfs-tools/modules is definitely preserved and the effect you are seeing might be because the kernel decides to load other modules in surprising ways when modprobing one of those.21:41
+ jackhill (~jackhill@kalessin.dragonsnail.net)21:42
* jackhill -> KM4MBG21:42
* KM4MBG -> jackhill21:43
minutejosch: thanks for the thorough analysis!22:06
minuteq66: i can definitely try tomorrow; already cycled home when you wrote this 22:06
joschblame vagrantc not being online tonight ;)22:06
q66alright22:09
q66if somebody else feels like trying it in the meantime, go ahead :p22:09
vkoskivq66: Just flash to sd card and boot? What is the expected outcome?22:11
+ ggoes (~gregf@fsf/staff/ggoes)22:11
q66vkoskiv: yeah just that22:12
q66the expected outcome is that the system boots22:12
vkoskivAlright, I'll give it a go.22:12
q66it should get you a getty on both the display and the serial console22:12
vkoskivI can only test display for now, my serial adapter doesn't have the right cable/connector yet22:13
q66that's alright22:13
- ggoes (QUIT: Quit: ZNC 1.8.2+deb2+b1 - https://znc.in) (~gregf@fsf/staff/ggoes)22:19
vkoskivWriting to SD22:24
q66you decompressed the image first right22:24
q66just checking :P22:24
vkoskivOf course.22:24
q66cool22:24
+ ggoes (~gregf@fsf/staff/ggoes)22:26
- ggoes (QUIT: Remote host closed the connection) (~gregf@fsf/staff/ggoes)22:26
vkoskivRebooting22:27
vkoskivI think I need to flip my boot switch22:27
vkoskivFlipped boot switch on SoM, nothing happens when I boot22:32
q66hm, alright22:32
q66without serial console it's impossible to know what happens22:32
q66oh well22:32
vkoskivSo only a binary result, sadly - no worky :D22:32
q66maybe minute can provide some insight later22:33
q66maybe i screwed something up in the code that writes u-boot22:33
q66or maybe my kernel is bad22:33
+ ggoes (~gregf@fsf/staff/ggoes)22:34
vkoskivThere are several moving parts, as I understand it.22:34
vkoskiv:D22:34
- ggoes (QUIT: Remote host closed the connection) (~gregf@fsf/staff/ggoes)22:34
q66quite22:43
q66without a serial cable it's difficult to know which one is moving wrong22:43
+ ggoes (~gregf@fsf/staff/ggoes)23:17
- ggoes (QUIT: Remote host closed the connection) (~gregf@fsf/staff/ggoes)23:18
+ ggoes (~gregf@fsf/staff/ggoes)23:22
- ggoes (QUIT: Remote host closed the connection) (~gregf@fsf/staff/ggoes)23:23
+ ggoes (~gregf@fsf/staff/ggoes)23:30
- ggoes (QUIT: Quit: ZNC 1.8.2+deb2+b1 - https://znc.in) (~gregf@fsf/staff/ggoes)23:39

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