Program QSPI at u-boot stage for FRWY-LS1046A

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

Program QSPI at u-boot stage for FRWY-LS1046A

1,960 Views
jekim
Contributor III

Hello,

I'm using LS1046AFRWY board with SDK20.12. I'm going to program QSPI with the firmware in SD card as BSP user guide 3.1.4.2 introduced. ( Layerscape FRWY-LS1046A BSP User Guide (avnet.com) ) However, The "load mmc" command can't find the qspiboot firmware from the SD card. I paste the related logs below. Please help.

Best Regards,

Jeff

ubuntu@ubuntu:~/Downloads/flexbuild_lsdk2012/build/images$ flex-installer -i pf -d /dev/sdb
[sudo] password for ubuntu:
/dev/sdb: 7 GB
The capacity of /dev/sdb is only 7 GB, using partitions: 4P=128M:2G:64M:-1
Partitioning /dev/sdb ...
Formatting partitions ...
/dev/sdb1 contains a ext4 file system labelled 'misc'
last mounted on Tue Oct 5 23:34:52 2021
/dev/sdb2 contains a ext4 file system labelled 'boot'
last mounted on /media/ubuntu/boot on Tue Oct 5 23:34:52 2021
/dev/sdb3 contains a ext4 file system labelled 'backup'
last mounted on Tue Oct 5 23:34:52 2021
/dev/sdb4 contains a ext4 file system labelled 'system'
last mounted on /media/ubuntu/system on Tue Oct 5 23:34:54 2021
Model: Generic STORAGE DEVICE (scsi)
Disk /dev/sdb: 8069MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:

Number Start End Size Type File system Flags
1 71.3MB 206MB 134MB primary ext4
2 207MB 2354MB 2147MB primary ext4
3 2355MB 2422MB 67.1MB primary ext4
4 2423MB 8069MB 5646MB primary ext4

partition and format /dev/sdb [Done]
ubuntu@ubuntu:~/Downloads/flexbuild_lsdk2012/build/images$ flex-installer -b bootpartition_LS_arm64_lts_5.4.tgz -r rootfs_lsdk2012_ubuntu_main_arm64.tgz -f firmware_ls1046afrwy_uboot_qspiboot.img -d /dev/sdb
61361+1 records in
61361+1 records out
31416960 bytes (31 MB, 30 MiB) copied, 31.0669 s, 1.0 MB/s
Program firmware_ls1046afrwy_uboot_qspiboot.img into /dev/sdb startblock=8 [Done]
Installing bootpartition_LS_arm64_lts_5.4.tgz to /dev/sdb2, waiting ...
Install bootpartition_LS_arm64_lts_5.4.tgz in /dev/sdb2 [Done]
Installing rootfs_lsdk2012_ubuntu_main_arm64.tgz to /dev/sdb4, waiting ...
Install rootfs_lsdk2012_ubuntu_main_arm64.tgz in /dev/sdb4 [Done]
setting PARTUUID for boot partition /dev/sdb2 ...
Installation completed successfully

NOTICE: 4 GB DDR4, 64-bit, CL=15, ECC on
NOTICE: BL2: v1.5(release):ls1046afrwy-early-access-bsp0.1
NOTICE: BL2: Built : 13:07:14, Apr 17 2019
NOTICE: BL31: v1.5(release):ls1046afrwy-early-access-bsp0.1
NOTICE: BL31: Built : 13:07:39, Apr 17 2019
NOTICE: Welcome to LS1046 BL31 Phase


U-Boot 2018.09 (Apr 17 2019 - 13:06:42 +0800)

SoC: LS1046AE Rev1.0 (0x87070010)
Clock Configuration:
CPU0(A72):1600 MHz CPU1(A72):1600 MHz CPU2(A72):1600 MHz
CPU3(A72):1600 MHz
Bus: 600 MHz DDR: 2100 MT/s FMAN: 700 MHz
Reset Configuration Word (RCW):
00000000: 0c150010 0e000000 00000000 00000000
00000010: 30400506 00800012 40025000 c1000000
00000020: 00000000 00000000 00000000 00038800
00000030: 20044100 24003101 00000096 00000001
Model: LS1046A FRWY Board
Board: LS1046AFRWY, Rev: A, boot from QSPI
SD1_CLK1 = 100.00MHZ, SD1_CLK2 = 100.00MHZ
I2C: ready
DRAM: 3.9 GiB (DDR4, 64-bit, CL=15, ECC on)
SEC0: RNG instantiated
Using SERDES1 Protocol: 12352 (0x3040)
Using SERDES2 Protocol: 1286 (0x506)
NAND: 512 MiB
MMC: FSL_SDHC: 0
Loading Environment from SPI Flash... SF: Detected mt25qu512a with page size 256 Bytes, erase size 64 KiB, total 64 MiB
*** Warning - bad CRC, using default environment

EEPROM: NXID v1
In: serial
Out: serial
Err: serial
Net: SF: Detected mt25qu512a with page size 256 Bytes, erase size 64 KiB, total 64 MiB
Fman1: Uploading microcode version 106.4.18
PCIe0: pcie@3400000 disabled
PCIe1: pcie@3500000 Root Complex: no link
PCIe2: pcie@3600000 Root Complex: x1 gen1
FM1@DTSEC1, FM1@DTSEC5, FM1@DTSEC6, FM1@DTSEC10
Hit any key to stop autoboot: 0
=>
=>
=> load mmc 0:2 a0000000 firmware_ls1046afrwy_uboot_qspiboot.img
** File not found firmware_ls1046afrwy_uboot_qspiboot.img **

0 Kudos
1 Reply

1,192 Views
Autumn
Contributor II

it's stating the firmware file does not exists in your sd card.

try the command: 'ls mmc 0:2' to list the files in your sd card.