Port-sun3 archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: Kernel config for Sun 3/50
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.
>b le(0,0,0)
Boot: le(0,0,0)
Using IP Address 192.168.0.32 = C0A80020
Booting from tftp server at 192.168.0.12 = C0A8000C
Downloaded 24260 bytes from tftp server.
>> NetBSD/sun3 netboot [1.13 (Thu Aug 4 15:30:37 UTC 2022)]
Using IP Address 192.168.0.32 = C0A80020
netboot: trying netbsd
1172092+83668 [139296+128809]=0x174474
starting program at 0x4000
console is ttya
[ 1.0000000] Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002,
2003, 2004, 2005,
[ 1.0000000] 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013,
2014, 2015, 2016, 2017,
[ 1.0000000] 2018, 2019, 2020, 2021, 2022
[ 1.0000000] The NetBSD Foundation, Inc. All rights reserved.
[ 1.0000000] Copyright (c) 1982, 1986, 1989, 1991, 1993
[ 1.0000000] The Regents of the University of California. All
rights reserved.
[ 1.0000000] NetBSD 9.3 (MYKERNEL) #23: Thu Jan 19 14:47:24 MST 2023
[ 1.0000000] root@fedora:/usr/src/netbsd/obj/sys/arch/sun3/compile/MYKERNEL
[ 1.0000000] Model: sun3 50
[ 1.0000000] fpu: mc68881
[ 1.0000000] total memory = 4096 KB
[ 1.0000000] avail memory = 2664 KB
[ 1.0000000] mainbus0 (root)
[ 1.0000000] obio0 at mainbus0
[ 1.0000000] zsc0 at obio0 addr 0x0 ipl 6: (softpri 3)
[ 1.0000000] zsc0: channel 0 not configured
[ 1.0000000] zsc0: channel 1 not configured
[ 1.0000000] zsc1 at obio0 addr 0x20000 ipl 6: (softpri 3)
[ 1.0000000] zstty0 at zsc1 channel 0 (console i/o)
[ 1.0000000] zstty1 at zsc1 channel 1
[ 1.0000000] eeprom0 at obio0 addr 0x40000
[ 1.0000000] oclock0 at obio0 addr 0x60000 ipl 5: intersil7170
[ 1.0000000] memerr0 at obio0 addr 0x80000 ipl 7: (Parity memory)
[ 1.0000000] intreg0 at obio0 addr 0xa0000
[ 1.0000000] le0 at obio0 addr 0x120000 ipl 3: address 08:00:20:00:47:49
[ 1.0000000] le0: 8 receive buffers, 2 transmit buffers
[ 1.0000000] obmem0 at mainbus0
[ 1.0000000] enabling interrupts
[ 8.6600250] boot device: le0
[ 8.6800250] root on le0
[ 8.7000250] nfs_boot: trying RARP (and RPC/bootparam)
[ 11.7900250] nfs_boot: client_addr=192.168.0.32 (RARP from 192.168.0.12)
[ 20.9200250] nfs_boot: server_addr=192.168.0.12
[ 20.9300250] nfs_boot: hostname=sun350
[ 21.1400250] nfs_boot: gateway=192.168.0.1
[ 21.1500250] nfs_boot: my_mask=255.255.255.0
[ 28.0900250] root on 192.168.0.12:/export/root/netbsd
[ 28.1000250] kern.module.path=/stand/sun3/9.3/modules
[ 28.1100250] after mountroothook_destroy
[ 28.1400250] after inittodr
[ 28.1600250] after getnanotime
[ 28.1700250] after mutex
[ 28.1800250] after binuptime
[ 28.1900250] after cd_shcestate
[ 28.2100250] after uvm_swap_init
[ 28.2500250] after config_filnalize_mountroot
[ 28.5500250] init: copying out path `/sbin/init' 11
[ 32.7100250] after sys_execve
[ 2041.3400250] UVM: pid 3 (sh), uid 0 killed: out of swap
[ 2707.8300250] UVM: pid 2 (sh), uid 0 killed: out of swap
[ 5785.2900250] UVM: pid 5 (sysctl), uid 0 killed: out of swap
init: `/bin/sh' on `/etc/rc' terminated abnormally, going to single user mode
[ 65446.5500250] UVM: pid 7 (hostname), uid 0 killed: out of swap
[1] Killed hostname
We recommend that you create a non-root account and use su(1) for root access.
[ 67710.4500250] UVM: pid 8 (test), uid 0 killed: out of swap
[1] Killed /bin/test -z "${HOST}"
[ 69631.8300250] UVM: pid 9 (sh), uid 0 killed: out of swap
[1] Killed (set -o tabcomplete 2>/dev/null)
# ls
[1] Abort trap ls
# swapctl -A
[1] Abort trap swapctl -A
# swapctl -A
[1] Abort trap swapctl -A
On Wed, Jan 18, 2023 at 4:03 PM David Brownlee <abs%absd.org@localhost> wrote:
>
> On Wed, 18 Jan 2023 at 19:02, Trent McNair <tmcnair%gmail.com@localhost> wrote:
> >
> > Thanks!
> >
> > 1.1m is as small as I've been able to go. This is smaller than my
> > SunOS kernel which made me curious.
>
> There may also be a chunk of bss which is not expressed in the
> filesize ("size netbsd" may help)
>
> > Sun-3 Architecture manual
> > (http://www.bitsavers.org/pdf/sun/sun3/Sun-3_Architecture_Manual_Ver_1.0_Jan85.pdf)
> > states:
> >
> > Main memory shadowes video, memory in the range of physical addresses
> > starting at 1 megabytes and extending for 128 kilobytes. This
> > area of main memory
> > is called the copy region. If the copy enable bit in the
> > system enable register is
> > set then data written into this copy region is also written
> > into the video memory at
> > the same location within the 128K region. A read from the copy
> > region returns the
> > data in main memory and does not affect the video memory
> >
> > This would seem to indicate that if I'm not using the framebuffer
> > (which I am not) I could comment out the Sun 3/50 size check. I'll
> > give it a try over the weekend.
>
> Now _that_ is interesting. If it works then that check should
> definitely be conditional on the framebuffer being enabled.
>
> Mmm, I wonder if it's possible to have a kernel with bwtwo to have a
> fixed 128K of zero data at exactly the right region to overlap with
> the framebuffer. Presumably not too hard if that is already in the
> data/bss area...
>
> Looking forward to the next update! :)
>
> David
Home |
Main Index |
Thread Index |
Old Index