Hello everyone.
I have been trying to perform this task for several days:
Target:
I want to set the SerDes protocol with the value 4555h according to the table shown in the document QorIQ LS1043A Reference Manual, Rev. 6, 07/2020 (Pag. 1916)
What have I done:
I performed a custom boot (with Flex-Builder) in which i changed the parameter value of SRDS_PRTCL_S1. The procedure I followed, for creating a custom boot from SD is well described and can be found in the following link:Procedure to disable CPU.
In order to change the Serdes protocol, In the file rcw_1600_sdboot.rcw, i changed the SRDS_PRTCL_S1 parameter with the following value SRDS_PRTCL_S1=17749. This is because the value 4555h in decimal corresponds to 17749 in decimal.
#include <../ls1043aqds/ls1043a.rcwi>SYS_PLL_RAT=4
MEM_PLL_RAT=16
CGA_PLL1_RAT=16
CGA_PLL2_RAT=10
SRDS_PRTCL_S1=17749
FM1_MAC_RAT=1
SRDS_PLL_REF_CLK_SEL_S1=2
SRDS_DIV_PEX=1
DDR_FDBK_MULT=2
DDR_REFCLK_SEL=1
PBI_src=6
IFC_MODE=64
HWA_CGA_M1_CLK_SEL=6
DRAM_LAT=1
SYS_PLL_SPD=1
UART_BASE=7
IRQ_OUT=1
TVDD_VSEL=0
DVDD_VSEL=2
EVDD_VSEL=2
IIC2_EXT=0
SYSCLK_FREQ=600
HWA_CGA_M2_CLK_SEL=1
BOOT_HO=0.pbi
write 0xee0094, 0x0000000e
.end#include <../ls1043aqds/atf_address.rcw>
#include <../ls1043aqds/cci_barrier_disable.rcw>
#include <../ls1043aqds/a009929.rcw>
#include <../ls1043aqds/usb_phy_freq.rcw>
Problem:
If I generate the boot with the SerDes modified by me, the boot does not start (I don't see U-Boot), while if I leave the default value the boot starts normally and shows me U-Boot.
Question:
Why does this happen?
Because if I boot with the SerDes modified by me the board does not start, while with the default SerDes it starts quietly.
What's wrong?
Thank you very much for your availability.
Below you will find the link to download the file rcw_1600_sdboot.rcw and firmware_ls1043ardb_sdboot.img .img & rcw
It is needed to explicitly disable PLL2 of the SerDes:
SRDS_PLL_PD_S1[168:169] = 01
So inside the ls1043ardb_rcw_sd.cfg file there must be this:
#PBL preamble and RCW header
aa55aa55 01ee0100
# RCW
06100010 0a000000 00000000 00000000
45550002 80404012 60040000 c1002000
00000000 00000000 00000000 00038800
00000000 00001100 00000096 00000001
The ls1043ardb_rcw_sd.cfg file is located in the following path: flexbuilder/packages/firmware/u-boot/board/freescale/ls1043ardb.
It is required to edit the ".rcw" file.
To generate the boot I am using flex-builder, in particular flexbuild_lsdk1712. I saw from the documentation Layerscape Software Development Kit 17.12 Documentation, Rev. 0, 02/201 that it is possible to make the file firmware_ls1043ardb_uboot_sdboot.img with the following command: flex-builder -i mkfw -m ls1043ardb -b sd -B uboot.
I do this because I need to generate the boot from SD with U-Boot 2017 on it.
is it okay to edit file ls1043ardb_rcw_sd.cfg if i am using flexbuild_lsdk1712 ?