I am running Storm Linux on a HP Pavillion PC. During the
installation,autoprobe detected the network card and selected the rtl8139
module. The rtl8139 module did not work, so I checked HP's linux support
site. They have a module called hp1207.c with instructions for compiling it
on Redhat Linux. The instructions don't work for Storm Unix. The compiler
complains as follows:
cr834293-a:/tmp# cp hp1207d.c.p12 hp1207d.c
cr834293-a:/tmp#
gcc -DMODVERSIONS -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -c
hp1207d.c
In file included from /usr/include/linux/fs.h:165,
from /usr/include/linux/capability.h:13,
from /usr/include/linux/binfmts.h:5,
from /usr/include/linux/sched.h:8,
from hp1207d.c:70:
/usr/include/asm/byteorder.h:45: linux/byteorder/little_endian.h: No such
file or directory
In file included from /usr/include/linux/nfs_fs_i.h:4,
from /usr/include/linux/fs.h:267,
from /usr/include/linux/capability.h:13,
from /usr/include/linux/binfmts.h:5,
from /usr/include/linux/sched.h:8,
from hp1207d.c:70:
/usr/include/linux/nfs.h:7: linux/sunrpc/msg_prot.h: No such file or
directory
cr834293-a:/tmp#
Any suggestions? I have tried commenting out the references in the .h files
and have successfully compiled the module, however, it still does not run. I
have included the source and instructions if anyone wants to try it.
Regards Mike D
<================================================================>
< HEWLETT PACKARD >
< EN1207D-TX 10/100 Fast Ethernet PCI Adapter >
< SOFTWARE DRIVER SUPPORT >
< >
< Copyright 1998-1999 HEWLETT PACKARD >
< All Rights Reserved. >
< >
<================================================================>
Linux Driver Installation on RedHat 5.x, 6.x
============================================
The readme file contains the following information for HP's EN1207D-TX
Linux driver installation
A. Rebuild the EN1207D-TX Linux driver
B. Driver installation
A. Rebuild the EN1207D-TX Linux driver
======================================
Please follow the steps below to rebuild the new driver object code,
1. Copy the source code to a temporary directory, for example /tmp,
cp hp1207d.c /tmp
if the source code is put in a DOS/Windows-format diskette (FAT16),
you can use the following command,
mcopy a:hp1207d.c /tmp
2. Rebuild the driver using the following command,
-- for single-processor system,
gcc -DMODVERSIONS -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -c
hp1207d.c
-- for symmetric-multi-processor system,
gcc -DMODVERSIONS -D__SMP__ -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6
-c hp1207d.c
3. Now, you have the new driver object code in the /tmp directory.
You can go to section B, to install the new driver.
B. Driver Installation
======================
1. Copy the driver object code to net modules directory,
cp /tmp/hp1207d.o /lib/modules/2.2.5-15/net
or, if the object code is put in a DOS/Windows-format diskette(FAT16),
you can use the following command to do the copy,
mcopy a:hp1207d.o /lib/modules/2.2.5-15/net
where the 2.2.5-15 is the Linux kernel version, you may have other
version of kernel, be careful to type the proper path.
2. Run Linux Network Configuration Utility by execute the following command,
netconf
(or netconfig, depends on different Linux distribution)
3. Choose 'Basic host information' from 'Network configurator' menu, then
press 'Enter' key.
4. Fill or modify the 'Kernel module' field to 'hp1207d',
of course, you have to set the 'Primary name+domain', 'IP address',
'Netmask' and 'Net device' with proper values if you do not set these
data before. (The 'Net device' field should be set to 'eth0' for the
Ethernet device, if you have more than one Ethernet device, you can
set it to 'eth1', 'eth2',,,etc.)
5. Choose 'Accept' and press 'Enter' key to back to 'Network configurator'
menu.
6. Choose 'Quit', then 'Activate the changes' to exit from Linux Network
Configuration Utility.
7. Reboot your Linux system. Now the installation has completed.
8. After system reboot, you can type the following command to check
if the driver is loaded properly,
dmesg |more
You can see the following message in the logged infromation during booting,
eth0: HP EN1207D-TX (HP MPX5038A chip) at 0xzzzz, IRQ yy, xx:xx:xx:xx:xx:xx
where zzzz is the I/O port address,
yy is the IRQ value and
xx:xx:xx:xx:xx:xx is the MAC address of the EN1207D-TX adapter.
All trademarks or brand names mentioned are properties
of their respective companies.
hp1207d.c.p12