Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12600 Discussions

question about module programming

Altera_Forum
Honored Contributor II
874 Views

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
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
200 Views

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
0 Kudos
Reply