2024-12-25.log

joschokay, i cannot reproduce it anymore with loglevel=7, so here with the default loglevel: https://mister-muffin.de/p/nU2S.jpg00:08
chhmm. i think mine tends to hang before it finds the rootfs. will take a picture next time00:09
ch`make -j4 bindeb-pkg KBUILD_DEFCONFIG=pocketreform_defconfig` works surprisingly well (didnt boot yet tho)00:10
joschtry localmodconfig for even faster builds. You can use another machine to do the build by using the LSMOD parameter to point to the lsmod output on your pocket.00:11
joschwith that, i get a kernel built in less than 50 minutes from zero on a311d00:11
joschwith "make bindeb-pkg -j6" that is00:12
chdoesnt boot00:15
ch"nice"00:15
minutejosch: also yes to wayland sddm00:18
joschit's now part of MR 108: https://source.mnt.re/reform/reform-tools/-/commit/4743d5de050ec2516082d8e48ce9c9619c50c30f00:20
+ wielaard (~mjw@212.78.174.2)01:02
- mjw (QUIT: Read error: Connection reset by peer) (~mjw@212.78.174.2)01:03
- chomwitt (QUIT: Quit: WeeChat 3.8) (~chomwitt@2a02:587:7a14:db00:1ac0:4dff:fedb:a3f1)02:08
- cobra (QUIT: Ping timeout: 246 seconds) (~cobra@user/Cobra)02:39
midfavilajosch: are you trying to get an X server on the mq?03:11
midfavilajust saw in the logs03:12
midfaviladidn't read through for full disclosure :P03:12
midfavilabut when my reform was still in action i got TinyX running with a simple one-line change in the source code 03:12
midfavilait's not as full-featured as X.Org but for everyday stuff it works just fine03:12
midfavilai dont recall the source file specifically but it wasn't hard to figure out... there's a file that has a bunch of ifdefs for different architectures, modifying the line that checks for arm32 to also match against aarch64 with an or preproc statement gets it to build without trouble03:13
- nsc (QUIT: Ping timeout: 265 seconds) (~nicolas@i5C74DD22.versanet.de)03:24
+ nsc (~nicolas@87.122.72.126)03:30
- aloo_shu (QUIT: Ping timeout: 265 seconds) (~aloo_shu@90.166.98.198)04:05
+ aloo_shu (~aloo_shu@90.166.98.198)04:15
+ cobra (~cobra@user/Cobra)04:35
joschmidfavila: nah, i just care about just getting pixels to the screen -- doesn't matter whether that's via wayland or X :)07:22
joschminute: your soft-start charging patch turned a boolean expression around and i'm not sure whether that was a bugfix or introduced a bug.09:43
joschbefore your soft-start patch, disable_charge_current();set_discharge_bits(discharge_bits); was called if (state != ST_CHARGE || discharge_bits != 0)09:43
joschnow those two functions get called if (state != ST_CHARGE && discharge_bits != 0)09:43
minutejosch: hmm11:00
* wielaard -> mjw11:16
- NanoCodeBug (QUIT: Ping timeout: 244 seconds) (~NanoCodeB@c-67-170-15-47.hsd1.wa.comcast.net)11:40
joschyou see the difference in 22d5c1b942b3d73fb2c4c968d7b38f6ee43af606 which changes !(state == ST_CHARGE && discharge_bits == 0) to (state != ST_CHARGE && discharge_bits != 0)12:11
+ gustav28 (~gustav@c-78-82-52-175.bbcust.telenor.se)13:02
- nocko (QUIT: Ping timeout: 248 seconds) (~nock@user/nocko)13:06
minutejosch: ok, will take a look later13:31
minutewe just did an upgrade from a311d to rk3588 in pocket reform at home with anri (holo_memory) and it was quite interesting 13:32
minutereform-flash-uboot has a few bugs13:32
minuteit doesn't recognize the --offline argument that it says it does13:32
minutealso the partition offset check failed in our scenario (it couldn't see the first (only) partition i made on emmc at 16mb offset)13:33
minuteand we need a tool that, started from sd card, can help migrating from one cpu to another by setting up emmc boot partition and wiring up an existing nvme install to it13:33
ch--offline must be the first arg, then it should work (at least it used to)13:36
joschi'm interested in the partition offset bug -- do you have more details?13:39
joschspecifically the output of this would be interesting: parted --script --machine /dev/mmc_yourdev unit B print free13:41
+ glu_ (~glu@user/glu)13:45
- glu (QUIT: Ping timeout: 252 seconds) (~glu@user/glu)13:46
* glu_ -> glu13:46
minutejosch: i don't have the device here anymore but i remember the script is grepping for something like 1024B, which wasn't there. there were some other numbers in the output13:59
minuteweird, the following: sudo parted --script --machine /dev/mmcblk0 unit B print free14:01
minuteoutputs > Error: /dev/mmcblk0: unrecognised disk label14:01
minutebut then it outputs something anyway:14:01
minute> /dev/mmcblk0:250148290560B:sd/mmc:512:512:unknown:MMC Y0S256:;14:01
minutebut i don't currently have a partition on my system there14:01
minutejosch: maybe you assume a specific partition layout?14:02
minutei had created a first partition manually at offset 16MB14:02
joschminute: what you pasted is the normal output when there is no partition table at all14:04
minuteok sure... that's on my device now14:05
minutei can create the same partition here14:05
minuteand delete it after14:05
minute(parted) mklabel gpt                                                      14:06
minute(parted) mkpart primary ext4 16MB 1GB14:06
minutejosch: ok, here's my output http://dump.mntmn.com/parted.txt14:07
minutejosch: ah, for me the free space starts at 17408B14:08
minutei think that's what we're after?14:08
joschuh funny14:08
joschyes14:08
minutebtw gnome-disks is not able to partition this disk at all14:08
minutebut parted can, without any issues14:08
joscho014:08
joschwhat does gnome-disks have to say about it?14:09
minuteah well now i have a gpt table so now gnome-disks is ok... let my try to kill it14:09
joschmaybe the difference is "mklabel gpt" versus "mklabel msdos"? gpt needs a bit more space at the beginning14:09
joschand currently, the sd-card images built by gitlab CI use msdos table, so i didn't try the script with gpt yet, i guess?14:10
minutejosch: yes. wouldn't it make sense to grep for the ":free" type and sort? 14:10
joschyes, lets ignore the 102414:10
minutehmm maybe not, if there's no free space at the beginning at all14:10
joschare you able to create such a situation?14:11
minutebasically, free needs to be the first entry14:11
joschi tried and wasn't able to14:11
minuteah14:11
minutejosch: yes, with gpt i don't have free space 14:12
joschwithout the 1024B, the script needs to make sure that there are no other partitions in front of it14:12
minutejosch: http://dump.mntmn.com/parted2.txt14:13
minutejosch: wouldn't it make sense to look at just the first entry and make sure it is of type "free" and that it has the minimum size?14:13
joschor differently: look at the first line that is *not* free, which is the first partition, and make sure that it starts late enough14:14
minutealso good14:14
joschwhile making sure that reform-flash-uboot does not error out if there is *no* partition table -- it's okay to flash u-boot to an empty disk14:15
joschand that reform-flash-uboot works if there are no partitions at all14:15
minutejosch: correct14:16
joschthank you for your parted output -- that will help me test this14:16
minutecool :314:25
joschoh and indeed --offline is broken!16:04
joschminute: about a migration tool: this will be difficult i think unless you make a bunch of assumptions. Do you have a plan for what you'd like to see?16:05
minutejosch: it would detect an existing install on nvme (encrypted, unencrypted, lvm, no lvm). mount it. chroot into it. mount /boot from emmc or sd. update /boot entry in fstab. apt update and install latest kernel package19:04
joschokay, so it would require internet access. Meaning that the rescue system on sd-card has to have the needed drivers/firmware installed for the wifi card if the user doesn't have ethernet connected. Yes, that would work. Complexity would probably result from all the heterogeneous setups.19:07
minuteyeah the sd card system is just the system image, right...20:08
minuteit mainly needs to support upgrading from imx8mp -> a311d, imx8mp -> rk3588 and from a311d to rk358820:09
minuteah, also s/imx8mp/imx8mq as well...20:09
+ NanoCodeBug (~NanoCodeB@c-67-170-15-47.hsd1.wa.comcast.net)20:14
joschminute: another option would be to require the user to run "apt install --download-only" of their kernel before swapping out the module20:26
joschminute: reform-tools MR 108 has the fixes to reform-flash-uboot you reported earlier today -- you can try it out if you find some time :)20:26
joschthis should support no partition table, partition table but no partitions, partition table but no free space etc20:27
minutejosch: i wouldn't like to require that because most people won't read the instructions before just ripping out the module :D20:36
joschyes, makes sense20:37
- BoostisBetter (QUIT: Remote host closed the connection) (4a410829d7@irc.cheogram.com)20:37
- SavagePeanut (QUIT: Remote host closed the connection) (59eaa45ac7@irc.cheogram.com)20:37
- Twodisbetter (QUIT: Remote host closed the connection) (2cc0e4ea1c@irc.cheogram.com)20:37
joschi wonder if it makes sense to design the "swap your SoM" tool around a slightly different use-case, the "i screwed up my /boot plz repair" tool20:43
joschit would allow people to dd if=/dev/zero of=/dev/mmcblk0 and then still rescue their system afterwards with ease20:44
joschbecause essentially upgrading the som is similar to the scenario of "your /boot got wiped"20:45
joschjust re-read this thread which has a script that "just" needs to be made pretty: https://community.mnt.re/t/migration-from-i-mx8mplus-to-a311d/231720:51
josch*I just re-read...20:52
joschor, thinking about the assumptions the tool has to make22:06
joschmaybe it should be even broader22:06
joschinstead of just a "please repair my /boot" tool, maybe it should be a "please repair my emmc, assuming it *should* contain /boot" tool?22:06
joschminute: can you confirm that the tool should assume /boot to be on emmc and that the previous content of the emmc should be wiped?22:07
joschand that the tool should assume / to be on the ssd, meaning that this is the setup: emmc: boot, ssd: / (maybe inside luks/lvm2 or plain), sd-card: the rescue system from which the migration is attempted22:13
- gustav28 (QUIT: Quit: Quit) (~gustav@c-78-82-52-175.bbcust.telenor.se)22:15
minutejosch: correct 22:15
+ SavagePeanut (59eaa45ac7@irc.cheogram.com)22:33
- mjw (QUIT: Ping timeout: 252 seconds) (~mjw@212.78.174.2)22:54
+ BoostisBetter (4a410829d7@irc.cheogram.com)22:56
+ mjw (~mjw@212.78.174.2)22:56
BoostisBettermerry christmas / happy holidays everyone! 22:56
BoostisBetterminute: if the lpc is not being responsive, is there some other way to get it to respond without power cycling the system?22:57
- mjw (QUIT: Remote host closed the connection) (~mjw@212.78.174.2)23:39
+ mjw (~mjw@212.78.174.2)23:40
+ wielaard (~mjw@212.78.174.2)23:52
- mjw (QUIT: Read error: Connection reset by peer) (~mjw@212.78.174.2)23:52

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