diff mbox

[U-Boot,v2,16/18] da850_am18xxevm: Add README.da850_am18xxevm

Message ID 1345481154-7050-17-git-send-email-trini@ti.com
State Superseded
Delegated to: Tom Rini
Headers show

Commit Message

Tom Rini Aug. 20, 2012, 4:45 p.m. UTC
Add a board-specific README that documents how to write u-boot.ais to
the SPI found on this board.

Changes-series: 2
- Add

Signed-off-by: Tom Rini <trini@ti.com>
---

 board/davinci/da8xxevm/README.da850_am18xxevm |   53 +++++++++++++++++++++++++
 1 file changed, 53 insertions(+)
 create mode 100644 board/davinci/da8xxevm/README.da850_am18xxevm

Comments

Prabhakar Lad Aug. 21, 2012, 5:09 a.m. UTC | #1
Hi Tom,

Thanks for the patch.

On Monday 20 August 2012 10:15 PM, Tom Rini wrote:
> Add a board-specific README that documents how to write u-boot.ais to
> the SPI found on this board.
> 
> Changes-series: 2
> - Add
> 
> Signed-off-by: Tom Rini <trini@ti.com>
> ---
> 
>  board/davinci/da8xxevm/README.da850_am18xxevm |   53 +++++++++++++++++++++++++
>  1 file changed, 53 insertions(+)
>  create mode 100644 board/davinci/da8xxevm/README.da850_am18xxevm
> 
> diff --git a/board/davinci/da8xxevm/README.da850_am18xxevm b/board/davinci/da8xxevm/README.da850_am18xxevm
> new file mode 100644
> index 0000000..382b718
> --- /dev/null
> +++ b/board/davinci/da8xxevm/README.da850_am18xxevm
> @@ -0,0 +1,53 @@
> +Summary
> +=======
> +The README is for the boot procedure used for the LogicPD AM1808 EVM.
> +
> +The board is booted in three stages. The initial bootloader which executes
> +upon reset is the Rom Boot Loader(RBL) which sits in the internal ROM. The
> +RBL initialises the memory and the SPI controller and reads the AIS image
> +starting at block 0.  This image can contain both the SPL and U-Boot
> +binaries.
> +
> +AIS is an image format defined by TI for the images that are to be
> +loaded to memory by the RBL. The image is divided into a series of
> +sections and the image's entry point is specified. Each section comes
> +with meta data like the target address the section is to be copied to
> +and the size of the section, which is used by the RBL to load the
> +image. At the end of the image the RBL jumps to the image entry
> +point.
> +
> +The secondary stage bootloader(spl) which is loaded by the RBL then loads
> +the u-boot from a predefined location in SPI to DDR and jumps to the u-boot
> +entry point.
> +
> +
> +Compilation
> +===========
> +To build a SPI-bootable image, run 'make da850_am18xxevm'.  This will build
> +the u-boot.ais file that needs to be written to SPI flash.
> +
> +
> +Flashing the images to Nand
> +===========================
> +The AIS image can be written to SPI flash using the following commands.
> +Assuming that the network is configured and enabled and the u-boot.ais file
> +is tftp'able.
> +
> +U-Boot > sf probe 0
> +U-Boot > sf erase 0 +320000
> +U-Boot > tftp u-boot.ais
> +U-Boot > sf write c0700000 0 $filesize
> +
  Is this procedure to be done in Nand boot mode ?

Thx,
--Prabhakar

> +
> +Recovery
> +========
> +
> +In the case of a "bricked" board, you need to use the TI tools found
> +here[1] to write a UBL file and u-boot.bin.  Once the system is running
> +again from these tools a good u-boot.ais may be re-written to SPI flash.
> +
> +
> +Links
> +=====
> +[1]
> + http://processors.wiki.ti.com/index.php/Serial_Boot_and_Flash_Loading_Utility_for_OMAP-L137
>
Tom Rini Aug. 21, 2012, 3:34 p.m. UTC | #2
On 08/20/2012 10:09 PM, Prabhakar Lad wrote:
> Hi Tom,
> 
> Thanks for the patch.
> 
> On Monday 20 August 2012 10:15 PM, Tom Rini wrote:
>> Add a board-specific README that documents how to write u-boot.ais to
>> the SPI found on this board.
>>
>> Changes-series: 2
>> - Add
>>
>> Signed-off-by: Tom Rini <trini@ti.com>
>> ---
>>
>>  board/davinci/da8xxevm/README.da850_am18xxevm |   53 +++++++++++++++++++++++++
>>  1 file changed, 53 insertions(+)
>>  create mode 100644 board/davinci/da8xxevm/README.da850_am18xxevm
>>
>> diff --git a/board/davinci/da8xxevm/README.da850_am18xxevm b/board/davinci/da8xxevm/README.da850_am18xxevm
>> new file mode 100644
>> index 0000000..382b718
>> --- /dev/null
>> +++ b/board/davinci/da8xxevm/README.da850_am18xxevm
>> @@ -0,0 +1,53 @@
>> +Summary
>> +=======
>> +The README is for the boot procedure used for the LogicPD AM1808 EVM.
>> +
>> +The board is booted in three stages. The initial bootloader which executes
>> +upon reset is the Rom Boot Loader(RBL) which sits in the internal ROM. The
>> +RBL initialises the memory and the SPI controller and reads the AIS image
>> +starting at block 0.  This image can contain both the SPL and U-Boot
>> +binaries.
>> +
>> +AIS is an image format defined by TI for the images that are to be
>> +loaded to memory by the RBL. The image is divided into a series of
>> +sections and the image's entry point is specified. Each section comes
>> +with meta data like the target address the section is to be copied to
>> +and the size of the section, which is used by the RBL to load the
>> +image. At the end of the image the RBL jumps to the image entry
>> +point.
>> +
>> +The secondary stage bootloader(spl) which is loaded by the RBL then loads
>> +the u-boot from a predefined location in SPI to DDR and jumps to the u-boot
>> +entry point.
>> +
>> +
>> +Compilation
>> +===========
>> +To build a SPI-bootable image, run 'make da850_am18xxevm'.  This will build
>> +the u-boot.ais file that needs to be written to SPI flash.
>> +
>> +
>> +Flashing the images to Nand
>> +===========================
>> +The AIS image can be written to SPI flash using the following commands.
>> +Assuming that the network is configured and enabled and the u-boot.ais file
>> +is tftp'able.
>> +
>> +U-Boot > sf probe 0
>> +U-Boot > sf erase 0 +320000
>> +U-Boot > tftp u-boot.ais
>> +U-Boot > sf write c0700000 0 $filesize
>> +
>   Is this procedure to be done in Nand boot mode ?

This board, as far as I know (which isn't much) doesn't use NAND, just
SPI.  The USE_NAND section of da850evm.h doesn't seem reachable today at
least.
Prabhakar Lad Aug. 22, 2012, 4:46 a.m. UTC | #3
On Tuesday 21 August 2012 09:04 PM, Tom Rini wrote:
> On 08/20/2012 10:09 PM, Prabhakar Lad wrote:
>> Hi Tom,
>>
>> Thanks for the patch.
>>
>> On Monday 20 August 2012 10:15 PM, Tom Rini wrote:
>>> Add a board-specific README that documents how to write u-boot.ais to
>>> the SPI found on this board.
>>>
>>> Changes-series: 2
>>> - Add
>>>
>>> Signed-off-by: Tom Rini <trini@ti.com>
>>> ---
>>>
>>>  board/davinci/da8xxevm/README.da850_am18xxevm |   53 +++++++++++++++++++++++++
>>>  1 file changed, 53 insertions(+)
>>>  create mode 100644 board/davinci/da8xxevm/README.da850_am18xxevm
>>>
>>> diff --git a/board/davinci/da8xxevm/README.da850_am18xxevm b/board/davinci/da8xxevm/README.da850_am18xxevm
>>> new file mode 100644
>>> index 0000000..382b718
>>> --- /dev/null
>>> +++ b/board/davinci/da8xxevm/README.da850_am18xxevm
>>> @@ -0,0 +1,53 @@
>>> +Summary
>>> +=======
>>> +The README is for the boot procedure used for the LogicPD AM1808 EVM.
>>> +
>>> +The board is booted in three stages. The initial bootloader which executes
>>> +upon reset is the Rom Boot Loader(RBL) which sits in the internal ROM. The
>>> +RBL initialises the memory and the SPI controller and reads the AIS image
>>> +starting at block 0.  This image can contain both the SPL and U-Boot
>>> +binaries.
>>> +
>>> +AIS is an image format defined by TI for the images that are to be
>>> +loaded to memory by the RBL. The image is divided into a series of
>>> +sections and the image's entry point is specified. Each section comes
>>> +with meta data like the target address the section is to be copied to
>>> +and the size of the section, which is used by the RBL to load the
>>> +image. At the end of the image the RBL jumps to the image entry
>>> +point.
>>> +
>>> +The secondary stage bootloader(spl) which is loaded by the RBL then loads
>>> +the u-boot from a predefined location in SPI to DDR and jumps to the u-boot
>>> +entry point.
>>> +
>>> +
>>> +Compilation
>>> +===========
>>> +To build a SPI-bootable image, run 'make da850_am18xxevm'.  This will build
>>> +the u-boot.ais file that needs to be written to SPI flash.
>>> +
>>> +
>>> +Flashing the images to Nand
>>> +===========================
>>> +The AIS image can be written to SPI flash using the following commands.
>>> +Assuming that the network is configured and enabled and the u-boot.ais file
>>> +is tftp'able.
>>> +
>>> +U-Boot > sf probe 0
>>> +U-Boot > sf erase 0 +320000
>>> +U-Boot > tftp u-boot.ais
>>> +U-Boot > sf write c0700000 0 $filesize
>>> +
>>   Is this procedure to be done in Nand boot mode ?
> 
> This board, as far as I know (which isn't much) doesn't use NAND, just
> SPI.  The USE_NAND section of da850evm.h doesn't seem reachable today at
> least.
> 
  But the title for above says 'Flashing the images to Nand' ? It should
be SPI.

Thx,
--Prabhakar
Tom Rini Aug. 22, 2012, 6:28 a.m. UTC | #4
On Tue, Aug 21, 2012 at 9:46 PM, Prabhakar Lad <prabhakar.lad@ti.com> wrote:
> On Tuesday 21 August 2012 09:04 PM, Tom Rini wrote:
>> On 08/20/2012 10:09 PM, Prabhakar Lad wrote:
>>> Hi Tom,
>>>
>>> Thanks for the patch.
>>>
>>> On Monday 20 August 2012 10:15 PM, Tom Rini wrote:
>>>> Add a board-specific README that documents how to write u-boot.ais to
>>>> the SPI found on this board.
>>>>
>>>> Changes-series: 2
>>>> - Add
>>>>
>>>> Signed-off-by: Tom Rini <trini@ti.com>
>>>> ---
>>>>
>>>>  board/davinci/da8xxevm/README.da850_am18xxevm |   53 +++++++++++++++++++++++++
>>>>  1 file changed, 53 insertions(+)
>>>>  create mode 100644 board/davinci/da8xxevm/README.da850_am18xxevm
>>>>
>>>> diff --git a/board/davinci/da8xxevm/README.da850_am18xxevm b/board/davinci/da8xxevm/README.da850_am18xxevm
>>>> new file mode 100644
>>>> index 0000000..382b718
>>>> --- /dev/null
>>>> +++ b/board/davinci/da8xxevm/README.da850_am18xxevm
>>>> @@ -0,0 +1,53 @@
>>>> +Summary
>>>> +=======
>>>> +The README is for the boot procedure used for the LogicPD AM1808 EVM.
>>>> +
>>>> +The board is booted in three stages. The initial bootloader which executes
>>>> +upon reset is the Rom Boot Loader(RBL) which sits in the internal ROM. The
>>>> +RBL initialises the memory and the SPI controller and reads the AIS image
>>>> +starting at block 0.  This image can contain both the SPL and U-Boot
>>>> +binaries.
>>>> +
>>>> +AIS is an image format defined by TI for the images that are to be
>>>> +loaded to memory by the RBL. The image is divided into a series of
>>>> +sections and the image's entry point is specified. Each section comes
>>>> +with meta data like the target address the section is to be copied to
>>>> +and the size of the section, which is used by the RBL to load the
>>>> +image. At the end of the image the RBL jumps to the image entry
>>>> +point.
>>>> +
>>>> +The secondary stage bootloader(spl) which is loaded by the RBL then loads
>>>> +the u-boot from a predefined location in SPI to DDR and jumps to the u-boot
>>>> +entry point.
>>>> +
>>>> +
>>>> +Compilation
>>>> +===========
>>>> +To build a SPI-bootable image, run 'make da850_am18xxevm'.  This will build
>>>> +the u-boot.ais file that needs to be written to SPI flash.
>>>> +
>>>> +
>>>> +Flashing the images to Nand
>>>> +===========================
>>>> +The AIS image can be written to SPI flash using the following commands.
>>>> +Assuming that the network is configured and enabled and the u-boot.ais file
>>>> +is tftp'able.
>>>> +
>>>> +U-Boot > sf probe 0
>>>> +U-Boot > sf erase 0 +320000
>>>> +U-Boot > tftp u-boot.ais
>>>> +U-Boot > sf write c0700000 0 $filesize
>>>> +
>>>   Is this procedure to be done in Nand boot mode ?
>>
>> This board, as far as I know (which isn't much) doesn't use NAND, just
>> SPI.  The USE_NAND section of da850evm.h doesn't seem reachable today at
>> least.
>>
>   But the title for above says 'Flashing the images to Nand' ? It should
> be SPI.

You are correct, thanks.
Christian Riesch Aug. 22, 2012, 8:13 a.m. UTC | #5
[cc'd Manjunath Hadli]

Hi Tom,

On Mon, Aug 20, 2012 at 6:45 PM, Tom Rini <trini@ti.com> wrote:
> Add a board-specific README that documents how to write u-boot.ais to
> the SPI found on this board.
>
> Changes-series: 2
> - Add
>
> Signed-off-by: Tom Rini <trini@ti.com>
> ---
>
>  board/davinci/da8xxevm/README.da850_am18xxevm |   53 +++++++++++++++++++++++++
>  1 file changed, 53 insertions(+)
>  create mode 100644 board/davinci/da8xxevm/README.da850_am18xxevm
>
> diff --git a/board/davinci/da8xxevm/README.da850_am18xxevm b/board/davinci/da8xxevm/README.da850_am18xxevm
> new file mode 100644
> index 0000000..382b718
> --- /dev/null
> +++ b/board/davinci/da8xxevm/README.da850_am18xxevm
> @@ -0,0 +1,53 @@
> +Summary
> +=======
> +The README is for the boot procedure used for the LogicPD AM1808 EVM.
> +
> +The board is booted in three stages. The initial bootloader which executes
> +upon reset is the Rom Boot Loader(RBL) which sits in the internal ROM. The
> +RBL initialises the memory and the SPI controller and reads the AIS image
> +starting at block 0.  This image can contain both the SPL and U-Boot
> +binaries.
> +
> +AIS is an image format defined by TI for the images that are to be
> +loaded to memory by the RBL. The image is divided into a series of
> +sections and the image's entry point is specified. Each section comes
> +with meta data like the target address the section is to be copied to
> +and the size of the section, which is used by the RBL to load the
> +image. At the end of the image the RBL jumps to the image entry
> +point.
> +
> +The secondary stage bootloader(spl) which is loaded by the RBL then loads
> +the u-boot from a predefined location in SPI to DDR and jumps to the u-boot
> +entry point.
> +
> +
> +Compilation
> +===========
> +To build a SPI-bootable image, run 'make da850_am18xxevm'.  This will build

da850_am18xxevm is for the Spectrum Digital EVM for the AM1808. For
the Logic PD board you will need 'make da850evm'. See [1]

Regards, Christian


[1] http://lists.denx.de/pipermail/u-boot/2012-February/117082.html

> +the u-boot.ais file that needs to be written to SPI flash.
> +
> +
> +Flashing the images to Nand
> +===========================
> +The AIS image can be written to SPI flash using the following commands.
> +Assuming that the network is configured and enabled and the u-boot.ais file
> +is tftp'able.
> +
> +U-Boot > sf probe 0
> +U-Boot > sf erase 0 +320000
> +U-Boot > tftp u-boot.ais
> +U-Boot > sf write c0700000 0 $filesize
> +
> +
> +Recovery
> +========
> +
> +In the case of a "bricked" board, you need to use the TI tools found
> +here[1] to write a UBL file and u-boot.bin.  Once the system is running
> +again from these tools a good u-boot.ais may be re-written to SPI flash.
> +
> +
> +Links
> +=====
> +[1]
> + http://processors.wiki.ti.com/index.php/Serial_Boot_and_Flash_Loading_Utility_for_OMAP-L137
> --
> 1.7.9.5
>
> _______________________________________________
> U-Boot mailing list
> U-Boot@lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
Prabhakar Lad Aug. 22, 2012, 9:07 a.m. UTC | #6
Hi,

On Wednesday 22 August 2012 01:43 PM, Christian Riesch wrote:
> [cc'd Manjunath Hadli]
> 
> Hi Tom,
> 
> On Mon, Aug 20, 2012 at 6:45 PM, Tom Rini <trini@ti.com> wrote:
>> Add a board-specific README that documents how to write u-boot.ais to
>> the SPI found on this board.
>>
>> Changes-series: 2
>> - Add
>>
>> Signed-off-by: Tom Rini <trini@ti.com>
>> ---
>>
>>  board/davinci/da8xxevm/README.da850_am18xxevm |   53 +++++++++++++++++++++++++
>>  1 file changed, 53 insertions(+)
>>  create mode 100644 board/davinci/da8xxevm/README.da850_am18xxevm
>>
>> diff --git a/board/davinci/da8xxevm/README.da850_am18xxevm b/board/davinci/da8xxevm/README.da850_am18xxevm
>> new file mode 100644
>> index 0000000..382b718
>> --- /dev/null
>> +++ b/board/davinci/da8xxevm/README.da850_am18xxevm
>> @@ -0,0 +1,53 @@
>> +Summary
>> +=======
>> +The README is for the boot procedure used for the LogicPD AM1808 EVM.
>> +
>> +The board is booted in three stages. The initial bootloader which executes
>> +upon reset is the Rom Boot Loader(RBL) which sits in the internal ROM. The
>> +RBL initialises the memory and the SPI controller and reads the AIS image
>> +starting at block 0.  This image can contain both the SPL and U-Boot
>> +binaries.
>> +
>> +AIS is an image format defined by TI for the images that are to be
>> +loaded to memory by the RBL. The image is divided into a series of
>> +sections and the image's entry point is specified. Each section comes
>> +with meta data like the target address the section is to be copied to
>> +and the size of the section, which is used by the RBL to load the
>> +image. At the end of the image the RBL jumps to the image entry
>> +point.
>> +
>> +The secondary stage bootloader(spl) which is loaded by the RBL then loads
>> +the u-boot from a predefined location in SPI to DDR and jumps to the u-boot
>> +entry point.
>> +
>> +
>> +Compilation
>> +===========
>> +To build a SPI-bootable image, run 'make da850_am18xxevm'.  This will build
> 
> da850_am18xxevm is for the Spectrum Digital EVM for the AM1808. For
> the Logic PD board you will need 'make da850evm'. See [1]
> 
  May be having a common README for am18x and omap-l138 would be good ?

Thx,
--Prabhakar

> Regards, Christian
> 
> 
> [1] http://lists.denx.de/pipermail/u-boot/2012-February/117082.html
> 
>> +the u-boot.ais file that needs to be written to SPI flash.
>> +
>> +
>> +Flashing the images to Nand
>> +===========================
>> +The AIS image can be written to SPI flash using the following commands.
>> +Assuming that the network is configured and enabled and the u-boot.ais file
>> +is tftp'able.
>> +
>> +U-Boot > sf probe 0
>> +U-Boot > sf erase 0 +320000
>> +U-Boot > tftp u-boot.ais
>> +U-Boot > sf write c0700000 0 $filesize
>> +
>> +
>> +Recovery
>> +========
>> +
>> +In the case of a "bricked" board, you need to use the TI tools found
>> +here[1] to write a UBL file and u-boot.bin.  Once the system is running
>> +again from these tools a good u-boot.ais may be re-written to SPI flash.
>> +
>> +
>> +Links
>> +=====
>> +[1]
>> + http://processors.wiki.ti.com/index.php/Serial_Boot_and_Flash_Loading_Utility_for_OMAP-L137
>> --
>> 1.7.9.5
>>
>> _______________________________________________
>> U-Boot mailing list
>> U-Boot@lists.denx.de
>> http://lists.denx.de/mailman/listinfo/u-boot
> _______________________________________________
> U-Boot mailing list
> U-Boot@lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
>
Christian Riesch Aug. 22, 2012, 9:17 a.m. UTC | #7
Hi Prabhakar,

On Wed, Aug 22, 2012 at 11:07 AM, Prabhakar Lad <prabhakar.lad@ti.com> wrote:
> Hi,
>
> On Wednesday 22 August 2012 01:43 PM, Christian Riesch wrote:
>> [cc'd Manjunath Hadli]
>>
>> Hi Tom,
>>
>> On Mon, Aug 20, 2012 at 6:45 PM, Tom Rini <trini@ti.com> wrote:
>>> Add a board-specific README that documents how to write u-boot.ais to
>>> the SPI found on this board.
>>>
>>> Changes-series: 2
>>> - Add
>>>
>>> Signed-off-by: Tom Rini <trini@ti.com>
>>> ---
>>>
>>>  board/davinci/da8xxevm/README.da850_am18xxevm |   53 +++++++++++++++++++++++++
>>>  1 file changed, 53 insertions(+)
>>>  create mode 100644 board/davinci/da8xxevm/README.da850_am18xxevm
>>>
>>> diff --git a/board/davinci/da8xxevm/README.da850_am18xxevm b/board/davinci/da8xxevm/README.da850_am18xxevm
>>> new file mode 100644
>>> index 0000000..382b718
>>> --- /dev/null
>>> +++ b/board/davinci/da8xxevm/README.da850_am18xxevm
>>> @@ -0,0 +1,53 @@
>>> +Summary
>>> +=======
>>> +The README is for the boot procedure used for the LogicPD AM1808 EVM.
>>> +
>>> +The board is booted in three stages. The initial bootloader which executes
>>> +upon reset is the Rom Boot Loader(RBL) which sits in the internal ROM. The
>>> +RBL initialises the memory and the SPI controller and reads the AIS image
>>> +starting at block 0.  This image can contain both the SPL and U-Boot
>>> +binaries.
>>> +
>>> +AIS is an image format defined by TI for the images that are to be
>>> +loaded to memory by the RBL. The image is divided into a series of
>>> +sections and the image's entry point is specified. Each section comes
>>> +with meta data like the target address the section is to be copied to
>>> +and the size of the section, which is used by the RBL to load the
>>> +image. At the end of the image the RBL jumps to the image entry
>>> +point.
>>> +
>>> +The secondary stage bootloader(spl) which is loaded by the RBL then loads
>>> +the u-boot from a predefined location in SPI to DDR and jumps to the u-boot
>>> +entry point.
>>> +
>>> +
>>> +Compilation
>>> +===========
>>> +To build a SPI-bootable image, run 'make da850_am18xxevm'.  This will build
>>
>> da850_am18xxevm is for the Spectrum Digital EVM for the AM1808. For
>> the Logic PD board you will need 'make da850evm'. See [1]
>>
>   May be having a common README for am18x and omap-l138 would be good ?
>

This is a good idea.

But just to make it clear: Afaik the da850evm configuration works for
both the AM1808 and the OMAP-L138 board from LogicPD (at least I am
using it with the AM1808 experimenter's kit from LogicPD). The
da850_am18xxevm is for the Spectrum Digital board. At least this is
what I understood from the discussion with Manjunath Hadli in the in
the u-boot mailing list thread I cited earlier. I hope this is
correct, I haven't got other boards than the AM1808 board from LogicPD
to test.

Regards, Christian
Prabhakar Lad Aug. 22, 2012, 10:05 a.m. UTC | #8
Hi Christian,

On Wednesday 22 August 2012 02:47 PM, Christian Riesch wrote:
> Hi Prabhakar,
> 
> On Wed, Aug 22, 2012 at 11:07 AM, Prabhakar Lad <prabhakar.lad@ti.com> wrote:
>> Hi,
>>
>> On Wednesday 22 August 2012 01:43 PM, Christian Riesch wrote:
>>> [cc'd Manjunath Hadli]
>>>
>>> Hi Tom,
>>>
>>> On Mon, Aug 20, 2012 at 6:45 PM, Tom Rini <trini@ti.com> wrote:
>>>> Add a board-specific README that documents how to write u-boot.ais to
>>>> the SPI found on this board.
>>>>
>>>> Changes-series: 2
>>>> - Add
>>>>
>>>> Signed-off-by: Tom Rini <trini@ti.com>
>>>> ---
>>>>
>>>>  board/davinci/da8xxevm/README.da850_am18xxevm |   53 +++++++++++++++++++++++++
>>>>  1 file changed, 53 insertions(+)
>>>>  create mode 100644 board/davinci/da8xxevm/README.da850_am18xxevm
>>>>
>>>> diff --git a/board/davinci/da8xxevm/README.da850_am18xxevm b/board/davinci/da8xxevm/README.da850_am18xxevm
>>>> new file mode 100644
>>>> index 0000000..382b718
>>>> --- /dev/null
>>>> +++ b/board/davinci/da8xxevm/README.da850_am18xxevm
>>>> @@ -0,0 +1,53 @@
>>>> +Summary
>>>> +=======
>>>> +The README is for the boot procedure used for the LogicPD AM1808 EVM.
>>>> +
>>>> +The board is booted in three stages. The initial bootloader which executes
>>>> +upon reset is the Rom Boot Loader(RBL) which sits in the internal ROM. The
>>>> +RBL initialises the memory and the SPI controller and reads the AIS image
>>>> +starting at block 0.  This image can contain both the SPL and U-Boot
>>>> +binaries.
>>>> +
>>>> +AIS is an image format defined by TI for the images that are to be
>>>> +loaded to memory by the RBL. The image is divided into a series of
>>>> +sections and the image's entry point is specified. Each section comes
>>>> +with meta data like the target address the section is to be copied to
>>>> +and the size of the section, which is used by the RBL to load the
>>>> +image. At the end of the image the RBL jumps to the image entry
>>>> +point.
>>>> +
>>>> +The secondary stage bootloader(spl) which is loaded by the RBL then loads
>>>> +the u-boot from a predefined location in SPI to DDR and jumps to the u-boot
>>>> +entry point.
>>>> +
>>>> +
>>>> +Compilation
>>>> +===========
>>>> +To build a SPI-bootable image, run 'make da850_am18xxevm'.  This will build
>>>
>>> da850_am18xxevm is for the Spectrum Digital EVM for the AM1808. For
>>> the Logic PD board you will need 'make da850evm'. See [1]
>>>
>>   May be having a common README for am18x and omap-l138 would be good ?
>>
> 
> This is a good idea.
> 
> But just to make it clear: Afaik the da850evm configuration works for
> both the AM1808 and the OMAP-L138 board from LogicPD (at least I am
> using it with the AM1808 experimenter's kit from LogicPD). The
> da850_am18xxevm is for the Spectrum Digital board. At least this is
> what I understood from the discussion with Manjunath Hadli in the in
> the u-boot mailing list thread I cited earlier. I hope this is
> correct, I haven't got other boards than the AM1808 board from LogicPD
> to test.
> 
AFAIK the difference between AM1808 and OMAP-L138 is that,
1: The AM1808 has EEPROM and stores the MAC address in it where as
OMAP-L138 stores the MAC address in SPI flash.
2: The revision number differs for both.

Thx,
--Prabhakar

> Regards, Christian
>
Christian Riesch Aug. 22, 2012, 3:09 p.m. UTC | #9
Hi Prabhakar,

On Wednesday, August 22, 2012, Prabhakar Lad wrote:

> Hi Christian,
>
> On Wednesday 22 August 2012 02:47 PM, Christian Riesch wrote:
> > Hi Prabhakar,
> >
> > On Wed, Aug 22, 2012 at 11:07 AM, Prabhakar Lad <prabhakar.lad@ti.com<javascript:;>>
> wrote:
> >> Hi,
> >>
> >> On Wednesday 22 August 2012 01:43 PM, Christian Riesch wrote:
> >>> [cc'd Manjunath Hadli]
> >>>
> >>> Hi Tom,
> >>>
> >>> On Mon, Aug 20, 2012 at 6:45 PM, Tom Rini <trini@ti.com <javascript:;>>
> wrote:
> >>>> Add a board-specific README that documents how to write u-boot.ais to
> >>>> the SPI found on this board.
> >>>>
> >>>> Changes-series: 2
> >>>> - Add
> >>>>
> >>>> Signed-off-by: Tom Rini <trini@ti.com <javascript:;>>
> >>>> ---
> >>>>
> >>>>  board/davinci/da8xxevm/README.da850_am18xxevm |   53
> +++++++++++++++++++++++++
> >>>>  1 file changed, 53 insertions(+)
> >>>>  create mode 100644 board/davinci/da8xxevm/README.da850_am18xxevm
> >>>>
> >>>> diff --git a/board/davinci/da8xxevm/README.da850_am18xxevm
> b/board/davinci/da8xxevm/README.da850_am18xxevm
> >>>> new file mode 100644
> >>>> index 0000000..382b718
> >>>> --- /dev/null
> >>>> +++ b/board/davinci/da8xxevm/README.da850_am18xxevm
> >>>> @@ -0,0 +1,53 @@
> >>>> +Summary
> >>>> +=======
> >>>> +The README is for the boot procedure used for the LogicPD AM1808 EVM.
> >>>> +
> >>>> +The board is booted in three stages. The initial bootloader which
> executes
> >>>> +upon reset is the Rom Boot Loader(RBL) which sits in the internal
> ROM. The
> >>>> +RBL initialises the memory and the SPI controller and reads the AIS
> image
> >>>> +starting at block 0.  This image can contain both the SPL and U-Boot
> >>>> +binaries.
> >>>> +
> >>>> +AIS is an image format defined by TI for the images that are to be
> >>>> +loaded to memory by the RBL. The image is divided into a series of
> >>>> +sections and the image's entry point is specified. Each section comes
> >>>> +with meta data like the target address the section is to be copied to
> >>>> +and the size of the section, which is used by the RBL to load the
> >>>> +image. At the end of the image the RBL jumps to the image entry
> >>>> +point.
> >>>> +
> >>>> +The secondary stage bootloader(spl) which is loaded by the RBL then
> loads
> >>>> +the u-boot from a predefined location in SPI to DDR and jumps to the
> u-boot
> >>>> +entry point.
> >>>> +
> >>>> +
> >>>> +Compilation
> >>>> +===========
> >>>> +To build a SPI-bootable image, run 'make da850_am18xxevm'.  This
> will build
> >>>
> >>> da850_am18xxevm is for the Spectrum Digital EVM for the AM1808. For
> >>> the Logic PD board you will need 'make da850evm'. See [1]
> >>>
> >>   May be having a common README for am18x and omap-l138 would be good ?
> >>
> >
> > This is a good idea.
> >
> > But just to make it clear: Afaik the da850evm configuration works for
> > both the AM1808 and the OMAP-L138 board from LogicPD (at least I am
> > using it with the AM1808 experimenter's kit from LogicPD). The
> > da850_am18xxevm is for the Spectrum Digital board. At least this is
> > what I understood from the discussion with Manjunath Hadli in the in
> > the u-boot mailing list thread I cited earlier. I hope this is
> > correct, I haven't got other boards than the AM1808 board from LogicPD
> > to test.
> >
> AFAIK the difference between AM1808 and OMAP-L138 is that,
> 1: The AM1808 has EEPROM and stores the MAC address in it where as
> OMAP-L138 stores the MAC address in SPI flash.


Are you sure? I don't see that in datasheets/schematics.

Christian



> 2: The revision number differs for both.
>
> Thx,
> --Prabhakar
>
>



> > Regards, Christian
> >
>
> _______________________________________________
> U-Boot mailing list
> U-Boot@lists.denx.de <javascript:;>
> http://lists.denx.de/mailman/listinfo/u-boot
>
Tom Rini Aug. 22, 2012, 5:37 p.m. UTC | #10
On Wed, Aug 22, 2012 at 10:13:02AM +0200, Christian Riesch wrote:
> [cc'd Manjunath Hadli]
> 
> Hi Tom,
> 
> On Mon, Aug 20, 2012 at 6:45 PM, Tom Rini <trini@ti.com> wrote:
> > Add a board-specific README that documents how to write u-boot.ais to
> > the SPI found on this board.
> >
> > Changes-series: 2
> > - Add
> >
> > Signed-off-by: Tom Rini <trini@ti.com>
> > ---
> >
> >  board/davinci/da8xxevm/README.da850_am18xxevm |   53 +++++++++++++++++++++++++
> >  1 file changed, 53 insertions(+)
> >  create mode 100644 board/davinci/da8xxevm/README.da850_am18xxevm
> >
> > diff --git a/board/davinci/da8xxevm/README.da850_am18xxevm b/board/davinci/da8xxevm/README.da850_am18xxevm
> > new file mode 100644
> > index 0000000..382b718
> > --- /dev/null
> > +++ b/board/davinci/da8xxevm/README.da850_am18xxevm
> > @@ -0,0 +1,53 @@
> > +Summary
> > +=======
> > +The README is for the boot procedure used for the LogicPD AM1808 EVM.
> > +
> > +The board is booted in three stages. The initial bootloader which executes
> > +upon reset is the Rom Boot Loader(RBL) which sits in the internal ROM. The
> > +RBL initialises the memory and the SPI controller and reads the AIS image
> > +starting at block 0.  This image can contain both the SPL and U-Boot
> > +binaries.
> > +
> > +AIS is an image format defined by TI for the images that are to be
> > +loaded to memory by the RBL. The image is divided into a series of
> > +sections and the image's entry point is specified. Each section comes
> > +with meta data like the target address the section is to be copied to
> > +and the size of the section, which is used by the RBL to load the
> > +image. At the end of the image the RBL jumps to the image entry
> > +point.
> > +
> > +The secondary stage bootloader(spl) which is loaded by the RBL then loads
> > +the u-boot from a predefined location in SPI to DDR and jumps to the u-boot
> > +entry point.
> > +
> > +
> > +Compilation
> > +===========
> > +To build a SPI-bootable image, run 'make da850_am18xxevm'.  This will build
> 
> da850_am18xxevm is for the Spectrum Digital EVM for the AM1808. For
> the Logic PD board you will need 'make da850evm'. See [1]

This is funny since the Logic PD board is also called the "AM1808
Evaluation Module" rather than a "Davinci" EVM.  So the README needs a
little more work :)  I'll update and rename.
Tom Rini Aug. 22, 2012, 5:44 p.m. UTC | #11
On Wed, Aug 22, 2012 at 03:35:30PM +0530, Prabhakar Lad wrote:
> Hi Christian,
> 
> On Wednesday 22 August 2012 02:47 PM, Christian Riesch wrote:
> > Hi Prabhakar,
> > 
> > On Wed, Aug 22, 2012 at 11:07 AM, Prabhakar Lad <prabhakar.lad@ti.com> wrote:
> >> Hi,
> >>
> >> On Wednesday 22 August 2012 01:43 PM, Christian Riesch wrote:
> >>> [cc'd Manjunath Hadli]
> >>>
> >>> Hi Tom,
> >>>
> >>> On Mon, Aug 20, 2012 at 6:45 PM, Tom Rini <trini@ti.com> wrote:
> >>>> Add a board-specific README that documents how to write u-boot.ais to
> >>>> the SPI found on this board.
> >>>>
> >>>> Changes-series: 2
> >>>> - Add
> >>>>
> >>>> Signed-off-by: Tom Rini <trini@ti.com>
> >>>> ---
> >>>>
> >>>>  board/davinci/da8xxevm/README.da850_am18xxevm |   53 +++++++++++++++++++++++++
> >>>>  1 file changed, 53 insertions(+)
> >>>>  create mode 100644 board/davinci/da8xxevm/README.da850_am18xxevm
> >>>>
> >>>> diff --git a/board/davinci/da8xxevm/README.da850_am18xxevm b/board/davinci/da8xxevm/README.da850_am18xxevm
> >>>> new file mode 100644
> >>>> index 0000000..382b718
> >>>> --- /dev/null
> >>>> +++ b/board/davinci/da8xxevm/README.da850_am18xxevm
> >>>> @@ -0,0 +1,53 @@
> >>>> +Summary
> >>>> +=======
> >>>> +The README is for the boot procedure used for the LogicPD AM1808 EVM.
> >>>> +
> >>>> +The board is booted in three stages. The initial bootloader which executes
> >>>> +upon reset is the Rom Boot Loader(RBL) which sits in the internal ROM. The
> >>>> +RBL initialises the memory and the SPI controller and reads the AIS image
> >>>> +starting at block 0.  This image can contain both the SPL and U-Boot
> >>>> +binaries.
> >>>> +
> >>>> +AIS is an image format defined by TI for the images that are to be
> >>>> +loaded to memory by the RBL. The image is divided into a series of
> >>>> +sections and the image's entry point is specified. Each section comes
> >>>> +with meta data like the target address the section is to be copied to
> >>>> +and the size of the section, which is used by the RBL to load the
> >>>> +image. At the end of the image the RBL jumps to the image entry
> >>>> +point.
> >>>> +
> >>>> +The secondary stage bootloader(spl) which is loaded by the RBL then loads
> >>>> +the u-boot from a predefined location in SPI to DDR and jumps to the u-boot
> >>>> +entry point.
> >>>> +
> >>>> +
> >>>> +Compilation
> >>>> +===========
> >>>> +To build a SPI-bootable image, run 'make da850_am18xxevm'.  This will build
> >>>
> >>> da850_am18xxevm is for the Spectrum Digital EVM for the AM1808. For
> >>> the Logic PD board you will need 'make da850evm'. See [1]
> >>>
> >>   May be having a common README for am18x and omap-l138 would be good ?
> >>
> > 
> > This is a good idea.
> > 
> > But just to make it clear: Afaik the da850evm configuration works for
> > both the AM1808 and the OMAP-L138 board from LogicPD (at least I am
> > using it with the AM1808 experimenter's kit from LogicPD). The
> > da850_am18xxevm is for the Spectrum Digital board. At least this is
> > what I understood from the discussion with Manjunath Hadli in the in
> > the u-boot mailing list thread I cited earlier. I hope this is
> > correct, I haven't got other boards than the AM1808 board from LogicPD
> > to test.
> > 
> AFAIK the difference between AM1808 and OMAP-L138 is that,
> 1: The AM1808 has EEPROM and stores the MAC address in it where as
> OMAP-L138 stores the MAC address in SPI flash.

I don't think this is right.  I believe on the Logic PD board it's
stored in SPI (I know mine isn't stored in EEPROM).  I think the answer
is that the OMAP-L138 has DSP and the AM part does not.  This would mean
that Logic PD gets the most re-use out of the base-board possible :)
Prabhakar Lad Aug. 23, 2012, 4:51 a.m. UTC | #12
CC'ed Sekhar

On Wednesday 22 August 2012 08:39 PM, Christian Riesch wrote:
> Hi Prabhakar,
> 
> On Wednesday, August 22, 2012, Prabhakar Lad wrote:
> 
>     Hi Christian,
> 
>     On Wednesday 22 August 2012 02:47 PM, Christian Riesch wrote:
>     > Hi Prabhakar,
>     >
>     > On Wed, Aug 22, 2012 at 11:07 AM, Prabhakar Lad
>     <prabhakar.lad@ti.com <javascript:;>> wrote:
>     >> Hi,
>     >>
>     >> On Wednesday 22 August 2012 01:43 PM, Christian Riesch wrote:
>     >>> [cc'd Manjunath Hadli]
>     >>>
>     >>> Hi Tom,
>     >>>
>     >>> On Mon, Aug 20, 2012 at 6:45 PM, Tom Rini <trini@ti.com
>     <javascript:;>> wrote:
>     >>>> Add a board-specific README that documents how to write
>     u-boot.ais to
>     >>>> the SPI found on this board.
>     >>>>
>     >>>> Changes-series: 2
>     >>>> - Add
>     >>>>
>     >>>> Signed-off-by: Tom Rini <trini@ti.com <javascript:;>>
>     >>>> ---
>     >>>>
>     >>>>  board/davinci/da8xxevm/README.da850_am18xxevm |   53
>     +++++++++++++++++++++++++
>     >>>>  1 file changed, 53 insertions(+)
>     >>>>  create mode 100644 board/davinci/da8xxevm/README.da850_am18xxevm
>     >>>>
>     >>>> diff --git a/board/davinci/da8xxevm/README.da850_am18xxevm
>     b/board/davinci/da8xxevm/README.da850_am18xxevm
>     >>>> new file mode 100644
>     >>>> index 0000000..382b718
>     >>>> --- /dev/null
>     >>>> +++ b/board/davinci/da8xxevm/README.da850_am18xxevm
>     >>>> @@ -0,0 +1,53 @@
>     >>>> +Summary
>     >>>> +=======
>     >>>> +The README is for the boot procedure used for the LogicPD
>     AM1808 EVM.
>     >>>> +
>     >>>> +The board is booted in three stages. The initial bootloader
>     which executes
>     >>>> +upon reset is the Rom Boot Loader(RBL) which sits in the
>     internal ROM. The
>     >>>> +RBL initialises the memory and the SPI controller and reads
>     the AIS image
>     >>>> +starting at block 0.  This image can contain both the SPL and
>     U-Boot
>     >>>> +binaries.
>     >>>> +
>     >>>> +AIS is an image format defined by TI for the images that are to be
>     >>>> +loaded to memory by the RBL. The image is divided into a series of
>     >>>> +sections and the image's entry point is specified. Each
>     section comes
>     >>>> +with meta data like the target address the section is to be
>     copied to
>     >>>> +and the size of the section, which is used by the RBL to load the
>     >>>> +image. At the end of the image the RBL jumps to the image entry
>     >>>> +point.
>     >>>> +
>     >>>> +The secondary stage bootloader(spl) which is loaded by the RBL
>     then loads
>     >>>> +the u-boot from a predefined location in SPI to DDR and jumps
>     to the u-boot
>     >>>> +entry point.
>     >>>> +
>     >>>> +
>     >>>> +Compilation
>     >>>> +===========
>     >>>> +To build a SPI-bootable image, run 'make da850_am18xxevm'.
>      This will build
>     >>>
>     >>> da850_am18xxevm is for the Spectrum Digital EVM for the AM1808. For
>     >>> the Logic PD board you will need 'make da850evm'. See [1]
>     >>>
>     >>   May be having a common README for am18x and omap-l138 would be
>     good ?
>     >>
>     >
>     > This is a good idea.
>     >
>     > But just to make it clear: Afaik the da850evm configuration works for
>     > both the AM1808 and the OMAP-L138 board from LogicPD (at least I am
>     > using it with the AM1808 experimenter's kit from LogicPD). The
>     > da850_am18xxevm is for the Spectrum Digital board. At least this is
>     > what I understood from the discussion with Manjunath Hadli in the in
>     > the u-boot mailing list thread I cited earlier. I hope this is
>     > correct, I haven't got other boards than the AM1808 board from LogicPD
>     > to test.
>     >
>     AFAIK the difference between AM1808 and OMAP-L138 is that,
>     1: The AM1808 has EEPROM and stores the MAC address in it where as
>     OMAP-L138 stores the MAC address in SPI flash.
> 
> 
> Are you sure? I don't see that in datasheets/schematics.
> 
  Can you help here ?

Thx,
--Prabhakar

> Christian
> 
>  
> 
>     2: The revision number differs for both.
> 
>     Thx,
>     --Prabhakar
> 
> 
> 
>  
> 
>     > Regards, Christian
>     >
> 
>     _______________________________________________
>     U-Boot mailing list
>     U-Boot@lists.denx.de <javascript:;>
>     http://lists.denx.de/mailman/listinfo/u-boot
>
diff mbox

Patch

diff --git a/board/davinci/da8xxevm/README.da850_am18xxevm b/board/davinci/da8xxevm/README.da850_am18xxevm
new file mode 100644
index 0000000..382b718
--- /dev/null
+++ b/board/davinci/da8xxevm/README.da850_am18xxevm
@@ -0,0 +1,53 @@ 
+Summary
+=======
+The README is for the boot procedure used for the LogicPD AM1808 EVM.
+
+The board is booted in three stages. The initial bootloader which executes
+upon reset is the Rom Boot Loader(RBL) which sits in the internal ROM. The
+RBL initialises the memory and the SPI controller and reads the AIS image
+starting at block 0.  This image can contain both the SPL and U-Boot
+binaries.
+
+AIS is an image format defined by TI for the images that are to be
+loaded to memory by the RBL. The image is divided into a series of
+sections and the image's entry point is specified. Each section comes
+with meta data like the target address the section is to be copied to
+and the size of the section, which is used by the RBL to load the
+image. At the end of the image the RBL jumps to the image entry
+point.
+
+The secondary stage bootloader(spl) which is loaded by the RBL then loads
+the u-boot from a predefined location in SPI to DDR and jumps to the u-boot
+entry point.
+
+
+Compilation
+===========
+To build a SPI-bootable image, run 'make da850_am18xxevm'.  This will build
+the u-boot.ais file that needs to be written to SPI flash.
+
+
+Flashing the images to Nand
+===========================
+The AIS image can be written to SPI flash using the following commands.
+Assuming that the network is configured and enabled and the u-boot.ais file
+is tftp'able.
+
+U-Boot > sf probe 0
+U-Boot > sf erase 0 +320000
+U-Boot > tftp u-boot.ais
+U-Boot > sf write c0700000 0 $filesize
+
+
+Recovery
+========
+
+In the case of a "bricked" board, you need to use the TI tools found
+here[1] to write a UBL file and u-boot.bin.  Once the system is running
+again from these tools a good u-boot.ais may be re-written to SPI flash.
+
+
+Links
+=====
+[1]
+ http://processors.wiki.ti.com/index.php/Serial_Boot_and_Flash_Loading_Utility_for_OMAP-L137