From: Martin Egholm Nielsen Date: Mon, 20 Dec 2004 15:09:51 +0100 Subject: [U-Boot-Users] Re: Reading or writing jffs2 - how? In-Reply-To: <87hdmnuvpi.fsf@deepthought.outer.space.org> References: <87hdmnuvpi.fsf@deepthought.outer.space.org> Message-ID: <41C6DD2F.5090800@egholm-nielsen.dk> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Detlev, >>I have tried to create a jffs2-image of the linux-filesystem I wish to >>use, and then write it to my flash using "nand write.jffs2 100000 0 >>$(filesize)". But with no luck... >>Then I began to investigate the fundamental "ls" and "nand erase" >>commands, but neither there did I have any success. Below is a trace >>of what I've tried in order to get something working. > Are you really sure, your NAND gets accessed correctly both under > U-Boot and Linux? Can you erase / write / readback some data under > U-Boot by hand? The problem has been solved... The reason that "ls" didn't work from u-boot, was that the boards' u-boot config-file included an erroneous nand-size: #define CONFIG_JFFS2_NAND_SIZE 64*1024*1024 My board had only one configuration-file associated, but multiple nand-size configurations. The jffs2-image problems were related to the endianess problems of mkfs.jffs2: http://lists.infradead.org/pipermail/linux-mtd/2004-January/009091.html Thanks for all, Martin