All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] Set bootcmd through BDI2000
@ 2007-06-28  2:22 Angad
  2007-06-28  6:18 ` Leonid
  0 siblings, 1 reply; 8+ messages in thread
From: Angad @ 2007-06-28  2:22 UTC (permalink / raw)
  To: u-boot


Hi,

Does anyone know if it is possible to set and env variable through the
BDI2000 or set the bootcmd via the BDI2000?

I am trying to download an image to an ppc board and want to be able to
re-image the board by changing the bootcmd via the BDI programmer. 

Thanks
-- 
View this message in context: http://www.nabble.com/Set-bootcmd-through-BDI2000-tf3992055.html#a11335955
Sent from the Uboot - Users mailing list archive at Nabble.com.

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

* [U-Boot-Users] Set bootcmd through BDI2000
  2007-06-28  2:22 [U-Boot-Users] Set bootcmd through BDI2000 Angad
@ 2007-06-28  6:18 ` Leonid
  2007-06-28  6:27   ` nicky geerts
  0 siblings, 1 reply; 8+ messages in thread
From: Leonid @ 2007-06-28  6:18 UTC (permalink / raw)
  To: u-boot

I don't exactly understand what you are trying to do. Can you please
explain more clearly? If you have BDI2000 connected you can use it to
re-image the board I think - why to change bootcmd?

Anyway to change bootcmd you probably will need to re-burn entire u-boot
environment: it has CRC and rewriting just one variable. It's possible
based on u-boot sources write program which take as an input text
script, generating u-boot environment, and makes binary image out of it
which can be burned to u-boot environment area.

Leonid. 

-----Original Message-----
From: u-boot-users-bounces@lists.sourceforge.net
[mailto:u-boot-users-bounces at lists.sourceforge.net] On Behalf Of Angad
Sent: Wednesday, June 27, 2007 7:23 PM
To: u-boot-users at lists.sourceforge.net
Subject: [U-Boot-Users] Set bootcmd through BDI2000


Hi,

Does anyone know if it is possible to set and env variable through the
BDI2000 or set the bootcmd via the BDI2000?

I am trying to download an image to an ppc board and want to be able to
re-image the board by changing the bootcmd via the BDI programmer. 

Thanks
-- 
View this message in context:
http://www.nabble.com/Set-bootcmd-through-BDI2000-tf3992055.html#a113359
55
Sent from the Uboot - Users mailing list archive at Nabble.com.


------------------------------------------------------------------------
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users

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

* [U-Boot-Users] Set bootcmd through BDI2000
  2007-06-28  6:18 ` Leonid
@ 2007-06-28  6:27   ` nicky geerts
  2007-06-28 14:43     ` Angad
  0 siblings, 1 reply; 8+ messages in thread
From: nicky geerts @ 2007-06-28  6:27 UTC (permalink / raw)
  To: u-boot

I usually change the environment variables with setenv, saveenv and
printenv commands, and dump them to a file using the BDI2000 for
backup.  If later on I need to restore those environment variables, I
just write the backup file back to the target flash.

I don't think the BDI2000 is capable of changing the environment
variables in flash memory with just one command.

Nicky Geerts

2007/6/28, Leonid <Leonid@a-k-a.net>:
> I don't exactly understand what you are trying to do. Can you please
> explain more clearly? If you have BDI2000 connected you can use it to
> re-image the board I think - why to change bootcmd?
>
> Anyway to change bootcmd you probably will need to re-burn entire u-boot
> environment: it has CRC and rewriting just one variable. It's possible
> based on u-boot sources write program which take as an input text
> script, generating u-boot environment, and makes binary image out of it
> which can be burned to u-boot environment area.
>
> Leonid.
>
> -----Original Message-----
> From: u-boot-users-bounces at lists.sourceforge.net
> [mailto:u-boot-users-bounces at lists.sourceforge.net] On Behalf Of Angad
> Sent: Wednesday, June 27, 2007 7:23 PM
> To: u-boot-users at lists.sourceforge.net
> Subject: [U-Boot-Users] Set bootcmd through BDI2000
>
>
> Hi,
>
> Does anyone know if it is possible to set and env variable through the
> BDI2000 or set the bootcmd via the BDI2000?
>
> I am trying to download an image to an ppc board and want to be able to
> re-image the board by changing the bootcmd via the BDI programmer.
>
> Thanks
> --
> View this message in context:
> http://www.nabble.com/Set-bootcmd-through-BDI2000-tf3992055.html#a113359
> 55
> Sent from the Uboot - Users mailing list archive at Nabble.com.
>
>
> ------------------------------------------------------------------------
> -
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
>

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

* [U-Boot-Users] Set bootcmd through BDI2000
  2007-06-28  6:27   ` nicky geerts
@ 2007-06-28 14:43     ` Angad
  2007-06-28 14:44       ` Angad
  2007-06-28 15:05       ` Ben Warren
  0 siblings, 2 replies; 8+ messages in thread
From: Angad @ 2007-06-28 14:43 UTC (permalink / raw)
  To: u-boot


Doing a setenv and saveenv write the variables to the eeprom. Erasing th
eflash via the BDI does not reset those variables. Is there a way to erase
the eeprom from the BDI. 

Thanks for the replies.



nicky geerts wrote:
> 
> I usually change the environment variables with setenv, saveenv and
> printenv commands, and dump them to a file using the BDI2000 for
> backup.  If later on I need to restore those environment variables, I
> just write the backup file back to the target flash.
> 
> I don't think the BDI2000 is capable of changing the environment
> variables in flash memory with just one command.
> 
> Nicky Geerts
> 
> 2007/6/28, Leonid <Leonid@a-k-a.net>:
>> I don't exactly understand what you are trying to do. Can you please
>> explain more clearly? If you have BDI2000 connected you can use it to
>> re-image the board I think - why to change bootcmd?
>>
>> Anyway to change bootcmd you probably will need to re-burn entire u-boot
>> environment: it has CRC and rewriting just one variable. It's possible
>> based on u-boot sources write program which take as an input text
>> script, generating u-boot environment, and makes binary image out of it
>> which can be burned to u-boot environment area.
>>
>> Leonid.
>>
>> -----Original Message-----
>> From: u-boot-users-bounces at lists.sourceforge.net
>> [mailto:u-boot-users-bounces at lists.sourceforge.net] On Behalf Of Angad
>> Sent: Wednesday, June 27, 2007 7:23 PM
>> To: u-boot-users at lists.sourceforge.net
>> Subject: [U-Boot-Users] Set bootcmd through BDI2000
>>
>>
>> Hi,
>>
>> Does anyone know if it is possible to set and env variable through the
>> BDI2000 or set the bootcmd via the BDI2000?
>>
>> I am trying to download an image to an ppc board and want to be able to
>> re-image the board by changing the bootcmd via the BDI programmer.
>>
>> Thanks
>> --
>> View this message in context:
>> http://www.nabble.com/Set-bootcmd-through-BDI2000-tf3992055.html#a113359
>> 55
>> Sent from the Uboot - Users mailing list archive at Nabble.com.
>>
>>
>> ------------------------------------------------------------------------
>> -
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> _______________________________________________
>> U-Boot-Users mailing list
>> U-Boot-Users at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/u-boot-users
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> _______________________________________________
>> U-Boot-Users mailing list
>> U-Boot-Users at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/u-boot-users
>>
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
> 
> 

-- 
View this message in context: http://www.nabble.com/Set-bootcmd-through-BDI2000-tf3992055.html#a11344420
Sent from the Uboot - Users mailing list archive at Nabble.com.

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

* [U-Boot-Users] Set bootcmd through BDI2000
  2007-06-28 14:43     ` Angad
@ 2007-06-28 14:44       ` Angad
  2007-06-28 14:56         ` nicky geerts
  2007-06-28 14:59         ` Ben Warren
  2007-06-28 15:05       ` Ben Warren
  1 sibling, 2 replies; 8+ messages in thread
From: Angad @ 2007-06-28 14:44 UTC (permalink / raw)
  To: u-boot


How do you dump the env vriables to a file via the BDI? and is there a way to
re-download them the board?

Thanks



Angad wrote:
> 
> Doing a setenv and saveenv write the variables to the eeprom. Erasing th
> eflash via the BDI does not reset those variables. Is there a way to erase
> the eeprom from the BDI. 
> 
> Thanks for the replies.
> 
> 
> 
> nicky geerts wrote:
>> 
>> I usually change the environment variables with setenv, saveenv and
>> printenv commands, and dump them to a file using the BDI2000 for
>> backup.  If later on I need to restore those environment variables, I
>> just write the backup file back to the target flash.
>> 
>> I don't think the BDI2000 is capable of changing the environment
>> variables in flash memory with just one command.
>> 
>> Nicky Geerts
>> 
>> 2007/6/28, Leonid <Leonid@a-k-a.net>:
>>> I don't exactly understand what you are trying to do. Can you please
>>> explain more clearly? If you have BDI2000 connected you can use it to
>>> re-image the board I think - why to change bootcmd?
>>>
>>> Anyway to change bootcmd you probably will need to re-burn entire u-boot
>>> environment: it has CRC and rewriting just one variable. It's possible
>>> based on u-boot sources write program which take as an input text
>>> script, generating u-boot environment, and makes binary image out of it
>>> which can be burned to u-boot environment area.
>>>
>>> Leonid.
>>>
>>> -----Original Message-----
>>> From: u-boot-users-bounces at lists.sourceforge.net
>>> [mailto:u-boot-users-bounces at lists.sourceforge.net] On Behalf Of Angad
>>> Sent: Wednesday, June 27, 2007 7:23 PM
>>> To: u-boot-users at lists.sourceforge.net
>>> Subject: [U-Boot-Users] Set bootcmd through BDI2000
>>>
>>>
>>> Hi,
>>>
>>> Does anyone know if it is possible to set and env variable through the
>>> BDI2000 or set the bootcmd via the BDI2000?
>>>
>>> I am trying to download an image to an ppc board and want to be able to
>>> re-image the board by changing the bootcmd via the BDI programmer.
>>>
>>> Thanks
>>> --
>>> View this message in context:
>>> http://www.nabble.com/Set-bootcmd-through-BDI2000-tf3992055.html#a113359
>>> 55
>>> Sent from the Uboot - Users mailing list archive at Nabble.com.
>>>
>>>
>>> ------------------------------------------------------------------------
>>> -
>>> This SF.net email is sponsored by DB2 Express
>>> Download DB2 Express C - the FREE version of DB2 express and take
>>> control of your XML. No limits. Just data. Click to get it now.
>>> http://sourceforge.net/powerbar/db2/
>>> _______________________________________________
>>> U-Boot-Users mailing list
>>> U-Boot-Users at lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/u-boot-users
>>>
>>> -------------------------------------------------------------------------
>>> This SF.net email is sponsored by DB2 Express
>>> Download DB2 Express C - the FREE version of DB2 express and take
>>> control of your XML. No limits. Just data. Click to get it now.
>>> http://sourceforge.net/powerbar/db2/
>>> _______________________________________________
>>> U-Boot-Users mailing list
>>> U-Boot-Users at lists.sourceforge.net
>>> https://lists.sourceforge.net/lists/listinfo/u-boot-users
>>>
>> 
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2 express and take
>> control of your XML. No limits. Just data. Click to get it now.
>> http://sourceforge.net/powerbar/db2/
>> _______________________________________________
>> U-Boot-Users mailing list
>> U-Boot-Users at lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/u-boot-users
>> 
>> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Set-bootcmd-through-BDI2000-tf3992055.html#a11344423
Sent from the Uboot - Users mailing list archive at Nabble.com.

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

* [U-Boot-Users] Set bootcmd through BDI2000
  2007-06-28 14:44       ` Angad
@ 2007-06-28 14:56         ` nicky geerts
  2007-06-28 14:59         ` Ben Warren
  1 sibling, 0 replies; 8+ messages in thread
From: nicky geerts @ 2007-06-28 14:56 UTC (permalink / raw)
  To: u-boot

I believe that there is redundant storage of those environment
variables in the flash.  (CFG_ENV_ADDR_REDUND etc)

With the BDI2000 you can isue the "dump" command (type "help" in the
BDI2000 cli) to copy the contents of the flash into a file on your
tftp server.  The file needs to be available and writable (tftp client
can't create new files, or something), so make an empty file and
change access restrictions to 666, and dump the flash contents into
that file.

Nicky

2007/6/28, Angad <angadsc@gmail.com>:
>
> How do you dump the env vriables to a file via the BDI? and is there a way to
> re-download them the board?
>
> Thanks
>
>
>
> Angad wrote:
> >
> > Doing a setenv and saveenv write the variables to the eeprom. Erasing th
> > eflash via the BDI does not reset those variables. Is there a way to erase
> > the eeprom from the BDI.
> >
> > Thanks for the replies.
> >
> >
> >
> > nicky geerts wrote:
> >>
> >> I usually change the environment variables with setenv, saveenv and
> >> printenv commands, and dump them to a file using the BDI2000 for
> >> backup.  If later on I need to restore those environment variables, I
> >> just write the backup file back to the target flash.
> >>
> >> I don't think the BDI2000 is capable of changing the environment
> >> variables in flash memory with just one command.
> >>
> >> Nicky Geerts
> >>
> >> 2007/6/28, Leonid <Leonid@a-k-a.net>:
> >>> I don't exactly understand what you are trying to do. Can you please
> >>> explain more clearly? If you have BDI2000 connected you can use it to
> >>> re-image the board I think - why to change bootcmd?
> >>>
> >>> Anyway to change bootcmd you probably will need to re-burn entire u-boot
> >>> environment: it has CRC and rewriting just one variable. It's possible
> >>> based on u-boot sources write program which take as an input text
> >>> script, generating u-boot environment, and makes binary image out of it
> >>> which can be burned to u-boot environment area.
> >>>
> >>> Leonid.
> >>>
> >>> -----Original Message-----
> >>> From: u-boot-users-bounces at lists.sourceforge.net
> >>> [mailto:u-boot-users-bounces at lists.sourceforge.net] On Behalf Of Angad
> >>> Sent: Wednesday, June 27, 2007 7:23 PM
> >>> To: u-boot-users at lists.sourceforge.net
> >>> Subject: [U-Boot-Users] Set bootcmd through BDI2000
> >>>
> >>>
> >>> Hi,
> >>>
> >>> Does anyone know if it is possible to set and env variable through the
> >>> BDI2000 or set the bootcmd via the BDI2000?
> >>>
> >>> I am trying to download an image to an ppc board and want to be able to
> >>> re-image the board by changing the bootcmd via the BDI programmer.
> >>>
> >>> Thanks
> >>> --
> >>> View this message in context:
> >>> http://www.nabble.com/Set-bootcmd-through-BDI2000-tf3992055.html#a113359
> >>> 55
> >>> Sent from the Uboot - Users mailing list archive at Nabble.com.
> >>>
> >>>
> >>> ------------------------------------------------------------------------
> >>> -
> >>> This SF.net email is sponsored by DB2 Express
> >>> Download DB2 Express C - the FREE version of DB2 express and take
> >>> control of your XML. No limits. Just data. Click to get it now.
> >>> http://sourceforge.net/powerbar/db2/
> >>> _______________________________________________
> >>> U-Boot-Users mailing list
> >>> U-Boot-Users at lists.sourceforge.net
> >>> https://lists.sourceforge.net/lists/listinfo/u-boot-users
> >>>
> >>> -------------------------------------------------------------------------
> >>> This SF.net email is sponsored by DB2 Express
> >>> Download DB2 Express C - the FREE version of DB2 express and take
> >>> control of your XML. No limits. Just data. Click to get it now.
> >>> http://sourceforge.net/powerbar/db2/
> >>> _______________________________________________
> >>> U-Boot-Users mailing list
> >>> U-Boot-Users at lists.sourceforge.net
> >>> https://lists.sourceforge.net/lists/listinfo/u-boot-users
> >>>
> >>
> >> -------------------------------------------------------------------------
> >> This SF.net email is sponsored by DB2 Express
> >> Download DB2 Express C - the FREE version of DB2 express and take
> >> control of your XML. No limits. Just data. Click to get it now.
> >> http://sourceforge.net/powerbar/db2/
> >> _______________________________________________
> >> U-Boot-Users mailing list
> >> U-Boot-Users at lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/u-boot-users
> >>
> >>
> >
> >
>
> --
> View this message in context: http://www.nabble.com/Set-bootcmd-through-BDI2000-tf3992055.html#a11344423
> Sent from the Uboot - Users mailing list archive at Nabble.com.
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users
>

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

* [U-Boot-Users] Set bootcmd through BDI2000
  2007-06-28 14:44       ` Angad
  2007-06-28 14:56         ` nicky geerts
@ 2007-06-28 14:59         ` Ben Warren
  1 sibling, 0 replies; 8+ messages in thread
From: Ben Warren @ 2007-06-28 14:59 UTC (permalink / raw)
  To: u-boot

On Thu, 2007-06-28 at 07:44 -0700, Angad wrote:
> How do you dump the env vriables to a file via the BDI? and is there a way to
> re-download them the board?
> 
> Thanks
> 
Please don't top-post.

If your environment is in a separate sector(s) of NOR flash, you can
dump it via

dump <addr> <size> [<file>]

where addr and size are the start address and size of the flash sector.

You can then re-burn the sector in the usual way (erase/prog)

regards,
Ben

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

* [U-Boot-Users] Set bootcmd through BDI2000
  2007-06-28 14:43     ` Angad
  2007-06-28 14:44       ` Angad
@ 2007-06-28 15:05       ` Ben Warren
  1 sibling, 0 replies; 8+ messages in thread
From: Ben Warren @ 2007-06-28 15:05 UTC (permalink / raw)
  To: u-boot

On Thu, 2007-06-28 at 07:43 -0700, Angad wrote:
> Doing a setenv and saveenv write the variables to the eeprom. Erasing th
> eflash via the BDI does not reset those variables. Is there a way to erase
> the eeprom from the BDI. 
> 
> Thanks for the replies.

If your environment is in NOR flash, make sure you wipe out both the
primary and secondary (if you're using redundancy) sectors.  This will
wipe the environment.  

I'm assuming you're using dedicated sectors for environment.  If your
environment is embedded in U-boot, you'll have to re-flash the image.

If you're using a serial flash, you'll have to find another way, since
BDI doesn't do SPI or I2C as far as I know.

regards,
Ben 

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

end of thread, other threads:[~2007-06-28 15:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-28  2:22 [U-Boot-Users] Set bootcmd through BDI2000 Angad
2007-06-28  6:18 ` Leonid
2007-06-28  6:27   ` nicky geerts
2007-06-28 14:43     ` Angad
2007-06-28 14:44       ` Angad
2007-06-28 14:56         ` nicky geerts
2007-06-28 14:59         ` Ben Warren
2007-06-28 15:05       ` Ben Warren

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.