From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.3 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS, USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CCD64C433E0 for ; Sun, 2 Aug 2020 14:27:53 +0000 (UTC) Received: from shelob.surriel.com (shelob.surriel.com [96.67.55.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 64AE120759 for ; Sun, 2 Aug 2020 14:27:53 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=gmx.net header.i=@gmx.net header.b="jI0NH1jA" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 64AE120759 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=gmx.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=kernelnewbies-bounces@kernelnewbies.org Received: from localhost ([::1] helo=shelob.surriel.com) by shelob.surriel.com with esmtp (Exim 4.94) (envelope-from ) id 1k2ExR-0005Pb-GX; Sun, 02 Aug 2020 10:27:25 -0400 Received: from mout.gmx.net ([212.227.17.20]) by shelob.surriel.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94) (envelope-from ) id 1k2ExN-0005PW-JV for kernelnewbies@kernelnewbies.org; Sun, 02 Aug 2020 10:27:21 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1596378438; bh=uy3KxXWdttumoMUyrIqbgpn2mrvZpUVbIkE/Onp65E4=; h=X-UI-Sender-Class:Date:From:To:Cc:Subject; b=jI0NH1jAE74rEpdH9ROIvqj2zW3geGKMEnrnyf4X88mN7laOEYX08r+3QLHmvLHP0 P+dwxA68vVx34A6+p6pPpHoxEysx63FZWWgGON/jsHm/Zw3dPd1rtL4v8A4jebyxtI Y9/RRNCKBNdMOXqZQBwZxDnZVMUJkZ54KSKOBvno= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from ubuntu ([79.150.73.70]) by mail.gmx.com (mrgmx104 [212.227.17.174]) with ESMTPSA (Nemesis) id 1MZCfJ-1kFhDQ49IH-00V8jh; Sun, 02 Aug 2020 16:27:18 +0200 Date: Sun, 2 Aug 2020 16:27:03 +0200 From: Oscar Carter To: kernelnewbies@kernelnewbies.org Subject: Help to test the powerpc architecture Message-ID: <20200802142703.GA3575@ubuntu> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) X-Provags-ID: V03:K1:hF+9lPWyYnf4I2pvAC8mgxd7xV30GxrAhFcRyLks9vhP15Xa3pg bFkZHmcOy6lchwQqyd1dUC0nU4Nn6Tg/v7D3g3JN3goaDP48xLA+NYN3Idawcq1ribRBcT0 IfDi0rOdkrpoJTGTUCiOnkFHoYZHBpfkUYOULs5vFBSxILvOHxNSu/owH4Pm6nhs7Y7NExK hWbKfLALotSwOFaXuz8/w== X-UI-Out-Filterresults: notjunk:1;V03:K0:zQXCCFIMejY=:epknlQCQNTIgOtwvhWsQjy XijM8+XeYn7FR7zdT2JGqNS5wdG2obrLrgdocKsHmbKCYkUJC8kD/JVzSyed+Jfe6Q9wI+Can EotbF4yrXYeROQpeoe9afaxU6YaKTITd2e5WROL4NKyNMQuhHmazgCsJNOnu+9oqlsfXj5rlg UJF4o82mUHRBdMh+42/jSYkNNCILOeQdq/RZckMscQci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7TWzNTQ== Cc: Oscar Carter X-BeenThere: kernelnewbies@kernelnewbies.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: Learn about the Linux kernel List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: kernelnewbies-bounces@kernelnewbies.org Hi, I'm working in a new feature for the powerpc (64 bits little endian) architecture. Since I can't test it in a real environment, I need to emulate this arch. To do this I use qemu-ppc. My problem is that the built kernel don't boot in qemu. To build the kernel: make defconfig ARCH=powerpc Then I set to NO the CONFIG_KEXEC option as I found that qemu can't boot a KEXEC kernel. And now: make ARCH=powerpc CROSS_COMPILE=powerpc-linux-gnu- -j4 Finally I obtain a zImage in arch/powerpc/boot/ directory. Before to run qemu I create a rootfs with debootstrap. Then I run qemu with the following parameters: qemu-system-ppc -kernel /media/ubuntu/Data/linux/arch/powerpc/boot/zImage \ -append "root=/dev/sda console=ttyS0" \ -drive file=qemu_image.img,index=0,media=disk,format=raw \ --nographic If I add the "-prom-env boot-args=-v" to the end of the last command I get the same result. The qemu always stops at this point: >> ============================================================= >> OpenBIOS 1.1 [Dec 27 2018 23:11] >> Configuration device id QEMU version 1 machine id 2 >> CPUs: 1 >> Memory: 128M >> UUID: 00000000-0000-0000-0000-000000000000 >> CPU type PowerPC,750 milliseconds isn't unique. Welcome to OpenBIOS v1.1 built on Dec 27 2018 23:11 >> [ppc] Kernel already loaded (0x01000000 + 0x009085d8) (initrd 0x00000000 + 0x00000000) >> [ppc] Kernel command line: root=/dev/sda console=ttyS0 >> switching to new context: Also, I've tried to build the kernel with a DTB embedded in the image, but not luck. The same result again. make ps3_defconfig ARCH=powerpc make ARCH=powerpc simpleImage.ps3 CROSS_COMPILE=powerpc-linux-gnu- -j4 I'm stuck at this point. I don't know how to configure the kernel to be able to boot with qemu. Any help to point me to the right direction will be greatly appreciated. Thank's in advance. Oscar Carter _______________________________________________ Kernelnewbies mailing list Kernelnewbies@kernelnewbies.org https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies