Guide for stripping UBOOT for LS1046ARDB

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

Guide for stripping UBOOT for LS1046ARDB

1,282 Views
chitra_amzarewa
Contributor II

Hello,

Can someone please point me to documentation of stripping UBOOT for LS1046ARDB? Our requirement is to create simple Boot code (booting from QSPI Flash) which is secured and authenticated. We do not need any drivers or additional features/configurations at this moment.

Basic Boot code should contain, Core/CPU register initialization, Stack creation, RAM initialization etc. We have code modules but removing extra code and configuration from UBOOT is a challenge because of lack of right reference.

Thanks

Chitra

Tags (1)
0 Kudos
3 Replies

1,098 Views
chitra_amzarewa
Contributor II

Hello Yiping,

Thank you for reply. I changed above settings in the build but getting lot I2C, USB errors. Are we missing anything? I made below extra changes

in ls1046ardb_qspi_secure_boot_defconfig : added CONFIG_CMD_USB=n

CONFIG_SYS_EXTRA_OPTIONS removed FSL_LS_PPA option

in I2C.c added an extra #ifdef CONFIG_SYS_FSL at the top and #endif at the end

in drivers made Makefile empty note that i2c.c is located in cmd/ folder

with additional changes I2C errors are removed but USB is still present. 

Please note that we edited LS1046ARDB_QSPI_SECURE_BOOT_DEFCONFIG file and few #defines like 

CONFIG_USB=y

CONFIG_DM_USB=y were not present in the file.

Any inputs what could be wrong?

Thanks

Chitra

0 Kudos

1,098 Views
yipingwang
NXP TechSupport
NXP TechSupport

Would you please provide your console log including the error?

Please try to add the following in the config file.

CONFIG_USB_XHCI_HCD=y
CONFIG_USB_XHCI_DWC3=y

0 Kudos

1,098 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello Chitra AmzarewaleSapre,

In configs/ls1046ardb_qspi_defconfig, please delete the following section

CONFIG_FSL_CAAM=y
CONFIG_FSL_ESDHC=y
CONFIG_SPI_FLASH=y
# CONFIG_SPI_FLASH_USE_4K_SECTORS is not set
CONFIG_PHYLIB=y
CONFIG_PHY_GIGE=y
CONFIG_E1000=y
CONFIG_PCI=y
CONFIG_DM_PCI=y
CONFIG_DM_PCI_COMPAT=y
CONFIG_PCIE_LAYERSCAPE=y
CONFIG_SYS_NS16550=y
CONFIG_SPI=y
CONFIG_DM_SPI=y
CONFIG_FSL_QSPI=y
CONFIG_USB=y
CONFIG_DM_USB=y
CONFIG_USB_XHCI_HCD=y
CONFIG_USB_XHCI_DWC3=y
CONFIG_USB_STORAGE=y
CONFIG_DM_MMC=y
CONFIG_DM_SCSI=y
CONFIG_SATA_CEVA=y
CONFIG_SCSI_AHCI=y
CONFIG_SCSI=y
CONFIG_AHCI=y

In file include/configs/ls1046ardb.h, please define the following

SPL_NO_IFC

SPL_NO_FMAN

SPL_NO_QSPI

SPL_NO_MISC

SPL_NO_SATA

SPL_NO_MMC

Please undef the following in include/configs/ls1046a_common.h.

CONFIG_PCI

CONFIG_PCIE1

CONFIG_PCIE2

CONFIG_PCIE3

CONFIG_SYS_I2C

In File board/freescale/ls1046ardb/ls1046ardb, pleae undef the following.

CONFIG_FSL_LS_PPA

CONFIG_FSL_CAAM

CONFIG_HAS_FSL_XHCI_USB

CONFIG_MISC_INIT_R

CONFIG_SYS_DPAA_FMAN

Thanks,

Yiping

0 Kudos