u-boot standalone application in sabre SD board

cancel
Showing results for 
Search instead for 
Did you mean: 

u-boot standalone application in sabre SD board

610 Views
karthikas
Contributor IV

Hello.,.,

I am working on imx6 dual lite sabre SD board(free scale board), In this i managed to compile u-boot image and boot it from SD card(SD card slot3), my requirement is to run a standalone example from SD card, I tried by copying hello_world .bin(which is already been compiled with u-boot) file to fat partition of SD card and tried to load by using fatload command, but it was showing

MMC: no card present
** Bad device mmc **

Any suggestions or some references would be appreciated  lot.

Labels (1)
0 Kudos
4 Replies

242 Views
nxf45220
NXP Employee
NXP Employee

Hi karthik,

You could modified the mmc block 0:1 or 1:1. Example: fatload mmc 1:1 0x00907000

It works when I performed the ddr stress test in uboot, hope it works, thanks!

0 Kudos

242 Views
karthikas
Contributor IV

Hai.,.,

Thanks for the response.

Yes you are correct, after changing to mmc 1:1 it was loading into RAM successfully , Now if I give go command its throwing a data abort error and also board is getting Reset. Any Idea what could be the issue,

I am running standalone program without modifying single line

Here is the log

=>
=> fatload mmc 1:2 0x12000000 hello_world.bin
578 bytes read in 13 ms (43 KiB/s)
=>
=> go 0x12000000
## Starting application at 0x12000000 ...
data abort
pc : [<12000008>]          lr : [<4ff683d7>]
reloc pc : [<d989b008>]    lr : [<178033d7>]
sp : 4f564d48  ip : 0000001c     fp : 00000002
r10: 4ffc436c  r9 : 4f564ea8     r8 : 4f567938
r7 : 4ff683ad  r6 : 00000002     r5 : 12000000  r4 : 4f56793c
r3 : 12000000  r2 : 4f56793c     r1 : 4f56793c  r0 : 00000001
Flags: nzCv  IRQs off  FIQs off  Mode SVC_32
Code: e4df8df7 cedfb73f 41f0e92d 46084605 (2400460e)
Resetting CPU ...

resetting ...

U-Boot SPL 2018.07-rc2-dirty (Aug 24 2018 - 10:03:53 +0530)
Trying to boot from MMC1


U-Boot 2018.07-rc2-dirty (Aug 24 2018 - 10:03:53 +0530)

CPU:   Freescale i.MX6Q rev1.2 996 MHz (running at 792 MHz)
CPU:   Automotive temperature grade (-40C to 125C) at 48C
Reset cause: WDOG
Board: MX6-SabreSD
I2C:   ready
DRAM:  1 GiB
PMIC:  PFUZE100 ID=0x10
MMC:   FSL_SDHC: 0, FSL_SDHC: 1, FSL_SDHC: 2
Loading Environment from MMC... *** Warning - bad CRC, using default environment

Failed (-5)
PCI:   pcie phy link never came up
No panel detected: default to Hannstar-XGA
Display: Hannstar-XGA (1024x768)
In:    serial
Out:   serial
Err:   serial
Net:   FEC [PRIME]
Press SPACE to abort autoboot in 2 seconds
=>
CTRL-A Z for help | 115200 8N1 | NOR | Minicom 2.7 | VT102 | Offline | ttyUSB0

Thank you.

Regards

Karthik

0 Kudos

242 Views
nxf45220
NXP Employee
NXP Employee

Environment of my Example:

MCIMX6D6AVT08AD + AI EVB

The address of my example is the start of the OCRAM, as pic shows.

 ROM&RAM.png

From your log, you may load the .bin to a wrong place, you can check the  chip RM to find a right one.

Not sure about this, hope it will work, thanks!

242 Views
karthikas
Contributor IV

Hi.,

Actually as per our board environment (printenv) the loadADDR is 0x12000000, thats why I chosen this address, On what basis this address can be selected, and if i choose an address which are places i need to update address in u-boot source code.

Can you give some brief steps to create our own standalone program, and run it on u-boot.

Thank you.,

0 Kudos