* RE: MTD compile on 2.2.17 kernel
@ 2001-05-01 15:38 Jan Rovins
2001-05-02 7:39 ` Michel STEMPIN
0 siblings, 1 reply; 2+ messages in thread
From: Jan Rovins @ 2001-05-01 15:38 UTC (permalink / raw)
To: 'David Woodhouse', Jan Rovins; +Cc: MTD Mailing List
I guess I am missing something here.
In the header files that I have, there is no member called
map->fldrv_destroy
so that file doesn't compile. Now I'm getting curious as to what the right
fix would be.
(But since I'm not using modules, I wont worry about it too much).
Here is the other build issue that I came across,
(and possibly an other wrong fix :-)
at line # 336 in mtdcore.c we have:
#if LINUX_VERSION_CODE < 0x20212
init_mtd_devices();
#endif
my LINUX_VERSION_CODE is 131601 = 0x20211,
so the call to init_mtd_devices() gets compiled in.
with the existing Makefiles I get the following link error:
drivers/mtd/mtdlink.o: In function `init_mtd':
drivers/mtd/mtdlink.o(.text.init+0x3c): undefined reference to
`init_mtd_devices
If I change GNUmakefile
ifeq ($(VERSION),2)
ifeq ($(PATCHLEVEL),0) <<<changed this to:>>> ifeq ($(PATCHLEVEL),2)
obj-y += initcalls.o
endif
endif
Then it compiles.
Should I be pulling in all the stuff in init_mtd_devices() when building a
2.2.17 kernel?
Jan
-----Original Message-----
From: David Woodhouse [mailto:dwmw2@infradead.org]
Sent: Tuesday, May 01, 2001 10:43 AM
To: Jan Rovins
Cc: MTD Mailing List
Subject: Re: MTD compile on 2.2.17 kernel (compile syntax error)
Jan.Rovins@radisys.com said:
> I've been struggling with getting the new source tree to build with
> my 2.2.17 ppc kernel. one thing that I am sure of is a typo at line #
> 211 of cfi_cmdset_0002.c map->fldrv_destroy should be changed to map->
> fldrv->destroy . Could someone with CVS access please fix this?
Wrong fix, but it'll work if you're not using modules.
--
dwmw2
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: MTD compile on 2.2.17 kernel
2001-05-01 15:38 MTD compile on 2.2.17 kernel Jan Rovins
@ 2001-05-02 7:39 ` Michel STEMPIN
0 siblings, 0 replies; 2+ messages in thread
From: Michel STEMPIN @ 2001-05-02 7:39 UTC (permalink / raw)
To: mtd
> If I change GNUmakefile
> ifeq ($(VERSION),2)
> ifeq ($(PATCHLEVEL),0) <<<changed this to:>>> ifeq ($(PATCHLEVEL),2)
> obj-y += initcalls.o
> endif
> endif
>
> Then it compiles.
Did the same... Be carefull, this fix should be up to 2.2.18 only. But I am
stuck at the point I cannot find the "cfi" module from my map init... It
looks like it is acting as if I compiled MTD with modules (which I didn't
considering the HOWTO recommandation), but I got "MODULES" defined. My
kernel is using modules, though. Is there a possible confusion here?
--
Michel Stempin
MIS
COM One SA, 11 parc de Marticot, 33610 CESTAS, FRANCE
Tel: +33(0)5 57 97 72 72
Fax: +33(0)5 56 78 84 78
Email: mstempin@com1.fr
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-05-02 7:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-01 15:38 MTD compile on 2.2.17 kernel Jan Rovins
2001-05-02 7:39 ` Michel STEMPIN
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox