From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KB4t8-0003pv-U2 for qemu-devel@nongnu.org; Tue, 24 Jun 2008 05:32:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KB4t7-0003pj-M8 for qemu-devel@nongnu.org; Tue, 24 Jun 2008 05:32:34 -0400 Received: from [199.232.76.173] (port=46525 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KB4t7-0003pg-F3 for qemu-devel@nongnu.org; Tue, 24 Jun 2008 05:32:33 -0400 Received: from mail-sin.bigfish.com ([207.46.51.74]:9976 helo=mail162-sin-R.bigfish.com) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KB4t6-000289-7u for qemu-devel@nongnu.org; Tue, 24 Jun 2008 05:32:33 -0400 Received: from mail162-sin (localhost.localdomain [127.0.0.1]) by mail162-sin-R.bigfish.com (Postfix) with ESMTP id 174A41778436 for ; Tue, 24 Jun 2008 09:32:26 +0000 (UTC) Received: from svlb1extmailp02.amd.com (unknown [139.95.251.11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail162-sin.bigfish.com (Postfix) with ESMTP id 4609F11E805A for ; Tue, 24 Jun 2008 09:32:24 +0000 (UTC) Received: from svlb1twp02.amd.com ([139.95.250.35]) by svlb1extmailp02.amd.com (Switch-3.2.7/Switch-3.2.7) with ESMTP id m5O9WmJf007721 for ; Tue, 24 Jun 2008 02:32:51 -0700 Received: from SSVLEXBH1.amd.com (ssvlexbh1.amd.com [139.95.53.182]) by svlb1twp02.amd.com (Tumbleweed MailGate 3.5.1) with ESMTP id 262751103C6 for ; Tue, 24 Jun 2008 02:32:15 -0700 (PDT) Message-ID: <4860BF1F.3050603@amd.com> Date: Tue, 24 Jun 2008 15:02:15 +0530 From: Sudheer Papothi MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Linux kernel image for Emulator - Regd. Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi I am newbie to l inux porting. I was trying to port linux on a new ARM platform. Before doing that I would like to debug the same using ARM emulator. So, I tried the arm-linux image (cpu type: arm1136) that I built, on qemu. But i am getting the following error. $ qemu-system-arm -cpu arm1136 -kernel zImage -initrd arm_root.img -nographic -append "console=ttyAMA0" qemu: fatal: Bad mode 0 R00=0018fc7c R01=00000000 R02=e3a131a4 R03=00000000 R04=000131a4 R05=0018fc7c R06=e18c8da9 R07=0018fcf4 R08=00008000 R09=0000000c R10=0000000d R11=00198fc4 R12=00000000 R13=00198fa8 R14=00010a30 R15=00008000 PSR=000001d3 ---- A svc32 s00=00000000( 0) s01=00000000( 0) d00=0000000000000000( 0) s02=00000000( 0) s03=00000000( 0) d01=0000000000000000( 0) s04=00000000( 0) s05=00000000( 0) d02=0000000000000000( 0) s06=00000000( 0) s07=00000000( 0) d03=0000000000000000( 0) s08=00000000( 0) s09=00000000( 0) d04=0000000000000000( 0) s10=00000000( 0) s11=00000000( 0) d05=0000000000000000( 0) s12=00000000( 0) s13=00000000( 0) d06=0000000000000000( 0) s14=00000000( 0) s15=00000000( 0) d07=0000000000000000( 0) s16=00000000( 0) s17=00000000( 0) d08=0000000000000000( 0) s18=00000000( 0) s19=00000000( 0) d09=0000000000000000( 0) s20=00000000( 0) s21=00000000( 0) d10=0000000000000000( 0) s22=00000000( 0) s23=00000000( 0) d11=0000000000000000( 0) s24=00000000( 0) s25=00000000( 0) d12=0000000000000000( 0) s26=00000000( 0) s27=00000000( 0) d13=0000000000000000( 0) s28=00000000( 0) s29=00000000( 0) d14=0000000000000000( 0) s30=00000000( 0) s31=00000000( 0) d15=0000000000000000( 0) FPSCR: 00000000 Aborted So, I tried the linux image ( cpu: arm1136 ) which is already working on our platform, on qemu. Here, even in this case, the above error is reproduced. Can anyone please let me know what changes are required in linux kernel to run it on emulator (i.e., qemu). It would be great if some one points to the documentation of linux kernel compilation for emultors (if anything specifically required) other than normal compilation. I tried the arm test binary present in Qemu website and it is working fine. -- Thanks & Regards Sudheer