Hi. I'm just a beginner in Linux. I have CentOS 5.1 installed on my PC (kernel 2.6.18-53.el5) with Asus P5K motherboard and Attansic L1 Gigabit Ethernet Adapter onboard. I've downloaded the nic driver as well as the kernel source (and even the kernel-devel package just in case). Doing so I followed these instructions. Thus I have the kernel source in:

/home/user/redhat/BUILD

and the nic driver in:

/home/user/driver/LAN/l1-linux-v1.2.40.2.tar.gz

As it follows from here it's possible to install a dkms-enabled driver package for the nic to solve the problem. But I'd like to install the original vendor version of the driver I downloaded. So I ungziped the tar-package to l1-linux-v1.2.40.2 directory. Then I tried to do what's been written in a readme-file. But trying to build a binary RPM* package of the driver this way:

rpmbuild -tb l1-linux-v1.2.40.2.tar.gz

I got this as a result:

error: File /home/user/driver/atl1/atl1-1.01.01.tar.gz: No such file or directory

I had copied the original l1-linux-v1.2.40.2.tar.gz to missing atl1-1.01.01.tar.gz and after running the same command got this:

Code:
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.76249
+ umask 022
+ cd /usr/src/redhat/BUILD
+ LANG=C
+ export LANG
+ unset DISPLAY
+ $'\r'
: command not found249: line 25: 
error: Bad exit status from /var/tmp/rpm-tmp.76249 (%prep)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.76249 (%prep)
Then I tried to make install from the driver src-directory but it followed with this output:

Makefile:62: *** Linux kernel source not found. Stop.

Pls, need help since I got stuck with this procedure of installation. Any examples or may be how-to links are very welcome. Thanks.