Linux MIPS Architecture development
 help / color / mirror / Atom feed
* Updated:Error opening framebuffer device/Unknown symbol
@ 2007-10-25  8:55 kaka
  2007-10-25  8:55 ` kaka
                   ` (5 more replies)
  0 siblings, 6 replies; 10+ messages in thread
From: kaka @ 2007-10-25  8:55 UTC (permalink / raw)
  To: directfb-users, directfb-dev, linux-mips, uclinux-dev,
	linux-fbdev-users

[-- Attachment #1: Type: text/plain, Size: 2944 bytes --]

Hi All,

Thanks for the overhelming responses.
I was able to remove the problem of Unknown symbols by linking the proper
libraries. Now the problem got reduced to the following messages.

# insmod brcmstfb.ko
brcmstfb: Unknown symbol printf
brcmstfb: Unknown symbol malloc
brcmstfb: Unknown symbol free
insmod: cannot insert `brcmstfb.ko': Unknown symbol in module (2): No such
file or directory
#

for the above problem i had tried to link "libgcc.a " but those symbols are
also undefined in it also.
RECAP:
While running  the cross compiled directFB example on MIPS chip,*
We tried to install the framebuffer driver(command given above) after
creating the node fb0.
APPROACH:
Actually the code of frambuffer driver consists of usual kernel framebuffer
code and properitiary graphics lib code.
The properitiary graphics lib code is using malloc,print and free from <
stdlib.h> and that is why those symbols are coming undefined.

Could anybody help in this regard?
Thanks in advance.

kaka



---------- Forwarded message ----------
From: kaka <share.kt@gmail.com>
Date: Oct 12, 2007 6:33 PM
Subject: Error opening framebuffer device/Unknown symbol
register_framebuffer
To: directfb-users@directfb.org, directfb-dev@directfb.org .



> *Hi All,*
>
> *While running  the cross compiled directFB example on MIPS chip,*
>
> *
>
>
> We tried to install the framebuffer driver(command given at the bottom) and we have already created the node fb0.*
>
> *We are getting the following error, *
>
> *Can anybody help in this regard ?*
>
> *Thanks in Advance.*
>
> # ../../cross_directfb/simple_mips
>
>      =======================|  DirectFB 1.0.0  |=======================
>           (c) 2001-2007  The DirectFB Organization (directfb.org)
>           (c) 2000-2004  Convergence (integrated media) GmbH
>         ------------------------------------------------------------
>
> (*) DirectFB/Core: Single Application Core. (2007-10-05 14:17)
> (!) Direct/Util: opening '/dev/fb0' failed
>     --> No such device or address
> (!) DirectFB/FBDev: Error opening framebuffer device!
> (!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER environment variable.
> (!) DirectFB/Core: Could not initialize 'system' core!
>     --> Initialization error!simple.c <96>:
>         (#) DirectFBError [DirectFBCreate (&dfb)]: Initialization error!
> #
>
> *While running the following command in MIPS chip, we are getting the following error.*
>
> # insmod brcmstfb.ko
> brcmstfb: Unknown symbol unregister_framebuffer
> brcmstfb: Unknown symbol printf
> brcmstfb: Unknown symbol malloc
> brcmstfb: Unknown symbol fb_find_mode
> brcmstfb: Unknown symbol fb_dealloc_cmap
> brcmstfb: Unknown symbol fb_alloc_cmap
> brcmstfb: Unknown symbol framebuffer_release
> brcmstfb: Unknown symbol free
> insmod: cannot insert `brcmstfb.ko': Unknown symbol in module (2): No such file or directory
> #
> #
>
>
>
>


-- 
Thanks & Regards,
kaka

-- 
Thanks & Regards,
kaka

[-- Attachment #2: Type: text/html, Size: 4680 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Updated:Error opening framebuffer device/Unknown symbol
  2007-10-25  8:55 Updated:Error opening framebuffer device/Unknown symbol kaka
@ 2007-10-25  8:55 ` kaka
  2007-10-25  9:09 ` Manuel Lauss
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 10+ messages in thread
From: kaka @ 2007-10-25  8:55 UTC (permalink / raw)
  To: directfb-users, directfb-dev, linux-mips, uclinux-dev,
	linux-fbdev-users

[-- Attachment #1: Type: text/plain, Size: 2944 bytes --]

Hi All,

Thanks for the overhelming responses.
I was able to remove the problem of Unknown symbols by linking the proper
libraries. Now the problem got reduced to the following messages.

# insmod brcmstfb.ko
brcmstfb: Unknown symbol printf
brcmstfb: Unknown symbol malloc
brcmstfb: Unknown symbol free
insmod: cannot insert `brcmstfb.ko': Unknown symbol in module (2): No such
file or directory
#

for the above problem i had tried to link "libgcc.a " but those symbols are
also undefined in it also.
RECAP:
While running  the cross compiled directFB example on MIPS chip,*
We tried to install the framebuffer driver(command given above) after
creating the node fb0.
APPROACH:
Actually the code of frambuffer driver consists of usual kernel framebuffer
code and properitiary graphics lib code.
The properitiary graphics lib code is using malloc,print and free from <
stdlib.h> and that is why those symbols are coming undefined.

Could anybody help in this regard?
Thanks in advance.

kaka



---------- Forwarded message ----------
From: kaka <share.kt@gmail.com>
Date: Oct 12, 2007 6:33 PM
Subject: Error opening framebuffer device/Unknown symbol
register_framebuffer
To: directfb-users@directfb.org, directfb-dev@directfb.org .



> *Hi All,*
>
> *While running  the cross compiled directFB example on MIPS chip,*
>
> *
>
>
> We tried to install the framebuffer driver(command given at the bottom) and we have already created the node fb0.*
>
> *We are getting the following error, *
>
> *Can anybody help in this regard ?*
>
> *Thanks in Advance.*
>
> # ../../cross_directfb/simple_mips
>
>      =======================|  DirectFB 1.0.0  |=======================
>           (c) 2001-2007  The DirectFB Organization (directfb.org)
>           (c) 2000-2004  Convergence (integrated media) GmbH
>         ------------------------------------------------------------
>
> (*) DirectFB/Core: Single Application Core. (2007-10-05 14:17)
> (!) Direct/Util: opening '/dev/fb0' failed
>     --> No such device or address
> (!) DirectFB/FBDev: Error opening framebuffer device!
> (!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER environment variable.
> (!) DirectFB/Core: Could not initialize 'system' core!
>     --> Initialization error!simple.c <96>:
>         (#) DirectFBError [DirectFBCreate (&dfb)]: Initialization error!
> #
>
> *While running the following command in MIPS chip, we are getting the following error.*
>
> # insmod brcmstfb.ko
> brcmstfb: Unknown symbol unregister_framebuffer
> brcmstfb: Unknown symbol printf
> brcmstfb: Unknown symbol malloc
> brcmstfb: Unknown symbol fb_find_mode
> brcmstfb: Unknown symbol fb_dealloc_cmap
> brcmstfb: Unknown symbol fb_alloc_cmap
> brcmstfb: Unknown symbol framebuffer_release
> brcmstfb: Unknown symbol free
> insmod: cannot insert `brcmstfb.ko': Unknown symbol in module (2): No such file or directory
> #
> #
>
>
>
>


-- 
Thanks & Regards,
kaka

-- 
Thanks & Regards,
kaka

[-- Attachment #2: Type: text/html, Size: 4680 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Updated:Error opening framebuffer device/Unknown symbol
  2007-10-25  8:55 Updated:Error opening framebuffer device/Unknown symbol kaka
  2007-10-25  8:55 ` kaka
@ 2007-10-25  9:09 ` Manuel Lauss
  2007-10-25  9:14 ` [Linux-fbdev-users] " Jan-Benedict Glaw
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 10+ messages in thread
From: Manuel Lauss @ 2007-10-25  9:09 UTC (permalink / raw)
  To: kaka
  Cc: directfb-users, directfb-dev, linux-mips, uclinux-dev,
	linux-fbdev-users

On Thu, Oct 25, 2007 at 02:25:40PM +0530, kaka wrote:
> Hi All,
> 
> Thanks for the overhelming responses.
> I was able to remove the problem of Unknown symbols by linking the proper
> libraries. Now the problem got reduced to the following messages.
> 
> # insmod brcmstfb.ko
> brcmstfb: Unknown symbol printf
> brcmstfb: Unknown symbol malloc
> brcmstfb: Unknown symbol free
> insmod: cannot insert `brcmstfb.ko': Unknown symbol in module (2): No such
> file or directory

kernel does not have the above mentioned functions, but you could
go over your code and replace all occurrences of the unknown symbols
with these:
printf -> printk
malloc -> kmalloc
free -> kfree

Pay attention to the different parameters used by some of those.

-- 
 ml.

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [Linux-fbdev-users] Updated:Error opening framebuffer device/Unknown symbol
  2007-10-25  8:55 Updated:Error opening framebuffer device/Unknown symbol kaka
  2007-10-25  8:55 ` kaka
  2007-10-25  9:09 ` Manuel Lauss
@ 2007-10-25  9:14 ` Jan-Benedict Glaw
  2007-10-25 14:15 ` Shane McDonald
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 10+ messages in thread
From: Jan-Benedict Glaw @ 2007-10-25  9:14 UTC (permalink / raw)
  To: linux-fbdev-users; +Cc: directfb-users, directfb-dev, linux-mips, uclinux-dev

[-- Attachment #1: Type: text/plain, Size: 2161 bytes --]

On Thu, 2007-10-25 14:25:40 +0530, kaka <share.kt@gmail.com> wrote:
> 
> Thanks for the overhelming responses.
> I was able to remove the problem of Unknown symbols by linking the proper
> libraries. Now the problem got reduced to the following messages.
> 
> # insmod brcmstfb.ko
> brcmstfb: Unknown symbol printf
> brcmstfb: Unknown symbol malloc
> brcmstfb: Unknown symbol free
> insmod: cannot insert `brcmstfb.ko': Unknown symbol in module (2): No such
> file or directory
> #

You cannot use printf(), malloc() and free() in your driver. This is
kernel code, not userland. Kernel has similar functions (printk(),
various memory-allocating functions and kfree()), but keep in mind
that they may behave a bit differently.

> for the above problem i had tried to link "libgcc.a " but those symbols are
> also undefined in it also.

This may not be correct for all cases. libgcc.a is compiled for the
target the compiler is targeted to. In unfortunate cases, there may be
opcodes used in libgcc that are not available in your CPU...

> RECAP:
> While running  the cross compiled directFB example on MIPS chip,*
> We tried to install the framebuffer driver(command given above) after
> creating the node fb0.

You'd post your driver's sources. That way, we'd suggest improvements
to correctly adapt it to Linux's APIs.

> APPROACH:
> Actually the code of frambuffer driver consists of usual kernel framebuffer
> code and properitiary graphics lib code.
> The properitiary graphics lib code is using malloc,print and free from <
> stdlib.h> and that is why those symbols are coming undefined.

stdlib.h functionality is not per se available. You either need to
implement the missing parts, or rework the stuff to use the proper
kernel interfaces (which is what I recommend.)

MfG, JBG

-- 
      Jan-Benedict Glaw      jbglaw@lug-owl.de              +49-172-7608481
Signature of:           Ich hatte in letzter Zeit ein bißchen viel Realitycheck.
the second  :               Langsam möchte ich mal wieder weiterträumen können.
                             -- Maximilian Wilhelm (18. Mai 2006, #lug-owl.de)

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Updated:Error opening framebuffer device/Unknown symbol
  2007-10-25  8:55 Updated:Error opening framebuffer device/Unknown symbol kaka
                   ` (2 preceding siblings ...)
  2007-10-25  9:14 ` [Linux-fbdev-users] " Jan-Benedict Glaw
@ 2007-10-25 14:15 ` Shane McDonald
  2007-10-25 14:15   ` Shane McDonald
  2007-10-25 15:56 ` Markus Gothe
  2007-10-25 18:25 ` [directfb-users] " gxk
  5 siblings, 1 reply; 10+ messages in thread
From: Shane McDonald @ 2007-10-25 14:15 UTC (permalink / raw)
  To: kaka
  Cc: directfb-users, directfb-dev, linux-mips, uclinux-dev,
	linux-fbdev-users

[-- Attachment #1: Type: text/plain, Size: 3759 bytes --]

Do not be surprised at the lack of response.  You have provided very little
information on your problem, and have not done your homework.

I would strongly suggest purchasing a copy of Linux Kernel Development, 2nd
edition, by Robert Love.  It's an excellent book for giving an introduction
to many aspects of the kernel.  In particular, pages 16 and 17 provide
answers to your questions, which many of the other readers of these lists
have already answered.  A quick read through that book will save you time
when you're confronted with these types of problems.

Shane


On 10/25/07, kaka <share.kt@gmail.com> wrote:
>
> Hi All,
>
> Thanks for the overhelming responses.
> I was able to remove the problem of Unknown symbols by linking the proper
> libraries. Now the problem got reduced to the following messages.
>
> # insmod brcmstfb.ko
> brcmstfb: Unknown symbol printf
> brcmstfb: Unknown symbol malloc
> brcmstfb: Unknown symbol free
> insmod: cannot insert `brcmstfb.ko': Unknown symbol in module (2): No such
> file or directory
> #
>
> for the above problem i had tried to link "libgcc.a " but those symbols
> are also undefined in it also.
> RECAP:
> While running  the cross compiled directFB example on MIPS chip,*
> We tried to install the framebuffer driver(command given above) after
> creating the node fb0.
> APPROACH:
> Actually the code of frambuffer driver consists of usual kernel
> framebuffer code and properitiary graphics lib code.
> The properitiary graphics lib code is using malloc,print and free from <
> stdlib.h> and that is why those symbols are coming undefined.
>
> Could anybody help in this regard?
> Thanks in advance.
>
> kaka
>
>
>
> ---------- Forwarded message ----------
> From: kaka < share.kt@gmail.com>
> Date: Oct 12, 2007 6:33 PM
> Subject: Error opening framebuffer device/Unknown symbol
> register_framebuffer
> To: directfb-users@directfb.org, directfb-dev@directfb.org .
>
>
>
> > *Hi All,*
> >
> > *While running  the cross compiled directFB example on MIPS chip,*
> >
> > *
> >
> >
> >
> > We tried to install the framebuffer driver(command given at the bottom) and we have already created the node fb0.*
> >
> > *We are getting the following error, *
> >
> >
> > *Can anybody help in this regard ?*
> >
> > *Thanks in Advance.*
> >
> > # ../../cross_directfb/simple_mips
> >
> >      =======================|  DirectFB 1.0.0  |=======================
> >           (c) 2001-2007  The DirectFB Organization (directfb.org)
> >           (c) 2000-2004  Convergence (integrated media) GmbH
> >         ------------------------------------------------------------
> >
> > (*) DirectFB/Core: Single Application Core. (2007-10-05 14:17)
> > (!) Direct/Util: opening '/dev/fb0' failed
> >     --> No such device or address
> > (!) DirectFB/FBDev: Error opening framebuffer device!
> > (!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER environment variable.
> > (!) DirectFB/Core: Could not initialize 'system' core!
> >     --> Initialization error!simple.c <96>:
> >         (#) DirectFBError [DirectFBCreate (&dfb)]: Initialization error!
> > #
> >
> > *While running the following command in MIPS chip, we are getting the following error.*
> >
> > # insmod brcmstfb.ko
> > brcmstfb: Unknown symbol unregister_framebuffer
> > brcmstfb: Unknown symbol printf
> > brcmstfb: Unknown symbol malloc
> > brcmstfb: Unknown symbol fb_find_mode
> > brcmstfb: Unknown symbol fb_dealloc_cmap
> > brcmstfb: Unknown symbol fb_alloc_cmap
> > brcmstfb: Unknown symbol framebuffer_release
> > brcmstfb: Unknown symbol free
> > insmod: cannot insert `brcmstfb.ko': Unknown symbol in module (2): No such file or directory
> > #
> > #
> >
> >
> >
> >
>
>
> --
> Thanks & Regards,
> kaka
>
> --
> Thanks & Regards,
> kaka

[-- Attachment #2: Type: text/html, Size: 5687 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Updated:Error opening framebuffer device/Unknown symbol
  2007-10-25 14:15 ` Shane McDonald
@ 2007-10-25 14:15   ` Shane McDonald
  0 siblings, 0 replies; 10+ messages in thread
From: Shane McDonald @ 2007-10-25 14:15 UTC (permalink / raw)
  To: kaka
  Cc: directfb-users, directfb-dev, linux-mips, uclinux-dev,
	linux-fbdev-users

[-- Attachment #1: Type: text/plain, Size: 3759 bytes --]

Do not be surprised at the lack of response.  You have provided very little
information on your problem, and have not done your homework.

I would strongly suggest purchasing a copy of Linux Kernel Development, 2nd
edition, by Robert Love.  It's an excellent book for giving an introduction
to many aspects of the kernel.  In particular, pages 16 and 17 provide
answers to your questions, which many of the other readers of these lists
have already answered.  A quick read through that book will save you time
when you're confronted with these types of problems.

Shane


On 10/25/07, kaka <share.kt@gmail.com> wrote:
>
> Hi All,
>
> Thanks for the overhelming responses.
> I was able to remove the problem of Unknown symbols by linking the proper
> libraries. Now the problem got reduced to the following messages.
>
> # insmod brcmstfb.ko
> brcmstfb: Unknown symbol printf
> brcmstfb: Unknown symbol malloc
> brcmstfb: Unknown symbol free
> insmod: cannot insert `brcmstfb.ko': Unknown symbol in module (2): No such
> file or directory
> #
>
> for the above problem i had tried to link "libgcc.a " but those symbols
> are also undefined in it also.
> RECAP:
> While running  the cross compiled directFB example on MIPS chip,*
> We tried to install the framebuffer driver(command given above) after
> creating the node fb0.
> APPROACH:
> Actually the code of frambuffer driver consists of usual kernel
> framebuffer code and properitiary graphics lib code.
> The properitiary graphics lib code is using malloc,print and free from <
> stdlib.h> and that is why those symbols are coming undefined.
>
> Could anybody help in this regard?
> Thanks in advance.
>
> kaka
>
>
>
> ---------- Forwarded message ----------
> From: kaka < share.kt@gmail.com>
> Date: Oct 12, 2007 6:33 PM
> Subject: Error opening framebuffer device/Unknown symbol
> register_framebuffer
> To: directfb-users@directfb.org, directfb-dev@directfb.org .
>
>
>
> > *Hi All,*
> >
> > *While running  the cross compiled directFB example on MIPS chip,*
> >
> > *
> >
> >
> >
> > We tried to install the framebuffer driver(command given at the bottom) and we have already created the node fb0.*
> >
> > *We are getting the following error, *
> >
> >
> > *Can anybody help in this regard ?*
> >
> > *Thanks in Advance.*
> >
> > # ../../cross_directfb/simple_mips
> >
> >      =======================|  DirectFB 1.0.0  |=======================
> >           (c) 2001-2007  The DirectFB Organization (directfb.org)
> >           (c) 2000-2004  Convergence (integrated media) GmbH
> >         ------------------------------------------------------------
> >
> > (*) DirectFB/Core: Single Application Core. (2007-10-05 14:17)
> > (!) Direct/Util: opening '/dev/fb0' failed
> >     --> No such device or address
> > (!) DirectFB/FBDev: Error opening framebuffer device!
> > (!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER environment variable.
> > (!) DirectFB/Core: Could not initialize 'system' core!
> >     --> Initialization error!simple.c <96>:
> >         (#) DirectFBError [DirectFBCreate (&dfb)]: Initialization error!
> > #
> >
> > *While running the following command in MIPS chip, we are getting the following error.*
> >
> > # insmod brcmstfb.ko
> > brcmstfb: Unknown symbol unregister_framebuffer
> > brcmstfb: Unknown symbol printf
> > brcmstfb: Unknown symbol malloc
> > brcmstfb: Unknown symbol fb_find_mode
> > brcmstfb: Unknown symbol fb_dealloc_cmap
> > brcmstfb: Unknown symbol fb_alloc_cmap
> > brcmstfb: Unknown symbol framebuffer_release
> > brcmstfb: Unknown symbol free
> > insmod: cannot insert `brcmstfb.ko': Unknown symbol in module (2): No such file or directory
> > #
> > #
> >
> >
> >
> >
>
>
> --
> Thanks & Regards,
> kaka
>
> --
> Thanks & Regards,
> kaka

[-- Attachment #2: Type: text/html, Size: 5687 bytes --]

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Updated:Error opening framebuffer device/Unknown symbol
  2007-10-25  8:55 Updated:Error opening framebuffer device/Unknown symbol kaka
                   ` (3 preceding siblings ...)
  2007-10-25 14:15 ` Shane McDonald
@ 2007-10-25 15:56 ` Markus Gothe
  2007-10-25 16:03   ` Kevin D. Kissell
  2007-10-25 18:25 ` [directfb-users] " gxk
  5 siblings, 1 reply; 10+ messages in thread
From: Markus Gothe @ 2007-10-25 15:56 UTC (permalink / raw)
  To: kaka
  Cc: directfb-users, directfb-dev, linux-mips, uclinux-dev,
	linux-fbdev-users

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

You cannot use libc-stuff for the kernel, use the kernel equalients...

//Markus

kaka wrote:
> Hi All,
> 
> Thanks for the overhelming responses.
> I was able to remove the problem of Unknown symbols by linking the
> proper libraries. Now the problem got reduced to the following messages.
> 
> # insmod brcmstfb.ko
> brcmstfb: Unknown symbol printf
> brcmstfb: Unknown symbol malloc
> brcmstfb: Unknown symbol free
> insmod: cannot insert `brcmstfb.ko': Unknown symbol in module (2):
> No such file or directory
> #
> 
> for the above problem i had tried to link "libgcc.a " but those
> symbols are also undefined in it also.
> RECAP:
> While running  the cross compiled directFB example on MIPS chip,*
> We tried to install the framebuffer driver(command given
> above) after creating the node fb0.
> APPROACH:
> Actually the code of frambuffer driver consists of usual kernel
> framebuffer code and properitiary graphics lib code.
> The properitiary graphics lib code is using malloc,print and free
> from <stdlib.h> and that is why those symbols are coming undefined.
> 
> Could anybody help in this regard?
> Thanks in advance.
> 
> kaka
> 
>
>
> ---------- Forwarded message ----------
> From: *kaka* < share.kt@gmail.com <mailto:share.kt@gmail.com>>
> Date: Oct 12, 2007 6:33 PM
> Subject: Error opening framebuffer device/Unknown symbol
> register_framebuffer
> To: directfb-users@directfb.org
> <mailto:directfb-users@directfb.org>, directfb-dev@directfb.org
> <mailto:directfb-dev@directfb.org>.
>
> 
>
>     * Hi All, *
>
>     * While running  the cross compiled directFB example on MIPS chip, *
>
>     *
>
>
>
>     We tried to install the framebuffer driver(command given at the
bottom) and we have already created the node fb0. *
>
>     * We are getting the following error,  *
>
>
>
>     * Can anybody help in this regard ? *
>
>     * Thanks in Advance. *
>
>     # ../../cross_directfb/simple_mips
>                                                                                                                                 

>          =======================|  DirectFB 1.0.0  |=======================
>               (c) 2001-2007  The DirectFB Organization (directfb.org
<http://directfb.org/>)
>               (c) 2000-2004  Convergence (integrated media) GmbH
>             ------------------------------------------------------------
>                                                                                                                                 

>     (*) DirectFB/Core: Single Application Core. (2007-10-05 14:17)
>     (!) Direct/Util: opening '/dev/fb0' failed
>         --> No such device or address
>     (!) DirectFB/FBDev: Error opening framebuffer device!
>     (!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER
environment variable.
>     (!) DirectFB/Core: Could not initialize 'system' core!
>         --> Initialization error!
>     simple.c <96>:
>             (#) DirectFBError [DirectFBCreate (&dfb)]: Initialization
error!
>     #
>
>     * While running the following command in MIPS chip, we are getting
the following error. *
>
>     # insmod brcmstfb.ko
>     brcmstfb: Unknown symbol unregister_framebuffer
>     brcmstfb: Unknown symbol printf
>     brcmstfb: Unknown symbol malloc
>     brcmstfb: Unknown symbol fb_find_mode
>     brcmstfb: Unknown symbol fb_dealloc_cmap
>     brcmstfb: Unknown symbol fb_alloc_cmap
>     brcmstfb: Unknown symbol framebuffer_release
>     brcmstfb: Unknown symbol free
>     insmod: cannot insert `brcmstfb.ko': Unknown symbol in module (2):
No such file or directory
>     #
>     #
>
>     
>
>
>
>
> --
> Thanks & Regards,
> kaka
>
> --
> Thanks & Regards,
> kaka


- --
_______________________________________

Mr Markus Gothe
Software Engineer

Phone: +46 (0)13 21 81 20 (ext. 1046)
Fax: +46 (0)13 21 21 15
Mobile: +46 (0)73 718 72 80
Diskettgatan 11, SE-583 35 Linköping, Sweden
www.27m.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHILyr6I0XmJx2NrwRCDF2AJ9eZIGLy2mPEiUn6bz4+oX7pclzWACfQBn8
pv3s3/Hpkhhau69I7NZLCJ0=
=0zSq
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Updated:Error opening framebuffer device/Unknown symbol
  2007-10-25 15:56 ` Markus Gothe
@ 2007-10-25 16:03   ` Kevin D. Kissell
  2007-10-25 16:03     ` Kevin D. Kissell
  0 siblings, 1 reply; 10+ messages in thread
From: Kevin D. Kissell @ 2007-10-25 16:03 UTC (permalink / raw)
  To: Markus Gothe, kaka
  Cc: directfb-users, directfb-dev, linux-mips, uclinux-dev,
	linux-fbdev-users

He's been told this at least 3 times.  I'm starting to think that he's a troll.

----- Original Message ----- 
From: "Markus Gothe" <markus.gothe@27m.se>
To: "kaka" <share.kt@gmail.com>
Cc: <directfb-users@directfb.org>; <directfb-dev@directfb.org>; <linux-mips@linux-mips.org>; <uclinux-dev@uclinux.org>;
<linux-fbdev-users@lists.sourceforge.net>
Sent: Thursday, October 25, 2007 8:56 AM
Subject: Re: Updated:Error opening framebuffer device/Unknown symbol


> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> You cannot use libc-stuff for the kernel, use the kernel equalients...
>
> //Markus
>
> kaka wrote:
> > Hi All,
> >
> > Thanks for the overhelming responses.
> > I was able to remove the problem of Unknown symbols by linking the
> > proper libraries. Now the problem got reduced to the following messages.
> >
> > # insmod brcmstfb.ko
> > brcmstfb: Unknown symbol printf
> > brcmstfb: Unknown symbol malloc
> > brcmstfb: Unknown symbol free
> > insmod: cannot insert `brcmstfb.ko': Unknown symbol in module (2):
> > No such file or directory
> > #
> >
> > for the above problem i had tried to link "libgcc.a " but those
> > symbols are also undefined in it also.
> > RECAP:
> > While running  the cross compiled directFB example on MIPS chip,*
> > We tried to install the framebuffer driver(command given
> > above) after creating the node fb0.
> > APPROACH:
> > Actually the code of frambuffer driver consists of usual kernel
> > framebuffer code and properitiary graphics lib code.
> > The properitiary graphics lib code is using malloc,print and free
> > from <stdlib.h> and that is why those symbols are coming undefined.
> >
> > Could anybody help in this regard?
> > Thanks in advance.
> >
> > kaka
> >
> >
> >
> > ---------- Forwarded message ----------
> > From: *kaka* < share.kt@gmail.com <mailto:share.kt@gmail.com>>
> > Date: Oct 12, 2007 6:33 PM
> > Subject: Error opening framebuffer device/Unknown symbol
> > register_framebuffer
> > To: directfb-users@directfb.org
> > <mailto:directfb-users@directfb.org>, directfb-dev@directfb.org
> > <mailto:directfb-dev@directfb.org>.
> >
> >
> >
> >     * Hi All, *
> >
> >     * While running  the cross compiled directFB example on MIPS chip, *
> >
> >     *
> >
> >
> >
> >     We tried to install the framebuffer driver(command given at the
> bottom) and we have already created the node fb0. *
> >
> >     * We are getting the following error,  *
> >
> >
> >
> >     * Can anybody help in this regard ? *
> >
> >     * Thanks in Advance. *
> >
> >     # ../../cross_directfb/simple_mips
> >
>
> >          =======================|  DirectFB 1.0.0  |=======================
> >               (c) 2001-2007  The DirectFB Organization (directfb.org
> <http://directfb.org/>)
> >               (c) 2000-2004  Convergence (integrated media) GmbH
> >             ------------------------------------------------------------
> >
>
> >     (*) DirectFB/Core: Single Application Core. (2007-10-05 14:17)
> >     (!) Direct/Util: opening '/dev/fb0' failed
> >         --> No such device or address
> >     (!) DirectFB/FBDev: Error opening framebuffer device!
> >     (!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER
> environment variable.
> >     (!) DirectFB/Core: Could not initialize 'system' core!
> >         --> Initialization error!
> >     simple.c <96>:
> >             (#) DirectFBError [DirectFBCreate (&dfb)]: Initialization
> error!
> >     #
> >
> >     * While running the following command in MIPS chip, we are getting
> the following error. *
> >
> >     # insmod brcmstfb.ko
> >     brcmstfb: Unknown symbol unregister_framebuffer
> >     brcmstfb: Unknown symbol printf
> >     brcmstfb: Unknown symbol malloc
> >     brcmstfb: Unknown symbol fb_find_mode
> >     brcmstfb: Unknown symbol fb_dealloc_cmap
> >     brcmstfb: Unknown symbol fb_alloc_cmap
> >     brcmstfb: Unknown symbol framebuffer_release
> >     brcmstfb: Unknown symbol free
> >     insmod: cannot insert `brcmstfb.ko': Unknown symbol in module (2):
> No such file or directory
> >     #
> >     #
> >
> >
> >
> >
> >
> >
> > --
> > Thanks & Regards,
> > kaka
> >
> > --
> > Thanks & Regards,
> > kaka
>
>
> - --
> _______________________________________
>
> Mr Markus Gothe
> Software Engineer
>
> Phone: +46 (0)13 21 81 20 (ext. 1046)
> Fax: +46 (0)13 21 21 15
> Mobile: +46 (0)73 718 72 80
> Diskettgatan 11, SE-583 35 Linköping, Sweden
> www.27m.com
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFHILyr6I0XmJx2NrwRCDF2AJ9eZIGLy2mPEiUn6bz4+oX7pclzWACfQBn8
> pv3s3/Hpkhhau69I7NZLCJ0=
> =0zSq
> -----END PGP SIGNATURE-----
>
>
>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: Updated:Error opening framebuffer device/Unknown symbol
  2007-10-25 16:03   ` Kevin D. Kissell
@ 2007-10-25 16:03     ` Kevin D. Kissell
  0 siblings, 0 replies; 10+ messages in thread
From: Kevin D. Kissell @ 2007-10-25 16:03 UTC (permalink / raw)
  To: Markus Gothe, kaka
  Cc: directfb-users, directfb-dev, linux-mips, uclinux-dev,
	linux-fbdev-users

He's been told this at least 3 times.  I'm starting to think that he's a troll.

----- Original Message ----- 
From: "Markus Gothe" <markus.gothe@27m.se>
To: "kaka" <share.kt@gmail.com>
Cc: <directfb-users@directfb.org>; <directfb-dev@directfb.org>; <linux-mips@linux-mips.org>; <uclinux-dev@uclinux.org>;
<linux-fbdev-users@lists.sourceforge.net>
Sent: Thursday, October 25, 2007 8:56 AM
Subject: Re: Updated:Error opening framebuffer device/Unknown symbol


> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA256
>
> You cannot use libc-stuff for the kernel, use the kernel equalients...
>
> //Markus
>
> kaka wrote:
> > Hi All,
> >
> > Thanks for the overhelming responses.
> > I was able to remove the problem of Unknown symbols by linking the
> > proper libraries. Now the problem got reduced to the following messages.
> >
> > # insmod brcmstfb.ko
> > brcmstfb: Unknown symbol printf
> > brcmstfb: Unknown symbol malloc
> > brcmstfb: Unknown symbol free
> > insmod: cannot insert `brcmstfb.ko': Unknown symbol in module (2):
> > No such file or directory
> > #
> >
> > for the above problem i had tried to link "libgcc.a " but those
> > symbols are also undefined in it also.
> > RECAP:
> > While running  the cross compiled directFB example on MIPS chip,*
> > We tried to install the framebuffer driver(command given
> > above) after creating the node fb0.
> > APPROACH:
> > Actually the code of frambuffer driver consists of usual kernel
> > framebuffer code and properitiary graphics lib code.
> > The properitiary graphics lib code is using malloc,print and free
> > from <stdlib.h> and that is why those symbols are coming undefined.
> >
> > Could anybody help in this regard?
> > Thanks in advance.
> >
> > kaka
> >
> >
> >
> > ---------- Forwarded message ----------
> > From: *kaka* < share.kt@gmail.com <mailto:share.kt@gmail.com>>
> > Date: Oct 12, 2007 6:33 PM
> > Subject: Error opening framebuffer device/Unknown symbol
> > register_framebuffer
> > To: directfb-users@directfb.org
> > <mailto:directfb-users@directfb.org>, directfb-dev@directfb.org
> > <mailto:directfb-dev@directfb.org>.
> >
> >
> >
> >     * Hi All, *
> >
> >     * While running  the cross compiled directFB example on MIPS chip, *
> >
> >     *
> >
> >
> >
> >     We tried to install the framebuffer driver(command given at the
> bottom) and we have already created the node fb0. *
> >
> >     * We are getting the following error,  *
> >
> >
> >
> >     * Can anybody help in this regard ? *
> >
> >     * Thanks in Advance. *
> >
> >     # ../../cross_directfb/simple_mips
> >
>
> >          =======================|  DirectFB 1.0.0  |=======================
> >               (c) 2001-2007  The DirectFB Organization (directfb.org
> <http://directfb.org/>)
> >               (c) 2000-2004  Convergence (integrated media) GmbH
> >             ------------------------------------------------------------
> >
>
> >     (*) DirectFB/Core: Single Application Core. (2007-10-05 14:17)
> >     (!) Direct/Util: opening '/dev/fb0' failed
> >         --> No such device or address
> >     (!) DirectFB/FBDev: Error opening framebuffer device!
> >     (!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER
> environment variable.
> >     (!) DirectFB/Core: Could not initialize 'system' core!
> >         --> Initialization error!
> >     simple.c <96>:
> >             (#) DirectFBError [DirectFBCreate (&dfb)]: Initialization
> error!
> >     #
> >
> >     * While running the following command in MIPS chip, we are getting
> the following error. *
> >
> >     # insmod brcmstfb.ko
> >     brcmstfb: Unknown symbol unregister_framebuffer
> >     brcmstfb: Unknown symbol printf
> >     brcmstfb: Unknown symbol malloc
> >     brcmstfb: Unknown symbol fb_find_mode
> >     brcmstfb: Unknown symbol fb_dealloc_cmap
> >     brcmstfb: Unknown symbol fb_alloc_cmap
> >     brcmstfb: Unknown symbol framebuffer_release
> >     brcmstfb: Unknown symbol free
> >     insmod: cannot insert `brcmstfb.ko': Unknown symbol in module (2):
> No such file or directory
> >     #
> >     #
> >
> >
> >
> >
> >
> >
> > --
> > Thanks & Regards,
> > kaka
> >
> > --
> > Thanks & Regards,
> > kaka
>
>
> - --
> _______________________________________
>
> Mr Markus Gothe
> Software Engineer
>
> Phone: +46 (0)13 21 81 20 (ext. 1046)
> Fax: +46 (0)13 21 21 15
> Mobile: +46 (0)73 718 72 80
> Diskettgatan 11, SE-583 35 Linköping, Sweden
> www.27m.com
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.6 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFHILyr6I0XmJx2NrwRCDF2AJ9eZIGLy2mPEiUn6bz4+oX7pclzWACfQBn8
> pv3s3/Hpkhhau69I7NZLCJ0=
> =0zSq
> -----END PGP SIGNATURE-----
>
>
>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [directfb-users] Updated:Error opening framebuffer device/Unknown symbol
  2007-10-25  8:55 Updated:Error opening framebuffer device/Unknown symbol kaka
                   ` (4 preceding siblings ...)
  2007-10-25 15:56 ` Markus Gothe
@ 2007-10-25 18:25 ` gxk
  5 siblings, 0 replies; 10+ messages in thread
From: gxk @ 2007-10-25 18:25 UTC (permalink / raw)
  To: kaka; +Cc: directfb-users, linux-mips, uclinux-dev, linux-fbdev-users

Do not use functions from libc, like printf, malloc and free.
Find there equivalent for kernel space modules.

kaka wrote:
> Hi All,
>  
> Thanks for the overhelming responses.
> I was able to remove the problem of Unknown symbols by linking the 
> proper libraries. Now the problem got reduced to the following messages.
>  
> # insmod brcmstfb.ko
> brcmstfb: Unknown symbol printf
> brcmstfb: Unknown symbol malloc
> brcmstfb: Unknown symbol free
> insmod: cannot insert `brcmstfb.ko': Unknown symbol in module (2): No 
> such file or directory
> #
>  
> for the above problem i had tried to link "libgcc.a " but those symbols 
> are also undefined in it also.
> RECAP:
> While running  the cross compiled directFB example on MIPS chip,*
> We tried to install the framebuffer driver(command given above) after 
> creating the node fb0.
> APPROACH:
> Actually the code of frambuffer driver consists of usual kernel 
> framebuffer code and properitiary graphics lib code.
> The properitiary graphics lib code is using malloc,print and free from 
> <stdlib.h> and that is why those symbols are coming undefined.
>  
> Could anybody help in this regard?
> Thanks in advance.
>  
> kaka
>  
> 
> 
> ---------- Forwarded message ----------
> From: *kaka* < share.kt@gmail.com <mailto:share.kt@gmail.com>>
> Date: Oct 12, 2007 6:33 PM
> Subject: Error opening framebuffer device/Unknown symbol 
> register_framebuffer
> To: directfb-users@directfb.org <mailto:directfb-users@directfb.org>, 
> directfb-dev@directfb.org <mailto:directfb-dev@directfb.org>.
> 
>  
> 
>     *Hi All,*
> 
>     *While running  the cross compiled directFB example on MIPS chip,*
> 
>     *
> 
> 
> 
>     We tried to install the framebuffer driver(command given at the bottom) and we have already created the node fb0.*
> 
>     *We are getting the following error, *
> 
> 
> 
>     *Can anybody help in this regard ?*
> 
>     *Thanks in Advance.*
> 
>     # ../../cross_directfb/simple_mips
>                                                                                                                                  
>          =======================|  DirectFB 1.0.0  |=======================
>               (c) 2001-2007  The DirectFB Organization (directfb.org <http://directfb.org/>)
>               (c) 2000-2004  Convergence (integrated media) GmbH
>             ------------------------------------------------------------
>                                                                                                                                  
>     (*) DirectFB/Core: Single Application Core. (2007-10-05 14:17)
>     (!) Direct/Util: opening '/dev/fb0' failed
>         --> No such device or address
>     (!) DirectFB/FBDev: Error opening framebuffer device!
>     (!) DirectFB/FBDev: Use 'fbdev' option or set FRAMEBUFFER environment variable.
>     (!) DirectFB/Core: Could not initialize 'system' core!
>         --> Initialization error!
>     simple.c <96>:
>             (#) DirectFBError [DirectFBCreate (&dfb)]: Initialization error!
>     #
> 
>     *While running the following command in MIPS chip, we are getting the following error.*
> 
>     # insmod brcmstfb.ko
>     brcmstfb: Unknown symbol unregister_framebuffer
>     brcmstfb: Unknown symbol printf
>     brcmstfb: Unknown symbol malloc
>     brcmstfb: Unknown symbol fb_find_mode
>     brcmstfb: Unknown symbol fb_dealloc_cmap
>     brcmstfb: Unknown symbol fb_alloc_cmap
>     brcmstfb: Unknown symbol framebuffer_release
>     brcmstfb: Unknown symbol free
>     insmod: cannot insert `brcmstfb.ko': Unknown symbol in module (2): No such file or directory
>     #
>     #
> 
>      
> 
> 
> 
> 
> -- 
> Thanks & Regards,
> kaka
> 
> -- 
> Thanks & Regards,
> kaka
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> directfb-users mailing list
> directfb-users@directfb.org
> http://mail.directfb.org/cgi-bin/mailman/listinfo/directfb-users

-- 
     Three things are certain:
     Death, taxes, and lost data.
     Guess which has occurred.

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-10-25 16:04 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-25  8:55 Updated:Error opening framebuffer device/Unknown symbol kaka
2007-10-25  8:55 ` kaka
2007-10-25  9:09 ` Manuel Lauss
2007-10-25  9:14 ` [Linux-fbdev-users] " Jan-Benedict Glaw
2007-10-25 14:15 ` Shane McDonald
2007-10-25 14:15   ` Shane McDonald
2007-10-25 15:56 ` Markus Gothe
2007-10-25 16:03   ` Kevin D. Kissell
2007-10-25 16:03     ` Kevin D. Kissell
2007-10-25 18:25 ` [directfb-users] " gxk

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox