How to build RPM from Tarball file
0. Prerequisite
Linux system
- SuSE 9.0, 9.1, 9.2, 9.3 with Intel 80486 or above (Intel 80386 not supported)
- OpenSuSE 10.0 with Intel 80486 or above (Intel 80386 not supported)
- GCC compiler that compiled your kernel.
Usually, ok if the major/minor version is matched.
For example, your kernel compiled by gcc 3.4.2. then you can compile the NDAS driver with gcc 3.4.1
- Some customizations of tarball file will be needed to build or install the NDAS driver into the other linux distributions.
Please share those infomation so that we can release the binary in the next release.
Thank you.
1. Install and configure the kernel source
OpenSuSE 10.0
Use YaST to install kernel-source. (The instructions below are not required for OpenSuSE and ndas-0.9.6)
SuSE with 2.4.x kernel
Download the kernel-source RPM and install it from SuSE mirror sites
# rpm -ivh kernel-source-*.rpm
The kernel config file (/usr/src/linux-[your kernel version]/.config) should be configured to have the same kernel version with your kernel. Open the config file in the kernel source,
# vi /usr/src/linux-[your kernel version]/.config
then, look for 'CONFIG_CFGNAME' and modify the 'config name' into that of your kernel. usually it should be 'default'.
For example, if the the result of 'uname -r' is
2.4.21-99-default
then the 'config name' is 'default'. so change the value for 'CONFIG_CFGNAME' in the .config file into 'default'.
CONFIG_CFGNAME=default
Execute 'make' command from the kernel source direcoty so that the version files of linux source are changed according to the changes of .config file.
2. Build the ndas rpm
# export NDAS_KERNEL_PATH=/usr/src/linux-kernel-source-with-configured # export NDAS_KERNEL_VERSION=2.4.x # rpmbuild -tb ndas-0.9.5-43.tar.gz
and you will get the RPM file under
/usr/src/packages/RPMS/i386/
3. Install the rpm
# rpm -ivh km_ndas-deflt-0.9.5-2.4.20_8.43.i386.rpm
4. Using NDAS driver
After you install the driver, please read the README file which can be found under
/usr/share/km_ndas-deflt-0.9.5-2.4.20_8.43/README
If you can't locate the README under /usr/lib/ndas, then try
rpm -ql km_ndas-deflt | grep README
The subversion source is at source:/linux/trunk/README
For fedora core distribution,
