Part Number: 66AK2G12
Hi,
I have developed a custom board with 66AK2G12 and now I am working to port the u-boot from evaluation board (k2g-ice and k2g-evm) to custom board. I am using SDK 06_01_00_08 Linux RT.
I have executed the necessary modification in order to start-up the first stages of u-boot(my board does not have the EEPROM for board recognizing as evaluation ones) and I have executed the proper modification to EMIF and PHY registers in board/<vendor>/<board>/ddr3_k2g.c to init DDR.
In fact get_ram_size() after ddr_init() recognizes the effective DDR size and I have enabled the power on self test for memory in order to stress the DDR and I did not found any problem at that moment.
But the process stuck when u-boot relocates to DDR. Below the console message on Uart with DEBUG enabled:
initcall: 0c05d6d5 U-Boot 2019.01-svn8 (Mar 19 2021 - 17:47:44 +0100) initcall: 0c010299 U-Boot code: 0C000000 -> 0C091BA0 BSS: -> 0C0C138C initcall: 0c0019e5 CPU: 66AK2Gx-100 SR1.0 initcall: 0c002c45 Selecting config 'keystone-k2g-hpc'initcall: 0c0106d5 Model: Texas Instruments K2G SoC - Hitachi Propulsion Controller (HPC) board initcall: 0c010391 DRAM: initcall: 0c0028f5 Avvio u-boot entro 1 secondi initcall: 0c062e39 initcall: 0c010375 initcall: 0c010475 Monitor len: 000C138C Ram size: 10000000 Ram top: 90000000 initcall: 0c010129 initcall: 0c010159 TLB table from 8fff0000 to 8fff4000 initcall: 0c0103d7 initcall: 0c0103db initcall: 0c010251 Reserving 772k for U-Boot at: 8ff2e000 initcall: 0c01022d Reserving 33024k for malloc() at: 8deee000 initcall: 0c01033d Reserving 80 Bytes for Board Info at: 8deedfb0 initcall: 0c0103df initcall: 0c010205 Reserving 224 Bytes for Global Data at: 8deeded0 initcall: 0c0101b5 Reserving 14656 Bytes for FDT at: 8deea590 initcall: 0c0103e3 initcall: 0c0103e7 initcall: 0c0103f7 initcall: 0c0104d1 initcall: 0c01013d initcall: 0c010401 RAM Configuration: Bank #0: 80000000 256 MiB DRAM: 256 MiB initcall: 0c0101a1 New Stack Pointer is: 8deea570 initcall: 0c010311 initcall: 0c0103eb initcall: 0c0103ef initcall: 0c0102b9 Relocation Offset is: 83f2e000 Relocating to 8ff2e000, new gd at 8deeded0, sp at 8deea570
Which could be the reason of that behaviour? Could it depend again from DDR configuration or something simpler as UART console properties? Consider that CONFIG_SYS_TEXT_BASE is set 0x0C000000 in /config/<board>_defconfig and when I try to modify it, u-boot does not start.
I hope you have any suggestion to solve the problem.
Regards
Graziano