Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Jan 2001 16:49:49 +0300
From:      Odhiambo Washington <wash@iconnect.co.ke>
To:        freebsd-questions@freebsd.org
Cc:        smokey@adl.ussr.net
Subject:   Re: Upgrading from 4.1.1 to 4.2
Message-ID:  <20010110164949.B29601@poeza.iconnect.co.ke>
In-Reply-To: <MPBBLJLABKFCLAHJNBNGKELEIBAA.smokey@adl.ussr.net>;  from "James" on Wed, Jan 10, 2001 at 01:33:45PM %2B1030
References:  <MPBBLJLABKFCLAHJNBNGKELEIBAA.smokey@adl.ussr.net>

next in thread | previous in thread | raw e-mail | index | archive | help
* James <smokey@adl.ussr.net> [20010110 06:04]: writing on the subject 'Upgrading from 4.1.1 to 4.2'

If you installed the sources for 4.2, then do 
cd /usr/src
make buildworld
make buildkernel
make installkernel

boot to single usr mode
mount -u /
mount -a -t ufs
swapon -a
cd /usr/src
make installworld

Maybe you can also do mergemaster.....


James> Howdy,
James> 
James> I just got the 4.2 cd from a local source, and am attempting to upgrade a 4.1.1 machine to this
James> newer version....
James> 
James> Using /stand/sysinstall - I've installed the binaries, source, everything for 4.2
James> 
James> I then rebooted, and it booted with my old 4.1.1 kernel... so I igathered at that stage that I needed
James> to build a new kernel for 4.2...
James> 
James> Using the handbook, I have tried both methods...  ie;
James> 
James> cd /usr/src
James> make buildkernel KERNEL=gw
James> (at this stage, the build fails, with multiple errors)
James> 
James> [a hell of a lot snipped]
James> 
James> /tmp/ccd22960.s:2467: Error: Subtraction of two symbols in different sections "IdlePTD" {.data section} - "KERNBASE" {*UND* section} at file address 1596.
James> *** Error code 1
James> 
James> Stop in /usr/obj/usr/src/sys/gw.
James> *** Error code 1
James> 
James> Stop in /usr/src.
James> *** Error code 1
James> 
James> Stop in /usr/src.
James> [root@laptop:/usr/src] 
James> 
James> /usr/sbin/config gw
James> cd ../../compile/gw
James> make depend
James> make
James>  (at this stage, it dies when trying to 'link the kernel')
James> linking kernel
James> advansys.o: In function `adv_action':
James> advansys.o(.text+0x258): undefined reference to `xpt_freeze_simq'
James> advansys.o(.text+0x542): undefined reference to `xpt_done'
James> advansys.o(.text+0x584): undefined reference to `xpt_done'
James> [a hell of a lot snipped]
James> 
James> 
James> so I've tried both methods of compiling a new kernel, and have no idea what the problem could be
James> 
James> Attached is my kernel config file (gw)
James> 
James> 
James> The machine is a p166/128 meg ram, 15gig ata drive, with highpoint udma controller, generic video card
James> 
James> regards
James> 
James> james
James> 
James> 
James> 
James> #
James> # GENERIC -- Generic kernel configuration file for FreeBSD/i386
James> #
James> # For more information on this file, please read the handbook section on
James> # Kernel Configuration Files:
James> #
James> #    http://www.FreeBSD.org/handbook/kernelconfig-config.html
James> #
James> # The handbook is also available locally in /usr/share/doc/handbook
James> # if you've installed the doc distribution, otherwise always see the
James> # FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the
James> # latest information.
James> #
James> # An exhaustive list of options and more detailed explanations of the
James> # device lines is also present in the ./LINT configuration file. If you are
James> # in doubt as to the purpose or necessity of a line, check first in LINT.
James> #
James> # $FreeBSD: src/sys/i386/conf/GENERIC,v 1.246.2.20 2000/10/31 23:16:07 n_hibma Exp $
James> 
James> machine		i386
James> #cpu		I386_CPU
James> #cpu		I486_CPU
James> cpu		I586_CPU
James> cpu		I686_CPU
James> ident		gw
James> maxusers	32
James> 
James> #makeoptions	DEBUG=-g		#Build kernel with gdb(1) debug symbols
James> 
James> options 	MATH_EMULATE		#Support for x87 emulation
James> options 	INET			#InterNETworking
James> options 	INET6			#IPv6 communications protocols
James> options         IPSEC                   #IP security
James> options         IPSEC_ESP               #IP security (crypto; define w/ IPSEC)
James> options         IPSEC_DEBUG             #debug for IP security
James> options 	FFS			#Berkeley Fast Filesystem
James> options 	FFS_ROOT		#FFS usable as root device [keep this!]
James> options 	SOFTUPDATES		#Enable FFS soft updates support
James> options 	MFS			#Memory Filesystem
James> options 	MD_ROOT			#MD is a potential root device
James> options 	NFS			#Network Filesystem
James> options 	NFS_ROOT		#NFS usable as root device, NFS required
James> options 	MSDOSFS			#MSDOS Filesystem
James> options 	CD9660			#ISO 9660 Filesystem
James> options 	CD9660_ROOT		#CD-ROM usable as root, CD9660 required
James> options 	PROCFS			#Process filesystem
James> options 	COMPAT_43		#Compatible with BSD 4.3 [KEEP THIS!]
James> options 	SCSI_DELAY=15000	#Delay (in ms) before probing SCSI
James> options 	UCONSOLE		#Allow users to grab the console
James> options 	USERCONFIG		#boot -c editor
James> options 	VISUAL_USERCONFIG	#visual boot -c editor
James> options 	KTRACE			#ktrace(1) support
James> options 	SYSVSHM			#SYSV-style shared memory
James> options 	SYSVMSG			#SYSV-style message queues
James> options 	SYSVSEM			#SYSV-style semaphores
James> options 	P1003_1B		#Posix P1003_1B real-time extensions
James> options 	_KPOSIX_PRIORITY_SCHEDULING
James> options		ICMP_BANDLIM		#Rate limit bad replies
James> options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
James> options         PPP_BSDCOMP             #PPP BSD-compress support
James> options         PPP_DEFLATE             #PPP zlib/deflate/gzip support
James> options         PPP_FILTER              #enable bpf filtering (needs bpf)
James> 
James> 
James> 
James> # To make an SMP kernel, the next two are needed
James> #options 	SMP			# Symmetric MultiProcessor Kernel
James> #options 	APIC_IO			# Symmetric (APIC) I/O
James> 
James> device		isa
James> device		eisa
James> device		pci
James> 
James> # Floppy drives
James> device		fdc0	at isa? port IO_FD1 irq 6 drq 2
James> device		fd0	at fdc0 drive 0
James> device		fd1	at fdc0 drive 1
James> 
James> # ATA and ATAPI devices
James> device		ata0	at isa? port IO_WD1 irq 14
James> device		ata1	at isa? port IO_WD2 irq 15
James> device		ata2
James> device		ata3
James> device		ata
James> device		atadisk			# ATA disk drives
James> device		atapicd			# ATAPI CDROM drives
James> device		atapifd			# ATAPI floppy drives
James> device		atapist			# ATAPI tape drives
James> options 	ATA_STATIC_ID		#Static device numbering
James> #options 	ATA_ENABLE_ATAPI_DMA	#Enable DMA on ATAPI devices
James> 
James> # SCSI Controllers
James> #device		ahb		# EISA AHA1742 family
James> #device		ahc		# AHA2940 and onboard AIC7xxx devices
James> #device		amd		# AMD 53C974 (Teckram DC-390(T))
James> #device		isp		# Qlogic family
James> #device		ncr		# NCR/Symbios Logic
James> #device		sym		# NCR/Symbios Logic (newer chipsets)
James> #options		SYM_SETUP_LP_PROBE_MAP=0x40
James> 				# Allow ncr to attach legacy NCR devices when 
James> 				# both sym and ncr are configured
James> 
James> device		adv0	at isa?
James> device		adw
James> device		bt0	at isa?
James> device		aha0	at isa?
James> device		aic0	at isa?
James> 
James> #device		ncv		# NCR 53C500
James> #device		nsp		# Workbit Ninja SCSI-3
James> #device		stg		# TMC 18C30/18C50
James> 
James> # SCSI peripherals
James> #device		scbus		# SCSI bus (required)
James> #device		da		# Direct Access (disks)
James> #device		sa		# Sequential Access (tape etc)
James> #device		cd		# CD
James> #device		pass		# Passthrough device (direct SCSI access)
James> 
James> # RAID controllers interfaced to the SCSI subsystem
James> #device		asr		# DPT SmartRAID V, VI and Adaptec SCSI RAID
James> #device		dpt		# DPT Smartcache - See LINT for options!
James> #device		mly		# Mylex AcceleRAID/eXtremeRAID
James> 
James> # RAID controllers
James> #device		ida		# Compaq Smart RAID
James> #device		amr		# AMI MegaRAID
James> #device		mlx		# Mylex DAC960 family
James> #device		twe		# 3ware Escalade
James> 
James> # atkbdc0 controls both the keyboard and the PS/2 mouse
James> device		atkbdc0	at isa? port IO_KBD
James> device		atkbd0	at atkbdc? irq 1 flags 0x1
James> device		psm0	at atkbdc? irq 12
James> 
James> device		vga0	at isa?
James> 
James> # splash screen/screen saver
James> pseudo-device	splash
James> 
James> # syscons is the default console driver, resembling an SCO console
James> device		sc0	at isa? flags 0x100
James> 
James> # Enable this and PCVT_FREEBSD for pcvt vt220 compatible console driver
James> device		vt0	at isa?
James> options 	XSERVER			# support for X server on a vt console
James> options 	FAT_CURSOR		# start with block cursor
James> # If you have a ThinkPAD, uncomment this along with the rest of the PCVT lines
James> #options 	PCVT_SCANSET=2		# IBM keyboards are non-std
James> 
James> # Floating point support - do not disable.
James> device		npx0	at nexus? port IO_NPX irq 13
James> 
James> # Power management support (see LINT for more options)
James> #device		apm0    at nexus? disable flags 0x20 # Advanced Power Management
James> 
James> # PCCARD (PCMCIA) support
James> #device		card
James> #device		pcic0	at isa? irq 0 port 0x3e0 iomem 0xd0000
James> #device		pcic1	at isa? irq 0 port 0x3e2 iomem 0xd4000 disable
James> 
James> # Serial (COM) ports
James> device		sio0	at isa? port IO_COM1 flags 0x10 irq 4
James> device		sio1	at isa? port IO_COM2 irq 3
James> device		sio2	at isa? disable port IO_COM3 irq 5
James> device		sio3	at isa? disable port IO_COM4 irq 9
James> 
James> # Parallel port
James> device		ppc0	at isa? irq 7
James> device		ppbus		# Parallel port bus (required)
James> device		lpt		# Printer
James> device		plip		# TCP/IP over parallel
James> device		ppi		# Parallel port interface device
James> #device		vpo		# Requires scbus and da
James> 
James> 
James> # PCI Ethernet NICs.
James> #device		de		# DEC/Intel DC21x4x (``Tulip'')
James> #device		fxp		# Intel EtherExpress PRO/100B (82557, 82558)
James> #device		tx		# SMC 9432TX (83c170 ``EPIC'')
James> #device		vx		# 3Com 3c590, 3c595 (``Vortex'')
James> #device		wx		# Intel Gigabit Ethernet Card (``Wiseman'')
James> 
James> # PCI Ethernet NICs that use the common MII bus controller code.
James> # NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
James> device		miibus		# MII bus support
James> #device		dc		# DEC/Intel 21143 and various workalikes
James> #device		pcn		# AMD Am79C79x PCI 10/100 NICs
James> device		rl		# RealTek 8129/8139
James> #device		sf		# Adaptec AIC-6915 (``Starfire'')
James> #device		sis		# Silicon Integrated Systems SiS 900/SiS 7016
James> #device		ste		# Sundance ST201 (D-Link DFE-550TX)
James> #device		tl		# Texas Instruments ThunderLAN
James> #device		vr		# VIA Rhine, Rhine II
James> #device		wb		# Winbond W89C840F
James> #device		xl		# 3Com 3c90x (``Boomerang'', ``Cyclone'')
James> 
James> # ISA Ethernet NICs.
James> #device		ed0	at isa? port 0x280 irq 10 iomem 0xd8000
James> #device		ex
James> #device		ep
James> #device		fe0	at isa? port 0x300
James> # WaveLAN/IEEE 802.11 wireless NICs. Note: the WaveLAN/IEEE really
James> # exists only as a PCMCIA device, so there is no ISA attatement needed
James> # and resources will always be dynamically assigned by the pccard code.
James> #device		wi
James> # Aironet 4500/4800 802.11 wireless NICs. Note: the declaration below will
James> # work for PCMCIA and PCI cards, as well as ISA cards set to ISA PnP
James> # mode (the factory default). If you set the switches on your ISA
James> # card for a manually chosen I/O address and IRQ, you must specify
James> # those paremeters here.
James> #device		an
James> # Xircom Ethernet
James> #device		xe
James> # The probe order of these is presently determined by i386/isa/isa_compat.c.
James> device		ie0	at isa? port 0x300 irq 10 iomem 0xd0000
James> device		le0	at isa? port 0x300 irq 5 iomem 0xd0000
James> device		lnc0	at isa? port 0x280 irq 10 drq 0
James> device		cs0	at isa? port 0x300
James> device		sn0	at isa? port 0x300 irq 10
James> 
James> # Pseudo devices - the number indicates how many units to allocated.
James> pseudo-device	loop		# Network loopback
James> pseudo-device	ether		# Ethernet support
James> pseudo-device	sl	1	# Kernel SLIP
James> pseudo-device	ppp	1	# Kernel PPP
James> pseudo-device	tun		# Packet tunnel.
James> pseudo-device	pty		# Pseudo-ttys (telnet etc)
James> pseudo-device	md		# Memory "disks"
James> pseudo-device	gif	4	# IPv6 and IPv4 tunneling
James> pseudo-device	faith	1	# IPv6-to-IPv4 relaying (translation)
James> pseudo-device	stf	1	# 6to4 IPv6 over IPv4 encapsulation
James> 
James> 
James> # The `bpf' pseudo-device enables the Berkeley Packet Filter.
James> # Be aware of the administrative consequences of enabling this!
James> pseudo-device	bpf		#Berkeley packet filter
James> 
James> # USB support
James> #device		uhci		# UHCI PCI->USB interface
James> #device		ohci		# OHCI PCI->USB interface
James> #device		usb		# USB Bus (required)
James> #device		ugen		# Generic
James> #device		uhid		# "Human Interface Devices"
James> #device		ukbd		# Keyboard
James> #device		ulpt		# Printer
James> #device		umass		# Disks/Mass storage - Requires scbus and da
James> #device		ums		# Mouse
James> #device		uscanner	# Scanners
James> # USB Ethernet, requires mii
James> #device		aue		# ADMtek USB ethernet
James> #device		cue		# CATC USB ethernet
James> #device		kue		# Kawasaki LSI USB ethernet
James> 
James> 
James> 
James> 
James> options         TCP_COMPAT_42           #emulate 4.2BSD TCP bugs
James> options         MROUTING                # Multicast routing 
James> options         IPFIREWALL              #firewall
James> options         IPFIREWALL_VERBOSE      #print information about
James>                                         # dropped packets
James> options         IPFIREWALL_FORWARD      #enable transparent proxy support
James> options         IPFIREWALL_VERBOSE_LIMIT=100    #limit verbosity
James> options         IPFIREWALL_DEFAULT_TO_ACCEPT    #allow everything by default
James> options         IPV6FIREWALL            #firewall for IPv6
James> options         IPV6FIREWALL_VERBOSE
James> options         IPV6FIREWALL_VERBOSE_LIMIT=100
James> options         IPV6FIREWALL_DEFAULT_TO_ACCEPT
James> options         IPDIVERT                #divert sockets
James> options         IPFILTER                #ipfilter support
James> options         IPFILTER_LOG            #ipfilter logging
James> options         IPSTEALTH               #support for stealth forwarding 
James> options         TCPDEBUG
James> 
James> 
James> options         TCP_DROP_SYNFIN         #drop TCP packets with SYN+FIN
James> options         TCP_RESTRICT_RST        #restrict emission of TCP RST
James>   
James> options         ICMP_BANDLIM
James> options         DUMMYNET
James> 
James> 
James> pseudo-device   speaker         #Play IBM BASIC-style noises out your speaker
James> pseudo-device   gzip            #Exec gzipped a.out's
James> pseudo-device   vn              #Vnode driver (turns a file into a device)
James> pseudo-device   snp     3       #Snoop device - to look at pty/vty/etc..
James> pseudo-device   ccd     4       #Concatenated disk driver  
-Wash

--
Odhiambo Washington Inter-Connect Ltd.,
wash@iconnect.co.ke 5th Flr Furaha Plaza
Tel: 254 11 222604 Nkrumah Rd.,
Fax: 254 11 222636 PO Box 83613 MOMBASA, KE.

Once we accept our limits, we go beyond them. -Brendan Francis 


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010110164949.B29601>