* Can't load yaffs.o (unresolved symbol __get_mtd_device)
@ 2003-08-04 9:18 llandre
2003-08-04 20:54 ` Charles Manning
0 siblings, 1 reply; 6+ messages in thread
From: llandre @ 2003-08-04 9:18 UTC (permalink / raw)
To: linux-mtd
Hi all,
I'm using recent YAFFS sources downloaded via CVS on Aug, 1st with the
kernel linuxppc_devel_2.4.21-pre5.
I succesfully built the yaffs module but I can't load it with the insmod
command.
Here what I get when trying to load:
bash-2.05# /sbin/insmod -v yaffs.o
Using yaffs.o
Symbol version prefix ''
yaffs.o: unresolved symbol __get_mtd_device
bash-2.05#
In the kernel's symbol list (System.map) I see the get_mtd_device symbol.
Why does the dynamic linker add two underscores '__'?
How to solve the problem?
Thanx in advance and best regards.
PS: I posted the message to the YAFFS's ml too, but unfortunately I got no
answers :-(
llandre
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Can't load yaffs.o (unresolved symbol __get_mtd_device)
2003-08-04 9:18 Can't load yaffs.o (unresolved symbol __get_mtd_device) llandre
@ 2003-08-04 20:54 ` Charles Manning
2003-08-05 7:28 ` llandre
0 siblings, 1 reply; 6+ messages in thread
From: Charles Manning @ 2003-08-04 20:54 UTC (permalink / raw)
To: llandre, linux-mtd; +Cc: yaffs
On Monday 04 August 2003 21:18, llandre wrote:
> Hi all,
>
> I'm using recent YAFFS sources downloaded via CVS on Aug, 1st with the
> kernel linuxppc_devel_2.4.21-pre5.
> I succesfully built the yaffs module but I can't load it with the insmod
> command.
>
> Here what I get when trying to load:
>
> bash-2.05# /sbin/insmod -v yaffs.o
> Using yaffs.o
> Symbol version prefix ''
> yaffs.o: unresolved symbol __get_mtd_device
> bash-2.05#
>
> In the kernel's symbol list (System.map) I see the get_mtd_device symbol.
> Why does the dynamic linker add two underscores '__'?
> How to solve the problem?
I think you are using an inconsistent version of mtd.
The mtd I have here (definitely not the latest!) exports the symbol
__get_mtd_device from mtdcore.c
>
> Thanx in advance and best regards.
>
> PS: I posted the message to the YAFFS's ml too, but unfortunately I got no
> answers :-(
Sorry I have been very ill the last two weeks.
-- CHarles
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Can't load yaffs.o (unresolved symbol __get_mtd_device)
2003-08-04 20:54 ` Charles Manning
@ 2003-08-05 7:28 ` llandre
2003-08-05 10:00 ` Nick Bane
2003-08-06 19:43 ` Charles Manning
0 siblings, 2 replies; 6+ messages in thread
From: llandre @ 2003-08-05 7:28 UTC (permalink / raw)
To: manningc2; +Cc: yaffs, linux-mtd, bakker
> > I'm using recent YAFFS sources downloaded via CVS on Aug, 1st with the
> > kernel linuxppc_devel_2.4.21-pre5.
> > I succesfully built the yaffs module but I can't load it with the insmod
> > command.
> >
> > Here what I get when trying to load:
> >
> > bash-2.05# /sbin/insmod -v yaffs.o
> > Using yaffs.o
> > Symbol version prefix ''
> > yaffs.o: unresolved symbol __get_mtd_device
> > bash-2.05#
> >
> > In the kernel's symbol list (System.map) I see the get_mtd_device symbol.
> > Why does the dynamic linker add two underscores '__'?
> > How to solve the problem?
>
>I think you are using an inconsistent version of mtd.
>
>The mtd I have here (definitely not the latest!) exports the symbol
>__get_mtd_device from mtdcore.c
Charles,
could you kindly send me the mtd you work with or tell me where I can
download it?
> >
> > Thanx in advance and best regards.
> >
> > PS: I posted the message to the YAFFS's ml too, but unfortunately I got no
> > answers :-(
>
>Sorry I have been very ill the last two weeks.
Sorry for my unkind statement. I did not mean to pretend an answer but I
incorrectly thought this mailing list was almost abandoned (I clearly made
a terrible mistake!). Is it a available on the web an archive (something
like The linux-mtd Archives)?
I apologize again and I thank for your help.
llandre
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Can't load yaffs.o (unresolved symbol __get_mtd_device)
2003-08-05 7:28 ` llandre
@ 2003-08-05 10:00 ` Nick Bane
2003-08-06 19:43 ` Charles Manning
1 sibling, 0 replies; 6+ messages in thread
From: Nick Bane @ 2003-08-05 10:00 UTC (permalink / raw)
To: manningc2, llandre; +Cc: yaffs, linux-mtd, bakker
The yaffs mailing list archives are available and Wookey was going to do
something at either www.aleph1.co.uk or www.balloonboard.org about it too I
think to provide them in a more digestible form.
To retrieve archive data send a mail to yaffs-request@toby-churchill.org
with the word "archive" as the *first* word of your Subject: line followed
by a command (or commands in the body test).
Note that the server is up for much of the day. The connection is broken
about 2 hourly but a reconnect attempt is made every 15 mins.
------- snippet from a howto of another list modified for
yaffs -------------
Take care to remove disclaimers and footers,
because the archive server might try to interpret these
lines and if he can't understand them, you'll get back
a help.txt. Instead of removing footers you can put
the 'quit' command in the body of the message before
your disclaimer and the archive server won't read your
disclaimer/footer.
The archive server knows the following commands:
You may put the following commands in the subject line
or in the body of a mail. If you put the commands in the body
you can send multiple commands in one mail. If you submit
a new software pointer don't put other commands in the body
of your message, they will be ignored.
Lines starting with a '#' are ignored.
get filename ...
You will get the file 'filename' by email
ls directory ...
You will get an overview of the directory 'directory'
egrep case_insensitive_regular_expression filename ...
Will search the file 'filename' for the expression.
Upper or lower case letters will be treated equal.
maxfiles nnn
Set the maximum number of files that can sent to you to nnn.
This will protect you from a flood of files if you do
a get directory/*. Setting maxfiles to zero will remove the
limit (to protect you against yourself no more than maxfiles
files will be returned per request).
version
Sends the version of the SmartList list server which is
run here at redhat.com.
quit
Terminates an archive request. This can be useful if you
have a signature at the end of your message and don't want
the archive server to interpret your signature.
Since this is a smart server, the following aliases are understood:
Aliases for 'get': send, sendme, getme, gimme, retrieve, mail
Aliases for 'ls': dir, directory, list, show
Aliases for 'egrep': search, grep, fgrep, find
Aliases for 'quit': exit
Egrep supports most common flags.
If you append a non-standard signature, you should use the quit
command to prevent the archive server from interpreting the signature.
Examples:
You want to get all the latest available mails which are stored in the
directory 'latest'. So you send the following mail:
<here begins the header>
To: yaffs-request@toby-churchill.org
Subject: archive get latest/*
<here ends the header>
You want to find out which files are available for you to get
from the main archive directory:
<here begins the header>
To: yaffs-request@toby-churchill.org
Subject: archive ls *
<here ends the header>
You are searching for the word 'scanner' in the latest
messages of axp-list. These messages are stored in the
subdirectory 'latest'. You are also searching for the word
'speech' in all messages of the main archive directory:
<here begins the header>
To: yaffs-request@toby-churchill.org
Subject: archive
<here ends the header>
egrep scanner latest/*
egrep speech *
------------- end -------------------
Once I get a fixed IP I'll move the list from Smartlist to Mailman and it
will be a bit simpler.
I have got yaffs running under 2.4.19-rmk4-tcl2 and 2.5.70-rmk1-tcl1 with
recent mtd code though the 2.5 stuff was broken. I'll rsync my 2.5 tree up
onto the tcl server shortly if that helps anyone.
Nick Bane
----- Original Message -----
From: "llandre" <r&d@wawnet.biz>
To: <manningc2@actrix.gen.nz>
Cc: <linux-mtd@lists.infradead.org>; <yaffs@toby-churchill.org>;
<bakker@thorgal.et.tudelft.nl>
Sent: Tuesday, August 05, 2003 8:28 AM
Subject: Re: Can't load yaffs.o (unresolved symbol __get_mtd_device)
>
> > > I'm using recent YAFFS sources downloaded via CVS on Aug, 1st with the
> > > kernel linuxppc_devel_2.4.21-pre5.
> > > I succesfully built the yaffs module but I can't load it with the
insmod
> > > command.
> > >
> > > Here what I get when trying to load:
> > >
> > > bash-2.05# /sbin/insmod -v yaffs.o
> > > Using yaffs.o
> > > Symbol version prefix ''
> > > yaffs.o: unresolved symbol __get_mtd_device
> > > bash-2.05#
> > >
> > > In the kernel's symbol list (System.map) I see the get_mtd_device
symbol.
> > > Why does the dynamic linker add two underscores '__'?
> > > How to solve the problem?
> >
> >I think you are using an inconsistent version of mtd.
> >
> >The mtd I have here (definitely not the latest!) exports the symbol
> >__get_mtd_device from mtdcore.c
>
> Charles,
>
> could you kindly send me the mtd you work with or tell me where I can
> download it?
>
>
> > >
> > > Thanx in advance and best regards.
> > >
> > > PS: I posted the message to the YAFFS's ml too, but unfortunately I
got no
> > > answers :-(
> >
> >Sorry I have been very ill the last two weeks.
>
> Sorry for my unkind statement. I did not mean to pretend an answer but I
> incorrectly thought this mailing list was almost abandoned (I clearly made
> a terrible mistake!). Is it a available on the web an archive (something
> like The linux-mtd Archives)?
>
> I apologize again and I thank for your help.
>
>
> llandre
>
>
> --------------------------------------------------------------------------
-------------
> This mailing list is hosted by Toby Churchill open software
(www.toby-churchill.org).
> If mailing list membership is no longer wanted you can remove yourself
from the list by
> sending an email to yaffs-request@toby-churchill.org with the text
"unsubscribe"
> (without the quotes) as the subject.
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Can't load yaffs.o (unresolved symbol __get_mtd_device)
2003-08-05 7:28 ` llandre
2003-08-05 10:00 ` Nick Bane
@ 2003-08-06 19:43 ` Charles Manning
[not found] ` <1060251988.25209.22.camel@passion.cambridge.redhat.com>
1 sibling, 1 reply; 6+ messages in thread
From: Charles Manning @ 2003-08-06 19:43 UTC (permalink / raw)
To: llandre; +Cc: yaffs
On Tuesday 05 August 2003 19:28, llandre wrote:
> > > I'm using recent YAFFS sources downloaded via CVS on Aug, 1st with the
> > > kernel linuxppc_devel_2.4.21-pre5.
> > > I succesfully built the yaffs module but I can't load it with the
> > > insmod command.
> > >
> > > Here what I get when trying to load:
> > >
> > > bash-2.05# /sbin/insmod -v yaffs.o
> > > Using yaffs.o
> > > Symbol version prefix ''
> > > yaffs.o: unresolved symbol __get_mtd_device
> > > bash-2.05#
> > >
> > > In the kernel's symbol list (System.map) I see the get_mtd_device
> > > symbol. Why does the dynamic linker add two underscores '__'?
> > > How to solve the problem?
> >
> >I think you are using an inconsistent version of mtd.
> >
> >The mtd I have here (definitely not the latest!) exports the symbol
> >__get_mtd_device from mtdcore.c
>
> Charles,
>
> could you kindly send me the mtd you work with or tell me where I can
> download it?
>
I would suggest you resolve the real problem.
What is happening is that:
Old code that exports __get_mtd_device
```````````````````````````````````````````````````````````````
yaffs calles get_mtd_device()
get_mtd_device() is a wrapper for __get_mtd_device
__get_mtd_device is exported by mtd
New code that exports get_mtd_device
```````````````````````````````````````````````````````````````
yaffs calles get_mtd_device()
get_mtd_device is exported by mtd
Thus it seems the mtd header files you are including are inconsistent with
the mtd you have in the kernel. Likely the cure is just fixing up your
include paths.
Just 'bypassing' the problem is likely to create further (hidden) problems.
Hope that helps
-- CHarles
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Can't load yaffs.o (unresolved symbol __get_mtd_device)
[not found] ` <1060251988.25209.22.camel@passion.cambridge.redhat.com>
@ 2003-08-07 11:23 ` llandre
0 siblings, 0 replies; 6+ messages in thread
From: llandre @ 2003-08-07 11:23 UTC (permalink / raw)
To: manningc2, Nick Bane, David Woodhouse, yaffs, linux-mtd
>On Sun, 2003-09-07 at 20:47, Charles Manning wrote:
> > I would suggest you resolve the real problem.
>
> <...>
>
> > Thus it seems the mtd header files you are including are inconsistent
> with
> > the mtd you have in the kernel. Likely the cure is just fixing up your
> > include paths.
>
>It's not just include paths which are broken, Charles. The CFLAGS are
>randomly different too. Take a look at the way the MTD makefiles build
>-- using 'make -C $KERNELDIR SUBDIRS=`pwd` modules'. That's basically
>the only way to get it right consistently.
I solved the problem. I was building the YAFFS module on the target that
unfortunately has no working RTC device yet. So the system clock is
initialized to Dec, 31st 1969 every time system boots. I don't know why
this caused this erroneous build (the yaffs.o file was built anyway but gcc
warned about the clock skew).
Then I tried to build the module on the development host trough the
cross-compiler ppc-linux-gcc (the source files are the same because I use a
NFS to share the sources between the host and the target).
After building it this way, I can load it on the target without any problem.
Many thanks again for the help.
llandre
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2003-08-07 11:23 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-08-04 9:18 Can't load yaffs.o (unresolved symbol __get_mtd_device) llandre
2003-08-04 20:54 ` Charles Manning
2003-08-05 7:28 ` llandre
2003-08-05 10:00 ` Nick Bane
2003-08-06 19:43 ` Charles Manning
[not found] ` <1060251988.25209.22.camel@passion.cambridge.redhat.com>
2003-08-07 11:23 ` llandre
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox