On Fri, May 26, 2023 at 10:43 AM Sergey Bugaev <buga...@gmail.com> wrote:
> On Fri, May 26, 2023 at 3:00 PM Flávio Cruz <flavioc...@gmail.com> wrote: > > Hi Sergey > > Hi, > > > Thanks for the instructions. I was able to make it work and pushed my > changes to Github. > > That's awesome news -- thank you! > > (Well, I figured as much from looking at the GitHub, but it's nice to > get a confirmation.) > > What were you able to get working exactly? Do you get uname output? > Interactive shell? (I don't see the hacky streamio patch on your > GitHub?) If you do, could you share some output from various commands, > like I did in the other thread? > I was able to run a bunch of commands inside dash using the runsystem.initrd script. After applying your streamio patch I can also type commands but can't see what I am typing. Here's some sample outputs: # uname -a GNU 0.9 GNU-Mach 1.8/Hurd-0.9 x86_64-AT386 GNU # date Sat May 27 05:55:56 UTC 2023 # cal May 2023 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 # uptime uptime: couldn't get boot time: No such file or directory // probably fails since the system is very bones and doesn't have users # settrans -ac /proc /hurd/procfs --stat-mode=444 # ls /proc 1 10 16 19 2 3 4 5 6 7 cmdline filesystems hostinfo loadavg meminfo mounts route self slabinfo stat swaps uptime version # cat /proc/version Linux version 2.6.1 (GNU 0.9 GNU-Mach 1.8/Hurd-0.9 x86_64-AT386) # cat /proc/uptime 110.83 110.75 # ps ax # PID TT STAT TIME COMMAND 2 - Sp 0:00.00 /hurd/startup 3 ? D<fmo 0:00.04 ? 4 ? R<mo 0:00.02 /hurd/proc 5 - S<o 0:00.01 ? 6 - So 0:00.00 ? 7 - S<o 0:00.00 /hurd/auth 10 - S<o 0:00.00 /hurd/streamio 16 - S<o 0:00.00 /hurd/procfs 18 - So 0:00.00 ps # md5sum /hurd/startup f925d090e55bc8be46bbc050560a92b7 /hurd/startup # du -h /bin 2.3M /bin # halt startup: notifying ext2fs rd0 of halt...done startup: halting Hurd... /hurd/startup: shutdown: No such file or directory Didn't succeed startup: halting Mach (flags 0x8)... Shutdown completed successfully, now in tight loop. You can safely power off the system or hit ctl-alt-del to reboot # reboot startup: notifying ext2fs rd0 of reboot...done startup: rebooting Mach (flags 0)... // Qemu does reboot > You should *probably* be able to drop the BRK_START hack if you're > using gnumach with Luca's latest changes, but I haven't tried that > (restoring BRK_START) myself. > Just tested it, it works. Thanks Luca :) > Sergey >