u-boot configuration changes using ls1021A QORIQ SDK

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

u-boot configuration changes using ls1021A QORIQ SDK

692 Views
scottywimberley
Contributor I

In the document QorIQ SDK v2.0-1703 Documentation: Section 3.3.1 Customize U-Boot : The document says u-boot <machine>.conf UBOOT_CONFIG variables are to be modified as needed and then u-boot source code is modified.

Our custom board will boot from QSPI FLASH. It will have a larger FLASH than the ls1021Atwr.

When analyzing the <machine>.conf file, there are a variety of "defaults" configured. I see that several u-boot versions are built, one of which is QSPI boot.

So, my questions are:

1) Are the required modifications to u-boot source/configs already taken care of by the SDK?

2) If not, which ones require mods for a given boot device? I read in other places that the boot source when building with yacto is determined in the local.conf file, but I don't see that said in the SDK document. ... So, this is confusing.

Would you mind clarifying what needs to be done to build a QSPI boot from Nor for a ls1021a?

0 Kudos
3 Replies

481 Views
Pavel
NXP Employee
NXP Employee

Look at the Section 3.3.1 of SDK 2.0-1703 documentation:

http://www.nxp.com/docs/en/supporting-information/QORIQ-SDK-2.0-IC-REV0.pdf

 

This Section shows the path to configuration files for all processors.

Attached file contains configuration file from this folder for the TWR-LS1021a board.

There are the following in this file:

UBOOT_CONFIG ??= "sdcard-ifc sdcard-qspi lpuart qspi secure-boot nor"

UBOOT_CONFIG[nor] = "ls1021atwr_nor_config,,u-boot-dtb.bin"

UBOOT_CONFIG[sdcard-ifc] = "ls1021atwr_sdcard_ifc_config,,u-boot-with-spl-pbl.bin"

UBOOT_CONFIG[sdcard-qspi] = "ls1021atwr_sdcard_qspi_config,,u-boot-with-spl-pbl.bin"

UBOOT_CONFIG[lpuart] = "ls1021atwr_nor_lpuart_config,,u-boot-dtb.bin"

UBOOT_CONFIG[qspi] = "ls1021atwr_qspi_config,,u-boot-dtb.bin"

UBOOT_CONFIG[secure-boot] = "ls1021atwr_nor_SECURE_BOOT_config"

 

You can see that this SDK supports qspi boot.

 

Look at the attached file. It is screenshot /deploy folder from the SDK 2.0-1703 for the TWR-LS1021a.

Find u-boot for QSPI in this folder.


Have a great day,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

481 Views
Pavel
NXP Employee
NXP Employee
  1. Modification .h file in / include/configs folder is needed for new peripherals on the LS1021a board.

Use the following command sequence for getting u-boot source:

bitbake -c cleansstate u-boot

bitbake -c patch u-boot // source of the u-boot

 

Use the following command sequence for u-boot compiling:

 

bitbake u-boot

bitbake -c compile -f u-boot

 

  1. Default configuration for the TWR-LS1021a board uses QSPI boot.


Have a great day,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

481 Views
scottywimberley
Contributor I

Thank you for the response Pavel, however; I think you did not understand

my questions, perhaps due to my articulation. So, I will break it down a

bit.

If you look at the Document Number: QORIQSDK21703 Rev. 0, 03/2017

QorIQ SDK v2.0-1703 Documentation

For QorIQ Processors

in section 3.3.1 Customize U-Boot, you will se the following:

How to Configure, Modify, or Rebuild U-Boot

To Modify U-Boot Configuration:

Modify UBOOT_CONFIG. Values for UBOOT_CONFIG are listed in

conf/

local.conf

/****** end snip ********/

This statement is NOT included in the SDK documentation referenced. Does it

still apply since it is an NXP document?

Question #3: Does this mean that the local.conf should be the ONLY place

the configuration should be made? If not where?

Question #4: Could you please indicate where changes should be made to: Use

a Micron spi Flash with qspi instead of the 2 options in the SDK?

0 Kudos