2024-08-11.log

Twodisbetterminute: incase you want the specifics of the kernel this is the output for uname -a00:24
TwodisbetterLinux pocket001 6.10.3-mnt-reform-arm64 #1 SMP Debian 6.10.3-1+reform20240807T214815Z (2024-08-07) aarch64 GNU/Linux00:24
minuteTwodisbetter: thanks!01:21
+ ZylonMaster (~hjcs@ool-ad02e01f.dyn.optonline.net)01:56
- cobra (QUIT: Ping timeout: 276 seconds) (~cobra@user/Cobra)02:08
+ cobra (~cobra@user/Cobra)02:13
- cobra (QUIT: Quit: ZNC 1.8.2 - https://znc.in) (~cobra@user/Cobra)02:35
+ hjcfd (~hjcs@ool-ad02e01f.dyn.optonline.net)02:39
+ cobra (~cobra@user/Cobra)02:39
- ZylonMaster (QUIT: Ping timeout: 272 seconds) (~hjcs@ool-ad02e01f.dyn.optonline.net)02:42
* hjcfd -> ZylonMAster02:43
- colinsane (QUIT: Ping timeout: 252 seconds) (~colinunin@97-113-70-61.tukw.qwest.net)02:46
- ZylonMAster (QUIT: Read error: Connection reset by peer) (~hjcs@ool-ad02e01f.dyn.optonline.net)02:50
+ ZylonMAster (~hjcs@ool-ad02e01f.dyn.optonline.net)02:50
- ZylonMAster (QUIT: Read error: Connection reset by peer) (~hjcs@ool-ad02e01f.dyn.optonline.net)02:54
^alexfun times in "initial clocking" land: the syscon is happy with a downclocked PLL but the same clock init routine janks up the PIO engine on the keyboard such that the LEDs go hilariously wrong03:14
^alexwe are also whacking a lot of fun bits into the sleep_hw03:14
- 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
* robin -> lispwitch07:02
* lispwitch -> robin07:02
+ midfavila (midfavila@sdf.org)07:33
midfavilamannnnn modos needs to hurry up and push their display tech out alreaddddyyyyyyy07:33
- laumann_ (QUIT: Changing host) (~quassel@2a0a-e5c0-2-2-0-c8ff-fe68-bef1.loves.ipv6.at.ungleich.ch)08:37
+ laumann_ (~quassel@user/laumann)08:37
* laumann_ -> laumann08:37
+ colinsane (~colinunin@97-113-70-61.tukw.qwest.net)10:06
- jacobk_ (QUIT: Quit: No Ping reply in 180 seconds.) (~quassel@47-186-105-237.dlls.tx.frontiernet.net)10:57
+ jacobk (~quassel@47-186-105-237.dlls.tx.frontiernet.net)10:59
- jacobk (QUIT: Ping timeout: 248 seconds) (~quassel@47-186-105-237.dlls.tx.frontiernet.net)11:04
+ jacobk (~quassel@47-186-105-237.dlls.tx.frontiernet.net)11:04
amospallaIt is not posible to choose which kernel to boot with on a Pocket, is it?11:24
joschamospalla: the "kernel choosing" functionality is provided if you have a u-boot that is able to drive the display11:26
joschamospalla: so theoretically you could install stuff which presents you a boot menu but it's pointless if you do not see it :)11:26
amospallaThank you josch , I thought it was not posible but was not sure.11:27
chhttps://youtu.be/jGMc3SD_LFM?t=52 required reference11:28
grimmwarejosch: does it just try each installed kernel until it finds one that boots?11:29
joschgrimmware: no, what u-boot tries to find is a boot.scr or extlinux.conf until it finds one11:51
joschand then it is the task of the boot.scr or extlinux.conf that it found to pick the right kernel11:52
joschgrimmware: the boot.scr or extlinux.conf are search for in the first partition of usb-stick, sd-card or emmc (usually in that order)11:52
joschgrimmware: boot.scr only knows how to boot a single kernel version as it was set up by flash-kernel11:55
joschgrimmware: extlinux.conf is able to present you with a boot-menu allowing you to pick amongs all installed kernels (this is set up by the u-boot-menu package)11:56
grimmwareGotcha11:56
joschi'd love to switch from boot.scr to extlinux.conf but alas we have the imx8mq to support still :)11:58
Manisjosch: you can setenv however to boot another version.12:04
ManisNot user friendly but better than nothing for recovery.12:04
joschManis: yes, but to do that you need either working display and usb or a uart adapter and a second machine attached12:04
joschManis: and the only platform that has the former is the imx8mq12:04
Manisjosch: Correct, but for extlinux, too, or not?12:05
joschManis: can you rephrase? I'm not sure what you mean12:05
Manisjosch: you also need a console (either display or serial) to select something from the extboot menu.12:06
joschyes, correct12:07
joschwhich is why having an extlinux.conf isn't really useful unless you have the imx8mq12:07
ManisSo what is the big advantage of extlinux over flash-kernel?12:07
ManisAh, sorry, I guess we were having a violent agreement :-)12:08
joschManis: flash-kernel is very unmaintained, the people who maintain it really dislike it and u-boot developers talk about throwing out boot.scr support in a future release12:08
Manisjosch: Yes, I have to agree that flash-kernel is a bit meh.12:09
Zabaone advantage is that extlinux.conf is just a normal configuration file, which boot.scr isn’t 12:09
joschi don't think anybody is argueing in favour of boot.scr, no? :)12:10
ManisHowever removing boot.scr support from u-boot sounds like a bad idea.12:10
Zabawhy?12:10
joschfor legacy reasons i'd say12:10
joschto not break existing setups12:10
ManisZaba: yes and no. extlinux needs to be updated on every kernel update while, theoretically, boot.scr could generate a menu dynamically.12:11
Zabamost existing setups will just never update u-boot12:11
ManisI also use extlinux when I'm not using Debian but I really think the manual updates which are usually necessary are a disadvantage.12:11
Zabathe u-boot-menu package in Debian can handle generating the extlinux.conf12:12
joschthe Debian kernel image maintains the symlinks /initrd.img and /vmlinuz, so theoretically you can also have a static extlinux.conf if your u-boot sets ${fdtfile} correctly12:12
Zabathe same way it works for every other bootloader 12:12
Zabadoing any kind of complex scripting in u-boot’s command language sounds inane to be honest 12:13
joschyes, one reason i'd prefer extlinux.conf over boot.scr is, that the former is declarative and the latter is turing complete12:13
Zababut anyway, you can also customize bootstd inside u-boot if you have specialized use cases, parsing extlinux.conf files is just what happens to be implemented already 12:15
Zabayou’ll be writing C instead of u-boot commands which seems to me like a better programming environment for anything complex12:16
joschgrimmware: if you want to get a better understanding about how the boot process works, i wrote up this for the imx8mq: https://source.mnt.re/reform/reform-handbook/-/issues/212:17
joschgrimmware: the boot process on the imx8mq is a bit more interesting because it has a DIP switch which allows you to select where to load u-boot from12:17
joschgrimmware: and because it has some magic in userspace which allows switching the dtb between single and dual display mode12:18
- amk (QUIT: Ping timeout: 255 seconds) (~amk@user/amk)13:39
+ amk (~amk@user/amk)13:39
Twodisbetterfor all those concerned my Pocket has been on for 3 days and hasn't dropped connectivity once. It has in the past but this time it hasn't.13:50
chdo you know what changed?13:51
Twodisbetterstock system just running a 6.10.3 kernel13:51
TwodisbetterI don't think heat is the issue though for the disconnects13:52
- amk (QUIT: Ping timeout: 258 seconds) (~amk@user/amk)14:42
+ amk (~amk@user/amk)14:49
- amk (QUIT: Ping timeout: 252 seconds) (~amk@user/amk)15:02
+ amk (~amk@user/amk)15:11
- amk (QUIT: Ping timeout: 272 seconds) (~amk@user/amk)16:17
+ amk (~amk@user/amk)16:27
chjosch: maybe you want to look at https://community.mnt.re/t/debugging-boot-failures/2375/7 16:42
joschhahahaha oh no XD16:45
joschyes, i was just thinking about something similar yesterday16:45
chsorry!16:45
joschoh no worries16:46
joschi'm happy that you found the thing that was bugging me16:46
ch(:16:46
joschbecause we do it correctly for a311d16:46
joschbut i botched it for imx8mplus apparently :D16:46
chdunno if there can be a sanity check16:47
joschthis also reminds me that we want this: https://source.mnt.re/reform/reform-system-image/-/merge_requests/9916:47
joschch: that is the sanity check ^16:47
chlike maybe qemu the image16:47
chah yes16:47
joschit does exactly that16:47
joschand we should do this with all system images16:47
chyup16:47
joschthere is actually another bug as well16:47
- amk (QUIT: Ping timeout: 258 seconds) (~amk@user/amk)16:48
joschbecause the pocket imx8mplus has SD_BOOT=false in its machines.conf16:48
ch(reminds me i promised to look at the ci failures for grml-debootstrap, which no longer can build bullseye images on trixie for some reason)16:48
joschso the system image script should not write u-boot to sd-card in the first place16:48
joschso there are now two bugs!16:48
chit cant boot off the sd at all?16:48
chit cant boot uboot off the sd at all?16:48
joschch: u-boot will not get loaded from sd-card16:48
joschyes16:49
chok, but the emmc system image still needs uboot ... how will you reconcile that?16:49
chif relevant?16:49
joschch: the emmc is assumed to have a working u-boot on it16:49
joschif that breaks, there is a semi-complicated way to unbrick it16:50
chdoes the uboot on the sdcard image hurt tho?16:50
joschit does not16:50
joschit's just useless bytes16:50
joschunless those bytes overwrite the first 512 bytes :)16:51
chi guess you dont want to omit uboot if you ever want to consider merging the various images16:51
joschch: way ahead of you: https://source.mnt.re/reform/reform-system-image/-/merge_requests/10416:51
chproducing 5gb (uncompressed) times 3*5 (or whatever the numbers are) is probably not great16:51
joschch: this is documented here: https://source.mnt.re/reform/reform-system-image/-/issues/2816:52
chi know too little about uboot, but cant it also support many platforms with one image?16:52
joschno16:52
joschthis is why we do not default to this16:52
joschwe cannot have one u-boot that works everywhere16:52
ch(i remember debian has a uboot binary, that hopefully supports more than one board?)16:53
chok i see debian has a lot of uboot bins16:53
chbut not one for each specific board16:53
joschto build u-boot for your platform you bake-in support for that platform into the binary16:53
joschch: vagrantc hangs out in this channel daily, so you can ask them16:54
chso if you had one uboot per cpu module instead of one per cpumodule+motherboard, that'd be a start i guess16:54
joschoh that apparently already works for rk358816:54
joschthe u-boot binaries for the pocket, the big reform and reform-next are identical with rk358816:55
+ amk (~amk@user/amk)16:58
chdunno if you want to add "have shared u-boot at least per som" to the possible solution list16:58
joschi do, let me add that, thank you16:59
chif you want to build an image without uboot, might be worth considering leaving the first XX KB in it as zeroes, so installing it can be dd if=system.img of=sdcard && dd if=uboot.img of=sdcard without any offsets17:00
ch(where 'XX KB' is enough to fit -any- u-boot)17:00
joschthe first 8 MB must be free17:00
joschbut a simple dd will again overwrite the MS DOS partition table17:00
joschso you still need an oskip=512 and iskip=51217:00
joscherrr... oseek and iseek17:01
chhm right17:01
chthen its pointless indeed17:01
joschi think it's different levels of pointless depending on what semi-solution you look at17:02
chsomewhat annoying that every platform vendor has their own idea of where u-boot needs to exist17:02
joschand i did not yet come to like any17:02
joschthis will be a longer write-up :)17:09
- amk (QUIT: Ping timeout: 252 seconds) (~amk@user/amk)17:35
+ amk (~amk@user/amk)17:40
^alexi think we managed to squeeze a _tiny_ bit of power savings out of our changes!19:26
^alexmaking a few more (turning off the XIP clocks in sleep mode, turning off the unused SPI/UART/I2C periphs where we can)19:26
^alexalso, sent in MR !7 so CI only fires on `reform` project (we keep getting "pipeline failed" emails)21:18
sevanran the system (reform2) until there was 2% battery left after which it shut itself down (sleep?) gracefully, plugged the charger in & tried to wake from the menu but nothing. checked battery status from menu & it says 100% :)22:10
sevanthat was very quick to charge :D22:10
^alexchewin' on the pocket sysctl firmware a bit and thinking of ways to make it more interrupt driven23:37
^alexthe fusb interrupt is physically wired but not attended to in code23:39
^alexlooks like23:40
^alexif we can switch away from polling the fusb302 when the system is off, that would cut down on the time the syscon is running23:41

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