LS1043AQDS derived custom Board - Download and u-boot from RAM

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

LS1043AQDS derived custom Board - Download and u-boot from RAM

1,266 Views
hero
Contributor I

Hi,

I have a LS1043AQDS derived and we are having issues with u-boot.

The board boots off the QSPI flash. We do not have a JTAG installed on the board.

I know FSL bases P/T-series board used to have this support but I have never used it.

Does the current uboot (2018.09) support booting LS1043AQDS based boards from RAM that way I don't have to flash the uboot to QSPI flash? Can you please suggest a quick way to do it.

Thanks

Labels (2)
0 Kudos
5 Replies

1,042 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello mukund jampala,

You could use SD u-boot to boot up the target board, then program QSPI under SD u-boot.

Please build SD u-boot image with the following command.

$ make ls1043aqds_sdcard_qspi_defconfig

$ make -j 4 COSS_COMPILE=arm-fsl-linux-gnueabi-  all

Please deploy SD u-boot with the following command under Linux PC.

dd if=u-boot-with-spl-pbl-sd.bin of=/dev/sdb bs=512 seek=8

Thanks,

Yiping

0 Kudos

1,043 Views
hero
Contributor I

Hi Yiping,

For that to work, do I need to tweak the RCW or the u-boot on the QSPI flash.

If not, how will the u-boot on the SD CARD get executed?

But, we do not have an SD Card but have a emmc on-board. 

Will it work if I flash the u-boot to the emmc?

 

Thanks

0 Kudos

1,042 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello mukund jampala,

The SD u-boot image includes RCW. Regarding booting from SD, u-boot will be copied from SD to OCRAM and run in OCRAM, then it initializes DDR controller and jumps to DDR to continue to run.

For EMMC boot, please create a new configuration file to modify CONFIG_SYS_EXTRA_OPTIONS as the following.

CONFIG_SYS_EXTRA_OPTIONS="RAMBOOT_PBL,SPL_FSL_PBL,EMMC_BOOT".

In file include/configs/ls1046aqds.h, please define the PBL RCW as emmc RCW.

#ifdef CONFIG_EMMC_BOOT
#define CONFIG_SYS_FSL_PBL_RCW \
        board/freescale/ls1046aqds/ls1046aqds_rcw_emmc.cfg

#endif

Regarding ls1046aqds_rcw_emmc.cfg definition, please refer to the difference between ls1046ardb_rcw_emmc.cfg and ls1046ardb_rcw_sd.cfg in folder board/freescale/ls1046ardb.

Thanks,

Yiping

0 Kudos

1,042 Views
hero
Contributor I

Hi

Question:
> The SD u-boot image includes RCW. Regarding booting from SD, u-boot will be copied from SD to OCRAM and run in OCRAM, then it initializes DDR controller and jumps to DDR to continue to run.

For the CPU to copy from SD, how will the cpu(PBL, I guess) know that the u-boot is located? Is it SD Card or eMMC or QSPI?

Thanks

0 Kudos

1,043 Views
yipingwang
NXP TechSupport
NXP TechSupport

RCW contain ACS command to copy u-boot-spl ad its header to OCRAM. It's eMMC .

0 Kudos