LS1021A-IOT QSPI boot

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

LS1021A-IOT QSPI boot

840 Views
Kensou
Contributor III

hello everybody,
I need urgently a way for generating LS1021A-IOT QSPI boot image.

OpenIL, OpenWRT en Real-Time-Egde are only able to generate SD Card images.

LS1021A-IOT SDK 0.4 seems to be not available anywhere.

I need urgently an SDK or similar for generating LS1021A-IOT QSPI, could anybody help me about?

Thank you in advance.

0 Kudos
Reply
5 Replies

797 Views
Kensou
Contributor III

I tried to replace u-boot-ls1021aiot.bin with one generated bonus my own.

I downloaded u-boot sources, used ls1021aiot_qspi_defconfig and then generated u-boot binary.

 

After this, I byteswapped the u-boot bin using your tcl byteswap script and flashed the so generated u-boot-byteswapped.bin in 0x10000 instead of u-boot-ls1021aiot.bin. In u-boot TEXT_BASE is correctly set as 0x40010000.

Unfortunately this not works. I see nothing at console log. Reset led goes off so I suppose RCW load went good with reset cycle completed.

What could it be the problem? I used the most recent uboot version (2023.4-rc3) so could it be a compatibility issue?

0 Kudos
Reply

802 Views
Kensou
Contributor III

I tried to compile by myself ls1021aiot u-boot, by downloading u-boot sources, using ls1021aiot_qspi_defconfig, byteswapped u-boot.bin as per your tcl script, and then using the so generated u-boot-swapped.bin binary instead of your one.

TEXT_BASE is regularly set at 0x40010000

This seems not to work, I do not see anything at console log. Reset led is off so rcw was correctly loaded. I used the latest u-boot, 2023.4 version. Could it be a compatibility issue?

0 Kudos
Reply

832 Views
Chavira
NXP TechSupport
NXP TechSupport

Thank you for contacting NXP support!

Note:I can't publish the files on the comunnity please open a case on Support | NXP Semiconductors to share the files with you.

1. Files
u-boot-ls1021aiot.bin
rcw/ls1021aiot/RSR_PPS_70/rcw_1000_qspiboot_swap.bin

2. Map
rcw: 0x0 - 0x100
u-boot: 0x10000 - 0x90000
u-boot env: 0x100000 - 0x120000

3. Dip switch settings
For QSPI boot, SW2.1 = ON

3.1 rcw/ls1021aiot/RSR_PPS_70/rcw_1000_qspiboot_swap.bin
Dip Switch: SW2.5 = OFF
Brief: ETH0 disabled
SATA enabled

4. Assume qspi is empty, boot from SD card first, the run the following
commands to flash the images to QSPI.

4.1 rcw/ls1021aiot/RSR_PPS_70/rcw_1000_qspiboot_swap.bin and u-boot
=> sf probe
=> sf erase 0x0 0x100000
=> tftp 0x82000000 rcw/ls1021aiot/RSR_PPS_70/rcw_1000_qspiboot_swap.bin
=> sf write 0x82000000 0x0 0x100
=> tftp 0x82000000 u-boot-ls1021aiot.bin
=> sf write 0x82000000 0x10000 0x80000

0 Kudos
Reply

823 Views
Kensou
Contributor III

How to generate rcw_1000_qspiboot_swap.bin and u-boot-ls1021aiot.bin? I need a procedure or a SDK.

0 Kudos
Reply

814 Views
Chavira
NXP TechSupport
NXP TechSupport

Sorry, we do not have the components of that software because that board was made for an NXP partner, that information only can be provided by your distributor on a USB inside the package on the board, please contact your distributor.

We only have the first image for that board and we don't have the latest for that board.

0 Kudos
Reply