Configuring U-Boot

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Configuring U-Boot

Configuring U-Boot

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 )

  ...

Labels (3)
No ratings
Version history
Last update:
‎09-10-2020 02:03 AM
Updated by: