IRC channel logs
2026-09-18.log
back to list of logs
<claire>Good evening, I wanted to know what was the position of the Hurd development team regarding the vibe coding. I would like to port Hurd for riscv64 in vibe coding, but as I don't have more info about that I ask the question <sneek>Welcome back GNU_Hurd_Rocks, you have 1 message! <sneek>GNU_Hurd_Rocks, damo22 says: please don't throw the baby out with the bathwater, our existing code is almost working - it just needs debugging, it doesn't need a brand new implementation from scratch just because your device isn't fully detected. Of course, you are free to do what you want, but please keep this in mind. <GNU_Hurd_Rocks>damo22: I mostly intend to figure out ACPI to at least be familiar with it more before looking further into how this is handled by hurd/rumpkernel <GNU_Hurd_Rocks>claire: some of us actually are interested with hurd running on RISC-V though, I have a Pi Pico 2 since it supports RV32 <claire>ok it's read, but it's for gcc... when is it for hurd and gnumach and in particular my project to make a port for the riscv64 architecture? <claire>abort with qemu and then on a hardware based on risv64 <damo22>claire: I'm pretty sure we dont accept LLM written code directly, but you are free to get ideas from anywhere <claire>That is to say, I don't really understand? Find ideas anywhere? <GNU_Hurd_Rocks>there are definitely people willing to help with a RISC-V port though, including myself, it's just not something I'm ready to look into yet <damo22>GNU_Hurd_Rocks: the part of ACPI you need to know about is the _PRT (pci routing tables), its in the SSDT/DSDT acpi table <GNU_Hurd_Rocks>I need to understand more of the architecture specifics of x86 and aarch64 first, to then know what risc-v needs implemented <damo22>GNU_Hurd_Rocks: you can look in x86_64/ directory of gnumach, that has the 64 bit specifics for x86 <GNU_Hurd_Rocks>damo22: hopefully guix provides enough utilities in the installer to help debug some things :3 <damo22>claire: you can use a LLM to guide you what to write, but we dont accept code that was written directly by an LLM <GNU_Hurd_Rocks>damo22: yesterday you mentioned something that could be ran in GRUB <damo22>GNU_Hurd_Rocks: "lsacpi" shows the basic MADT table overrides i think <damo22>GNU_Hurd_Rocks: what you could do is hardcode the irq to 6 for rumpdisk and see if your controller works <damo22>then if that fixes the problem you need to work out why its not detecting the right irq <claire>damo22: ok I see, so I think I may not have the level yet, unless an LLM can then be a good teacher to learn <claire>I'm already going to try to cross compile hurd from the git <damo22>claire: you can load parts of gnumach code into your LLM and then ask it questions about the code, eg, what does this function do <GNU_Hurd_Rocks>well I guess I can do lspci in grub and it shows some information about the sata controller <damo22>but you can equally ask questions here <claire>ok I'm starting to understand, I. believe I'm going to stay connected <damo22>GNU_Hurd_Rocks: rumpdisk asks acpi for the irq of the disk controller usually <claire>damo22: except that it will take you too much time, I know how to code well but as for coding there but I'm only a beginner <damo22>GNU_Hurd_Rocks: i think the problem is, your SSDT/DSDT table has the wrong information about pci routing <claire>for coding by hand i'm only beginner <damo22>GNU_Hurd_Rocks: you can use acpidump in linux and dump the tables <damo22>but you still need some way to check the correct irq for the disk controller <sigttou>GNU_Hurd_Rocks: does it boot with linux pci=nomsi? also `acpidump -b | iasl -d` would help from linux. <sigttou>GNU_Hurd_Rocks: `sudo acpidump -b` should create dsdt.dat, can you share that? <sigttou>did you boot with nomsi, please do and provide `grep -i ahci /proc/interrupts` `dmesg | grep -iE 'ahci|GSI|INTx|irq [0-9]+'` and `sudo setpci -s 00:12.0 0x3d.b` <GNU_Hurd_Rocks>oh, that was without it, tested previously, but yeah will go do that now <sigttou>the dsdt.dat file is fine like that, the other 3 commands would be great to have in nomsi <GNU_Hurd_Rocks>and the cmdline ;3 BOOT_IMAGE=/boot/gentoo pci=nomsi dokeymap nodhcp root=live:CDLABEL=Gentoo-amd64-20260913 rd.live.dir=/ rd.live.squashimg=image.squashfs cdroot <sigttou>GNU_Hurd_Rocks: did you ever try the amd64 hurd image to boot? <GNU_Hurd_Rocks>although I am yet to try my Gentoo version as I keep trying to use the guix version instead <sigttou>ok, are you able to catch the bootlog (from the 32bit boot is fine)? 'interrupt expected on irq X arrived on irq Y' 'device_intr_register failed with N' 'tried acpi to get pci gsi and failed for 00:12.0' 'failed to register irq N' lines would be interesting. <sigttou>that's a pitty, serial console would be great! Maybe you are able to spot one of these lines, 'interrupt expected on irq 19 arrived on irq 6' is my guess. <sigttou>idk if shift+pgup works, but you can try <GNU_Hurd_Rocks>will try key combination, assuming keyboard even works at all in such state <sigttou>GNU_Hurd_Rocks: yeah, if you manage to spot any of these lines, let me know, might also be right above the hang during boot. Also, try the amd64 image, could also be a 32bit issue, but I am just guessing. <GNU_Hurd_Rocks>Is this still accurate? "Hurd" stands for "Hird of Unix-Replacing Daemons". And, then, "Hird" stands for "Hurd of Interfaces Representing Depth" <GNU_Hurd_Rocks>waiting on the install to finish though, will try 32-bit if 64-bit fails, and will try to catch the error <sigttou>sadly so, there was hoping either scrollback is there or the interesting line(s) are above the hang :/ <sigttou>is this 32bit now? where is it hanging? <GNU_Hurd_Rocks>yes it is 64-bit, "gnumach: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), statically linked, with debug_info, not stripped" <sigttou>ok, so what's the last line during boot it hangs now? <sigttou>if possible, not sure how handy you have it, can you also check the 32bit boot hang? <sigttou>that's helpfull, not sure if you could manage, but maybe worth trying - boot linux pci=nomsi, reboot (command, not power cycle), load hurd, it might read 19 there. <sigttou>you boot from USB? we can also use that to debug ACPI, might be worth a shot <sigttou>also, on linux `sudo setpci -s 00:12.0 0x3c.b` would be good information <sigttou>The script to run when booting hurd 64bit from USB, if that works. <sigttou>the command on linux live, it's reading the interrupt line <sigttou>good luck, I suspect ACPI isn't available when rumpdisk starts, if booting from USB works and we can confirm rumpdisk works with reordering it might be fixable <GNU_Hurd_Rocks>without pci=nomsi, 05, with pci=nomsi, 05, so that's the same either way <sigttou>if you have linux still up `sudo setpci -s 00:12.0 0x3d.b 0x3c.b` <sigttou>if you manage to add to the usb image, would be the best <GNU_Hurd_Rocks>bringing it back up under linux to try copying the partition structure over <damo22>looks like your DSDT says IRQ=19 for SATA <damo22>but did you see it working with 5? <sigttou>GNU_Hurd_Rocks: i honestly don't know if boot from USB is possible, I haven't tried anything besides qemu so far <Alicia>is there a reason for that to be a tar instead of just .img.xz? <damo22>you need to capture the full boot log <damo22>tar packs the empty space between files <azeem>there's only one file in the tar though IIRC <GNU_Hurd_Rocks>ok it booted but the error was different, still partition related except it sees the device this time <Alicia>I interpreted "empty space between files" as the empty parts in sparse files? <GNU_Hurd_Rocks>transcribing, if that's the right term, the boot logs that I can at least see <damo22>can you see a line that says irqhelp [19] or something <damo22>you need to check what irq rumpdisk is using and if it worked or not <GNU_Hurd_Rocks>I think the most important thing though is this, part:2:device:hd0: No such device or address, however there is a wd0 and is showing information such as being 119 GBs, and it being a SSSTC CVB-8D128-HP <damo22>you need to change hd0 to wd0 in the boot step yes <GNU_Hurd_Rocks>oh lol, panic, because bad magic number, is it supposed to be part:2 ? <damo22>is this the downloaded disk image? <GNU_Hurd_Rocks>fsck.ext2: No such device or address while trying to open /dev/hd0s2 <GNU_Hurd_Rocks>RTL8821CE [10ec:c821] (I know this thing requires firmware to be loaded) <GNU_Hurd_Rocks>ideally I can change hd0s2 and hd0s1 to instead be wd prefixed instead? <GNU_Hurd_Rocks>there is an entry for /dev/hd2 with a mount point of /media/cdrom0 so I'm commenting that out, but it does have noauto at least as an option <GNU_Hurd_Rocks>and I made certain to touch the grub config to fix that one thing <damo22>edit /etc/network/interfaces and put: <damo22>is this hardware? did you plug a network cable in? <damo22>if you dont want network now you can ctrl-z to skip <GNU_Hurd_Rocks>uh ctrl-z causes it to start syslogd because I think it messed with init <GNU_Hurd_Rocks>I think it was meant to be within a VM but I'm using it on a laptop <damo22>you could remove "auto /dev/eth0" from /etc/network/interfaces <damo22>then it wont try to autostart networking on boot <GNU_Hurd_Rocks>after doing some sed related things and accidentally making the file contents empty, I finally got it removed <GNU_Hurd_Rocks>end result, looks to be a guix bug that I have no idea how to explain <GNU_Hurd_Rocks>however, later I will be moving over to Gentoo/Hurd :3 (personal favorite for operating systems) <sigttou>if you got it booting on that HW now GNU_Hurd_Rocks <sigttou>ok, so the disk works with debian hurd? <GNU_Hurd_Rocks>that's crazy, "Due to issues with the Internet.ee domain registry, our main domain, paste.ee, is currently disabled due to abuse reports" <GNU_Hurd_Rocks>did not do ls /dev/wd* as there were a lot of different things listed <sigttou>issue is likely the boot order of guix pci arbiter, rumpdisk, ext2fs is the working one from Debian <sigttou>Surprised openvpn just works(tm) nowadays...