From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Wed, 17 Oct 2007 16:21:34 +0200 Subject: [U-Boot-Users] MTD update? In-Reply-To: <2563ac9e0710170637n27d68939l332aeb7ec018c204@mail.gmail.com> References: <2563ac9e0710170637n27d68939l332aeb7ec018c204@mail.gmail.com> Message-ID: <200710171621.34293.sr@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi William, On Wednesday 17 October 2007, William Juul wrote: > On two custom designs (ARM and PPC based) we are running YAFFS on NAND > devices in U-boot and Linux. > > We had problems configuring YAFFS/MTD in such a way that we could use > the same partition in both U-boot and Linux. Additionaly we could not > find support for 4KB pages in the current MTD implementation in > U-boot. We also ran into (easily fixable) problems since nand_ids.c > contained two entries with the same ID. > > Thus, we upgraded the MTD files in U-boot by using the corresponding > files in Linux 2.6.22.1, which we used at the time). This was a rather > large change of u-boot source, but it solved all problems we had with > NAND. The patch touched several files in drivers/nand, include, > include/linux, include/linux/mtd and common. The patch has a total > size of >300KB. > > Currently this patch is based on 1.2.0 and it will require some work > before we submit a patch: > - base the patch on 1.3.0 > - MAKEALL ppc/arm is currently breaking for some configurations > - some code clean-up > > We do not have the resources (time/HW) to test this patch on anything > else than our two custom boards. Thus we will have to rely on help > from the community after submitting the patch.. I'll be glad to review the code (if time permits) and test it on some of my platforms (PPC based). > Comments? I think this is a necessary move. A lot changed in the Linux MTD code, since it was last ported from Linux to U-Boot. So I really appreciate your effort here. Thanks. Best regards, Stefan ===================================================================== DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de =====================================================================