Hi TI Guru,
I tried to reconfigure both the UBOOT R5 loader (ti-k3-r5-loader) and uboot to load the enviornment from SPI Flash By Using the enviornment in UBOOT configure menu. For SPI Parameters, I use 0 for Mode and BUS, 25 MHZ for Speed, and configure with reductant enviornment. All the offsets and size are according to my flash layout, and here is the DTS portion:
flash@0 {
compatible = "jedec,spi-nor";
reg = <0x0>;
spi-tx-bus-width = <8>;
spi-rx-bus-width = <8>;
spi-max-frequency = <25000000>;
cdns,tshsl-ns = <60>;
cdns,tsd2d-ns = <60>;
cdns,tchsh-ns = <60>;
cdns,tslch-ns = <60>;
cdns,read-delay = <4>;
cdns,phy-mode;
bootph-all;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
bootph-all;
partition@0 {
label = "ospi.tiboot3";
reg = <0x0 0x100000>; /* 1 MB */
};
partition@100000 {
label = "ospi.tispl";
reg = <0x100000 0x200000>; /* 2 MB */
};
partition@300000 {
label = "ospi.u-boot"; /* 2 MB */
reg = <0x300000 0x200000>;
};
partition@500000 {
label = "ospi.env"; /* 256 KB */
reg = <0x500000 0x40000>;
};
partition@540000 {
label = "ospi.env.backup"; /* 256 KB */
reg = <0x540000 0x40000>;
};
partition@580000 {
label = "ospi.fpga.default"; /* 4 MB */
reg = <0x580000 0x400000>;
};
partition@980000 {
label = "ospi.fw.default"; /* 25 MB */
reg = <0x980000 0x01900000>;
};
partition@2280000 {
label = "ospi.fw.selector"; /* 256 KB */
reg = <0x02280000 0x40000>;
};
partition@22c0000 {
label = "ospi.fpga.update"; /* 4 MB */
reg = <0x22c0000 0x400000>;
};
partition@26c0000 {
label = "ospi.fw.update"; /* 25 MB */
reg = <0x026c0000 0x01900000>;
};
partition@3fc0000 {
label = "ospi.phypattern"; /* 256 KB */
reg = <0x03fc0000 0x40000>;
bootph-all;
};
};
};
However, when booting up, UBOOT Hangs after Two "Authentications Passed" Print outs from SPL. So what are the correct SPI Parameters to set, and What UBOOT Configuration MACROS for the correct setup? Any UBOOT Source Code patches needed?