public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* RE: [ECOS] Redboot initialize database error
@ 2007-06-29  7:39 Paul Fine
  0 siblings, 0 replies; 10+ messages in thread
From: Paul Fine @ 2007-06-29  7:39 UTC (permalink / raw)
  To: ecos-discuss


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tales Toledo wrote:
> On 6/28/07, Gary Thomas <gary@mlbassoc.com> wrote:
> Tales Toledo wrote:
>> On 6/27/07, Gary Thomas <gary@mlbassoc.com> 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: <Not a string: 0x1FE32F5>
>> 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 ?!

It almost seems like there is a cache issue.  If the processor isn't
actually writing the info the FLASH, but actually has it in the data
cache, then a read back of the addresses in question would show no
difference as it was reading from cache, not from the actual address in
FLASH.

Of course it has been years since I looked at how the FLASH drivers are
actually writing to FLASH and how redboot is reading from it, so the
cache may actually be disabled during these operations.

--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [ECOS] Redboot initialize database error
  2007-06-29  7:28             ` Gary Thomas
@ 2007-07-06 19:27               ` Tales Toledo
  0 siblings, 0 replies; 10+ messages in thread
From: Tales Toledo @ 2007-07-06 19:27 UTC (permalink / raw)
  To: Gary Thomas; +Cc: ecos-discuss

On 6/28/07, Gary Thomas <gary@mlbassoc.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Tales Toledo wrote:
> > On 6/28/07, Gary Thomas <gary@mlbassoc.com> wrote:
> > Tales Toledo wrote:
> >> On 6/27/07, Gary Thomas <gary@mlbassoc.com> 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: <Not a string: 0x1FE32F5>
> >> 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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [ECOS] Redboot initialize database error
  2007-06-29  7:25           ` Tales Toledo
@ 2007-06-29  7:28             ` Gary Thomas
  2007-07-06 19:27               ` Tales Toledo
  0 siblings, 1 reply; 10+ messages in thread
From: Gary Thomas @ 2007-06-29  7:28 UTC (permalink / raw)
  To: Tales Toledo; +Cc: ecos-discuss

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tales Toledo wrote:
> On 6/28/07, Gary Thomas <gary@mlbassoc.com> wrote:
> Tales Toledo wrote:
>> On 6/27/07, Gary Thomas <gary@mlbassoc.com> 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: <Not a string: 0x1FE32F5>
>> 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.

- --
- ------------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [ECOS] Redboot initialize database error
  2007-06-28 20:48         ` Gary Thomas
@ 2007-06-29  7:25           ` Tales Toledo
  2007-06-29  7:28             ` Gary Thomas
  0 siblings, 1 reply; 10+ messages in thread
From: Tales Toledo @ 2007-06-29  7:25 UTC (permalink / raw)
  To: Gary Thomas; +Cc: ecos-discuss

On 6/28/07, Gary Thomas <gary@mlbassoc.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Tales Toledo wrote:
> > On 6/27/07, Gary Thomas <gary@mlbassoc.com> 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: <Not a string: 0x1FE32F5>
> > 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 ?!

>
> - --
> - ------------------------------------------------------------
> 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
>
> iD8DBQFGg/sgmaKbSsQGV8ARAonwAJ920Zjf80mfd+EupjLeM4yKNmK+CgCeKuwj
> CVBdo6sHwhL2zr1JUBnHKvU=
> =KBOc
> -----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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [ECOS] Redboot initialize database error
  2007-06-28 20:30       ` Tales Toledo
@ 2007-06-28 20:48         ` Gary Thomas
  2007-06-29  7:25           ` Tales Toledo
  0 siblings, 1 reply; 10+ messages in thread
From: Gary Thomas @ 2007-06-28 20:48 UTC (permalink / raw)
  To: Tales Toledo; +Cc: ecos-discuss

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tales Toledo wrote:
> On 6/27/07, Gary Thomas <gary@mlbassoc.com> 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: <Not a string: 0x1FE32F5>
> 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.

- --
- ------------------------------------------------------------
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

iD8DBQFGg/sgmaKbSsQGV8ARAonwAJ920Zjf80mfd+EupjLeM4yKNmK+CgCeKuwj
CVBdo6sHwhL2zr1JUBnHKvU=
=KBOc
-----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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [ECOS] Redboot initialize database error
  2007-06-27 23:04     ` Gary Thomas
@ 2007-06-28 20:30       ` Tales Toledo
  2007-06-28 20:48         ` Gary Thomas
  0 siblings, 1 reply; 10+ messages in thread
From: Tales Toledo @ 2007-06-28 20:30 UTC (permalink / raw)
  To: Gary Thomas; +Cc: ecos-discuss

On 6/27/07, Gary Thomas <gary@mlbassoc.com> 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: <Not a string: 0x1FE32F5>
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.

Thx again,
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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [ECOS] Redboot initialize database error
  2007-06-27 22:57   ` Tales Toledo
@ 2007-06-27 23:04     ` Gary Thomas
  2007-06-28 20:30       ` Tales Toledo
  0 siblings, 1 reply; 10+ messages in thread
From: Gary Thomas @ 2007-06-27 23:04 UTC (permalink / raw)
  To: Tales Toledo; +Cc: ecos-discuss

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tales Toledo wrote:
> Hi,
> 
> I did it but I have the same problem.

Don't top post :-(

Did you verify that it wrote anything to your FLASH?
What do you see when you run 'fis list'?

> 
> ---------------------------
> **Warning** FLASH configuration checksum error or invalid key
> Use 'fconfig -i' to [re]initialize database
> ** FEC Info: PHY LINK already UP
> ... waiting for BOOTP information
> Ethernet eth0: MAC address 7c:71:43:a6:7c:92
> Can't get BOOTP info for device!
> 
> RedBoot(tm) bootstrap and debug environment [ROM]
> Non-certified release, version UNKNOWN - built 17:03:31, Jun 22 2007
> 
> Platform: MPC880 (PowerPC 880)
> Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
> Copyright (C) 2003, 2004, 2005, 2006 eCosCentric Limited
> 
> RAM: 0x00000000-0x02000000, [0x0001b040-0x01fe1000] available
> FLASH: 0x40000000 - 0x40800000, 128 blocks of 0x00010000 bytes each.
> 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: <Not a string: 0x1FE32F5>
> 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> reset
> ... Resetting.�+**Warning** FLASH configuration checksum error or
> invalid key
> Use 'fconfig -i' to [re]initialize database
> ** FEC Info: PHY LINK already UP
> ... waiting for BOOTP information
> Ethernet eth0: MAC address 7c:71:43:a6:7c:92
> Can't get BOOTP info for device!
> 
> RedBoot(tm) bootstrap and debug environment [ROM]
> Non-certified release, version UNKNOWN - built 17:03:31, Jun 22 2007
> 
> Platform: MPC880 (PowerPC 880)
> Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
> Copyright (C) 2003, 2004, 2005, 2006 eCosCentric Limited
> 
> RAM: 0x00000000-0x02000000, [0x0001b040-0x01fe1000] available
> FLASH: 0x40000000 - 0x40800000, 128 blocks of 0x00010000 bytes each.
> RedBoot>
> ---------------------------
> 
> I will also attach an excerpt from redboot_ROM.ecm with REDBOOT
> options for reference. I'm building with ecosconfig new redboot
> platform and after that I import   redboot_ROM.ecm
> 
> ---------------------------
> cdl_option CYGSEM_HAL_ROM_MONITOR {
>    inferred_value 1
> };
> 
> cdl_component CYG_HAL_STARTUP {
>    user_value ROM
> };
> 
> cdl_component CYGBLD_BUILD_REDBOOT {
>    user_value 1
> };
> 
> cdl_option CYGBLD_REDBOOT_MIN_IMAGE_SIZE {
>    user_value 0x00030000
> };
> 
> cdl_option CYGOPT_REDBOOT_FIS_REDBOOT_BACKUP {
>    user_value 0
> };
> 
> cdl_option CYGSEM_REDBOOT_FLASH_COMBINED_FIS_AND_CONFIG {
>    user_value 1
> };
> 
> ---------------------------
> Thx again
> TT.
> 
> On 6/27/07, Gary Thomas <gary@mlbassoc.com> wrote:
> Tales Toledo wrote:
>> Hi,
> 
>> seems that fconfig commands doesn't write the configuration variables
>> to database (bootp false in particular). As you can see in the
>> following lines after reset the database comes to initial state (bootp
>> = true).
> 
>> I check the list but I didn't find a similar case.
> 
>> Does anybody have a similar problem?
> 
>> -----------------------------------------------------
> 
>> **Warning** FLASH configuration checksum error or invalid key
>> Use 'fconfig -i' to [re]initialize database
>> ** FEC Info: PHY LINK already UP
>> ... waiting for BOOTP information
>> Ethernet eth0: MAC address 7c:71:43:a6:7c:92
>> Can't get BOOTP info for device!
> 
>> RedBoot(tm) bootstrap and debug environment [ROM]
>> Non-certified release, version UNKNOWN - built 17:03:31, Jun 22 2007
> 
>> Platform: MPC880 (PowerPC 880)
>> Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
>> Copyright (C) 2003, 2004, 2005, 2006 eCosCentric Limited
> 
>> RAM: 0x00000000-0x02000000, [0x0001b040-0x01fe1000] available
>> FLASH: 0x40000000 - 0x40800000, 128 blocks of 0x00010000 bytes each.
>> RedBoot> fis init
>> About to initialize [format] FLASH image system - continue (y/n)? y
>> *** Initialize FLASH Image System
>> ... Erase from 0x407f0000-0x40800000: .
>> ... Program from 0x01ff0000-0x02000000 at 0x407f0000: .
>> RedBoot> fconfig -l -n
>> boot_script: false
>> bootp: true
>> bootp_server_ip: 0.0.0.0
>> dns_domain: <Not a string: 0x1FE32F5>
>> dns_ip: 0.0.0.0
>> fec_esa: 0x7C:0x71:0x43:0xA6:0x7C:0x92
>> gdb_port: 9000
>> info_console_force: false
>> net_debug: false
>> RedBoot> fconfig
>> 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: <Not a string: 0x1FE32F5>
>> 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> fconfig -l -n
>> boot_script: false
>> bootp: false
>> bootp_my_gateway_ip: 0.0.0.0
>> bootp_my_ip: 192.168.0.100
>> bootp_my_ip_mask: 255.255.255.0
>> bootp_server_ip: 192.168.0.1
>> dns_domain: <Not a string: 0x1FE32F5>
>> dns_ip: 192.168.0.4
>> fec_esa: 0x7C:0x71:0x43:0xA6:0x7C:0x92
>> gdb_port: 9000
>> info_console_force: false
>> net_debug: false
>> RedBoot> reset
>> **Warning** FLASH configuration checksum error or invalid key
>> Use 'fconfig -i' to [re]initialize database
>> ** FEC Info: PHY LINK already UP
>> ... waiting for BOOTP information
>> Ethernet eth0: MAC address 7c:71:43:a6:7c:92
>> Can't get BOOTP info for device!
> 
>> RedBoot(tm) bootstrap and debug environment [ROM]
>> Non-certified release, version UNKNOWN - built 17:03:31, Jun 22 2007
> 
>> Platform: MPC880 (PowerPC 880)
>> Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
>> Copyright (C) 2003, 2004, 2005, 2006 eCosCentric Limited
> 
>> RAM: 0x00000000-0x02000000, [0x0001b040-0x01fe1000] available
>> FLASH: 0x40000000 - 0x40800000, 128 blocks of 0x00010000 bytes each.
>> RedBoot>
> 
> 
> Follow the directions :-)  You need to run 'fconfig -i' - this command
> is independent of 'fis init' although they both "initialize" FLASH (in
> different ways)
> 
> 
>>

- --
- ------------------------------------------------------------
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

iD8DBQFGgtSgmaKbSsQGV8ARAmjHAJ42h7IqLp0EtWzgHJbIkWD0z/hGkwCglWVE
p+ugMPQvdvAHs+MKMHLvhTI=
=BFH6
-----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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [ECOS] Redboot initialize database error
  2007-06-27 22:45 ` Gary Thomas
@ 2007-06-27 22:57   ` Tales Toledo
  2007-06-27 23:04     ` Gary Thomas
  0 siblings, 1 reply; 10+ messages in thread
From: Tales Toledo @ 2007-06-27 22:57 UTC (permalink / raw)
  To: Gary Thomas; +Cc: ecos-discuss

Hi,

I did it but I have the same problem.

---------------------------
**Warning** FLASH configuration checksum error or invalid key
Use 'fconfig -i' to [re]initialize database
** FEC Info: PHY LINK already UP
... waiting for BOOTP information
Ethernet eth0: MAC address 7c:71:43:a6:7c:92
Can't get BOOTP info for device!

RedBoot(tm) bootstrap and debug environment [ROM]
Non-certified release, version UNKNOWN - built 17:03:31, Jun 22 2007

Platform: MPC880 (PowerPC 880)
Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
Copyright (C) 2003, 2004, 2005, 2006 eCosCentric Limited

RAM: 0x00000000-0x02000000, [0x0001b040-0x01fe1000] available
FLASH: 0x40000000 - 0x40800000, 128 blocks of 0x00010000 bytes each.
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: <Not a string: 0x1FE32F5>
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> reset
... Resetting.�+**Warning** FLASH configuration checksum error or invalid key
Use 'fconfig -i' to [re]initialize database
** FEC Info: PHY LINK already UP
... waiting for BOOTP information
Ethernet eth0: MAC address 7c:71:43:a6:7c:92
Can't get BOOTP info for device!

RedBoot(tm) bootstrap and debug environment [ROM]
Non-certified release, version UNKNOWN - built 17:03:31, Jun 22 2007

Platform: MPC880 (PowerPC 880)
Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
Copyright (C) 2003, 2004, 2005, 2006 eCosCentric Limited

RAM: 0x00000000-0x02000000, [0x0001b040-0x01fe1000] available
FLASH: 0x40000000 - 0x40800000, 128 blocks of 0x00010000 bytes each.
RedBoot>
---------------------------

I will also attach an excerpt from redboot_ROM.ecm with REDBOOT
options for reference. I'm building with ecosconfig new redboot
platform and after that I import   redboot_ROM.ecm

---------------------------
cdl_option CYGSEM_HAL_ROM_MONITOR {
    inferred_value 1
};

cdl_component CYG_HAL_STARTUP {
    user_value ROM
};

cdl_component CYGBLD_BUILD_REDBOOT {
    user_value 1
};

cdl_option CYGBLD_REDBOOT_MIN_IMAGE_SIZE {
    user_value 0x00030000
};

cdl_option CYGOPT_REDBOOT_FIS_REDBOOT_BACKUP {
    user_value 0
};

cdl_option CYGSEM_REDBOOT_FLASH_COMBINED_FIS_AND_CONFIG {
    user_value 1
};

---------------------------
Thx again
TT.

On 6/27/07, Gary Thomas <gary@mlbassoc.com> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Tales Toledo wrote:
> > Hi,
> >
> > seems that fconfig commands doesn't write the configuration variables
> > to database (bootp false in particular). As you can see in the
> > following lines after reset the database comes to initial state (bootp
> > = true).
> >
> > I check the list but I didn't find a similar case.
> >
> > Does anybody have a similar problem?
> >
> > -----------------------------------------------------
> >
> > **Warning** FLASH configuration checksum error or invalid key
> > Use 'fconfig -i' to [re]initialize database
> > ** FEC Info: PHY LINK already UP
> > ... waiting for BOOTP information
> > Ethernet eth0: MAC address 7c:71:43:a6:7c:92
> > Can't get BOOTP info for device!
> >
> > RedBoot(tm) bootstrap and debug environment [ROM]
> > Non-certified release, version UNKNOWN - built 17:03:31, Jun 22 2007
> >
> > Platform: MPC880 (PowerPC 880)
> > Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
> > Copyright (C) 2003, 2004, 2005, 2006 eCosCentric Limited
> >
> > RAM: 0x00000000-0x02000000, [0x0001b040-0x01fe1000] available
> > FLASH: 0x40000000 - 0x40800000, 128 blocks of 0x00010000 bytes each.
> > RedBoot> fis init
> > About to initialize [format] FLASH image system - continue (y/n)? y
> > *** Initialize FLASH Image System
> > ... Erase from 0x407f0000-0x40800000: .
> > ... Program from 0x01ff0000-0x02000000 at 0x407f0000: .
> > RedBoot> fconfig -l -n
> > boot_script: false
> > bootp: true
> > bootp_server_ip: 0.0.0.0
> > dns_domain: <Not a string: 0x1FE32F5>
> > dns_ip: 0.0.0.0
> > fec_esa: 0x7C:0x71:0x43:0xA6:0x7C:0x92
> > gdb_port: 9000
> > info_console_force: false
> > net_debug: false
> > RedBoot> fconfig
> > 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: <Not a string: 0x1FE32F5>
> > 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> fconfig -l -n
> > boot_script: false
> > bootp: false
> > bootp_my_gateway_ip: 0.0.0.0
> > bootp_my_ip: 192.168.0.100
> > bootp_my_ip_mask: 255.255.255.0
> > bootp_server_ip: 192.168.0.1
> > dns_domain: <Not a string: 0x1FE32F5>
> > dns_ip: 192.168.0.4
> > fec_esa: 0x7C:0x71:0x43:0xA6:0x7C:0x92
> > gdb_port: 9000
> > info_console_force: false
> > net_debug: false
> > RedBoot> reset
> > **Warning** FLASH configuration checksum error or invalid key
> > Use 'fconfig -i' to [re]initialize database
> > ** FEC Info: PHY LINK already UP
> > ... waiting for BOOTP information
> > Ethernet eth0: MAC address 7c:71:43:a6:7c:92
> > Can't get BOOTP info for device!
> >
> > RedBoot(tm) bootstrap and debug environment [ROM]
> > Non-certified release, version UNKNOWN - built 17:03:31, Jun 22 2007
> >
> > Platform: MPC880 (PowerPC 880)
> > Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
> > Copyright (C) 2003, 2004, 2005, 2006 eCosCentric Limited
> >
> > RAM: 0x00000000-0x02000000, [0x0001b040-0x01fe1000] available
> > FLASH: 0x40000000 - 0x40800000, 128 blocks of 0x00010000 bytes each.
> > RedBoot>
> >
>
> Follow the directions :-)  You need to run 'fconfig -i' - this command
> is independent of 'fis init' although they both "initialize" FLASH (in
> different ways)
>
>
> - --
> - ------------------------------------------------------------
> 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
>
> iD8DBQFGgs8zmaKbSsQGV8ARAqTVAKCcaa+PxhuY3Gp80yPu+5wGdIqqdACfcs61
> NrGyaMh8x7Tv8RuDI9la12E=
> =5fkq
> -----END PGP SIGNATURE-----
>

^ permalink raw reply	[flat|nested] 10+ messages in thread

* Re: [ECOS] Redboot initialize database error
  2007-06-27 22:43 Tales Toledo
@ 2007-06-27 22:45 ` Gary Thomas
  2007-06-27 22:57   ` Tales Toledo
  0 siblings, 1 reply; 10+ messages in thread
From: Gary Thomas @ 2007-06-27 22:45 UTC (permalink / raw)
  To: Tales Toledo; +Cc: ecos-discuss

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Tales Toledo wrote:
> Hi,
> 
> seems that fconfig commands doesn't write the configuration variables
> to database (bootp false in particular). As you can see in the
> following lines after reset the database comes to initial state (bootp
> = true).
> 
> I check the list but I didn't find a similar case.
> 
> Does anybody have a similar problem?
> 
> -----------------------------------------------------
> 
> **Warning** FLASH configuration checksum error or invalid key
> Use 'fconfig -i' to [re]initialize database
> ** FEC Info: PHY LINK already UP
> ... waiting for BOOTP information
> Ethernet eth0: MAC address 7c:71:43:a6:7c:92
> Can't get BOOTP info for device!
> 
> RedBoot(tm) bootstrap and debug environment [ROM]
> Non-certified release, version UNKNOWN - built 17:03:31, Jun 22 2007
> 
> Platform: MPC880 (PowerPC 880)
> Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
> Copyright (C) 2003, 2004, 2005, 2006 eCosCentric Limited
> 
> RAM: 0x00000000-0x02000000, [0x0001b040-0x01fe1000] available
> FLASH: 0x40000000 - 0x40800000, 128 blocks of 0x00010000 bytes each.
> RedBoot> fis init
> About to initialize [format] FLASH image system - continue (y/n)? y
> *** Initialize FLASH Image System
> ... Erase from 0x407f0000-0x40800000: .
> ... Program from 0x01ff0000-0x02000000 at 0x407f0000: .
> RedBoot> fconfig -l -n
> boot_script: false
> bootp: true
> bootp_server_ip: 0.0.0.0
> dns_domain: <Not a string: 0x1FE32F5>
> dns_ip: 0.0.0.0
> fec_esa: 0x7C:0x71:0x43:0xA6:0x7C:0x92
> gdb_port: 9000
> info_console_force: false
> net_debug: false
> RedBoot> fconfig
> 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: <Not a string: 0x1FE32F5>
> 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> fconfig -l -n
> boot_script: false
> bootp: false
> bootp_my_gateway_ip: 0.0.0.0
> bootp_my_ip: 192.168.0.100
> bootp_my_ip_mask: 255.255.255.0
> bootp_server_ip: 192.168.0.1
> dns_domain: <Not a string: 0x1FE32F5>
> dns_ip: 192.168.0.4
> fec_esa: 0x7C:0x71:0x43:0xA6:0x7C:0x92
> gdb_port: 9000
> info_console_force: false
> net_debug: false
> RedBoot> reset
> **Warning** FLASH configuration checksum error or invalid key
> Use 'fconfig -i' to [re]initialize database
> ** FEC Info: PHY LINK already UP
> ... waiting for BOOTP information
> Ethernet eth0: MAC address 7c:71:43:a6:7c:92
> Can't get BOOTP info for device!
> 
> RedBoot(tm) bootstrap and debug environment [ROM]
> Non-certified release, version UNKNOWN - built 17:03:31, Jun 22 2007
> 
> Platform: MPC880 (PowerPC 880)
> Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
> Copyright (C) 2003, 2004, 2005, 2006 eCosCentric Limited
> 
> RAM: 0x00000000-0x02000000, [0x0001b040-0x01fe1000] available
> FLASH: 0x40000000 - 0x40800000, 128 blocks of 0x00010000 bytes each.
> RedBoot>
> 

Follow the directions :-)  You need to run 'fconfig -i' - this command
is independent of 'fis init' although they both "initialize" FLASH (in
different ways)


- --
- ------------------------------------------------------------
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

iD8DBQFGgs8zmaKbSsQGV8ARAqTVAKCcaa+PxhuY3Gp80yPu+5wGdIqqdACfcs61
NrGyaMh8x7Tv8RuDI9la12E=
=5fkq
-----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

^ permalink raw reply	[flat|nested] 10+ messages in thread

* [ECOS] Redboot initialize database error
@ 2007-06-27 22:43 Tales Toledo
  2007-06-27 22:45 ` Gary Thomas
  0 siblings, 1 reply; 10+ messages in thread
From: Tales Toledo @ 2007-06-27 22:43 UTC (permalink / raw)
  To: ecos-discuss

Hi,

seems that fconfig commands doesn't write the configuration variables
to database (bootp false in particular). As you can see in the
following lines after reset the database comes to initial state (bootp
= true).

I check the list but I didn't find a similar case.

Does anybody have a similar problem?

-----------------------------------------------------

**Warning** FLASH configuration checksum error or invalid key
Use 'fconfig -i' to [re]initialize database
** FEC Info: PHY LINK already UP
... waiting for BOOTP information
Ethernet eth0: MAC address 7c:71:43:a6:7c:92
Can't get BOOTP info for device!

RedBoot(tm) bootstrap and debug environment [ROM]
Non-certified release, version UNKNOWN - built 17:03:31, Jun 22 2007

Platform: MPC880 (PowerPC 880)
Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
Copyright (C) 2003, 2004, 2005, 2006 eCosCentric Limited

RAM: 0x00000000-0x02000000, [0x0001b040-0x01fe1000] available
FLASH: 0x40000000 - 0x40800000, 128 blocks of 0x00010000 bytes each.
RedBoot> fis init
About to initialize [format] FLASH image system - continue (y/n)? y
*** Initialize FLASH Image System
... Erase from 0x407f0000-0x40800000: .
... Program from 0x01ff0000-0x02000000 at 0x407f0000: .
RedBoot> fconfig -l -n
boot_script: false
bootp: true
bootp_server_ip: 0.0.0.0
dns_domain: <Not a string: 0x1FE32F5>
dns_ip: 0.0.0.0
fec_esa: 0x7C:0x71:0x43:0xA6:0x7C:0x92
gdb_port: 9000
info_console_force: false
net_debug: false
RedBoot> fconfig
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: <Not a string: 0x1FE32F5>
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> fconfig -l -n
boot_script: false
bootp: false
bootp_my_gateway_ip: 0.0.0.0
bootp_my_ip: 192.168.0.100
bootp_my_ip_mask: 255.255.255.0
bootp_server_ip: 192.168.0.1
dns_domain: <Not a string: 0x1FE32F5>
dns_ip: 192.168.0.4
fec_esa: 0x7C:0x71:0x43:0xA6:0x7C:0x92
gdb_port: 9000
info_console_force: false
net_debug: false
RedBoot> reset
**Warning** FLASH configuration checksum error or invalid key
Use 'fconfig -i' to [re]initialize database
** FEC Info: PHY LINK already UP
... waiting for BOOTP information
Ethernet eth0: MAC address 7c:71:43:a6:7c:92
Can't get BOOTP info for device!

RedBoot(tm) bootstrap and debug environment [ROM]
Non-certified release, version UNKNOWN - built 17:03:31, Jun 22 2007

Platform: MPC880 (PowerPC 880)
Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
Copyright (C) 2003, 2004, 2005, 2006 eCosCentric Limited

RAM: 0x00000000-0x02000000, [0x0001b040-0x01fe1000] available
FLASH: 0x40000000 - 0x40800000, 128 blocks of 0x00010000 bytes each.
RedBoot>

-- 
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2007-07-06 19:27 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-06-29  7:39 [ECOS] Redboot initialize database error Paul Fine
  -- strict thread matches above, loose matches on Subject: below --
2007-06-27 22:43 Tales Toledo
2007-06-27 22:45 ` Gary Thomas
2007-06-27 22:57   ` Tales Toledo
2007-06-27 23:04     ` Gary Thomas
2007-06-28 20:30       ` Tales Toledo
2007-06-28 20:48         ` Gary Thomas
2007-06-29  7:25           ` Tales Toledo
2007-06-29  7:28             ` Gary Thomas
2007-07-06 19:27               ` Tales Toledo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).