I am using imx6dl sabresd reference board, and I want to run a sample application using OCRAM, and I referred the link mentioned below.
I compiled the imx6 sdk and I got iram.bin and iram.elf, then flashed the u-boot image as well as iram.bin to sdcard, then I booted the board, and I executed the command in u-boot prompt, and I mentioned the log here, please verify and help me to run the application in OCRAM memory.
U-Boot 2017.03 (Feb 14 2019 - 15:48:31 +0530)
CPU: Freescale i.MX6DL rev1.1 996 MHz (running at 792 MHz)
CPU: Commercial temperature grade (0C to 95C) at 31C
Reset cause: POR
Model: Freescale i.MX6 DualLite SABRE Smart Device Board
Board: MX6-SabreSD
DRAM: 1 GiB
PMIC: PFUZE100! DEV_ID=0x10 REV_ID=0x11
MMC: FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
*** Warning - bad CRC, using default environment
No panel detected: default to Hannstar-XGA
Display: Hannstar-XGA (1024x768)
In: serial
Out: serial
Err: serial
switch to partitions #0, OK
mmc1 is current device
Net:
Warning: ethernet@02188000 using MAC address from ROM
eth0: ethernet@02188000 [PRIME]
Normal Boot
Hit any key to stop autoboot: 0
=> bootelf 0x10800000
## No elf image at address 0x10800000
=> mmc dev 1
switch to partitions #0, OK
mmc1 is current device
=> mmc read 0x10800000 0x800 512
MMC read: dev # 1, block # 2048, count 1298 ... 1298 blocks read: OK
=> bootelf 0x10800000
## No elf image at address 0x10800000
Regards
Winston
Hi Winston
in general one can try to load bin file using mfg tool as described on
https://community.nxp.com/t5/i-MX-Processors/Loading-Sample-SDK-on-IMX6-SABRE-board/m-p/320466
change ucl2.xml :
"SabreSD-SD" profile:
<LIST name="SabreSD-SD" desc="USB SDP">
<CMD state="BootStrap" type="boot" body="BootStrap" file ="test.bin" >Loading image</CMD>
<CMD state="BootStrap" type="jump" > Jumping to image. </CMD>
<CMD state="Updater" type="push" body="$ echo Load Complete!">Done</CMD>
</LIST>
Mfg tool can be found on
https://www.nxp.com/design/software/embedded-software/i-mx-software:IMX-SW
Best regards
igor
Thanks for your immediate reply @igorpadykov ,
Using mfgtool I can able to load the sample application which NXP provided (RVDS 3.1 MX6DQ_SDP_LED.ZIP.zip) , but in this sample app I have to do some modification and I have to cross compile and execute,
RVDS 3.1 MX6DQ_SDP_LED.ZIP/MX6DQ_SDP_LED$ arm-linux-gnueabihf-gcc main.c -o led.bin
If I cross compile using the above command, I am able to generate a bin file, but that bin file I am not able to load via mfgtool, while loading mfgtool throwing error. Can you please give me the compiling steps for RVDS 3.1 MX6DQ_SDP_LED.ZIP.zip application.
REF LINK
=======
https://community.nxp.com/t5/i-MX-Processors/Loading-Sample-SDK-on-IMX6-SABRE-board/m-p/320466
Regards
Winston