Re: Upgrade 5.4 - 6.0 errors.
Below is the instructions I followed which I copied from the current /usr/src/UPDATING file. Ben Hacker Jr wrote: I am following the instructions from /usr/src/UPGRADING To upgrade in-place from 5.x-stable or higher to 6.x-stable --- make buildworld [9] make kernel KERNCONF=YOUR_KERNEL_HERE [8] [1] [3] mergemaster -p [5] make installworld mergemaster -i [4] I am still getting ... . . . Should these instructions be modified/updated to be: To upgrade in-place from 5.x-stable or higher to 6.x-stable --- make buildworld [9] make buildkernel KERNCONF=YOUR_KERNEL_HERE[8] make installkernel KERNCONF=YOUR_KERNEL_HERE [1] [3] mergemaster -p [5] make installworld mergemaster -i [4] I don't claim know enough about this to make instructions but after booting into single user mode (and I am sure after the ) I found that I was still running my 5.4 kernel. I decided to try "make installkernel" and reboot again which fixed the version for me. Just my two cents... -- Ben Hacker, Jr. Network Security Analyst strbenjr {at} yahoo.com -- -- -- ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Upgrade 5.4 - 6.0 errors.
That was IT! ! ! -- >>> Kernel build for HACK06 completed on Thu May 11 07:54:10 EDT 2006 -- Thanks!! Can someone add the word (-Required-) to the comments on that line please?? Like on "device USB" Nick Withers wrote: G'day Ben! On Thu, 11 May, 2006 2:45 pm, Ben Hacker Jr wrote: I have posted my complete Kernel config file below. I _believe_ you need include the wlan device. Maybe I need to enable the "CAM infrastructure."?? Adi Pircalabu wrote: On Wed, 10 May 2006 08:10:34 -0400 Ben Hacker Jr wrote: linking kernel.debug if_ural.o(.text+0x3bb): In function `ural_attach': /usr/src/sys/dev/usb/if_ural.c:458: undefined reference to `ieee80211_ieee2mhz' if_ural.o(.text+0x3ef):/usr/src/sys/dev/usb/if_ural.c:463: undefined reference to `ieee80211_ieee2mhz' 'm afraid you customized your config file by commenting a mandatory device / option which is needed for building. Please post your complete config file. OTOH, can you build GENERIC? # HACK06 -- Generic kernel configuration file for FreeBSD/i386 # (snip) ## Wireless NIC cards #device wlan # 802.11 support #device an # Aironet 4500/4800 802.11 wireless NICs. #device awi # BayStack 660 and others #device ral # Ralink Technology RT2500 wireless NICs. #device wi # WaveLAN/Intersil/Symbol 802.11 wireless NICs. ##device wl # Older non 802.11 Wavelan wireless NIC. # Pseudo devices. device loop # Network loopback device random # Entropy device device ether # Ethernet support device sl # Kernel SLIP device ppp # Kernel PPP device tun # Packet tunnel. device pty # Pseudo-ttys (telnet etc) device md # Memory "disks" device gif # IPv6 and IPv4 tunneling device faith # IPv6-to-IPv4 relaying (translation) # The `bpf' device enables the Berkeley Packet Filter. # Be aware of the administrative consequences of enabling this! # Note that 'bpf' is required for DHCP. device bpf # Berkeley packet filter # USB support device uhci # UHCI PCI->USB interface device ohci # OHCI PCI->USB interface #device ehci # EHCI PCI->USB interface (USB 2.0) device usb # USB Bus (required) #device udbp # USB Double Bulk Pipe devices device ugen # Generic #device uhid # "Human Interface Devices" device ukbd # Keyboard device ulpt # Printer device umass # Disks/Mass storage - Requires scbus and da device ums # Mouse device ural # Ralink Technology RT2500USB wireless NICs device urio # Diamond Rio 500 MP3 player device uscanner # Scanners ## USB Ethernet, requires miibus #device aue # ADMtek USB Ethernet #device axe # ASIX Electronics USB Ethernet #device cdce # Generic USB over Ethernet #device cue # CATC USB Ethernet #device kue # Kawasaki LSI USB Ethernet #device rue # RealTek RTL8150 USB Ethernet # FireWire support device firewire # FireWire bus code device sbp # SCSI over FireWire (Requires scbus and da) device fwe # Ethernet over FireWire (non-standard!) -- Ben Hacker, Jr. Network Security Analyst strbenjr {at} yahoo.com -- -- -- Ben Hacker, Jr. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Upgrade 5.4 - 6.0 errors.
G'day Ben! On Thu, 11 May, 2006 2:45 pm, Ben Hacker Jr wrote: > I have posted my complete Kernel config file below. I _believe_ you need include the wlan device. > Maybe I need to enable the "CAM infrastructure."?? > > Adi Pircalabu wrote: > >>On Wed, 10 May 2006 08:10:34 -0400 Ben Hacker Jr wrote: >> >> >>>linking kernel.debug >>>if_ural.o(.text+0x3bb): In function `ural_attach': >>>/usr/src/sys/dev/usb/if_ural.c:458: undefined reference to >>>`ieee80211_ieee2mhz' >>>if_ural.o(.text+0x3ef):/usr/src/sys/dev/usb/if_ural.c:463: undefined >>>reference to `ieee80211_ieee2mhz' >>> >>> >>I'm afraid you customized your config file by commenting a mandatory >>device / option which is needed for building. Please post your complete >>config file. >>OTOH, can you build GENERIC? >> > # > # HACK06 -- Generic kernel configuration file for FreeBSD/i386 > # (snip) > ## Wireless NIC cards > #device wlan # 802.11 support > #device an # Aironet 4500/4800 802.11 wireless NICs. > #device awi # BayStack 660 and others > #device ral # Ralink Technology RT2500 wireless NICs. > #device wi # WaveLAN/Intersil/Symbol 802.11 wireless NICs. > ##device wl # Older non 802.11 Wavelan wireless NIC. > > # Pseudo devices. > device loop # Network loopback > device random # Entropy device > device ether # Ethernet support > device sl # Kernel SLIP > device ppp # Kernel PPP > device tun # Packet tunnel. > device pty # Pseudo-ttys (telnet etc) > device md # Memory "disks" > device gif # IPv6 and IPv4 tunneling > device faith # IPv6-to-IPv4 relaying (translation) > > # The `bpf' device enables the Berkeley Packet Filter. > # Be aware of the administrative consequences of enabling this! > # Note that 'bpf' is required for DHCP. > device bpf # Berkeley packet filter > > # USB support > device uhci # UHCI PCI->USB interface > device ohci # OHCI PCI->USB interface > #device ehci # EHCI PCI->USB interface (USB 2.0) > device usb # USB Bus (required) > #device udbp # USB Double Bulk Pipe devices > device ugen # Generic > #device uhid # "Human Interface Devices" > device ukbd # Keyboard > device ulpt # Printer > device umass # Disks/Mass storage - Requires scbus and da > device ums # Mouse > device ural # Ralink Technology RT2500USB wireless NICs > device urio # Diamond Rio 500 MP3 player > device uscanner # Scanners > ## USB Ethernet, requires miibus > #device aue # ADMtek USB Ethernet > #device axe # ASIX Electronics USB Ethernet > #device cdce # Generic USB over Ethernet > #device cue # CATC USB Ethernet > #device kue # Kawasaki LSI USB Ethernet > #device rue # RealTek RTL8150 USB Ethernet > > # FireWire support > device firewire # FireWire bus code > device sbp # SCSI over FireWire (Requires scbus and da) > device fwe # Ethernet over FireWire (non-standard!) > > -- > Ben Hacker, Jr. > Network Security Analyst > strbenjr {at} yahoo.com > -- -- -- -- Nick Withers email: [EMAIL PROTECTED] Web: http://www.nickwithers.com Mobile: +61 414 397 446 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: Upgrade 5.4 - 6.0 errors.
I have posted my complete Kernel config file below. Maybe I need to enable the "CAM infrastructure."?? Adi Pircalabu wrote: On Wed, 10 May 2006 08:10:34 -0400 Ben Hacker Jr wrote: linking kernel.debug if_ural.o(.text+0x3bb): In function `ural_attach': /usr/src/sys/dev/usb/if_ural.c:458: undefined reference to `ieee80211_ieee2mhz' if_ural.o(.text+0x3ef):/usr/src/sys/dev/usb/if_ural.c:463: undefined reference to `ieee80211_ieee2mhz' I'm afraid you customized your config file by commenting a mandatory device / option which is needed for building. Please post your complete config file. OTOH, can you build GENERIC? # # HACK06 -- Generic kernel configuration file for FreeBSD/i386 # # For more information on this file, please read the handbook section on # Kernel Configuration Files: # # http://www.FreeBSD.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-config.html # # The handbook is also available locally in /usr/share/doc/handbook # if you've installed the doc distribution, otherwise always see the # FreeBSD World Wide Web server (http://www.FreeBSD.org/) for the # latest information. # # An exhaustive list of options and more detailed explanations of the # device lines is also present in the ../../conf/NOTES and NOTES files. # If you are in doubt as to the purpose or necessity of a line, check first # in NOTES. # # $FreeBSD: src/sys/i386/conf/GENERIC,v 1.429.2.9 2006/04/30 17:39:42 scottl Exp $ machine i386 #cpu I486_CPU cpu I586_CPU cpu I686_CPU ident HACK06 # To statically compile in device wiring instead of /boot/device.hints #hints "GENERIC.hints" # Default places to look for devices. makeoptions DEBUG=-g # Build kernel with gdb(1) debug symbols #options SCHED_ULE # ULE scheduler options SCHED_4BSD # 4BSD scheduler options PREEMPTION # Enable kernel thread preemption options INET # InterNETworking #options INET6 # IPv6 communications protocols options FFS # Berkeley Fast Filesystem options SOFTUPDATES # Enable FFS soft updates support options UFS_ACL # Support for access control lists options UFS_DIRHASH # Improve performance on big directories options MD_ROOT # MD is a potential root device options NFSCLIENT # Network Filesystem Client options NFSSERVER # Network Filesystem Server options NFS_ROOT # NFS usable as /, requires NFSCLIENT options MSDOSFS # MSDOS Filesystem options CD9660 # ISO 9660 Filesystem options PROCFS # Process filesystem (requires PSEUDOFS) options PSEUDOFS # Pseudo-filesystem framework options GEOM_GPT # GUID Partition Tables. options COMPAT_43 # Compatible with BSD 4.3 [KEEP THIS!] options COMPAT_FREEBSD4 # Compatible with FreeBSD4 options COMPAT_FREEBSD5 # Compatible with FreeBSD5 options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI options KTRACE # ktrace(1) support options SYSVSHM # SYSV-style shared memory options SYSVMSG # SYSV-style message queues options SYSVSEM # SYSV-style semaphores options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions options KBD_INSTALL_CDEV # install a CDEV entry in /dev options AHC_REG_PRETTY_PRINT # Print register bitfields in debug # output. Adds ~128k to driver. options AHD_REG_PRETTY_PRINT # Print register bitfields in debug # output. Adds ~215k to driver. options ADAPTIVE_GIANT # Giant mutex is adaptive. options SMP # Symmetric MultiProcessor Kernel device apic # I/O APIC # Bus support. device eisa device pci # Floppy drives device fdc ## ATA and ATAPI devices #device ata #device atadisk # ATA disk drives #device ataraid # ATA RAID drives #device atapicd # ATAPI CDROM drives #device atapifd # ATAPI floppy drives #device atapist # ATAPI tape drives #options ATA_STATIC_ID # Static device numbering # SCSI Controllers #device ahb # EISA AHA1742 family device ahc # AHA2940 and onboard AIC7xxx devices #device ahd # AHA39320/29320 and onboard AIC79xx devices #device amd # AMD 53C974 (Tekram DC-390(T)) #device isp # Qlogic family ##device ispfw # Firmware for QLogic HBAs- normally a module #device mpt # LSI-Logic MPT-Fusion ##device ncr # NCR/Symbios Logic #device sym # NCR/Symbios Logic (newer chipsets + those of `ncr') #device trm # Tekram DC395U/UW/F DC315U adapters #device adv # Advansys SCSI adapters #device adw # Advansys wide SCSI adapters #device aha # Adaptec 154x SCSI adapters device aic # Adaptec 15[012]x SCSI adapters, AIC-6[23]60. #device bt # Buslogic/Mylex MultiMaster SCSI adapters #device ncv # NCR 53C500 #device nsp # Workbit Ninja SCSI-3 #device stg # TMC 18C30/18C50 # SCSI peripherals device scbus # SCSI bus (required for SCSI) device ch # SCSI media changers device da # Direct Access (disks) device sa # Sequential Access (tape etc) device cd # CD device pass # Passthrough device (direct SCSI access) device ses # SCSI Environmental Services (and SAF-TE) # RAID controllers interfaced to the SCSI subsystem #device amr # AMI MegaRAID #device arcmsr # Areca SATA II RAID #device asr # DPT SmartRAID V, VI and Adaptec SCSI RAID #device ciss # Compaq Smart RAID 5* #device dpt #
Re: Upgrade 5.4 - 6.0 errors.
I am following the instructions from /usr/src/UPGRADING To upgrade in-place from 5.x-stable or higher to 6.x-stable --- make buildworld [9] make kernel KERNCONF=YOUR_KERNEL_HERE [8] [1] [3] mergemaster -p [5] make installworld mergemaster -i [4] I am still getting the same error/failure when building the Kernel. (I also tried "make buildkernel...") Subhro wrote: On 5/9/06, Ben Hacker Jr <[EMAIL PROTECTED]> wrote: Is there a way to clean out my /usr/src directory and start from scratch (cvsup) in case it is corrupted some how?? rm -rf /usr/src/* $ su root -c "make kernel KERNCONF=HACK06" The correct command is make buildkernel KERNCONF=HACK06 and not make kernel You need to read the handbook :-) Thanks and Best Regards Subhro -- Subhro Kar Security Engineer iViZ Techno Solutions Pvt. Ltd. eRevMax House, 1st Floor Plot XI-16, Sector V Salt Lake City 700091 India [EMAIL PROTECTED] uname -a FreeBSD hackserver.family.hom 5.4-STABLE FreeBSD 5.4-STABLE #0: Mon Sep 12 08:18:05 EDT 2005 [EMAIL PROTECTED]:/usr/src/sys/i386/compile/HACK05 i386 [EMAIL PROTECTED] su root -c "make buildkernel KERNCONF=HACK06" ... MAKE=/usr/obj/usr/src/make.i386/make sh /usr/src/sys/conf/newvers.sh HACK06 cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -g -nostdinc -I- -I. -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica -I/usr/src/sys/contrib/altq -I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/contrib/pf -I/usr/src/sys/contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd -I/usr/src/sys/contrib/ngatm -I/usr/src/sys/dev/twa -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -ffreestanding -Werror vers.c linking kernel.debug if_ural.o(.text+0x3bb): In function `ural_attach': /usr/src/sys/dev/usb/if_ural.c:458: undefined reference to `ieee80211_ieee2mhz' if_ural.o(.text+0x3ef):/usr/src/sys/dev/usb/if_ural.c:463: undefined reference to `ieee80211_ieee2mhz' if_ural.o(.text+0x427):/usr/src/sys/dev/usb/if_ural.c:468: undefined reference to `ieee80211_ieee2mhz' if_ural.o(.text+0x4bb):/usr/src/sys/dev/usb/if_ural.c:480: undefined reference to `ieee80211_ieee2mhz' if_ural.o(.text+0x4e2):/usr/src/sys/dev/usb/if_ural.c:487: undefined reference to `ieee80211_ifattach' if_ural.o(.text+0x513):/usr/src/sys/dev/usb/if_ural.c:493: undefined reference to `ieee80211_media_status' if_ural.o(.text+0x51e):/usr/src/sys/dev/usb/if_ural.c:493: undefined reference to `ieee80211_media_init' if_ural.o(.text+0x580):/usr/src/sys/dev/usb/if_ural.c:507: undefined reference to `ieee80211_announce' if_ural.o(.text+0x628): In function `ural_detach': /usr/src/sys/dev/usb/if_ural.c:535: undefined reference to `ieee80211_ifdetach' if_ural.o(.text+0x73a): In function `ural_free_tx_list': /usr/src/sys/dev/usb/if_ural.c:595: undefined reference to `ieee80211_free_node' if_ural.o(.text+0x8f6): In function `ural_media_change': /usr/src/sys/dev/usb/if_ural.c:673: undefined reference to `ieee80211_media_change' if_ural.o(.text+0x9ac): In function `ural_next_scan': /usr/src/sys/dev/usb/if_ural.c:699: undefined reference to `ieee80211_next_scan' if_ural.o(.text+0xb17): In function `ural_task': /usr/src/sys/dev/usb/if_ural.c:756: undefined reference to `ieee80211_beacon_alloc' if_ural.o(.text+0xc77): In function `ural_txeof': /usr/src/sys/dev/usb/if_ural.c:826: undefined reference to `ieee80211_free_node' if_ural.o(.text+0xd9d): In function `ural_rxeof': /usr/src/sys/dev/usb/if_ural.c:890: undefined reference to `ieee80211_find_rxnode' if_ural.o(.text+0xdb3):/usr/src/sys/dev/usb/if_ural.c:893: undefined reference to `ieee80211_input' if_ural.o(.text+0xdbb):/usr/src/sys/dev/usb/if_ural.c:896: undefined reference to `ieee80211_free_node' if_ural.o(.text+0x1364): In function `ural_tx_data': /usr/src/sys/dev/usb/if_ural.c:1218: undefined reference to `ieee80211_crypto_encap' if_ural.o(.text+0x185c): In function `ural_start': /usr/src/sys/dev/usb/if_ural.c:1321: undefined reference to `ieee80211_find_txnode' if_ural.o(.text+0x1894):/usr/src/sys/dev/usb/if_ural.c:1328: undefined reference to `ieee80211_encap' if_ural.o(.text+0x18a3):/usr/src/sys/dev/usb/if_ural.c:1330: undefined reference to `ieee80211_free_node' if_ural.o(.text+0x18db):/usr/src/sys/dev/usb/if_ural.c:1338: undefined reference to `ieee80211_free_node' if_ural.o(.text+0x19c8): In function `ural_watchdog': /usr/s
Re: Upgrade 5.4 - 6.0 errors.
On 5/9/06, Ben Hacker Jr <[EMAIL PROTECTED]> wrote: Is there a way to clean out my /usr/src directory and start from scratch in case it is corrupted some how?? rm -rf /usr/src/* $ su root -c "make kernel KERNCONF=HACK06" The correct command is make buildkernel KERNCONF=HACK06 and not make kernel You need to read the handbook :-) Manually attempting to build my kernel will yield the following: hackserver$ su root Password: hackserver# pwd /usr/src/sys/i386/conf hackserver# config HACK06 ERROR: version of config(8) does not match kernel! config version = 500013, version required = 63 This is a deprecated method. Not a good idea to try out. :-) Thanks and Best Regards Subhro -- Subhro Kar Security Engineer iViZ Techno Solutions Pvt. Ltd. eRevMax House, 1st Floor Plot XI-16, Sector V Salt Lake City 700091 India ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"