I am working on LS2085a based custom board. I have two booting interfaces IFC NOR flash which is same as used in QDS board and other is QSPI based serial NOR flash. I am able to boot the board successfully from NOR flash. Now i want to boot my board from QSPI flash. I want to know minimum rcw configuration changes required to boot LS2085a from QSPI flash.
I did the following changes in the existing(working) RCW which was used in IFC NOR flash in order to boot from QSPI flash.
1) changed RCW src = serial NOR
2) BOOT_LOC = Serial NOR
3) FLASH_MODE = Serial NOR (QSPI) 1 channel 24-bit Addressing
4) IFC_GRP_A_BASE = Serial NOR (QuadSPI) enabled
5) Also changed PBI data of BOOTLOCPTRL and BOOTLOCPTRH registers to point address of u-boot image. In our case u-boot image is flashed to offset 0x10000.
Are my configurations correct or any other specific changes are required ?
Described configurations are correct.
Thanks for confirmation. But we are stuck in booting the board. Is there any method to validate/debug the RCW step by step.
Which board is in question?
Please provide CFG_RCW_SRC[8:0] setting and RCW binay image.
Is debugger connection possible when the RCW in question is used?
Missed RCW image in the last message. Please find link below:-
RCW for NOR:- Dropbox - PBL_NOR.bin
RCW for QSPI :- Dropbox - PBL_QSPI.bin
> CFG_RCW_SRC[8:0] for QSPI = 111_0010
Excuse me, but [8:0] means 9 bits - not 7.
Sorry for the typo mistake, its CFG_RCW_SRC[8:0] for QSPI = 0_1111_0010
> CFG_RCW_SRC[8:0] for QSPI = 0_1111_0010
For which mode - IFC NOR or QSPI - this setting?
Which RM revision you're using?
I'm asking because in the QorIQ LS2085A Family Reference Manual, Rev. B:
9'b0_1100_0000 - 9'b0_1111_1111 Reserved
Sorry for the inconvenience, actual CFG_RCW_SRC[8:0] for QSPI = 0_0110_0010. Which will set for QSPI.
actually for our board bit 4 and bit 7 are in don't care so switch setting can be anything as it is grounded separately. So even though we set CFG_RCW_SRC[8:0] = 0_1111_0010 it will take as CFG_RCW_SRC[8:0] = 0_0110_0010.
As per our schematics BOOT_SEL is also grounded. So final settings will be CFG_RCW_SRC is 0_0110_0010 which is for QSPI
Is debugger connection possible when the RCW in question is used?
Do you see activity on the SPI interface showing that RCW is read correctly?
Thanks for support.
We found out that our RCW was correct but u-boot was getting stucked. On step by step debugging we found out that by commenting one function namely early_mmu_setup we were able to get console prints. I don't know the reason why this was creating issue but on commenting , it worked.
If possible can you give any explanation on why this function is creating problem. I just want to make sure in future this should not created any further issue.
Please note that it is inconvenient to stack-up different issues into a single thread.
Please create new comunity question or Technical Case:
Which board is in question?
We are using custom LS2085A based board which has IFC NOR and QSPI NOR flash. We are able to boot the board from IFC NOR and now we are trying to boot the same board from QSPI NOR.
Please provide CFG_RCW_SRC[8:0] setting and RCW binary image.
CFG_RCW_SRC[8:0] for QSPI = 111_0010
We are able to get QSPI clk when switch settings are set for RCW_SRC.
Is debugger connection possible when the RCW in question is used?
Yes we are successfully able to connect code-warrior debug and also able to flash images to QSPI flash. But not able to boot board.