From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:32989) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPUT4-0005GD-Ka for qemu-devel@nongnu.org; Thu, 04 Sep 2014 06:40:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XPUT3-00030y-6c for qemu-devel@nongnu.org; Thu, 04 Sep 2014 06:40:42 -0400 Received: from mail-wg0-x22c.google.com ([2a00:1450:400c:c00::22c]:59193) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPUT2-00030J-UY for qemu-devel@nongnu.org; Thu, 04 Sep 2014 06:40:41 -0400 Received: by mail-wg0-f44.google.com with SMTP id m15so9888509wgh.27 for ; Thu, 04 Sep 2014 03:40:39 -0700 (PDT) MIME-Version: 1.0 Date: Thu, 4 Sep 2014 13:40:38 +0300 Message-ID: From: Semion Prihodko Content-Type: multipart/alternative; boundary=e89a8f64672fbe04f205023afbbc Subject: [Qemu-devel] HelloWord kernel for qemu-system-aarch64 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --e89a8f64672fbe04f205023afbbc Content-Type: text/plain; charset=UTF-8 Hi guys, Need your help. I trying to find a way to compile/link a minimal kernel which outputs "Hello World" in qemu-system-aarch64. No tutorial found. There is no problem running the same example in Foundation emulator, but I need QEMU. Trying to reuse axf-file in Foundation example: aarch64-linux-gnu-objcopy -O binary hello.axf kernel.bin qemu-system-aarch64 -machine virt -cpu cortex-a57 -nographic -smp 1 -m 3G -kernel kernel.bin I got: qemu: fatal: Trying to execute code outside RAM or ROM at 0x0000000000000000 What's wrong here? Can you show me some tutorial how to build minimal HelloWorld kernel for qemu-system-aarch64 (without need to generate axf-file)? Thanks in advance. --e89a8f64672fbe04f205023afbbc Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi guys,

Need your help. I trying to fi= nd a way to compile/link a minimal kernel which outputs "Hello World&q= uot; in=C2=A0qemu-system-aarch64. No tutorial found. There is no problem ru= nning the same example in Foundation emulator, but I need QEMU.

Trying to reuse axf-file in Foundation example:

aarch64-linux-gnu-objcopy -O binary hello.axf kernel.bin<= br>
qemu-system-aarch64 -machine virt -cpu cortex-a57 -nographic = -smp 1 -m 3G -kernel kernel.bin

I got:

qemu: fatal: Tryi= ng to execute code outside RAM or ROM at 0x0000000000000000
<= br>
What's wrong here? Can you show me some tutorial how to b= uild minimal HelloWorld kernel for=C2=A0qemu-system-aarch64 (without need t= o generate axf-file)? Thanks in advance.
--e89a8f64672fbe04f205023afbbc--