DaemonForums  

Go Back   DaemonForums > FreeBSD > FreeBSD Installation and Upgrading

FreeBSD Installation and Upgrading Installing and upgrading FreeBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 6th January 2010
FreeBee FreeBee is offline
Real Name: A name is just a word or a label, not really me!
Port Guard
 
Join Date: Jan 2010
Location: My own head.
Posts: 39
Thanked 0 Times in 0 Posts
Question Rebuilding kernel: ath_hal error

Hello there,

I'm trying to rebuild my kernel in order to include support for my Atheros wireless network card. This produces an error.

Code:
# uname -r
8.0-RELEASE
Kernel config:

Code:
#
# newkernel -- Specific kernel configuration file for FreeBSD/i386
#
# For more information on this file, please read the config(5) manual page,
# and/or 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.519.2.6 2009/11/17 15:56:45 jhb Exp $

#cpu		I486_CPU
#cpu		I586_CPU
cpu		I686_CPU
ident		newkernel

# To statically compile in device wiring instead of /boot/device.hints
#hints		"GENERIC.hints"		# Default places to look for devices.

# Use the following to compile in values accessible to the kernel
# through getenv() (or kenv(1) in userland). The format of the file
# is 'variable=value', see kenv(1)
#
# env		"GENERIC.env"

makeoptions	DEBUG=-g		# Build kernel with gdb(1) debug symbols

options 	SCHED_ULE		# ULE scheduler
options 	PREEMPTION		# Enable kernel thread preemption
options 	INET			# InterNETworking
#options 	INET6			# IPv6 communications protocols
options 	SCTP			# Stream Control Transmission Protocol
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 	UFS_GJOURNAL		# Enable gjournal-based UFS journaling
options 	MD_ROOT			# MD is a potential root device
#options 	NFSCLIENT		# Network Filesystem Client
#options 	NFSSERVER		# Network Filesystem Server
#options 	NFSLOCKD		# Network Lock Manager
#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_PART_GPT		# GUID Partition Tables.
options 	GEOM_LABEL		# Provides labelization
options 	COMPAT_43TTY		# BSD 4.3 TTY compat (sgtty)
#options 	COMPAT_FREEBSD4		# Compatible with FreeBSD4
#options 	COMPAT_FREEBSD5		# Compatible with FreeBSD5
options 	COMPAT_FREEBSD6		# Compatible with FreeBSD6
options 	COMPAT_FREEBSD7		# Compatible with FreeBSD7
#options 	SCSI_DELAY=5000		# Delay (in ms) before probing SCSI
#options 	KTRACE			# ktrace(1) support
options 	STACK			# stack(9) support
options 	SYSVSHM			# SYSV-style shared memory
#options 	SYSVMSG			# SYSV-style message queues
#options 	SYSVSEM			# SYSV-style semaphores
options 	P1003_1B_SEMAPHORES	# POSIX-style semaphores
options 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
options 	PRINTF_BUFR_SIZE=128	# Prevent printf output being interspersed.
options 	KBD_INSTALL_CDEV	# install a CDEV entry in /dev
options 	HWPMC_HOOKS		# Necessary kernel hooks for hwpmc(4)
options 	AUDIT			# Security event auditing
options 	MAC			# TrustedBSD MAC Framework
options		FLOWTABLE		# per-cpu routing cache
#options 	KDTRACE_HOOKS		# Kernel DTrace hooks

# To make an SMP kernel, the next two lines are needed
#options 	SMP			# Symmetric MultiProcessor Kernel
device		apic			# I/O APIC

# CPU frequency control
device		cpufreq

# Bus support.
device		acpi
#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

# SCSI peripherals

# RAID controllers interfaced to the SCSI subsystem

# RAID controllers

# atkbdc0 controls both the keyboard and the PS/2 mouse
device		atkbdc		# AT keyboard controller
device		atkbd		# AT keyboard
device		psm		# PS/2 mouse

#device		kbdmux		# keyboard multiplexer

device		vga		# VGA video card driver
options		VESA
options		SC_PIXEL_MODE
device		splash		# Splash screen and screen saver support

# syscons is the default console driver, resembling an SCO console
device		sc

device		agp		# support several AGP chipsets

# Power management support (see NOTES for more options)
device		apm
# Add suspend/resume support for the i8254.
device		pmtimer

# PCCARD (PCMCIA) support
# PCMCIA and cardbus bridge support
device		cbb		# cardbus (yenta) bridge
device		pccard		# PC Card (16-bit) bus
device		cardbus		# CardBus (32-bit) bus

# Serial (COM) ports
#device		uart		# Generic UART driver

# Parallel port
#device		ppc
#device		ppbus		# Parallel port bus (required)
#device		lpt		# Printer
#device		plip		# TCP/IP over parallel
#device		ppi		# Parallel port interface device
#device		vpo		# Requires scbus and da

# If you've got a "dumb" serial or parallel PCI card that is
# supported by the puc(4) glue driver, uncomment the following
# line to enable it (connects to sio, uart and/or ppc drivers):
#device		puc

# PCI Ethernet NICs.

# PCI Ethernet NICs that use the common MII bus controller code.
# NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
device          miibus     # MII bus support
device		vr		# VIA Rhine, Rhine II

# Wireless NIC cards
device		wlan		# 802.11 support
options 	IEEE80211_DEBUG	# enable debug msgs
options 	IEEE80211_AMPDU_AGE # age frames in AMPDU reorder q's
options 	IEEE80211_SUPPORT_MESH	# enable 802.11s draft support
device		wlan_wep	# 802.11 WEP support
device		wlan_ccmp	# 802.11 CCMP support
device		wlan_tkip	# 802.11 TKIP support
device		wlan_amrr	# AMRR transmit rate control algorithm
#device		an		# Aironet 4500/4800 802.11 wireless NICs.
device		ath		# Atheros pci/cardbus NIC's
device		ath_hal		# pci/cardbus chip support
#options 	AH_SUPPORT_AR5416	# enable AR5416 tx/rx descriptors
device		ath_rate_sample	# SampleRate tx rate control for ath
#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		tun		# Packet tunnel.
device		pty		# BSD-style compatibility pseudo ttys
device		md		# Memory "disks"
device		gif		# IPv6 and IPv4 tunneling
device		faith		# IPv6-to-IPv4 relaying (translation)
device		firmware	# firmware assist module

# 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		uhid		# "Human Interface Devices"
device		ukbd		# Keyboard
device		ulpt		# Printer
device		umass		# Disks/Mass storage - Requires scbus and da
device		ums		# Mouse
#device		urio		# Diamond Rio 500 MP3 player

# USB Serial devices

# USB Ethernet, requires miibus

# USB Wireless

# FireWire support
Compile error:

Code:
ant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-a
rith -Winline -Wcast-qual  -Wundef -Wno-pointer-sign -fformat-extensions -nostdi
nc  -I. -I/usr/src/sys -I/usr/src/sys/contrib/altq -D_KERNEL -DHAVE_KERNEL_OPTIO
N_HEADERS -include opt_global.h -fno-common -finline-limit=8000 --param inline-u
nit-growth=100 --param large-function-growth=1000  -mno-align-long-strings -mpre
ferred-stack-boundary=2  -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffree
standing -fstack-protector -Werror  /usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_r
ecv.c -I/usr/src/sys/dev/ath -I/usr/src/sys/dev/ath/ath_hal
/usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c: In function 'ar5416ProcRxDesc
':
/usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c:111: error: 'struct ath_rx_sta
tus' has no member named 'rs_flags'
/usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c:119: error: 'struct ath_rx_sta
tus' has no member named 'rs_rssi_ctl'
/usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c:120: error: 'struct ath_rx_sta
tus' has no member named 'rs_rssi_ctl'
/usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c:121: error: 'struct ath_rx_sta
tus' has no member named 'rs_rssi_ctl'
/usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c:122: error: 'struct ath_rx_sta
tus' has no member named 'rs_rssi_ext'
/usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c:123: error: 'struct ath_rx_sta
tus' has no member named 'rs_rssi_ext'
/usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c:124: error: 'struct ath_rx_sta
tus' has no member named 'rs_rssi_ext'
/usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c:135: error: 'struct ath_rx_sta

/usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c:136: error: 'struct ath_rx_sta
tus' has no member named 'rs_moreaggr'
/usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c:140: error: 'struct ath_rx_sta
tus' has no member named 'rs_flags'
/usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c:142: error: 'struct ath_rx_sta
tus' has no member named 'rs_flags'
/usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c:145: error: 'struct ath_rx_sta
tus' has no member named 'rs_flags'
/usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c:147: error: 'struct ath_rx_sta
tus' has no member named 'rs_flags'
/usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c:149: error: 'struct ath_rx_sta
tus' has no member named 'rs_flags'
/usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c:151: error: 'struct ath_rx_sta
tus' has no member named 'rs_flags'
*** Error code 1

Stop in /usr/obj/usr/src/sys/newkernel.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
Any ideas?
Reply With Quote
  #2   (View Single Post)  
Old 6th January 2010
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,140
Thanked 182 Times in 149 Posts
Default

Isn't there a module you can bind to the kernel with kldload(8)?
That way no kernel recompilation is needed
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #3   (View Single Post)  
Old 6th January 2010
FreeBee FreeBee is offline
Real Name: A name is just a word or a label, not really me!
Port Guard
 
Join Date: Jan 2010
Location: My own head.
Posts: 39
Thanked 0 Times in 0 Posts
Question

Quote:
Originally Posted by J65nko View Post
Isn't there a module you can bind to the kernel with kldload(8)?
That way no kernel recompilation is needed
One could also eat tofu instead of killing cows.

I want to build my own kernel.
Reply With Quote
  #4   (View Single Post)  
Old 6th January 2010
FreeBee FreeBee is offline
Real Name: A name is just a word or a label, not really me!
Port Guard
 
Join Date: Jan 2010
Location: My own head.
Posts: 39
Thanked 0 Times in 0 Posts
Exclamation Resolved

Quote:
Originally Posted by FreeBee View Post
One could also eat tofu instead of killing cows.

I want to build my own kernel.
I have already solved this myself.
Reply With Quote
  #5   (View Single Post)  
Old 6th January 2010
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,140
Thanked 182 Times in 149 Posts
Default

Dear cow killer

Next time, if you still have the GENERIC config file around, you could make things easier by showing a context diff instead of showing the complete configuration
Code:
diff -u  'GENERIC-kernel.conf'  'mynewkernel.conf'
The error is:
Quote:
/usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c: In function 'ar5416ProcRxDesc
':
/usr/src/sys/dev/ath/ath_hal/ar5416/ar5416_recv.c:111: error: 'struct ath_rx_sta
tus' has no member named 'rs_flags'
And what did you comment out in your kernel config?
Quote:
#options AH_SUPPORT_AR5416 # enable AR5416 tx/rx descriptors
I suggest you remove the comment so this gets included and try again.

Good lukc from your tofu/tahu eating friend who didn't compile a FreeBSD kernel for years
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
  #6   (View Single Post)  
Old 6th January 2010
FreeBee FreeBee is offline
Real Name: A name is just a word or a label, not really me!
Port Guard
 
Join Date: Jan 2010
Location: My own head.
Posts: 39
Thanked 0 Times in 0 Posts
Question Irrelevant remarks, etc.

[irrelevant human primate crap]
May I decide what I want to do with FreeBSD and how I want to use it? Thank you. I drown in compilation error output, so how would I know what you in particular find relevant?
[/irrelevant human primate crap]

I already found out about AH_SUPPORT_AR5416 (I have no AR5416 though). The kernel compiles fine now but hangs half way through the booting process.

Config diff:

Code:
--- /usr/src/sys/i386/conf/GENERIC	2009-11-17 16:56:45.000000000 +0100
+++ /usr/src/sys/i386/conf/newkernel	2010-01-06 18:40:54.000000000 +0100
@@ -1,5 +1,5 @@
 #
-# GENERIC -- Generic kernel configuration file for FreeBSD/i386
+# newkernel -- Specific kernel configuration file for FreeBSD/i386
 #
 # For more information on this file, please read the config(5) manual page,
 # and/or the handbook section on Kernel Configuration Files:
@@ -18,10 +18,10 @@
 #
 # $FreeBSD: src/sys/i386/conf/GENERIC,v 1.519.2.6 2009/11/17 15:56:45 jhb Exp $
 
-cpu		I486_CPU
-cpu		I586_CPU
+#cpu		I486_CPU
+#cpu		I586_CPU
 cpu		I686_CPU
-ident		GENERIC
+ident		newkernel
 
 # To statically compile in device wiring instead of /boot/device.hints
 #hints		"GENERIC.hints"		# Default places to look for devices.
@@ -33,11 +33,11 @@
 # env		"GENERIC.env"
 
 makeoptions	DEBUG=-g		# Build kernel with gdb(1) debug symbols
-
+options		CPU_FASTER_5X86_FPU	# enables faster FPU exception handle
 options 	SCHED_ULE		# ULE scheduler
 options 	PREEMPTION		# Enable kernel thread preemption
 options 	INET			# InterNETworking
-options 	INET6			# IPv6 communications protocols
+#options 	INET6			# IPv6 communications protocols
 options 	SCTP			# Stream Control Transmission Protocol
 options 	FFS			# Berkeley Fast Filesystem
 options 	SOFTUPDATES		# Enable FFS soft updates support
@@ -45,27 +45,27 @@
 options 	UFS_DIRHASH		# Improve performance on big directories
 options 	UFS_GJOURNAL		# Enable gjournal-based UFS journaling
 options 	MD_ROOT			# MD is a potential root device
-options 	NFSCLIENT		# Network Filesystem Client
-options 	NFSSERVER		# Network Filesystem Server
-options 	NFSLOCKD		# Network Lock Manager
-options 	NFS_ROOT		# NFS usable as /, requires NFSCLIENT
+#options 	NFSCLIENT		# Network Filesystem Client
+#options 	NFSSERVER		# Network Filesystem Server
+#options 	NFSLOCKD		# Network Lock Manager
+#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 	PROCFS			# Process filesystem (requires PSEUDOFS)
+#options 	PSEUDOFS		# Pseudo-filesystem framework
 options 	GEOM_PART_GPT		# GUID Partition Tables.
 options 	GEOM_LABEL		# Provides labelization
 options 	COMPAT_43TTY		# BSD 4.3 TTY compat (sgtty)
-options 	COMPAT_FREEBSD4		# Compatible with FreeBSD4
-options 	COMPAT_FREEBSD5		# Compatible with FreeBSD5
+#options 	COMPAT_FREEBSD4		# Compatible with FreeBSD4
+#options 	COMPAT_FREEBSD5		# Compatible with FreeBSD5
 options 	COMPAT_FREEBSD6		# Compatible with FreeBSD6
 options 	COMPAT_FREEBSD7		# Compatible with FreeBSD7
-options 	SCSI_DELAY=5000		# Delay (in ms) before probing SCSI
-options 	KTRACE			# ktrace(1) support
+#options 	SCSI_DELAY=5000		# Delay (in ms) before probing SCSI
+#options 	KTRACE			# ktrace(1) support
 options 	STACK			# stack(9) support
 options 	SYSVSHM			# SYSV-style shared memory
-options 	SYSVMSG			# SYSV-style message queues
-options 	SYSVSEM			# SYSV-style semaphores
+#options 	SYSVMSG			# SYSV-style message queues
+#options 	SYSVSEM			# SYSV-style semaphores
 options 	P1003_1B_SEMAPHORES	# POSIX-style semaphores
 options 	_KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time extensions
 options 	PRINTF_BUFR_SIZE=128	# Prevent printf output being interspersed.
@@ -77,108 +77,67 @@
 #options 	KDTRACE_HOOKS		# Kernel DTrace hooks
 
 # To make an SMP kernel, the next two lines are needed
-options 	SMP			# Symmetric MultiProcessor Kernel
+#options 	SMP			# Symmetric MultiProcessor Kernel
 device		apic			# I/O APIC
 
+# MISCELLANEOUS DEVICES AND OPTIONS
+device          speaker         #Play IBM BASIC-style noises out your speaker
+device          apm_saver       # Requires APM
+
 # CPU frequency control
 device		cpufreq
 
 # Bus support.
 device		acpi
-device		eisa
+#device		eisa
 device		pci
 
 # Floppy drives
-device		fdc
+#device		fdc
 
 # ATA and ATAPI devices
 device		ata
 device		atadisk		# ATA disk drives
-device		ataraid		# ATA RAID drives
+#device		ataraid		# ATA RAID drives
 device		atapicd		# ATAPI CDROM drives
-device		atapifd		# ATAPI floppy drives
-device		atapist		# ATAPI tape 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
-options 	AHC_REG_PRETTY_PRINT	# Print register bitfields in debug
-					# output.  Adds ~128k to driver.
-device		ahd		# AHA39320/29320 and onboard AIC79xx devices
-options 	AHD_REG_PRETTY_PRINT	# Print register bitfields in debug
-					# output.  Adds ~215k to driver.
-device		amd		# AMD 53C974 (Tekram DC-390(T))
-device		hptiop		# Highpoint RocketRaid 3xxx series
-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		# DPT Smartcache III, IV - See NOTES for options
-device		hptmv		# Highpoint RocketRAID 182x
-device		hptrr		# Highpoint RocketRAID 17xx, 22xx, 23xx, 25xx
-device		iir		# Intel Integrated RAID
-device		ips		# IBM (Adaptec) ServeRAID
-device		mly		# Mylex AcceleRAID/eXtremeRAID
-device		twa		# 3ware 9000 series PATA/SATA RAID
-
-# RAID controllers
-device		aac		# Adaptec FSA RAID
-device		aacp		# SCSI passthrough for aac (requires CAM)
-device		ida		# Compaq Smart RAID
-device		mfi		# LSI MegaRAID SAS
-device		mlx		# Mylex DAC960 family
-device		pst		# Promise Supertrak SX6000
-device		twe		# 3ware ATA RAID
-
 # atkbdc0 controls both the keyboard and the PS/2 mouse
 device		atkbdc		# AT keyboard controller
 device		atkbd		# AT keyboard
 device		psm		# PS/2 mouse
 
-device		kbdmux		# keyboard multiplexer
+#device		kbdmux		# keyboard multiplexer
 
 device		vga		# VGA video card driver
-
 device		splash		# Splash screen and screen saver support
 
+# To include support for VGA VESA video modes
+options         VESA
+options		SC_PIXEL_MODE
+device          dpms            # DPMS suspend & resume via VESA BIOS
+
+# ACPI Fujitsu Extras (Buttons)
+device          acpi_fujitsu
+
+# ACPI Video Extensions (LCD backlight/brightness, video output, etc.)
+device          acpi_video
+
 # syscons is the default console driver, resembling an SCO console
 device		sc
 
 device		agp		# support several AGP chipsets
 
 # Power management support (see NOTES for more options)
-#device		apm
+device		apm
 # Add suspend/resume support for the i8254.
 device		pmtimer
 
+# Direct Rendering modules for 3D acceleration.
+device          drm             # DRM core module required by DRM drivers
+
 # PCCARD (PCMCIA) support
 # PCMCIA and cardbus bridge support
 device		cbb		# cardbus (yenta) bridge
@@ -186,15 +145,9 @@
 device		cardbus		# CardBus (32-bit) bus
 
 # Serial (COM) ports
-device		uart		# Generic UART driver
+#device		uart		# Generic UART driver
 
 # Parallel port
-device		ppc
-device		ppbus		# Parallel port bus (required)
-device		lpt		# Printer
-device		plip		# TCP/IP over parallel
-device		ppi		# Parallel port interface device
-#device		vpo		# Requires scbus and da
 
 # If you've got a "dumb" serial or parallel PCI card that is
 # supported by the puc(4) glue driver, uncomment the following
@@ -202,77 +155,20 @@
 #device		puc
 
 # PCI Ethernet NICs.
-device		de		# DEC/Intel DC21x4x (``Tulip'')
-device		em		# Intel PRO/1000 Gigabit Ethernet Family
-device		igb		# Intel PRO/1000 PCIE Server Gigabit Family
-device		ixgb		# Intel PRO/10GbE Ethernet Card
-device		le		# AMD Am7900 LANCE and Am79C9xx PCnet
-device		ti		# Alteon Networks Tigon I/II gigabit Ethernet
-device		txp		# 3Com 3cR990 (``Typhoon'')
-device		vx		# 3Com 3c590, 3c595 (``Vortex'')
 
 # PCI Ethernet NICs that use the common MII bus controller code.
 # NOTE: Be sure to keep the 'device miibus' line in order to use these NICs!
-device		miibus		# MII bus support
-device		ae		# Attansic/Atheros L2 FastEthernet
-device		age		# Attansic/Atheros L1 Gigabit Ethernet
-device		alc		# Atheros AR8131/AR8132 Ethernet
-device		ale		# Atheros AR8121/AR8113/AR8114 Ethernet
-device		bce		# Broadcom BCM5706/BCM5708 Gigabit Ethernet
-device		bfe		# Broadcom BCM440x 10/100 Ethernet
-device		bge		# Broadcom BCM570xx Gigabit Ethernet
-device		dc		# DEC/Intel 21143 and various workalikes
-device		et		# Agere ET1310 10/100/Gigabit Ethernet
-device		fxp		# Intel EtherExpress PRO/100B (82557, 82558)
-device		jme		# JMicron JMC250 Gigabit/JMC260 Fast Ethernet
-device		lge		# Level 1 LXT1001 gigabit Ethernet
-device		msk		# Marvell/SysKonnect Yukon II Gigabit Ethernet
-device		nfe		# nVidia nForce MCP on-board Ethernet
-device		nge		# NatSemi DP83820 gigabit Ethernet
-#device		nve		# nVidia nForce MCP on-board Ethernet Networking
-device		pcn		# AMD Am79C97x PCI 10/100 (precedence over 'le')
-device		re		# RealTek 8139C+/8169/8169S/8110S
-device		rl		# RealTek 8129/8139
-device		sf		# Adaptec AIC-6915 (``Starfire'')
-device		sis		# Silicon Integrated Systems SiS 900/SiS 7016
-device		sk		# SysKonnect SK-984x & SK-982x gigabit Ethernet
-device		ste		# Sundance ST201 (D-Link DFE-550TX)
-device		stge		# Sundance/Tamarack TC9021 gigabit Ethernet
-device		tl		# Texas Instruments ThunderLAN
-device		tx		# SMC EtherPower II (83c170 ``EPIC'')
-device		vge		# VIA VT612x gigabit Ethernet
+device          miibus     # MII bus support
 device		vr		# VIA Rhine, Rhine II
-device		wb		# Winbond W89C840F
-device		xl		# 3Com 3c90x (``Boomerang'', ``Cyclone'')
-
-# ISA Ethernet NICs.  pccard NICs included.
-device		cs		# Crystal Semiconductor CS89x0 NIC
-# 'device ed' requires 'device miibus'
-device		ed		# NE[12]000, SMC Ultra, 3c503, DS8390 cards
-device		ex		# Intel EtherExpress Pro/10 and Pro/10+
-device		ep		# Etherlink III based cards
-device		fe		# Fujitsu MB8696x based cards
-device		ie		# EtherExpress 8/16, 3C507, StarLAN 10 etc.
-device		sn		# SMC's 9000 series of Ethernet chips
-device		xe		# Xircom pccard Ethernet
 
 # Wireless NIC cards
-device		wlan		# 802.11 support
-options 	IEEE80211_DEBUG	# enable debug msgs
-options 	IEEE80211_AMPDU_AGE # age frames in AMPDU reorder q's
-options 	IEEE80211_SUPPORT_MESH	# enable 802.11s draft support
-device		wlan_wep	# 802.11 WEP support
-device		wlan_ccmp	# 802.11 CCMP support
-device		wlan_tkip	# 802.11 TKIP support
-device		wlan_amrr	# AMRR transmit rate control algorithm
-device		an		# Aironet 4500/4800 802.11 wireless NICs.
 device		ath		# Atheros pci/cardbus NIC's
 device		ath_hal		# pci/cardbus chip support
 options 	AH_SUPPORT_AR5416	# enable AR5416 tx/rx descriptors
 device		ath_rate_sample	# SampleRate tx rate control for ath
-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.
+device          wlan            # 802.11 support
+device          wlan_ccmp       # 802.11 CCMP support
+device          wlan_tkip       # 802.11 TKIP support
 
 # Pseudo devices.
 device		loop		# Network loopback
@@ -290,9 +186,13 @@
 # Note that 'bpf' is required for DHCP.
 device		bpf		# Berkeley packet filter
 
+# SCSI peripherals
+device          scbus           # SCSI bus (required for SCSI)
+device          da              # Direct Access (disks)
+
 # USB support
 device		uhci		# UHCI PCI->USB interface
-device		ohci		# OHCI 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
@@ -301,35 +201,13 @@
 device		ulpt		# Printer
 device		umass		# Disks/Mass storage - Requires scbus and da
 device		ums		# Mouse
-device		urio		# Diamond Rio 500 MP3 player
+#device		urio		# Diamond Rio 500 MP3 player
+
 # USB Serial devices
-device		u3g		# USB-based 3G modems (Option, Huawei, Sierra)
-device		uark		# Technologies ARK3116 based serial adapters
-device		ubsa		# Belkin F5U103 and compatible serial adapters
-device		uftdi		# For FTDI usb serial adapters
-device		uipaq		# Some WinCE based devices
-device		uplcom		# Prolific PL-2303 serial adapters
-device		uslcom		# SI Labs CP2101/CP2102 serial adapters
-device		uvisor		# Visor and Palm devices
-device		uvscom		# USB serial support for DDI pocket's PHS
+
 # 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
-device		udav		# Davicom DM9601E USB
+
 # USB Wireless
-device		rum		# Ralink Technology RT2501USB wireless NICs
-device		uath		# Atheros AR5523 wireless NICs
-device		ural		# Ralink Technology RT2500USB wireless NICs
-device		zyd		# ZyDAS zb1211/zb1211b wireless NICs
 
 # FireWire support
-device		firewire	# FireWire bus code
-#device		sbp		# SCSI over FireWire (Requires scbus and da)
-device		fwe		# Ethernet over FireWire (non-standard!)
-device		fwip		# IP over FireWire (RFC 2734,3146)
-device		dcons		# Dumb console driver
-device		dcons_crom	# Configuration ROM for dcons
+
Reply With Quote
  #7   (View Single Post)  
Old 6th January 2010
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Helpful companion
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Thanked 193 Times in 184 Posts
Default

You realize that your posting on a forum, right?
Reply With Quote
  #8   (View Single Post)  
Old 6th January 2010
FreeBee FreeBee is offline
Real Name: A name is just a word or a label, not really me!
Port Guard
 
Join Date: Jan 2010
Location: My own head.
Posts: 39
Thanked 0 Times in 0 Posts
Question This forum is about FreeBSD

Quote:
Originally Posted by BSDfan666 View Post
You realize that your posting on a forum, right?
Is that at all relevant? This forum is about FreeBSD not about you nor me. Do you realise that perhaps I am a person with an autism spectrum disorder?

I ask a question and what do I get for an answer: don't build a specific kernel. I can not do anything useful with such an answer.

I know why I ask what I ask. I just don't say things without reason. It's not logical to attack me as if I were a neurotypical person, which I am NOT.
Reply With Quote
  #9   (View Single Post)  
Old 6th January 2010
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,140
Thanked 182 Times in 149 Posts
Default

Nobody is attacking you and you surely have the right to run FreeBSD like you want to

Quote:
Originally Posted by FreeBee
I'm trying to rebuild my kernel in order to include support for my Atheros wireless network card.
I have been answering forum questions like this since 2003 and have assisted quite a lot of people like you who "got drowned in kernel recompilation errors".

Most of them being new to FreeBSD, did not know that instead of recompiling a kernel to add support for a device, you also could load a kernel module to reach the same goal. That is the only reason why I pointed out the module load alternative.

If you would have stated that you know of loadable modules, but preferred to compile support into the kernel, everybody would have known of your intention and not anybody would have suggested the module work-a-round.

Re: your kernel hang

Does the kernel display any message? If it does, what are the last messages the kernel displays?

Or is it just a (temporary) hang during the startup scripts? Many times a tempory hang is caused by a failing forward or reverse DNS lookup.

Quote:
Originally Posted by FreeBee
options INET6 # IPv6 communications protocols
+#options INET6 # IPv6 communications protocols
You disabled IPv6 in your kernel. If something is trying to do a IPv6 lookup that could add some considerable delay. And some things like the pf packet filter probably will not work at all without IPv6 support.

You also have to be careful with disabling SCSI stuff, drivers for optical devices like CD use a SCSI emulation layer.

Some more details, at least when the kernel displays something, would be helpful
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
Old 7th January 2010
FreeBee FreeBee is offline
Real Name: A name is just a word or a label, not really me!
Port Guard
 
Join Date: Jan 2010
Location: My own head.
Posts: 39
Thanked 0 Times in 0 Posts
Smile Another day, more energy :-)

[QUOTE]
Quote:
Originally Posted by J65nko View Post
Nobody is attacking you and you surely have the right to run FreeBSD like you want to
If I may clarify just one more thing: I really am a person with an autism spectrum disorder so to me it's generally very difficult to notice and understand other people's intentions or behaviour. It takes longer for me to see and experience that not all people are hostile towards me. This remark is not meant as an excuse or anything and I really do appreciate your attempts to help me!

Quote:
Re: your kernel hang

Does the kernel display any message? If it does, what are the last messages the kernel displays?
It just stops after displaying this (no LED flashing to indicate disk activity):

uhub0: 2 ports with 2 removable, self powered
uhub1: 2 ports with 2 removable, self powered
uhub2: 2 ports with 2 removable, self powered
Reply With Quote
Old 7th January 2010
FreeBee FreeBee is offline
Real Name: A name is just a word or a label, not really me!
Port Guard
 
Join Date: Jan 2010
Location: My own head.
Posts: 39
Thanked 0 Times in 0 Posts
Default

I have included scbus and da because these are needed by umass (USB).
Reply With Quote
Old 7th January 2010
FreeBee FreeBee is offline
Real Name: A name is just a word or a label, not really me!
Port Guard
 
Join Date: Jan 2010
Location: My own head.
Posts: 39
Thanked 0 Times in 0 Posts
Default

Wait a minute. I now saw this:

Code:
ad0: 57231 MB <FUJITSU MHV2060AT> at ata0-master UDMA100
Rout mount waiting for: usbus2 usbus1 usbus0
I'm not trying to boot from an external USB disk or anything.
Reply With Quote
Old 7th January 2010
FreeBee FreeBee is offline
Real Name: A name is just a word or a label, not really me!
Port Guard
 
Join Date: Jan 2010
Location: My own head.
Posts: 39
Thanked 0 Times in 0 Posts
Default

Exactly at the spot where my kernel hangs, the GENERIC kernel displays this message:

Quote:
usbus3: 480Mbps High Speed USB v2.0
... followed by:

Quote:
ad0: 57231 MB <FUJITSU MHV2060AT> at ata0-master UDMA100
Reply With Quote
Old 7th January 2010
FreeBee FreeBee is offline
Real Name: A name is just a word or a label, not really me!
Port Guard
 
Join Date: Jan 2010
Location: My own head.
Posts: 39
Thanked 0 Times in 0 Posts
Default

I found it myself! Wow, this part now works and I can boot FreeBSD-8.0 on my laptop, displaying nice fonts in a much nicer framebuffer window.

I now have a very slim and super speedy kernel. Dit is geil!
Reply With Quote
Old 7th January 2010
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,140
Thanked 182 Times in 149 Posts
Default

Congratulations with your working kernel

Could you be so kind to post here the diff -u output of your working kernel config? That way others can learn from it too.

You also could post some details about your laptop, (Manufacturer, model nr etc) and the complete dmesg output in our FreeBSD laptop discussion thread.

RE: Autism
Thank you for having the courage and guts to tell this. It indeed explains the little rough start here. Never mind, we cleared things up. Zand erover

BTW The son of my sister-in-law, a very intelligent and smart boy has Aspenberger.

Re: Speedy and lightweight kernel

Are you ready for some surprising news? Some of the brightest in the BSD world have a different opinion. From the OpenBSD FAQ about custom kernels
Quote:
You will not get a faster system.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
Old 8th January 2010
FreeBee FreeBee is offline
Real Name: A name is just a word or a label, not really me!
Port Guard
 
Join Date: Jan 2010
Location: My own head.
Posts: 39
Thanked 0 Times in 0 Posts
Question Strange things are happening

Re: speedy kernel opinions

I just don't like loading stuff on my computer that I don't need. Whether or not it becomes faster by doing so, I wouldn't really know. I am not especially focused on: faster, better, more, etc. The point is that I like to control and understand what I'm doing and I like my own custom environment.

Re: autism

Actually it should be: Asperger's Syndrome (which is basically the same as: classical autism combined with a high IQ, although I am not particularly concerned about IQs because one can not directly measure people's actual intelligence and then express it using exact numbers). Besides, IQ is no measure at all for how well one performs in real life society and apart form that, there are many types of "IQ". Anyway ...

Re: learning and wireless networking

As soon as I have everything working the way it should (according to myself) I will post diff's, etc. Strange things still happen for now:

With my newly built kernel in place I started working on the issue of wireless networking using the instructions in the FreeBSD handbook.

Quote:
wpa_supplicant[1171]: Failed to initialize driver interface
ELOOP: remaining socket: sock=5 eloop_data=0x28407140 user_data=0x2840e040 handler=0x8069f40
/etc/rc.d/wpa_supplicant: WARNING: failed to start wpa_supplicant
Starting Network: lo0 ath0.
ath0: ... status: no carrier
As soon as I entered this:

Code:
# ifconfig ath0 up scan
... my laptop completely locked up and the keyboard and mouse completely froze so I had to perform a hard shutdown. After that my system did not come up again as before and it hung during the boot process at exactly the same spot where it used to hang when my kernel wasn't booting correctly at all. Very strange.

I had to enter:

Code:
# unload kernel
# boot /boot/kernel.old/kernel
in order to restore my custom built kernel and that worked.

I looked at /var/messages/log and noticed that it still doesn't display this:

Quote:
usbus3: 480Mbps High Speed USB v2.0
... although GENERIC does, by the way!
Reply With Quote
Old 9th January 2010
FreeBee FreeBee is offline
Real Name: A name is just a word or a label, not really me!
Port Guard
 
Join Date: Jan 2010
Location: My own head.
Posts: 39
Thanked 0 Times in 0 Posts
Default

Some reasons why it is forbidden to build a custom kernel:

* You do not need to, normally: but I want to learn and experiment. Define "normal".
* You will not get a faster system: I don't care. Define "fast".
* You are likely to make a less reliable machine: define "less reliable".
* You will not get any support from developers: is that logical?
* You will be expected to reproduce any problem with a GENERIC kernel before developers take any problem report seriously: I might be expected to fly to the moon as well before eating tofu :-)).
* Users and developers will laugh at you when you break your system: is that "civilized"?
* Custom compiler options usually do a better job of exposing compiler problems than improving system performance: then create a better compiler.
Reply With Quote
Old 9th January 2010
FreeBee FreeBee is offline
Real Name: A name is just a word or a label, not really me!
Port Guard
 
Join Date: Jan 2010
Location: My own head.
Posts: 39
Thanked 0 Times in 0 Posts
Default

Being a first time user, I have come quite far, so far, playing with FreeBSD 8.0 for a couple of days. Wi-Fi now works fine. Very fast and robust TCP/IP stack! Compiling source code goes smoothly and quickly, compared to other OSs.

It would be nice though for the on-line handbook to reflect the dramatic changes that occurred between 7 and 8 with regard to wireless networking.

Still, my custom kernel hangs and everything freezes, but this time right after netif. How can I use the debugging stuff that is compiled into the kernel to find out what happens?
Reply With Quote
Old 9th January 2010
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,140
Thanked 182 Times in 149 Posts
Default

Quote:
Originally Posted by FreeBee View Post
Some reasons why it is forbidden to build a custom kernel:

* You do not need to, normally: but I want to learn and experiment. Define "normal".
* You will not get a faster system: I don't care. Define "fast".
* You are likely to make a less reliable machine: define "less reliable".
* You will not get any support from developers: is that logical?
* You will be expected to reproduce any problem with a GENERIC kernel before developers take any problem report seriously: I might be expected to fly to the moon as well before eating tofu :-)).
* Users and developers will laugh at you when you break your system: is that "civilized"?
* Custom compiler options usually do a better job of exposing compiler problems than improving system performance: then create a better compiler.
The only reason why I referred you to the OpenBSD FAQ about custom kernels, is that I wanted to show, that according to the OpenBSD people, a smaller kernel doesn't bring you advantages in speed.
You don't need to believe them

You are using FreeBSD, which has a huge number of developers and resources compared with the much smaller OpenBSD project. Just compare the number of FreeBSD ports with the number of OpenBSD ports.

The OpenBSD developers rather spend time on improving OpenBSD than solving custom kernel compilation problems on the mailing lists.
In their opinion, decreasing kernel size is not relevant nowadays. People now have a couple of gigabytes of memory in their machines.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
Old 9th January 2010
J65nko J65nko is offline
Administrator
 
Join Date: May 2008
Location: Budel - the Netherlands
Posts: 3,140
Thanked 182 Times in 149 Posts
Default

Quote:
Originally Posted by FreeBee View Post
Still, my custom kernel hangs and everything freezes, but this time right after netif. How can I use the debugging stuff that is compiled into the kernel to find out what happens?
I never used the debugging stuff, so in this respect I cannot be of any help

If I would want a smaller kernel with ath support compiled in, I would start by just adding the ath stuff in a fresh kernel config.
If that works fine, then I would remove kernel support for network interface cards I don't and never will have. Then I would use this kernel for a while and see how that goes.

If you change one single option in a working kernel and this makes your kernel hang, then you know the cause. If you change a lot of options at one time, and you get a hang, it is rather difficult to figure out, which change triggered the hang.
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel Compilation --> Error code 2 --> geom_part_pc98 (FreeBSD 7.0) stou FreeBSD Installation and Upgrading 15 11th October 2008 04:43 AM
compile kernel error mfaridi FreeBSD Installation and Upgrading 9 14th July 2008 02:26 AM
Can't load kernel error on PC-BSD / FreeSBIE lazerbeat FreeBSD Installation and Upgrading 3 5th July 2008 08:39 PM
Kernel error with ieee802111 disappearedng FreeBSD General 1 29th June 2008 10:56 AM
Kernel Driver Not accesable error In Virtural Box on Ubntu hardy FloridaBSD Other BSD and UNIX/UNIX-like 8 28th May 2008 01:11 AM


All times are GMT. The time now is 06:46 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick