PDA

View Full Version : [SOLVED] Building a network driver -- what tools/libraries to download?


m2lmb
1st March 2011, 05:48 PM
Hello,

After installing F-15 64 bit on a Live USB stick, what do I need to download to be able to build the sources from http://www.broadcom.com/support/802.11/linux_sta.php? Although the USB stick is small, there is room on the laptop's harddrive.

Thanks,

stevea
1st March 2011, 06:01 PM
All the tools you need are in this:
yum -y groupinstall "Development Tools"

You also need the kernel headers & makefiles
yum -y install kernel-devel kernel-headers


===

BTW - instead of the entire "Development Tools" group you can probably just get the
gcc, make packages.

m2lmb
3rd March 2011, 05:12 AM

Thanks -- the following


yum --installroot=/media/OS/home/f14 install kernel-headers kernel-devel
yum --installroot=/media/OS/home/f14 install gcc


worked, but there's one loose end -- the module that provided ld ended up creating the following:


cd /media/OS/home/f14/usr/bin
ls -laF ld
ld -> /etc/alternatives/ld

cd /media/OS/home/f14/etc/alternatives
ls -laF ld*
ld -> /usr/bin/ld.bfd


The above is strange since the use of absolute paths in the links means that there will be issues when the modules are installed in a non-default location (as is being done in the installation under discussion)!

Workaround: Modify the soft-links to use relative paths:


cd /media/OS/home/f14/etc/alternatives
ln -s ../../usr/bin/ld.bfd ld
ln -s ../../usr/bin/ld.bfd ld.bfd

cd /media/OS/home/f14/usr/bin
# Should have used a relative path in the next command
# Even better, could have just done: ln -s ld.bfd ld
ln -s /media/OS/home/f14/etc/alternatives/ld ld


Question: Why doesn't the module that provides ld use relative paths in the soft links -- thereby allowing that module to be easily installed in a non-standard location?

m2lmb
5th March 2011, 04:34 AM
.

Need to use the correct version for the kernel build tools -- `uname -r` of machine on which build and deployment will occur (same machine):

1, 2) yum --installroot=`pwd`/foo -y -v install kernel-{headers,devel}-`uname -r`

3) yum --installroot=`pwd`/foo -y -v install gcc


Finally, closing this thread (marking it as SOLVED) after filing a bug-report on broken installation of ld https://bugzilla.redhat.com/show_bug.cgi?id=682396

.