2024-08-13.log

- bkeys (QUIT: Ping timeout: 264 seconds) (~Thunderbi@45.134.140.153)00:29
- mjw (QUIT: Ping timeout: 248 seconds) (~mjw@gnu.wildebeest.org)00:31
+ bkeys (~Thunderbi@45.134.140.153)00:58
- bkeys (QUIT: Read error: Connection reset by peer) (~Thunderbi@45.134.140.153)01:00
+ bkeys (~Thunderbi@45.134.140.153)01:01
- bkeys (QUIT: Client Quit) (~Thunderbi@45.134.140.153)01:04
+ bkeys (~Thunderbi@45.134.140.153)01:05
- bkeys (QUIT: Client Quit) (~Thunderbi@45.134.140.153)01:05
+ bkeys (~Thunderbi@45.134.140.153)01:05
+ piroko (~piroko@104.225.216.16)01:28
+ jacobk (~quassel@47-186-105-237.dlls.tx.frontiernet.net)03:03
- bluerise (QUIT: Ping timeout: 255 seconds) (~bluerise@p5b0ac2ab.dip0.t-ipconnect.de)03:13
- kop316 (QUIT: Remote host closed the connection) (m-6f6zq6@static.138.159.90.157.clients.your-server.de)04:02
+ kop316 (m-6f6zq6@static.138.159.90.157.clients.your-server.de)04:03
- kop316 (QUIT: Remote host closed the connection) (m-6f6zq6@static.138.159.90.157.clients.your-server.de)04:04
+ kop316 (m-6f6zq6@static.138.159.90.157.clients.your-server.de)04:04
+ bluerise (~bluerise@p5b2116b7.dip0.t-ipconnect.de)04:24
+ mrdaught (~mrdaught@bras-base-toroon01zb3-grc-78-184-147-249-58.dsl.bell.ca)05:35
- mrdaught (QUIT: Read error: Connection reset by peer) (~mrdaught@bras-base-toroon01zb3-grc-78-184-147-249-58.dsl.bell.ca)05:38
+ mrdaught (~mrdaught@bras-base-toroon01zb3-grc-78-184-147-249-58.dsl.bell.ca)05:39
- jacobk (QUIT: Quit: No Ping reply in 180 seconds.) (~quassel@47-186-105-237.dlls.tx.frontiernet.net)06:04
- aloo_shu (QUIT: Ping timeout: 272 seconds) (~aloo_shu@85.51.17.53)06:04
+ jacobk (~quassel@47-186-105-237.dlls.tx.frontiernet.net)06:10
+ aloo_shu (~aloo_shu@85.51.17.53)06:13
- mrdaught (QUIT: Remote host closed the connection) (~mrdaught@bras-base-toroon01zb3-grc-78-184-147-249-58.dsl.bell.ca)06:16
+ mrdaught (~mrdaught@bras-base-toroon01zb3-grc-78-184-147-249-58.dsl.bell.ca)06:17
+ mundane-1emantic (~user@static-198-54-134-176.cust.tzulo.com)06:20
mundane-1emanticIs there any other special steps to flash the pocket sdcard images?  When I flash them, they don't seem to show up as having partitions or filesystems (in the past the regular reform images do show this)06:21
mundane-1emanticI'm just following the "README.flashing" instructions for now06:22
voltagexthe battery switch is really hard to hit :(06:31
- murphnj (QUIT: Ping timeout: 248 seconds) (~murph@user/murphnj)07:08
+ murphnj (~murph@user/murphnj)07:22
- aloo_shu (QUIT: Ping timeout: 252 seconds) (~aloo_shu@85.51.17.53)07:34
+ aloo_shu (~aloo_shu@90.166.193.235)07:37
- mundane-1emantic (QUIT: Ping timeout: 252 seconds) (~user@static-198-54-134-176.cust.tzulo.com)08:25
+ mjw (~mjw@gnu.wildebeest.org)09:16
joschwhoops, we didn't re-generate the system images since the kernel fix and thus the pocket images were still without partition table due to u-boot on them09:22
joschthis is corrected now09:22
joschthanks to the reduced reform-handbook size, images are now 1.15 GB down from 1.3 GB09:22
joschon reform.d.n our images are down to 813 MB from 915 MB09:23
minutejosch: great, thank you!09:49
- jacobk (QUIT: Ping timeout: 260 seconds) (~quassel@47-186-105-237.dlls.tx.frontiernet.net)11:04
+ jacobk (~quassel@47-186-105-237.dlls.tx.frontiernet.net)11:04
- _alice (QUIT: Read error: Connection reset by peer) (sid544964@ilkley.irccloud.com)11:10
+ _alice (sid544964@id-544964.ilkley.irccloud.com)11:10
amospallajosch: I included the u-boot messages with the printenv on the forums. Forgot that part hihihi.12:22
grimmwareDoes anyone have a link for the ugreen PD charger which is known to charge the pocket *after* it's powered on?12:32
grimmwareNone of my chargers (steam deck, apple, Anker) will actually charge the thing after it's up12:33
joschamospalla: thank you!12:43
joschminute: according to the u-boot output by amospalla, u-boot on the pocket reform does not set the ${fdtfile} environment variable. But having that variable set is crucial for images that include support for multiple boards as that is the variable which communicates which device tree to load12:47
joschminute: and for the pocket, it should be fdtfile=freescale/imx8mp-mnt-pocket-reform.dtb12:47
amospallaI do not know what you are talking about, but sounds very good ^^12:48
joschminute: the recent reform-tools release made u-boot on emmc non-updatable but these kind of issues are reasons for why we *do* want to support users updating their u-boot12:48
joschamospalla: nah, it's rather negative news, unfortunately :/12:48
amospallas12:48
amospallaoh :(12:49
joschit's a bit of a pain because it means users have to manually update their u-boot and then you cannot rely on users having done that and if they do that, it involes a bit of a risk of them accidentally soft-bricking their device if something should go wrong12:49
amospallathank you for the explanation12:51
joschminute: this is documented in u-boot sources as doc/develop/distro.rst where ${fdtfile} is marked as "Mandatory" in the section "Required Environment Variables"12:56
- mjw (QUIT: Ping timeout: 252 seconds) (~mjw@gnu.wildebeest.org)13:12
* Guest3131 -> mjw13:20
- iank (QUIT: Quit: ZNC 1.8.2+deb2+deb11u1 - https://znc.in) (~iank@fsf/staff/iank)13:25
+ iank (~iank@fsf/staff/iank)13:27
- mrdaught (QUIT: Remote host closed the connection) (~mrdaught@bras-base-toroon01zb3-grc-78-184-147-249-58.dsl.bell.ca)13:31
+ mrdaught (~mrdaught@184.147.249.58)13:31
joschbluerise: as somebody more familiar with u-boot than i, can you confirm my findings related to ${fdtfile} above? Should that variable get set by the board file?14:01
minutejosch: ah, i see. 14:12
bluerisedepends on the U-Boot version I think. with mainline I'd assume that the Kconfig or defconfig for the board selects it14:13
bluerisehttps://github.com/u-boot/u-boot/blob/master/configs/imx8mq_reform2_defconfig#L1414:13
joschbluerise: right but you agree that it should be set, and that not setting it is not optimal?14:15
joschthank you for your input :)14:15
blueriseHonestly I don't know anymore because mainline has changed to some "standard boot" thingy instead of distroboot14:16
bluerisewith distroboot, I think fdtfile is set automagically14:16
joschminute: this also answers the question: "can there be a single u-boot for all rk3588 platforms" -- the answer is "no" if different device trees need to be passed to linux14:16
bluerisesome u-boot boards have code that selects different FDT files14:16
joschbluerise: using  ${soc}-${board}.dtb, right?14:17
blueriselast time I saw that it was C code that updated the... I guess ${fdtfile}14:17
bluerisevariable14:17
blueriseok let me regroup14:18
bluerisethe easiest case is you define a board that has a single DTB14:18
blueriseand then it depends on what you need to achieve. enable/disable overlays/devices?14:18
bluerisehttps://github.com/u-boot/u-boot/blob/master/board/solidrun/clearfog/clearfog.c#L27314:19
bluerisethis board for instance is basically the "same" with minor changes here and there, hence opting for updating the fdtfile14:20
joschthank you, seems we should find a way to do something similar for pocket and rk3588 u-boot14:22
minutehunch: maybe the cheapest way is just to create a big amount of images, the extra storage cost is still less than the engineering time and handling the complexity of "flexible images"14:29
minutebut maybe in the future the size of the individual images can be shrunk still14:29
minutei.e. making more stuff optional/net installed14:30
minutei'm now downloading the latest image build for rk3588 and trying it on next :314:30
[tj]freebsd has a generic image for armv7 which you have to add your own u-boot to14:32
[tj]it is a mixed bag, good for the project but a terrible user experience14:32
Zabawell, in the hypothetical bright bootstd future, a sufficiently modern and fully-featured u-boot would be able to boot Linux from extlinux.conf or any spiritual equivalent to that (i.e., firmware-agnostic configuration), and so you’d just have u-boot programmed into an SPI flash or something and boot from images that would only have standard file systems and no boot firmware on them 14:42
ZabaI’ve got one rk3568 SBC set up like that, it’s pretty nice 14:43
- mrdaught (QUIT: Read error: Connection reset by peer) (~mrdaught@184.147.249.58)14:45
minutei'm using custom extlinux.confs on most of my reform devices for debugging etc14:52
minutemaybe we could migrate imx8mq users to it at some point, if well planned14:53
minutenow working on reform next battery firmware :014:54
minutebtw, rk3588 image freezes on boot of course, because of the removed hdmi1 support in the kernel... still sth for my todo list to forward port that14:55
minutejosch: my system didn't boot the first time, and the second time, it didn't do the rootfs resizing. can i ask the system to do that now?15:05
minutealso, hostname choice was somehow not applied 15:06
minuteso now everything is meeeega delayed because it always wants to look up "reform" hostname that doesn't exist15:07
minutelike, sudo is super slow15:07
minutethis used to work though. does the debian-packaged reform-setup-wizard set the hostname at exit, josch?15:08
joschminute: yes, but where are we using the debian-packaged reform-setup-wizard? Moving to the packaged one is this MR https://source.mnt.re/reform/reform-system-image/-/merge_requests/9715:35
joschminute: it has been 3 months since i opened that MR, so i have to test things again15:35
joschminute: but unless you are trying out that MR, the images should not contain the debian-packaged reform-setup-wizard15:36
minutejosch: ah ok! sorry, i thought maybe the change in behavior came from that :315:36
minutejosch: ok, thanks for clarifying, then it's a new mystery15:36
joschminute: extlinux.conf on imx8mq is not only tricky because of potentially old u-boot but also because of: how do you switch dtbs without using boot.scr?15:36
minutejosch: i specify the dtb in extlinux.conf15:37
joschmanually?15:37
joschthen that will be overridden the next time u-boot-menu runs15:37
joschand u-boot-menu runs on every kernel upgrade to write the kernel versions into the extlinux.conf15:37
minutejosch: so it can't write the FDT= parameter? then it needs to be fixed maybe15:38
minutesorry, not FDT=, just FDT15:38
minutealso, there's a symlink "dtb" in /boot but i guess noone uses that15:39
minutewhat i mean is, one could just let uboot load /dtb and replace that symlink if needed15:40
joschminute: but that symlink is kernel version specific and thus also changed on every kernel update15:40
minuteok, not sure what dtb switching is needed then15:41
joschbecause the dtb path is kernel version specific15:41
minuteis it about using uboot menu with multiple kernels and a dtb for each kernel?15:41
minutethen uboot menu must be enhanced to couple FDT entries to kernel entries15:42
joschi mean the /boot/dtb link currently points to (for me) dtbs/6.9.10-mnt-reform-arm64/amlogic/meson-g12b-bananapi-cm4-mnt-reform2.dtb15:43
joschin there is the kernel version, so when a new kernel is installed something has to know for which version to put what15:44
+ mrdaught (~mrdaught@172.58.139.90)15:44
joschthat something is currently flash-kernel which can read /etc/flash-kernel/machine15:44
joschto my knowledge, that mechanism does not exist for u-boot-menu15:44
- mrdaught (QUIT: Read error: Connection reset by peer) (~mrdaught@172.58.139.90)15:45
- sir-photch (QUIT: Ping timeout: 252 seconds) (~m-hy5poy@static.93.70.235.167.clients.your-server.de)15:46
- bkeys (QUIT: Quit: bkeys) (~Thunderbi@45.134.140.153)15:46
+ bkeys (~Thunderbi@45.134.140.153)15:46
+ sir-photch (~m-hy5poy@static.93.70.235.167.clients.your-server.de)15:50
minutejosch: can this mechanism be added to u-boot-menu?15:55
minutejosch: so it would write the FDT entries into extlinux.conf15:55
minuteoh interesting, i just noted that rk3588 is actually using our uboot from microsd card15:56
minutethe imx8mq feeling...15:56
minutea small thing to fix > Model: Radxa ROCK 5 Model B15:56
joschminute: i (probably) stand corrected. The fdt switching could be implemented by writing the desired dtbname as variable U_BOOT_FDT into /etc/u-boot-menu/conf.d/reform.conf15:58
minuteaha aha16:07
joschnow we need somebody with an imx8mq to test :)16:58
joschkinda regretting not having one at home anymore... XD16:59
minutewe have a tray of weird ones, can check it one day :D17:01
joschyeah, like my very first one which had broken serial :)17:02
minuteyeah that's my go-to one for testing!!17:02
joschit was otherwise working fine -- broken serial was just very bad in the super early days when we were still mucking around with kernel, initramfs etc17:03
+ bkeys1 (~Thunderbi@45.134.140.153)17:03
minuteyeah17:03
- bkeys (QUIT: Ping timeout: 252 seconds) (~Thunderbi@45.134.140.153)17:05
* bkeys1 -> bkeys17:05
- bkeys (QUIT: Remote host closed the connection) (~Thunderbi@45.134.140.153)17:14
- hairu (QUIT: Remote host closed the connection) (m-uotkmd@user/hairu)17:15
+ hairu (m-uotkmd@user/hairu)17:16
+ bkeys (~Thunderbi@45.134.140.153)17:16
joschaha, i think i figured it out by staring at u-boot-menu code. The magic content for /etc/u-boot-menu/conf.d/reform.conf in case of a311d is:17:23
joschU_BOOT_FDT_DIR=/dtbs/17:23
joschU_BOOT_FDT=/amlogic/meson-g12b-bananapi-cm4-mnt-reform2.dtb17:23
joschslashes *are* important17:23
joschi'll read some irc backlog to figure out whether i'm missing something...17:24
joschhrm....17:31
joschflash-kernel is still required to copy the correct dtb into /boot17:31
joschwe could also copy a snippet into /etc/kernel/postinst.d/zz-sync-dtb which always copies *all* dtbs from /usr/lib/linux-image-* into /boot17:32
joschthat would be around 50 MB per kernel version though...17:32
joschwe could also only select those dtbs that are reform related, either by using a curated list or by matching against the dtb name17:33
joschthat could then have the advantage that /boot could become device agnostic as well17:33
joschbut that is not something that we need extlinux.conf for, this also works with flash-kernel17:33
joschthe prerequisite is, that /boot has all the relevant dtbs and that u-boot sets ${fdtfile} to the correct value17:34
joschwhich is not the case for the pocket (yet)17:34
joschvagrantc proposed to throw out flash-kernel in 202217:34
joschaha, past me was clever and left a lot of notes in /usr/share/u-boot-menu/conf.d/reform.conf17:41
joschthat was in the beginning of May...17:42
joschgosh... sometimes my memory really fails me... i have no recollection of having written this...17:43
+ mrdaught (~mrdaught@172.58.139.90)17:44
- mrdaught (QUIT: Read error: Connection reset by peer) (~mrdaught@172.58.139.90)17:45
- bkeys (QUIT: Ping timeout: 258 seconds) (~Thunderbi@45.134.140.153)17:56
^alexawoo17:58
minutejosch: haha i have the same issue... i guess normal that one can't keep the details of all these hundreds of subprojects in the brain18:08
joschminute: this is very releaving to hear, honestly :)18:09
blueriseI'd recommend not trying to fit in 2 boards into a single u-boot image, instead providing a better installer/upgrader18:14
bluerisebut I mean, you do you18:14
joschbluerise: we already have reform-flash-uboot but upgrading u-boot always carries some danger with it...18:15
blueriseyeah, same risk if you have two images or a single image. when you upgrade u-boot, it might break18:15
joschbluerise: if it were up to you, how would you design the system?18:45
+ mark_ (~mjw@gnu.wildebeest.org)18:53
- mjw (QUIT: Killed (tungsten.libera.chat (Nickname regained by services))) (~mjw@2001:1c06:2488:1400:4fd:39a7:74ac:7bae)18:54
* mark_ -> mjw18:54
+ Guest7334 (~mjw@2001:1c06:2488:1400:4fd:39a7:74ac:7bae)18:54
* cwebber- -> cwebber19:08
blueriseI can speak about what I did in the past, which seemed to work reasonably well.19:11
bluerisea) installs/upgrades transparent to the user -- they shouldn't need to see what's going on under the hood19:12
blueriseb) different products have different DTBs if necessary. often caused by major HW design differences (i.MX8MQ vs i.MX8MP)19:12
bluerisec) don't diverge DTBs if you don't have to. e.g. a pmic change, or DDR RAM setting change... have some HW major/minor versions e.g. through GPIOs/resistors around so that U-Boot can enable/disable features19:13
bluerise-- c) might not always great for upstreamability, but it's easier to manage as a product, and better than having 1000 different dtbs around solely because you needed to update some HW due to supply chain constraints19:14
joschbluerise: would you like to see u-boot upgraded transparently during normal system upgrades, for example? or would you prefer to be in charge when you want to flash a new u-boot?19:16
joschand thank you for your perspective :)19:16
blueriseFrom a usability point of view, doing it transparently is better. How would a user know whether it's safe or not to do the upgrade? Shouldn't be up for the user to decide, but whoever is packaging and shipping the new version needs to figure out: Is this safe? Will it run whatever the user boots? Is it backwards compatible? What could break?19:21
chtransparent is bad when there is no fallback19:22
blueriseYeah but even then when someone opts to do the upgrade and it breaks, they are fucked the same way. Difference might be how many setups you're breaking19:23
blueriseAlternative is to stay on the oldest version as long as possible, which nowadays might work well enough since there's not going to be a lot of breaking ABI changes between U-Boot and whatever you're booting next.19:24
blueriseOr maybe introduce some dependency tracking of: can't upgrade to this version of Reform Software if you don't also update u-boot19:25
bluerisedoes RK3588 on Reform support going maskrom mode?19:26
+ gustav28 (~gustav@c-df53205c.019-141-67626730.bbcust.telenor.se)20:02
- cobra (QUIT: Ping timeout: 260 seconds) (~cobra@user/Cobra)20:13
+ cobra (~cobra@user/Cobra)20:15
- cobra (QUIT: Quit: ZNC 1.8.2 - https://znc.in) (~cobra@user/Cobra)20:21
+ cobra (~cobra@user/Cobra)20:25
joschbluerise: disappointingly, the debian dependency system does not support depending on "this kernel is running" or "this bootloader is used". Those parts are unfortunately outside the control of the dependency system... :/20:26
joschi'm going to work on a patch to the pocket reform u-boot because for example the debian-installer images ship /extlinux/extlinux.conf which just contains "fdtdir /dtbs/" for each entry and distro_boot is supposed to figure out the correct dtb for the platform without being told by the extlinux.conf20:28
- natalie- (QUIT: Ping timeout: 252 seconds) (~natalie@user/natalie)20:47
+ natalie (~natalie@user/natalie)20:50
Twodisbetterjosch: thanks21:23
- colinsane (QUIT: Ping timeout: 260 seconds) (~colinunin@97-113-70-61.tukw.qwest.net)21:37
+ mrdaught (~mrdaught@172.58.139.90)21:45
- mrdaught (QUIT: Read error: Connection reset by peer) (~mrdaught@172.58.139.90)21:45
+ colinsane (~colinunin@97-113-136-73.tukw.qwest.net)22:13
- gustav28 (QUIT: Quit: Quit) (~gustav@c-df53205c.019-141-67626730.bbcust.telenor.se)22:15
- jacobk (QUIT: Ping timeout: 248 seconds) (~quassel@47-186-105-237.dlls.tx.frontiernet.net)22:26
+ bkeys (~Thunderbi@50.96.250.19)22:32
- bkeys (QUIT: Ping timeout: 248 seconds) (~Thunderbi@50.96.250.19)22:47
- mjw (QUIT: Ping timeout: 258 seconds) (~mjw@gnu.wildebeest.org)23:50

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