2023-01-19.log

minutei will try bluerise's patch00:00
cinap_lenrekyeah00:00
sigridcinap_lenrek: where does it allocate the fb in your patch?00:00
cinap_lenreki might have filled the struct wrong00:00
sigridie to the top of memory00:00
cinap_lenreksigrid: MAGIC!00:00
sigridlike there is memalign00:01
cinap_lenreksigrid: with CONFIG_LCD, the fb is allocated by board_f.c00:01
cinap_lenrekvery early00:01
cinap_lenrekit just sets gd->fb_base to CONFIG_FB_ADDR00:01
sigrid:( why memalign then?00:01
cinap_lenrekand i arrange CONFIG_SYS_MEM_TOP_HIDE to exclude the framebuffer00:01
sigridanyway this api is weird af00:01
cinap_lenreksigrid: lcdif checks if gd->fb_base is NULL00:02
cinap_lenrekif its NULL, it allocates00:02
sigridah ok00:02
cinap_lenrekif not, it uses it00:02
sigridso without config_lcd it will still work. got it00:02
cinap_lenreknote, this is from looking at other drivers00:02
cinap_lenrekto see what they do00:02
cinap_lenrekthey do the same00:02
cinap_lenrekso i ASSUMED this is a valid approach00:03
cinap_lenreksigrid: correct.00:03
cinap_lenrekit is #ifdef mazed.00:03
cinap_lenrekits a bit stupid00:03
cinap_lenrekall i want is the CONFIG_FB_SIMPLE thing00:03
cinap_lenrekbut that depends on CONFIG_LCD00:03
cinap_lenrekso i made that happy00:03
minuterebuilding.00:04
cinap_lenrekminute: get a usbsdmux :)00:04
cinap_lenrekhttps://www.linux-automation.com/en/products/usb-sd-mux.html00:06
cinap_lenrekphantastic device.00:06
minutewell, i only have reform atm00:10
minutenot true, also pocket 00:11
cinap_lenrekyou need *TWO* reforms! :)00:11
cinap_lenrektwo reforms at the same time!00:11
minutewell anyway, openbsd gives me a black screen now. maybe the pcie issue?00:11
cinap_lenrekanything on serial?00:11
minuteno serial here on the sofa00:11
minuteat home00:12
minute(yet)00:12
cinap_lenrekauf dem sofa zuhause, ja. hab ich alles da, ja00:12
minutebluerise: did you need to disable pcie in the dtb to see anything on screen? can you upload your working dtb?00:12
minutecinap_lenrek: lol00:12
minutedas problem ist das system00:12
cinap_lenrek:D00:13
cinap_lenrekbluerise → + return fdt_setup_simplefb_node(blob, off, gd->fb_base, imx_lcdif.winSizeX,00:19
cinap_lenrekbluerise → + imx_lcdif.winSizeY, imx_lcdif.winSizeX * (1 << imx_lcdif.gdfBytesPP) / 8,00:19
cinap_lenrekthis is wrong00:19
sigridbluerise fixed it00:20
blueriseyes, I changed the diff00:20
cinap_lenreksorry00:20
cinap_lenrekokay!00:20
+ robin (~robin@user/terpri)00:20
sigridsee https://mastodon.social/@mntmn/10971263246511742500:20
cinap_lenrekokay!00:20
blueriseand http://ix.io/4lCn00:20
bluerisename was also wrong00:20
bluerise(the xr8 whatever)00:20
cinap_lenrekfu king hell00:20
cinap_lenrekYES!00:20
cinap_lenrekopenbsd aufm sofa!00:21
minuteyess00:21
blueriseTold you so :P00:21
minutei also forgot to do > set tty fb0 00:21
minutein the openbsd boot prompt. just for the record00:21
blueriseI rebased and updated my u-boot mainline reform2 branch00:22
minuteoh00:22
bluerisebut pcie doesn't work, hmhm00:22
cinap_lenrekbut usb works?00:22
bluerisescanning bus usb@38100000 for devices... 5 USB Device(s) found00:23
bluerisescanning bus usb@38200000 for devices... cannot reset port 1!?00:23
bluerise2 USB Device(s) found00:23
bluerise       scanning usb for storage devices... 1 Storage Device(s) found00:23
blueriselooks like00:23
cinap_lenreki mean in obsd00:23
cinap_lenrekit looks like it00:24
bluerisein openbsd? usually, yeah, but my boot disk is on nvme, so without NVMe support I cannot boot from my disk :D00:24
bluerisealso, you can see the uhubs00:24
cinap_lenrekyeah00:24
bluerisethe trackpad and keyboard 00:24
cinap_lenrekvery nice00:24
cinap_lenrekbluerise: NFS!!!00:24
blueriseminute: accessing the 'dbi base' on the pcie controller hangs. either the power isn't on, or the clocks are wrong, or they have some MMU setting that stops me from using writel, heh00:25
cinap_lenrekisnt here a patch for uboot to make nvme boot work?00:26
minutebluerise: but it's not the refclk issue?00:28
minutebluerise: linux normally hangs if internal refclk is not configured for the first pcie 00:29
minutebtw i successfully booted to the OpenBSD installation program00:29
blueriseI have pcie0 disabled, pcie1 enabled00:29
minuteoh, shell00:30
minutebluerise: oh ok00:30
minutebluerise: then idk :/ if you can't write, it's normally some AXI thing that doesn't have a clock yeah00:30
minuteor power gated yeah00:30
cinap_lenrekman00:31
cinap_lenrekcan you use the memory commands in uboot to write the regs?00:31
blueriseminute: pcie1 is not using internal refclk?00:31
cinap_lenreki added some special commands to uboot on ppc to just do writes in virtual memory00:31
minutebluerise: no00:31
cinap_lenrekwe could just flip the bit00:31
blueriseaha!00:32
minutebluerise: it uses an external refclk that comes from a chip on the reform mb00:32
blueriseah00:32
bluerisewait I'm already doing that right, damnit00:32
minute(which is always enabled)00:32
blueriseyeah it does00:32
minutefun, i have an openbsd shell. not sure what to do in it though lol00:33
minutethere's no "top"00:33
eery[m]Well, an upside to breaking everything is I found out the latest sysimage kernel fixes a gpu bug I'd been running into00:33
minuteeery[m]: cool00:34
eery[m]I'm using wayfire and by faking GLES 3 compatibility I got the zoom plugin to work00:34
eery[m]So I've been using it to play games at lower resolutions but scaled up full screen00:35
eery[m]Before it would lock up the gpu whenever a window tried to capture the mouse pointer, now it doesn't00:35
minutewow ok00:38
eery[m]Is there a better way to use gles 3 calls like glBlitFramebuffer without setting the version override env variable? I just want that one bit of gles 3 00:39
bluerisehuh, I got a ticket for the fusion festival00:42
cinap_lenrek;_;00:42
blueriseminute: it's a miniroot00:42
blueriseminute: only supposed to be used to install a regular image00:42
minutebluerise: guess i need a real root00:45
blueriseyou can install onto a usb stick maybe?00:46
blueriseor on the sd card00:46
cinap_lenrekdoes the fec work?00:47
blueriseused to :)00:47
minuteok. in any case, this is super cool00:49
minutethank you bluerise cinap_lenrek sigrid00:49
cinap_lenrekno, thank YOU! :)00:50
minutei'm gonna watch elementary and go to sleep and tinker with this more in the next days00:50
minutei also got a riscos binary but it doesn't display anything yet ^^00:50
cinap_lenrekminute: for sure, some of the safeguards could be thought over now00:50
cinap_lenrek(now that we have a interactive console)00:50
minutein general i think defaulting to emmc in the future would be good00:51
sigriddoes riscos support ext4?00:52
minuteand it can autoboot sd card, which is great 00:52
cinap_lenrekpocoapoco00:52
minutehmm http://splodge.fluff.org/~phil/risc-os/index.html00:53
cinap_lenrekyeah, it might be a good idea to relayout the "rescue" image00:53
minute> IscaFS is a read-only implementation of the ext2 filesystem, as a RISC OS module written in ARM assembly language00:53
cinap_lenrekand have a little fat partition to put kernels for other os and stuff00:53
cinap_lenrekkernels and configs00:53
minutecinap_lenrek: yeah00:53
minuteall the kernels00:53
- mtm (QUIT: Ping timeout: 272 seconds) (~mtm@c-71-228-84-213.hsd1.fl.comcast.net)01:03
- S0rin (QUIT: Ping timeout: 256 seconds) (~S0rin@user/s0rin)01:06
+ S0rin (~S0rin@user/s0rin)01:17
+ bgs (~bgs@212-85-160-171.dynamic.telemach.net)01:41
- bkeys (QUIT: Ping timeout: 256 seconds) (~Thunderbi@static-198-54-135-69.cust.tzulo.com)01:48
- vagrantc (QUIT: Quit: leaving) (~vagrant@2600:3c01:e000:21:7:77:0:20)02:44
+ bkeys (~Thunderbi@static-198-54-135-69.cust.tzulo.com)02:53
- bkeys (QUIT: Ping timeout: 272 seconds) (~Thunderbi@static-198-54-135-69.cust.tzulo.com)03:05
+ mtm (~mtm@c-71-228-84-213.hsd1.fl.comcast.net)03:08
+ XYZ (~XYZ@89.24.58.41)03:21
- XYZ (QUIT: Remote host closed the connection) (~XYZ@89.24.58.41)03:26
+ XYZ (~XYZ@89-24-58-41.nat.epc.tmcz.cz)03:27
- XYZ (QUIT: Remote host closed the connection) (~XYZ@89-24-58-41.nat.epc.tmcz.cz)03:33
- Guest2700 (QUIT: Ping timeout: 260 seconds) (~nicolas@8-49-142-46.pool.kielnet.net)03:38
+ nsc (~nicolas@177-48-142-46.pool.kielnet.net)03:40
* nsc -> Guest104803:41
+ bkeys (~Thunderbi@static-198-54-135-69.cust.tzulo.com)03:47
- S0rin (QUIT: Ping timeout: 256 seconds) (~S0rin@user/s0rin)04:34
+ S0rin (~S0rin@user/s0rin)04:42
- S0rin (QUIT: Ping timeout: 256 seconds) (~S0rin@user/s0rin)04:48
+ S0rin (~S0rin@user/s0rin)05:19
- S0rin (QUIT: Ping timeout: 256 seconds) (~S0rin@user/s0rin)05:24
+ S0rin (~S0rin@user/s0rin)05:26
- S0rin (QUIT: Ping timeout: 256 seconds) (~S0rin@user/s0rin)05:32
+ S0rin (~S0rin@user/s0rin)05:36
- robin (QUIT: Remote host closed the connection) (~robin@user/terpri)05:44
+ robin (~robin@user/terpri)05:58
- S0rin (QUIT: Ping timeout: 272 seconds) (~S0rin@user/s0rin)07:11
+ S0rin (~S0rin@user/s0rin)07:13
- bgs (QUIT: Remote host closed the connection) (~bgs@212-85-160-171.dynamic.telemach.net)07:33
- GNUmoon (QUIT: Remote host closed the connection) (~GNUmoon@gateway/tor-sasl/gnumoon)09:46
+ GNUmoon (~GNUmoon@gateway/tor-sasl/gnumoon)09:47
+ pandora[m] (~pandorami@2001:470:69fc:105::2:b5e8)10:23
+ pandora (uid585533@id-585533.ilkley.irccloud.com)10:24
- GNUmoon (QUIT: Remote host closed the connection) (~GNUmoon@gateway/tor-sasl/gnumoon)11:04
+ GNUmoon (~GNUmoon@gateway/tor-sasl/gnumoon)11:05
+ klardotsh__ (~klardotsh@172.56.105.110)11:47
- klardotsh_ (QUIT: Ping timeout: 272 seconds) (~klardotsh@172.56.105.8)11:50
- mtm (QUIT: Ping timeout: 252 seconds) (~mtm@c-71-228-84-213.hsd1.fl.comcast.net)13:04
minuteblurise FYI i've applied your patch to the repo https://source.mnt.re/reform/reform-boundary-uboot/-/commit/f32b8ab1dc2e73ba83f80ca95d4b8c4c64e3a66c13:17
minutebluerise, that is13:17
bluerise:)13:21
minutei collected the instructions here https://community.mnt.re/t/any-news-on-openbsd/646/713:33
minutei guess we could easily make a custom image with uboot included13:33
minutefor people who have still set their boot switch to SD13:33
minuteor for distroboot, we can probably modify the script on the image?13:34
vkoskivHow stable is the new u-boot stuff now? Should I try to flash my bootloader now or wait a bit longer?13:40
joschvkoskiv: i think the current u-boot is a superset of the features of the old u-boot. If your old u-boot was able to boot your system, the new one will be able to as well. Plus, you get more features like distroboot, display and usb-keyboard.13:43
vkoskivYeah, mostly just after the display/keyboard stuff :D13:44
vkoskivI was just observing the discussion as it was being built and wondered if all the bugs were ironed out13:44
vkoskivGiven that lukas just posted and it seems to have been merged to the main reform uboot repo, I'll assume it's good to flash now :D13:45
vkoskivWill report back once I have it done13:45
joschbeing able to immediately see that something is happening after pressing the power button is amazing :D13:47
* wielaard -> mjw13:51
vkoskivIs the bin file spl/u-boot-spl.bin?14:01
joschvkoskiv: no, flash.bin14:01
vkoskivI didn't get a flash.bin in my build14:01
joschsudo dd if=flash.bin of=/dev/mmcblk1 conv=notrunc bs=1k seek=3314:02
joschvkoskiv: which commands did you run?14:02
vkoskivcp mntreform-config .config && time ./build.sh14:02
joschand that exited successfully? because build.sh says "make flash.bin"14:03
joschif make was not able to create flash.bin then you should've gotten an error14:03
vkoskivAh, there was an error at some point I bet14:03
joschmaybe run without -j to see it better14:03
vkoskivsh: 1: dtc: not found14:03
joschapt-get --yes install --no-install-recommends gcc-aarch64-linux-gnu build-essential bison flex device-tree-compiler14:03
joschvkoskiv: you can look into .gitlab-ci.yml for the required build steps starting from a clean chroot14:04
vkoskivYeah I was just missing the device tree compiler14:04
vkoskivflash bin got!14:05
vkoskivHm, root isn't allowed to toggle the force_ro on mmcblk0boot014:06
joschvkoskiv: you are flashing it to emmc?14:07
vkoskivHm, sudo is messing it up somehow14:07
vkoskivIf I su to root, then it allows me14:07
vkoskivYeah, emmc14:07
joschvkoskiv: what is the command you run?14:08
vkoskivIt worked now14:08
vkoskivJust echo 0 to the force_ro under sys class14:08
joschvkoskiv: that will just execute echo as root14:08
joschvkoskiv: but the redirect is done by your shell which is not root14:08
vkoskivYeah, I figured it was something like that14:09
joschusually you use tee if you do not want to run "su" first14:09
joschecho foobar | sudo /sys/... >/dev/null14:09
joschecho foobar | sudo tee /sys/... >/dev/null14:09
vkoskivWorked! u-boot shows up now with a cool Reform logo14:10
joschnice!! :D14:10
joschhuh... the community.mnt.re forum software does not let me edit my posts??14:17
joschthe "edit this post" button is just missing from some of my posts -- why?14:18
blueriseminute: the DTB you're shipping with linux is not really close to mainline linux, right?14:49
bluerisebecause my OpenBSD work has always been to follow mainline closely14:49
bluerisefor pcie for instance that wasn't always possible because that was never properly upstreamed14:49
bluerisealso I'd like to follow U-Boot mainline closely, as they pull their DTBs from linux with only minor changes14:50
blueriseso then you can have a U-Boot that provides a mainline dtb, which is nice14:50
bluerisetherefore my eagerness to work on upstreaming U-Boot14:51
blueriseI think I could send out another patch to u-boot later today14:51
blueriseand still need to fix whatever is broken with pcie after the update :(14:51
+ mtm (~mtm@c-71-228-84-213.hsd1.fl.comcast.net)15:10
sknebelin Germany there's also the option to register as "Selbstverzoller" which means the postal service won't take over at the customs office - and not bill you fees for doing so. means you need to go to the customs office yourself - so only makes sense if thats easy to reach for you15:19
sknebelwops, wrong channel16:04
+ vagrantc (~vagrant@2600:3c01:e000:21:7:77:0:20)17:21
+ bgs (~bgs@212-85-160-171.dynamic.telemach.net)17:46
- vagrantc (QUIT: Quit: leaving) (~vagrant@2600:3c01:e000:21:7:77:0:20)18:45
joschLinux reform 6.1.0-reform2-arm64 #1 SMP Debian 6.1.7-1+reform20230119T115832Z1 (2023-01-19) aarch64 GNU/Linux19:20
joschACTION just manually re-triggered the reform-debian-packages pipeline -- lets hope things succeed now!19:20
+ bkeys1 (~Thunderbi@157.201.98.1)19:22
+ ajr (~ajr@user/ajr)19:26
- bkeys1 (QUIT: Ping timeout: 256 seconds) (~Thunderbi@157.201.98.1)19:27
+ bkeys1 (~Thunderbi@157.201.98.1)19:33
- bkeys1 (QUIT: Quit: With every step we take, danger will follow closely) (~Thunderbi@157.201.98.1)19:55
joschaaaand another cross-build bug of the linux packaging...21:05
sigrid:(21:07
sigridmaybe qemu-user chroot would be easier21:07
- mjw (QUIT: Killed (NickServ (GHOST command used by markw!~wielaard@gnu.wildebeest.org))) (~mjw_@2001:1c06:2488:1400:4fd:39a7:74ac:7bae)21:10
+ wielaard (~mjw_@2001:1c06:2488:1400:4fd:39a7:74ac:7bae)21:11
- arminweigl (QUIT: Ping timeout: 246 seconds) (~arminweig@sourcehut/user/arminweigl)21:14
+ arminweigl (~arminweig@sourcehut/user/arminweigl)21:15
- ajr (QUIT: Ping timeout: 260 seconds) (~ajr@user/ajr)21:19
+ jackhill (~jackhill@kalessin.dragonsnail.net)21:23
joschit builds fine natively on the reform21:37
joschthis is about building it on the source.mnt.re ci :)21:37
joschand this worked in the past, so this is just a regression that needs to be fixed21:38
joschif i just use qemu, then others will run into the problem instead21:38
- Ar|stote|is (QUIT: Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) (~linx@149-210-16-8.mobile.nym.cosmote.net)21:41
+ Ar|stote|is (~linx@149-210-16-8.mobile.nym.cosmote.net)21:42
minutebluerise: there should be only small differences to mainline21:45
joschminute: i think the problem is, that the order of things is totally different -- if you just "diff" it, the diff will be hundreds of lines long21:48
joschvagrantc tried to minimize the diff and failed21:50
joschthat's why in reform-debian-package we just copy over the dtb instead of patching it21:50
c-keen[m]There's a dtb decompiler tool and one can sort the order a bit22:00
+ ajr (~ajr@user/ajr)22:10
joschis anybody able to download the job artifacts from source.mnt.re? I get "Connection closed" before it finishes when I try to download this: http://reform.pages.mnt.re/-/reform-debian-packages/-/jobs/1098/artifacts/output.log22:15
- bgs (QUIT: Remote host closed the connection) (~bgs@212-85-160-171.dynamic.telemach.net)22:50
klardotsh__josch: failed on the last... presumably few bytes honestly. I thought it had completed and then "Failed"23:03
* klardotsh__ -> klardotsh23:03
- ajr (QUIT: Ping timeout: 265 seconds) (~ajr@user/ajr)23:08
minutejosch: ah, adjusting the order first would be quite easy though.23:30
Boostisbetterjust out of curiosity, but do we have any EUC riders in here? 23:32
minutejosch: btw i switched over some repo builds to the big runner earlier.23:49

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