EXPORTING symbols - help?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Greetings,

I am trying to dynamically load a video frambuffer module, rather than
compile it into the kernel (it is the Geode framebuffer module).

=== 1. Prior to modification, I get the following error when performing
a "make modules_install":


find kernel -path '*/pcmcia/*' -name '*.o' | xargs -i -r ln -sf ../{}
pcmcia
if [ -r System.map ]; then /sbin/depmod -ae -F System.map  2.4.18-i3m;
fi
depmod: *** Unresolved symbols in
/lib/modules/2.4.18-i3m/kernel/drivers/video/geode/geode.o
depmod:         PROC_CONSOLE
depmod:         set_all_vcs
make: *** [_modinst_post] Error 1

=== 2. I find that these functions are defined in the file:

linux-2.4.18/drivers/video/fbcon.c

So I add the following 2 lines to fbcon.c in order to export the
functions for use
by geode.o:

EXPORT_SYMBOL(set_all_vcs);
EXPORT_SYMBOL(PROC_CONSOLE);


Once I recompile the kernel (make bzImage), I find that the System.map
is updated with the following entries:

c0185ed0 T PROC_CONSOLE
c0185f30 T set_all_vcs

So it appears that the kernel has proper (.text) entry points for my 2
newly exported functions.

=== 3. I then proceed with "make modules", and then "make
modules_install" - yet I still get the same error when make
modules_install completes:

depmod: *** Unresolved symbols in
/lib/modules/2.4.18-i3m/kernel/drivers/video/geode/geode.o
depmod:         PROC_CONSOLE
depmod:         set_all_vcs
make: *** [_modinst_post] Error 1


=== HELP!

Thanks,

Nat

-- 
_________________________________________
Nat Ersoz             Myrio Corporation    -o) 
nat.ersoz@myrio.com   Cell: 425-417-5182   /\\
Phone: 425.897.7278   Fax:  425.897.5600  _\_V
3500 Carillon Point   Kirkland, WA 98033 

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux