Bug 94483 - [ath] ath_hal does not work on 6-release/sparc64
Summary: [ath] ath_hal does not work on 6-release/sparc64
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: sparc64 (show other bugs)
Version: 6.1-PRERELEASE
Hardware: Any Any
: Normal Affects Only Me
Assignee: Sam Leffler
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-15 16:30 UTC by Sascha Luck
Modified: 2011-02-23 00:53 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sascha Luck 2006-03-15 16:30:16 UTC
ath_hal on sparc64 does not load

(/usr/src/sys/modules/ath_hal)

root@serval# make
Warning: Object directory not changed from original
/usr/src/sys/modules/ath_hal
make: don't know how to make
/usr/src/sys/modules/ath_hal/../../contrib/dev/ath/public/sparc64-elf.hal.o.uu.
Stop

This file is actually called sparc64-be-elf.hal.o.uu. After copying to
'sparc64-elf.hal.o.uu', the module builds cleanly but doesn't load. The
only error message when trying to load it is:

serval# link_elf: symbol  undefined

Fix: 

N/A
How-To-Repeat: change to /usr/src/sys/modules/ath_hal

'make'

edit Makefile:

change to /usr/src/sys/contrib/dev/ath/public/

cp sparc64-be-elf.hal.o.uu sparc64-elf.hal.o.uu
cp sparc64-be-elf.inc sparc64-elf.inc
cp sparc64-be-elf.opt_ah.h sparc64-elf.opt_ah.h

change to /usr/src/sys/modules/ath_hal

make install

kldload ath_hal
Comment 1 Marius Strobl freebsd_committer freebsd_triage 2007-11-18 19:37:58 UTC
Responsible Changed
From-To: freebsd-sparc64->sam


Assign to sam@ as a reminder do supply a -mcmodel=medany compiled 
HAL BLOB for FreeBSD/sparc64 7 and up.
Comment 2 Sam Leffler freebsd_committer freebsd_triage 2008-12-30 17:55:34 UTC
State Changed
From-To: open->feedback

there is finally a solution for this w/ the hal source code committed 
to HEAD; not sure if the necessary changes will be MFC'd to RELENG_6 
but they should show up in RELENG_7 

leave this in feedback for a bit in case there's anything more to be 
added
Comment 3 Eitan Adler freebsd_committer freebsd_triage 2011-02-23 00:52:31 UTC
State Changed
From-To: feedback->closed

This is already in -7 and 6.x is no longer supported