2024-06-03.log

AbortRetryFailWho was it who had trouble getting FreeCAD working on the imx8 Reform? I got it working. 01:16
AbortRetryFailQt Wayland bugs I guess. QT_QPA_PLATFORM=xcb works01:18
- jjbliss (QUIT: Ping timeout: 246 seconds) (~jjbliss@1464766-static.elnsmiaa.metronetinc.net)01:50
- robin (QUIT: Quit: Leaving) (~robin@user/terpri)01:55
- Ar|stote|is (QUIT: Quit: https://quassel-irc.org - Chat comfortably. Anywhere.) (~linx@149.210.24.247)02:10
+ Ar|stote|is (~linx@149.210.24.247)02:11
+ jjbliss (~jjbliss@1464766-static.elnsmiaa.metronetinc.net)02:20
violetminute: what'd you learn? anything i'd need to be thinking about?03:27
noamminute: I'll double check that port04:17
noamand if it doesn't work I'll try ptftpd, thanks :)04:17
- Ar|stote|is (QUIT: Read error: Connection reset by peer) (~linx@149.210.24.247)04:31
+ Ar|stote|is (~linx@149.210.25.116)04:38
- macewentoo (QUIT: Ping timeout: 246 seconds) (~macewento@gateway/vpn/pia/paperowl)05:00
- colinsane (QUIT: Ping timeout: 246 seconds) (~colinunin@97-113-136-129.tukw.qwest.net)05:48
- Ar|stote|is (QUIT: Ping timeout: 252 seconds) (~linx@149.210.25.116)06:08
+ Ar|stote|is (~linx@149.210.24.197)06:13
+ colinsane (~colinunin@97-113-136-129.tukw.qwest.net)06:23
- Ar|stote|is (QUIT: Ping timeout: 252 seconds) (~linx@149.210.24.197)06:25
+ Ar|stote|is (~linx@149.210.26.156)06:30
- Ar|stote|is (QUIT: Ping timeout: 268 seconds) (~linx@149.210.26.156)06:58
+ macewentoo (~macewento@gateway/vpn/pia/paperowl)07:00
+ Ar|stote|is (~linx@149.210.17.185)07:17
- Ar|stote|is (QUIT: Ping timeout: 268 seconds) (~linx@149.210.17.185)07:31
+ chomwitt (~chomwitt@2a02:587:7a1d:df00:1ac0:4dff:fedb:a3f1)07:50
joschminute: maybe a topic worth your attention is the keyboard failing on ls1028a and a311d after the latest apt upgrades: https://community.mnt.re/t/no-keyboard-input-with-ls1028-board-and-latest-image/1994/1107:56
+ jaume (~user@user/jaume)08:34
minutejosch: ugh, that's strange08:37
- nybble (QUIT: Ping timeout: 256 seconds) (~sprang@user/csprng)09:01
noamminute: the USB port by the HDMI  works09:44
noam:) :)09:44
minutenoam: ah very nice09:49
noamyeah, just gotta burn an image to that USB :P09:51
+ mjw (~mjw@gnu.wildebeest.org)09:53
minutenoam: it is possible that you'll have to (re)assign some load addresses for our boot.scr to work10:05
noamOh! I can cheat :D10:07
noamI have a USB-A to USB-C adapter, and a hub from the pinebook pro that has a MMC slot :D10:07
noam> ## Transferring control to Plan 9 (at address 40100000) ...10:07
noam:D10:07
noam...except it then proceeds to reboot almost immediately? :/10:08
noammy custom kernel is definitely loading; some of the silly prints I added are showing up10:08
noamAh, hm. > Failed to load '/plan9.ini'10:09
noamThat's from the uboot script10:09
noam> ** Reading file would overwrite reserved memory **10:10
minutenoam: can you change the address?10:13
noamminute: in the u-boot script?10:13
minuteyeah10:13
noamIt's on a SD card, so probaly? :P10:14
minuteanother option would be to boot linux and flash our uboot first... or can you do that from 9front?10:14
noamI can do it from 9front10:16
noam...if I can boot into it lmao10:16
noamminute: I haven't worked with u-boot extensively before; how do I look at the memory map and pick a new address?10:16
noamI'll probably have to update the kernel too since I assume it hardcodes the location where the config file is10:16
noamyeah okay, if I have a better address to put it in I can change it :)10:17
noamOf note is that plan9 kernel says there's only 1G available, but u-boot says 4G of DRAM (which is my expectation)10:19
noamso it looks like the u-boot config may be weird10:19
noamActually, think I found the info under board info :)10:23
noamlooks like DRAM is  memory[1]   [0x40000000-0x13fffffff], 0x100000000 bytes flags: 0, and reserved[0][0x40000000-0x4001ffff], 0x00020000 bytes flags: 0, so I can probably just do 40020000, I think10:24
noamoh! but I think the kernel hardcodes the usable memory regions?10:28
noamwhich might be why it's rebooting, might be trapping somewhere10:28
sigridno it's not10:32
noamsigrid: conf.mem[2].base = 0x1000000000ULL; ?10:35
noamOr, sorry, which "it" am I wrong about? :P10:36
sigridthe kernel isn't in reserved area10:39
sigridand this "reserved" area is most likely just uboot itself deciding it is10:40
sigridmemset seemed to work fine, anyway10:41
sigridyou can change the boot script to load elsewhere and then cp.b to the address 9front expects plan9.ini to be at, it would probably work10:41
minutejosch: testing a311d reform2 now with https://source.mnt.re/reform/reform-system-image/-/jobs/4455/artifacts/file/pocket-reform-system-a311d.img.gz10:42
noamsigrid: yes, but we hardcode where in the map the DRAM is, no?10:43
noamVDRAM?10:44
noamI'll try just bumping config area outside of u-boot's reserved area and see what happens :P10:44
joschminute: thank you for testing -- i had some really weird lock-ups with kernel 6.9 and hope that it's my setup and not the kernel...10:44
joschwait... that link is for the pocket reform and not the reform2 :D10:45
minutejosch: oh lol10:45
minutei didn't have my second coffee yet, thanks!10:45
sigridnoam: what?10:46
sigridi do not understand. those addresses are defined for imx8mq10:46
noamsigrid: I'm almost certainly misunderstanding basically everything :P10:46
sigrididk why their uboot decided to reserve that area10:47
sigridthis area is just ram10:47
noamWhat the heck? > fpu.c: sysreg.h does not exist10:50
noamI swear I've run into this before10:50
noamI think my tree is corrupt, but `git/revert`ing back to front doesn't fix it, what the heck10:50
sigridwhy not try latest 9front instead of custom kernel10:50
noamsigrid: because that won't be able to mount my file system10:51
sigridi am not even sure if yours is working10:51
sigridyes, but the kernel would either boot or not10:51
noamAh, as a test you mean?10:51
sigridyes10:51
noamyeah, I'll try that10:52
noamit's entirely possible that my image is borked10:52
noamI _was_ self-hosting10:52
noambut I tried building this image from the thinkpad10:52
noamand I hadn't synced it in a long while, I think10:52
sigridif there is no plan9.ini it should still be printing stuff on uart10:56
noamsigrid: it is!10:56
noamIt prints the "Plan 9" line, and then nothing for a minute, and then u-boot starts printing again10:56
sigriddid uboot ever complain about mw.b?10:57
noamI don't believe so10:58
noamsigrid: https://pixelhero.dev/tmp/9.png10:59
sigridwait. do you actually *have* plan9.ini?10:59
noamyes11:00
noamThis is a fresh official 9front image11:00
noamit tries loading plan9.ini into memory u-boot _does actaully_ have listed as reserved11:00
noamhttps://pixelhero.dev/tmp/bdinfo.png11:00
sigridi don't think it matters tbh11:02
noamnot sure why it's rebooting :/11:02
sigridyou can try loading plan9.ini manually to another region, then cp.b11:03
sigridthen dump a few lines from that reserved region11:03
sigridsee if uboot reboots itself11:03
noamconfinit() happens before the `Plan 9` print, no? I don't think it should be rebooting even without the config file?11:04
noambootargsinit(), rather11:05
sigridi do not understand much from your screenshot11:07
sigridwas it your kernel booting there or 9front kernel?11:07
noam9front11:08
sigridmaybe config memory range is filled with garbage11:08
noamCould be, given that it's reserved >_>11:08
sigridthat's why i'm asking to try my suggestion11:08
noamYeah, I'm working on building a kernel for that rn11:08
sigridit is reserved by uboot11:08
noamRight, that's what I mean - u-boot is likely using it11:09
sigridwhich does not necessarily mean soc cares about it11:09
noambut, the 9front kernel is parsing that w/o issue, printing "Plan 9," and _then_ rebooting11:09
sigridok. add more prints around main()11:12
sigridsee where it reboots exactly11:12
noamIn trapinit(), apparently11:15
noamgoing to do the same in there for more detail...11:16
noamGuessing the watchdog timer is rebooting11:16
sigridmaybe vendor uboot decided to do some extra stuff11:18
sigridif we'd have git log we could check that too11:18
noamintrcupshutdown() is hanging...11:20
noamI... uh. Hm.11:24
noamtrapinit() calls intrcpushutdown(). I put a print statement at the very beginning of that function, and it never prints :/11:25
noamah! no, wrong intrcpushutdown. There's one in arm64/ and one in imx8?11:26
sigridyes11:27
noamk, I need to instrument the imx8 one then >_)>11:27
noamOkay, so syswr(ICC_IGRPEN0_EL1, 0) is hanging11:29
- colinsane (QUIT: Quit: bye) (~colinunin@97-113-136-129.tukw.qwest.net)11:29
noamI wonder if this is a permissions thing?11:31
sigridit would trap not hang11:31
noamSure, but it's possible that's happening?11:33
noamIf this is getting trapped by u-boot / there's no handler?11:33
noamGiven that this is happening at the very beginning of trapinit() so we're not handling traps yet11:33
+ colinsane (~colinunin@97-113-136-129.tukw.qwest.net)11:34
sigridyou should probably iprint btw11:35
sigridnot print11:35
noamNon-interrupting, or?11:35
sigridit for sure won't involve anything but uart11:36
noamgotcha11:36
noamI'm going to have to learn a great deal about ARM to fix this aren't I :)11:39
sigridi don't think so11:44
sigridstill you haven't tried manual plan9.ini thing11:47
sigridso i am not sure about anything11:47
noamsigrid: I can just bump CONFADDR and change the address in boot.scr?11:49
sigridsure11:50
- mjw (QUIT: Ping timeout: 268 seconds) (~mjw@gnu.wildebeest.org)11:54
noamsigrid: same result :/11:56
noamwell, the plan9.ini file gets loaded now :P11:56
noambut it still hangs11:56
sigridhttps://developer.arm.com/documentation/ddi0601/2022-06/AArch64-Registers/ICC-IGRPEN0-EL1--Interrupt-Controller-Interrupt-Group-0-Enable-register11:59
sigridif you're interested11:59
noamalready got that open in anopther tab :P12:00
noam> If the highest priority pending interrupt for that PE is a Group 0 interrupt using 1 of N model, then the interrupt will be targeted to another PE as a result of the Enable bit changing from 1 to 0.12:01
noamI wonder if there's an interrupt enabled with vendor u-boot that we don't expect to be, and that's causing Something to occur?12:01
noam</conjecture>12:01
noamthe other possibility that comes to mind is the EL being 'wrong' from our perspective, but I'd think that'd break _everything_ (including LInux for instance)12:02
sigridi don't think uboot uses interrupts12:02
noam...I should try a linux image, and see if that works12:03
sigridmaybe syswr needs a mask, as not to rewrite the entire register12:03
sigridstrange. seemed to work fine anywhere else12:03
noamWhy would it work on the older SoMs if that's an issue? Rather, why would that behavior change?12:05
minutesomewhere NXP has a pdf note with the changes from AA to AB silicon12:08
minutebut i think it's probably the different uboot version12:08
noamGoing to burn the official reform image to a USB and try that12:09
* Guest4962 -> mjw12:12
noamHeh, apparently the boot.scr for the official image doesn't work on the new module :/12:16
noamthe load command gives out usage info12:17
joschnoam: that might be because your vendor u-boot cannot handle our boot.scr which is written for MNT u-boot12:18
noamjosch: ah. That's probably it :/12:18
noamgrrrr. Is there a way to flash eMMC from within uboot?12:19
sigridi don't think boot.scr matters12:19
sigrid9front ships with its own basic (very simple) boot.scr12:19
noamsigrid: I was testing the debian image12:20
sigridi understand12:20
noamIf uboot has file system drivers, it's got to be possible to use it to flash itself on the eMMC. Surely it's copying itself into RAM on startup anyways...12:21
sigridemmc flashing would probably work but if you're writing the same region that current uboot is at, what happens then?12:21
sigridmaybe just try to boot linux manually12:22
noamwoooo go u-boot! :P12:23
noam> BUG at drivers/usb/host/xhci-ring.c:530/abort_td()!12:23
joschnoam: or re-write the system image boot.scr to be able to work with yout u-boot12:24
noamoh. oops. in its defense I _did_ remove the drive lol12:24
joschnoam: or if the vendor u-boot is newer than 2014, maybe it has support for extlinux.conf which i personally find a bit easier to edit than boot.scr12:24
minutenoam: this is what i meant earlier12:25
minuteyou need to (re)define some variables12:26
minuteof the 3 load adresses12:26
minutefdt_addr_r12:28
minutekernel_addr_r12:28
minuteramdisk_addr_r12:28
minutenoam: these three must be defined12:28
minutethe vendor uboot has different names, you can see these by doing "printenv"12:28
minutefor example, loadaddr or fdt_addr with a _r12:28
minutemaybe:12:29
minutesetenv fdt_addr_r 0x4300000012:30
minutesetenv kernel_addr_r 4080000012:30
minutesetenv ramdisk_addr_r 4280000012:30
minutenoam: if you set these, the boot script should work12:30
minuteand yes, extlinux.conf is also an alternative good idea12:31
noam> Booting Debian 6.8.11-mnt-reform-arm64 from usb 0:1...12:37
noam> ERROR: Did not find a cmdline Flattened Device Tree12:37
noam:/12:37
joschdid you load the device tree dtb to fdt_addr_r?12:38
noamthe boot script should have, I think12:39
noamdouble checking...12:39
joschthe MNT boot.scr does, yes -- but maybe the variables are wrong?12:39
noamIt definitely read it, but I suppose the addresses might have been wrong?12:40
noam...oh wait, 0x is missing from two of the ones minute pasted, I think?12:40
joschhah indeed :)12:41
noamsame issue though :/12:41
- colinsane (QUIT: Quit: bye) (~colinunin@97-113-136-129.tukw.qwest.net)12:43
+ colinsane (~colinunin@97-113-136-129.tukw.qwest.net)12:47
noamproooobably can't use vendor u-boot to load u-boot from another device, can I? :P12:54
sigridthat would probably end up wasting a lot of your time and without any guarantee it'd work12:56
noamyeaaaaaah12:57
sigriddo a printenv and paste it somewhere12:58
sigridpreferably not as a screenshot12:58
noamright >_>12:59
noamhttp://45.76.26.151/env13:00
sigridso it's without _r13:00
sigridand seems to do syslinux13:01
sigrids/sys/ext/13:01
sigridtry inserting a usb drive with linux mnt reform image and do usb_boot13:02
noamsigrid: that's what I did?13:03
sigridok. what were the errors?13:04
sigridI didn't see the output13:04
noamWell first it just flat out doesn't work because the _r variables are missing13:04
sigridah ok13:04
noamI set those manually per minute's instructions above and it gave a "Did not find a cmdline Flattened Device Tree" error13:04
sigridsetenv fdt_addr_r ${fdt_addr}13:05
sigridah no wait13:05
sigridit does set _r vars13:05
noamsigrid: that env print is from after I set _r vars manually13:06
noamjust updated that linked file with the result if I didn't do that >_>13:06
noam...oh. huh. Ezurio (the company that bought Boundary) has an upgrade.scr file13:08
sigridslightly related: uboot upgrade seems to be described https://www.ezurio.com/resources/software-announcements/how-to-upgrade-u-boot13:08
noamHeh, yeah, just found that :D13:08
sigridnot that it helps13:08
noamOh?13:09
sigridI mean if it's uboot issue and somehow an upgrade is worth it, sure. but we haven't found out if it has anything to do with uboot13:10
noamahhh, true13:11
noamand worst case I risk bricking it if there's a bug in their script >_>13:11
sigridprobably not but don't take my word for it13:12
sigridI am no linux/uboot specialist13:12
minutenoam: maybe for fdt you also need fdt_addr13:14
noamminute: _and_ fdt_addr_r? /confusion13:14
minutenoam: yeah13:14
joschme neither. i just read the u-boot sources at boot/image-fdt.c which is where the error message comes from and it seems like u-boot is unable to find a valid device tree at the point where it's looking13:14
sigridfdt_addr=0x4300000013:14
sigridfdt_addr_r=0x4300000013:14
noamminute:  it's set by default? > "put this on a storage media 13:14
noamer13:14
sigridthat uboot sets both13:14
noamsigrid: no, that's my bad13:14
noamit sets fdt_addr=0x43000000 only13:14
noamI set fdt_addr_r before running `env print`13:15
minuteyou can also just do the load completely manually13:15
sigrid:/13:15
noamI pushed a clean env file up >_>13:15
sigridok, then: setenv fdt_addr_r ${fdt_addr}13:15
noamminute: I tried :(13:15
sigridand do the same for the other two13:15
sigridthen usb_boot13:15
noam$kernel_addr is unset13:15
noamditto for $ramdisk_addr13:15
sigrid${loadaddr}13:15
noamAh, okay13:16
noamWhat's ramdisk_addr_r based off of?13:16
sigridset it to 4280000013:17
sigridit's fileaddr13:17
noamgotcha13:17
sigridthough fileaddr doesn't seem to have 0x13:17
noamyeah, that looks wrrong?13:17
noamgoing to reset to double check it didn't get messed up13:17
sigrididr uboot requiring 0x13:18
noamah, fileaddr doesn't exist with a clean env13:18
sigridit won't get messed up unless you do saveenv or something13:18
sigridyeah, that is probably set by another var that you ran13:18
sigridso just set it manually then, with 0x13:18
noam...yeah, fdt_addr also doesn't exist on a clean env13:18
sigridcan you paste the clean one?13:19
noamer yes it does, my brain is just dumb13:19
noamyeah sure13:19
sigridit's hard to understand what's going on13:19
noamhttps://45.76.26.151/cleanenv13:19
noam`setenv fdt_addr_r ${fdt_addr}; setenv kernel_addr_r ${loadaddr}; setenv ramdisk_addr_r 42800000; boot` on a clean boot?13:20
noamThat still yields > ERROR: Did not find a cmdline Flattened Device Tree13:21
sigridusb_boot, not boot13:22
noam> Unknown command 'usb_boot'13:22
noam`run ${usb_boot}`?13:22
joschdistro_bootcmd should also work as that is running usb_boot on the usb0 entry in $boot_targets13:23
joschnoam: run usb_boot13:23
sigrid"run usb_boot"13:23
noamah, oops, thanks13:23
- S0rin (QUIT: Quit: WeeChat 3.8) (~S0rin@user/s0rin)13:24
noam=> setenv fdt_addr_r ${fdt_addr}; setenv kernel_addr_r ${loadaddr}; setenv ramdisk_addr_r 42800000; run usb_boot13:24
noamsame result13:24
sigriddo you have bootpart set?13:25
noamyep13:25
noambootpart=113:25
noam[after running that line]13:25
noam[didn't check beforehand, can do if it's helpful]13:26
noamit's not set beforehand13:26
sigridtry manually13:26
noamSetting bootpart? to 1, or?13:26
sigridsomething along the lines of "load ${devtype} ${devnum}:${bootpart} ${loadaddr} /boot/vmlinux..."13:27
noamthose load commands work fine13:27
sigridok, have you tried the same for dtb?13:27
noamit's the booti command that gives an errorr13:27
noamthe load command for the dtb works fine13:27
sigridok, what booti command looks like?13:27
noam booti ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r}13:27
sigridcan you run "help booti"?13:28
- jaume (QUIT: Ping timeout: 268 seconds) (~user@user/jaume)13:28
sigridalso paste the exact command you ran to load dtb13:28
noamhttps://45.76.26.151/booti13:29
noamthe dtb was loaded by the boot.scr13:29
noam45.76.26.151/scr13:29
noamhttps://45.76.26.151/scr *13:30
noam> load ${devtype} ${devnum}:${partition} ${fdt_addr_r} ${pathprefix}${fdtpath} 13:30
sigridcan you show ${pathprefix}${fdtpath}13:30
noam /dtb-6.8.11-mnt-reform-arm6413:30
minutePocket Reform handbook is out: https://mntre.com/documentation/pocket-reform-handbook.pdf13:31
sigridcan you heck if that file exists?13:31
noamthat file exists, yes13:31
- colinsane (QUIT: Ping timeout: 268 seconds) (~colinunin@97-113-136-129.tukw.qwest.net)13:31
noam> System.map-6.8.11-mnt-reform-arm64  boot.scr  config-6.8.11-mnt-reform-arm64  dtb  dtb-6.8.11-mnt-reform-arm64  dtbs  flash.bin  initrd.img-6.8.11-mnt-reform-arm64  lost+found  vmlinuz-6.8.11-mnt-reform-arm6413:31
sigridand it's not a directory?13:31
noamI think it may be a symlink, but it's shown as loaded, so I assume that's fine13:31
noamlrwxrwxrwx 1 root root       61 May 18 00:03 dtb-6.8.11-mnt-reform-arm64 -> dtbs/6.8.11-mnt-reform-arm64/freescale/imx8mq-mnt-reform2.dtb13:32
noamThe file it points to is 41593 bytes13:33
noam> 41593 bytes read in 6 ms (6.6 MiB/s)13:33
noamso it's definitely being read in right13:33
sigridok. can you do "fdt addr ${fdt_addr_r}"13:33
sigridthen "fdt print"13:33
noamuh13:34
noam=> fdt addr ${fdt_addr_r}13:34
noamlibfdt fdt_check_header(): FDT_ERR_BADMAGIC13:34
sigridok13:35
sigridext2load ${devtype} ${devnum}:${partition} ${fdt_addr_r} ${pathprefix}${fdtpath}13:35
+ S0rin (~S0rin@user/s0rin)13:35
noamthen the fdt command again?13:35
sigridyes13:35
noamyeah okay now that works?13:36
sigriddoes it print the tree?13:36
noamyeah13:36
sigridok. try booting13:36
sigridbooti blah blah13:36
noam....gahhhhhhh I need to redo it, I ran usb_boot and that refucked it up for some reason??13:37
sigridofc it did13:37
sigridone problem at a time13:37
joschnoam: whatever you do -- please write up what worked in the end and post it in the forum! :D13:37
sigridjosch: of note: load vs ext2load13:37
joschyup, this is very interesting13:37
sigrid41593 bytes seems like legit file size to me13:38
joschit's funny that the plain "load" didn't show an error13:38
sigridI thought maybe it was loading symlink contents instead of actual file13:38
sigridbut I would never expect that to be the case13:38
noamcurrent command is `setenv fdt_addr_r ${fdt_addr}; setenv kernel_addr_r ${loadaddr}; setenv ramdisk_addr_r 42800000; devtype=usb; ext2load ${devtype} ${devnum}:${partition} ${fdt_addr_r} ${pathprefix}${fdtpath}", need to add in the rest of the load commands and booti13:38
noamYeah I'm wondering what it actually loaded >_>13:38
noamprobably just the offset relative to disk instead of fs or some such?13:38
sigridyou can do a memory dump to see13:39
noamoh! I should use ext2load for the kernel and initrd too13:39
sigridthat is probably a good idea13:39
sigridjosch: what fs does the image ship with?13:40
joschmaybe now that we know that, you an just s/load/ext2load/ in the boot.scr?13:40
joschsigrid: ext413:40
noamoh! no that's not doing it13:40
noambecause loading the other files broke it :D13:40
noamERROR: Did not find a cmdline Flattened Device Tree13:40
noamand fdt addr ${fdt_addr_r} complains13:40
sigridperhaps using loadaddr is wrong?13:40
noamthe initrd is at the wrong addr I think13:41
noambecause loading it overwrites the fdt13:41
sigridheh :(13:41
noaminitrd at 4280000013:41
noamfdt at 4300000013:41
noamramdisk is ~32MiB13:41
sigridthat would do it13:42
noamthe distance between initrd start and fdt start is 2MiB13:42
noamyea13:42
noamI can totally just pick a different address for the initrd though13:42
sigridset fdt addr to like 4400000013:42
sigridactually that isn't enough13:42
noamI was going to bump ramdisk addr instead :P13:42
noamand just set it to fdt+1MiB13:42
sigridI think usually how it's done is the boot script loads one file, then set the address for the next one by adding the size of the last loaded file to initial address?13:43
noam> Starting kernel ...13:43
noam:O13:43
noamscreen turned on!!!13:43
noamI see linux!13:43
sigrididr, last time I did anything considerable with uboot was in 2006, I think13:43
noamwoot woot!13:43
sigrids/2006/2009/13:44
noamThanks!! :D <313:44
noamit failed to launch sway, though?13:44
noam(which I didn't run, the default boot script did?)13:44
noambut that's fine13:44
noamconsole should be plenty ehre13:44
noamhere*13:44
minutenoam: good job!13:45
minutenoam: the default boot launches the setup wizard in sway nowadays, but that aborts if you have no input devices or no display13:45
minutei think we have a command to flash uboot13:46
joschnoam: could you write down what whanges ultimately worked for you?13:46
noamfairly sure this would work: setenv fdt_addr_r ${fdt_addr}; setenv kernel_addr_r ${loadaddr}; setenv ramdisk_addr_r 43200000; boot13:46
noamload vs ext2load was a red herring :P13:47
noamthe ramdisk and fdt were overlapping13:47
joschah that makes sense13:47
noamminute: the failure to launch sway occurs on the Reform prroper13:48
noamwhere display is working13:48
noam...13:48
noamkeyboard isn't though13:48
noam>_>13:48
minutenoam: yeah it's because uboot didn't reset the usb hub13:49
minutenoam: so you can only use the usb port that is next to hdmi13:49
noamlinux can't do it??13:49
noamuboot was able to reset the usb hub a few times13:49
noamI saw the keyboard light up 13:49
noambut only on some resets, not others13:49
minutenoam: idk. it's not our uboot13:49
minutenoam: you can do it in linux too with gpioset, but i don't remember the gpio number off the top of my head13:50
noamgotcha.13:50
noamGood news is, now I can boot linux, I can probably patch the USB drive to work automatically13:50
minuteprobably io 1-10 or sth13:50
noamand then I can at least put the hardwarre back together, and stop using the serial port13:50
noamand should be able to get 9 working using linux as the starting point13:50
noamhopefully13:50
mjwplomlompom, minute, Would it be possible to get an update on ticket #3488 ? I don't mind if it is just "all under control, but we are concentrating on getting all the pocket reforms out first". But I am getting a little worried that there has been no update for a month now.13:50
minutenoam: maybe update to our uboot?13:50
noamminute: that's the plan :)13:51
minutemjw: hmm weird, i saw plomlompom replying to looots of tickets, let me see13:51
noamWorst case nothing changes13:51
noambest case that solves it13:51
mjwminute, If it is my spam filter eating them I apologize.13:51
joschnoam: to update u-boot there is a script called reform-flash-uboot13:52
minutemjw: no, indeed i see we owe you a response there, i apologize. your package is here. i will take care of it this week, going in my list now13:52
mjwminute, phew. Thanks.13:53
joschnoam: it will attempt downloading the latest u-boot but if you don't have interwobbles, you can disable that with --offline13:53
noamjosch: that'll use a build on the image, I assume?13:53
joschnoam: with --offline it will use /boot/flash.bin13:53
noamcool13:53
noamI need to find a screw for my NVMe drive so I can put the bottom on, I'll be back in a few days ;P13:54
joschit should be: sudo reform-flash-uboot --offline emmc13:54
joschminute: wow, the pocket reform handbook design, style and artwork is outstanding -- what an amazing piece of work!14:02
noamwhat kind of screw is needed for NVMe drives? I might have to buy new ones before I can rerassemble this >_>14:04
noamfuck it, going to glue gun the drive into place for now14:04
joschnoam: i think it's just an M2 screw14:05
noamwell, it's plastic now :P14:06
minutejosch: thank you very much!14:17
AbortRetryFailnoam: I have a strip of kapton tape holding the NVMe drive in mine. :D14:18
noameughhhh need to clean the old thermal paste off the heat sink :/14:20
noami'll need to pick up alcohol today i suppose14:21
sigridnoam: when you've got time, comment out syswr(ICC_IGRPEN0_EL1, 0);14:32
sigridfor me it made no difference14:33
noam...oops14:39
noami just exploded a thing of loctite blue14:39
noam...in the kitchen14:40
noam...on cookware. :(14:40
sigriduboot does not seem to do anything with that register and it's supposed to be reset to 0 on boot anyway14:41
sigridso I am not sure why this syswr is needed at all14:42
noamjosch: confirmed!14:50
+ mark_ (~mjw@gnu.wildebeest.org)14:51
noamI put the three setenv commands in boot.scr, removed the header, regenerated it using mkimage, and the USB now boots automatically ;D14:51
noamthere's some EGL_BAD_PARAMETER messages so sway doesn't work though14:51
noamand libinput fails, because the USB hub didn't reset :/14:52
noamFuuuuudge might have to take the bottom off again. Dunno why I expected the keyboard to magically work14:53
noamsigrid: nonzero odds hte write to IGRPEN1_EL1 hangs next :P14:57
sigridcomment that out as well14:58
sigridand coherence()14:58
minutenoam: strange @ usb hub. our uboot should've taken care of that15:17
minutenoam: ah you still have a custom uboot.scr?15:17
minuteboot.scr i mean15:17
noamminute: didn't flash the newer uboot yet >_>15:27
minutenoam: then that's why the keyboard doesn't work16:24
+ Ar|stote|is (~linx@149.210.28.24)16:50
- Ar|stote|is (QUIT: Ping timeout: 255 seconds) (~linx@149.210.28.24)16:59
- iank_ (QUIT: Quit: ZNC 1.8.2+deb2+b1 - https://znc.in) (~iank@fsf/staff/iank)17:04
+ iank (~iank@fsf/staff/iank)17:06
+ Ar|stote|is (~linx@149.210.25.250)17:08
- Ar|stote|is (QUIT: Ping timeout: 268 seconds) (~linx@149.210.25.250)17:13
+ colinsane (~colinunin@97-113-90-227.tukw.qwest.net)17:15
+ Ar|stote|is (~linx@149.210.25.143)17:17
minuteok, now testing a311d + ls1028a17:42
minutejosch: usb hub, keyboard, mouse works fine for me on latest a311d image. i don't get an image on the display though. might be because this is not the usual display17:44
- Ar|stote|is (QUIT: Ping timeout: 264 seconds) (~linx@149.210.25.143)17:57
+ Ar|stote|is (~linx@149.210.0.91)18:11
minutejosch: indeed, no usb devices found @ ls1028a18:12
minute[   46.526696] xhci-hcd xhci-hcd.0.auto: Error while assigning device slot ID: Command Aborted18:12
minute[   46.526707] xhci-hcd xhci-hcd.1.auto: Error while assigning device slot ID: Command Aborted18:12
minute[   46.526722] xhci-hcd xhci-hcd.0.auto: Max number of devices this xHCI host supports is 127.18:12
minute[   46.526725] xhci-hcd xhci-hcd.1.auto: Max number of devices this xHCI host supports is 127.18:12
minutehttps://mntre.com/reform-irc-logs/2023-09-22.log.html#t16:06:2818:19
minutermmod & modprobe dwc3 used to be a workaround, but it doesn't work anymore18:19
* mjw -> Guest440218:19
- Guest4402 (QUIT: Killed (silver.libera.chat (Nickname regained by services))) (~mjw@2001:1c06:2488:1400:4fd:39a7:74ac:7bae)18:19
* mark_ -> mjw18:19
+ Guest4402 (~mjw@2001:1c06:2488:1400:4fd:39a7:74ac:7bae)18:20
minuteweird, it works with loglevel=718:21
- Ar|stote|is (QUIT: Ping timeout: 252 seconds) (~linx@149.210.0.91)18:23
minuteit might be a timing issue where the logging accidentally adds a required delay somewhere18:29
minutei have turned off the workaround in /sbin/reform-hw-setup and added loglevel=7 to the bootargs and now it works every time (ok now on 3 consecutive power cycles)18:30
+ Ar|stote|is (~linx@149.210.8.125)18:33
minuteindeed18:36
minuteeven setting the loglevel dynamically to 3 again makes it fail again18:36
minuteand setting it to 7 on console makes it work... w t f18:37
+ nybble (~sprang@user/csprng)18:37
- Ar|stote|is (QUIT: Ping timeout: 272 seconds) (~linx@149.210.8.125)18:40
+ gustav28 (~gustav@c-0c35524e.019-141-67626730.bbcust.telenor.se)18:43
violetthat's terribly cursed18:45
minuteviolet: yes18:46
minuteit could also be that the prints influence the cache behavior18:46
minuteas those nxp patches sounded like there are coherency issues18:46
violetoh noooooooo18:46
violeti could see it 18:47
minuteit feels like stuff i encountered when messing with bare metal stuff on zynq etc18:47
minutejosch: i guess a short-term workaround would be to revert loglevel to 7 on ls1028a in the uboot or boot.scr (not sure where it's ultimately set)18:48
+ Ar|stote|is (~linx@149.210.8.134)18:49
- Ar|stote|is (QUIT: Read error: Connection reset by peer) (~linx@149.210.8.134)18:58
- chomwitt (QUIT: Ping timeout: 256 seconds) (~chomwitt@2a02:587:7a1d:df00:1ac0:4dff:fedb:a3f1)19:04
+ robin (~robin@user/terpri)19:42
- gustav28 (QUIT: Quit: Quit) (~gustav@c-0c35524e.019-141-67626730.bbcust.telenor.se)19:44
+ chomwitt (~chomwitt@2a02:587:7a1b:2500:1ac0:4dff:fedb:a3f1)19:48
joschminute: does a later loglevel setting in cmdline overwrite the former? Can you try editing /usr/share/flash-kernel/ubootenv.d/00reform2_ubootenv and add your loglevel setting at the end of this line: https://source.mnt.re/reform/reform-tools/-/blob/main/flash-kernel/ubootenv.d/00reform2_ubootenv?ref_type=heads#L2219:59
joschand then run flash-kernel to re-generate your boot.scr19:59
joschif you want to make this solution more permanent, then you can do so by editing the default u-boot ${bootargs} here which (if later loglevel settings indeed overwrite former ones) will have the desired effect: https://source.mnt.re/reform/reform-ls1028a-uboot/-/blob/main/u-boot-config?ref_type=heads#L40520:01
+ gustav28 (~gustav@c-0c35524e.019-141-67626730.bbcust.telenor.se)20:02
- cobra (QUIT: Ping timeout: 268 seconds) (~cobra@user/Cobra)21:05
+ cobra (~cobra@user/Cobra)21:09
- robin (QUIT: Read error: Connection reset by peer) (~robin@user/terpri)21:26
+ robin (~robin@user/terpri)21:27
+ vagrantc (~vagrant@2600:3c01:e000:21:7:77:0:50)21:30
minutejosch: ok i can try that tomorrow21:52
- gustav28 (QUIT: Quit: Quit) (~gustav@c-0c35524e.019-141-67626730.bbcust.telenor.se)22:15
joschi think i also like the solution of adding `dmesg -n 7` to /usr/sbin/reform-hw-setup23:00
joschthen it does not mess with the bootargs and a comment next to it can elaborately explain what is going on23:00
minutejosch: yeah, and can be removed once root caused23:55
joschi'll add that to https://source.mnt.re/reform/reform-tools/-/merge_requests/6923:56

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