From: Prabhakar Lad <prabhakar.lad@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v5 20/25] da850: Add README.da850
Date: Wed, 29 Aug 2012 13:03:30 +0530 [thread overview]
Message-ID: <503DC5CA.701@ti.com> (raw)
In-Reply-To: <1346109527-17182-21-git-send-email-trini@ti.com>
On Tuesday 28 August 2012 04:48 AM, Tom Rini wrote:
> This file documents when to build for da850evm and when to build for
> da850_am18xxevm. It also documents how to write the u-boot.ais file to
> persistent storage (such as SPI), in some cases as well as how to write
> a recovery image.
>
> Signed-off-by: Tom Rini <trini@ti.com>
Acked-by: Prabhakar Lad <prabhakar.lad@ti.com>
Regards,
--Prabhakar
> ---
> Changes in v2:
> - Add README.da850_am18xxevm
>
> Changes in v3:
> - Fix thinko, Nand -> SPI (spotted by Prabhakar Lad)
> - Rename to README.da850, add more direct recovery method (Christian Riesch)
>
> Changes in v4:
> - Further re-word README.da850 based on feedback from Christian Riesch
>
> board/davinci/da8xxevm/README.da850 | 68 +++++++++++++++++++++++++++++++++++
> 1 file changed, 68 insertions(+)
> create mode 100644 board/davinci/da8xxevm/README.da850
>
> diff --git a/board/davinci/da8xxevm/README.da850 b/board/davinci/da8xxevm/README.da850
> new file mode 100644
> index 0000000..621a95d
> --- /dev/null
> +++ b/board/davinci/da8xxevm/README.da850
> @@ -0,0 +1,68 @@
> +Summary
> +=======
> +The README is for the boot procedure used for various DA850 (or compatible
> +parts such as the AM1808) based boards.
> +
> +In the context of U-Boot, the board is booted in three stages. The initial
> +bootloader which executes upon reset is the ROM Boot Loader (RBL) and sits
> +in the internal ROM. The RBL initializes the internal memory and then
> +depending on the exact board and pin configurations will initialize another
> +controller (such as SPI or NAND) to continue the boot process by loading
> +the secondary program loader (SPL). The SPL will initialize the system
> +further (some clocks, SDRAM) and then load the full u-boot from a
> +predefined location in persistent storage to DDR and jumps to the u-boot
> +entry point.
> +
> +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 AIS format allows for
> +other things such as programming the clocks and SDRAM if the header is
> +programmed for it. We do not take advantage of this and instead use SPL as
> +it allows for additional flexibility (run-time detect of board revision,
> +loading the next image from a different media, etc).
> +
> +
> +Compilation
> +===========
> +The exact build target you need will depend on the board you have. For
> +Logic PD boards, or other boards which store the ethernet MAC address at
> +the end of SPI flash, run 'make da850evm'. For boards which store the
> +ethernet MAC address in the i2c EEPROM located at 0x50, run
> +'make da850_am18xxevm'. Once this build completes you will have a
> +u-boot.ais file that needs to be written to the correct persistent
> +storage.
> +
> +
> +Flashing the images to SPI
> +==========================
> +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 the u-boot.ais file. An example of recovering to the SPI
> +flash of an AM1808 would be:
> +
> +$ mono sfh_OMAP-L138.exe -targetType AM1808 -p /dev/ttyUSB0 \
> + -flash_noubl /path/to/u-boot.ais
> +
> +For other target types and flash locations:
> +
> +$ mono sfh_OMAP-L138.exe -h
> +
> +Links
> +=====
> +[1]
> + http://processors.wiki.ti.com/index.php/Serial_Boot_and_Flash_Loading_Utility_for_OMAP-L137
>
next prev parent reply other threads:[~2012-08-29 7:33 UTC|newest]
Thread overview: 34+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-27 23:18 [U-Boot] [PATCH v5 0/25] ARM: SPL: Make more generic, merge DaVinci and OMAP Tom Rini
2012-08-27 23:18 ` [U-Boot] [PATCH v5 01/25] Makefile: Move SPL files to clobber, remove from clean Tom Rini
2012-08-27 23:18 ` [U-Boot] [PATCH v5 02/25] spl_mmc: Make FAT checks / calls guarded with CONFIG_SPL_FAT_SUPPORT Tom Rini
2012-08-27 23:18 ` [U-Boot] [PATCH v5 03/25] omap-common: SPL: Add CONFIG_SPL_DISPLAY_PRINT / spl_display_print() Tom Rini
2012-08-27 23:18 ` [U-Boot] [PATCH v5 04/25] omap-common: Fix typo in save_boot_params() in lowlevel_init.S Tom Rini
2012-08-27 23:18 ` [U-Boot] [PATCH v5 05/25] ARM: SPL: Rename omap_boot_device to spl_boot_device Tom Rini
2012-08-27 23:18 ` [U-Boot] [PATCH v5 06/25] ARM: SPL: Rename omap_boot_mode to spl_boot_mode() Tom Rini
2012-08-27 23:18 ` [U-Boot] [PATCH v5 07/25] ARM: SPL: Remove NAND_MODE_HW_ECC from spl_nand.c Tom Rini
2012-08-27 23:18 ` [U-Boot] [PATCH v5 08/25] ARM: SPL: Only call mem_malloc_init if configured Tom Rini
2012-08-27 23:18 ` [U-Boot] [PATCH v5 09/25] ARM: SPL: Add <asm/spl.h> and <asm/arch/spl.h> Tom Rini
2012-08-27 23:18 ` [U-Boot] [PATCH v5 10/25] ARM: SPL: Make spl_mmc.c more generic Tom Rini
2012-08-27 23:18 ` [U-Boot] [PATCH v5 11/25] ARM: SPL: Clean up spl.c / spl_nand.c slightly Tom Rini
2012-08-27 23:18 ` [U-Boot] [PATCH v5 12/25] ARM: SPL: Start hooking in the current SPI SPL support Tom Rini
2012-08-27 23:18 ` [U-Boot] [PATCH v5 13/25] ARM: SPL: Move gpmc_init() to spl_board_init() Tom Rini
2012-08-27 23:18 ` [U-Boot] [PATCH v5 14/25] SPL: Move the omap SPL framework to common/spl Tom Rini
2012-08-27 23:18 ` [U-Boot] [PATCH v5 15/25] SPL: Create arch/arm/lib/spl.c for board_init_f and jump_to_image_linux Tom Rini
2012-08-27 23:18 ` [U-Boot] [PATCH v5 16/25] SPL: do not use fix value for u-boot size Tom Rini
2012-08-27 23:18 ` [U-Boot] [PATCH v5 17/25] SPL: Use image_get_xxx() functions to access header values Tom Rini
2012-08-27 23:18 ` [U-Boot] [PATCH v5 18/25] SPL: NAND: Move arch/arm/cpu/armv7/omap-common/spl_nand.c to common/spl Tom Rini
2012-08-27 23:22 ` Scott Wood
2012-08-28 0:36 ` Tom Rini
2012-08-28 0:38 ` Scott Wood
2012-08-28 0:53 ` Tom Rini
2012-08-27 23:18 ` [U-Boot] [PATCH v5 19/25] ARM: SPL: Convert davinci to CONFIG_SPL_FRAMEWORK Tom Rini
2012-08-27 23:18 ` [U-Boot] [PATCH v5 20/25] da850: Add README.da850 Tom Rini
2012-08-28 6:56 ` Christian Riesch
2012-08-28 7:27 ` Christian Riesch
2012-08-28 14:59 ` Tom Rini
2012-08-29 7:33 ` Prabhakar Lad [this message]
2012-08-27 23:18 ` [U-Boot] [PATCH v5 21/25] SPL: Add NOR flash booting support Tom Rini
2012-08-27 23:18 ` [U-Boot] [PATCH v5 22/25] SPL: Add option to skip copying of the mkimage header Tom Rini
2012-08-27 23:18 ` [U-Boot] [PATCH v5 23/25] SPL: SPI: Enhance spi_spl_load to match the other load functions Tom Rini
2012-08-27 23:18 ` [U-Boot] [PATCH v5 24/25] SPL: Make un-supported boot device puts a debug instead Tom Rini
2012-08-27 23:18 ` [U-Boot] [PATCH v5 25/25] SPL: Rework how we inform about un-headered images Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=503DC5CA.701@ti.com \
--to=prabhakar.lad@ti.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.