Re: Generating elf kernel ?

2010-09-21 Thread Scott Wood
On Tue, 21 Sep 2010 03:00:40 +0200 Chen, Tiejun tiejun.c...@windriver.com wrote: This should be depend on the hypervisor design implementation. I think your option should be based on the Freescale hypervisor. Again, I was giving an example, about ELF loading. I was not making any claims

RE: Generating elf kernel ?

2010-09-21 Thread Chen, Tiejun
-Original Message- From: Scott Wood [mailto:scottw...@freescale.com] Sent: Wednesday, September 22, 2010 1:00 AM To: Chen, Tiejun Cc: linuxppc-dev@lists.ozlabs.org; Guillaume Dargaud Subject: Re: Generating elf kernel ? On Tue, 21 Sep 2010 03:00:40 +0200 Chen, Tiejun tiejun.c

Re: Initial kernel command string (Was: Generating elf kernel ?)

2010-09-20 Thread Guillaume Dargaud
I think you should modify the bootargs on your dts. -- chosen { bootargs = console=ttyS0 root=/dev/ram; linux,stdout-path = /p...@0/ser...@83e0; } ; Thanks, that worked great, I now have a fully bootable not only kernel, but full OS

Re: Initial kernel command string (Was: Generating elf kernel ?)

2010-09-20 Thread tiejun.chen
Guillaume Dargaud wrote: I think you should modify the bootargs on your dts. -- chosen { bootargs = console=ttyS0 root=/dev/ram; linux,stdout-path = /p...@0/ser...@83e0; } ; Thanks, that worked great, I now have a fully bootable not

Re: Generating elf kernel ?

2010-09-20 Thread Scott Wood
On Sun, 19 Sep 2010 09:40:15 +0800 tiejun.chen tiejun.c...@windriver.com wrote: Scott Wood wrote: On Fri, 17 Sep 2010 09:58:41 +0800 tiejun.chen tiejun.c...@windriver.com wrote: Scott Wood wrote: The guest OS *is* the same as native Linux, as far as TLB handling is concerned.

RE: Generating elf kernel ?

2010-09-20 Thread Chen, Tiejun
-Original Message- From: Scott Wood [mailto:scottw...@freescale.com] Sent: Monday, September 20, 2010 11:44 PM To: Chen, Tiejun Cc: linuxppc-dev@lists.ozlabs.org; Guillaume Dargaud Subject: Re: Generating elf kernel ? On Sun, 19 Sep 2010 09:40:15 +0800 tiejun.chen tiejun.c

Re: Generating elf kernel ?

2010-09-18 Thread tiejun.chen
Scott Wood wrote: On Fri, 17 Sep 2010 09:58:41 +0800 tiejun.chen tiejun.c...@windriver.com wrote: Scott Wood wrote: The guest OS *is* the same as native Linux, as far as TLB handling is concerned. Looks you means the TLB exception handler should be same between the native and the guest

Initial kernel command string (Was: Generating elf kernel ?)

2010-09-17 Thread Guillaume Dargaud
Thanks for helping about the elf issue, I got it running. The problem was that I wasn't using the proper file produced by make ! Now I have a strange and probably simple problem that the Initial kernel command string is incorrect. I want, and I have set in the .config:

Re: Initial kernel command string (Was: Generating elf kernel ?)

2010-09-17 Thread tiejun.chen
Guillaume Dargaud wrote: Thanks for helping about the elf issue, I got it running. The problem was that I wasn't using the proper file produced by make ! Now I have a strange and probably simple problem that the Initial kernel command string is incorrect. I want, and I have set in the

Re: Generating elf kernel ?

2010-09-17 Thread Scott Wood
On Fri, 17 Sep 2010 09:58:41 +0800 tiejun.chen tiejun.c...@windriver.com wrote: Scott Wood wrote: The guest OS *is* the same as native Linux, as far as TLB handling is concerned. Looks you means the TLB exception handler should be same between the native and the guest OS. Right? Yes.

Re: Generating elf kernel ?

2010-09-16 Thread Guillaume Dargaud
Please use simpleImage.your target dts name.elf. Great, that seems to be it... Except that nothing happens when I jump to 0x4, no message from the 0x4? I recalled the entry point should be 0x40 for simepleImage.*.elf. So you have to change this on the file,

Re: Generating elf kernel ?

2010-09-16 Thread tiejun.chen
Guillaume Dargaud wrote: Please use simpleImage.your target dts name.elf. Great, that seems to be it... Except that nothing happens when I jump to 0x4, no message from the 0x4? I recalled the entry point should be 0x40 for simepleImage.*.elf. So you have to change this on the

Re: Generating elf kernel ?

2010-09-16 Thread Scott Wood
On Thu, 16 Sep 2010 10:37:32 +0800 tiejun.chen tiejun.c...@windriver.com wrote: 1 can you load the Linux vmlinux directly to the physical address '0' on current bootloader? That depends on what bootloader we're talking about -- I don't know what the original poster's custom loader can do.

Re: Generating elf kernel ?

2010-09-16 Thread tiejun.chen
Scott Wood wrote: On Thu, 16 Sep 2010 10:37:32 +0800 tiejun.chen tiejun.c...@windriver.com wrote: 1 can you load the Linux vmlinux directly to the physical address '0' on current bootloader? That depends on what bootloader we're talking about -- I don't know what the original poster's

Re: Generating elf kernel ?

2010-09-15 Thread Guillaume Dargaud
How do I generate an elf file ? vmlinux? Thanks. The entry point address has change and I can't upload it: New (bad) one: $ readelf -h vmlinux ... Entry point address: 0xc000 Old (good) one: $ readelf -h zImage.elf ... Entry point address: 0x40 How

Re: Generating elf kernel ?

2010-09-15 Thread tiejun.chen
Guillaume Dargaud wrote: How do I generate an elf file ? vmlinux? Thanks. The entry point address has change and I can't upload it: New (bad) one: $ readelf -h vmlinux ... Entry point address: 0xc000 Old (good) one: $ readelf -h zImage.elf ... Entry point

Re: Generating elf kernel ?

2010-09-15 Thread Guillaume Dargaud
Please use simpleImage.your target dts name.elf. Great, that seems to be it... Except that nothing happens when I jump to 0x4, no message from the kernel, nothing. I'm a bit stumped here as my old kernel worked fine. -- Guillaume Dargaud http://www.gdargaud.net/

Re: Generating elf kernel ?

2010-09-15 Thread Scott Wood
On Wed, 15 Sep 2010 16:27:10 +0800 tiejun.chen tiejun.c...@windriver.com wrote: It's impossible to boot PPC vmlinux format directly if you only change the original entry point address, 0xc000. Why? That's pretty much what the bootwrapper does. Our hypervisor has directly booted vmlinux

Re: Generating elf kernel ?

2010-09-15 Thread tiejun.chen
Scott Wood wrote: On Wed, 15 Sep 2010 16:27:10 +0800 tiejun.chen tiejun.c...@windriver.com wrote: It's impossible to boot PPC vmlinux format directly if you only change the original entry point address, 0xc000. Why? That's pretty much what the bootwrapper does. Our hypervisor has

Re: Generating elf kernel ?

2010-09-15 Thread tiejun.chen
Guillaume Dargaud wrote: Please use simpleImage.your target dts name.elf. Great, that seems to be it... Except that nothing happens when I jump to 0x4, no message from the 0x4? I recalled the entry point should be 0x40 for simepleImage.*.elf. So you have to change this on the

Generating elf kernel ?

2010-09-14 Thread Guillaume Dargaud
Hello all, In the past I've been using the PPC architecture to generate elf kernels (I wrote my own bootloader): $ file zImage.elf zImage.elf: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1 (SYSV), statically linked, not stripped I'm now trying to change to the PowerPC

Re: Generating elf kernel ?

2010-09-14 Thread tiejun.chen
Guillaume Dargaud wrote: Hello all, In the past I've been using the PPC architecture to generate elf kernels (I wrote my own bootloader): $ file zImage.elf zImage.elf: ELF 32-bit MSB executable, PowerPC or cisco 4500, version 1 (SYSV), statically linked, not stripped I'm now trying to

Re: Generating elf kernel ?

2010-09-14 Thread Guillaume Dargaud
Which bootloader? Looks you want to run it as XIP. I have my own downloader which does a few things and then transfers the kernel from a flash to the memory and then simply jumps to the 1st address with a 0x4() C function call. But I need to first use Xilinx tools to transfer the kernel

Re: Generating elf kernel ?

2010-09-14 Thread Baurzhan Ismagulov
On Tue, Sep 14, 2010 at 10:53:11AM +0200, Guillaume Dargaud wrote: How do I generate an elf file ? vmlinux? With kind regards, -- Baurzhan Ismagulov http://www.kz-easy.com/ ___ Linuxppc-dev mailing list Linuxppc-dev@lists.ozlabs.org