[ixp1200] Re:boot driver file
tstevens
tim.stevens at intec.ugent.be
Fri Dec 12 08:06:52 EST 2003
Hi,
We encountered the same problem with the boot_drv rpm and the remainder of
the mail explains how we solved it.
IMPORTANT NOTE: 1) Please notice the "3" in our boot_drv RPM filename. This
means we are not using the boot_drv RPM supplied by Intel anymore, because
we noticed packet loss using the Intel package on a Radisys ENP-2505 board
(see previous postings). Probably, this does *not* apply to non-RadiSys
boards meaning you can use the Intel supplied package in those situations.
However, the installation fault encountered (and the solution) was the same
for both versions of the package...
Here is a step-by-step guide to solve the problem:
- rpm -recompile boot_drv-2.0.1-3.src.rpm
There's a fault in the installation script. The installation will fail
at a certain point.
The remainder of the driver installation will have to be done manually:
- cd /usr/src/RPM/BUILD/driver/bootixp/
- Modify create_environment.rc:
Change "HOST_I = eth1" to "HOST_I = ethx" with x the number of
non-IXP1200
NIC's in the computer.
- Modify .create_environment:
Change "exportfs -ra" to "exportfs -ra >& /dev/null"
- cd /usr/src/RPM/BUILD/driver/src/boot_drv/
- Modify load_bv:
Change
major=`cat /proc/devices | awk "\\$2==\"$module\" {print \\$1}"`
to
major=`cat /proc/devices | grep $module | cut -d ' ' -f 1`
- Modify Makefile:
Change
cp bvloadapp ../bin
to
cp bvloadapp $(BOOTDIR)
Change
cp $(TARGET).o ../bin
to
cp $(TARGET).o $(BOOTDIR)
Add to "install: all" section: (use TAB, not 8 spaces !!!)
cp load_bv $(BOOTDIR)
cp unload_bv $(BOOTDIR)
- make clean
- make dep
- make
- make install
- cd /usr/src/RPM/BUILD/driver/src/pciDg
- Modify rules.mk:
Change
ARM-KERNEL-INCLUDES = $(PWD)/../linux/include
to
ARM-KERNEL-INCLUDES = $(PWD)/../linuxIXAedu/include
Change
X86-KERNEL-INCLUDES =
to
X86-KERNEL-INCLUDES = /usr/src/linux/include
Change
CFLAGS = -g -O2 -Wall -I ../module
to
CFLAGS = -g -O2 -Wall -I ../module -I $(X86-KERNEL-INCLUDES)
- make clean
- make
- make install
- cd /usr/src/RPM/BUILD/driver/
- mkdir /opt/ixasdk/enp-2505
- cp -fR * /opt/ixasdk/enp-2505
- Eventually reboot the machine (probably not necessary)
Hope this helps.
Best regards,
Tim
More information about the ixp1200
mailing list