Configuring U-Boot

Document created by -nilda Employee on Oct 17, 2012Last modified by Jodi Paul on Apr 19, 2013
Version 1Show Document
  • View in full screen mode

 

LTIB Creating Uimage Uboot

 

U-boot expects uImage format for the kernel image.

In order to LTIB generate a uImage file:

$ export SYSCFG_KTARG=uImage $ ./ltib -p kernel 

Setup in U-Boot the kernel bootargs:

u-boot> setenv bootargs noinitrd console=ttymxc0,115200 init=/linuxrc root=/dev/nfs nfsroot=10.29.244.27:/tftpboot/rootfs ip=dhcp 

Change 10.29.244.27 to your host IP.

 

 

The procedure above is needed when default bootloader used by ltib was redboot.

In some ltib releases (before 2010) default bootloader is u-boot. In this case, ltib will create uImage by default

 

Configuration file for fw_(printenv/saveenv) utility

 

# Configuration file for fw_(printenv/saveenv) utility.

# Up to two entries are valid, in this case the redundant

# environment sector is assumed present.

# Notice, that the "Number of sectors" is ignored on NOR.

             

# MTD device name Device offset Env. size Flash sector size Number of sectors

#/dev/mtd1 0x0000 0x4000 0x4000

#/dev/mtd2 0x0000 0x4000 0x4000


# NAND example

/dev/mtd0 0x80000 0x40000 0x20000 2

 

Add new i.MX5x board on LTIB

 

After porting u-boot to your i.MX5x board you might want add it on LTIB menu, "Choose your board for u-boot" section. For this, edit ltib/config/platform/imx/main.lkc to add your board:

Enter board on menu:

comment "Choose your board for u-boot"

choice

prompt "board"

default BOARD_MX51_BBG

depends on PLATFORM = "imx51"

help

This menu will let you choose the board you use.

...

+ config BOARD_MX53_MYBOARD

+ bool "mx53_myboard"

...

endchoice

Add the "mx53_myboard_config" that matches your board configuration on the u-boot Makefile to PKG_U_BOOT_CONFIG_TYPE:

config PKG_U_BOOT_CONFIG_TYPE

  string

  ...

+ default "mx53_myboard_config" if ( PLATFORM = "imx51" && BOARD_MX53_MYBOARD && !PKG_KERNEL_UPDATER )

  ...

Attachments

    Outcomes