Hi tek life,

2010/5/21 Tek-life <tek-life@tek-life.org>
hi,all.
I follow this article step by stem :http://sourceforge.net/apps/mediawiki/embeddedxen/index.php?title=GettingStarted
And lunch the embededxen by qemu.
But It cannot run correctly.
The error infomation is :

     (XEN) ***************************** LOADING DOMAIN 0 *****************************
     (XEN) Parsing domain #0 (1919876B) at 0xc3e1b478
     (XEN) elf_init: not an ELF binary

But I find that the vmlinux.dom0 is ELF binary indeed.

    root@local.domain:~/embededxen_work/git_tree/embeddedxen$ file vmlinux.dom0
    vmlinux.dom0: ELF 32-bit LSB executable, ARM, version 1, statically linked, strippe

Who can tell me why?

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
map addr 0x8182dc0
Uncompressing Xen............................................................................................................................. done, booting the kernel.
 __  __            _____  _   _____              _ _ _          _
 \ \/ /___ _ __   |___ / / | |___ /     ___ ___ | (_) |__  _ __(_)
  \  // _ \ '_ \    |_ \ | |   |_ \ __ / __/ _ \| | | '_ \| '__| |
  /  \  __/ | | |  ___) || |_ ___) |__| (_| (_) | | | |_) | |  | |
 /_/\_\___|_| |_| |____(_)_(_)____/    \___\___/|_|_|_.__/|_|  |_|

 http://www.cl.cam.ac.uk/netos/xen
 University of Cambridge Computer Laboratory

 Xen version 3.1.3-colibri (root@) (gcc version 4.1.2) Wed Feb 11 11:24:14 CET 2009
 EmbeddedXEN/PENAR Project - Reconfigurable Embedded Digital System (REDS) Institute from HEIG-VD/Switzerland
 http://reds.heig-vd.ch

 Latest ChangeSet: unavailable

(XEN) Hypervisor area start at: 0xff000000 (virt)
(XEN) Physical RAM map:
(XEN)   00000000a0000000: 0000000004000000
(XEN) End of multi-kernel area (XEN+dom0/U) -> min_page: 0xa0100
(XEN) End of Xen Area: 2561MiB (2622464KiB)
(XEN) End of RAM: 0xa3f00000
(XEN) Boot allocator @ a0100000 - a0115000
(XEN) NUMA turned off
(XEN) Faking a node at 0000000000000000-00000000a3f00000
(XEN) xenheap: 00000000a0115000 - 00000000a0314fff
(XEN) xenheap(virt): ff115000 - ff314fff
(XEN) ### frametable: ff315000
(XEN) ### min_page: a0100
(XEN) ### ps = a0115000 maddr_to_virt(ps)=ff115000 maddr_to_page(ps)=ff3151f8
(XEN) Xen heap: 2MiB (2048kiB)
(XEN) ### first_valid_mfn = a0315
(XEN) ### max_page = a3f00
(XEN) Domain heap initialised: DMA width 32 bits
(XEN) Dom Heap: 15230 pages
(XEN) CPU: XScale-PXA270 [69054117] revision 7 (ARMv5TE)
(XEN) (GCD) xen/arch/arm/hypervisor/mm.c:2070:vector_pt_init(): alloc_xenheap_page
(XEN) Mapping I/O on mainstone...
(XEN) Init IRQ...
(XEN) Initing arch-IRQ...
(XEN) Init scheduler...
(XEN) Using scheduler: Simple EDF Scheduler (sedf)
(XEN) Initializing timer...
(XEN) Platform clock source oscr0 @ 3249600 Hz overflows in 660845 jiffies.
(XEN) Platform periodic timer is osmr0 @ 1000 Hz
(XEN) ### arch_domain create OK
(XEN) ### t->shared[i] = ff308000
(XEN) ### t->shared[i] = ff307000
(XEN) ### t->shared[i] = ff306000
(XEN) ### t->shared[i] = ff305000
(XEN) ### frame_table: ff315000
(XEN) ### virt: ff308000
(XEN)  pg: ff3180c0
(XEN) ### virt: ff307000
(XEN)  pg: ff3180a8
(XEN) ### virt: ff306000
(XEN)  pg: ff318090
(XEN) ### virt: ff305000
(XEN)  pg: ff318078
(XEN) ### arch_domain create OK
(XEN) ***************************** LOADING DOMAIN 0 *****************************
(XEN) Parsing domain #0 (1919876B) at 0xc3e1b478
(XEN) elf_init: not an ELF binary


I too got these errors. This is probably due to not readable DOM0 in the integrated single binary.

Try a clean build,

./build-embedded-xen -clean

And also check whether you are using correct toolchain as mentioned in the documents. Better to use openembedded or codesourcery toolchain (arm-none-eabi-).

use,
CROSS_COMPILE=arm-none-eabi-

before starting the build.
 

My build kernel information :
........
  Building modules, stage 2.
  OBJCOPY xen/arch/arm/boot/Image
  MODPOST
  MV      xen/arch/arm/boot/Image to xen/arch/arm/boot/Image.xen
  CAT     xen/arch/arm/boot/Image.xen vmlinux.dom0 vmlinux.eod zero.eod vmlinux.domu-rt vmlinux.eod one.eod vmlinux.eod > xen/arch/arm/boot/Image.tmp
  MV      xen/arch/arm/boot/Image.tmp to xen/arch/arm/boot/Image
  Kernel: xen/arch/arm/boot/Image is ready
  GZIP    xen/arch/arm/boot/compressed/piggy.gz
  AS      xen/arch/arm/boot/compressed/piggy.o
  LD      xen/arch/arm/boot/compressed/vmlinux
  RM      xen/arch/arm/boot/Image
  OBJCOPY xen/arch/arm/boot/zImage
  Kernel: xen/arch/arm/boot/zImage is ready
#################################### uImage ####################################
  CHK     include/linux/version.h
make[1]: `include/asm-arm/mach-types.h' is up to date.
  CHK     include/linux/utsrelease.h
  OBJCOPY xen/arch/arm/boot/Image
  MV      xen/arch/arm/boot/Image to xen/arch/arm/boot/Image.xen
  CAT     xen/arch/arm/boot/Image.xen vmlinux.dom0 vmlinux.eod zero.eod vmlinux.domu-rt vmlinux.eod one.eod vmlinux.eod > xen/arch/arm/boot/Image.tmp
  MV      xen/arch/arm/boot/Image.tmp to xen/arch/arm/boot/Image
  Kernel: xen/arch/arm/boot/Image is ready
  GZIP    xen/arch/arm/boot/compressed/piggy.gz
  AS      xen/arch/arm/boot/compressed/piggy.o
  LD      xen/arch/arm/boot/compressed/vmlinux
  RM      xen/arch/arm/boot/Image
  OBJCOPY xen/arch/arm/boot/zImage
  Kernel: xen/arch/arm/boot/zImage is ready
  UIMAGE  xen/arch/arm/boot/uImage
Image Name:   Linux-2.6.18
Created:      Fri May 21 16:38:01 2010
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    1764332 Bytes = 1722.98 kB = 1.68 MB
Load Address: 0xA0008000
Entry Point:  0xA0008000
  MV      uImage to uImage.mainstone
  Kernel: xen/arch/arm/boot/uImage.mainstone is ready
######### WARNING Use uImage.mainstone (instead of uImage)



------------------------------------------------------------------------------


_______________________________________________
Embeddedxen-devel mailing list
Embeddedxen-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/embeddedxen-devel




--
Pushparajan V
http://vprajan.blogspot.com