Quote Originally Posted by patmad
Thanks for replying!
I already thought this could be the problem, so I downloaded the kernel-source-2.4.20-xfs and put it in /usr/src/
Then I edited .config and pointed the KERNEL_SRC to this map.
But when I do make install it still shows

Build all (y/n) : n
Kernel Version Running 2.4.20-xfs
Found Kernel Source Directory ()
When I've compiled the Atmel sources for Red Hat and Mandrake, I found that both of those distributions' kernel sources came with a .config file ready for use, and that file should reside in the top-level of the kernel sources directory, eg. /usr/src/linux. There may also be a config-2.4.20-xfs-ARCH (or some similarly named) file in a directory inside /usr/src/linux, too, and (by convention) in /boot.

Having said all this, it does surprise me a bit that it can't find your kernel sources, but then looking at the setup.sh script, I'm surprised it finds mine. Still, what you could try is this:

Code:
KERNEL_SRC=/usr/src/linux make config
This should send the environment variable into the script.

Quote Originally Posted by patmad
and later on I still can see some errors during make all that some file or folder is nowhere to be found.......
If it can't find the sources properly, it'll complain a lot about nothing that is really helpful.

Quote Originally Posted by patmad
How can I make these sources to be recognized? Do I have to compile the kernel?
I doubt it. It may be the case that you need to do some of the first steps of compiling the kernel before the headers are found - the RPMs for Red Hat (and possibly Mandrake) may already have some of that work done. Look at the kernel README file and search for "make dep" - I think that might be of interest, but only if the trickery with telling the script about your kernel doesn't work. Personally, I don't believe you should really need to go that far with a recent kernel - earlier kernels had showstopper bugs which prevented the Atmel cards working properly... apparently.

Quote Originally Posted by patmad
Thanks for helping me making this card work properly!!!
We're not there yet! Just wait until you have to configure the thing.