I have added a "Quick tips for now ($date)" paragraph reachable with:
https://notes.kergis.com/nix-os.html#nunc that I will keep up-to-date with the status published by Ron Minnich, Paul Lalonde or whoever contributes. The following information is now online, in the page mentionned above. On Thu, Feb 13, 2025 at 10:38:36AM -0800, ron minnich wrote: > Once I had run ftq, I realized there was no way we were running on an AC > with that kind of noise, and, sure enough, we were not. ftq is a handy diag. > > A bit further digging showed I had not finished the job. I had not added > support code for exiting to an AC from the kernel. > > It's there now > https://github.com/rminnich/9front/commit/acde872bca3454e40864b35d450d80c9801db6e7#diff-8d386fb2115162117b438b49040ba74afbec505d3cf3d7214c35c7cdf3410f8fR1689 > > I can tell it's trying to start on the AC because it panics :-) > > Now, the 9front branch as of today is more up to date. But if you look at > 9/pc64/nix.s, you'll see lots of lines with FIXME > > The problem is that things in Proc have moved (particularly dbgregs), so > the four functions in there need a careful look. Some of the offsets are > way off. > > You can try to compute this by hand (easy in 2011, when dbgregs was like > the 4th thing in Proc, impossible in 2025, when it has moved); just write > some code, that runs in kernel main, to print offsetof() those struct > members, then wrap back around and fix nix.s > > or write a program that runs in user mode, you'll just have to get the > includes right. > > If you get there first, lmk. > > here is my current qemu command line to boot to the embedded rc > qemu-system-x86_64 -kernel ~/Downloads/9pc64 -smp 4 -nographic -serial > mon:stdio -cpu qemu64,+monitor -append console=0 -m 8192 > > you don't need a .iso because you're stopping in the embedded fs. -- Thierry Laronde <tlaronde +AT+ kergis +dot+ com> http://www.kergis.com/ http://kertex.kergis.com/ Key fingerprint = 0FF7 E906 FBAF FE95 FD89 250D 52B1 AE95 6006 F40C ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T91ed5776302b0c4c-Ma6dcec06053cb5d64009c70b Delivery options: https://9fans.topicbox.com/groups/9fans/subscription