From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15072 invoked by alias); 16 Jul 2007 15:50:57 -0000 Received: (qmail 15060 invoked by uid 22791); 16 Jul 2007 15:50:57 -0000 X-Spam-Check-By: sourceware.org Received: from wr-out-0506.google.com (HELO wr-out-0506.google.com) (64.233.184.227) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 16 Jul 2007 15:50:55 +0000 Received: by wr-out-0506.google.com with SMTP id 55so587324wri for ; Mon, 16 Jul 2007 08:50:53 -0700 (PDT) Received: by 10.90.69.8 with SMTP id r8mr3270460aga.1184601053005; Mon, 16 Jul 2007 08:50:53 -0700 (PDT) Received: by 10.90.65.12 with HTTP; Mon, 16 Jul 2007 08:50:52 -0700 (PDT) Message-ID: <2308fb0f0707160850y788aac6eh7c31de8ef538a4e@mail.gmail.com> Date: Mon, 16 Jul 2007 15:50:00 -0000 From: "Tales Toledo" To: ecos-discuss@ecos.sourceware.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] Redboot_ROM config_data corrupted by flash_erase X-SW-Source: 2007-07/txt/msg00129.txt.bz2 Hi, can flash_erase corrupt my config_data (I'm running Redboot from ROM)? I'm asking this because just before if ((stat = flash_erase(cfg_base, cfg_size, (void **)&err_addr)) != 0) { diag_printf(" initialization failed at %p: %s\n", err_addr, flash_errmsg(stat)); at fconfig.c I can get all config-key1, config->key2, config->cksum with the right values. After run flash_erase and before run conf_endian_fixup + flash_program the config_data is corruted and lost config->key2 and config->cksum. Atte, TT -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss