Bug 46871 - HME driver not built as module and miibus dependency broken
Summary: HME driver not built as module and miibus dependency broken
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: sparc64 (show other bugs)
Version: 5.0-CURRENT
Hardware: Any Any
: Normal Affects Only Me
Assignee: Thomas Moestl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-08 16:10 UTC by brandt
Modified: 2003-01-08 18:55 UTC (History)
0 users

See Also:


Attachments
file.diff (1.40 KB, patch)
2003-01-08 16:10 UTC, brandt
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description brandt 2003-01-08 16:10:03 UTC
The driver for the HME ethernet card is not built as a module.

There is a typo in the dependency on miibus in the HME driver.

Fix: Create sys/modules/hme and place the following Makefile into this
directory.

# $FreeBSD: src/sys/modules/xl/Makefile,v 1.13 2001/01/06 14:00:42 obrien Exp $

.PATH: ${.CURDIR}/../../dev/hme

KMOD=	if_hme
SRCS=	if_hme.c if_hme_pci.c opt_bdg.h device_if.h bus_if.h pci_if.h
SRCS+=	miibus_if.h

.include <bsd.kmod.mk>
	

Then apply the following patch and rebuild your kernel.
How-To-Repeat: 
Do

	ls -l /boot/kernel/if_hme.ko

and observe that the file is not found.

Create the module by applying part of the patches below and try to load
the module. Observe that it cannot be loaded.
Comment 1 Thomas Moestl freebsd_committer freebsd_triage 2003-01-08 18:36:26 UTC
Responsible Changed
From-To: freebsd-sparc->tmm

I'll take care of this.
Comment 2 David E. O'Brien freebsd_committer freebsd_triage 2003-01-08 18:53:49 UTC
State Changed
From-To: open->closed

Committed. 
(sorry, saw this PR in freebsd-sparc only, and didn't realize someone had 
already taken it)