From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25794 invoked by alias); 6 Jul 2007 19:27:40 -0000 Received: (qmail 25780 invoked by uid 22791); 6 Jul 2007 19:27:39 -0000 X-Spam-Check-By: sourceware.org Received: from wr-out-0506.google.com (HELO wr-out-0506.google.com) (64.233.184.236) by sourceware.org (qpsmtpd/0.31) with ESMTP; Fri, 06 Jul 2007 19:27:30 +0000 Received: by wr-out-0506.google.com with SMTP id 55so257398wri for ; Fri, 06 Jul 2007 12:27:28 -0700 (PDT) Received: by 10.90.119.15 with SMTP id r15mr772901agc.1183750048317; Fri, 06 Jul 2007 12:27:28 -0700 (PDT) Received: by 10.90.65.20 with HTTP; Fri, 6 Jul 2007 12:27:28 -0700 (PDT) Message-ID: <2308fb0f0707061227x1d285eaq5341489d756e2639@mail.gmail.com> Date: Fri, 06 Jul 2007 19:27:00 -0000 From: "Tales Toledo" To: "Gary Thomas" Cc: ecos-discuss@ecos.sourceware.org In-Reply-To: <46841A4B.8060309@mlbassoc.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <2308fb0f0706271307o5f7fd571r35e57103b4552f80@mail.gmail.com> <4682CF36.4060203@mlbassoc.com> <2308fb0f0706271409t79ffce7k104d16ac491c6178@mail.gmail.com> <4682D4A4.2010303@mlbassoc.com> <2308fb0f0706281021u55593013y626a9e2a58b36aa9@mail.gmail.com> <4683FB20.1080706@mlbassoc.com> <2308fb0f0706281217p5aa04c5dn908a993b81f1a341@mail.gmail.com> <46841A4B.8060309@mlbassoc.com> 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: Re: [ECOS] Redboot initialize database error X-SW-Source: 2007-07/txt/msg00068.txt.bz2 On 6/28/07, Gary Thomas wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Tales Toledo wrote: > > On 6/28/07, Gary Thomas wrote: > > Tales Toledo wrote: > >> On 6/27/07, Gary Thomas wrote: > > > >>> Don't top post :-( > > > >> Sorry! > > > >>> What do you see when you run 'fis list'? > > > >> RedBoot> fis list > >> Name FLASH addr Mem addr Length Entry point > >> RedBoot 0x40000000 0x40000000 0x00030000 0x00000000 > >> FIS directory 0x407F0000 0x407F0000 0x0000F000 0x00000000 > >> RedBoot config 0x407FF000 0x407FF000 0x00001000 0x00000000 > > > >>> Did you verify that it wrote anything to your FLASH? > > > >> It seems Ok to me. > >> Before any fconfig command I did a RAM fill command with 0xffffffff > >> pattern. You can see the dump here. > > > >> RedBoot> dump -b 0x01ff0000 -l 0xff -4 > >> 01FF0000: FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF > >> 01FF0010: FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF > >> 01FF0020: FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF > >> 01FF0030: FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF > >> 01FF0040: FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF > >> 01FF0050: FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF > >> 01FF0060: FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF > >> 01FF0070: FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF > >> 01FF0080: FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF > >> 01FF0090: FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF > >> 01FF00A0: FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF > >> 01FF00B0: FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF > >> 01FF00C0: FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF > >> 01FF00D0: FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF > >> 01FF00E0: FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF > >> 01FF00F0: FFFFFFFF FFFFFFFF FFFFFFFF > >> RedBoot> fconfig -i > >> Initialize non-volatile configuration - continue (y/n)? y > >> Run script at boot: false > >> Use BOOTP for network configuration: false > >> Gateway IP address: 0.0.0.0 > >> Local IP address: 192.168.0.100 > >> Local IP address mask: 255.255.255.0 > >> Default server IP address: 192.168.0.1 > >> DNS domain name: > >> DNS server IP address: 192.168.0.4 > >> Network hardware address [MAC]: 0x7C:0x71:0x43:0xA6:0x7C:0x92 > >> GDB connection port: 9000 > >> Force console for special debug messages: false > >> Network debug at boot time: false > >> Update RedBoot non-volatile configuration - continue (y/n)? y > >> ... Erase from 0x407f0000-0x40800000: . > >> ... Program from 0x01ff0000-0x02000000 at 0x407f0000: . > >> RedBoot> dump -b 0x01ff0000 -l 0xff -4 > >> 01FF0000: 52656442 6F6F7400 00000000 00000000 > >> 01FF0010: 40000000 40000000 00030000 00000000 > >> 01FF0020: 00000000 00000000 00000000 00000000 > >> 01FF0030: 00000000 00000000 00000000 00000000 > >> 01FF0040: 00000000 00000000 00000000 00000000 > >> 01FF0050: 00000000 00000000 00000000 00000000 > >> 01FF0060: 00000000 00000000 00000000 00000000 > >> 01FF0070: 00000000 00000000 00000000 00000000 > >> 01FF0080: 00000000 00000000 00000000 00000000 > >> 01FF0090: 00000000 00000000 00000000 00000000 > >> 01FF00A0: 00000000 00000000 00000000 00000000 > >> 01FF00B0: 00000000 00000000 00000000 00000000 > >> 01FF00C0: 00000000 00000000 00000000 00000000 > >> 01FF00D0: 00000000 00000000 00000000 00000000 > >> 01FF00E0: 00000000 00000000 00000000 00000000 > >> 01FF00F0: 00000000 00000000 00000000 > >> RedBoot> dump -b 0x407f0000 -l 0xff -4 > >> 407F0000: 52656442 6F6F7400 00000000 00000000 > >> 407F0010: 40000000 40000000 00030000 00000000 > >> 407F0020: 00000000 00000000 00000000 00000000 > >> 407F0030: 00000000 00000000 00000000 00000000 > >> 407F0040: 00000000 00000000 00000000 00000000 > >> 407F0050: 00000000 00000000 00000000 00000000 > >> 407F0060: 00000000 00000000 00000000 00000000 > >> 407F0070: 00000000 00000000 00000000 00000000 > >> 407F0080: 00000000 00000000 00000000 00000000 > >> 407F0090: 00000000 00000000 00000000 00000000 > >> 407F00A0: 00000000 00000000 00000000 00000000 > >> 407F00B0: 00000000 00000000 00000000 00000000 > >> 407F00C0: 00000000 00000000 00000000 00000000 > >> 407F00D0: 00000000 00000000 00000000 00000000 > >> 407F00E0: 00000000 00000000 00000000 00000000 > >> 407F00F0: 00000000 00000000 00000000 > >> RedBoot> dump -b 0x1fff000 -l 0xff -4 > >> 01FFF000: 00001000 0BADFACE 010C0100 626F6F74 > >> 01FFF010: 5F736372 69707400 00000000 0411010C > >> 01FFF020: 626F6F74 5F736372 6970745F 64617461 > >> 01FFF030: 00626F6F 745F7363 72697074 00000000 > >> 01FFF040: 00000000 00000000 00000000 00000000 > >> 01FFF050: 00000000 00000000 00000000 00000000 > >> 01FFF060: 00000000 00000000 00000000 00000000 > >> 01FFF070: 00000000 00000000 00000000 00000000 > >> 01FFF080: 00000000 00000000 00000000 00000000 > >> 01FFF090: 00000000 00000000 00000000 00000000 > >> 01FFF0A0: 00000000 00000000 00000000 00000000 > >> 01FFF0B0: 00000000 00000000 00000000 00000000 > >> 01FFF0C0: 00000000 00000000 00000000 00000000 > >> 01FFF0D0: 00000000 00000000 00000000 00000000 > >> 01FFF0E0: 00000000 00000000 00000000 00000000 > >> 01FFF0F0: 00000000 00000000 00000000 > >> RedBoot> dump -b 0x407ff000 -l 0xff -4 > >> 407FF000: 00001000 0BADFACE 010C0100 626F6F74 > >> 407FF010: 5F736372 69707400 00000000 0411010C > >> 407FF020: 626F6F74 5F736372 6970745F 64617461 > >> 407FF030: 00626F6F 745F7363 72697074 00000000 > >> 407FF040: 00000000 00000000 00000000 00000000 > >> 407FF050: 00000000 00000000 00000000 00000000 > >> 407FF060: 00000000 00000000 00000000 00000000 > >> 407FF070: 00000000 00000000 00000000 00000000 > >> 407FF080: 00000000 00000000 00000000 00000000 > >> 407FF090: 00000000 00000000 00000000 00000000 > >> 407FF0A0: 00000000 00000000 00000000 00000000 > >> 407FF0B0: 00000000 00000000 00000000 00000000 > >> 407FF0C0: 00000000 00000000 00000000 00000000 > >> 407FF0D0: 00000000 00000000 00000000 00000000 > >> 407FF0E0: 00000000 00000000 00000000 00000000 > >> 407FF0F0: 00000000 00000000 00000000 > >> RedBoot> > > > >> Any idea? > >> Seems it is writing something but I don't know if the dump results > > makes > >> sense. > > > > After you run the 'fconfig -i' command (before running > > any other), try this: > > RedBoot> mcmp -s 0x1FFF000 -d 0x407FF000 -l 0x1000 > > There should be no differences. If there are, it may > > point you to why this is failing. > > > >> The result is the same. All configuration is copied to memory. I check > >> it with memory dump at specific locations and the writing process is > >> Ok but after issue a reset command at Redboot> the previous > >> configuration is lost... seems that flash has no persistence ?! > > Try dumping the FLASH contents after reboot to see what's > in it. You may need to look at the whole 4KB to see if > something changed. > It seems to be writing to flash correctly. I dump the flash before any changes and write the results to a file. After fconfig -i I dump flash and write the results a new file and compare to the fist one. They looks fine since I can see the differences (my new ip address and mask, for example). It seems that flash_get_config isn't working properly!? Is it possible? BTW, I also try to change my ip address again with >ip_address but I got the following message: Sorry, networking is not available. > - -- > - ------------------------------------------------------------ > Gary Thomas | Consulting for the > MLB Associates | Embedded world > - ------------------------------------------------------------ > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.7 (GNU/Linux) > Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org > > iD8DBQFGhBpKmaKbSsQGV8ARAqPwAJ94GsRl2Sl8D4mequG29h+nrAH53wCglVBj > 5gDm8q4aqJ3A67jlYoiuh1I= > =ejBI > -----END PGP SIGNATURE----- > -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss