2023-09-20.log

minutejosch: what's the upside of cryptomgr tests?00:13
minutei thought only the tests were broken, not caam itself... or am i mistaken?00:13
joschminute: i have no clue about the detailts -- i just saw you including it in reform-system-image which means it stays on user's systems forever00:14
minutejosch: afaik these are only a suite of self-tests00:15
joschyes, but you don't want to keep this forever because it's only for 6.5, right?00:16
minutehm https://lwn.net/Articles/400651/00:16
minute> Though Xu posted a patch to default the self-tests to "off", it has not yet made its way into the mainline. Given Torvalds's statements, though, that will probably happen relatively soon00:17
minute> 201000:17
joschheh00:17
joschwell, if the setting is supposed to stay in the kernel cmdline forever, things can as well remain as they are00:18
minuteat the moment i would say so, in the long run it would be great if the kernel cmdline can be adjusted by updates00:19
- S0rin (QUIT: Ping timeout: 240 seconds) (~S0rin@user/s0rin)00:19
+ S0rin (~S0rin@user/s0rin)00:20
joschwe could use the method from my MR to do exactly that00:22
joschdependeng on the platform, different cmdline can be selected00:22
minutejosch: ok cool00:22
minutebtw for that fw blob, i'll have to do a few gymnastics: as i can only deploy to /boot, i have to pass another kernel cmdline to allow looking for firmware on /boot00:23
joschoh dear XD00:23
+ Gooberpatrol66 (~Gooberpat@user/gooberpatrol66)00:24
minutemaybe another option could be to mount the generated root partition and sneak it into /lib/firmware00:24
joschminute: why can you only deploy into /boot? i thought you were using the "--customize-hook="upload.... method?00:25
minutejosch: yes, maybe i misunderstood something about mkimage.sh00:26
minutejosch: does the second mmdebstrap see both partitions?00:26
minutei must say i was (and am) quite tired when i was working on this00:27
joschminute: the second mmdebstrap sees both but only /boot gets extracted from the result of it00:27
joschwhat deadline is hunting you right now that you are so short on time?00:28
minutejosch: we have a big order backlog, and i want to ship things before i can concentrate on pocket reform finishing00:28
joschin "u-boot-config" in reform-ls1028a-uboot you could use CONFIG_USE_BOOTARGS=y and CONFIG_BOOTARGS to set ${bootargs} to ls1028a specific stuff like here: https://source.mnt.re/reform/reform-a311d-uboot/-/blob/main/bananapi-cm4-mnt-reform2_defconfig?ref_type=heads#L8600:28
minutejosch: yes, i did that already00:29
joschah kk00:29
minutejosch: but i'm not sure if that's very elegant :D00:29
joschvagrantc said another time that u-boot is supposed to set the platform-specific kernel cmdline00:30
joschbecause boot.scr as generated by flash-kernel is really bad at that00:30
minutejosch: yeah, sorry, that's fine, i meant more like adjusting the cmdline to load firmware from /boot00:30
minutethere's a parameter for that00:30
joschah right00:30
joschi don't think i know the answer to that better than you do :)00:31
minutehttps://www.kernel.org/doc/html/v6.5/driver-api/firmware/fw_search_path.html00:31
minute'firmware_class.path=$CUSTOMIZED_PATH'00:31
minuteso i do firmware_class.path=/boot00:31
minuteand in the driver i would request "ls1028a-mhdpfw.bin"00:31
minutewhich i place in /boot00:31
minutejosch: but i'm thinking for example about: how can we load the fw in initramfs then?00:32
minutejosch: will initramfs mount /boot?00:32
minuteotherwise we won't have display00:33
joschi'm unsure00:33
minutein the end i would like u-boot to load the fw, but i don't know how00:34
minutein the vendor fw this is done with the special "hdp" command00:34
joschminute: but you are adding the "--customize-hook="upload.... to the first mmdebstrap invocation, right?00:34
minutevendor u-boot i mean00:34
minutejosch: not yet00:34
minutejosch: because then we would deploy the fw on all images. is that a good idea?00:34
joschno, you would write something like:00:35
joschah00:35
joschno, you are right of course00:35
joschyes, the current method has the same rootfs for all platforms00:35
joschhrm...00:35
minutewe could deploy it on /lib/firmware on all images, and if someone doesn't like it, they could delete the file ^^00:35
minutebut anyway, i realize there is no solution for initramfs00:36
joschnot necessarily -- you can add any crazy script to the initramfs00:36
joschsee my first boot merge request for reform-system-image00:37
joschi'm even repartitioning in the initramfs00:37
joschand modules are loaded in there as well00:37
minuteah oh, ok so i have to look at it tomorrow00:38
joschin a hook you can copy arbitrary files into the initramfs00:38
joschand then modprobe the module with the correct arguments for the firmware path, for example00:38
minutewhat is strange is that mainline u-boot actually has references to the hdp load command00:38
minutehttps://github.com/u-boot/u-boot/blob/b9b83a86f0e84e837191db120c279a9cc0e3434b/board/congatec/cgtqmx8/cgtqmx8.c#L43600:38
minutehttps://github.com/u-boot/u-boot/blob/b9b83a86f0e84e837191db120c279a9cc0e3434b/include/configs/ls1028ardb.h#L12400:39
minutebut i don't see where this command is implemented (i don't think it is)00:39
minutejosch: ok thanks, putting it in initramfs might be the best solution after all00:40
minute(until we have it in u-boot and u-boot also can already enable the display)00:40
+ jacobk (~quassel@utdpat241106.utdallas.edu)00:40
joschminute: in drivers/video/imx/hdp.c there is U_BOOT_CMD(hdp, ..., do_hdp,...00:41
joschis it not that?00:41
minutelol wait00:42
minutejosch: that file doesn't exist https://github.com/u-boot/u-boot/tree/master/drivers/video/imx00:43
minutejosch: are you looking at vendor uboot?00:43
joschthat was from boundary uboot00:43
minutejosch: well, boundary uboot is imx uboot00:43
joschdrivers/video/nxp/imx/hdmi/hdp_load.c00:43
minutewe could of course try to use that instead of mainline00:43
minutejust, sigh00:44
joschand drivers/video/nxp/layerscape/hdp_load.c00:44
joschthat's not it?00:44
minutedrivers/video/nxp does not exist in mainline uboot00:45
joschoh00:45
joschi'm still at vendor uboot00:45
joschmy bad00:45
minuteyeah, the problem is that that stuff requires all kinds of other code00:45
minutesome weird API file etc00:45
joschbummer :(00:45
minutemy first thought was to port it to mainline uboot but then i gave up because it looked like major spaghetti00:46
joschyeah, i guess going the initramfs route is the way forward00:46
joschone problem with that is, that this still needs the firmware somewhere on disk00:47
joschor otherwise, it's gone next time the initramfs is re-generated00:47
minuteoh i see hm00:48
joschor... you could ship the firmware as part of flash.bin and the initramfs script extracts it from there instead of from a file on a filesystem :)00:48
joschthat would avoid having the firmware on the rootfs on all platforms00:49
joschi now see why you want to put it into /boot00:49
minuteis flash.bin in the initramfs?00:49
minuteah, you mean the initramfs generation script00:50
minuteif it's on /boot, then it's right next to flash.bin :D00:50
joschyup00:50
joschthe script generating the initramfs can copy it from /boot into the initramfs00:50
minuteok00:51
joschand a script that is run during boot can then load it00:51
minutejosch: initramfs probably has a /boot as well?00:51
minuteinternally00:51
joschi don't know if it mounts it00:51
minuteyeah, i thought as part of the cpio maybe00:51
minutewell, in the initramfs it can just live in /lib/firmware00:52
joschreform-tools can install a script into /usr/share/initramfs-tools/hooks that copies the firmware into the initramfs *only* on ls1028a00:53
minuteso, to summarize: 1. it's deployed on /boot 2. initramfs script puts it in /lib/firmware in the initramfs cpio 3. profit00:53
minutejosch: ah!00:53
joschand reform-tools would also ship a script in /usr/share/initramfs-tools/scripts/ which is run during boot that then does something with this firmware00:53
minutejosch: i'm not sure anything special needs to be done00:53
joschinitramfs-tools calls "hooks" the scripts that are run on creation of the initramfs00:53
minutejosch: initramfs boot will modprobe the module and the module will request it from /lib/firmware00:53
joschyes, hopefully00:54
minuteit = the fw00:54
joschif not, then the second script can take care to modprobe with whatever arguments required00:54
minuteok00:54
minuteall of these hoops just to load proprietary code...00:54
joschdon't remind me of my nvidia story from last week XD00:55
minutehaha which one is that00:55
joschnono00:55
joschit's just making everybody upset00:55
minute(at least i'm not putting it as a hex string in the driver)00:55
joschwell, you could! :D00:55
minuteyeah, but i just checked, even zipped it's like 36kB00:55
joschokay, sounds like a good plan for tomorrow00:56
joschi have to hit the pillow :)00:56
minuteand it would make the kernel non-gpl00:56
minuten8n8 josch 00:56
joschgood night!00:56
- XYZ (QUIT: Read error: Connection reset by peer) (~XYZ@37-48-2-164.nat.epc.tmcz.cz)01:45
+ XYZ (~XYZ@37-48-2-164.nat.epc.tmcz.cz)01:48
- vagrantc (QUIT: Quit: leaving) (~vagrant@2600:3c01:e000:21:7:77:0:50)01:49
- jacobk (QUIT: Ping timeout: 240 seconds) (~quassel@utdpat241106.utdallas.edu)01:58
- mtm (QUIT: Ping timeout: 260 seconds) (~mtm@c-71-228-84-213.hsd1.fl.comcast.net)02:03
- S0rin (QUIT: Ping timeout: 260 seconds) (~S0rin@user/s0rin)02:22
- XYZ (QUIT: Read error: Connection timed out) (~XYZ@37-48-2-164.nat.epc.tmcz.cz)02:23
+ S0rin (~S0rin@user/s0rin)02:23
+ XYZ (~XYZ@37-48-2-164.nat.epc.tmcz.cz)02:40
- XYZ (QUIT: Read error: Connection timed out) (~XYZ@37-48-2-164.nat.epc.tmcz.cz)03:15
- S0rin (QUIT: Ping timeout: 240 seconds) (~S0rin@user/s0rin)03:28
+ S0rin (~S0rin@user/s0rin)03:33
+ XYZ (~XYZ@37-48-2-164.nat.epc.tmcz.cz)03:33
- ajr (QUIT: Quit: Connection closed for inactivity) (uid609314@user/ajr)03:57
+ mtm (~mtm@c-71-228-84-213.hsd1.fl.comcast.net)04:09
- XYZ (QUIT: Read error: Connection timed out) (~XYZ@37-48-2-164.nat.epc.tmcz.cz)04:21
+ XYZ (~XYZ@37-48-2-164.nat.epc.tmcz.cz)04:38
- GNUmoon (QUIT: Remote host closed the connection) (~GNUmoon@gateway/tor-sasl/gnumoon)04:49
+ GNUmoon (~GNUmoon@gateway/tor-sasl/gnumoon)04:50
+ jacobk (~quassel@utdpat241106.utdallas.edu)05:13
- XYZ (QUIT: Read error: Connection timed out) (~XYZ@37-48-2-164.nat.epc.tmcz.cz)05:13
- GNUmoon (QUIT: *.net *.split) (~GNUmoon@gateway/tor-sasl/gnumoon)05:39
- jacobk (QUIT: Ping timeout: 246 seconds) (~quassel@utdpat241106.utdallas.edu)06:03
+ jacobk (~quassel@utdpat242064.utdallas.edu)07:16
+ XYZ (~XYZ@37-48-2-164.nat.epc.tmcz.cz)07:46
- jacobk (QUIT: Ping timeout: 240 seconds) (~quassel@utdpat242064.utdallas.edu)07:54
+ jacobk (~quassel@64.189.201.150)08:54
+ pandora (uid585533@id-585533.ilkley.irccloud.com)10:12
+ MajorBiscuit (~MajorBisc@2001:1c00:31c:8400:f184:4168:559b:d91b)10:37
+ GNUmoon (~GNUmoon@gateway/tor-sasl/gnumoon)10:39
minutesome cool pix https://mastodon.sdf.org/@SDF/11109562434735180911:02
- GNUmoon (QUIT: Remote host closed the connection) (~GNUmoon@gateway/tor-sasl/gnumoon)11:20
+ GNUmoon (~GNUmoon@gateway/tor-sasl/gnumoon)11:21
- klardotsh (QUIT: Ping timeout: 260 seconds) (~klardotsh@c-67-170-115-80.hsd1.wa.comcast.net)11:31
grimmwareminute: I lol'd at games/catclock on Debian11:43
+ cliffya (~CliffyA@180-150-53-95.b49635.mel.static.aussiebb.net)13:23
- mjw (QUIT: Ping timeout: 260 seconds) (~mjw@gnu.wildebeest.org)13:26
* mark_ -> mjw13:28
abortretryfailThat is 9front my dude13:43
abortretryfailThat red key backlight on the pocket tho.... >_> 🔥13:45
abortretryfailI want that on my Reform, but do I want it enough to do a heck of a lot of SMD soldering?13:46
joschminute: i investigated how to best put the firmware into the initramfs13:49
joschminute: if you run `modinfo -F firmware yourmodule` does the firmware that "yourmodule" need show up?13:49
joschminute: because if yes, then mkinitramfs will automatically copy that modules into your initramfs if you put the module into /usr/share/initramfs-tools/modules.d/reform.conf in reform-tools13:50
- mtm (QUIT: Ping timeout: 244 seconds) (~mtm@c-71-228-84-213.hsd1.fl.comcast.net)14:03
- cliffya (QUIT: Ping timeout: 260 seconds) (~CliffyA@180-150-53-95.b49635.mel.static.aussiebb.net)14:17
+ cliffya (~CliffyA@180-150-53-95.b49635.mel.static.aussiebb.net)14:17
Asmadeusm14:20
- cliffya (QUIT: Ping timeout: 244 seconds) (~CliffyA@180-150-53-95.b49635.mel.static.aussiebb.net)14:23
+ cliffya (~CliffyA@180-150-53-95.b49635.mel.static.aussiebb.net)14:23
joschminute: you might be able to adjust details of this to do the firmware copying: https://source.mnt.re/reform/reform-tools/-/merge_requests/5314:31
- cliffya (QUIT: Ping timeout: 244 seconds) (~CliffyA@180-150-53-95.b49635.mel.static.aussiebb.net)14:47
+ cliffya (~CliffyA@180-150-53-95.b49635.mel.static.aussiebb.net)14:47
- jacobk (QUIT: Ping timeout: 255 seconds) (~quassel@64.189.201.150)14:55
+ jacobk (~quassel@129.110.242.224)15:07
- Boostisbetter (QUIT: Remote host closed the connection) (4a410829d7@irc.cheogram.com)15:19
- cliffya (QUIT: Quit: WeeChat 4.0.2) (~CliffyA@180-150-53-95.b49635.mel.static.aussiebb.net)15:20
+ Boostisbetter (4a410829d7@irc.cheogram.com)15:22
- jacobk (QUIT: Quit: http://quassel-irc.org - Chat comfortably. Anywhere.) (~quassel@129.110.242.224)15:51
+ mtm (~mtm@c-71-228-84-213.hsd1.fl.comcast.net)16:09
minutejosch: thank you very much for the script! the last argument to copy_file is the destination, right? so shouldn't it go to /lib/firmware ?16:10
joschminute: ah whoops, yes, absolutely!16:57
joschcopypaste error :)16:57
+ jacobk (~quassel@64.189.201.150)17:01
joschminute: i just realized that this will not do the right thing when run as part of reform-system-image because in that setup, /proc/device-tree/model is not the source of truth but /etc/flash-kernel/machine is17:01
joschminute: i fixed both problems and amended my commit in that MR17:10
josch(still untested of course)17:10
+ vagrantc (~vagrant@2600:3c01:e000:21:7:77:0:50)17:26
- eery (QUIT: Remote host closed the connection) (~eery@77.137.73.95)17:43
minutejosch: thank you! will test asap, after validating backlight pwm for ls1028a17:51
minutewe had bad luck with standalone keyboard parts (cases) https://mastodon.social/@mntmn/11109825814012187717:51
joschoh no, what a pain :(17:53
minuteyeah, we're quite shocked tbh17:55
minuteah, debian is missing > CONFIG_PWM_FSL_FTM is not set17:57
minute"FTM" is their PWM engine17:57
jfredOooooof17:58
joschit's so weird to think that there must've been a person who saw these parts and still decided "yep, looks good! lets ship those to the customer!" such a waste of time, money and resources :(18:14
- jacobk (QUIT: Ping timeout: 248 seconds) (~quassel@64.189.201.150)18:25
minutejosch: yeah :(18:29
+ mark_ (~mjw@gnu.wildebeest.org)18:30
- MajorBiscuit (QUIT: Ping timeout: 258 seconds) (~MajorBisc@2001:1c00:31c:8400:f184:4168:559b:d91b)18:40
- mark_ (QUIT: Ping timeout: 258 seconds) (~mjw@gnu.wildebeest.org)19:11
+ mark_ (~mjw@gnu.wildebeest.org)19:15
- mark_ (QUIT: Ping timeout: 258 seconds) (~mjw@gnu.wildebeest.org)19:20
+ mark_ (~mjw@gnu.wildebeest.org)19:32
minuteok, got pwm backlight working on the ls1028a19:33
josch\o/19:38
+ jacobk (~quassel@129.110.242.224)19:42
minutenow to put everything together again...19:57
BoostisbetterTeam MNT, I happy to announce that I am on the 52 succesful resume from suspend on my Reform with the 6.5 kernel20:02
minutedebian is also missing CONFIG_FSL_RCPM=y20:07
minuteBoostisbetter: cool!20:07
- mjw (QUIT: Killed (NickServ (GHOST command used by mark_!~mjw@gnu.wildebeest.org))) (~mjw@2001:1c06:2488:1400:4fd:39a7:74ac:7bae)20:09
* mark_ -> mjw20:09
+ mark_ (~mjw@2001:1c06:2488:1400:4fd:39a7:74ac:7bae)20:09
joschminute: once you have a list of the missing kernel config options for ls1028a i will submit a merge request for the debian kernel so that they get included there as well. Then we don't have to deviate on that.20:10
joschthose for imx8mq were approved quite quickly20:11
minutejosch: cool!20:12
minutejosch: ok so i merged https://source.mnt.re/reform/reform-tools/-/merge_requests/53 , and will deploy the fw to /boot in the second mmdebstrap invocation, right?20:13
minuteas the second invocation runs flash-kernel, my guess is it will be picked up there20:14
+ klardotsh (~klardotsh@c-67-170-115-80.hsd1.wa.comcast.net)20:22
- jacobk (QUIT: Ping timeout: 240 seconds) (~quassel@129.110.242.224)20:49
abortretryfailweird, waybar's battery meter is wrong.21:20
abortretryfailcircle+b says 62%, /sys/class/power_supply/8xlifepo4/capacity says 62, but waybar says 71%21:21
+ jacobk (~quassel@utdpat241106.utdallas.edu)21:22
+ eery (~eery@77.137.73.95)21:28
- eery (QUIT: Ping timeout: 245 seconds) (~eery@77.137.73.95)21:35
minutei pushed more ls1028a things. lets see if we have an almost-ready system image tomorrow21:39
+ eery (~eery@77.137.73.95)21:39
- mjw (QUIT: Ping timeout: 258 seconds) (~mjw@gnu.wildebeest.org)22:16
- GNUmoon (QUIT: Ping timeout: 252 seconds) (~GNUmoon@gateway/tor-sasl/gnumoon)22:17
- Boostisbetter (QUIT: Ping timeout: 258 seconds) (4a410829d7@irc.cheogram.com)22:27
+ GNUmoon (~GNUmoon@gateway/tor-sasl/gnumoon)22:31
- XYZ (QUIT: Ping timeout: 240 seconds) (~XYZ@37-48-2-164.nat.epc.tmcz.cz)22:39
+ XYZ (~XYZ@78-80-18-84.customers.tmcz.cz)22:53
abortretryfailOh good, i'm not the only one who noticed that waybar is way off. https://community.mnt.re/t/lpc-spi-firmware-and-driver-prototype/1030/1323:25
+ bkeys (~bkeys@c-67-191-106-248.hsd1.fl.comcast.net)23:34
bkeysHi all, I'm having an issue with my Reform. The batteries died (I have the protected battery boards) and now I get this when I plug it up to the charger23:35
bkeyshttps://postimg.cc/d7fswrDX23:37
bkeysHere is what my LPC screen is looking like23:38
abortretryfailIt's all scrambled?23:38
abortretryfailMight be worth hitting the reset button on the keyboard and see if it comes back. You can get it with the corner of a credit card just above the F4 key without unscrewing the bezel.23:39
- bkeys (QUIT: Quit: Client closed) (~bkeys@c-67-191-106-248.hsd1.fl.comcast.net)23:42
- vagrantc (QUIT: Ping timeout: 240 seconds) (~vagrant@2600:3c01:e000:21:7:77:0:50)23:44
- GNUmoon (QUIT: Remote host closed the connection) (~GNUmoon@gateway/tor-sasl/gnumoon)23:53
+ GNUmoon (~GNUmoon@gateway/tor-sasl/gnumoon)23:54

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