Subject: port-sparc/27070: 2.0_RC1 fails to netboot on 16MB SparcStation 1+
To: None <gnats-bugs@gnats.NetBSD.org>
From: Greg Oster <oster@cs.usask.ca>
List: netbsd-bugs
Date: 09/28/2004 19:40:40
>Number:         27070
>Category:       port-sparc
>Synopsis:       2.0_RC1 fails to netboot on a 16MB SparcStation 1+
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-sparc-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 29 01:41:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Greg Oster
>Release:        NetBSD 2.0_RC1 as of 20040926
>Organization:
Sometimes
>Environment:

16MB SparcStation 1+, booting via the net.  Bootblocks, kernels, etc. 
are all from 2.0_RC1.  Supporting OS is 2.0_BETA on i386.

>Description:
	The 2.0_RC1 kernel for NetBSD/sparc appears to be too big.  
On serial console I see:

Booting netbsd
Trying BOOTP protocol... net_open: client addr: 192.168.1.10
net_open: subnet mask: 255.255.255.0
net_open: net gateway: 192.168.1.11
net_open: server addr: 192.168.1.8
net_open: server path: /u3/export/sparc/root
net_open: file name: netbsd
ip address: 192.168.1.10, netmask: 255.255.255.0, gateway: 192.168.1.11
root addr=192.168.1.8 path=/u3/export/sparc/root
Cannot load netbsd: error=27

which is EFBIG ("File too large").  Kernel size is:

-rwxr-xr-x  1 root  wheel  3577697 Sep 28 19:03 netbsd*

Bootblock in question is this one:
-r--r--r--  1 root  wheel  64296 Sep 28 19:14 /tftpboot/boot.net
built fresh from same 2.0_RC1 sources.

>How-To-Repeat:
	Cross-build 2.0_RC1 for sparc on i386.  Attempt to boot a 
fresh net-install of NetBSD 2.0_RC1 on a SparcStation 1+ that has
16 1MB sticks for a total of 16MB ram.  Be disappointed when it
says "Cannot load netbsd".

>Fix:
	Put the kernel on a diet ("not likely"), or, preferably, 
make bootblocks capable of dealing with larger kernels.



>Release-Note:
>Audit-Trail:
>Unformatted: