[rescue] compiling sunos4 sources
Dan Moisa
dmoisa at gmail.com
Mon Jun 9 21:13:38 EDT 2025
Thanks for the offer. I have no RULES file, there's some thin readme that
doesn't help.
I see "populate", "makelinks" and "mkinclude" that all fail at various
stages. If you have instructions that get me to "make" in either sys/os or
sys/boot without errors then that's a start. I could also use a system
image I can just extract. I can give you a dump of the file system.
Whatever is easier for you.
The goal is to add some debugging statements in sys/os/init_main.c. main
function. I get hung up somewhere after dumpinit(); and before
kern_proc(icode1, 0); can properly execute and get into init. I can tell
because I can compile init with debug and test on an original, but because
it's smaller with fewer deps. I can't compile this part of the kernel
without errors, and it seems to be one of the objects that gets loaded up
in the regular config/kernel configuration. If I got the path here wrong,
please let me know.
In the longer run I need to also figure out how to compile a boot prom with
tweaks, but that can be a different thread.
Thanks again,
Dan.
On Sat, Jun 7, 2025 at 11:51 PM Henry Bent <henry.r.bent at gmail.com> wrote:
> On Sun, 8 Jun 2025 at 02:39, Dan Moisa via rescue <rescue at sunhelp.org>
> wrote:
>
>> Anyone know how to unpack and set up the sources for sunos4 so they
>> compile? I'm getting tripped with SCCS, etc and the only resource I found
>> at
>> https://archive.org/details/bitsavers_sunsunos3.eInstallationGuide198610_158634
>> isn't helping.
>>
>> I need to modify sys/os/init_main.c to debug a hang-up. If anyone has
>> experience with the kernel code, pls let me know.
>>
>
> Yes, I have done this. The source tree should be in /usr/src and reading
> RULES should tell you what you need to know. If you have a more specific
> question, show me what you're doing and we can try to figure it out.
>
> -Henry
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://sunhelp.org/pipermail/rescue_sunhelp.org/attachments/20250609/ffa24e5c/attachment.html>
More information about the rescue
mailing list