Compiling driver fails, missing system headers.

Sarunas Burdulis sarunas at math.dartmouth.edu
Fri May 24 15:53:42 UTC 2013


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 05/24/2013 11:10 AM, quiztli at lavabit.com wrote:
> Hello
> 
> I have a computer running 12.04 LTS where I have to build the NIC
> (=network) driver. This is the information lspci reports about the
> hardware:
> 
> 03:00.0 Ethernet controller: Broadcom Corporation NetLink BCM57788 Gigabit
> Ethernet PCIe (rev 01)
> 	Subsystem: Dell XPS 8300
> 	Flags: bus master, fast devsel, latency 0, IRQ 19
> 	Memory at fb100000 (64-bit, non-prefetchable) [size=64K]
> 	Capabilities: <access denied>
> 	Kernel driver in use: tg3
> 	Kernel modules: tg3
> 
> The driver I'm trying to compile is found here:
> http://www.broadcom.com/support/license.php?file=570x/linux-3.124c.zip
> 
> I get an error message about a missing 'asm/system.h' file when I try to
> compile. The kernel currently in use is 3.5.0-30 and I have the packages
> linux-headers-3.5.0-30 and linux-headers-3.5.0-30-generic installed.
> 
> It seems as if ubuntu has markedly changed the way these files are
> located. I don't even have a asm folder, only asm-generic in /usr/include.

Not specific to Ubuntu. It looks like asm/system.h is no more for Linux
x86 (assuming you try to compile for x86):

http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=0195c002

> How can I compile the driver and get a much sought internet connection? :)

Isn't the tg3.ko provided with Ubuntu kernel working?

Sarunas Burdulis
http://math.dartmouth.edu/~sarunas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)
Comment: Using GnuPG with undefined - http://www.enigmail.net/

iEYEARECAAYFAlGfjQUACgkQejaFVltl6E8p/ACfUJXXzBBg9DPKPA7hA/d4vtMO
FNIAoIHNDYUR10WrztS1osxwW9R+PgJM
=7YFz
-----END PGP SIGNATURE-----




More information about the ubuntu-users mailing list