Hi JeanLee,
here have some patch for reference:
http://maxim.org.za/AT91RM9200/
http://maxim.org.za/AT91RM9200/2.6/
i meet a trouble hope sombody give some idea,
cross-2.95.3.zip CANNOT work for module and application!
this toolchain is from AT91CDROM downloaded from 81.80.104.162(at91 support ftp site)
someone can give sample Makefile to build a device driver for 2.4.27-vrs1,
which not build in kernel,but use insmod at run time and a simple working application Makefile example,help pls.
when insmod a driver this error message appear:
"kernel-module version mismatch"
that is to say,the driver is compiled for a kernel version and the running kernel is another version ,they are mismath!
but the toolchain should have the correct 2.4.27-vrs1 kernel head files!
i set the kernel head files follow this step:
1,cd /usr/local/arm
2,tar jxvf cross-2.95.3.tar.bz2
3,cd ~/linux-2.4.27-vrs1-ATMEL
4,cp -rf include/asm-arm /usr/local/arm/2.95.3/arm-linux/include/asm
5,cp -rf include/linux /usr/local/arm/2.95.3/arm-linux/include
for the reason ,to compile a driver and application must rebuild the crosscompile toolchain again,but it is a trouble task to do,could someone have a working toolchain with 2.4.27-vrs1 ?