Received: from host11.oneononeinternet.com ([209.239.43.35]) by pentafluge.infradead.org with esmtp (Exim 4.30 #5 (Red Hat Linux)) id 1Aj0HN-0006RG-Mo for linux-mtd@lists.infradead.org; Tue, 20 Jan 2004 18:07:09 +0000 From: "Mark Richards" To: "'David Woodhouse'" Date: Tue, 20 Jan 2004 13:04:54 -0500 Message-ID: <000d01c3df7f$e8685c60$6e01a8c0@solarwave> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable In-reply-to: <1074607648.29472.17.camel@hades.cambridge.redhat.com> cc: linux-mtd@lists.infradead.org Subject: RE: MTD - DOC 2000 freezes on umount List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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=20 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@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. =20 Here's the sequence: [root@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@localhost linux]# cd ../mtd [root@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@localhost mtd]# cd patches [root@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@localhost patches]# cd ../linux bash: cd: ../linux: No such file or directory [root@localhost patches]# cd ../.. [root@localhost src]# cd linux [root@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@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@infradead.org] > Sent: Tuesday, January 20, 2004 09:07 > To: Mark Richards > Cc: linux-mtd@lists.infradead.org > Subject: Re: MTD - DOC 2000 freezes on umount >=20 > 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). >=20 > Hit SysRq-P and/or SysRq-T to see precisely where it's locked up. >=20 >=20 > > 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. >=20 > Insufficient information to diagnose. >=20 > -- > dwmw2