Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 19 May 2002 19:38:34 +1200
From:      James Pole <james.pole@paradise.net.nz>
To:        freebsd-stable@freebsd.org
Subject:   Why does support for USB depend on Ethernet support?
Message-ID:  <200205191938.34955.james.pole@paradise.net.nz>

next in thread | raw e-mail | index | archive | help

--------------Boundary-00=_A8LCJCGKOYGVDGWCAD40
Content-Type: text/plain;
  charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

Hi guys,

When I add support for USB ("uhci" and "usb") and USB Mices ("usm") witho=
ut=20
including the "ether" pseudo device and compile the kernel, I get this er=
ror:

cc -c -O -pipe -march=3Dk6 -Wall -Wredundant-decls -Wnested-externs=20
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline=20
-Wcast-qual  -fformat-extensions -ansi  -nostdinc -I- -I. -I../..=20
-I../../../include -I../../contrib/ipfilter  -D_KERNEL -include opt_globa=
l.h=20
-elf  -mpreferred-stack-boundary=3D2  ../../i386/i386/machdep.c
cc -c -O -pipe -march=3Dk6 -Wall -Wredundant-decls -Wnested-externs=20
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline=20
-Wcast-qual  -fformat-extensions -ansi  -nostdinc -I- -I. -I../..=20
-I../../../include -I../../contrib/ipfilter  -D_KERNEL -include opt_globa=
l.h=20
-elf  -mpreferred-stack-boundary=3D2  setdef0.c
cc -c -O -pipe -march=3Dk6 -Wall -Wredundant-decls -Wnested-externs=20
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline=20
-Wcast-qual  -fformat-extensions -ansi  -nostdinc -I- -I. -I../..=20
-I../../../include -I../../contrib/ipfilter  -D_KERNEL -include opt_globa=
l.h=20
-elf  -mpreferred-stack-boundary=3D2  config.c
cc -c -O -pipe -march=3Dk6 -Wall -Wredundant-decls -Wnested-externs=20
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline=20
-Wcast-qual  -fformat-extensions -ansi  -nostdinc -I- -I. -I../..=20
-I../../../include -I../../contrib/ipfilter  -D_KERNEL -include opt_globa=
l.h=20
-elf  -mpreferred-stack-boundary=3D2  setdef1.c
touch hack.c
cc -elf -shared -nostdlib hack.c -o hack.So
rm -f hack.c
sh ../../conf/newvers.sh SATURN
cc -c -O -pipe -march=3Dk6 -Wall -Wredundant-decls -Wnested-externs=20
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline=20
-Wcast-qual  -fformat-extensions -ansi  -nostdinc -I- -I. -I../..=20
-I../../../include -I../../contrib/ipfilter  -D_KERNEL -include opt_globa=
l.h=20
-elf  -mpreferred-stack-boundary=3D2  vers.c
linking kernel
if.o: In function `if_setlladdr':
if.o(.text+0x1b08): undefined reference to `arp_ifinit'
usb_ethersubr.o: In function `usbintr':
usb_ethersubr.o(.text+0x31): undefined reference to `ether_input'
*** Error code 1

Stop in /usr/src/sys/compile/SATURN.

If I add Ethernet support (by adding the "ether" pseudo device) the kerne=
l=20
compiles fine. I find it odd that USB support depends on support of Ether=
net,=20
because as far as I'm aware the basic USB devices ("uhci" and "usb") and =
the=20
USB mouse device has nothing to do with ethernet support. Is there any=20
particular reason why this is happening?

- James

--=20
James Pole  - www.jamespole.cjb.net
--------------Boundary-00=_A8LCJCGKOYGVDGWCAD40
Content-Type: text/plain;
  charset="us-ascii";
  name="SATURN"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="SATURN"

machine		i386
cpu		I686_CPU
ident		SATURN
maxusers	0

options 	INET
options 	FFS
options 	FFS_ROOT
options 	SOFTUPDATES
options 	UFS_DIRHASH
options 	MSDOSFS
options 	CD9660
options 	PROCFS
options 	COMPAT_43
options 	UCONSOLE
options 	KTRACE
options 	SYSVSHM
options 	SYSVMSG
options 	SYSVSEM
options 	P1003_1B
options 	_KPOSIX_PRIORITY_SCHEDULING
options		ICMP_BANDLIM
options 	KBD_INSTALL_CDEV
options 	ATA_STATIC_ID
options		USER_LDT

device		isa
device		pci

device		fdc0	at isa? port IO_FD1 irq 6 drq 2
device		fd0	at fdc0 drive 0

device		ata
device		atadisk
device		atapicd

# SCSI Controllers
device		ahb		# EISA AHA1742 family
device		ahc		# AHA2940 and onboard AIC7xxx devices
device		amd		# AMD 53C974 (Tekram DC-390(T))
device		isp		# Qlogic family
device		ncr		# NCR/Symbios Logic

# SCSI peripherals
device		scbus		# SCSI bus (required)
device		da		# Direct Access (disks)
device		sa		# Sequential Access (tape etc)
device		cd		# CD
device		pass		# Passthrough device (direct SCSI access)

device		atkbdc0	at isa? port IO_KBD
device		atkbd0	at atkbdc? irq 1 flags 0x1

device		vga0	at isa?
device		sc0	at isa? flags 0x100
device		npx0	at nexus? port IO_NPX irq 13

device		sio0	at isa? port IO_COM1 flags 0x10 irq 4
device		sio1	at isa? port IO_COM2 irq 3

device		ppc0	at isa? irq 7
device		ppbus
device		lpt
device		ppi

device          uhci
device          usb
device          ums

pseudo-device	loop
#pseudo-device	ether
pseudo-device	tun
pseudo-device	pty

--------------Boundary-00=_A8LCJCGKOYGVDGWCAD40--


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




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