2025-10-07.log

minuteelb`: oh no :/ on battery or on ac?00:27
elb`battery00:48
elb`I didn't look at the battery remaining (I was lecturing!) but I'm guessing something lke 30-40%00:48
minuteelb`: ahh ok... then it's probably the same issue i have when i have it play a youtube dj set in the bathroom for an hour00:52
- jacqueline (QUIT: Ping timeout: 256 seconds) (~jacquelin@user/jacqueline)00:56
- Ar|stote|is (QUIT: Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) (~linx@149.210.0.217)01:00
+ Ar|stote|is (~linx@149.210.0.217)01:00
elb`I have two lectures  back to back, I boot at the beginning of the first, fold it up and stick it in my bag for the walk from one to the next, and then continue in the second; total duration is about two hours, and I've usually used it some / carried it all day powered off before that01:04
elb`maybe one out of four days it does something hinky in one lecture or the other01:05
+ jacqueline (~jacquelin@user/jacqueline)01:17
- AnimaInvicta (PART: !!unknown attribute: msg!!) (~AnimaInvi@88-120-179-216.subs.proxad.net)01:17
minuteelb`: got it. as a workaround, to avoid this issue from happening until i find a definitive fix (probably hardware fix though, or cpu/gpu throttling at low voltages via software), you could use a usb powerbank to support it from like the second hour on01:24
- mjw (QUIT: Ping timeout: 260 seconds) (~mjw@2a02-a472-ffa1-1-f2e6-4728-2974-38b8.fixed6.kpn.net)01:50
- paperManu (QUIT: Ping timeout: 264 seconds) (~paperManu@64.58.44.160)03:28
+ paperManu (~paperManu@64.58.44.160)03:51
- kop316 (QUIT: Remote host closed the connection) (m-6f6zq6@static.138.159.90.157.clients.your-server.de)03:56
+ kop316 (m-6f6zq6@static.138.159.90.157.clients.your-server.de)03:58
- kop316 (QUIT: Read error: Connection reset by peer) (m-6f6zq6@static.138.159.90.157.clients.your-server.de)04:06
+ kop316 (m-6f6zq6@static.138.159.90.157.clients.your-server.de)04:07
- kop316 (QUIT: Remote host closed the connection) (m-6f6zq6@static.138.159.90.157.clients.your-server.de)04:07
+ kop316 (m-6f6zq6@static.138.159.90.157.clients.your-server.de)04:07
+ sigrid_ (~sigrid@ftrv.se)04:16
+ plomlomp0m (~plom@oldplay.plomlompom.com)04:20
+ mlarkin_ (~mlarkin@syn-076-081-194-027.biz.spectrum.com)04:20
elb`does the battery board just need bost/buck circuitry so it can send a constant voltage to the motherboard?04:20
+ sknebel_ (~quassel@v22016013254630973.happysrv.de)04:21
+ mesaoptimizer0 (~mesa@user/PapuaHardyNet)04:22
+ trypokarydos (~linx@149.210.0.217)04:24
- Ar|stote|is (QUIT: *.net *.split) (~linx@149.210.0.217)04:25
- plomtest (QUIT: *.net *.split) (~plom@user/plomtest)04:25
- mesaoptimizer (QUIT: *.net *.split) (~mesa@user/PapuaHardyNet)04:25
- sigrid (QUIT: *.net *.split) (~sigrid@ftrv.se)04:25
- sknebel (QUIT: *.net *.split) (~quassel@v22016013254630973.happysrv.de)04:25
- mlarkin (QUIT: *.net *.split) (~mlarkin@syn-076-081-194-027.biz.spectrum.com)04:25
- plomlompom (QUIT: *.net *.split) (~plom@oldplay.plomlompom.com)04:25
- abortretryfail (QUIT: *.net *.split) (~arf@146.ip-149-56-132.net)04:25
- schneider (QUIT: *.net *.split) (~schneider@irc2.xtort.eu)04:25
- svp (QUIT: *.net *.split) (~svp@2002:4f07:f0bd:0:e488:5bf3:17dc:e1ea)04:25
+ svp (~svp@2002:4f07:f0bd:0:e488:5bf3:17dc:e1ea)04:25
+ abortretryfail (~arf@146.ip-149-56-132.net)04:32
+ schneider (~schneider@irc2.xtort.eu)04:32
- paperManu (QUIT: Ping timeout: 248 seconds) (~paperManu@64.58.44.160)04:34
minuteelb`: it absolutely has a buck/boost converter ^^05:03
minuteelb`: it's the mp2650 charger chip itself. it's possible that it needs more output capacitance. or that the cable could to be thicker gauge. or that the 5v buck on the mainboard needs more capacitance.05:07
- wose1 (QUIT: Ping timeout: 256 seconds) (wose@mail.zuendmasse.de)05:26
- S0rin (QUIT: Ping timeout: 256 seconds) (~S0rin@user/s0rin)05:26
+ wose1 (wose@mail.zuendmasse.de)05:26
+ S0rin (~S0rin@user/s0rin)05:27
+ reformer (~reformer@softboy.mntmn.com)05:29
- BAndiT1983 (QUIT: Quit: No Ping reply in 180 seconds.) (~quassel@46.101.193.235)05:36
- S0rin (QUIT: Ping timeout: 260 seconds) (~S0rin@user/s0rin)05:36
+ S0rin (~S0rin@user/s0rin)05:36
+ BAndiT1983 (~quassel@46.101.193.235)05:37
- vagrantc (QUIT: Quit: leaving) (~vagrant@2600:3c01:e000:21:7:77:0:50)06:07
- trypokarydos (QUIT: Quit: No Ping reply in 180 seconds.) (~linx@149.210.0.217)07:03
+ Ar|stote|is (~linx@149.210.0.217)07:03
- rodion_goritskov (QUIT: Ping timeout: 256 seconds) (~rodion_go@mail.goritskov.com)07:17
- mrbcmorris (QUIT: Read error: Connection reset by peer) (~mrbcmorri@1513413-static.lxtnkya3.metronetinc.net)07:18
+ mrbcmorris (~mrbcmorri@1513413-static.lxtnkya3.metronetinc.net)07:18
- wose1 (QUIT: Ping timeout: 256 seconds) (wose@mail.zuendmasse.de)07:18
- abortretryfail (QUIT: Ping timeout: 256 seconds) (~arf@146.ip-149-56-132.net)07:18
+ abortretryfail (~arf@146.ip-149-56-132.net)07:18
+ reformer (~reformer@softboy.mntmn.com)07:21
- natalie (QUIT: Ping timeout: 256 seconds) (~natalie@user/natalie)07:59
+ natalie (~natalie@user/natalie)08:01
- Guest4250 (QUIT: Ping timeout: 246 seconds) (~mjw@2001:1c06:2486:a800:7602:5eff:dc71:a72c)08:20
+ Guest4250 (~mjw@2001:1c06:2486:a800:7602:5eff:dc71:a72c)08:21
- wose1 (QUIT: Ping timeout: 256 seconds) (wose@mail.zuendmasse.de)08:28
+ wose1 (wose@mail.zuendmasse.de)08:28
- arminweigl (QUIT: Ping timeout: 260 seconds) (~arminweig@sourcehut/user/arminweigl)08:44
- minute (QUIT: Ping timeout: 260 seconds) (~mntirc@softboy.mntmn.com)08:47
- laumann (QUIT: Ping timeout: 260 seconds) (31d44fbb95@user/laumann)08:59
+ minute (~mntirc@softboy.mntmn.com)08:59
+ arminweigl (~arminweig@sourcehut/user/arminweigl)09:00
+ laumann (31d44fbb95@user/laumann)09:01
* mesaoptimizer0 -> mesaoptimizer09:17
+ mrbcmorris_ (~mrbcmorri@1513413-static.lxtnkya3.metronetinc.net)09:20
- mrbcmorris (QUIT: Ping timeout: 256 seconds) (~mrbcmorri@1513413-static.lxtnkya3.metronetinc.net)09:20
- jahkosha (QUIT: Ping timeout: 244 seconds) (~jahkosha@user/jahkosha)09:25
+ jahkosha (~jahkosha@user/jahkosha)09:25
- svp (QUIT: Quit: Gateway shutdown) (~svp@2002:4f07:f0bd:0:e488:5bf3:17dc:e1ea)09:47
- frickler (QUIT: Ping timeout: 265 seconds) (~jens@user/frickler)10:03
+ frickler (~jens@user/frickler)10:03
[tj]most of the time on my pocket when I issue "poweroff" the screen looses context immediately and I get some lines drawn as it powers down, sometimes it stays on until kernel shutdown and I get kernel messages (imx8mp)11:20
[tj]seems like a race condition in the shutdown logic11:20
+ josch-pocket (~josch-poc@5.42.207.8)11:21
josch-pockethi, i'd like some ideas on the following problem: on two motherboards, with different dsi cables, with both imx8mq as well as a311d and different system images i have no display output11:23
josch-pockethere are some dmesg outputs from a311d: https://mister-muffin.de/p/COM4.txt  https://mister-muffin.de/p/UL-G.txt 11:23
josch-pocketit's two different classic reform and i didn't touch the display cable so i say it's unlikely to be that11:24
+ svp (~svp@host-79-7-240-189.business.telecomitalia.it)11:24
josch-pocketmy hunch is the dsi cable but i tried 3 different dsi connectors already11:25
josch-pocketmy second hunch is that i'm forgetting something very obvious11:25
josch-pocketthe systems boot just fine otherwise (as you can see from the fact that i was able to grab dmesg output)11:25
josch-pocketi was about to investigate the 'no display' issue from the forum and now i have none either :D11:26
josch-pocketi suspected the kernel but the issue is the same with a system image from july11:26
josch-pocketideas? :)11:27
- jogu (QUIT: Remote host closed the connection) (~jogu@user/jogu)11:29
+ jogu (~jogu@user/jogu)11:35
- jogu (QUIT: Remote host closed the connection) (~jogu@user/jogu)11:42
+ jogu (~jogu@user/jogu)11:43
- jogu (QUIT: Remote host closed the connection) (~jogu@user/jogu)11:43
+ jogu (~jogu@user/jogu)11:44
- swivel (QUIT: Ping timeout: 248 seconds) (~swivel@shells.gnugeneration.com)11:46
+ swivel (~swivel@shells.gnugeneration.com)11:47
- elektron (QUIT: Ping timeout: 252 seconds) (~elektron@apoc.halo.nu)11:47
+ elektron (~elektron@apoc.halo.nu)11:47
+ plomtest (~plom@user/plomtest)12:29
+ mjw (~mjw@2a02:a472:ffa1:1:f2e6:4728:2974:38b8)12:35
- sigrid_ (QUIT: Quit: leaving) (~sigrid@ftrv.se)12:38
+ sigrid (~sigrid@ftrv.se)12:38
+ paperManu (~paperManu@64.58.44.160)12:39
+ timide (~timide@user/timide)12:43
+ gustav2 (~gustav@c-78-82-52-97.bbcust.telenor.se)13:02
- svp (QUIT: Quit: Gateway shutdown) (~svp@host-79-7-240-189.business.telecomitalia.it)13:17
+ svp (~svp@host-79-7-240-189.business.telecomitalia.it)13:24
- paperManu (QUIT: Ping timeout: 246 seconds) (~paperManu@64.58.44.160)14:09
+ SadOp (~SadOp@81.209.189.43)14:33
SadOpHey, I'm having a hard time entering the u-boot command prompt when booting an RK3588 Reform. I connected the serial console via USB-C but the autoboot into boot menu can't be interrupted. There seems to be no wait for any key presses to get the u-boot cmd prompt.14:36
gordon1SadOp: yeah it is quite annoying, isn't it? try hitting a key a bit earlier than you anticipate the prompt would appear, it can be done with a bit of practice14:37
gordon1it is possible to get to u-boot console, i can assure you14:38
gordon1what do you need u-boot console for btw?14:39
+ paperManu (~paperManu@modemcable141.205-200-24.mc.videotron.ca)14:40
SadOpgordon1: it really is quite frustrating.14:41
SadOpI want to get OpenBSD, successfully installed it on the NVMe. But now I need to learn how that uboot system works.14:41
SadOp*Openbsd working14:42
SadOpon a RK3588 system14:42
gordon1right, there is an issue with that, u-boot in reform has no env, so you cannot pretty much do any changes there from default state, so you either has to configure it to boot from extlinux config as it boots linux, or you have to compile your own14:43
SadOpI'm fine with building my own - the build almost finishes successfully on the Reform (some dtb issue iirc. but nothing that I can't figure out). Booting from the SD card and telling it to use the NVMe would also work for me, but the OpenBSD bootloader does not recognize the NVMe, albeit being able to install to it.14:45
SadOpI tried the easy ways, but I think the u-boot needs to get involved.14:45
gordon1SadOp: are you using script to build u-boot from source.mnt.re?14:46
SadOpyes14:46
gordon1good, i don't remember any issues with dtbs there tho14:46
SadOplet me double check real quick14:46
SadOpStarting the uboot console is impossible for me and I'm hammering the keys like a maniac over here14:47
gordon1is it possible for openbsd to have boot partition on emmc?14:47
- SadOp (QUIT: Quit: Client closed) (~SadOp@81.209.189.43)14:49
+ SadOp (~SadOp@81.209.189.43)14:53
gordon1are you sure that your uart adapter can tx stuff (or if you are using usb-c thing, tx dip switch is fully engaged)?14:54
SadOpwell it accepts all my other keystrokes as soon as I'm in the boot menu14:54
gordon1ah, i see, means it works14:54
[tj]SadOp: you can reconfigure uboot from userspace on linux to have a longer delay14:55
[tj]https://community.nxp.com/t5/Layerscape/How-to-modify-U-boot-configuration-in-Linux-user-space/td-p/918642?profile.language=en14:56
[tj]something like that14:56
gordon1no, you can't, there is no env14:56
SadOpyeah pretty sure I'd need to recompile u-boot to make that happen14:57
[tj]modify the flash in place?14:57
gordon1SadOp: did you try ctrl-c the boot process?14:57
[tj]having done this I'd recommend not doing this14:57
gordon1i'm pretty sure there is crc somewhere that will make u-boot borked14:57
[tj]yeah it breaks the env, but that then drops you to a prompt14:58
[tj]I have never claimed my ideas were good14:58
SadOphehe, thanks for the idea though!14:59
joschSadOp: we purposefully minimized the delay for rk3588 to the absolute minimum (i think it was 0.1 seconds) because there is no boot menu other than over uart15:00
[tj]I have used this to get uboot control on an embeded tv box I was repurposing15:00
joschSadOp: the choice was made because those who have a uart adapter usually also know how to build their own u-boot with a longer custom delay15:00
[tj]afaict from uboot source you should always be able to break in if prompted, but in practice I find it really difficult15:00
SadOpjosch: I'm building it right now, although getting an error like I said before: https://pastebin.com/ijv3d4c015:01
SadOpI hoped build.sh would do the job for me and I only need to touch the configs15:02
joschone sec, i have to get my browser back15:02
joschi was without display for 21 hours...15:02
gordon1bootdelay is 0, i don't think you can have fractional values there15:03
joschno, bootdelay is 115:03
joschit was set to 0 in 14aed286a2c444331c42c2d2670209e5dc80b9a015:03
gordon1but that shouldn't stop the abort from happening, there might be bootdelaykey or bootstopkey configured tho, i'm checking it out15:03
gordon1well, it is 0 in my u-boot15:04
joschi reverted that in 3ec14e945457db8dc9c357925afcebc5a6c0085b15:04
gordon1which i didn't change15:04
gordon1yet15:04
joschgordon1: than your rk3588 u-boot is older than 2025-05-0615:04
joschSadOp: i just looked at your error -- i've never seen that before, i have to investigate15:05
- SadOp (QUIT: Quit: Client closed) (~SadOp@81.209.189.43)15:05
gordon1probably need to update it then (though i definitely received my reform way after may, more like in august)15:05
gordon1weird, you don't need tpl for rk3588, do you?15:06
+ SadOp (~SadOp@81.209.189.43)15:07
SadOpjosch: thanks, I'm building this on the Reform itself if that makes a difference...15:07
joschSadOp: on the latest Debian system image? Then i should be able to reproduce it15:07
SadOpfreshly updated today15:08
SadOp(with apt mind you)15:08
joschhow else? :)15:09
gordon1josch: you should really consider enabling u-boot env tho, it will solve all the problems15:09
joschgordon1: you mean that users can save their environment?15:10
- SadOp (PART: !!unknown attribute: msg!!) (~SadOp@81.209.189.43)15:10
gordon1yes, like modifying the bootdelay for example15:10
gordon1or changing the bootcmd, from linux using fw_setenv15:10
joschgordon1: it was explicitly disabled after users soft-bricked their device with bad variable values15:10
+ SadOp_ (~jan@81.209.189.43)15:10
gordon1right15:10
gordon1oh well15:10
* SadOp_ -> SadOp15:11
joschit happened quite a few times during imx8mq days15:11
gordon1maybe a factory reset pin that forces u-boot to reinit its env is worth considering15:11
gordon1just a though15:11
gordon1*thought15:11
SadOpI agree that bricking the device should be as hard as possible15:13
SadOp(or not as easy as possible at least) 15:13
gordon1josch: oh wait, is it because imx8 has u-boot console accessible on the display not uart?15:16
joschgordon1: because imx8mq has display for u-boot it was easier to modify the env, yes15:18
gordon1right, i see now15:18
+ gachikuku_ (~gachikuku@kamil.gr)15:18
joschbut because the others do not and require a uart adapter you could even more argue: those who can interact with u-boot do have to have a uart adapter and are even more likely to be able to just build their own u-boot with whatever config they want15:19
gordon1ffs u-boot refuses to compile at all now :(15:19
joschsame error as SadOp?15:19
gordon1no, something about python and swig15:19
gordon1that's probably because gentoo is so blindingly bleeding edge15:20
gordon1https://github.com/openwrt/openwrt/issues/17345 yep15:21
joschi suspect the problem is that build.sh for rk3588 blindly pulls in the latest git HEAD instead of pinning to a known tag15:21
gordon1it does pin it, doesn't it?15:22
gordon1yes, it does15:22
SadOpgordon1: you need to downgrade swig15:22
gordon1that's a defeatist approach!15:22
SadOpI installed 4.2.1 from sources to get the compile step going15:22
joschgordon1: only for u-boot, not for the other repos15:22
gordon1oh, i see now15:23
gordon1ddr file name probably changed15:24
joschi have the known good hashes here, we can easily revert15:24
gordon1SadOp: try to do git checkout 0f8ac860f0479da56a1decae207ddc99e289f2e2 in rkbin repo15:25
gordon1that is a hash i used to build u-boot for my rock5b+15:25
gordon1(using reform build script)15:25
SadOptrying15:26
gordon1SadOp: also if you are feeling adventurous you can change this line https://source.mnt.re/reform/reform-rk3588-uboot/-/blob/main/build.sh?ref_type=heads#L25 to v1.19 instead15:27
SadOpsure thing, the build.sh is already changed so lets have it 15:29
joschi'm performing a couple of fixes in the rk3588-u-boot build.sh right now15:30
joschso if you want something changed, now is a good time to send me your wishlist :)15:30
SadOpI added a cleanup step that removes the cloned repos (cleaner way would be to check and update tho). 15:31
gordon1josch: that's the last commit with v1.18 272136301989d493000425935bd4ead0ef04d06b in rkbin15:31
joschminute: I think it would also be a good idea to have a mirror of collabora u-boot git, rkbin and atf on source.mnt.re in case collabora.com or github.com become unavailable for whatever reason15:31
gordon1but i think it would be more beneficial to try to update ddr code to v1.1915:31
gordon1josch: i know it is too much to ask, but it would be real nice to have env back at least for rk358815:32
gordon1at least before u-boot console is on the keyboard+display15:33
joschgordon1: but if you want it, why don't you just build your custom u-boot and call it a day? why must it be on for everybody?15:33
gordon1yeah yeah, i could15:34
gordon1just can't be bothered since everything works now...15:34
gordon1i'll wait till something breaks15:34
SadOpoh nice this is not a arm64 binary: rkbin/tools/boot_merger15:35
SadOpthis breaks now for building it on a reform15:35
gordon1josch: i just think that _if_ uboot console accessible only through uart there is no harm of having the env15:35
SadOpgordon1: commit hash 272136301989d493000425935bd4ead0ef04d06b works, the other one didn't15:35
gordon1and it helps someone who, like me, maybe want to tweak it a little but can't be bothered to reflash it completely15:36
joschthank you for confirming, lets pin it to  272136301989d493000425935bd4ead0ef04d06b for now15:36
joschgordon1: bring it up with minute -- it's not my call to make :)15:36
gordon1sure, i mean tbf it's not something that i feel strongly about15:37
gordon1https://github.com/openwrt/openwrt/pull/17352 FIY15:38
gordon1not sure that rng seed patch is something to do with swig tho15:38
joschgordon1: you can read commit e391ee96a87a2b80c2165f65f80ec2581bc53500 from 2022 for some of the history15:39
SadOpgordon1: yeah, thats the reason I downgraded swig locally. I tried a more recent u-boot version but thats a whole other fight then15:40
SadOpI can't find the source for rkbin/tools/boot_merger, its just a binary. what does it even do?15:41
gordon1SadOp: iirc it is not required to build the image, josch can you check since you are in build.sh anyways?15:42
gordon1i remember there were some actions that weren't required to get final image15:42
SadOpI mean in general it would be superb to be able to build this on the Reform itself and not to rely on another amd64 machine15:43
joschplease give me a minute, i'm fighting other things in the build process right now15:43
joschbut yes, boot_merger has no source and we were wondering about that a few months ago already...15:43
gordon1no rush15:44
gordon1my rock5b+ build script does not use boot_merger15:45
gordon1and it was based on reform script, so i guess 6 months ago i just nuked it from there w/o any adverse effects15:46
gordon1applied patch from openwrt link, u-boot compiled successfully with 4.3.0 swig15:49
SadOphttps://github.com/rockchip-toybrick/u-boot/blob/master/tools/rockchip/boot_merger.c found this for the boot_merger15:49
SadOpgordon1: nice15:50
- mjw (QUIT: Ping timeout: 244 seconds) (~mjw@2a02:a472:ffa1:1:f2e6:4728:2974:38b8)15:52
- josch-pocket (QUIT: Quit: josch-pocket) (~josch-poc@5.42.207.8)16:03
SadOpprefixing the boot_merger commands with qemu-amd64 works. so with a little bit of machhine type logic and the git hash change it now works.16:19
joschah indeed, i have qemu enabled via linux binfmt16:21
joschso i'm not noticing that an amd64 binary is running16:21
joschand the MNT gitlab CI is cross-building this on amd6416:21
SadOpI can link the diff of my build.sh in a bit.16:22
joschthe MNT gitlab CI also didn't run into the swip issue, because it's building everything from Debian oldstable (bookworm)16:22
SadOpjosch: to install the build u-boot I dd it to the boot partition?16:23
joschnot for rk3588 -- you dd it at the right offset on the main disk, not to the boot0 partitions16:23
joschthough maybe experiment with flashing it to sd-card first16:23
joschand flash to emmc once you know it works16:23
joschrecovery could otherwise become tricky16:24
joschrk3588 will read u-boot from sd-card if it cannot find it on emmc, so you have to wipe the first 16MBit with zeroes16:24
- SadOp (QUIT: Quit: Konversation terminated!) (~jan@81.209.189.43)16:38
joschnooooooo we need the link to the build.sh! XD16:39
+ TheProtoHobo (~dfbarth@mobile-166-173-184-165.mycingular.net)16:40
- jogu (QUIT: Remote host closed the connection) (~jogu@user/jogu)16:41
+ jogu (~jogu@user/jogu)16:42
- gustav2 (QUIT: Quit: Quit) (~gustav@c-78-82-52-97.bbcust.telenor.se)16:53
+ mjw (~mjw@178.230.76.61)17:06
minuteSadOp: normal if you press and hold ctrl-c a bit before the uboot output, it should interrupt17:15
minute(over serial)17:15
minutethat's how i do it17:15
minutes/normal/normally17:15
- mjw (QUIT: Read error: Connection reset by peer) (~mjw@178.230.76.61)17:16
+ mjw (~mjw@178.230.76.61)17:16
- mjw (QUIT: Ping timeout: 245 seconds) (~mjw@178.230.76.61)17:22
+ mjw (~mjw@178.230.76.61)17:22
- jogu (QUIT: Remote host closed the connection) (~jogu@user/jogu)17:24
+ colinsane (~colinunin@97-113-89-123.tukw.qwest.net)17:40
- mjw (QUIT: Read error: Connection reset by peer) (~mjw@178.230.76.61)17:44
+ SadOp (~jan@81.209.189.43)17:44
+ mjw (~mjw@178.230.76.61)17:44
SadOpminute: sorry I was in the kitchen and got disconnected. I'll try the ctrl+c method now17:45
SadOpjosch: thanks for the additional info17:45
SadOpit's quite funny, when I hammer ctrl+c when booting the machine boots from the NVMe  and fires up OpenBSD lol17:49
SadOpand I did not flash a new u-boot17:52
- mjw (QUIT: Remote host closed the connection) (~mjw@178.230.76.61)17:54
+ mjw (~mjw@178.230.76.61)17:54
josch:D17:55
joschSadOp, gordon1: i'm looking for comments: https://source.mnt.re/reform/reform-rk3588-uboot/-/merge_requests/1017:55
joschminute: did you ever compare battery runtimes of the different SoMs? When disconnecting screen and keyboard i'm getting insanely long runtimes when the system is idle. For example a311d manages more than 20 hours on the 2200 mAh cells in classic reform.17:56
joschi'll post my findings in the forum but was wondering if you maybe have an explanation17:56
joschare more than 12 hours of runtime just eaten up by the display backlight and is my reform then actually a rather intricate torch light? :D17:58
joschi should just connect keyboard+trackball and just display next to find out what difference that makes in runtime...17:58
- mjw (QUIT: Ping timeout: 264 seconds) (~mjw@178.230.76.61)18:01
SadOpjosch: how about an if [[ `uname -m` == "aarch64" ]] for the boot_merger part?18:01
SadOpso that it can be build on the Reform with qemu18:02
joschSadOp: i'd rather fix this by building boot_merger from source if possible. I very much dislike running some proprietary blob...18:03
joschbut i don't know if that's possible18:03
joschif not, then yes, we can special-case amd6418:03
joschand use qemu for other architectures18:03
SadOpI looked for the source, but everything I found was an outdated on that does not understand the used config file fully18:03
SadOpthere is even an open GitHub issue18:04
joschyes, i think that was the status also last time i checked :(18:04
joschSadOp: do you have the github issue at hand?18:04
SadOphttps://github.com/rockchip-linux/u-boot/issues/9018:05
joschthank you!18:05
SadOpThe first comment translates (via google translate) to something like "i have the same issue:18:05
SadOpThe first comment translates (via google translate) to something like "i have the same issue"18:05
SadOpoops, this is not Signal, sorry18:06
joschwhat would be different in signal?18:06
SadOparrow up lets you edit the last message18:06
joschah :)18:07
joschsame with many (most?) xmpp and matrix clients18:07
SadOpI extracted the boot_merger source code and build it locally with the 2 needed files and a one line change. Too bad it doesn't work.18:07
joschSadOp: is it not this one? https://github.com/rockchip-linux/u-boot/blob/next-dev/tools/rockchip/boot_merger.c18:08
SadOpthats the one18:08
joschanother item for the todo list...18:09
SadOpI only downloaded the c and h file used cc and copied it into the repo #include <version.h> should be #include <linux/version.h> and it builds18:09
SadOperrors out in the while loop starting on line 39118:10
SadOpbasically in the parser part of the tool18:10
joschyou are further than we were the last time that boot_merger came up in this channel: https://mntre.com/reform-irc-logs/2025-02-07.log.html#t00:08:3818:15
SadOpjosch: running your build.sh locally now to see if everything works18:17
joschthank you!18:17
SadOp(with a little qemu-amd64 addition for the Reform)18:17
SadOphappy to help!18:17
joschSadOp: you could install qemu-user, then you don't have to patch build.sh18:18
SadOpwait, I have that installed18:18
SadOpdoes it figure it out by itself then?18:18
joschSadOp: sorry, it's called qemu-user-binfmt18:19
joschthis will register qemu-user via the binfmt mechanism with the kernel18:19
joschand from that point on, foreign elf binaries will transparently be emulated with qemu18:20
SadOpI even have that. lol I did too much  work :D18:20
SadOpit just works18:20
joschokay, nice :)18:20
SadOpthanks for the hint!18:20
- ch (QUIT: Ping timeout: 260 seconds) (~ch@user/meow/ch)18:24
+ ch (~ch@user/meow/ch)18:26
SadOpjosch: your patched build.sh works flawlessly on my Reform2 with qemu-user-binfmt installed18:28
SadOpthanks for that, I really appreciate!18:28
joschgreat to hear, thank you for testing18:29
joschi didn't test the resulting binary yet, though18:29
SadOpme neither, if I nuke the first 16MB (?) of the emmc and dd it to an sd card it should work, right?18:31
joschnot necessarily but at least with that approach you don't soft-brick your rk3588 but can re-flash the sd-card with a working image :)18:32
qbitoooo nixos-hardware for the rk3588!18:33
joschso... i tried to figure out what boot_merger does but after commenting out the calls to boot_merger in boot.sh the resulting rk3588-mnt-reform2-flash.bin is bit-by-bit identical to before -- can this just be removed? o018:43
- GNUmoon2 (QUIT: Remote host closed the connection) (~GNUmoon@gateway/tor-sasl/gnumoon)18:50
+ GNUmoon2 (~GNUmoon@gateway/tor-sasl/gnumoon)18:51
- colinsane (QUIT: Quit: bye) (~colinunin@97-113-89-123.tukw.qwest.net)18:58
+ colinsane (~colinunin@97-113-89-123.tukw.qwest.net)19:04
gordon1josch: i didn't check if reform's u-boot does boot if you remove boot_merger lines, but i can assure that it does _compile_ w/o boot_merger lines and also rock5b+ u-boot boots and works without them 19:10
gordon1josch: also s/SWIP/SWIG/ in the MR description19:10
gordon1if it is bit-by-bit identical i don't see a reason why keep it tbf19:11
SadOp100% agree. It's a useless binary blob then19:11
+ AnimaInvicta (~AnimaInvi@88-120-179-216.subs.proxad.net)19:12
elb`minute: my mistake; for some reason I thought the raw combined battery voltage was what is transported to the mainboard, I must have misunderstood19:21
- minute (QUIT: Ping timeout: 246 seconds) (~mntirc@softboy.mntmn.com)19:25
- jahkosha (QUIT: Ping timeout: 246 seconds) (~jahkosha@user/jahkosha)19:26
- n_to (QUIT: Ping timeout: 246 seconds) (~n_to@2a03:4000:6:3662:24b1:57ff:fec6:76c1)19:26
+ n_to (~n_to@2a03:4000:6:3662:24b1:57ff:fec6:76c1)19:26
elb`I'm handy with a soldering iron, if you're looking for people to try things that can be bodged, feel free to ask!19:27
+ jahkosha_ (~jahkosha@user/jahkosha)19:27
* jahkosha_ -> jahkosha19:27
+ minute (~mntirc@softboy.mntmn.com)19:27
joschgordon1, SadOp: thank you, i removed it in my MR19:39
+ BAndiT1983_ (~quassel@46.101.193.235)19:47
- BAndiT1983 (QUIT: *.net *.split) (~quassel@46.101.193.235)19:51
+ reform15220 (~rene@2001:9e8:33b8:2900:7107:9943:42fe:8ef4)19:59
* reform15220 -> rwa_19:59
- paperManu (QUIT: Ping timeout: 256 seconds) (~paperManu@modemcable141.205-200-24.mc.videotron.ca)20:20
- rwa_ (QUIT: Quit: Leaving) (~rene@2001:9e8:33b8:2900:7107:9943:42fe:8ef4)20:20
+ paperManu (~paperManu@modemcable141.205-200-24.mc.videotron.ca)20:22
- svp (QUIT: Quit: Gateway shutdown) (~svp@host-79-7-240-189.business.telecomitalia.it)20:23
+ svp (~svp@host-79-7-240-189.business.telecomitalia.it)20:30
minutejosch: yeah the backlight always pulls a lot of power. that's why phones are so aggressively dimming on idle20:30
SadOpjosch: new version of the script works. I'll now start testing the new u-boot20:30
joschthank you!20:32
SadOpjosch: just to make sure, dd if=/dev/zero of=/dev/mmcblk0 bs=1M count=16 would be the correct thing to wipe the first 16mb of the emmc?20:37
SadOpwell, only the target is of interest here, the rest should be fine :D20:38
gordon1i don't think you have to do that20:38
SadOpok, how do I test the u-boot on my sd-card then?20:38
gordon1ah, you want to boot from sd card, i see, i thought you want to put new uboot on emmc20:39
SadOpafter testing it on the sd-card I'd love to tho 20:39
gordon1tbh i don't see the benefits of testing it from sd card if you render emmc not bootable anyways...20:40
gordon1SadOp: i would highly recommend you to get a contingency plan ready, in case it won't boot up - have separate machine with usb cable ready to program it using rkdevtool20:41
gordon1*rkdeveloptool20:41
gordon1but yeah if i remember correctly rk3588 searches for some magic on the device to try to boot from it so wiping should work20:42
gordon1but i would wait for someone who actually knows what they're doing20:42
SadOpyes, I will! thank you tho!20:42
SadOpI should document my doings I think20:42
gordon1i booted rk3588 successfully only from spi flash so far20:42
SadOpSince I haven't been doing anything with arm for a long time this is really new to me. But its fun so far. And OpenBSD boots when I hammer ctrl+c over serial. No idea why since its on the NVMe but it boots.20:47
gordon1well, that's an achievement already!20:52
SadOpit really is. also the build.sh script is improved. thats nice20:54
SadOpOk, holding ctrl+c down actually gets me into the uboot console20:56
SadOpanother achievement :D20:56
gordon1with new u-boot?20:57
SadOpno with the old20:57
gordon1minute: how are you flashing u-boot on fresh factory fireflies btw?20:57
gordon1if not a secret20:57
- paperManu (QUIT: Ping timeout: 244 seconds) (~paperManu@modemcable141.205-200-24.mc.videotron.ca)21:10
kfxif the som can't load u-boot from the emmc it will try the sd card21:10
kfxI've never had to mess with spi on mine21:10
gordon1i would love to mess with spi but i don't think firefly's module has spi flash21:11
joschkfx: what i want to cautio about is: what if it *can* load your u-boot but you built a u-boot which is borked and does not boot you far enough such that you can repair the mess you made?21:11
gordon1josch: dropped another comment to MR21:11
+ paperManu (~paperManu@modemcable141.205-200-24.mc.videotron.ca)21:12
kfxjosch: I've done that and sadly I didn't take good notes, now that I look.  You can force maskrom mode by jumping GND and CLK on the SOM and then us rkdevtool to put another u-boot on emmc21:18
kfxusually I save the commands I use but I don't appear to have done that... guess I was in a hurry21:18
gordon1finally managed to successfully print trackball keycaps, dunno why SLA gives me so much grief https://litter.catbox.moe/h3panh.JPG21:19
gordon1i said "successfully" and then zoomed in, it is not particularly successful, is it? but at least much better than my other attempts21:20
gordon1i have commands right here21:23
gordon1rkdeveloptool db rk3588_spl_loader_v1.18.113.bin21:23
gordon1rkdeveloptool wl 0 /tmp/spi.img21:23
gordon1i think second command must be changed to wl 1 since build.sh generates image with 1 sector offset21:23
gordon1and spl loader should be in rkbin21:24
gordon1at least we can have it saved in irc logs21:24
gordon1ah no i confused it with something else, there is a seek=16320 so wl 16320 i guess?21:26
gordon1and that is the guide how to enter maskrom mode on icore https://wiki.t-firefly.com/en/iCore-3588Q/upgrade_maskrom_mode.html21:27
kfxgordon1: I'd be curious why seek=16320 since I thought u-boot went in 16384 ( from https://opensource.rock-chips.com/wiki_Partitions )21:30
gordon1kfx: ah, nevermind, i remember now, it prepares the image minus the mbr and partition table etc, so it puts idbloader first then after 16320 it puts u-boot, but expects the whole images to be written at 16384-16320 at 64 sectors, so i guess in this case the command will be rkdeveloptool wl 64 u-boot-flash.bin21:33
gordon1it would be really nice if someone can verify the math ^21:33
gordon1and i think magic that rk3588 boot code searches for supposed to be at 32k (or 64 sectors) mark21:34
+ mjw (~mjw@gnu.wildebeest.org)22:44
kfxgordon1: makes sense22:51
gordon1i have magic RKNS located at 32k offset on my emmc, same as in the beginning of idbloader.bin22:53
minutegordon1: we have a microsd card that contains an uboot.scr that erases the first 16MB or so of emmc. after that, we boot a test and install microsd.22:59
gordon1right, i see, so you don't use usbboot22:59
minuteno23:00
gordon1okay, that's something to discover on my own then23:01
minutegordon1: nice tb cap prints!23:01
gordon1they have a long way to go, i still have those weird layer failure lines that i cannot understand 23:01
minutegordon1: here's a far out idea for you: the system ctrl is connected to spi as a device. it could emulate a spi flash.23:02
gordon1ooh, and extconn is connected to it23:02
gordon1so it can potentially has more storage23:03
gordon1thanks for the idea!23:03
minuteright, there's also an i2c header on the board connected to sysctl23:03
minutealso, it is itself running from spi flash and could pass parts of it through...23:04
gordon1well, mine is running from onboard flash i would guess23:04
gordon1but on rp2040-based ones, yes23:04
minuteah right sorry. classic reform23:04
minutebut yeah, lpc11u24 could also be a usb host for the flashing port. 23:05
minute(if you need storage i mean)23:05
gordon1hmm23:05
minuteor yeah, the "hack the planet" port is there of course :D23:05
- paperManu (QUIT: Ping timeout: 256 seconds) (~paperManu@modemcable141.205-200-24.mc.videotron.ca)23:05
gordon1yeah that's probably path of least resistance, just plug a little board with extra spi flash or even microsd slot23:06
- colinsane (QUIT: Quit: bye) (~colinunin@97-113-89-123.tukw.qwest.net)23:25
- AnimaInvicta (QUIT: Ping timeout: 256 seconds) (~AnimaInvi@88-120-179-216.subs.proxad.net)23:25
- frickler (QUIT: Ping timeout: 256 seconds) (~jens@user/frickler)23:25
+ frickler (~jens@user/frickler)23:25
+ AnimaInvicta (~AnimaInvi@88-120-179-216.subs.proxad.net)23:25
- xktr (QUIT: Ping timeout: 246 seconds) (~xktr@user/xktr)23:37
- Ar|stote|is (QUIT: Ping timeout: 246 seconds) (~linx@149.210.0.217)23:37
- gordon1 (QUIT: Ping timeout: 246 seconds) (~gordon1@citadel.niflheim.info)23:37
- blast007 (QUIT: Read error: Connection reset by peer) (~blast@user/blast007)23:37
- n_to (QUIT: Ping timeout: 246 seconds) (~n_to@2a03:4000:6:3662:24b1:57ff:fec6:76c1)23:37
- SadOp (QUIT: Ping timeout: 246 seconds) (~jan@81.209.189.43)23:37
+ blast007` (~blast@user/blast007)23:39
+ gordon2 (~gordon1@citadel.niflheim.info)23:39
+ n_to_ (~n_to@2a03:4000:6:3662:24b1:57ff:fec6:76c1)23:39
+ SadOp_ (~jan@81.209.189.43)23:39
+ trypokarydos (~linx@149.210.0.217)23:39
+ xktr_ (~xktr@user/xktr)23:39
- TheProtoHobo (QUIT: Quit: leaving) (~dfbarth@mobile-166-173-184-165.mycingular.net)23:48

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