Atmel website | ARM Community | AVR freaks | Technical Support
Banner
 FAQ •  Search •  Register •  Login 

All times are UTC + 1 hour [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: AT91RM9200 and linux device drivers
PostPosted: Mon Jan 10, 2005 11:45 am 
Offline

Joined: Wed Dec 01, 2004 4:34 pm
Posts: 5
Hello all,

I would like to know where I can get a list of device drivers available with Linux (I think 2.4.27) for the AT91RM9200 ?

Is there any character LCD controller device driver available ?

Thank you for any help.

Jean Lee


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 11, 2005 3:56 pm 
Offline
User avatar

Joined: Fri Feb 13, 2004 7:53 pm
Posts: 329
Hi JeanLee,

Quote:
I would like to know where I can get a list of device drivers available with Linux (I think 2.4.27) for the AT91RM9200 ?


Check that FAQ http://www.atmel.com/dyn/products/faq_card.asp?faq_id=1626


Quote:
Is there any character LCD controller device driver available ?

I know that the Cogent Board (SBC 337) has another EPSON display driver but I do not know if Linux BSP is available for this board.

Hope this helps.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 13, 2005 4:25 pm 
Offline

Joined: Tue Dec 28, 2004 5:50 pm
Posts: 11
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 ?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 13, 2005 8:14 pm 
Offline

Joined: Thu Mar 25, 2004 12:10 am
Posts: 126
Location: Germany
Hi deseaf,
try to force the loading:
Quote:
insmod -f module.o

If this is not working (or if you want to load the module without an error messages) try the following.
Get the complete kernel version string:
uname -a
Change the value of EXTRAVERSION in the file "Makefile", located at your arm-linux source tree, to the desired value.
Then run (the .config file should be the same as for the kernel which runs on the target):
make clean dep

And now build your module.
A very simple example is shown in the book "Linux Device Drivers" from Alessandro Rubini (O'Reilly). Save the source as "hello.c".

Quote:
#define MODULE
#include <linux/module.h>

int init_module(void) { printk("<1>Hello, world\n"); return 0; }
void cleanup_module(void) { printk("<1>Goodbye cruel world\n"); }

compile and start :
root# gcc -c hello.c
root# insmod ./hello.o
root# rmmod hello

Be sure you are "root" for doing this.

Hope this helps,
Edi


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC + 1 hour [ DST ]


Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to: