Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

question about module programming

Hi!

I have a question about developing a module un uClinux.

I have a working program under Linux, which I have to "convert" to uClinux. Theoretically, it wouldn't be much problem. The fact is, that in my previous version, I have two modules:

crc

nvram

crc is loaded as a module first. After, nvram is loaded, and nvram uses the crc functions. Other modules also use the crc functions.

So... is this possible in uClinux? When I compile my nvram module, it shows a warning:

Warning: "crc16"  undefined!

And when I try to load it, it shows

 insmod: cannot insert 'NVRAM_driver.ko': Unknown symbol in module (-1): No such file or directory

In linux, the nvram driver should find the crc symbols in ksyms, but I'm not sure in uClinux it will be able...

Some sugeestions?

aLeX

1 Reply

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi!

    I've found the way to do it work!

    I forgot to add:

    EXPORT_SYMBOL(crc16);

    to the crc file. I don't know why in linux wasn't needed, but in uClinux, ot does.

    bye

    aLeX