LS1028ARDB Want to install uboot on the onboard NOR flash

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

LS1028ARDB Want to install uboot on the onboard NOR flash

497 Views
SoccerMom
Contributor II

Hello,

Currently we are booting the LS1028ARDB board from our SD card. But I want to boot the board from the onboard NOR flash. Is there a way to install uboot on the NOR flash on-board? Also where can I get the uboot image for NOR flash?

Thanks,

Manasi

Tags (1)
0 Kudos
3 Replies

469 Views
Chavira
NXP TechSupport
NXP TechSupport

In case user needs to flash different image (for example, atf bl2, atf bl3, fip, dtb, kernel, and so on) to current or
other bank to evaluate certain feature on Layerscape board, for example, to evaluate TDM feature with the non-default
rcw_1600_qetdm.bin on LS1043ARDB:

1. Change default rcw_1600.bin to rcw_1600_qetdm.bin for rcw_nor variable in configs/board/ls1043ardb/
manifest in Flexbuild.

2. Clean the obsolete ATF images.
$ rm -rf build/firmware/atf/ls1043ardb


3. Regenerate ATF image with new RCW specified in step 1.
$ flex-builder -c atf -m ls1043ardb -b nor


4. Copy the new BL2 image build/firmware/atf/ls1043ardb/bl2_nor.pbl to flash_images/ls1043ardb directory
of boot partition on the SD card.


5. Run the following commands at the U-Boot prompt on LS1043ARDB.
=> setenv board ls1043ardb
=> setenv bd_type mmc
=> setenv bd_part 0:2
=> setenv bank other
=> ls $bd_type $bd_part flash_images/ls1043ardb

# to update RCW in BL2
=> setenv img bl2
=> setenv bl2_img flash_images/ls1043ardb/bl2_nor.pbl
=> load $bd_type $bd_part $load_addr flash_images.scr
=> source $load_addr

# similarly, to update dtb
=> setenv img dtb
=> setenv dtb_img fsl-ls1043a-rdb-usdpaa.dtb
=> source $load_addr

 

you can see more information on the cap "5.3.3 LSDK U-Boot flash image feature" to generate a new RCW configuration file and save the changes on the board.

0 Kudos

490 Views
Chavira
NXP TechSupport
NXP TechSupport

Thank you for contacting NXP support!


Your board has U-boot installed already on NOR flash!

only you have to put the internal switches in a next way

Chavira_0-1670005480903.png

if you can't boot from NOR follow the instructions of the LSDK user guide on the cap. "4.1.8.3 Program LSDK composite firmware image"

https://www.nxp.com/docs/en/user-guide/LSDKUG_Rev21.08.pdf

 

0 Kudos

475 Views
SoccerMom
Contributor II

Thanks you so much. I was able to load uboot into nor flash. Here are the commnads I used to load the uboot from a usb:

  1. usb start
  2. load usb 0:2 a0000000 firmware_ls1028ardb_uboot_xspiboot.img
  3. sf probe 0:0; sf erase 0 +$filesize; sf write a0000000 0 $filesize

After that I can boot from the nor flash. After that I try to overwrite the RCW word using the following commands but then it might be overwriting uboot maybe because once I do that I can no longer enter uboot after reset. No communication from the board basically.

=> tftpboot 82000000 R_xxxx_xxxx_1300_ls1028ardb.bin
=> sf probe 0:0
=> sf erase 0 +$filesize
=> sf write 82000000 0 $filesize

Can you please let me know what exactly I am doing wrong?

 

Thanks!

0 Kudos