Re: Kernel config for Sun 3/50
Trent McNair <[email protected]> Sat, 11 Feb 2023 07:31:04 -0700
| Newsgroups | gmane.os.netbsd.ports.sun3 |
|---|---|
| Message-ID | <CA+zCTPeAe1ZL-Ct3-2Yh=yj6swGFEOtEmQen0-rwj+H4AE3new@mail.gmail.com> |
I went all the way back to NetBSD 2 and was able to boot, just barely. I can also boot SunOS 4.11 comfortably (no surprise). When I try and boot 9.3, I don't successfully get through single-user mode. I'm net-booting, and if I'm not mistaken, there is no remote swap support in single-user mode, so I think I've hit a roadblock and 4M is just not sufficient to get the job done. On Mon, Jan 30, 2023 at 11:35 AM David Brownlee <[email protected]> wrote: > > On Thu, 26 Jan 2023 at 01:32, Chris Hanson <[email protected]> w= rote: >> >> On Jan 20, 2023, at 9:11 PM, Trent McNair <[email protected]> wrote: >> > >> > I commented out the kernel size check code and built a minimal kernel, >> > it does boot and tries to go into single-user mode but only after a >> > very long time . After that, things start crashing, complaining about >> > swap space. I'm not sure at what point in the boot sequence the swap >> > gets activated, but I don't see any indication on my NFS server that >> > the swap file is mounted or accessed. I tried swapctl -A from the >> > shell prompt but that crashed as well. I've attached a boot log below. >> >> One thing I've done when booting minimal-memory systems (such as an HP 9= 000-332 with 8MB) is put attaching a swap file at the very top of /etc/rc, = because I was seeing the attempt to execute rc failing due to lack of memor= y. Normally swap is attached towards the middle or end of /etc/rc, from wha= t I recall anyway. >> > > That's a very good point > > % cd /etc/rc.d && rcorder * | head -20 | fmt > wdogctl fsck_root modules resize_root root devpubd-early devpubd > zfs ccd rndctl cgd lvm raidframe sysctl DISKS dkstrat swap1 fsck > mountcritlocal clearcritlocal > > From a quick look at the rc startup order for NetBSD-10 the system runs a= few things before swap1 gets called. swap2 comes much later (swap1 mounts = swap devices, while swap2 mounts on files). > > There is possibly an argument for a "swap0", to come directly after fsck_= root, which would attempt to mount available swap devices, and swap1 could = be tweaked to ignore existing device mounts > > David