Hello world on IMX6

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Hello world on IMX6

1,074 Views
ciaran_lequeux1
Contributor I

Hello,

I'm trying to run "hello world" example from u-boot on imx6 sabre board.

My UBoot is :

U-Boot 2014.10-rc2 (Nov 18 2015 - 17:43:07)

CPU:   Freescale i.MX6Q rev1.2 at 792 MHz
Reset cause: POR
Board: MX6-SabreSD
I2C:   ready
DRAM:  1 GiB

Here is image (elf):

readelf -h examples/standalone/hello_world
ELF Header:
  Magic:   7f 45 4c 46 01 01 01 00 00 00 00 00 00 00 00 00
  Class:                             ELF32
  Data:                              2's complement, little endian
  Version:                           1 (current)
  OS/ABI:                            UNIX - System V
  ABI Version:                       0
  Type:                              EXEC (Executable file)
  Machine:                           ARM
  Version:                           0x1
  Entry point address:               0x12000000
  Start of program headers:          52 (bytes into file)
  Start of section headers:          72660 (bytes into file)
  Flags:                             0x5000202, has entry point, Version5 EABI, <unknown>
  Size of this header:               52 (bytes)
  Size of program headers:           32 (bytes)
  Number of program headers:         2
  Size of section headers:           40 (bytes)
  Number of section headers:         16
  Section header string table index: 13

I take the binary (raw) from tftp :

=> pri loadaddr
loadaddr=0x12000000
=>  tftp 0x12000000 hello_world.bin
Using FEC device
TFTP from server 192.168.1.2; our IP address is 192.168.1.171
Filename 'hello_world.bin'.
Load address: 0x12000000
Loading: #
         26.4 KiB/s
done
Bytes transferred = 630 (276 hex)
=> go 0x12000000
## Starting application at 0x12000000 ...

And nothing.........

Can you help me ?

Thank you

Labels (1)
0 Kudos
Reply
1 Reply

878 Views
Pavel
NXP Employee
NXP Employee

Look at the following pages about standalone application under u-boot:

https://www.denx.de/wiki/DULG/UBootStandalone

 

https://community.nxp.com/thread/359068

Have a great day,
Pavel Chubakov

 

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply