2025-12-04.log

bkeysConnection to what? I haven't messed with the hardware00:00
joschhere is how it looks for me: https://paste.debian.net/1412118/00:07
joschbut as you can see, this is a different version of u-boot from the one you have00:07
joschbkeys: do you have u-boot on emmc or is that zeroed?00:08
bkeysjosch: I have a damaged uboot on emmc it seems00:14
bkeysOr I suppose an incorrect one00:14
joschbkeys: How? Above you said that you can boot just fine from sd-card00:15
bkeysThat was true when the uboot on the emmc was totally borked00:15
bkeysI tried to dd a valid uboot on the emmc and I am getting the output in the pastebin00:15
joschand you decided to take a different u-boot than the one from the machine.conf file with the hash in there?00:16
joschit seems you used the latest gitlab CI artifact, is that correct?00:16
bkeysYes the latest gitlab artifact is what I used00:17
joschit would've been safer to use what everybody else uses ;)00:17
joschbkeys: which command did you use to flash u-boot onto your emmc?00:17
bkeysI know, do you think it's bricked?00:17
bkeysThe one that minute put in the chat earlier00:17
joschchecking...00:18
bkeysI'm gonna flash a fresh system image on the SD card and hope that it boots that, although my hopes are not high because uboot says "trying to boot from MMC1" no matter what00:18
bkeysregardless of if the card is in there00:18
joschthe command is correct00:19
joschwhat image are you flashing exactly?00:19
minutejust to save you a lot of puzzle hunting time, what can happen (and might happen here) is that SPL is loaded from eMMC and the rest of uboot from SD00:19
bkeyshttps://source.mnt.re/reform/reform-system-image/-/jobs/15981/artifacts/raw/reform-system-rk3588.img.gz00:19
bkeysThis one00:19
minuteand the two can be incompatible00:20
bkeysminute: Possibly, although I seem to get the same output regardless of if SD is in there00:20
joschbkeys: that is the non-dsi varint00:20
joschbkeys: that image will also include u-boot for the non-dsi reform00:21
bkeysWell that gives credence to what minut (don't want to ping them since they need rest) said00:21
bkeysI hope that there is hope00:22
joschbkeys: can you try flashing the image for your rcore-dsi reform?00:23
bkeysYou mean to an SD card?00:23
joschyou are flashing system images to sd-card right now, no? At least flash the right one for your platform. :)00:24
bkeysYes I will do that00:26
bkeysI'm downloading the image00:29
bkeysjosch: So I flashed the wrong uboot, which makes sense why I got the same output regardless of SD card or not. So if I put the SD card in there with the right uboot I should be able to boot from SD card and be okay00:30
bkeysACTION is feeling more hopeful than he did before josch came onto the scene00:30
joschyou are giving me too much credit, this is not my area of expertise00:30
bkeysjosch: So even if there is a valid uboot on emmc, if there is a uboot on SD the SD card will take precedent right?00:34
joschno00:34
joschi made a table for this00:35
joschsource.mnt.re/reform/reform-handbook/-/issues/800:35
bkeysSo according to this table having a valid SD card won't help us?00:37
joschit might if m.inute's theory is correct and u-boot from emmc is reading parts of u-boot from sd-card00:38
joschbut in general, when you want to do experiments its safest to have emmc zeroed out because then you can write whatever you want to sd-card and even if it's garbage you can just re-flash easily00:39
bkeysWell I had my experiment successfully executed on SD card I was trying to move it to emmc00:39
bkeysBut it must have been reading part of it from SD card00:39
bkeysjosch: Alright it wrote, lets try this out00:45
bkeysjosch: Nope, I'm getting the exact same output00:47
bkeysIt's totally ignoring my SD card00:47
joschokay, then i'll now try to reproduce your situation by flashing the image you flashed to my emmc00:47
bkeysYou're not worried about bricking your board?00:48
joschthe artifact you flashed is what i told minute days ago to please tag as the next official release. If it's broken, then this is something we should make sure of before tagging a release and have others flash it to their emmc and brick their device00:49
joschso better brick mine than others00:49
- aloo_shu (QUIT: Ping timeout: 244 seconds) (~aloo_shu@90.166.98.18)00:51
bkeysWell if it is bricked, do you have any equipment that unbricks it?00:53
bkeysI read some docs from firefly, it seems there is a way to unbrick it but they only write about their SoM, I'm not sure if the Reform has the same ability00:54
- Ar|stote|is (QUIT: Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) (~linx@149.210.3.83)01:00
+ Ar|stote|is (~linx@149.210.3.83)01:00
bkeysjosch: Were you able to replicate it?01:04
joschsorry my internet is slow :)01:11
bkeysI really hope I didn't brick my Reform01:12
bkeysI mean I accept responsibility if I did, but still01:12
joscheven if i succeed, the question then becomes what you did wrong and how you can recover01:14
joschanother tip: reform-flash-uboot now also has the --machine option01:14
joschthat way, you can avoid having to use dd even on a machine that is not the target01:15
bkeysDuly noted01:15
bkeyshttps://wiki.t-firefly.com/en/iCore-3588Q/upgrade_firmware.html01:15
joschthat means you no longer have to ask for offsets or whether boot0 or whatnot01:15
bkeysIt seems if I did brick it I can go into maskrom mode, but you would need their carrier board01:15
joschfirst step: this is the u-boot binary you used loaded from sd-card: https://paste.debian.net/1412131/01:20
- cli (QUIT: Ping timeout: 240 seconds) (~m-vsauiy@user/cli)01:22
joschand now i flashed the same u-boot blob that you flashed (2025-11-04-3-g086b855-g424c714eb247-dirty) to my emmc01:23
joschand zeroed sd-card but that step should not matter because u-boot from emmc will be preferred01:24
- Svp (QUIT: Ping timeout: 256 seconds) (~svp@host-79-7-240-189.business.telecomitalia.it)01:24
joschand here is the boot log for the u-boot blob you tried flashed to emmc: https://paste.debian.net/1412133/01:24
joschif you diff the two outputs, the main difference is that the BL31 output from u-boot on sd-card is:01:25
joschTrying to boot from MMC201:25
joschand when u-boot (and the blobs that get loaded before that) come from emmc then it prints:01:25
joschTrying to boot from MMC101:26
joschbkeys: so the u-boot binary you tried works perfectly fine on emmc for me01:26
bkeys:I01:27
bkeysjosch: What does that mean?01:27
joschas i said this is not my area of expertise so i would not dare to speculate what could've gone wrong for you01:28
bkeysYeah but with me something always seems to go wrong01:28
joschyou were warned :/01:29
joschlet me take this as an opportunity to add a new feature to reform-flash-uboot: read back u-boot from emmc/sd-card and compare the checksum of what got written to what it is expected to be01:30
bkeysYeah as I said I take responsibility01:31
bkeysWe will see if m has any thought, and if not then I don't know01:31
joschthere are other users of the firefly icore board, so a solution could also be found outside of the MNT bubble01:32
bkeysYeah I know, hopefully I can avoid buying another board for the OTG port01:33
joschbkeys: what i find curious about your serial output is that it contains some garbled values. Are you on motherboard 3.0 and connect it to another machine via usb-c?01:34
bkeysI think I have an earlier motherboard01:35
bkeysI got my Reform first in like 2021, I bought it originally on crowdsupply01:36
+ Svp (~svp@2002:4f07:f0bd:0:95e7:dc62:c203:a24)01:39
kfxbkeys: I'm no expert, but I've been where you are, and I was able to short CLK/GND and boot into maskrom mode in the past.  then you can put u-boot back on the emmc with rkdevtool01:43
bkeyskfx: Yeah I see the pad where the wiki says I can do that01:43
bkeysI indeed get different output, but what happens after that?01:43
kfxyou can use rkdeveloptool(1) to erase-flash and go back to booting off the sd card, or you can unpack the u-boot image and figure out which offsets to write the component parts to01:49
kfxI think there's a way to write the u-boot image in one command but I can't remember if that's true01:49
bkeyskfx: Can I do that with only a TTL connection?01:52
joschbkeys: it would also be interesting to find out what you did wrong earlier01:54
bkeysYeah, if I can recover from this I suppose I can recover from anything01:55
kfxbkeys: I recall doing it over the serial pins, but it was a long while ago and I might be wrong01:57
bkeyskfx: As in with a TTL connector?01:57
kfxyeah01:57
bkeysYeah everything on the firefly wiki says to use this OTG port but it seems like it would just be a glorified TTL connector01:58
bkeyskfx: Assuming you are remembering correctly, is it just issuing commands over the serial or does it make the reform show up as a device on the host PC?01:59
kfxthis is the cable I used02:00
kfxhttps://www.pishop.us/product/usb-to-ttl-serial-cable-for-raspberry-pi-5-debugging-ft232rnl-chip/02:00
bkeysThat's basically what I have02:00
bkeyshttps://community.mnt.re/t/recovering-a-possibly-bricked-rk3588-pocket-reform/359202:00
kfxand no, it doesn't show up as a usb device I think?  in order to make that happen you have to push a binary blob that does something different02:01
kfxI never did that02:01
kfxthey call it 'usbplug'02:01
kfxI've now entered a world of confusion, where I got the motherboard 3.0, but it won't boot the rcore, but it WILL boot the imx8mq, but neither of them output anything over usb-c serial02:02
bkeysSo without it being a usb device, does it just give me a prompt of sorts?02:02
kfxI miss my ttl pins :(02:02
kfxbkeys: in maskrom mode I only ever use rkdeveloptool to interact with it02:02
kfxe.g. rkdeveloptool list-partitions to confirm it was talking02:03
kfxI don't know the protocol details at that point02:03
bkeysLet me try02:03
bkeysI didn't try anything with rkdeveloptool02:03
bkeyskfx, josch: WHAT?!?!02:06
bkeysSo I short the pads to try to make it go into maskrom mode02:07
bkeysAnd it boots the system image from my SD card?!02:07
bkeysHoly crap my prayer was answered!02:07
joscho002:08
bkeysI was honestly thinking to myself "I could pray to God and see if he works out a miracle, nah he doesn't care about this situation" and this happened02:09
bkeysI was rewarded despite my lack of faith!02:09
bkeysjosch: So what script to I run inside of the system image to fix the emmc?02:10
kfxreform-flash-uboot emmc02:11
bkeys /boot/flash.bin is up-to-date -- not downloading it again02:12
bkeysthe first partition on /dev/mmcblk0 starts at 9437184 and would be overwritten by uboot02:12
bkeysmake sure that the first 9463808 bytes are free on /dev/mmcblk002:12
joschi'm so happy i put these guards in :)02:13
bkeysjosch: So what do I do? This is my one shot to fix this it feels like02:14
joschbkeys: exactly what kfx said02:14
bkeysThat got me the output I just posted02:14
joschand if there is a partition in the way, remove the partition02:14
joschyou probably created that one?02:14
kfxzero out the first few blocks so that stuff is gone02:15
bkeysOkay, I'm gonna assume I'm just wrong about everything because I have blown it up to this point02:15
bkeysIs it just dd if=/dev/zero of=/dev/mmcblk0 count=51202:15
joschbkeys: did you create partitions on emmc or were they there already?02:15
bkeysIs that right?02:15
bkeysjosch: They were created when I flashed Fedora on top of them02:15
joschi'd zero more than 512 bytes in case this is guid partition table02:16
bkeysI flashed fedora then put uboot on top of it02:16
joschoooooh fedora :)02:16
bkeysYes I was able to get it running, my woes are with uboot02:16
joschyeah, don't just flash that but do the partitioning such that the first 16MiB are empty02:16
bkeysWell a Fedora install is already on the emmc02:16
bkeysThere is nothing of particular value on there though02:16
bkeysbkeys@reform:~$ ls /dev/mmcblk002:18
bkeysmmcblk0       mmcblk0boot0  mmcblk0boot1  mmcblk0rpmb 02:18
bkeysI ran 02:18
bkeyssudo dd if=/dev/zero of=/dev/mmcblk0 count=5000002:19
bkeysSo the fedora install is gone for now, so I guess I will flash the emmc again?02:19
joschjust do not flash the fedora image directly to /dev/mmcblk0 unless you plan to have u-boot on sd-card02:19
bkeysWell I know the emmc is dangerous, but it's still memory that is there and is reasonably fast02:20
joschif you want both fedora and u-boot on emmc, you need to move the partition with fedora so that there is space for u-boot02:20
bkeysI'd like to have fedora and uboot on the emmc if possible02:20
bkeysHow do I flash the .img with Fedora so that it's shifted like that?02:20
joschthen move the partition with fedora on it so that 16MiB are free02:20
bkeysACTION runs the dd command to zero it out further so that the uboot is really gone02:21
joschyour dd command with count=50000 zeroed out 24 MiB of data, that is more than enough02:21
bkeysI have zeroed out the first 256mb02:21
bkeysdie uboot die02:21
joschyou could either flash the image and then use a partitioning software to move the partition02:21
bkeysYeah that just takes forever, it would be great if I could somehow make dd do it02:22
joschor you disect the image and move things to the right locations before flashing it02:22
joschyou can also make dd flash to the right location if you pass the right offsets and if you then adjust the partition table accordingly02:22
bkeysI'll just do it the slow way02:23
bkeysjosch: The Fedora image when flashed gives me about 9.4MB at the front, do I need to shift it to the right still or is that good enough?02:37
joschbarely02:39
joschu-boot itself is 9M02:39
bkeysDo you think I should shift it?02:39
joschyou can do the math: take the u-boot size and the offset (32768 bytes) and see if it clashes with the start of the first partition02:40
bkeysYour script is basically telling me I should shift it, I will shift it02:40
bkeysI will mindlessly obey rn I don't want my stuff bricked again02:40
joschbkeys: source of why the 16 MiB: https://opensource.rock-chips.com/wiki_Partitions02:43
- paperManu (QUIT: Ping timeout: 250 seconds) (~paperManu@107.159.15.124)02:44
bkeysI made it 25MiB just to be super safe02:44
bkeysjosch: https://paste.centos.org/view/df064ec602:46
bkeysDo you think it's safe to reboot? (I will not hold you responsible if it messes up, I understand this is all on me)02:46
bkeysI flashed fedora, moved the partitions and did this02:46
joschif you used "sudo reform-flash-uboot emmc" and it does not work then that is on me02:47
bkeysI'm just saying don't worry about me being angry at anyone. But does that output and image hash look good to you?02:49
bkeysIt looks good to me but I'm paranoid so I will ask questions I know are obvious02:49
joschcould you do a sha1sum?02:50
joschthat's what we do everywhere else02:50
joschalso, reform-tools checks it02:50
joschso it should be correct02:50
bkeys876b4f5f125a40afaceac7258504ee15b212f36d  /boot/flash.bin02:51
josch"/boot/flash.bin is up-to-date" tells you that the sha1sum is correct02:51
joschyes, 876b4f5f125a40afaceac7258504ee15b212f36d is what is written in machines/MNT Reform 2 with RCORE-DSI RK3588 Module.conf02:52
joschi improved the message of reform-flash-uboot to say that it also has successfully verified the sha1sum02:52
bkeysOkay, so I am safe to reboot? (in theory)02:54
joschyes02:54
bkeysACTION takes a deep breath02:54
bkeysHere we go02:54
- pomel0 (QUIT: Ping timeout: 240 seconds) (~pomel0@user/pomel0)02:54
bkeysjosch: Thank the Almighty! It's booting Fedora02:57
bkeysLast thing now is to just resize the partition02:58
+ paperManu (~paperManu@107.159.15.124)02:59
bkeysjosch: Hmm, I need to resize the filesystem for Fedora to finish my install, but to do that I need to boot from the SD card; I can't seem to get uboot to interrupt though (my serial connection is fine though03:00
joschu-boot on emmc will prefer the system on sd-card over that on emmc03:00
joschunless there is some efi magic getting in the way03:00
joschbut at least that's how it works with MBR and extlinux.conf or boot.scr03:01
bkeysjosch: Hmm, it seems to be going straight for the emmc's Fedora03:02
- mjw (QUIT: Ping timeout: 240 seconds) (~mjw@gnu.wildebeest.org)03:03
bkeysI even spam the keyboard to try and interrupt it03:03
joschnothing comes to mind right now03:04
joschand it's 3 AM over here, so i'll hit the pillow now that it at least boots for you :)03:05
bkeysI appreciate it friend03:05
bkeysThank goodness for the miracle of it booting again03:05
joschminute: apparently bkeys flashed something wrong yesterday. I have a local improvement of reform-flash-uboot which reads in u-boot from emmc/sd and compares it to the expected content after flashing to make extra sure that the right thing got flashed. To do this though it would make this comparison process more convenient if the u-boot images were a multiple of 512 bytes in size. Would you approve of me 03:06
joschfiling MRs against our five u-boots to pad all blobs with zeroes at the end so that they are a multiple of 512 bytes large?03:06
+ _justin_kelly71 (~justinkel@user/justin-kelly/x-6011154)03:46
- paperManu (QUIT: Ping timeout: 265 seconds) (~paperManu@107.159.15.124)04:12
+ spew (~spew@user/spew)04:44
- spew (QUIT: Client Quit) (~spew@user/spew)04:48
bkeysjosch: Hopefully you are asleep but I figured it out, I used the grub shell from Fedora to boot the system image and then resized my rootfs while I was there. Thank you for your help04:49
bkeysI got Fedora, DTB loaded, it's all good to go I even got nvme in here04:49
joschbkeys: nice! the alternative would be to use the grub shell to boot something else or to modify the fedora beforehand with the correct offsets and sizes06:12
joschoh wait you *did* boot the system image in the grub shell06:23
bkeysYes I did06:28
bkeysIt's running Fedora 43 with mainline kernel and hardware acceleration06:30
bkeysI can't run blender sadly06:30
bkeysBut otherwise is really good, I need to get it to detect the battery and all that06:30
joschthat is expected06:31
joschblender *does* work with quasar06:31
bkeysWhat is quasar?06:31
joschthe qualcomm adapter board06:31
bkeysThe one that comes with rcore?06:31
joschno, rcore is the adapter board for the firefly icore rk358806:31
joschquasar is the adapter board for the qualcomm qcs649006:32
bkeysAh I see06:32
bkeysI have some loongarch64 hardware I plan on doing the 3D modelling on06:32
joschbkeys: though there is some slight hope for blender on rk3588: https://mastodon.social/@mntmn/11563627977708466506:33
bkeysjosch: https://imgur.com/a/8LAcwrU06:40
bkeysI'll just use different hardware for 3D models06:40
joschnoice!06:40
joschbkeys: next i'm looking forward to your feedback regarding packaging reform-tools for fedora :)06:41
bkeysHeh, I'm doing a lot of porting work right now. Today I took a break to get the Reform since it arrived back to me today06:41
bkeysRight now I'm working on porting CentOS Stream 10 to loongarch6406:42
bkeysAt some point I need to document everything I did today and post it on community.mnt.re06:43
joschcool! i recently enabled loong support in box64 in debian06:43
joschyou should :)06:44
bkeysThere is the cherry on top, I got my nvme drive being mounted as my /home06:46
bkeysSo I got 512GB in /home and 256 in / so I got plenty of room here06:46
joschminute: expanding on my last message to you, this is what i'd like to add to all u-boots if you agree: https://source.mnt.re/reform/reform-boundary-uboot/-/merge_requests/2306:55
- bkeys (QUIT: Remote host closed the connection) (~Thunderbi@98.19.131.193)06:59
+ cli (~m-vsauiy@user/cli)07:02
+ potash1 (~potash@user/foghorn)07:23
+ echeese_pocket (~echeese_p@2601:8c1:c180:4630::9e1a)08:32
echeese_pockethi, I have a keyboard with a custom layout that I like (im trying to switch off of qwerty), how do I do that? thanks!08:34
joschecheese_pocket: usually the same way as you do for other keyboard via your system settings08:37
echeese_pocketI was looking at gallium layout, but I havent fully switched over yet08:39
echeese_pocketcurrently im using qmk on an external keyboard08:41
joschecheese_pocket: okay, of course you can swap the keys in the firmware and if you want to do that i can show you which file to do that in if you tell me your keyboard version. But you can also just use their kxb layout: https://github.com/GalileoBlues/Gallium/blob/main/Linux/gallium08:46
echeese_pocketso can I just swap keys in that before installing that to my reform?08:47
echeese_pocketbc I want partial gallium not full08:47
joschyou can also flash your keyboard while it is in the reform and running (but have a second keyboard ready in case of emergencies when you mess up for example)08:48
joschbut even if you want partial gallium, you can just modify the xkb file for that too08:48
joschthe problem with modifying the scancodes in the firmware is that then you will get wrong behaviour of programs which rely on scancodes instead of keypresses, for example in games08:49
joschSDL has that feature for example and games like factorio make use of it08:49
joschi know because i use the neo2 layout which also scrambles essentially all key positions around08:49
joschand changing the xkb file is less prone to failure if it goes wrong than flashing keyboard firmware08:50
joschi think changing the firmware makes sense if you either use it with operating systems that make it hard to run custom layouts08:50
echeese_pocketso how do I do it  without the firmware changes?08:50
joschor if you want to carry the standalone keyboard around and connect it to different computers and still have the same layout independent on what they have configured (they even then the software matching scancodes to keys can mess things up)08:51
echeese_pocketmaybe ill just go full gallium on the reform08:51
echeese_pocketbut I assume it will not work on bios unless I reflash firmware, right?08:52
joschsearching on the internet reveals articles like this one: https://codeaffen.org/2023/09/16/custom-keyboard-layouts-with-xkb/08:52
joschecheese_pocket: there is no bios08:52
echeese_pocketoops08:52
echeese_pocketbut like the drive decription screen08:52
joschwhat is the drive decryption screen?08:53
echeese_pocketthe screen where it asks for the drive password08:53
echeese_pocketI think its part of the pocket default image08:54
joschthat's in the initramfs and if you make your xkb config system wide, then that will have your custom layout in software as well08:54
joschsource: i'm using neo2 to type my luks password as well08:54
echeese_pocketnice08:54
joschthe pocket default image is not encrypted but you can use reform-setup-encrypted-disk to set it up08:54
echeese_pocketwhats neo2?08:55
joscha keyboard layout08:55
joschhttps://en.wikipedia.org/wiki/Neo_(keyboard_layout)08:55
echeese_pocketoh08:56
echeese_pocketI dont speak German so I dont need that08:56
echeese_pocketbut thats cool08:56
joschecheese_pocket: it seems there were efforts to add your layout (and related ones) to xkeyboard-config but it was closed 2 days ago because nobody seemed to be interested in it anymore: https://gitlab.freedesktop.org/xkeyboard-config/xkeyboard-config/-/merge_requests/72508:59
joschmaybe you can help make it happen and then it will be even easier to use that layout by just editing /etc/default/keyboard like for any other layout09:00
echeese_pockethow do I do that?09:00
joschthe maintainers raised some issues and questions in that merge request and it needs somebody to address these09:02
echeese_pocketok...09:04
joschbut as i said, i can also show you which file to edit in the firmware but you never told me your keyboard version :)09:04
echeese_pocketidk which version09:05
joschit says so on the keyboard pcb or you can send a photo of your layout and whether or not you have rgb led backlight09:06
+ gidzit (~gidzit@gidzit.org)09:06
echeese_pocketI have qwerty layout and rgb backlight09:06
joschhttps://source.mnt.re/reform/reform/-/blob/master/reform2-keyboard4-fw/src/matrix.h09:08
echeese_pocketso what do I do once I modify that file?09:12
joschecheese_pocket: you run cmake which is automated by the shell script build.sh in the parent directory. Have a look at the README.md there.09:15
echeese_pocketok! :)09:16
jahgrimmware: thank you :)09:35
jahI have a (non-hyper) pocket reform, and I just found that I also have a unused wd 2TB sn770 NVme drive, could I use such a drive with my pocket?09:36
- echeese_pocket (QUIT: Quit: Client closed) (~echeese_p@2601:8c1:c180:4630::9e1a)09:53
+ echeese_pocket (~echeese_p@2601:8c1:c180:4630::9e1a)10:07
- casparvitch (QUIT: Ping timeout: 240 seconds) (~casparvit@user/casparvitch)10:08
- echeese_pocket (QUIT: Client Quit) (~echeese_p@2601:8c1:c180:4630::9e1a)10:09
+ casparvitch (~casparvit@user/casparvitch)10:11
joschminute: unfortunately neither flashing u-boot to 8MB+0x1000 nor to 8MiB+0x1000 gave me any output on serial on LS1028A :/10:19
joschbut i'm happy that we tried first before putting the effort10:19
+ echeese_pocket (~echeese_p@2601:8c1:c180:4630::9e1a)10:45
- XYZ_ (QUIT: Remote host closed the connection) (~XYZ@78-80-115-228.customers.tmcz.cz)10:47
+ XYZ_ (~XYZ@78-80-115-228.customers.tmcz.cz)10:47
+ jogu (~jogu@user/jogu)10:52
minutejosch: weird, but it still works at 0x1000? 10:57
minutejosch: it's possible that you can't just flash it unmodified to that offset, but that it needs to be built for that offset10:58
minutejosch: i'm fine with the 512b alignment idea yep10:59
- echeese_pocket (QUIT: Quit: Client closed) (~echeese_p@2601:8c1:c180:4630::9e1a)11:02
- XYZ_ (QUIT: Read error: Connection reset by peer) (~XYZ@78-80-115-228.customers.tmcz.cz)11:43
joschminute: yes, 0x1000 was the default and when i flash it there it works11:43
minuteok11:44
+ XYZ_ (~XYZ@78-80-115-228.customers.tmcz.cz)11:44
joschminute: re built for that offset: yes possible but should it at least not print something for bl3 even if the offsets for the stuff after that (like u-boot) are wrong?11:44
minutejosch: not sure if bl3 can be loaded without rcw knowing the offset11:44
joschhrm right11:45
kfxneat, my keyboard lights stay on throughout boot now.  guess the problem was with my vintage motherboard11:46
kfxalso minute I apologize for basically liveblogging into a support ticket, your company does not deserve this idiocy11:46
minutegoogling around a bit, rcw+pbl+bl2 are bl2.pbl :D11:47
- RandyK (QUIT: *.net *.split) (~RandyK@user/randyk)11:48
- lidstah (QUIT: *.net *.split) (~lidstah@gateway/tor-sasl/lidstah)11:48
- GNUmoon2 (QUIT: *.net *.split) (~GNUmoon@gateway/tor-sasl/gnumoon)11:48
minutejosch: table 9 mentions gpt and even efi https://alider.by/upload/sata/docs/2ef8d1b0-b2a4-11e9-bef2-9551a92c8e3a.pdf11:49
+ aloo_shu (~aloo_shu@90.166.98.116)12:05
- gordon1 (QUIT: Quit: WeeChat 4.5.2) (~gordon1@citadel.niflheim.info)12:07
+ gordon1 (~gordon1@citadel.niflheim.info)12:07
- gordon1 (QUIT: Client Quit) (~gordon1@citadel.niflheim.info)12:08
+ gordon1 (~gordon1@citadel.niflheim.info)12:10
joschminute: i don't want to waste your time with ls1028a. I'm not upset if you just give up. Maybe one thing you could do is to ask for help with this using your wide reach in the fediverse and maybe somebody cares enough12:10
+ paperManu (~paperManu@107.159.15.124)12:12
- gordon1 (QUIT: Client Quit) (~gordon1@citadel.niflheim.info)12:12
joschthere is also a MR which tried to build ATF such that it can boot from emmc by setting BOOT_MODE=emmc when building bl2 but this also did not end up working: https://source.mnt.re/reform/reform-ls1028a-uboot/-/merge_requests/312:16
+ mjw (~mjw@gnu.wildebeest.org)12:40
minutejosch: without clicking that link, it's probably from dirk eibach who did a physical mod to the ls1028a module to make that possible (need to change a boot config bit/pin)12:56
minutejosch: we just need to look at rcw+pbl source. i can take a quick look now12:56
joschminute: your dedication to technical excellence is highly appreciated as usual12:57
minutelooking at https://source.mnt.re/reform/reform-ls1028a-uboot/-/blob/main/rcw/ls1028a-mnt-reform2/R_PSPH_0xb8be/rcw_1500_sdboot.rcw13:00
+ gustav25 (~gustav@c-78-82-54-128.bbcust.telenor.se)13:02
minutehm > 9.2.1.51 Boot location pointer low-order address (BOOTLOCPTRL)13:17
minute> Used by Service Processor to pass the boot address to GPPs13:17
minuteok fact 1: > If boot fails from the RCW loaded at offset 0 or 0x1000 (in case of SD), the boot ROM searches for RCW at 8 MB (8 MB + 0x1000 for SD) offset on the device.13:21
minutethis means: _RCW_ is loaded. what happens then13:21
minute> If enabled by RCW, the Service Processor polls Reset PBI_REQ[REQ]. When the request is detected,13:22
minuteit starts Pre-Boot Initialization, reading data from either the SD/MMC, SPI and writing to CCSR space13:22
minuteor local memory space (OCRAM, SRAM, DDR). If the Service Processor reports an error during its13:22
minutePre-Boot Initialization process, the device reset sequence is halted.13:22
minutethis is probably what's happening right now13:22
minuteit probably writes the wrong offset to "CCSR space" for further loading13:22
- martins (QUIT: Remote host closed the connection) (924a802ee9@user/martins)13:29
+ martins (924a802ee9@2001:bc8:1210:2cd8::15c)13:30
- Ar|stote|is (QUIT: Quit: No Ping reply in 180 seconds.) (~linx@149.210.3.83)13:31
minutemhm https://github.com/nxp-archive/openil_rcw/blob/fda65ca642ec7f1cd906e929857d73de4f3ab1cd/ls1028asi/block_copy_cmds_sdhc.rcw#L413:32
minutemhm https://github.com/nxp-archive/openil_rcw/blob/fda65ca642ec7f1cd906e929857d73de4f3ab1cd/ls1028asi/bootlocptr_sdhc.rcw13:32
minutejosch: these two files are probably what we approximately need to do13:33
minutejosch: josch this stuff is interpreted/compiled by rcw.py13:33
minutejosch: the first argument to blockcopy is the device. i guess 0x08 = sd, 0x09 = emmc13:36
minutejosch: i think the second arg is the destination in OCRAM (0x00100000)13:36
+ Ar|stote|is (~linx@149.210.3.83)13:36
minutejosch: 0x18010000 should be the offset of SPL on the sd card13:36
minutemight be big endian though13:37
- martins (QUIT: Remote host closed the connection) (924a802ee9@2001:bc8:1210:2cd8::15c)13:38
minuteOpenIL was "open industrial linux"13:38
minutepublic file https://www.nxp.com/docs/en/user-guide/OPEN-LINUX-IND-UM-1-10.pdf13:39
minute> OpenIL is a tool for building the final flash/SD image, including U-Boot13:39
minutejosch: see page 4413:41
minutejosch: mmc erase 8 0x80013:41
minutejosch: mmc write 0x82000000 8 0x80013:41
minuteah, sorry, that's 8 blocks, 4kb13:42
minuteah but bl31 they put at 0x80013:42
minutesome more info https://github.com/u-boot/u-boot/blob/master/arch/arm/cpu/armv8/fsl-layerscape/doc/README.lsch313:47
+ chomwitt (~chomwitt@2a02:85f:9a5f:900:1ac0:4dff:fedb:a3f1)13:49
minuteaha, i got it wrong, 0x00100000 is the source addr13:49
minuteexplainer https://github.com/u-boot/u-boot/blob/master/arch/arm/cpu/armv8/fsl-layerscape/doc/README.lsch3#L20613:49
+ martins (924a802ee9@2001:bc8:1210:2cd8::15c)13:54
+ jahkosha (~jahkosha@user/jahkosha)13:56
* jah -> Guest287113:56
- Guest2871 (QUIT: Killed (lithium.libera.chat (Nickname regained by services))) (~jahkosha@user/jahkosha)13:56
* jahkosha -> jah13:56
minutejosch: have you tried flashing the fsl-ls1028a-mnt-reform2-flash.bin to both 0x1000 and 0x801000, and then overwriting the start with a gpt partition table?13:57
minutejosch: using github code search for blockcopy 0x00801000 i found this SVG showing a GPT layout for LS1028A SD card https://github.com/tano-systems/meta-tanowrt/blob/3ff38a82bce33e6d17bb250399d6e5d289917c81/docs/layers/meta-tanowrt-hsl-nxp/boards/ls1028ardb/images/ls1028ardb-layout-sd.svg?plain=1#L3814:01
minutejosch: it has uboot at 0x100000 (1 MiB) and RCW at 0x00801000 (8196 KiB)14:02
minutejosch: whatever TanoWRT is, they have figured it out. maybe you can look at their code and carry that over? https://github.com/tano-systems/meta-tanowrt/blob/3ff38a82bce33e6d17bb250399d6e5d289917c81/docs/layers/meta-tanowrt-hsl-nxp/boards/ls1028ardb/index.rst#partitioning-layouts14:03
minute(awesome docs btw)14:03
minutejosch: see these includes (Boot Location Pointer and Copy SPL to OCRAM) https://github.com/tano-systems/meta-tanowrt/blob/3ff38a82bce33e6d17bb250399d6e5d289917c81/meta-tanowrt-hsl-nxp/recipes-bsp/rcw/rcw/patches/0004-ls1028ardb-Add-SQPH-RCW-with-SD-card-boot.patch#L5914:04
- martins (QUIT: Remote host closed the connection) (924a802ee9@2001:bc8:1210:2cd8::15c)14:06
minutejosch: yeah, makes sense now. we need to add the following to our .rcw:14:06
- paperManu (QUIT: Ping timeout: 264 seconds) (~paperManu@107.159.15.124)14:09
minutejosch: https://source.mnt.re/reform/reform-ls1028a-uboot/-/commit/f7effca43439de110182283e207df3d73287737314:13
minutejosch: but you would need to please figure out how to change the image building / concatenating itself so that uboot ends up at 0x100000 and rcw at 0x80001000 on the card, _or_ maybe it's possible to just replace the 0x100000 in my blockcopy line with for example 0x80100000, depending on where SPL is by default (i don't know where)14:15
minuteanyway, i hope that's enough data to get you started14:16
+ martins (924a802ee9@2001:bc8:1210:2cd8::15c)14:28
jahhey folks, I did just open my pocket, initially to look where I could add a NVMe SSD, anyway I get curious and looked at the assembly manual to understand what is what... there is one cable that I don't see mention in the assembly manual though.14:34
jahhttps://imgur.com/a/6qw7RCN14:34
jahthis is the one marked in red where the arrow is pointing at, what is it?14:34
minutejah: yeah that's pretty new, it's the pcie+usb cable for the new wifi carrier that you have14:36
jahminute: okay makes sense thanks for explaining!14:36
jahalso I'm curious where does come from the default 256GB of storage, is there an (mini)sdcard somewhere? some chip on the motherboard?14:37
+ paperManu (~paperManu@modemcable141.205-200-24.mc.videotron.ca)14:41
- XYZ_ (QUIT: Ping timeout: 240 seconds) (~XYZ@78-80-115-228.customers.tmcz.cz)14:49
minutejah: emmc on rk3588 module14:52
grimmwareminute: I've noticed that my wifi has notably improved since the rcore2 w/ Intel wifi14:53
grimmwareI'm also impressed with the bluetooth range!14:53
minutegrimmware: great!14:53
grimmwarebatteries seem to be doing sensible things too14:53
grimmwarewith the 7000mAH cells it just gooooooooes as well14:54
grimmwareI'm having trouble leaving it alone to be honest14:54
jahyeah I missed all the meetings I had plan since I received my pocket, I can't leave it alone either14:56
jahminute: I see, thank you14:56
+ bkeys (~Thunderbi@h193.131.19.98.dynamic.ip.windstream.net)14:58
bkeysACTION basks in victory14:58
minutebkeys: great to hear btw... how did you recover from the issue? and will you share some pix/vids from fedora on reform?15:00
minutegrimmware: haha nice, which 7mAh cells did you get?15:01
bkeysminute: I'm convinced it was a miracle, I was trying to get it to go into maskrom mode by shorting the pads on the SoM like it said in the firefly wiki, and it booted up Linux15:01
bkeysI have no technical explanation or reason why that worked15:02
grimmwareminute: same ones as josch15:02
minutebkeys: ah, maybe those pins overrode emmc booting15:02
grimmwareI can dig out the forum thread if you want to know more :)15:02
bkeysMaybe15:02
bkeyshttps://imgur.com/8LAcwrU15:02
bkeysminute: https://imgur.com/a/8LAcwrU15:04
bkeysI am also typing this on my Fedora Reform15:04
minutebkeys: awesome15:05
bkeysI will document and make a post on community.mnt.re in the near future15:05
minutebkeys: great, i just wanted to ask that15:05
bkeysI'm glad about this, I have wanted to run Fedora on this thing since I got it almost 4 years ago15:06
bkeysI followed minute for a long time, I remember watching the Reform1 and IMX615:06
bkeysalso minute the keycaps y'all put over my trackball is nice, and the trackball is indeed much nicer15:07
bkeysI gotta go run a bike shop now, afk15:08
jahan other "just curious" question, how was the default background image generated?15:09
- mjw (QUIT: Ping timeout: 256 seconds) (~mjw@gnu.wildebeest.org)15:20
* Guest3787 -> mjw15:30
- buckket (QUIT: Quit: buckket) (~buckket@vps.buckket.org)15:35
+ buckket (~buckket@vps.buckket.org)15:36
+ spew (~spew@user/spew)15:55
+ lidstah (~lidstah@gateway/tor-sasl/lidstah)16:06
+ XYZ_ (~XYZ@78-80-115-228.customers.tmcz.cz)16:07
minutejah: i did it in blender16:09
minutejah: basically it's the mnt logo extruded and subdivided16:10
jahminute: yeah I eventually realized it must have been the mnt logo (very nice btw), I just wondered if you did the extrusion in a generative manner16:10
jahlooks so neat <316:10
jahI'm having so much fun hacking this thing, thanks so much for building such a cool piece of hardware16:11
+ gordon1 (~gordon1@citadel.niflheim.info)16:16
- elb (QUIT: Remote host closed the connection) (~elb@2600:4041:6682:ea00:c6a7:e77f:1e0b:37ab)16:24
+ elb (~elb@2600:4041:6682:ea00:dad4:689b:3c70:a564)16:24
+ wielaard (~mjw@gnu.wildebeest.org)16:35
grimmwareit's amazing isn't it :)16:37
grimmwaretry replacing the trackball with a silicon nitride one :D16:37
grimmwarefun hack for like $516:38
grimmwareso far I've installed accelerometers (although I'm not currently running my sysctl or kernel module patch for them), replaced the trackball, upgraded the cpu module once and the carrier twice, upgraded the charger, replaced all the keyswitches with kailh sunsets (apart from the mouse buttons, I kept them clicky), made a custom side panel for accessing UART, removed it again, 3d printed16:40
grimmwarereplacement battery retainers, removed them again when I installed bigger batteries...16:40
jahgrimmware: yeah I can feel I just started a long journey :)16:40
jahfor now I'll be trying to add keyboard extra layer and "tap vs hold" feature that I'm used to in QMK, but thank you I'll keep that in my endless list of stuff to do with it!16:40
jahgrimmware: wow, okay I see that is quite a rabbit hole xD ... noooice16:40
grimmwarejah: oooooh if you do tap-to-hold functions can you open an MR with upstream? I'm really starting to miss home row mods.16:41
rick_grimmware did you 3dprint the custom side panel? if yes, do you mind sharing the files somewhere? 0.016:44
jahgrimmware: yeah! that is the first thing I will focus on (in next days ... or weeks depending of how much time I can spend on it), I hope I'll be able to make it generic enough so it can be shared easily upstream, I'm optimistic, I'll take inspiration from QMK16:44
grimmwarerick_: I did yeah, they're just some tinkercad files because I mashed it together out of other models and it's not tremendously practical16:45
grimmwarelemme see if I have a picture somewhere16:45
jahactually, I'll first try to make the enter key act as right maj when hold (KC_SFTENT), that seems simpler than layer to get started and I also need that16:51
grimmwareThis is it installed https://usercontent.irccloud-cdn.com/file/afiMRSaL/1764863528.JPG16:52
grimmwarehttps://usercontent.irccloud-cdn.com/file/4pa5DJPQ/1764863553.JPG16:52
grimmwarehttps://usercontent.irccloud-cdn.com/file/8aR3DSZR/1764863576.JPG16:53
grimmwarehttps://usercontent.irccloud-cdn.com/file/Hs8vKXC1/1764863589.JPG16:53
grimmwareOh yeah this was the other dumb shit I did https://usercontent.irccloud-cdn.com/file/wXZdIY7t/1764863621.JPG16:53
grimmwareit's my favourite toy :)16:54
jahoh my god, you literally merged it with an ergo dox16:54
rick_waohhhhh both a very nice <316:55
rick_but you don16:55
jahgrimmware: I notice an other of my favorite toy in the background from storz & bickel, rofl16:55
jahgood taste sir16:55
rick_'t have the thinkercat files anymore?16:55
grimmwarerick_: I can pull them out for you but I can't promise they're any good! Also won't work if you have the new wifi carrier board16:56
rick_ahhh see16:56
rick_mhh i think ill make one myself then16:57
rick_but thanks for the idea, i love it!16:57
jahgrimmware: how do you use that UART connector? I mean what kind of stuff do you connect to it?16:58
grimmwareHere’s the .stl https://usercontent.irccloud-cdn.com/file/hQNfDe8f/Terrific_Bombul-Kup.stl16:59
grimmwarejah: you need something like an FTDI adapter and some du-pont cables so you can interact with u-boot (which can't render to screen on the rcore) when you want to pick which kernel you're booting17:00
rick_<317:01
- wielaard (QUIT: Remote host closed the connection) (~mjw@gnu.wildebeest.org)17:01
grimmwareyou can access the uart anyway with the back off, I was just doing a lot of fucking around with different kernel builds at the time17:01
+ wielaard (~mjw@gnu.wildebeest.org)17:01
jahgrimmware: ooooh, I see, thanks. now that explains why I don't see the whole boot sequence as I usually do on other machines.17:02
rick_also for serial console access, or not?17:02
grimmwareI don't actually know, minute can you spawn a TTY on the uart?17:03
minuteyeah josch fixed that recently in a bunch of uboots i thought17:03
- spew (QUIT: Quit: WeeChat 4.7.2) (~spew@user/spew)17:03
cwebberhttps://usercontent.irccloud-cdn.com/file/wXZdIY7t/1764863621.JPG this is kinda what I'm gonna be working on also17:42
amospallacwebber: amazing.17:47
minutecwebber: that's a next level setup!17:49
cwebberoh that one is grimmware's!17:49
cwebberso what I'm going to do17:49
cwebber- have my pocket sit in the middle17:49
- jordi (QUIT: Ping timeout: 240 seconds) (~jordi@79.117.156.55)17:50
cwebber- have a ZSA Voyager split keyboard on either side https://www.zsa.io/voyager17:50
cwebber- then I have a portable monitor on a stand that sits *behind* the pocket https://www.zsa.io/voyager17:50
cwebberbasically, all that stuff packs up easily into a backpack17:50
cwebberso I can use the pocket as a lap machine while in transit17:51
cwebberbut then when setting up to work17:51
cwebberI have a *full workstation*17:51
grimmwareI finally got a coat with big enough pockets to put my pocket in17:51
cwebberwith a second monitor (that portable monitor is really light and is perfect behind the Pocket as a second screen!), an ergonomic shoulder-width keyboard setup17:51
cwebberand the ZSA Voyager also has an add-on trackball thing called the Navigator. But I don't need it! Because the Pocket is sitting in between and already has a trackball setup!17:52
cwebberI'm very excited about this17:52
cwebberbasically I have to be on the road more than I'd like and ergonomics are important to me and my body, so while I'd like to just use the pocket, I often need a more desktop-like environment for longer periods17:52
cwebberI think it's going to look pretty wild with all of it set up. It's a lot of cables tho, lol17:53
grimmwarecwebber: heartily recommend getting a bunch of right-angled flat cables that are exactly the right length from aliexpress17:54
- gidzit (QUIT: Ping timeout: 240 seconds) (~gidzit@gidzit.org)17:54
cwebbergrimmware: good call17:54
cwebbergrimmware: your setup is truly awesome, can I post that on the fediverse? do you have a fedi handle?17:55
grimmwareyeah sure, I'm @grimmware@chaos.social17:55
cwebberjosch: did I hear you mention using a powered usb-c hub?17:58
cwebberI'm curious more about that17:58
cwebberI've thought about adding it to my "backpack'ed portable pocket workstation"17:58
cwebberas described above17:58
cwebberI think if I were gonna design a cyberdeck today even with a *different* form factor, I'd start with the guts of the Pocket18:02
cwebberbut it's also nice how easily it can be adapted into a cyberdeck foundation18:02
cwebberI love weird computer setups18:02
grimmwarethis ^18:12
- arminweigl (QUIT: Ping timeout: 256 seconds) (~arminweig@sourcehut/user/arminweigl)18:22
jahthat is absolutely amazing all the possibilities this approach open O_O18:23
grimmwarejeez my masto is absolutely blowing up now heh18:27
+ arminweigl (~arminweig@sourcehut/user/arminweigl)18:31
cwebberhaha18:45
cwebber*tosses hair* I have a way of doing that ;)18:45
grimmwareyeah you really do!18:57
jahI've been tinkering with anbernic device in the past, now seeing this pocket reform I wonder how much effort it would be to use a similar approach to build a handheld gaming device19:06
+ vagrantc (~vagrant@2600:3c01:e000:21:7:77:0:20)19:33
- pasta161 (QUIT: Quit: WeeChat 4.7.1) (~pasta161@user/xha)19:59
* mjw -> Guest396020:08
- Guest3960 (QUIT: Killed (tantalum.libera.chat (Nickname regained by services))) (~mjw@2001:1c06:2486:a800:a09a:fc1c:5a8:e74d)20:08
* wielaard -> mjw20:08
+ Guest3960 (~mjw@2001:1c06:2486:a800:a09a:fc1c:5a8:e74d)20:09
- chomwitt (QUIT: Ping timeout: 264 seconds) (~chomwitt@2a02:85f:9a5f:900:1ac0:4dff:fedb:a3f1)20:30
aloo_shuthere is one, based on something existing 21:33
aloo_shuif it's not considered advertising, I can search for the link in the channel logs where I was told about it21:34
+ leony (~leony@2a02:8109:f083:bb00::5ef2)21:40
aloo_shuok got it, name is uConsole, builds on the raspberry ecosystem, less ambitious goals/ethics than mnt, but enough parallels to make comparing approaches potentially fruitful21:46
kfxI have that thing and it is ... not good21:51
kfxthe case is very nice, the keyboard and mouse are ok when they work, and I would not buy it again21:52
- gustav25 (QUIT: Quit: Quit) (~gustav@c-78-82-54-128.bbcust.telenor.se)22:15
+ johl (~johl@dynamic-093-128-144-195.93.128.pool.telefonica.de)22:26
johlHey there!22:26
grimmwareugh my flicker is back22:26
grimmwareminute: did the branch to fix flicker on v1 ever get merged?22:27
grimmwareI upgraded kernel recently from my patched one22:27
minutegrimmware: no it's not done22:27
minutegrimmware: because it didn't work on imx8mplus22:27
grimmwareoh lame22:27
minutei'm currently working on debugging dsi on barebox22:28
minutemore later22:28
johlI fell very humble and stupid, but... How do y'all enter the backtick character on the Pocket R3eform keyboard?22:28
grimmwarehyper esc22:28
johlThank you!22:28
grimmwareminute: cool, I can just rebase my changes and build again :)22:29
- leony (QUIT: Quit: leony) (~leony@2a02:8109:f083:bb00::5ef2)22:31
- johl (QUIT: Quit: leaving) (~johl@dynamic-093-128-144-195.93.128.pool.telefonica.de)22:34
+ chomwitt (~chomwitt@2a02:85f:9a5f:900:1ac0:4dff:fedb:a3f1)22:42
- paperManu (QUIT: Ping timeout: 260 seconds) (~paperManu@modemcable141.205-200-24.mc.videotron.ca)22:51
vagrantchrm. after updating to the firmware with 2.2Ah for the cells hard-coded, it does not seem to fully charge ... i ran it till it shut off, charged it up, and the cells seem to be at 3.1v at 87% charge22:52
+ espressocheese (~espressoc@2601:8c1:c180:4630:7154:e07a:54b1:b266)22:53
vagrantcon the oled display ... does it round or truncate the voltage reading? e.g. would 3.19v register as 3.1v ... or 3.2v ?22:53
vagrantcis there some way to get a more precise reading of the voltage of individual cells?22:55
espressocheeseim stuck at initramfs, can someone please help?22:56
espressocheeseit decrypts the drive then goes to initramfs22:58
- mjw (QUIT: Ping timeout: 264 seconds) (~mjw@gnu.wildebeest.org)23:15
+ paperManu (~paperManu@107.159.15.124)23:16
+ pomel0 (~pomel0@user/pomel0)23:23
+ paperManu_ (~paperManu@107.159.15.124)23:32
espressocheeseI think I bricked my reform, pls help23:55
espressocheeseits stuck on initramfs23:56

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