From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-bw0-f49.google.com ([209.85.214.49]) by canuck.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1PLG6D-0008Vq-4u for linux-mtd@lists.infradead.org; Wed, 24 Nov 2010 14:13:30 +0000 Received: by bwz5 with SMTP id 5so8505778bwz.36 for ; Wed, 24 Nov 2010 06:13:26 -0800 (PST) Subject: Re: Suggested patch: reset errno after isatty() From: Artem Bityutskiy To: Ketil Froyn In-Reply-To: References: <4CD11C03.3090207@parrot.com> <1289646433.2218.22.camel@localhost> <1289649338.2218.42.camel@localhost> Content-Type: text/plain; charset="UTF-8" Date: Wed, 24 Nov 2010 16:12:39 +0200 Message-ID: <1290607959.2793.11.camel@localhost> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Cc: "linux-mtd@lists.infradead.org" , Matthieu CASTET , Mike Frysinger Reply-To: dedekind1@gmail.com List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, 2010-11-24 at 10:59 +0100, Ketil Froyn wrote: > On Wed, Nov 24, 2010 at 8:50 AM, Mike Frysinger wrote: > > On Thu, Nov 18, 2010 at 06:13, Ketil Froyn wrote: > > > > so you'll want to dive into the ioctls to see what isnt working right. > > strace is your friend. > > Thanks for the kick. I had tried that, but for some reason strace was > dying with the error "syscall: unknown syscall trap 0xe8bd8008". A > little more searching now led me to this patch, which fixed it for me: > > http://www.fluff.org/ben/patches/strace/strace-fix-arm-bad-syscall.patch > > Anyway, here's the full output: So it dies very soon. You should easily find the line of code where this happens with gdb. Just compile nanddump with -g -O0 But I guess we are calling some new ioctl on the system which does not support it, and do not fall-back to the new ioctl. We tried to be careful about this, though. -- Best Regards, Artem Bityutskiy (Артём Битюцкий)