2022-06-10.log

erlejosch it could enable a reproducible offline build00:09
erlefirst step to reproducible obv00:09
erlethe provenance of “this thing that the CI spit out” is not too questionable, but it is a bit weird00:09
joscherle: how do you want to achieve an offline build for something that needs to access the debian archive to download packages?00:11
joscherle: when you run the image build scripts multiple time, the output will be bit-by-bit identical00:11
erlelet future me worry about the debian archive00:12
joschthere are many definitions of what people consider being "reproducible" -- what kind is it that you find the current script lacking?00:12
erlewell it starts with the bootloader binary being downloaded from the CI00:13
joschif you like, we can add a sha256sum to the script that makes sure that the u-boot binary is exactly what we expect00:14
erlethis command here: /usr/lib/apt/apt-helper download-file https://source.mnt.re/reform/reform-boundary-uboot/-/jobs/artifacts/v3/raw/flash.bin\?job\=build flash.bin00:14
joschyes?00:15
joscherle: can you please elaborate where you want to go and why -- what is your motivation?00:19
erlei want to rebuild a disk image while offline and also introduce caching into the build process00:19
erlei started this once, then stopped, today remembered about it00:20
joschshould be trivial with apt-cacher00:20
erlewell, for everything00:21
joschwhat else is getting downloaded other than u-boot and Debian packages?00:21
erlethe question is rather, what is being cached. the answer is: next to nothing. the build steps are not separated.00:22
joschcorrect, but if you want to cache stuff, why don't you just put apt-cacher in the middle and call it a day?00:22
erleconsider the following https://mister-muffin.de/p/UmOD.png00:22
erlethat is a partial dependency tree from my first attempt00:23
erlewhich i shamefully abandoned00:23
joscherle: you are not working on sysimage-v3, are you?00:23
joscherle: these days, kernel, dtb and configs are all Debian packages00:24
erlewell, i said this was an old attempt00:25
- chomwitt (QUIT: Ping timeout: 244 seconds) (~chomwitt@2a02:587:dc1f:5600:28f0:c157:4d87:4f4e)00:42
+ littlebo1eep (~alMalsamo@gateway/tor-sasl/almalsamo)00:58
- littlebo1eep (QUIT: Ping timeout: 240 seconds) (~alMalsamo@gateway/tor-sasl/almalsamo)01:08
+ littlebo1eep (~alMalsamo@gateway/tor-sasl/almalsamo)01:22
- mjw (QUIT: Quit: Leaving) (~mark@gnu.wildebeest.org)01:29
+ vkoskiv (~vkoskiv@89-166-62-97.bb.dnainternet.fi)01:32
- littlebo1eep (QUIT: Ping timeout: 240 seconds) (~alMalsamo@gateway/tor-sasl/almalsamo)01:37
minuteerle: maybe you want to review the whole new structure first before drawing conclusions.01:54
minuteerle: full recognition before etc etc01:55
erleminute maybe i should! but i want caching on the level of artifacts01:56
erlebecause with redo i can do “redo-ifchange $target“ and have it only regenerate if the prerequisites changed01:56
erlei have not seen that in the current (?) script, which requires manual deletion of the written image01:57
- vagrantc (QUIT: Quit: leaving) (~vagrant@2600:3c01:e000:21:7:77:0:20)02:01
- mtm (QUIT: Ping timeout: 255 seconds) (~mtm@c-73-27-62-116.hsd1.fl.comcast.net)02:02
bluerisecinap_lenwerk: congrats02:19
bluerisecinap_lenwerk: how?02:19
- Christoph_ (QUIT: Remote host closed the connection) (~Christoph@p54bf605d.dip0.t-ipconnect.de)02:25
- bkeys (QUIT: Remote host closed the connection) (~Thunderbi@static-198-54-135-69.cust.tzulo.com)02:52
+ bkeys (~Thunderbi@static-198-54-135-69.cust.tzulo.com)02:56
bkeysI accidentally dd'ed over my Reform on the SD card, I figure now is then the time to boot from nvme03:14
bkeysAnd try to get mainline Fedora booted on here03:18
bkeysI don't think anyone is awake. But I got debian booting from emmc, I figured it would be uboot only on emmc03:49
bkeysI have Fedora on my nvme drive, basically unmodified.03:49
- bkeys (QUIT: Ping timeout: 255 seconds) (~Thunderbi@static-198-54-135-69.cust.tzulo.com)03:56
+ mtm (~mtm@c-73-27-62-116.hsd1.fl.comcast.net)04:08
+ vagrantc (~vagrant@2600:3c01:e000:21:7:77:0:20)05:48
+ chomwitt (~chomwitt@2a02:587:dc1f:5600:b0ac:64b:5946:8d06)06:15
- mlarkin (QUIT: Quit: Lost terminal) (~mlarkin@047-048-086-214.biz.spectrum.com)07:08
vkoskivHas anyone tried to get OBS working? Wondering if it would work at least somewhat with hardware accelerated encoding, if supported.08:50
vkoskivLooks like it wants a newer version of opengl than is supported.08:50
vkoskivIt initializes EGL 1.4 and then fails to create a context.08:51
- vagrantc (QUIT: Quit: leaving) (~vagrant@2600:3c01:e000:21:7:77:0:20)08:55
kfxobs barely works right on my 40-core desktop with 128gb of ram running a commercially-supported linux distro09:02
- thum (QUIT: Ping timeout: 248 seconds) (~thum@user/thum)09:12
+ MajorBiscuit (~MajorBisc@wlan-145-94-166-231.wlan.tudelft.nl)10:03
vkoskivYeah I'm not expecting too much, just wondering if someone got it running yet10:08
+ mjw (~mjw_@2001:1c06:2488:1400:9e5c:8eff:fe8f:a440)11:16
+ thum (~thum@user/thum)12:01
- buckket (QUIT: Quit: buckket) (~buckket@pdp8.buckket.org)12:01
minutewe don't have hw encode yet, only decode 12:15
+ Christoph_ (~Christoph@p54bf61d7.dip0.t-ipconnect.de)13:02
- MajorBiscuit (QUIT: Quit: WeeChat 3.5) (~MajorBisc@wlan-145-94-166-231.wlan.tudelft.nl)13:04
+ MajorBiscuit (~MajorBisc@wlan-145-94-166-231.wlan.tudelft.nl)13:08
- MajorBiscuit (QUIT: Quit: WeeChat 3.5) (~MajorBisc@wlan-145-94-166-231.wlan.tudelft.nl)13:14
+ MajorBiscuit (~MajorBisc@wlan-145-94-166-231.wlan.tudelft.nl)13:27
+ mark_ (~mark@gnu.wildebeest.org)13:38
- MajorBiscuit (QUIT: Ping timeout: 248 seconds) (~MajorBisc@wlan-145-94-166-231.wlan.tudelft.nl)14:00
- mtm (QUIT: Ping timeout: 246 seconds) (~mtm@c-73-27-62-116.hsd1.fl.comcast.net)14:02
+ MajorBiscuit (~MajorBisc@wlan-145-94-166-231.wlan.tudelft.nl)14:03
- MajorBiscuit (QUIT: Client Quit) (~MajorBisc@wlan-145-94-166-231.wlan.tudelft.nl)14:04
+ MajorBiscuit (~MajorBisc@wlan-145-94-166-231.wlan.tudelft.nl)14:06
+ bkeys (~Thunderbi@static-198-54-135-69.cust.tzulo.com)14:11
erleminute funny battery board bug: when enough cells are dead and the reform is on for long enough, it will show all cells at 5.3 – but of course, when i remove the charging power to call the bluff the reform turns off.14:14
vkoskivLooks like OBS would like OpenGL 3.3 but the theoretical max for vivante is 3.114:21
vkoskivBut that's fine, I can wait for a newer SoM down the line :D14:22
vkoskivFirst time I'm seeing 100% signal strength here on the train. I think my parents' house just has poor wifi.14:25
bkeysOkay, so as I mentioned last night I am on the war path to get Fedora on my Reform. 14:26
bkeysI have my serial adapter up to the Reform like it says in the manual, but I am not seeing any output on my serial monitor14:27
vkoskivWeird, ping doesn't work on this system.14:27
vkoskivstrace shows some EACCES and EPERM errors and it just returns right away with code 214:27
joschvkoskiv: that's a filesystem problem -- try running these tools as root. I'm in the process of fixing this with the maintainer of e2fsprogs14:31
joschbkeys: is this with fedora or the debian sysimage-v3?14:32
bkeysDebian image at the moment, I think I just have to configure the uboot on the Reform to run bootefi instead of what it is you guys are doing and Fedora should boot14:32
vkoskivjosch: works, thanks!14:32
bkeysBut right now I am not getting any output whatsoever on the serial, so I have no way to manually mess with uboot14:33
bkeysI have the correct baud rate, I set it up for software flow control (which has to do with my input, not the serial output)14:33
bkeysIf I cannot get a serial console, my next guess is to build a uboot image for the Reform that just runs bootefi out of the box14:34
bkeysEven once it boots to Linux I get no output, which is strange I should be able to get a full TTY and everything from Linux via serial console14:35
joschbkeys: i am told that you should at least see serial output of u-boot -- do you also not see that?14:35
josch(i cannot verify that myself because my S1 is broken)14:35
bkeysI wish I could see the serial output of uboot14:36
joschbkeys: but you are using the default sysimage-v3 without having changed anything with u-boot on there?14:36
bkeysI spammed keypresses right after booting the Reform and it still went to the OS uninterrupted so it's not seeing my input either14:36
bkeysYes I haven't changed anything on uboot14:37
bkeysThis is uboot/debian on the emmc at this point14:37
joschbkeys: can i build an image for you that you flash to your sd-card and try out a hunch I have? :)14:37
joschoh, so you have the dip-switch changed so that your u-boot comes from emmc and not from the sd-card?14:38
bkeysYes I did that last night14:38
joschah okay14:38
bkeysAnd sure, send me whatever image you wanna test out14:38
bkeysWith you image do I have to flip the switch again cause it's on SD card?14:38
joschhrm... that doesn't make it as easy to try out experiments from sd-card -- didn't you say you only want to switch to emmc booting later?14:38
joschyes, unfortunately :/14:39
bkeysYeah, but I am feeling determined so I figure if I burn a bridge perhaps it will motivate me to my end goal14:39
joschbkeys: so i'm building an image for you but before you test that, I guess you made sure that your TX is connected to RX and RX to TX and GND to GND, right? I'm successfully connecting to my reform over serial by running `sudo screen /dev/ttyUSB0 115200`. I'm using an FTDI232 set to 3.3 V and here is my setup: https://mister-muffin.de/p/t7No.jpg https://mister-muffin.de/p/M8dC.jpg -- if you tried all 14:53
joschthat and that doesn't work, stay tuned, image is building. :)14:53
bkeysAlright I am back15:13
bkeysYeah I double checked the pins15:13
bkeysI am using minicom rather than screen15:13
joschyeah, shouldn't matter -- i was just posting it just in case you are interested in a known-good configuration15:13
bkeysYeah screen isn't showing anything either15:14
bkeysI just have some USB to TTL adapter15:14
joschin that case, in about 2 minutes, download this and flash it to your sd-card:  https://mister-muffin.de/reform/reform-rescue-system.img15:14
joschthis is a rescue image that is nearly exactly the same as the stock rescue image but it will output to S2 instead of S115:14
joschS2 is connector J20 just to the left of S1 on this photo: https://mister-muffin.de/p/t7No.jpg15:15
bkeyshttps://alexnld.com/wp-content/uploads/2018/04/58df7051-4a29-4afb-9da1-e60cd7c55a5d.jpg15:15
bkeysWhat I have looks similar to this15:15
joschi can't read what chip that is or what signal voltage you've set it to15:16
bkeysThose are the 3 pins I am using now15:16
bkeysIs there a different set of pins I am supposed to use by default?15:16
bkeysOh there are the ones right next to it15:17
bkeysSo I should probably put them up on the pins that go straight up, rather than out the side of the board I am guessing15:17
joschthe ones you see connected in my photo are connected to S115:17
joschmy S1 is broken though, so I have to use S2 which is the connector to the left of S1 in the photo15:17
joschyes, S2 has pins perpendicular to the board and the pins of S1 go out to the side15:18
joschthe image I've prepared and which you can download now from   https://mister-muffin.de/reform/reform-rescue-system.img will output kernel messages to S2 instead of S115:18
joschmaybe see if that works -- if yes, then your S1 is broken just as mine was ;)15:18
bkeysSo is my S1 broken?15:19
joschnot necessarily15:19
joschbut this is why we try it out15:19
joschi'll be afk for 15 minutes15:20
bkeysOkay15:21
- bkeys (QUIT: Quit: With every step we take, danger will follow closely) (~Thunderbi@static-198-54-135-69.cust.tzulo.com)15:38
+ bkeys (~Thunderbi@static-198-54-135-69.cust.tzulo.com)15:38
joschbkeys: did you have any success?15:48
bkeysI got the switch flipped back to sd card16:00
bkeysTrying to burn it now, this pinebook pro isn't that good16:00
bkeysIt's being a pain with my samba share which is where your image is mounted16:00
bkeysI mean stored16:03
bkeysIt should be noted that the system image on SD card doesn't have serial output either16:03
joschbkeys: okay, failed experiment then16:04
joschbkeys: you tested your serial adapter with another device to make sure that your adapter is not the problem?16:04
joschi tested mine with a raspi16:05
bkeysWell I haven't tried your image yet16:05
bkeysAnd yes I used it a few weeks ago on a different SBC and it worked fine16:05
joschah i thought you meant my image when you were talking about "the system image on SD card" :)16:06
bkeysGosh this pinebook pro is just awful16:06
+ mtm (~mtm@c-73-27-62-116.hsd1.fl.comcast.net)16:09
bkeysI will say once I switched to SD card for some reason neither S1 or S2 even worked16:09
bkeysLike it didn't even pick it up as a serial device and the adapter didn't light up16:10
minutebkeys: try swapping rx/tx, make sure you have 115200 baud, try another uart usb adapter16:10
bkeysI know I got 115200 baud16:11
bkeysIf serial won't work then I would think the next thing is to build a uboot image that is configured to simply run bootefi16:11
+ bkeys1 (~Thunderbi@static-198-54-135-69.cust.tzulo.com)16:15
bkeys1Now I am on USB wireless, hopefully it won't be so unstable16:15
- bkeys (QUIT: Ping timeout: 250 seconds) (~Thunderbi@static-198-54-135-69.cust.tzulo.com)16:16
* bkeys1 -> bkeys16:16
+ vagrantc (~vagrant@2600:3c01:e000:21:7:77:0:20)16:17
+ bkeys1 (~Thunderbi@static-198-54-135-69.cust.tzulo.com)16:30
- bkeys (QUIT: Ping timeout: 244 seconds) (~Thunderbi@static-198-54-135-69.cust.tzulo.com)16:31
* bkeys1 -> bkeys16:31
bkeysOkay the pinebook pro is so bad with my network I have downloaded josch's image to my power9 server, and am copying it to an external hard drive and delivering it to the pinebook pro that way16:36
bkeysGosh what a pain; makes me realize how easy samba shares and network makes things16:36
bkeysjosch: Okay I got your image burned on the SD card16:39
josch\o/16:40
bkeysYeah the adapter isn't lighting up at all16:42
bkeysI got another one it came with new in packaging; let me open it.16:42
bkeysOkay I remove the extension cable and it solved it16:46
bkeysBut no serial output on S216:47
bkeysThe LED on the adapter is blinking like it sees something, but nothing coming out of minicom at all16:47
bkeysNothing on S1 either16:49
bkeysMaybe I have the wrong kind of adapter.16:49
bkeysMine is USB to TTL16:49
bkeysI am not certain if that is any different than USB to UART16:49
bkeysjosch: And I take it there is no other way to access uboot?16:50
joschbkeys: u-boot can also output on hdmi -- but to input something you need serial on S1 (u-boot cannot do S2)16:50
bkeysIs USB to UART different than USB to TTL?16:51
minutenot sure. usb to rs232 is certainly wrong :D16:53
bkeysWell what adapter do you recommend?16:54
bkeysThe next option I see is that I try to build uboot so that it just uses bootefi instead of y'alls boot scripts16:55
vagrantcnot sure of the exact u-boot config, but if there are no boot scripts or extlinux, u-boot should fall back to EFI ...17:01
vagrantc(unless it's not using distro_bootcmd)17:02
joschvagrantc: should distro_cmd not be doing that?17:02
vagrantcjosch: in general, yes :)17:03
bkeysWell I have hooked up an external HDMI screen to the reform before and I got no graphical output17:03
bkeysFrom uboot or from linux even17:04
vagrantcyou'll really want access to the serial output...17:04
bkeysI'd agree but I don't know if I have a way of doing that atm17:04
bkeysIt seems all my immediate options are exhausted17:04
vagrantcwhat adapter do you have?17:05
bkeysA USB to TTL one17:06
vagrantcand you've tried swapping the tx/rx both ways17:06
bkeysMy guess is that it's the wrong adapter17:06
vagrantcshould be ok17:06
bkeysI haven't tried swapping them no17:06
vagrantcand you have ground?17:06
bkeysYes17:06
vagrantctry swapping them17:06
joschwith my image you should get something independent on whether you connect your serial to S1 or S2 because u-boot outputs on S1 and linux to S217:07
vagrantcit's kind of arbitrary what is rx and what is tx ... depends which perspective you're looking at it from17:07
bkeysSwapped it and I get nothing on S217:08
bkeysOh wait, I am getting Linux on S2!17:08
joschhah!17:08
bkeysOkay lets move around and see if S1 works17:08
joschnice :)17:08
vagrantcwhen getting nothing, always try swapping rx/tx :)17:08
bkeysMy guess is that it's a per adapter thing17:09
bkeysOkay I got a uboot prompt17:09
bkeysYay17:09
vagrantcit depends on if the adapter is labeled "plug this wire into the rx of the device" or "plug the output of the device into this rx on your adapter"17:10
bkeysI see17:10
bkeysWell I got a uboot prompt17:10
vagrantchope abounds!17:10
bkeysI have mainline Fedora on the nvme, I need to do bootefi but it bootefi and boot from nvme17:10
vagrantcdoes the u-boot build support loading off NVMe ?17:11
bkeysSo I can run bootefi but it needs a image, my guess is grub on the nvme17:11
joschat least your S1 is working -- when you do uboot stuff it's hard to do without it XD17:11
bkeysIf I got mainline Fedora working on here and I got the board repaired this thing would be such a cool laptop17:12
bkeysI mean it's already cool; but mainline Fedora support would be great17:12
joschi don't think u-boot can access nvme17:13
bkeysSo how does the reform system image boot from nvme?17:13
vkoskivI'd like to flash the rescue system on my emmc to update it, but I forget where that was documented?17:14
vkoskivI think i twas just setting some flag to enable writing and then dd?17:14
vagrantcbkeys: put an EFI boot partition on microSD or eMMC or USB17:14
joschvkoskiv: reform-flash-rescue17:14
vkoskivShould have guessed it :D17:14
bkeysSo Fedora has an EFI boot partition built into the image; essentially I copy that partition over to emmc?17:14
vagrantcbkeys: might work ... not super familiar17:15
vkoskivI'll do the flash when I'm not on a flaky train hotspot.17:16
bkeysOkay, I am serial console'd into the reform17:16
joschawesome :)17:17
bkeysSo gparted doesn't show mmc does it?17:17
vkoskivSpeaking of data, I was using my reform last night to clone some hard drives and it was behaving really weird. Slow transfers that often just stopped after a gigabyte or so.17:17
vkoskivI did the same on another laptop and it worked fine.17:18
vkoskivI was in a rush so I didn't investigate further. Any known issues with the usb ports or anything like that?17:19
minutevkoskiv: which usb port were you using? there are 2 on a hub and 1 direct17:25
minutethe one close to the HDMI port is direct17:25
joschis that documented in the handbook?17:26
- MajorBiscuit (QUIT: Quit: WeeChat 3.5) (~MajorBisc@wlan-145-94-166-231.wlan.tudelft.nl)17:26
vkoskivI tried them all17:26
vkoskivI can do more testing this weekend.17:26
vkoskivI do seem to recall the one next to the HDMI port was a bit faster17:26
minutemaybe power issue?17:26
vkoskivCould be placebo since I recall reading about it a while back17:26
vkoskivVery possible! What kind of current are these ports rated for?17:27
minutei have made huge transfers with usb sticks and didn't have this issue17:27
vkoskivI plugged in this SATA usb 3 adapter that powered a laptop sized SSD drive17:28
vkoskivI did get an external power supply for the bigger mechanical hard drive I was cloning.17:28
vkoskivThat one seemed to work fine.17:28
vkoskivI cloned the old drive onto the nvme and then from the file to the ssd17:29
vkoskivAnd that second step which would use more current from the port didn17:29
vkoskivdidn't work*17:29
minuteah yeah i had some issues with a usb sata ssd adapter before... could be power issue indeed. 17:30
minutethese things are kinda flaky sometimes17:30
vkoskivIt's called HARDware for a reason.17:30
bkeysIt'd be really cool to have edk2 on this thing17:32
minutewith the soquartz+rcm4 you have edk2 ^^^^17:32
bkeysWhen do you think that will be a thing?17:33
vagrantcare those adapter boards available yet?17:33
minuteoh wait actually there is edk2 for imx8m, from microsoft/nxp17:33
bkeysSee I know I.MX8 has decent 3D performance so I can live with less CPU performance17:33
minutevagrantc: they exist in my lab, but we don't sell 'em yet because i didn't have time for full validation... jacqueline also made one and is working on it 17:34
bkeys4GB of RAM can be a bottleneck, but I can do a swapfile on nvme17:34
minutebkeys: https://github.com/ms-iot/imx-iotcore17:34
vkoskiv19.7% packet loss on this train jouney. Not bad. (using the train public wifi)17:34
vkoskivs/jouney/journey17:34
bkeysminute: I will take a look once I get Fedora on here17:34
vagrantcminute: that's what i had thought ... you taunt us with your early access :) heh.17:34
bkeysRight now I am reinstalling KDE so I can run gparted and make a UEFI partition for the emmc17:34
minutevagrantc: if you have soldering skills you can download rcm4 ^^17:35
bkeysWhat is the 3D performance of soquarts versus the I.MX8?17:36
- chomwitt (QUIT: Ping timeout: 258 seconds) (~chomwitt@2a02:587:dc1f:5600:b0ac:64b:5946:8d06)17:36
minuteno idea17:36
minutei haven't got soquartz to run17:36
minutehttps://wiki.pine64.org/wiki/SOQuartz17:36
vagrantcminute: not myself, but i know a few people ... although would kind of like to get the original module working reasonably well first ... not that i've put much time into it17:36
minute> Mali-G52 2EE Bifrost GPU@800MHz17:36
minuteSupports 1600 Mpix/s fill rate when at 800MHz clock frequency17:37
minuteSupports 38.4 GLOP/s when at 800MHz clock frequency17:37
bkeysYou get opengl 3.2 which aint bad17:37
bkeysmore than I.mx817:37
vagrantc8GB of ram is pretty exciting17:37
minute> According to the i.MX8M reference manual, the GC7000lite at 800Mhz is capable of 1.6 Giga pixel/sec fill rate17:37
bkeysbut is that with etnaviv?17:38
minutebkeys: do you get gl 3.2 with mesa?17:38
bkeysnope17:38
bkeys2.0 I believe17:38
minutegles probably?17:38
minutei mean on bifrost17:38
minutewith panfrost17:38
minutedon't they have vulkan now?17:39
bkeysthis pinebook pro has panfrost on it17:39
bkeysthey are working on it last I heard17:39
minutehttps://www.collabora.com/news-and-blog/blog/2021/06/11/open-source-opengl-es-3.1-on-mali-gpus-with-panfrost/17:39
bkeysI got 3.1 on here17:39
minutereads like gles 3.1 to me, and that was 1 year ago17:39
minutebkeys: aha! so that's better than etnaviv which is at 2.017:40
bkeysYeah, I plan on getting an adapter board if it means 3.1 and possible edk217:40
minutehttps://www.phoronix.com/scan.php?page=news_item&px=PanVK-Lands-In-Mesa17:40
bkeysjosch: So gparted says the entire emmc is filled with MNTRESCUE; but not all 16 gigs are being used, I take it I am safe to shrink the partition17:55
minutewhy would you want to shrink it?17:57
bkeysTo make room for EFI partition17:57
minuteah18:03
bkeysSo I have the EFI partition on the mmcblk0p2 partition, I am trying to figure out how to mount it on uboot18:12
bkeysI found the grub.efi file that I believe I will have to load18:12
bkeysI do ls mmc 0:2 and I can see inside the partition18:13
bkeysI want to look inside of the EFI folder within it though, how do I do that?18:13
bkeysls mmc 0:2 EFI18:14
- cinap_lenwerk (PART: !!unknown attribute: msg!!) (~cinap_len@232.red-83-48-121.staticip.rima-tde.net)18:19
- bkeys (QUIT: Ping timeout: 256 seconds) (~Thunderbi@static-198-54-135-69.cust.tzulo.com)18:29
- mjw (QUIT: Killed (NickServ (GHOST command used by mark_!~mark@gnu.wildebeest.org))) (~mjw_@2001:1c06:2488:1400:9e5c:8eff:fe8f:a440)18:36
* mark_ -> mjw18:36
+ wielaard (~mjw_@2001:1c06:2488:1400:9e5c:8eff:fe8f:a440)18:36
+ bkeys (~Thunderbi@static-198-54-135-69.cust.tzulo.com)18:38
bkeysminute, josch: So there is a BOOTAA64.EFI file in the EFI partition, how do I tell uboot that is the file I want to boot efi from?18:39
+ mlarkin (~mlarkin@047-048-086-214.biz.spectrum.com)18:52
bkeysOkay guys, I got a grub command line!18:55
- bkeys (QUIT: Remote host closed the connection) (~Thunderbi@static-198-54-135-69.cust.tzulo.com)19:02
+ bkeys (~Thunderbi@static-198-54-135-69.cust.tzulo.com)19:03
minutebkeys: great!19:04
minutebkeys: how did you do it?19:04
bkeysSo I wrote the mainline Fedora image to my nvme drive, then I found this19:04
bkeyshttps://u-boot.readthedocs.io/en/latest/develop/uefi/uefi.html19:04
bkeysI loaded the grubaa64.efi just like it told me, I had to adjust the variable names, like we don't use kernel_addr_r on the reform, it's just loadaddr19:05
bkeysSo once I specified that as well as the device tree included with your system image, I simply ran bootefi and I got a grub prompt19:05
minuteneat, and grub already shows fedora?19:05
bkeysOnce I figure this out end to end i will document this and post a guide on the community forums19:05
bkeysNo, I need help with this19:06
minuteah, grub prompt, not menu, right19:06
bkeysI got a grub command prompt19:06
bkeysNo menu on the screen or on serial console no19:06
minuteunfortunately i don't know much about grub19:06
bkeysvmlinuz wasn't showing up, so my guess is I had the EFI partition mounted, but not the boot partition19:06
bkeysMe neither19:06
bkeysBut it should "just work"19:06
bkeysIt's not getting a kernel, which makes sense19:06
minuteIIRC grub needs to load a bunch of modules to have any functionality, and a cfg to show a menu19:07
bkeysI have learned a lot about uboot, if I can get mainline Fedora on here like this I can do it on anything19:07
bkeysYes and the Fedora image shows those files, I just have to present those files to grub from uboot somehow19:07
minutei see19:07
bkeysBut if I can get this working it should be the same on other mainline distros; and hopefully the community can branch out from the system image19:08
bkeysBut first things first I gotta figure this out19:08
bkeysI believe the grub.cfg file will be presented to grub via the bootargs19:09
- vagrantc (QUIT: Quit: leaving) (~vagrant@2600:3c01:e000:21:7:77:0:20)19:14
+ vagrantc (~vagrant@2600:3c01:e000:21:7:77:0:40)19:20
bkeysminute: I am gonna go into the fedora-arm-installer source code and see what it does on ARM boards19:26
joschbkeys: this is awesome news! Please keep us posted. :)19:34
bkeysYeah, how I see it is if we can get more mainline distro images booting on here (given they work well) then it might take some load off of y'all19:34
bkeysI just wish I knew what the bootargs variable was for other systems19:35
bkeysI actually have an SBC that already runs mainline Fedora and uses uboot; I could bring it over here and see what it does19:35
joschif I'm reading include/config_distro_bootcmd.h correctly, then https://source.mnt.re/reform/reform-boundary-uboot/-/merge_requests/6 it also runs bootefi, so maybe this MR will make efi boot work already automatically19:41
bkeysI changed the bootcmd to automatically go to the grub command line, but it doesn't persist despite me running saveenv, does anyone know why that might be?19:42
bkeysMaybe you guys can answer that question, I'm gonna go out to my lab and get the SBC that already runs grub so I can see what it does19:45
bkeysWell this thing has a lot more in it's env than the reform that's for sure19:53
bkeysjosch, minute: Do y'all wannna take a look at the printenv for this other SBC?19:54
bkeysI am making some sense of it, I can tell a lot of it has nothing to do with EFI19:54
joschbkeys: sure, if you copypaste it somewhere19:55
joschbkeys: but vagrantc can probably make more sense of it than I can :D19:55
bkeysBooting /efi\boot\bootaa64.efi19:59
bkeysI saw that line, that's relevant19:59
bkeysThat is when it was booting19:59
bkeysThat lets me know what EFI file I need to boot19:59
bkeysjosch, minute, vagrantc: https://paste.centos.org/view/2e66b62420:03
bkeysHere is the printenv of my Khadas VIM3 it runs mainline Fedora with grub EFI using uboot20:03
joschbkeys: yes, that's distro_bootcmd stuff, so that's exactly what https://source.mnt.re/reform/reform-boundary-uboot/-/merge_requests/6 is implementing.20:03
bkeysOkay so I probably wanna use this branch20:04
bkeysIs there a build artifact I can flash to my emmc?20:05
minutejosch: is that safe to merge?20:05
bkeysI mean I am definitely willing to test it if someone has an image to share with me20:05
joschbkeys: you can just switch to that branch and rebuild to try it out20:06
bkeysYeah I just figure I got my reform kinda taken apart and such; but I can build it20:06
bkeysI'll just SSH into it20:06
joschminute: it is, because the reform-system-image script uses a fixed tag on that repo, so even after merging it, it will not automatically end up in the images we create20:06
joschminute: i think the other consumer of that repo is sigrid with void linux but i think sigrid also uses a fixed tag?20:07
sigridyep, I use a tag20:09
bkeyssigrid: So on Void Linux are you setting up Grub EFI?20:11
sigridnope. I use u-boot20:17
sigrid(without efi)20:17
bkeysjosch: Okay I cloned your repo and am trying to build off the distro_bootcmd branch20:19
bkeysOkay I had to do make menuconfig (I never built uboot from source before), josch, do I have to change anything?20:20
joschyou don't need to do menuconfig20:20
joschbkeys: https://community.mnt.re/t/uboot-build-fails-due-to-build-flags/1002/220:20
bkeysNow do I need to build this, or is it available as an artifact from your pull request?20:21
joschbkeys: it will only be available as an artifact after lukas merged my MR20:23
joschbut building is simple, just apt install the packages and run those two commands from that post20:23
bkeysWhere is flash.bin located?20:25
bkeysThe make command finished20:25
bkeysAh, had a few missing packages20:30
bkeysOkay josch, I dd this flash.bin file to /dev/mmcblk0boot0  or something like that, right?20:30
joschflash.bin is in your current directory20:31
joschyou flash it to your sd-card like this:20:31
joschdd if=flash.bin of=/dev/mmcblk0 conv=notrunc bs=1k seek=3320:32
joschflashing to emmc is a bit more tricky, you first need to run:20:32
joschecho 0 > /sys/class/block/mmcblk0boot0/force_ro20:32
joschand then:20:33
joschdd if=/boot/flash.bin of=/dev/mmcblk0boot0 bs=1024 seek=3320:33
joschand then lock it again:20:33
joschecho 1 > /sys/class/block/mmcblk0boot0/force_ro20:33
joschduring development, I'd do everything from the sd-card first and migrate to emmc or nvme once stuff starts working20:33
joschoperating the dip switch or writing to emmc is just more painful than swapping the sd-card20:33
bkeysYeah I borked the install on the emmc, time to revert to SD card20:35
vkoskivreform-boot-config says it can't find /dev/nvme0n1p120:40
vkoskivI did set ROOTPART20:40
minutei just merged20:41
bkeysHow long will it take flash.bin to show up as a build artifact minute? It'd be nice to not have to build it again20:44
joschbkeys: https://source.mnt.re/reform/reform-boundary-uboot/-/jobs/809/artifacts/browse20:46
erlejosch minute so artifacts are only generated for merged stuff and not for branches?20:49
joscherle: yes, the ci is set up such that only the reform projects are run with it20:50
bkeysUgh, now I am failing to boot, it doesn't see mmcblk0p120:54
kfxI wish u-boot would boot off the sd card if present and fall back to the emmc :(20:55
vkoskivHow do I configure the ROOTPART to point to my encrypted + LVM volume?21:01
vkoskivI tried it, flipped the switch but I ended up in the emmc rescue system21:02
vkoskivIt didn't even ask me to unlock the drive21:02
vkoskivI set up the thing with the reform-setup-encrypted-nvme script21:03
bkeysjosch: So I flashed flash.bin to the front of the SD card, booted from it and I still don't have any distroboot stuffo n here21:04
bkeysThen again ithas my changes on here I was trying to save earlier???21:05
joschkfx: that's exactly what our u-boot does21:09
joschvkoskiv: can i come back to you later? i have my baby sleeping on my right now XD21:10
vkoskivYeah absolutely no hurry21:10
vkoskivI'm going to be messing with this thing all weekend :D21:10
joschbkeys: that sounds like it's not using u-boot from your sd-card but from emmc21:10
bkeysLet me take off the heatsink and check...21:11
bkeysThe switch is turned towards ON josch21:14
kfxjosch: the flash.bin from job 809 is configured for emmc use, and will do sdcard -> emmc boot order?21:16
kfxworth a try21:17
minuteON means SD card.21:18
joschkfx: this is what this line is supposed to do: https://source.mnt.re/reform/reform-boundary-uboot/-/commit/2dd6c0e7e2ee54784169d68933ab5b2e44881585#fee690d794fc086e909bc80b182c8942ac1fbe9d_179_17921:21
joschif it doesn't try sdcard first, then that's a bug i will fix21:21
kfxroger21:22
kfx will report results21:22
bkeysIndeed it is reading the uboot from the emmc21:25
bkeysLet me take the heatsink back off21:25
- Christoph_ (QUIT: Remote host closed the connection) (~Christoph@p54bf61d7.dip0.t-ipconnect.de)21:27
+ Christoph_ (~Christoph@p54bf61d7.dip0.t-ipconnect.de)21:30
vkoskivI ran ROOTPART=/dev/reformvg/root reform-boot-config --emmc emmc21:52
vkoskivTo try and get this to boot from my nvme21:52
vkoskivFlipped the switch to OFF and now the emmc doesn't even boot anymore21:52
vkoskivI must have messed it up somehow21:52
vkoskivApparently the switch is on, it's trying the sd card...21:54
vkoskivHuh, I did flip it. It's OFF but it's still trying the sd21:55
minutewhat do you mean by "it is trying"21:56
minutethe switch tells the imx to load uboot from emmc or sd21:56
vkoskivI flipped the switch to OFF, it wouldn't boot, I put an SD in and it booted from there22:00
vkoskivI now messed with the switch, trying again22:00
vkoskivYeah something is weird, it's still expecting an SD card even though the switch is off22:02
kfxjosch: I'm guessing this is not desired output from that flash.bin  http://sciops.net/paste/1654891315.cb36eecb22:02
vkoskivI *think* it's supposed to use the emmc when the switch is off.22:04
vkoskivThat's the way it was before.22:04
vkoskivI might have mixed it up though. The docs don't say which setting is which22:05
kfxvkoskiv: minute said "on means sd card" earlier22:06
vkoskivAh. Well, on mine it tries the SD card also when it's set to OFF22:07
vkoskivYeah looks like both on or off it is booting from the SD card22:08
vkoskivI'm suspecting a hardware fault in the switch22:09
minutemaybe the emmc bootloader is invalid and it falls back to sd?22:12
vkoskivOh, that would be more likely if that's possible22:12
minutedid you change the bootconfig dip switches perhaps?22:12
vkoskivDepends on where those are located22:12
vkoskivI've only touched the one on the SoM22:12
minuteon the motherboard22:12
minuteok22:12
minutemight be a fallback then22:12
minuteI haven't tried to nuke the emmc bootloader myself to see what happens22:12
vkoskivWhat I want is for this to boot from my luks+lvm nvme ssd without the sd card installed22:12
vkoskivI didn't know it would do a fallback, so a software problem seems more likely22:13
minutei think for that to work you need to flash v3 rescue image to emmc22:13
vkoskivNot sure how to go about fixing this now22:13
vkoskivI did that earlier and it booted fine22:13
vkoskivThen I did something and it stopped booting22:13
vkoskivI'll try reflashing it22:13
minuteso... flash it back again22:13
minuteyeah22:13
+ chomwitt (~chomwitt@2a02:587:dc1f:5600:518c:c264:c8fd:1f6b)22:15
vkoskivthe flash script spits a warnin: target 'reform_crypt' not found in /etc/crypttab22:15
vkoskivNot sure if that's a problem22:15
minutewhich flash script?22:16
vkoskivreform-flash-rescue, I think?22:17
vkoskivemmc boots again!22:17
vkoskivBut yeah I now want it to use my luks+lvm nvme instead of kicking me to the recovery img22:18
minuteok, i'm not sure how that works with v3, as i haven't tried it myself22:18
minutei personally boot from sd->encrypted nvme22:19
vkoskivYeah that's what I've been using and that works nicely22:19
vkoskivMaybe it's preferable22:19
minutenot sure what's different @ emmc boot process 22:20
vkoskivI just thought I don't want the SD card sitting there for every boot22:20
minuteyeah, i mean what is technically different that would cause it to not work22:22
minuteanyway i'm pretty exhausted from the week, gonna chill out a bit22:22
vkoskivYeah, have a fun weekend!22:24
vkoskivI know I will, this thing is very cool :D22:24
- vagrantc (QUIT: Quit: leaving) (~vagrant@2600:3c01:e000:21:7:77:0:40)22:27
minutei have a prototype trackball (rp2040 based) with white switches, the clicking is frankly addictive22:45
vkoskivI like the CLACK these brown ones make too :D22:47
vkoskivI get this sometimes when booting and in dmesg:22:47
vkoskivnvme nvme0: I/O 54 QID 1 timeout, completion polled22:47
vkoskivNot sure I understand what that means22:48
vkoskivI'm using an Intel 600p in here.22:48
vkoskivSeems to work fine.22:48
vkoskivAlso - Anyone here set up TRIM? is that even a thing anymore?22:50
kfxtrim works normally for me, just set the discard option on your luks device and also in the filesystem mount options22:52
kfxI don't know the systemd magic for it; I use it with alpine linux22:52
minutei read once that discard shouldn't be used nowadays?22:53
vkoskivminute: *hint hint* reform merch pls22:54
vkoskivI'd wear the heck out of a black shirt with a white MNT logo :D22:54
vkoskivs/reform merch/MNT merch22:54
minuteyes, we're gonna launch some merch :322:56
kfxminute: that's urban legend junk from the arch wiki.  zomg speed haxors don't like continuous trim; they prefer to let a systemd service schedule it during lower-load moments22:56
kfxthere's no meaningful difference, really, it's just another thing that systemd has declared it should be in charge of because we peons aren't smart enough 22:56
minuteok22:56
kfxto be honest, because debian is systemd-based it's probably much simpler to just `systemctl enable fstrim.timer` than going through the trouble of setting up continuous trim22:58
joschkfx: yes, this is not the u-boot output that i got when i tried it23:00
joschvkoskiv: so, after flashing a recent sysimage-v3 onto an sd-card you want to run the following commands to set up booting from encrypted nvme:23:04
joschreform-setup-encrypted-nvme23:04
joschif you answer y at the second prompt, then this will also call reform-migrate for you which in turn will also call reform-boot-config with the right argument23:05
vkoskivI did this part, I'm running off the nvme + sd at the moment23:05
joschafter this is done, reboot and confirm that this setup is working and successfully boots your encrypted system on nvme23:05
joschgood23:05
joschsecond step is setting up booting from emmc instead of sd23:05
joschfor that, you first run reform-flash-rescue so that your emmc contains an up-to-date sysimage-v323:06
vkoskivI did that and verified that it's now v323:07
joschgood23:07
joschthen, lastly you run:23:07
joschROOTPART="/dev/reformvg/root" reform-boot-config --emmc sd23:08
vkoskivHuh, I've put the last arg as emmc this whole time :D23:08
joschthis will configure the boot partion on emmc such that it will boot from nvme23:08
joschthe last arg is ignored23:08
vkoskivI'll try this23:08
joschso putting emmc there doesn't change its behviour23:08
joschthe last arg is a shortcut to setting ROOTPART to some default values23:09
joschif that doesn't work, i need more information about the things that do happen for you after running all of these commands23:09
vkoskivrunning now23:09
vkoskivThen flip the switch right?23:10
vkoskivIs 'systemctl poweroff' the recommended way to shut down? It doesn't seem to shut down programs gracefully23:10
vkoskivWeird. The circle key stopped working23:13
joschvkoskiv: you have to press it for longer than a second for the menu to show up23:14
vkoskivI know.23:14
vkoskivHolding it for 30+ sec, nothing.23:14
_Ebkeys: glad someone's taking the time to do it The Right Way™ rather than using my workarounds23:15
joschvkoskiv: maybe you are hit by this: https://community.mnt.re/t/power-issues-and-lpc-wakeup/59623:15
vkoskivdisconnect+reconnect of batteries fixed it23:16
vkoskivI'm fairly certain the lpc+kbd firmware need flashing23:16
vkoskivHaven't goetten to that yet23:16
vkoskivLooks like it won't boot from emmc now.23:16
vkoskivSo something got messed up there again23:17
vkoskivSame as last time when I tried to get this working23:17
vkoskivSoM switch is OFF, and it does nothing when I boot23:18
vkoskivIf I stick in an SD card, it boots fine from there.23:18
joschvkoskiv: can you connect to your reform via serial and see if at least u-boot loads?23:19
vkoskivI don't think I have the right hardware23:20
vkoskivI have a random DB9 usb serial thing23:20
vkoskivI'll need an adapter I guess?23:20
joschdb9 sounds like rs232 and that's the wrong thing23:21
vkoskivYeah it's rs23223:21
joschmore precisely you need some usb->ttl adapter at 3.3 V signal level23:22
vkoskivI also have this random guruplug jtag board with rs232 and uart :D23:23
vkoskivAnd jtag, of course.23:23
vkoskivI'm happy booting with the SD for now. I think I'll go about flashing the LPC, keyboard and maybe trackball firmware23:24
vkoskivSince I'd like to work on improving those anyway23:24
joschyou can try another thing23:28
joschyou can take an empty sd card (just zero the partition table) and just flash u-boot onto it23:28
joschu-boot should first try booting from sd-card (and fail) and then try emmc (and succeeds because you ran reform-boot-config --emmc earlier)23:29
joschsince you only have u-boot on that sd-card and not kernel nor initrd, you can remove the sd-card immediately after u-boot loaded the kernel23:29
joschthis means you can "boot from sd" but still have a usable sd-card slot during normal operation23:29
joschyou'd then have u-boot on an sd-card, kernel+initrd on emmc and rootfs on nvme23:30

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