Re: (was Re: HEADS UP! MAJOR change to FreeBSD/sparc64) Boot failure on rebuild

From: Ken Smith <kensmith_at_cse.Buffalo.EDU>
Date: Thu, 11 Mar 2004 22:23:04 -0500
On Thu, Mar 11, 2004 at 09:13:34PM -0600, Tillman Hodgson wrote:
> 
> Ok, I cvsup'ed, 'make buildworld', 'make buildkernel', 'mergemaster -p',
> 'make installworld', 'make installkernel' and 'mergemaster'.  And ...
> hrrm. It did not Go As Planned:
> 
> FreeBSD 5.2-CURRENT #0: Thu Mar 11 18:44:21 CST 2004
>     toor_at_caliban.rospa.ca:/usr/obj/usr/src/sys/CALIBAN
> Preloaded elf kernel "/boot/kernel/kernel" at 0xc0506000.
> Timecounter "tick" frequency 360000000 Hz quality 0
> real memory  = 402653184 (384 MB)
> avail memory = 376864768 (359 MB)
> cpu0: Sun Microsystems UltraSparc-IIi Processor (360.00 MHz CPU)
> nexus0: <OpenFirmware Nexus device>
> cpu0 on nexus0
> Timecounters tick every 0.976 msec
> ipfw2 initialized, divert enabled, rule-based forwarding enabled,
> default to accept, logging limited to 5 packets/entry by default
> IPsec: Initialized Security Association Processing.
> IP Filter: v3.4.31 initialized.  Default = pass all, Logging = enabled
> Mounting root from ufs:/dev/ad0a
> setrootbyname failed
> ffs_mountroot: can't find rootvp
> Root mount failed: 6
> Manual root filesystem specification:
>   <fstype>:<device>  Mount <device> using filesystem <fstype>
>                        eg. ufs:/dev/da0a
>   ?                  List valid disk boot devices
>   <empty line>       Abort manual input
> mountroot> ?
> List of GEOM managed disk devices:
> 
> ^^^
> Blank list, naturally.
> 
> It's a good thing I have a serial-over-ethernet terminal server :-)
> 
> Any suggestions? This looks like a geom boot disk thing rather than a
> 64bTT thing, but what with the timing I thought I'd better explore all
> scenarios.

I *just* finished tracking this down like five minutes ago.  If my
digging around is correct this is caused by the latest version of
sys/kern/subr_smp.c.  If you apply the patch below and override
the kernel build's dislike for errors during compile (I was doing
this:

	env WERROR= make kernel

because just commenting out the one line results in things being
defined but not used...) the kernel seems to work.  You can probably
just back out this one file to rev 1.182 instead of the above contortions
if you want.

I just sent the analysis off to the person that did this
commit.  I could be wrong about all this but we'll see what he says.

Index: subr_smp.c
===================================================================
RCS file: /home/ncvs/src/sys/kern/subr_smp.c,v
retrieving revision 1.183
diff -u -r1.183 subr_smp.c
--- subr_smp.c  9 Mar 2004 03:37:20 -0000       1.183
+++ subr_smp.c  12 Mar 2004 02:49:47 -0000
_at__at_ -121,7 +121,9 _at__at_
        1,              /* no softc */
 };
 static devclass_t cpu_devclass;
+/*
 DRIVER_MODULE(cpu, nexus, cpu_driver, cpu_devclass, 0, 0);
+*/
  
 #ifdef SMP
 /* Enable forwarding of a signal to a process running on a different CPU */


-- 
						Ken Smith
- From there to here, from here to      |       kensmith_at_cse.buffalo.edu
  there, funny things are everywhere.   |
                      - Theodore Geisel |
Received on Thu Mar 11 2004 - 18:23:05 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:47 UTC