Hi everyone,
I got a custum board with an OMAP-L138. On my board I have: OMAP-L138, NOR, NAND, DDR, TP65070. The board is identical to the EVM except that I have DDR2 instead of mDDR.
I'm trying to do the first boot and to write ubl and u-boot in NOR flash with OMAP-L138_FlashAndBootUtils_2_25.
First I tried to use the sfh_OMAP-L138.exe already compiled in the package with my ubl and my u-boot that works on the EVM. This is the result I had:
sfh_OMAP-L138.exe -flashType NOR -flash ubl-nor.bin u-boot.bin -p COM1 -baud 115200
[TYPE] UBL and application image
[UBL] ubl-nor.bin
[APP IMAGE] u-boot.bin
[DEVICE] NOR
Attempting to connect to device COM1...
Press any key to end this program at any time.
(AIS Parse): Waiting for BOOTME... (power on or reset target now)
(AIS Parse): BOOTME received!
Waiting for SFT on the OMAP-L138... <= It freezes here.
I investigated about the problem and I saw that the SFH never receive BOOTUBL from the SFT.
So I wanted to check if my OMAP was ok, so I connected to the target with the emulator. I tried to write in DDR2 with CCS and I saw that I was not writing at the right place. Then I modified the GEL file to init the OMAP DDR registers properly. After that my DDR2 was working correctly.
I tought that I had the same problem with SFH & SFT so I recompiled both with the same registers value than the GEL file and I got the same behaviour, it freezes.
I think that even if my DDR2 was not well initialised by the SFT it will continue to “talk” with SFH to write the UBL into NOR. From what I have read, it’s only the OMAP internal RAM located at address 0x80000000 that is used to execute SFT. Maybe you can correct me if I’m wrong.
I think that the best was to solve this would be to trace the SFT and SFH code.. but I’m not able to do it from what I know from the tools...
Do you have any idea that could help me.
Thank you.
Nicolas