MTD - DOC 2000 freezes on umount

Matthew S. McClintock mattsm at arlut.utexas.edu
Tue Jan 20 13:20:05 EST 2004


I got the same problem. I just edited out the offending lines since they
did not effect me. I was unable to determine the problem by looking at
the contents of the file.

Matthew

On Tue, 2004-01-20 at 12:04, Mark Richards wrote:
> David,
> 
> This may now be better referenced under a different subject line perhaps,
> but here goes...
> 
> I set up a fresh source tree in order that I might enable SYSRQ and build
> with the very latest MTD drivers.
> 
> 1. Got latest via CVS
> 2. In the mtd/patches/ directory, ran:
>   sh patchin.sh /usr/src/linux 
> 3. Then put in my current .config file into /usr/src/linux (link to my new
> source tree) and ran make xconfig.
> 
> The following happened:
> [root at localhost linux]# make xconfig
> rm -f include/asm
> ( cd include ; ln -sf asm-i386 asm)
> make -C scripts kconfig.tk
> make[1]: Entering directory `/usr/src/linux-2.4.24.new.mtd/scripts'
> cat header.tk >> ./kconfig.tk
> ./tkparse < ../arch/i386/config.in >> kconfig.tk
> drivers/mtd/chips/Config.in: 14: unknown command
> make[1]: *** [kconfig.tk] Error 1
> make[1]: Leaving directory `/usr/src/linux-2.4.24.new.mtd/scripts'
> make: *** [xconfig] Error 2
> 
> It appeared that something was mangled by running patchin.  So I created a
> new tree and first ran make xconfig, which worked fine, then applied patchin
> and then ran make xconfig again.  
> 
> Here's the sequence:
> 
> 
> [root at localhost linux]# make xconfig
> rm -f include/asm
> ( cd include ; ln -sf asm-i386 asm)
> make -C scripts kconfig.tk
> make[1]: Entering directory `/usr/src/linux-2.4.24.new.mtd/scripts'
> gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o tkparse.o
> tkparse.c
> gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o tkcond.o
> tkcond.c
> gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -c -o tkgen.o tkgen.c
> gcc -o tkparse tkparse.o tkcond.o tkgen.o
> cat header.tk >> ./kconfig.tk
> ./tkparse < ../arch/i386/config.in >> kconfig.tk
> echo "set defaults \"arch/i386/defconfig\"" >> kconfig.tk
> echo "set ARCH \"i386\"" >> kconfig.tk
> cat tail.tk >> kconfig.tk
> chmod 755 kconfig.tk
> make[1]: Leaving directory `/usr/src/linux-2.4.24.new.mtd/scripts'
> wish -f scripts/kconfig.tk
> [root at localhost linux]# cd ../mtd
> [root at localhost mtd]# ls
> boot     drivers  grub     INSTALL  Makefile            patches
> COPYING  ffs2     html     kernel   mtd-jffs-HOWTO.txt  README
> CVS      fs       include  lib      obsolete            util
> [root at localhost mtd]# cd patches
> [root at localhost patches]# sh patchin.sh /usr/src/linux
> Patching /usr/src/linux
> Include Filesytems: no
> Zlib-Patch needed: no
> Method: Link
> Can we start now ? [y/N]y
> 
> Patching MTD
> drivers/mtd
> drivers/mtd/chips
> drivers/mtd/devices
> drivers/mtd/maps
> drivers/mtd/nand
> include/linux/mtd
> Patching done
> Please update Documentation/Configure.help from
> /usr/src/mtd/Documentation/Configure.help
> [root at localhost patches]# cd ../linux
> bash: cd: ../linux: No such file or directory
> [root at localhost patches]# cd ../..
> [root at localhost src]# cd linux
> [root at localhost linux]# make xconfig
> rm -f include/asm
> ( cd include ; ln -sf asm-i386 asm)
> make -C scripts kconfig.tk
> make[1]: Entering directory `/usr/src/linux-2.4.24.new.mtd/scripts'
> cat header.tk >> ./kconfig.tk
> ./tkparse < ../arch/i386/config.in >> kconfig.tk
> drivers/mtd/chips/Config.in: 14: unknown command
> make[1]: *** [kconfig.tk] Error 1
> make[1]: Leaving directory `/usr/src/linux-2.4.24.new.mtd/scripts'
> make: *** [xconfig] Error 2 [root at localhost linux]#
> 
> 
> Is it something I'm missing?  My kernel sources are the 2.4.24 (latest).
> 
> 
> Mark Richards
> 
> 
> > -----Original Message-----
> > From: David Woodhouse [mailto:dwmw2 at infradead.org]
> > Sent: Tuesday, January 20, 2004 09:07
> > To: Mark Richards
> > Cc: linux-mtd at lists.infradead.org
> > Subject: Re: MTD - DOC 2000 freezes on umount
> > 
> > On Mon, 2004-01-19 at 21:23 -0500, Mark Richards wrote:
> > > I've been through several good learning experiences getting my
> > development
> > > system set up to work with a DOC 2000 for an embedded project.  I've
> > finally
> > > settled on a RedHat 7.2 distribution and the 2.4.24 kernel.  All worked
> > well
> > > with the MTD drivers in several other setups: RedHat 9, Mandrake 9.2,
> > but
> > > for reasons I can't yet fathom, the MTD drivers seem a bit unstable in
> > this
> > > particular kernel.
> > >
> > > Most frequently when I perform a umount /mnt/doc (doc being the mount
> > point)
> > > the shell session freezes (the umount command does not return a prompt).
> > 
> > Hit SysRq-P and/or SysRq-T to see precisely where it's locked up.
> > 
> > 
> > > I tried in one kernel build to apply the latest sources to my source
> > tree
> > > using the instructions (and the shell script) but this caused a compile
> > > failure.
> > 
> > Insufficient information to diagnose.
> > 
> > --
> > dwmw2
> 
> 
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
-- 
Matthew S. McClintock <mattsm at arlut.utexas.edu>




More information about the linux-mtd mailing list