Cant find custom board in uboot folder after uboot porting

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

Cant find custom board in uboot folder after uboot porting

1,074 Views
asmaa
Contributor V

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

Labels (1)
0 Kudos
3 Replies

886 Views
jimmychan
NXP TechSupport
NXP TechSupport

Basically, there are two ways.

(easier way)1. Direct modify the evk .c file base on your board and then build the u-boot. For example, if your board is similar to the i.mx6ul evk board, you can modify the files directly in board/freescale/mx6ul_14x14_evk/.  And the dts file of the i.mx6ulevk. Then you can use the u-boot of i.mx6ulevk on your board.

2. Create your own board files. Copy the existing one (e.g. imx6ulevk) to a new folder in the board/freescale in  u-boot source code. And then change all the filenames to the name of your board. Also, change/add your board in the dts folder and the Makefiles. And add the .conf file of your board in the machine folder (meta-fsl-bsp-release/imx/meta-bsp/conf/machine/).

0 Kudos

886 Views
ankitr_patel
Senior Contributor II

Hi Asma Alekar ,

1). recipe-bsp folder

Have you followed below steps from i.MX Yocto Project User guide?

Chapter 4. Yocto Project Setup

$ mkdir imx-yocto-bsp
$ cd imx-yocto-bsp
$ repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-rocko -m imx-4.9.88-2.0.0_ga.xml
$ repo sync 

After repo sync you should be able to see following files and folders:

1. fsl-setup-release.sh 

2. README 

3. README-IMXBSP 

4. setup-environment 

5. sources

Under sources folder you will be able to find all the recipes.

2). u-boot source code.

After building u-boot-imx, you can find the source of uboot under:

<yocto_src>/<build_dir>/tmp/work/<imx-board>-poky-linux-gnueabi/u-boot-imx/<version>/git/


Regards,

Ankit Patel

0 Kudos

886 Views
asmaa
Contributor V

Thank you ankitpatel‌ for reply. I have followed the steps from project guide and I am able to see all the above folders you mentioned.

But following ahead porting guide. I am not able to see my board name under board/freescale.

Is my conf file correct?

0 Kudos