On Wed, 2012-05-09 at 15:41 +0000, Fabio Radin wrote:
> Dear all,
> 
> I'm trying to run the OMAP4 example on PandaBoard (ES Rev B1) using prebuild 
> MLO
> and u-boot.bin (and final.elf as well) using toolkit version 0.4.4. Using the
> prebuilt ones, on serial output I don't see any message. I'm already working 
> on
> PandaBoard so I have different MLO and u-boot.bin that, if used in place of 
> the
> prebuilt ones, are working fine (so the SD card and the partition is ok).
> 
> Which differences there are on the prebuild MLO and u-boot.bin binaries? Could
> you share with me the source code you modified?
> 
> Thanks a lot for your time and great work you made!
> BR,
> Fabio
> 

Hi Fabio,

As such we have not added any patches in xloader/MLO and uboot. So,
native binaries(compiled for panda board) should work ok.

The only modification done was in the bootcmd parameters used by uboot
to automatically load final.elf at some predefined address and run it.

You can edit include/configs/omap4430panda.h and add the following
#define, removing the existing stuff:

#define CONFIG_BOOTCOMMAND "mmcinit 0 ; mmc init 0;fatload mmc 0:1
<X-0x8000> final.elf ; go X"


Here 'X' corresponds to the load address of final.elf you are using. And
it can be obtained by using readelf command:


amit@amit-ubuntu:/play/b-labs-desktop/blaze/codezero/build$
arm-eabi-readelf -h final.elf 
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:               0x9ee00000
  Start of program headers:          52 (bytes into file)
  Start of section headers:          7562352 (bytes into file)
  Flags:                             0x5000002, has entry point,
Version5 EABI
  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:         19
  Section header string table index: 16


'X' corresponds to "Entry point address" of your final.elf.


-- 
Thanks,
Amit Mahajan


_______________________________________________
codezero-devel mailing list
codezero-devel@lists.l4dev.org
http://lists.l4dev.org/mailman/listinfo/codezero-devel_lists.l4dev.org

Reply via email to