Skip to main content
hervieux
Associate II
March 15, 2010
Question

Drivers/modules uClinux on STM3210E_EVAL

  • March 15, 2010
  • 12 replies
  • 2199 views
Posted on March 15, 2010 at 11:17

Drivers/modules uClinux on STM3210E_EVAL

    This topic has been closed for replies.

    12 replies

    eagles8601
    Visitor II
    May 17, 2011
    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
    hervieuxAuthor
    Associate II
    May 17, 2011
    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

    Andrew Neil
    Super User
    May 17, 2011
    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.
    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    hervieux
    hervieuxAuthor
    Associate II
    May 17, 2011
    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

    hervieux
    hervieuxAuthor
    Associate II
    May 17, 2011
    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

    hervieux
    hervieuxAuthor
    Associate II
    May 17, 2011
    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
    hervieuxAuthor
    Associate II
    May 17, 2011
    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
    Super User
    May 17, 2011
    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...

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
    hervieux
    hervieuxAuthor
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 13:43

    Hi,

    I managed to compile my module ( ''hello_world''), but when I do I try the command ''insmod'', I get the following error:

    ''mydriver: unknown relocation: 10''

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

    Yet, when I command ''modinf mydriver.ko'' I have the following message:

    filename: mydriver.ko

    License: GPL

    author: Cedric Hervieux, RFID

    Description: mydriver2

    Depends:

    vermagic: 2.6.26-UC0 ARMv7

    parm: major: Static Major number (none = Dynamic) (int)

    And so my ''vermagic'' corresponds with the version of my uClinux!

    Someone would have an idea?

    Thank you very much

    Cédric

    Andrew Neil
    Super User
    May 17, 2011
    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).

    A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.