WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-ppc-devel

Re: Yaboot stripped image Was: [XenPPC] Cannot boot from local disk

To: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
Subject: Re: Yaboot stripped image Was: [XenPPC] Cannot boot from local disk
From: Hollis Blanchard <hollisb@xxxxxxxxxx>
Date: Fri, 06 Oct 2006 11:04:58 -0500
Cc: Kiyokuni Kawachiya <KAWATIYA@xxxxxxxxxx>, XenPPC-devel <xen-ppc-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 06 Oct 2006 09:05:15 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <F97B988C-2980-4C64-B4FA-E8F66469A631@xxxxxxxxxxxxxx>
List-help: <mailto:xen-ppc-devel-request@lists.xensource.com?subject=help>
List-id: Xen PPC development <xen-ppc-devel.lists.xensource.com>
List-post: <mailto:xen-ppc-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-ppc-devel>, <mailto:xen-ppc-devel-request@lists.xensource.com?subject=unsubscribe>
Organization: IBM Linux Technology Center
References: <OF077CBC53.CDC18F64-ON492571FF.0051FD94-492571FF.0052B0AD@xxxxxxxxxx> <F97B988C-2980-4C64-B4FA-E8F66469A631@xxxxxxxxxxxxxx>
Sender: xen-ppc-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Fri, 2006-10-06 at 11:23 -0400, Jimi Xenidis wrote:
> 
> > Welcome to yaboot version 10.1.14-r716.SuSE
> > booted from '/ht/ata@4,1/disk@0'
> > Enter "help" to get some basic usage information
> > boot: xen
> > Please wait, loading kernel...
> > Can't find a loadable segment !
> 
> $ objdump -p xen
> 
> xen:     file format elf32-powerpc
> 
> Program Header:
>     LOAD off    0x00000000 vaddr 0x003fff00 paddr 0x003fff00 align 2**8
>          filesz 0x000ab0d8 memsz 0x000bebc8 flags rwx 

Here is the yaboot bug: if the segment's p_offset == 0, yaboot won't
load it. :( See second/yaboot.c:1134 in the yaboot git tree. [1]

The linker is doing that to us. It's placing the ELF headers (including
program headers) inside the text PT_LOAD segment. The text still starts
where we told it to though, at 0x400000. That's why the vaddr/paddr is
0x100 bytes below that: that's where the ELF header itself is being
loaded into memory.

Unfortunately this patch does not fix it:
diff -r 48840bbe607d xen/arch/powerpc/xen.lds.S
--- a/xen/arch/powerpc/xen.lds.S        Tue Sep 12 14:28:16 2006 -0500
+++ b/xen/arch/powerpc/xen.lds.S        Fri Oct 06 10:31:48 2006 -0500
@@ -12,7 +12,7 @@ SEARCH_DIR("=/usr/local/lib64"); SEARCH_
    __DYNAMIC = 0;    */
 PHDRS
 {
-  text PT_LOAD FILEHDR PHDRS;
+  text PT_LOAD;
 }
 SECTIONS
 {

This issue may be related to our use of -N in the final link.

[1] http://yaboot.ozlabs.org/

-- 
Hollis Blanchard
IBM Linux Technology Center


_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel

<Prev in Thread] Current Thread [Next in Thread>