AnsweredAssumed Answered

Cant find custom board in uboot folder after uboot porting

Question asked by Asma Alekar on May 29, 2019
Latest reply on Jun 3, 2019 by jimmychan

Hello Everyone,

 

I am trying to do U-Boot porting by following the document i.MX BSP Porting Guide, Rev. L4.9.88_2.0.0-ga. As I followed chapter 3.1.2-

 

it says "Set up a build environment for building the associated SoC on an i.MX reference
board in Yocto Project by following the directions in the README either in the manifest branch or in the release layer. This involves using repository initialization and repository synchronization to download the Yocto Project meta data and fslsetup-release to set up the build environment." for this to set up build enviornment I followed 

Yocto Project User's Guide, Rev. L4.9.88_2.0.0-ga.

 

step 4: content of my custommachine.conf

#@TYPE: Machine
#@NAME: NXP i.MX6UL Evaluation Kit
#@SOC: i.MX6UL
#@DESCRIPTION: Machine configuration for NXP i.MX6UL EVK
#@MAINTAINER: Lauren Post <lauren.post@nxp.com>

MACHINEOVERRIDES =. "mx6:mx6ul:"

include conf/machine/include/imx-base.inc
include conf/machine/include/tune-cortexa7.inc

MACHINE_FEATURES += " pci wifi bluetooth "

KERNEL_DEVICETREE = "imx6ul-14x14-evk.dtb imx6ul-14x14-evk-csi.dtb imx6ul-14x14-evk-btwifi.dtb \
imx6ul-14x14-evk-emmc.dtb"

PREFERRED_PROVIDER_u-boot = "u-boot-imx"
PREFERRED_PROVIDER_virtual/bootloader = "u-boot-imx"

UBOOT_SUFFIX = "img"
SPL_BINARY = "SPL"
UBOOT_MAKE_TARGET = ""

UBOOT_CONFIG ??= "sd"
UBOOT_CONFIG[sd] = "mx6ul_14x14_evk_config,sdcard"
UBOOT_CONFIG[emmc] = "mx6ul_14x14_evk_emmc_config,sdcard"
UBOOT_CONFIG[qspi1] = "mx6ul_14x14_evk_qspi1_config"
UBOOT_CONFIG[mfgtool] = "mx6ul_14x14_evk_config"

 

Do I have to make any changes here.

 

step 6: changes in build-dir conf/local.conf as mentioned in doc

 

MACHINE ??= 'imx6ulevk'
DISTRO ?= 'fsl-imx-x11'
PACKAGE_CLASSES ?= "package_rpm"
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS ??= "\
STOPTASKS,${TMPDIR},1G,100K \
STOPTASKS,${DL_DIR},1G,100K \
STOPTASKS,${SSTATE_DIR},1G,100K \
STOPTASKS,/tmp,100M,100K \
ABORT,${TMPDIR},100M,1K \
ABORT,${DL_DIR},100M,1K \
ABORT,${SSTATE_DIR},100M,1K \
ABORT,/tmp,10M,1K"
PACKAGECONFIG_append_pn-qemu-native = " sdl"
PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
CONF_VERSION = "1"

DL_DIR ?= "${BSPDIR}/downloads/"
ACCEPT_FSL_EULA = "1"
UBOOT_CONFIG = "emmc"
PREFERRED_PROVIDER_virtual/bootloader_qt850 ="u-boot-imx"

 

Are the above changes correct? My custom board name is qt850.

step7: build u-boot-imx successfully

 

Following further, In step 8 under custom layer I dont see recipes-bsp folder. I just get recipes-example, conf, README and COPYING.MIT folder and files.

 

How can i get recipes-bsp folder there and following further chapter 3.2.1 step2

2. Take an example for the i.MX 6Quad custom board. Open the file: board/freescale/
mx6<customer_board_name>/imximage.cfg to mx6q.cfg.

 

where can I find my u -boot source code to make the changes in .cfg of my board related to DDR?.

 

Have I missed any step?

Any help would be appreciated. Thanks a load.

 

Regards,

Asma

Outcomes