Project

General

Profile

Second Stage Das U-Boot Port

git:support.criticallink.com/home/git/u-boot-mitydspl138.git

The ARM-9 based Mity CPU's are provided with a port of the Das U-Boot bootloader application commonly used to start embedded linux systems. The source for the port for the MityDSP-L138 and MityARM-1808 platforms can be obtained at the git repository link above. This port is based on an initial port for an OMAP-L138 EVM module developed by TI at the Arago project site.

Our goal, ultimately, is to get the changes necessary to support the MityDSP and MityARM family of processors back into the u-Boot mainline codebase. Until then, users requiring the source code may access the code here. The u-Boot code is licensed under the Gnu General Public License, Version 2. There are two main branches on the repository:

  • master - represents the tested stable build that has been / will be released as part of a board support package delivery

Changes

The modifications to the mainline u-Boot are fairly small and contained within the boards/davinci/mityomapl138 directory. The list below captures the main differences between the local git repository and the mainline (when the snapshot was made).

  1. Add support for mityomapl138 board type (Makefile targets and board files).
  2. Add support for configuring factory data in onboard I2C FLASH:
    - Serial Number
    - MAC address
    - Board Type identification
  3. Add support for dynamic peripheral configuration using a sector in onboard SPI FLASH:
    - UART configuration
    - LCD configuration
    - Network configuration
    - MMC configuration
    - SPI/McBSP configuration
  4. Add commands to support programming on-board FPGA at boot-time.
  5. Add make ubl image tool to add UBL header to front of u-boot.bin image for UBL strapping.
  6. Add bootdsp command to load-and-launch a DSP program stored in a COFF image.
  7. Add capability to deal with multiple PHYs reporting on the MDIO interface.

Building u-Boot

To download your own copy of u-boot run:

#bash> git clone git://support.criticallink.com/home/git/u-boot-mitydspl138.git u-boot-mitydspl138
#bash> cd u-boot-mitydspl138

This will download the repository and create a "master" branch from the server. Please note that if you intend to make changes, etc., you will need to become moderately familiar with the git tool (see Information on git).

To compile u-boot you will need to install the ARM cross tools (which get generated from the open-embedded Cross Tools step, or you may use tools from places like CodeSourcery) and ensure that the gcc ports are available on your $PATH.

Now you are ready to configure and compile the u-boot image.

For MDK from or newer than August 2017

In order to build the u-boot, you need to have first installed a valid version of the GCC Toolchain. Go to the files section then download and install the latest MDK.

#bash> source /opt/criticallink/mityomapl138_20170818/environment-setup-arm926ejste-criticallink-linux-gnueabi
#bash> unset LDFLAGS
#bash> alias makearm="make ARCH=arm CROSS_COMPILE=arm-criticallink-linux-gnueabi-" 

Skip to "For all MDK versions" section.

For MDK older than August 2017

In order to build the u-boot, you need to have first installed a valid version of the GCC Toolchain.

#bash> source /usr/local/oecore-i686/environment-setup-armv5te-angstrom-linux-gnueabi
#bash> alias makearm="make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi-" 

For all MDK versions

#bash> makearm mityomapl138_config
#bash> makearm

If successful, there should be a u-boot.bin file (usable with the serial downloader tool for a dead board alongside the First Stage User Boot Loader) as well as a u-boot-ubl.bin file (suitable for reprogramming u-Boot from u-Boot).

Binary Images

The u-Boot images are included in the board support packages. We've made a couple of images available here for convenience only. Check the repository for latest version history (build it yourself to ensure the latest-and-greatest...).

Go to top
Add picture from clipboard (Maximum size: 1 GB)