How to flash the RidgeRun's u-boot in a new board

From RidgeRun Developer Connection

(Difference between revisions)
Jump to:navigation, search
(Flashing the u-boot into a TI DM365 EVM)
(Flashing the u-boot into a DM81xx)
(One intermediate revision not shown)
Line 365: Line 365:
8. Once the process has finished restore the switch SW4 to NAND boot mode (see [[Mistral DM37x EVM SDK 2011Q2 Getting Started Guide]]) board so you will be able to boot from NAND using the new RidgeRun's u-boot.
8. Once the process has finished restore the switch SW4 to NAND boot mode (see [[Mistral DM37x EVM SDK 2011Q2 Getting Started Guide]]) board so you will be able to boot from NAND using the new RidgeRun's u-boot.
 +
 +
= Flashing the u-boot into a DM81xx =
 +
Please see section called Flashing uboot, kernel and filesystem in NAND in the [https://www.ridgerun.com/developer/wiki/index.php/Getting_Started_Guide_for_DM8168_EVM DM8168 support page]

Revision as of 20:14, 7 November 2011

Contents

Introduction

The latest Stable Release of the RidgeRun SDK called 2011Q2 comes with a new installer system that give to the user a high flexibility and a huge variety of installation modes such as SD, NAND and JFFS2. However in order to achieve this features a new u-boot system must be placed in the board so it will support the features available.

Since a new board comes with the factory's default u-boot, it is necessary to flash the RidgeRun's u-boot in the board before continue using the SDK, but how can we install an image into the board using the RidgeRun's SDK if the board doesn't have the RidgeRun's u-boot installed?

Now we are going to explain how to flash the RidgeRun's u-boot for the following boards:

Flashing the u-boot into a LeopardBoard DM365

In order to flash the RidgeRun's SDK into a LeopardBoard DM365 you need to follow the next steps:

1. Create or download a pre-built SD card image for LeopardBoard DM365.

You can create a SD card image following the steps listed in How to boot a board from a SD card or if you prefer you can download any of the pre-built SD card images available in LeopardBoard DM365 pre-built images. You need to be registered in order to get access into the link provided.

2. Once you have the image recorded into a SD card the next step is to boot the board from SD card as is also described in How to boot a board from a SD card.

3. When the board is booting, stop it in the u-boot's count down as is shown below.

U-Boot 2010.12-rc2 (Jun 20 2011 - 09:33:44)

Cores: ARM 297 MHz
DDR:   243 MHz
I2C:   ready
DRAM:  128 MiB
NAND:  256 MiB
MMC:   davinci: 0, davinci: 1
Net:   Ethernet PHY: GENERIC @ 0x00
DaVinci-EMAC
Hit any key to stop autoboot:  0 
DM365 LEOPARD # 

4. Exit from your minicom/termnet session.

5. Set the Attached board on communication port option in the configuration window (make config).

-> Installer Configuration  
  -> Firmware deployment mode (<choice> [=y]) 
    -> Attached board on communication port

6. Build your SDK.

7. Once your SDK has been built, install the new bootloader into the board by running the following command:

make installbootloader

You will see a terminal output such as the shown below:

$ make installbootloader
  Ridgerun Linux SDK
  Board configuration: Leopard Board DM365
  Multi-core machine, using 3 out of 6 cores for building
 
  Installation system of uboot images over TFTP for host 10.251.101.4
  Be sure u-boot is running on 10.251.101.56:3001 and no process (like termnet) is using it
  Press return to continue...

  Performing handshake with u-boot...

  Trying to identify NAND block size... detected 0x20000
  Trying to identify NAND Page size... detected 2048

  Loading upgrade bootloader...
    Uboot <= setenv bootcmd
    Uboot <= saveenv
  Configuring the network...
    Uboot <= setenv autoload no
    Uboot <= dhcp
    Uboot <= setenv serverip 10.251.101.4
    Uboot <= setenv autostart no
     cp -f /home/mmadrigal/devdirs/DM365LEO-Stable/images/bootloader /srv/tftp/bootloader.mmadrigal.DM365LEO-Stable.leopard
    Uboot <= tftp 0x82000000 bootloader.mmadrigal.DM365LEO-Stable.leopard
  Running upgrade bootloader...
    Uboot <= icache off
    Uboot => go 0x82000000

  Performing handshake with u-boot...

  Restoring previous bootcmd value
    Uboot <= setenv bootcmd nboot 0x82000000 0 0x400000
    Uboot <= saveenv
  Building UBL image for flash...
  Building U-boot image for flash...
  Loading UBL
  Configuring the network...
    Uboot <= setenv autoload no
    Uboot <= dhcp
    Uboot <= setenv serverip 10.251.101.4
    Uboot <= setenv autostart no
     cp -f /home/mmadrigal/devdirs/DM365LEO-Stable/images/ubl_nand.nandbin /srv/tftp/ubl_nand.nandbin.mmadrigal.DM365LEO-Stable.leopard
    Uboot <= tftp 0x82000000 ubl_nand.nandbin.mmadrigal.DM365LEO-Stable.leopard
  Erasing UBL flash space...
    Uboot <= nand erase 0x20000 0x20000
    Uboot <= nand write.ubl 0x82000000 0x20000 0x20000
  Loading U-Boot
  Configuring the network...
    Uboot <= setenv autoload no
    Uboot <= dhcp
    Uboot <= setenv serverip 10.251.101.4
    Uboot <= setenv autostart no
     cp -f /home/mmadrigal/devdirs/DM365LEO-Stable/images/bootloader.nandbin /srv/tftp/bootloader.nandbin.mmadrigal.DM365LEO-Stable.leopard
    Uboot <= tftp 0x82000000 bootloader.nandbin.mmadrigal.DM365LEO-Stable.leopard
  Erasing U-Boot flash space...
    Uboot <= nand erase 0x320000 0x60000
    Uboot <= nand write.ubl 0x82000000 0x320000 0x60000
  Restarting u-boot
  Performing handshake with u-boot...


  Installation completed

8. Once the process has finished turn off the board and turn off the dip switch 2 in the board so you will be able to boot from NAND using the new RidgeRun's u-boot.

Flashing the u-boot into a TI DM365 EVM

In order to flash the RidgeRun's SDK into a DM365 EVM you need to follow the next steps:

1. Create or download a pre-built SD card image for EVM DM365.

You can create a SD card image following the steps listed in How to boot a board from a SD card or if you prefer you can download any of the pre-built SD card images available in DM365 EVM pre-built images. You need to be registered in order to get access into the link provided.

2. Once you have the image recorded into a SD card the next step is to boot the board from SD card as is also described in How to boot a board from a SD card.

3. When the board is booting, stop it in the u-boot's count down as is shown below.

U-Boot 2010.12-rc2 (Jul 13 2011 - 14:13:31)

Cores: ARM 297 MHz
DDR:   243 MHz
I2C:   ready
DRAM:  128 MiB
NAND:  2048 MiB
MMC:   davinci: 0, davinci: 1
*** Warning - booting from SD, using default environment

Net:   Ethernet PHY: GENERIC @ 0x00
DaVinci-EMAC
Hit any key to stop autoboot:  0 
DM36x EVM # 

4. Exit from your minicom/termnet session.

5. Set the Attached board on communication port option in the configuration window (make config).

-> Installer Configuration  
  -> Firmware deployment mode (<choice> [=y]) 
    -> Attached board on communication port

6. Build your SDK.

7. Once your SDK has been built, install the new bootloader into the board by running the following command:

make installbootloader

You will see a terminal output such as the shown below:

$ make installbootloader
  Ridgerun Linux SDK
  Board configuration: DM365 Spectrum Digital EVM Board
  Multi-core machine, using 4 out of 8 cores for building
 
  Installation system of uboot images over TFTP for host 10.251.101.7
  Be sure u-boot is running on 10.251.101.56:3001 and no process (like termnet) is using it
  Press return to continue...

  Performing handshake with u-boot...

  Trying to identify NAND block size... detected 0x20000
  Trying to identify NAND Page size... detected 2048

  Loading upgrade bootloader...
    Uboot <= setenv bootcmd
    Uboot <= saveenv
  Configuring the network...
    Uboot <= setenv autoload no
    Uboot <= dhcp
    Uboot <= setenv serverip 10.251.101.7
    Uboot <= setenv autostart no
     cp -f /home/mmadrigal/devdirs/DM365EVM-EVAL/images/bootloader /srv/tftp/bootloader.mmadrigal.DM365EVM-EVAL.tievm
    Uboot <= tftp 0x82000000 bootloader.mmadrigal.DM365EVM-EVAL.tievm
  Running upgrade bootloader...
    Uboot <= icache off
    Uboot => go 0x82000000

  Performing handshake with u-boot...

  Restoring previous bootcmd value
    Uboot <= setenv bootcmd if mmc rescan 0 ; then if run loadbootenv ; then run importbootenv ; if test -n ${uenvcmd} ; then run uenvcmd; fi ;fi ;fi
    Uboot <= saveenv
  Building UBL image for flash...
  Building U-boot image for flash...
  Loading UBL
  Configuring the network...
    Uboot <= setenv autoload no
    Uboot <= dhcp
    Uboot <= setenv serverip 10.251.101.7
    Uboot <= setenv autostart no
     cp -f /home/mmadrigal/devdirs/DM365EVM-EVAL/images/ubl_nand.nandbin /srv/tftp/ubl_nand.nandbin.mmadrigal.DM365EVM-EVAL.tievm
    Uboot <= tftp 0x82000000 ubl_nand.nandbin.mmadrigal.DM365EVM-EVAL.tievm
  Erasing UBL flash space...
    Uboot <= nand erase 0x20000 0x20000
    Uboot <= nand write.ubl 0x82000000 0x20000 0x20000
  Loading U-Boot
  Configuring the network...
    Uboot <= setenv autoload no
    Uboot <= dhcp
    Uboot <= setenv serverip 10.251.101.7
    Uboot <= setenv autostart no
     cp -f /home/mmadrigal/devdirs/DM365EVM-EVAL/images/bootloader.nandbin /srv/tftp/bootloader.nandbin.mmadrigal.DM365EVM-EVAL.tievm
    Uboot <= tftp 0x82000000 bootloader.nandbin.mmadrigal.DM365EVM-EVAL.tievm
  Erasing U-Boot flash space...
    Uboot <= nand erase 0x320000 0x60000
    Uboot <= nand write.ubl 0x82000000 0x320000 0x60000
  Restarting u-boot
  Performing handshake with u-boot...


  Installation completed

8. Once the process has finished turn off the board and turn off the switch 2 in the dip switch SW4 in the board so you will be able to boot from NAND using the new RidgeRun's u-boot.

Flashing the u-boot into a Mistral Dm37x EVM

In order to flash the RidgeRun's SDK into a Mistral Dm37x EVM you need to follow the next steps:

1. Create a SD card image for Mistral DM37x EVM.

You can create a SD card image following the steps listed in How to boot a board from a SD card.

2. Once you have the image recorded into a SD card the next step is to boot the board from SD card using the correct switch configuration as is described in Mistral DM37x EVM SDK 2011Q2 Getting Started Guide.

3. When the board is booting, stop it in the u-boot's count down as is shown below.

Customized by RidgeRun Embedded Solutions TI XLOADER 1.46 (Aug  4 2011 - 15:52:38)
Starting X-loader on MMC
Reading boot sector

223104 Bytes Read from MMC
Starting OS Bootloader from MMC...
Starting OS Bootloader...


U-Boot 2009.11 (Aug 04 2011 - 13:06:14)

AM37x/DM37x-GP ES2.1, CPU-OPP2 L3-165MHz
OMAP3 EVM board + LPDDR/NAND
I2C:   ready
DRAM:  256 MB
NAND:  512 MiB
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Read back SMSC id 0x92200000
Die ID #711800029ff80000015f26ad0f010026
Net:   smc911x-0
Hit any key to stop autoboot:  0 
OMAP3_EVM # 

4. Exit from your minicom/termnet session.

5. Set the Attached board on communication port option in the configuration window (make config).

-> Installer Configuration  
  -> Firmware deployment mode (<choice> [=y]) 
    -> Attached board on communication port

6. Build your SDK.

7. Once your SDK has been built, install the new bootloader into the board by running the following command:

make installbootloader

You will see a terminal output such as the shown below:

$ make installbootloader
  Ridgerun Linux SDK
  Board configuration: Ridgerun SDK: DM373x EVM Board
  Multi-core machine, using 4 out of 6 cores for building
 
  Installation system of uboot images over TFTP for host 10.251.101.4
  Be sure u-boot is running on 10.251.101.56:3001 and no process (like termnet) is using it
  Press return to continue...

  Performing handshake with u-boot...

  Trying to identify NAND block size... detected 0x20000
  Trying to identify NAND Page size... detected 2048

  Loading upgrade bootloader...
    Uboot <= setenv bootcmd
    Uboot <= saveenv
  Configuring the network...
    Uboot <= setenv autoload no
    Uboot <= dhcp
    Uboot <= setenv serverip 10.251.101.4
    Uboot <= setenv autostart no
     cp -f /home/mmadrigal/devdirs/DM373x-EVM-STABLE/images/bootloader /srv/tftp/bootloader.mmadrigal.DM373x-EVM-STABLE.tievm
    Uboot <= tftp 0x82000000 bootloader.mmadrigal.DM373x-EVM-STABLE.tievm
  Running upgrade bootloader...
    Uboot <= icache off
    Uboot => go 0x82000000

  Performing handshake with u-boot...

  Restoring previous bootcmd value
    Uboot <= setenv bootcmd if mmc init 0; then if run loadbootenv ; then run importbootenv ; if test -n ${uenvcmd} ; then run uenvcmd; fi ;fi ;else run nandboot;fi
    Uboot <= saveenv
  Building XLoader image for flash...
  Building U-boot image for flash...
  Loading XLoader
  Configuring the network...
    Uboot <= setenv autoload no
    Uboot <= dhcp
    Uboot <= setenv serverip 10.251.101.4
    Uboot <= setenv autostart no
     cp -f /home/mmadrigal/devdirs/DM373x-EVM-STABLE/images/x-load.bin.ift /srv/tftp/x-load.bin.ift.mmadrigal.DM373x-EVM-STABLE.tievm
    Uboot <= tftp 0x82000000 x-load.bin.ift.mmadrigal.DM373x-EVM-STABLE.tievm
  Erasing XLoader flash space...
    Uboot <= nand erase 0x20000 0x20000
    Uboot <= nandecc hw
    Uboot <= nand write 0x82000000 0x20000 0x20000
    Uboot <= nandecc hw
  Loading U-Boot
  Configuring the network...
    Uboot <= setenv autoload no
    Uboot <= dhcp
    Uboot <= setenv serverip 10.251.101.4
    Uboot <= setenv autostart no
     cp -f /home/mmadrigal/devdirs/DM373x-EVM-STABLE/images/bootloader.nandbin /srv/tftp/bootloader.nandbin.mmadrigal.DM373x-EVM-STABLE.tievm
    Uboot <= tftp 0x82000000 bootloader.nandbin.mmadrigal.DM373x-EVM-STABLE.tievm
  Erasing U-Boot flash space...
    Uboot <= nand erase 0x80000 0x40000
    Uboot <= nand write 0x82000000 0x80000 0x40000
  Restarting u-boot
  Performing handshake with u-boot...


  Installation completed

8. Once the process has finished restore the switch SW4 to NAND boot mode (see Mistral DM37x EVM SDK 2011Q2 Getting Started Guide) board so you will be able to boot from NAND using the new RidgeRun's u-boot.

Flashing the u-boot into a DM81xx

Please see section called Flashing uboot, kernel and filesystem in NAND in the DM8168 support page

Navigation
Toolbox