cancel
Showing results for 
Search instead for 
Did you mean: 

Drivers/modules uClinux on STM3210E_EVAL

hervieux
Associate II
Posted on March 15, 2010 at 11:17

Drivers/modules uClinux on STM3210E_EVAL

12 REPLIES 12
hervieux
Associate II
Posted on May 17, 2011 at 13:43

Hi,

I managed to create a module, but the problem is that when I do the command ''insmod'' I have this error message:

''mymodule: unknown relocation: 10''

''insmod: can not insert`. / mymodule.ko `: invalid module format''

If someone could help me, it would be nice.

Thank you!

Cédric

eagles8601
Associate II
Posted on May 17, 2011 at 13:43

Hello Cédric,

Don't build your driver as a module, bind it to the kernel.

Good luck

hervieux
Associate II
Posted on May 17, 2011 at 13:43

Hi,

Thank you for your reply, so I understand when recompiling the kernel I need to get a ''.o''?

Also, in this case where it is?

Thank you

Cédric

Andrew Neil
Evangelist III
Posted on May 17, 2011 at 13:43

''in this case where it is?''

Your tools will put it wherever you tell them to - whether by default or a specific option setting.
hervieux
Associate II
Posted on May 17, 2011 at 13:43

In fact, I want to use timers to my STM32F103ZE via uClinux installed above.

And I do not understand why I could not make a module for that.

If someone could explain ...

Thanks

Cédric

hervieux
Associate II
Posted on May 17, 2011 at 13:43

Someone has already developed a uClinux drivers for this board?

I feel a little lonely.

Do not hesitate to attach source codes.

;)

Cédric

Andrew Neil
Evangelist III
Posted on May 17, 2011 at 13:43

''

I feel a little lonely.''

Are you already experienced in embedded development in general, and/or the STM32 in particular?

If not, it might be wise to gain some experience before diving into the arcane world of device drivers...

hervieux
Associate II
Posted on May 17, 2011 at 13:43

In fact, I have no experience in these areas ...

I am a student intern in a company and I need to develop drivers

for my internship.

Understand my despair.

Thank you for your interest.

Andrew Neil
Evangelist III
Posted on May 17, 2011 at 13:43

Developing device drivers is not a task for novices - it is unfair of them to give it to you (without adequate support).