From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19537 invoked by alias); 8 Mar 2006 20:00:21 -0000 Received: (qmail 19520 invoked by uid 22791); 8 Mar 2006 20:00:19 -0000 X-Spam-Check-By: sourceware.org Received: from dns2-ana.paetec.net (HELO dns2-ana.paetec.net) (66.251.33.7) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 08 Mar 2006 20:00:18 +0000 Received: from dtcnt40s4.dtccom.com ([66.153.88.146]) by dns2-ana.paetec.net (8.13.5/8.13.5) with ESMTP id k28K0AA3018700 for ; Wed, 8 Mar 2006 15:00:16 -0500 (EST) Received: by DTCNT40S4 with Internet Mail Service (5.5.2658.3) id ; Wed, 8 Mar 2006 14:57:12 -0500 Message-ID: <3EDBCCE80E95E744A99895CA464987C4A7D291@dtcsrvr09> From: "Doyle, Patrick" To: ecos-discuss@ecos.sourceware.org Date: Wed, 08 Mar 2006 20:00:00 -0000 MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] JFFS2 on ARM target X-SW-Source: 2006-03/txt/msg00085.txt.bz2 I'm confused by something I'm seeing with JFFS2 on my arm target, and I was wondering if anybody else had seen anything similar. Basically, what I see is that when JFFS2 goes through and marks a block as being erased, it seems to me that it should be writing 'JFFS2_MAGIC_BITMASK' (0x1985) to the marker for the block. What I'm seeing is that 0x2003 gets written into the marker field. Staring at disassembled code for a couple of hours makes me believe that this is, in fact, exactly what the opcodes are telling the CPU to do, despite what one would expect from looking at the C code. So now I'm curious... are there known bugs with gcc 3.2.1 for the ARM that make it a terrible candidate for processing linux-like code that includes constructs such as: struct jffs2_unknown_node marker = { .magic = cpu_to_je16(JFFS2_MAGIC_BITMASK), .nodetype = cpu_to_je16(JFFS2_NODETYPE_CLEANMARKER), .totlen = cpu_to_je32(c->cleanmarker_size) }; I've been using 3.2.1 for years without problems, but I've been using it in eCos to do eCos related stuff. Since JFFS2 was originally designed for Linux, it looks more Linux-like than eCos-like. I notice I've been using 3.4.5 for my Linux builds. --wpd Patrick Doyle Manager, Digital Systems Group DTC Communications, Inc. Phone: (603) 546-2179 Fax: (603) 880-6965 Email: wpd@dtccom.com This communication is from DTC Communications, Inc. and is intended to be confidential and solely for the use of the persons or entities addressed above. If you are not an intended recipient, be aware that the information contained herein may be protected from unauthorized use by privilege or law, and any copying, distribution, disclosure, or other use of this information is prohibited. If you have received this communication in error, please contact the sender by return e-mail or telephone the above number immediately and delete or destroy all copies. Thank you for your cooperation. -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss