From owner-freebsd-ppc@freebsd.org Mon Jul 9 18:55:11 2018 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 50337104669A for ; Mon, 9 Jul 2018 18:55:11 +0000 (UTC) (envelope-from bacon4000@gmail.com) Received: from mail-it0-x22d.google.com (mail-it0-x22d.google.com [IPv6:2607:f8b0:4001:c0b::22d]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D602A7F403 for ; Mon, 9 Jul 2018 18:55:10 +0000 (UTC) (envelope-from bacon4000@gmail.com) Received: by mail-it0-x22d.google.com with SMTP id g4-v6so10834152iti.1 for ; Mon, 09 Jul 2018 11:55:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-transfer-encoding:content-language; bh=y9/t72D8FRQBoM3S87o/WngJZG5QekhmVJsEkHVl+gY=; b=sONWN0JHSfLXlPUz/q8u8YuP6gw/PH/0axEO8Zad/lATe+TQkkAi9Z+i9iSAMdz8dB nONbjQmNpyOexudBQg8vCU2cdms9dKG3WXFRCmAMlO/H4eDtjhicFjOVCbo8+9chBM3M Hpn6bnV4CMeD7e8WvFEPZbJa9L4xpmueJ1arl0fsSnRIycSMuksylpM+buCCuaP1Ili1 eUDUaysK1MnoTgIQPXif+T3a046Vibip6W9XwbdWEydjVZlZHnFLxBCHMQEl+wCoqxW9 ij/S+Hgj1g6nyE3f5LGCuMI6/xyTFg/jrgLu4uMitXo/5+vlVGr9JfUBO6Jx6BfcRGLf tHbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-transfer-encoding:content-language; bh=y9/t72D8FRQBoM3S87o/WngJZG5QekhmVJsEkHVl+gY=; b=LQ1qeGbzmxqFTMZqqb5L6mG4NCROxCTnNnTEeKmhAJSigJZ/0iK7f09EnLDVOCKQdt 2QvLXwvWI8ptlc8IHpGOT8GKMJlgNZxP7+IWnG3C3kEJpdytoySSiKYz4QLK9qJWZ/XC Lp7sH2xGIzGRrmMwkN8RBAMf6Std93dqvT9NbwRoasbirKyXVenGL+sehejqyfgT66Xr +98v/alYjt4kG1YRr9g41jCPwF1Q0VAImpjdg4JsjEMDXGomKjXHj37q7a/Vl0LHSsas 4L1r5QblsQ6YwVrCUUWZdIhlE2RnNl5dhUHWZ6byyscfDAHqMUic2MUPfXR0V4jXB6aD CT/w== X-Gm-Message-State: APt69E0GRodLY1wZgf7TsghVFcJfSIRJShjtIC+p5cw7EEs9tPNzp+UH KmeHCZwOLb3//1uS+FWxnAM+4R8W X-Google-Smtp-Source: AAOMgpdsbH+AAyFw74+OHaajaANCabcm752S0LnvH2fM30hu9YcL0wTOCu/vW6h4EbZoYwx3Gq73KA== X-Received: by 2002:a24:28f:: with SMTP id 137-v6mr16293858itu.55.1531162509876; Mon, 09 Jul 2018 11:55:09 -0700 (PDT) Received: from outpaddling.cs.uwm.edu (outpaddling.cs.uwm.edu. [129.89.38.212]) by smtp.gmail.com with ESMTPSA id c91-v6sm1920993itd.19.2018.07.09.11.55.09 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Jul 2018 11:55:09 -0700 (PDT) To: freebsd-ppc@freebsd.org From: Jason Bacon Subject: QEMU Message-ID: <0c2e8392-0444-094c-af61-ca14d4f3038e@gmail.com> Date: Mon, 9 Jul 2018 13:55:07 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jul 2018 18:55:11 -0000 Anyone running on qemu lately? I've tried following the "recipe": https://wiki.freebsd.org/QemuRecipes and tried using aqemu. 11.2-RELEASE hangs during boot from the ISO. 11.1 makes it to the install screen, but does not accept keyboard input. Hoping to fix ppc issues in some of the ports I maintain and I don't have any ppc hardware at the moment. Cheers,     JB -- Earth is a beta site. From owner-freebsd-ppc@freebsd.org Mon Jul 9 19:17:23 2018 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2B1B610486D4 for ; Mon, 9 Jul 2018 19:17:23 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from mail.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C718680AB3 for ; Mon, 9 Jul 2018 19:17:22 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from John-Baldwins-MacBook-Pro-2.local (ralph.baldwin.cx [66.234.199.215]) by mail.baldwin.cx (Postfix) with ESMTPSA id C8CC210AFD4; Mon, 9 Jul 2018 15:17:21 -0400 (EDT) Subject: Re: QEMU To: Jason Bacon , freebsd-ppc@freebsd.org References: <0c2e8392-0444-094c-af61-ca14d4f3038e@gmail.com> From: John Baldwin Message-ID: Date: Mon, 9 Jul 2018 12:17:22 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <0c2e8392-0444-094c-af61-ca14d4f3038e@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (mail.baldwin.cx); Mon, 09 Jul 2018 15:17:22 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.99.2 at mail.baldwin.cx X-Virus-Status: Clean X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jul 2018 19:17:23 -0000 On 7/9/18 11:55 AM, Jason Bacon wrote: > > Anyone running on qemu lately? > > I've tried following the "recipe": https://wiki.freebsd.org/QemuRecipes > and tried using aqemu. > > 11.2-RELEASE hangs during boot from the ISO. > > 11.1 makes it to the install screen, but does not accept keyboard input. > > Hoping to fix ppc issues in some of the ports I maintain and I don't > have any ppc hardware at the moment. It's been a while since I tried those (I put the recipes up), and IIRC I was only ever able to boot powerpc64 under qemu, never 32-bit. -- John Baldwin From owner-freebsd-ppc@freebsd.org Mon Jul 9 20:39:41 2018 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B3D8B102D24D for ; Mon, 9 Jul 2018 20:39:41 +0000 (UTC) (envelope-from bacon4000@gmail.com) Received: from mail-io0-x241.google.com (mail-io0-x241.google.com [IPv6:2607:f8b0:4001:c06::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 11DDF85E3F; Mon, 9 Jul 2018 20:39:41 +0000 (UTC) (envelope-from bacon4000@gmail.com) Received: by mail-io0-x241.google.com with SMTP id y10-v6so3460884ioa.10; Mon, 09 Jul 2018 13:39:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=PuKRExO41I+0APVTB9iGp+f02XARKqUaA72AtrhNlMA=; b=LV20s05fdGJJK3/qXQGGcMf6VPnVbyaoqKJSp4UaE4TqHNgBxnJHOPe2OdONRBnRwq 5dPoKmgQnoFOFwJIm4hrmbsEKU4Zr2IElhccfi7MQGDbvlf8/tb8uoaaZitk3hIfUccl 75vU2j6wY3c7HePe21WajHHyfEWDfJzjVA2RmCCm+iM8dnkXfX0If+E/MRkxced8mXPF Zpv+AG+V9RzDgwczr5eTcnI8TG2HwvQE7CuKxP22FqTnkxqVxBv+XSy2MEMdbjlCl+y0 vHXchD/NllaQqDdzWS3AiEPjOaZ5am1V9fO9060W14srCbr/NwWF8DRF7wgekDVX9j4t nwSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=PuKRExO41I+0APVTB9iGp+f02XARKqUaA72AtrhNlMA=; b=PNI96i6CHjIFV4lmC3jX1BVg69/zauWMqhh1aRaLe6Gt9lMkYznSRJHWzPCS+K/9w3 u+d4me4ElkgqABxrcDMBivZXeI9h20ppf8OyIIqg5oJbPYfMu/2vbRIeE6i4iP6ExfaU YPAHj+LedKH6XDeR40xp7NOmMGElgZr9YtrUNycoVo+h0ojxGEES1zCizFWa4kn8G4fv PW4CXzSbTHxCTDutgXsAccqVA0J+Hd//Blyk4vDbzjGyb2sPsHiD/UJREcuDdR9TJBmN t3YFSpbkbkbY3Xw7fRTx7LHpSuUkxQGJIL1iZDlhX8QVurdoSZRjrBt6Qrx8S7fIsdDl qYKg== X-Gm-Message-State: APt69E3ciYQgWt24kgoJMtxxlK7S/5wkVKQhB16jtwJ8LIpgYXzve0lL DRlJ6xdsWa7i6RVnBUUcZlSbzXqe X-Google-Smtp-Source: AAOMgpcmJN4ITbz2PP9UhPPJRsOBfsbIYILo9gOuV+joC4mpkv+cPkQvIZyz0EmH3nditcU3EplDdA== X-Received: by 2002:a6b:5008:: with SMTP id e8-v6mr19159856iob.73.1531168780210; Mon, 09 Jul 2018 13:39:40 -0700 (PDT) Received: from outpaddling.cs.uwm.edu (outpaddling.cs.uwm.edu. [129.89.38.212]) by smtp.gmail.com with ESMTPSA id y141-v6sm2790213itc.38.2018.07.09.13.39.39 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Jul 2018 13:39:39 -0700 (PDT) Subject: Re: QEMU To: John Baldwin , freebsd-ppc@freebsd.org References: <0c2e8392-0444-094c-af61-ca14d4f3038e@gmail.com> From: Jason Bacon Message-ID: Date: Mon, 9 Jul 2018 15:39:37 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jul 2018 20:39:41 -0000 On 07/09/18 14:17, John Baldwin wrote: > On 7/9/18 11:55 AM, Jason Bacon wrote: >> Anyone running on qemu lately? >> >> I've tried following the "recipe": https://wiki.freebsd.org/QemuRecipes >> and tried using aqemu. >> >> 11.2-RELEASE hangs during boot from the ISO. >> >> 11.1 makes it to the install screen, but does not accept keyboard input. >> >> Hoping to fix ppc issues in some of the ports I maintain and I don't >> have any ppc hardware at the moment. > It's been a while since I tried those (I put the recipes up), and IIRC > I was only ever able to boot powerpc64 under qemu, never 32-bit. > Just noticed that the keyboard works during initial boot (I can hit enter to cancel the countdown after loading the kernel), but after successfully starting services and launching the installer, there is no response. "Scanning USB" shows a USB keyboard and mouse and "no console specified using screen & keyboard". Adding -usb and/or -device usb-kbd don't seem to help. How about PearPC? -- Earth is a beta site. From owner-freebsd-ppc@freebsd.org Mon Jul 9 21:12:13 2018 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 449DD1030951 for ; Mon, 9 Jul 2018 21:12:13 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from d.mail.sonic.net (d.mail.sonic.net [64.142.111.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id C5B92875CD; Mon, 9 Jul 2018 21:12:12 +0000 (UTC) (envelope-from nwhitehorn@freebsd.org) Received: from helicon.physics.ucla.edu (helicon.physics.ucla.edu [169.232.156.253]) (authenticated bits=0) by d.mail.sonic.net (8.15.1/8.15.1) with ESMTPSA id w69L0724008719 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Mon, 9 Jul 2018 14:00:07 -0700 Subject: Re: QEMU To: Jason Bacon , John Baldwin , freebsd-ppc@freebsd.org References: <0c2e8392-0444-094c-af61-ca14d4f3038e@gmail.com> From: Nathan Whitehorn Message-ID: <5e43417f-8797-c52f-363c-9670cd1f5947@freebsd.org> Date: Mon, 9 Jul 2018 14:00:06 -0700 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Sonic-CAuth: UmFuZG9tSVaJQuHN2ylOof5l75/BL0T5bY2t+f3Qv2yAiNkCLgcgmGrBOajRGswBy50VRikYW6bJwgr4G3LMP89BkCT5lLEWtUm6JEfKpT8= X-Sonic-ID: C;0j0mD7uD6BGIcYG7ftbltA== M;Wtd8D7uD6BGIcYG7ftbltA== X-Spam-Flag: No X-Sonic-Spam-Details: 0.0/5.0 by cerberusd X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jul 2018 21:12:13 -0000 On 07/09/18 13:39, Jason Bacon wrote: > On 07/09/18 14:17, John Baldwin wrote: >> On 7/9/18 11:55 AM, Jason Bacon wrote: >>> Anyone running on qemu lately? >>> >>> I've tried following the "recipe": https://wiki.freebsd.org/QemuRecipes >>> and tried using aqemu. >>> >>> 11.2-RELEASE hangs during boot from the ISO. >>> >>> 11.1 makes it to the install screen, but does not accept keyboard >>> input. >>> >>> Hoping to fix ppc issues in some of the ports I maintain and I don't >>> have any ppc hardware at the moment. >> It's been a while since I tried those (I put the recipes up), and IIRC >> I was only ever able to boot powerpc64 under qemu, never 32-bit. >> > Just noticed that the keyboard works during initial boot (I can hit > enter to cancel the countdown after loading the kernel), but > after successfully starting services and launching the installer, > there is no response. > > "Scanning USB" shows a USB keyboard and mouse and "no console > specified using screen & keyboard". > > Adding -usb and/or -device usb-kbd don't seem to help. > > How about PearPC? > Maybe a USB problem? If you run with -nographic with qemu-system-ppc64, it will work reliably. Other modes are less well-tested. -Nathan From owner-freebsd-ppc@freebsd.org Tue Jul 10 02:12:16 2018 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 8A134102E6ED for ; Tue, 10 Jul 2018 02:12:16 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 40507760AA; Tue, 10 Jul 2018 02:12:16 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1033) id 1EBF48872; Tue, 10 Jul 2018 02:12:16 +0000 (UTC) Date: Tue, 10 Jul 2018 02:12:16 +0000 From: Alexey Dokuchaev To: Jason Bacon Cc: John Baldwin , freebsd-ppc@freebsd.org Subject: Re: QEMU Message-ID: <20180710021216.GA82356@FreeBSD.org> References: <0c2e8392-0444-094c-af61-ca14d4f3038e@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.5 (2018-04-13) X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2018 02:12:16 -0000 On Mon, Jul 09, 2018 at 03:39:37PM -0500, Jason Bacon wrote: > ... > How about PearPC? It recall I was able to boot at least Darwin images with PearPC 0.4, but it got broken when it was updated to version 0.5. Nobody cared enough to investigate further. This was back in 2014. ./danfe From owner-freebsd-ppc@freebsd.org Tue Jul 10 04:29:55 2018 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CE40210413C6 for ; Tue, 10 Jul 2018 04:29:55 +0000 (UTC) (envelope-from jau789@gmail.com) Received: from mail-lf0-x22b.google.com (mail-lf0-x22b.google.com [IPv6:2a00:1450:4010:c07::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4037F7E1AE; Tue, 10 Jul 2018 04:29:55 +0000 (UTC) (envelope-from jau789@gmail.com) Received: by mail-lf0-x22b.google.com with SMTP id v22-v6so3578229lfe.8; Mon, 09 Jul 2018 21:29:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=z0v6lfSXNi4RIRkD6x9tS3ayIiZw19kWI67w1+Sw9K0=; b=JmQzOU9Ecsa96rFZbSAEs/gOhobmSomn4JxWiJWhw8G8UAmGLu0AdNREHo9WUklN5z /jypEviOsV0eLLiq7/16jvhPjs0qQFWqwH4dQlV3quaJ7bGgUtPbMPTru/Dh8JBg2JMa YG0sm/eJvpN7I/rSeaYAYZr5toKW3vT9Mz6bZcCrg6PQTJtDdxWHYI43tStps72x/AH6 aWPGIHv4JSL2cZf4wOB4T7DAurubF8o34aI9x2i2HOzqPhol/os7+N28BX5MNBl2QPNM G+z2S17pGy6FihpGGRIE3rAPzYdChDXPbjjgq7ZtYuPMz72HcUT2pSum4MqUNN5fNn25 8K/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=z0v6lfSXNi4RIRkD6x9tS3ayIiZw19kWI67w1+Sw9K0=; b=CxVN9kelBAGDfn3sUa93ydBJyBBLg1S2ul3oGsoIp69a5wYWCCiwaa/252uWstqMJj H1KYK1fWQpyEse2c/Gnu9wWyH/IA8pT8J9kZ4WZHT6N7mgXTYWEW7+hzN2t3VVX5CQL/ /+xmYoSXmEgUX+3qn1PH8FU0rR58Q+AO8+VQb9HB4mip71m3NgN0q24vtyEf24/oN1Z1 n8cBDG/7bkuf7dquY5o+oURzl/D7/hG0K8TVtPUP7hpKUMAHsZqrSyzS2CO6ijRrTtc5 9aKei/tNYYjvmZgQKZokM3tntt4HCXrEroaq7PoB8YuYdSsx6xgj3iU4YBh0FjtH1pym Fi4g== X-Gm-Message-State: APt69E12Pt46sgk55MlTHAy/Fpbf9RIo0D9/iVwoAsm3zlqEJ5aFxBNF FmNxHW1IFiG8PDYygUR25NI= X-Google-Smtp-Source: AAOMgpdqFgklV4hGqw7Dj2q57xmwe4P7MTqKOgGnZ8nO3SAns4v5dqLg5J8E3Lm9XhGnDu8YOB3HWQ== X-Received: by 2002:a19:4b90:: with SMTP id y138-v6mr1352877lfa.118.1531196993915; Mon, 09 Jul 2018 21:29:53 -0700 (PDT) Received: from [192.168.1.193] (xdsl-205-1.nblnetworks.fi. [83.145.205.1]) by smtp.gmail.com with ESMTPSA id w8-v6sm1609048lfe.67.2018.07.09.21.29.52 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 09 Jul 2018 21:29:53 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (1.0) Subject: Re: QEMU From: Jukka Ukkonen X-Mailer: iPad Mail (15F79) In-Reply-To: <20180710021216.GA82356@FreeBSD.org> Date: Tue, 10 Jul 2018 07:29:48 +0300 Cc: Jason Bacon , freebsd-ppc@freebsd.org Content-Transfer-Encoding: 7bit Message-Id: References: <0c2e8392-0444-094c-af61-ca14d4f3038e@gmail.com> <20180710021216.GA82356@FreeBSD.org> To: Alexey Dokuchaev X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2018 04:29:56 -0000 Could these symptoms be related to the 11.x series crashing during boot on proper ppc SMP systems? --jau > On 10 Jul 2018, at 5.12, Alexey Dokuchaev wrote: > >> On Mon, Jul 09, 2018 at 03:39:37PM -0500, Jason Bacon wrote: >> ... >> How about PearPC? > > It recall I was able to boot at least Darwin images with PearPC 0.4, > but it got broken when it was updated to version 0.5. Nobody cared > enough to investigate further. This was back in 2014. > > ./danfe > _______________________________________________ > freebsd-ppc@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ppc > To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org" From owner-freebsd-ppc@freebsd.org Tue Jul 10 11:12:41 2018 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 773B71040B5B for ; Tue, 10 Jul 2018 11:12:41 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from drew.franken.de (drew.ipv6.franken.de [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.franken.de", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1310070E7A; Tue, 10 Jul 2018 11:12:41 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from [192.168.1.133] (p57BB4637.dip0.t-ipconnect.de [87.187.70.55]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTPSA id 1A6CA721E280C; Tue, 10 Jul 2018 13:12:37 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: Loading modules from /boot/loader.conf From: Michael Tuexen In-Reply-To: <20180626053314.GA30244@FreeBSD.org> Date: Tue, 10 Jul 2018 13:12:35 +0200 Cc: FreeBSD PowerPC ML Content-Transfer-Encoding: 7bit Message-Id: References: <6DB7ABD4-8C04-46B3-8C07-FC591FC16F71@freebsd.org> <20180626053314.GA30244@FreeBSD.org> To: Alexey Dokuchaev X-Mailer: Apple Mail (2.3445.9.1) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=disabled version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail-n.franken.de X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2018 11:12:41 -0000 > On 26. Jun 2018, at 07:33, Alexey Dokuchaev wrote: > > On Mon, Jun 25, 2018 at 07:17:42PM +0200, Michael Tuexen wrote: >> I'm running FreeBSD head of today on a G4 MacMini. I'm trying to >> load a kernel module using /boot/loader.conf by having the line >> >> tcp_rack_load="YES" in /boot/loader.conf. >> >> However, this doesn't work and results in [module 'kernel' exists but >> with wrong version]. I have no problems when running "kldload tcp_rack" >> after the system completely booted. Then the module loads without any >> problems. > > I don't know what's causing it and cannot reproduce it right now (but then > again, I'm still running fairly old r302710 -CURRENT on my G4), but I've > heard about this very problem from another FreeBSD-on-G4 user. Hi Alexey, can you run on your G4: readelf -x set_modmetadata_set /boot/kernel/kernel This should provide a list of non-NULL pointers. However, on my G4 system this section only contains NULL pointers. Best regards Michael > > ./danfe From owner-freebsd-ppc@freebsd.org Tue Jul 10 11:23:59 2018 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 0F0261041CE0 for ; Tue, 10 Jul 2018 11:23:59 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from drew.franken.de (mail-n.franken.de [193.175.24.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.franken.de", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 968F971550 for ; Tue, 10 Jul 2018 11:23:58 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from [192.168.1.133] (p57BB4637.dip0.t-ipconnect.de [87.187.70.55]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTPSA id 6B8D5721E2826; Tue, 10 Jul 2018 13:23:54 +0200 (CEST) From: Michael Tuexen Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: Loading modules from /boot/loader.conf Date: Tue, 10 Jul 2018 13:23:52 +0200 References: <6DB7ABD4-8C04-46B3-8C07-FC591FC16F71@freebsd.org> To: FreeBSD PowerPC ML , Hans Petter Selasky In-Reply-To: <6DB7ABD4-8C04-46B3-8C07-FC591FC16F71@freebsd.org> Message-Id: X-Mailer: Apple Mail (2.3445.9.1) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=disabled version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail-n.franken.de X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2018 11:23:59 -0000 > On 25. Jun 2018, at 19:17, Michael Tuexen wrote: >=20 > Dear all, >=20 > I'm running FreeBSD head of today on a G4 MacMini. I'm trying to > load a kernel module using /boot/loader.conf by having the line >=20 > tcp_rack_load=3D"YES" >=20 > in /boot/loader.conf >=20 > However, this doesn't work and results in: >=20 > FreeBSD/powerpc Open Firmware loader, Revision 0.1 > (Tue Jun 12 01:08:20 UTC 2010 root@releng3.nyi.freebsd.org) > Memory: 1048576KB > Booted from: /pic@f4000000/ata-@d/disk@0 >=20 > Loading /boot/default/loader.conf > /boot/kernel/kernel data=3D0x706ac+0xed588 = syms=3D[0x4+0xa3100+0x4+0x10bc45] > /boot/entropy size=3D0x1000 > /boot/kernel/tcp_rack.ko text=3D0x2433c data=3D0x1d0+0x220 = syms=3D[0x4+0x15a0+0x4+0x17bd] > loading required module 'kernel' > module 'kernel' exists but with wrong version >=20 > Hit [Enter] to boot immediately, or any other key for command prompt. > ... >=20 > I have no problems when running >=20 > kldload tcp_rack >=20 > after the system completely booted. Then the modules loads without any = problems. >=20 > Any idea what am I doing wrong? The problem seem to be in the metadata information stored in = /boot/kernel/kernel. Concentrating on the version info for the kernel. The .symtab entry contains entry: 11727 st_name: _mod_metadata_kernel_version st_value: 0xdcafd4 st_size: 16 st_info: STT_OBJECT STB_LOCAL st_shndx: 22 which seems to be correct. However, looking at the version info, one = finds: readelf -x .data.rel.local /boot/kernel/kernel provides 0x00dcafc8 3454f8e9 00000000 00000000 00000001 4T.............. 0x00dcafd8 00000003 00000000 00000000 02000000 ................ which corresponds to {.md_version =3D 1, .md_type =3D 3, .md_data =3D NULL, .md_cval =3D = NULL} First of all, this information is NOT stored in the .data section as it = is in the case of power64, amd64, arm64, but in the .data.rel.local section. Furthermore,md_data and md_cval are NULL, which should not be the case. In addition, the set_modmetadata_set should contain pointers to the = module metadata, but it contains only NULL pointers, as can be checked with readelf -x set_modmetadata_set /boot/kernel/kernel Does anyone knows what is going wrong and why? Is it possible that https://svnweb.freebsd.org/base?view=3Drevision&revision=3D268055 is related to this issue? It only handles the 64-bit version. However, simply applying this also to __powerpc__ and recompiling the kernel didn't solve the issue. Best regards Michael >=20 > Best regards > Michael >=20 >=20 >=20 >=20 >=20 > _______________________________________________ > freebsd-ppc@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ppc > To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org" From owner-freebsd-ppc@freebsd.org Tue Jul 10 12:33:25 2018 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id CA2BF1047C17 for ; Tue, 10 Jul 2018 12:33:25 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8001074137; Tue, 10 Jul 2018 12:33:25 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1033) id 77CEF13035; Tue, 10 Jul 2018 12:33:25 +0000 (UTC) Date: Tue, 10 Jul 2018 12:33:25 +0000 From: Alexey Dokuchaev To: Michael Tuexen Cc: FreeBSD PowerPC ML Subject: Re: Loading modules from /boot/loader.conf Message-ID: <20180710123325.GA34541@FreeBSD.org> References: <6DB7ABD4-8C04-46B3-8C07-FC591FC16F71@freebsd.org> <20180626053314.GA30244@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.5 (2018-04-13) X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2018 12:33:26 -0000 On Tue, Jul 10, 2018 at 01:12:35PM +0200, Michael Tuexen wrote: > can you run on your G4: > > readelf -x set_modmetadata_set /boot/kernel/kernel > > This should provide a list of non-NULL pointers. However, on my G4 system > this section only contains NULL pointers. Mine is also all NULLs. ./danfe From owner-freebsd-ppc@freebsd.org Tue Jul 10 13:11:47 2018 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 86B101023EEE for ; Tue, 10 Jul 2018 13:11:47 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from drew.franken.de (mail-n.franken.de [193.175.24.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.franken.de", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 25C4B760A3; Tue, 10 Jul 2018 13:11:47 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from [192.168.1.133] (p57BB4637.dip0.t-ipconnect.de [87.187.70.55]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTPSA id 4CFFE721E280C; Tue, 10 Jul 2018 15:11:39 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: Loading modules from /boot/loader.conf From: Michael Tuexen In-Reply-To: <20180710123325.GA34541@FreeBSD.org> Date: Tue, 10 Jul 2018 15:11:37 +0200 Cc: FreeBSD PowerPC ML Content-Transfer-Encoding: 7bit Message-Id: References: <6DB7ABD4-8C04-46B3-8C07-FC591FC16F71@freebsd.org> <20180626053314.GA30244@FreeBSD.org> <20180710123325.GA34541@FreeBSD.org> To: Alexey Dokuchaev X-Mailer: Apple Mail (2.3445.9.1) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=disabled version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail-n.franken.de X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2018 13:11:47 -0000 > On 10. Jul 2018, at 14:33, Alexey Dokuchaev wrote: > > On Tue, Jul 10, 2018 at 01:12:35PM +0200, Michael Tuexen wrote: >> can you run on your G4: >> >> readelf -x set_modmetadata_set /boot/kernel/kernel >> >> This should provide a list of non-NULL pointers. However, on my G4 system >> this section only contains NULL pointers. > > Mine is also all NULLs. OK. You said that you can't reproduce the problem. So you are able to load a kernel module via /boot/loader.conf? If yes, which one? Best regards Michael > > ./danfe From owner-freebsd-ppc@freebsd.org Tue Jul 10 13:49:49 2018 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 079AA10284F1 for ; Tue, 10 Jul 2018 13:49:49 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [96.47.72.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "freefall.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id B099877888; Tue, 10 Jul 2018 13:49:48 +0000 (UTC) (envelope-from danfe@freebsd.org) Received: by freefall.freebsd.org (Postfix, from userid 1033) id A94E01475A; Tue, 10 Jul 2018 13:49:48 +0000 (UTC) Date: Tue, 10 Jul 2018 13:49:48 +0000 From: Alexey Dokuchaev To: Michael Tuexen Cc: FreeBSD PowerPC ML Subject: Re: Loading modules from /boot/loader.conf Message-ID: <20180710134948.GA2655@FreeBSD.org> References: <6DB7ABD4-8C04-46B3-8C07-FC591FC16F71@freebsd.org> <20180626053314.GA30244@FreeBSD.org> <20180710123325.GA34541@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.5 (2018-04-13) X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2018 13:49:49 -0000 On Tue, Jul 10, 2018 at 03:11:37PM +0200, Michael Tuexen wrote: > > On 10. Jul 2018, at 14:33, Alexey Dokuchaev wrote: > > > > On Tue, Jul 10, 2018 at 01:12:35PM +0200, Michael Tuexen wrote: > >> can you run on your G4: > >> > >> readelf -x set_modmetadata_set /boot/kernel/kernel > >> > >> This should provide a list of non-NULL pointers. However, on my G4 system > >> this section only contains NULL pointers. > > > > Mine is also all NULLs. > > OK. You said that you can't reproduce the problem. I meant that I didn't try yet because the box is used as a database server for our pet project at $work, and I didn't want to reboot it. I'll try to find a chance to do this though. > So you are able to load a kernel module via /boot/loader.conf? > If yes, which one? I've put xhci_load="YES" there and report upon the next reboot. ./danfe From owner-freebsd-ppc@freebsd.org Tue Jul 10 14:07:18 2018 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5F98D102A2CF for ; Tue, 10 Jul 2018 14:07:18 +0000 (UTC) (envelope-from hps@selasky.org) Received: from mail.turbocat.net (turbocat.net [IPv6:2a01:4f8:c17:6c4b::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id F1F4D7885A; Tue, 10 Jul 2018 14:07:17 +0000 (UTC) (envelope-from hps@selasky.org) Received: from hps2016.home.selasky.org (unknown [62.141.128.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id DC687260199; Tue, 10 Jul 2018 16:07:15 +0200 (CEST) Subject: Re: Loading modules from /boot/loader.conf To: Michael Tuexen , FreeBSD PowerPC ML References: <6DB7ABD4-8C04-46B3-8C07-FC591FC16F71@freebsd.org> From: Hans Petter Selasky Message-ID: <365d2fef-a272-16b2-de09-6344e2abc242@selasky.org> Date: Tue, 10 Jul 2018 16:06:56 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2018 14:07:18 -0000 On 07/10/18 13:23, Michael Tuexen wrote: >> On 25. Jun 2018, at 19:17, Michael Tuexen wrote: >> >> Dear all, >> >> I'm running FreeBSD head of today on a G4 MacMini. I'm trying to >> load a kernel module using /boot/loader.conf by having the line >> >> tcp_rack_load="YES" >> >> in /boot/loader.conf >> >> However, this doesn't work and results in: >> >> FreeBSD/powerpc Open Firmware loader, Revision 0.1 >> (Tue Jun 12 01:08:20 UTC 2010 root@releng3.nyi.freebsd.org) >> Memory: 1048576KB >> Booted from: /pic@f4000000/ata-@d/disk@0 >> >> Loading /boot/default/loader.conf >> /boot/kernel/kernel data=0x706ac+0xed588 syms=[0x4+0xa3100+0x4+0x10bc45] >> /boot/entropy size=0x1000 >> /boot/kernel/tcp_rack.ko text=0x2433c data=0x1d0+0x220 syms=[0x4+0x15a0+0x4+0x17bd] >> loading required module 'kernel' >> module 'kernel' exists but with wrong version >> >> Hit [Enter] to boot immediately, or any other key for command prompt. >> ... >> >> I have no problems when running >> >> kldload tcp_rack >> >> after the system completely booted. Then the modules loads without any problems. >> >> Any idea what am I doing wrong? > The problem seem to be in the metadata information stored in /boot/kernel/kernel. > > Concentrating on the version info for the kernel. > > The .symtab entry contains > > entry: 11727 > st_name: _mod_metadata_kernel_version > st_value: 0xdcafd4 > st_size: 16 > st_info: STT_OBJECT STB_LOCAL > st_shndx: 22 > > which seems to be correct. However, looking at the version info, one finds: > > readelf -x .data.rel.local /boot/kernel/kernel provides > 0x00dcafc8 3454f8e9 00000000 00000000 00000001 4T.............. > 0x00dcafd8 00000003 00000000 00000000 02000000 ................ > > which corresponds to > > {.md_version = 1, .md_type = 3, .md_data = NULL, .md_cval = NULL} > > First of all, this information is NOT stored in the .data section as it is in > the case of power64, amd64, arm64, but in the .data.rel.local section. > Furthermore,md_data and md_cval are NULL, which should not be the case. > > In addition, the set_modmetadata_set should contain pointers to the module > metadata, but it contains only NULL pointers, as can be checked with > readelf -x set_modmetadata_set /boot/kernel/kernel > > Does anyone knows what is going wrong and why? > > Is it possible that > > https://svnweb.freebsd.org/base?view=revision&revision=268055 > > is related to this issue? It only handles the 64-bit version. > However, simply applying this also to __powerpc__ and recompiling > the kernel didn't solve the issue. > Hi, There is this thread with some more information: https://lists.freebsd.org/pipermail/svn-src-all/2014-June/087354.html --HPS From owner-freebsd-ppc@freebsd.org Tue Jul 10 14:18:37 2018 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D5C66102B1EA for ; Tue, 10 Jul 2018 14:18:36 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from drew.franken.de (drew.ipv6.franken.de [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.franken.de", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 459C279271 for ; Tue, 10 Jul 2018 14:18:36 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from [192.168.1.133] (p57BB4637.dip0.t-ipconnect.de [87.187.70.55]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTPSA id 34F6B721E280C; Tue, 10 Jul 2018 16:18:32 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: Loading modules from /boot/loader.conf From: Michael Tuexen In-Reply-To: <365d2fef-a272-16b2-de09-6344e2abc242@selasky.org> Date: Tue, 10 Jul 2018 16:18:30 +0200 Cc: FreeBSD PowerPC ML Content-Transfer-Encoding: quoted-printable Message-Id: <6EDBDB53-9A50-4846-8EDF-4B074838C600@freebsd.org> References: <6DB7ABD4-8C04-46B3-8C07-FC591FC16F71@freebsd.org> <365d2fef-a272-16b2-de09-6344e2abc242@selasky.org> To: Hans Petter Selasky X-Mailer: Apple Mail (2.3445.9.1) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=disabled version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail-n.franken.de X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2018 14:18:37 -0000 > On 10. Jul 2018, at 16:06, Hans Petter Selasky = wrote: >=20 > On 07/10/18 13:23, Michael Tuexen wrote: >>> On 25. Jun 2018, at 19:17, Michael Tuexen = wrote: >>>=20 >>> Dear all, >>>=20 >>> I'm running FreeBSD head of today on a G4 MacMini. I'm trying to >>> load a kernel module using /boot/loader.conf by having the line >>>=20 >>> tcp_rack_load=3D"YES" >>>=20 >>> in /boot/loader.conf >>>=20 >>> However, this doesn't work and results in: >>>=20 >>> FreeBSD/powerpc Open Firmware loader, Revision 0.1 >>> (Tue Jun 12 01:08:20 UTC 2010 root@releng3.nyi.freebsd.org) >>> Memory: 1048576KB >>> Booted from: /pic@f4000000/ata-@d/disk@0 >>>=20 >>> Loading /boot/default/loader.conf >>> /boot/kernel/kernel data=3D0x706ac+0xed588 = syms=3D[0x4+0xa3100+0x4+0x10bc45] >>> /boot/entropy size=3D0x1000 >>> /boot/kernel/tcp_rack.ko text=3D0x2433c data=3D0x1d0+0x220 = syms=3D[0x4+0x15a0+0x4+0x17bd] >>> loading required module 'kernel' >>> module 'kernel' exists but with wrong version >>>=20 >>> Hit [Enter] to boot immediately, or any other key for command = prompt. >>> ... >>>=20 >>> I have no problems when running >>>=20 >>> kldload tcp_rack >>>=20 >>> after the system completely booted. Then the modules loads without = any problems. >>>=20 >>> Any idea what am I doing wrong? >> The problem seem to be in the metadata information stored in = /boot/kernel/kernel. >> Concentrating on the version info for the kernel. >> The .symtab entry contains >> entry: 11727 >> st_name: _mod_metadata_kernel_version >> st_value: 0xdcafd4 >> st_size: 16 >> st_info: STT_OBJECT STB_LOCAL >> st_shndx: 22 >> which seems to be correct. However, looking at the version info, one = finds: >> readelf -x .data.rel.local /boot/kernel/kernel provides >> 0x00dcafc8 3454f8e9 00000000 00000000 00000001 4T.............. >> 0x00dcafd8 00000003 00000000 00000000 02000000 ................ >> which corresponds to >> {.md_version =3D 1, .md_type =3D 3, .md_data =3D NULL, .md_cval =3D = NULL} >> First of all, this information is NOT stored in the .data section as = it is in >> the case of power64, amd64, arm64, but in the .data.rel.local = section. >> Furthermore,md_data and md_cval are NULL, which should not be the = case. >> In addition, the set_modmetadata_set should contain pointers to the = module >> metadata, but it contains only NULL pointers, as can be checked with >> readelf -x set_modmetadata_set /boot/kernel/kernel >> Does anyone knows what is going wrong and why? >> Is it possible that >> https://svnweb.freebsd.org/base?view=3Drevision&revision=3D268055 >> is related to this issue? It only handles the 64-bit version. >> However, simply applying this also to __powerpc__ and recompiling >> the kernel didn't solve the issue. >=20 > Hi, >=20 > There is this thread with some more information: > https://lists.freebsd.org/pipermail/svn-src-all/2014-June/087354.html Thanks for the pointer! It seems that the problem discussed there affects the = compilation/linking process and I can still reproduce the issue with the gcc version we have in tree. Do you think this problem is related to the problem the the module information is not included correctly? Do you know anyone who has experience in this area? Best regards Michael >=20 > --HPS >=20 From owner-freebsd-ppc@freebsd.org Tue Jul 10 14:37:29 2018 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4266E102C84B for ; Tue, 10 Jul 2018 14:37:29 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from drew.franken.de (mail-n.franken.de [193.175.24.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.franken.de", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id D190A79C82; Tue, 10 Jul 2018 14:37:28 +0000 (UTC) (envelope-from tuexen@freebsd.org) Received: from [192.168.1.133] (p57BB4637.dip0.t-ipconnect.de [87.187.70.55]) (Authenticated sender: macmic) by mail-n.franken.de (Postfix) with ESMTPSA id 665A0721E280C; Tue, 10 Jul 2018 16:37:26 +0200 (CEST) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Subject: Re: Loading modules from /boot/loader.conf From: Michael Tuexen In-Reply-To: <20180710134948.GA2655@FreeBSD.org> Date: Tue, 10 Jul 2018 16:37:25 +0200 Cc: FreeBSD PowerPC ML Content-Transfer-Encoding: quoted-printable Message-Id: References: <6DB7ABD4-8C04-46B3-8C07-FC591FC16F71@freebsd.org> <20180626053314.GA30244@FreeBSD.org> <20180710123325.GA34541@FreeBSD.org> <20180710134948.GA2655@FreeBSD.org> To: Alexey Dokuchaev X-Mailer: Apple Mail (2.3445.9.1) X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=disabled version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail-n.franken.de X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2018 14:37:29 -0000 > On 10. Jul 2018, at 15:49, Alexey Dokuchaev wrote: >=20 > On Tue, Jul 10, 2018 at 03:11:37PM +0200, Michael Tuexen wrote: >>> On 10. Jul 2018, at 14:33, Alexey Dokuchaev = wrote: >>>=20 >>> On Tue, Jul 10, 2018 at 01:12:35PM +0200, Michael Tuexen wrote: >>>> can you run on your G4: >>>>=20 >>>> readelf -x set_modmetadata_set /boot/kernel/kernel >>>>=20 >>>> This should provide a list of non-NULL pointers. However, on my G4 = system >>>> this section only contains NULL pointers. >>>=20 >>> Mine is also all NULLs. >>=20 >> OK. You said that you can't reproduce the problem. >=20 > I meant that I didn't try yet because the box is used as a database = server > for our pet project at $work, and I didn't want to reboot it. I'll = try to > find a chance to do this though. >=20 >> So you are able to load a kernel module via /boot/loader.conf? >> If yes, which one? >=20 > I've put xhci_load=3D"YES" there and report upon the next reboot. Great! I tested it with my machine and it shows the problem: * xhci will not be loaded via /boot/loader.conf * xhci can be loaded via kldload after the system is up. Best regards Michael >=20 > ./danfe From owner-freebsd-ppc@freebsd.org Tue Jul 10 19:39:48 2018 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 107A8104A435 for ; Tue, 10 Jul 2018 19:39:48 +0000 (UTC) (envelope-from bacon4000@gmail.com) Received: from mail-it0-x242.google.com (mail-it0-x242.google.com [IPv6:2607:f8b0:4001:c0b::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 943D488721; Tue, 10 Jul 2018 19:39:47 +0000 (UTC) (envelope-from bacon4000@gmail.com) Received: by mail-it0-x242.google.com with SMTP id l16-v6so331585ita.0; Tue, 10 Jul 2018 12:39:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=C+3mEVW9KYmqKmv0Hzs2Z0WndiSkp6gBxuvWqq00dnY=; b=oUN1yr9YN7P7j+QcNL1Xtd8hM1UxbdOhkzP97BQjG0QUWrSxeEy9ZP8bFhXCC/uKlK bPbWkh3OEoa+SNoTpf571LulgOwMXN4X2OuAEKxG7JQXyVHeSumxkl0m7L3Zh9CCevT0 NlezWWP6OQGzN6X1P/kSBYs997Xvr9YtxQ1BHHRQA6TiOsGs9LttbW4Pug3/i//FFByb tOIrIa1cpGvkfF5QAYAVZAxDlPCXWZYe1S0r8itXXHJ/2en+wRUjG8s4lfXFoU9bPeXk Co3zMqO27ILkFatAZLt1mWVTMhoddVg6bARJAAaKvmqbCfhwaknxmC06dhvbJeh9zHS9 gy7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=C+3mEVW9KYmqKmv0Hzs2Z0WndiSkp6gBxuvWqq00dnY=; b=IWRbK9Mp2AIX4iApHh1lMzSfEBfNz5zgArYXKXmuO5CvPFEKDHohWxN3yZ4V4fV3Hc p63z2Ngyf0jeHopPQYDvD/h+Z1cJ+wERLaZVUI9seEW6oI3qE0gBoeOuPssZutZYMQjj G3VaF8Hfjt1a6kxRZkoUxLgPPynLFK6K1/zrogP7FxzoLK+/WRAxrfmjLv8DRO0YN8in pqEOsjz51ROpDUu7cv1xon3xJ2O67p9VlAcaAdV0LcIQ6oAFM7KJzUE5kFGpUPYQMvX4 ngi2aGjOaL/NS3XMukmj+yWWzk3H5N6tEAnWA+OzxGWSHueDcsB0z8if/DyKXVXQzm+a gyoA== X-Gm-Message-State: AOUpUlF3Lh8RbsndeImsXNftiWWgUJ17595HImhXYwPcQ21ikOXFKujR zotaWIQH63QccFrt3mgGKoSrSeOD X-Google-Smtp-Source: AAOMgpekYZGgoHv0ykQ+jJN4LSKSnfH7Pmc7CY9EXFkRy2ksl/Zp/B5Df/F5JzoOoseyfsq00YnNhg== X-Received: by 2002:a24:54c3:: with SMTP id t186-v6mr8058449ita.55.1531251586682; Tue, 10 Jul 2018 12:39:46 -0700 (PDT) Received: from manatee.acadix.biz (cpe-174-102-163-140.wi.res.rr.com. [174.102.163.140]) by smtp.gmail.com with ESMTPSA id v137-v6sm2884228ita.2.2018.07.10.12.39.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Jul 2018 12:39:46 -0700 (PDT) Subject: Re: QEMU To: Nathan Whitehorn , John Baldwin , freebsd-ppc@freebsd.org References: <0c2e8392-0444-094c-af61-ca14d4f3038e@gmail.com> <5e43417f-8797-c52f-363c-9670cd1f5947@freebsd.org> From: Jason Bacon Message-ID: <5852aefa-c2d0-dd95-574d-14538d3a9517@gmail.com> Date: Tue, 10 Jul 2018 14:39:45 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.9.0 MIME-Version: 1.0 In-Reply-To: <5e43417f-8797-c52f-363c-9670cd1f5947@freebsd.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2018 19:39:48 -0000 On 07/09/18 16:00, Nathan Whitehorn wrote: > > > On 07/09/18 13:39, Jason Bacon wrote: >> On 07/09/18 14:17, John Baldwin wrote: >>> On 7/9/18 11:55 AM, Jason Bacon wrote: >>>> Anyone running on qemu lately? >>>> >>>> I've tried following the "recipe": >>>> https://wiki.freebsd.org/QemuRecipes >>>> and tried using aqemu. >>>> >>>> 11.2-RELEASE hangs during boot from the ISO. >>>> >>>> 11.1 makes it to the install screen, but does not accept keyboard >>>> input. >>>> >>>> Hoping to fix ppc issues in some of the ports I maintain and I don't >>>> have any ppc hardware at the moment. >>> It's been a while since I tried those (I put the recipes up), and IIRC >>> I was only ever able to boot powerpc64 under qemu, never 32-bit. >>> >> Just noticed that the keyboard works during initial boot (I can hit >> enter to cancel the countdown after loading the kernel), but >> after successfully starting services and launching the installer, >> there is no response. >> >> "Scanning USB" shows a USB keyboard and mouse and "no console >> specified using screen & keyboard". >> >> Adding -usb and/or -device usb-kbd don't seem to help. >> >> How about PearPC? >> > > Maybe a USB problem? If you run with -nographic with > qemu-system-ppc64, it will work reliably. Other modes are less > well-tested. > -Nathan With -nographic, it hangs before loading the kernel: + qemu-system-ppc64 -nographic -cdrom Save/FreeBSD-11.2-RELEASE-powerpc-disc1.iso -drive 'file=freebsd-ppc.img,format=raw' -boot d SLOF ********************************************************************** QEMU Starting  Build Date = Mar  3 2017 13:29:19  FW Version = git-66d250ef0fd06bb8  Press "s" to enter Open Firmware. Populating /vdevice methods Populating /vdevice/vty@71000000 Populating /vdevice/nvram@71000001 Populating /vdevice/l-lan@71000002 Populating /vdevice/v-scsi@71000003        SCSI: Looking for devices           8000000000000000 DISK     : "QEMU     QEMU HARDDISK 2.5+"           8200000000000000 CD-ROM   : "QEMU     QEMU CD-ROM 2.5+" Populating /pci@800000020000000                      00 0000 (D) : 1234 1111    qemu vga                      00 0800 (D) : 1033 0194    serial bus [ usb-xhci ] No NVRAM common partition, re-initializing... Installing QEMU fb Scanning USB   XHCI: Initializing     USB Keyboard     USB mouse No console specified using screen & keyboard   Welcome to Open Firmware   Copyright (c) 2004, 2011 IBM Corporation All rights reserved.   This program and the accompanying materials are made available   under the terms of the BSD License available at   http://www.opensource.org/licenses/bsd-license.php Trying to load:  from: /vdevice/v-scsi@71000003/disk@8200000000000000 ...   Successfully loaded Trying to write privileged spr 25 (0x019) at 00000000008b03c4 The disk image was created with qemu-img create -f raw $diskimage 20g -- Earth is a beta site. From owner-freebsd-ppc@freebsd.org Tue Jul 10 20:26:00 2018 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id D12C8102830B for ; Tue, 10 Jul 2018 20:25:59 +0000 (UTC) (envelope-from bacon4000@gmail.com) Received: from mail-it0-x230.google.com (mail-it0-x230.google.com [IPv6:2607:f8b0:4001:c0b::230]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5CCA28A885; Tue, 10 Jul 2018 20:25:59 +0000 (UTC) (envelope-from bacon4000@gmail.com) Received: by mail-it0-x230.google.com with SMTP id a195-v6so530214itd.3; Tue, 10 Jul 2018 13:25:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:references:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=s8ERf5pfhf/YTPT8MdsejtxK/33yfDf1/loLs3CAxqM=; b=LLjDFO/OVy8Ag+P5uiMri03PIfQzBqunTLdrp5KhuR02noYUuKRdVsZQVuw8wyCxNA zhSgwOKFeCSLVTkm8y6pkUp9vGttny0dwEERncp/LkdiJeeLV3KK9IicKC/BsOmBWcTc m13l3ClHVHZ3i/PT5ZkhtPAtTQ98q2ERK7q1g4zmJjSbjckffPVzQHlBrxNj1XOSss/a nd4IaNf7m6HcagnONqSm3rE1myAB1k0y3tCqx/u5nSJ1S4PLLlc5GewTvDCssC6L3e/n q4y7T2P9D06YZoG1NAoc877c6fMZCTMlHWCEmqxwU5Uj596BYAwBlDk86KtzFU2EKlL2 6Opg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:references:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=s8ERf5pfhf/YTPT8MdsejtxK/33yfDf1/loLs3CAxqM=; b=A7uoxsSfBHZBcnVh5o2MrR7JReNoHCH7vC5WgDpvevEvgoUeRIGBkcKnq4o9DKsMhl hFVdomPyCaXVOdH+lgwVhjFWdK1MHG7SzV00KLyP7l8kGLS0KhgazNq3FmkyWzuhmMeP v5fY+8i/XrC5WpRR6l8Gq0fmPrubLgAqz3fB1mEiXttR4Nzi4KV2l0TX3mREMGglrdB3 E5jeQ27121BRllkbucW/8+ngIXUZSDia7MAe1Ct6WjIlFd3IfSZaN9yAVuiR5aaF6bKK Y3KJ6bcSUibXb0l/H7bvSTopISn1xhR6BCmgJqHzlPRaYgl0fFuwVYjmHUHd3Sce+LWy krEg== X-Gm-Message-State: APt69E2ckcrs5dn2B333P7ZkiHn5QFycyOJ3pruol2ypJGGy9ErQT64S QAW8SKhjdE2b+alIzTbCFn7vkEUt X-Google-Smtp-Source: AAOMgpdBNHuPBx3svxOixS92pzhdPO3m69fAGHvDJfUFXz1kbkrjmq7RhTYqkuGVA5g0Y/CHEZuABw== X-Received: by 2002:a02:8895:: with SMTP id n21-v6mr21983094jaj.21.1531254358321; Tue, 10 Jul 2018 13:25:58 -0700 (PDT) Received: from manatee.acadix.biz (cpe-174-102-163-140.wi.res.rr.com. [174.102.163.140]) by smtp.gmail.com with ESMTPSA id w79-v6sm9675350iod.43.2018.07.10.13.25.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 10 Jul 2018 13:25:57 -0700 (PDT) Subject: Re: QEMU From: Jason Bacon To: Nathan Whitehorn , John Baldwin , freebsd-ppc@freebsd.org References: <0c2e8392-0444-094c-af61-ca14d4f3038e@gmail.com> <5e43417f-8797-c52f-363c-9670cd1f5947@freebsd.org> <5852aefa-c2d0-dd95-574d-14538d3a9517@gmail.com> Message-ID: <3eec8fcb-d208-aca8-65d8-4dc779c92d24@gmail.com> Date: Tue, 10 Jul 2018 15:25:56 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.9.0 MIME-Version: 1.0 In-Reply-To: <5852aefa-c2d0-dd95-574d-14538d3a9517@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2018 20:26:00 -0000 On 07/10/18 14:39, Jason Bacon wrote: > On 07/09/18 16:00, Nathan Whitehorn wrote: >> >> >> On 07/09/18 13:39, Jason Bacon wrote: >>> On 07/09/18 14:17, John Baldwin wrote: >>>> On 7/9/18 11:55 AM, Jason Bacon wrote: >>>>> Anyone running on qemu lately? >>>>> >>>>> I've tried following the "recipe": >>>>> https://wiki.freebsd.org/QemuRecipes >>>>> and tried using aqemu. >>>>> >>>>> 11.2-RELEASE hangs during boot from the ISO. >>>>> >>>>> 11.1 makes it to the install screen, but does not accept keyboard >>>>> input. >>>>> >>>>> Hoping to fix ppc issues in some of the ports I maintain and I don't >>>>> have any ppc hardware at the moment. >>>> It's been a while since I tried those (I put the recipes up), and IIRC >>>> I was only ever able to boot powerpc64 under qemu, never 32-bit. >>>> >>> Just noticed that the keyboard works during initial boot (I can hit >>> enter to cancel the countdown after loading the kernel), but >>> after successfully starting services and launching the installer, >>> there is no response. >>> >>> "Scanning USB" shows a USB keyboard and mouse and "no console >>> specified using screen & keyboard". >>> >>> Adding -usb and/or -device usb-kbd don't seem to help. >>> >>> How about PearPC? >>> >> >> Maybe a USB problem? If you run with -nographic with >> qemu-system-ppc64, it will work reliably. Other modes are less >> well-tested. >> -Nathan > > With -nographic, it hangs before loading the kernel: > > + qemu-system-ppc64 -nographic -cdrom > Save/FreeBSD-11.2-RELEASE-powerpc-disc1.iso -drive > 'file=freebsd-ppc.img,format=raw' -boot d > > > SLOF > ********************************************************************** > QEMU Starting >  Build Date = Mar  3 2017 13:29:19 >  FW Version = git-66d250ef0fd06bb8 >  Press "s" to enter Open Firmware. > > Populating /vdevice methods > Populating /vdevice/vty@71000000 > Populating /vdevice/nvram@71000001 > Populating /vdevice/l-lan@71000002 > Populating /vdevice/v-scsi@71000003 >        SCSI: Looking for devices >           8000000000000000 DISK     : "QEMU     QEMU HARDDISK 2.5+" >           8200000000000000 CD-ROM   : "QEMU     QEMU CD-ROM 2.5+" > Populating /pci@800000020000000 >                      00 0000 (D) : 1234 1111    qemu vga >                      00 0800 (D) : 1033 0194    serial bus [ usb-xhci ] > No NVRAM common partition, re-initializing... > Installing QEMU fb > > > > Scanning USB >   XHCI: Initializing >     USB Keyboard >     USB mouse > No console specified using screen & keyboard > > > >   Welcome to Open Firmware > >   Copyright (c) 2004, 2011 IBM Corporation All rights reserved. >   This program and the accompanying materials are made available >   under the terms of the BSD License available at >   http://www.opensource.org/licenses/bsd-license.php > > > Trying to load:  from: /vdevice/v-scsi@71000003/disk@8200000000000000 > ...   Successfully loaded > Trying to write privileged spr 25 (0x019) at 00000000008b03c4 > > > The disk image was created with > > qemu-img create -f raw $diskimage 20g > Back to the graphic run with 11.1... If I let it sit a while, I see the following I/O warning which might explain the lack of keyboard response: + qemu-system-ppc64 -cdrom Save/FreeBSD-11.1-RELEASE-powerpc-powerpc64-disc1.iso -drive 'file=freebsd-ppc.img,format=raw' -boot d Fontconfig warning: "/usr/local/etc/fonts/local.conf", line 1093: saw number, expected matrix main-loop: WARNING: I/O thread spun for 1000 iterations qemu at this point is using very little cpu:   PID USERNAME    THR PRI NICE   SIZE    RES STATE   C   TIME WCPU COMMAND 93292 bacon         5  24    0   458M 54864K select  1  18:27 5.88% lumina-deskt 19406 bacon         4  20    0  1185M   259M select  0   6:25 3.15% qemu-system- -- Earth is a beta site. From owner-freebsd-ppc@freebsd.org Tue Jul 10 23:14:24 2018 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 73173103AF2E for ; Tue, 10 Jul 2018 23:14:24 +0000 (UTC) (envelope-from cam@neo-zeon.de) Received: from neo-zeon.de (neo-zeon.de [96.90.244.226]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.neo-zeon.de", Issuer "COMODO RSA Domain Validation Secure Server CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 027B6711D4 for ; Tue, 10 Jul 2018 23:14:23 +0000 (UTC) (envelope-from cam@neo-zeon.de) Received: from cberkenp-ld2.linkedin.biz ([216.52.21.5]) (authenticated bits=0) by neo-zeon.de (8.15.2/8.15.2) with ESMTPSA id w6ANCIU4053108 (version=TLSv1.2 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 10 Jul 2018 16:12:18 -0700 (PDT) (envelope-from cam@neo-zeon.de) To: freebsd-ppc@freebsd.org From: Cameron Berkenpas Subject: KVM working on Talos2/POWER9! Message-ID: Date: Tue, 10 Jul 2018 16:12:17 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2018 23:14:24 -0000 Hello, FreeBSD is running in KVM on the Talos II/POWER9 with some caveats. Before doing anything, you need to append "disable_radix=yes" to the Linux kernel command line and reboot. I am able to install it by manually running: qemu-system-ppc64 -enable-kvm -m 8192 -nographic -vga none -mem-prealloc -mem-path /dev/hugepages -cdrom FreeBSD-12.0-CURRENT-powerpc-powerpc64-20180709-r336134-disc1.iso -drive file=freebsd-ppc.qcow2,format=qcow2 -smp 2 Not the most pressing issue, but during the install, I learned the hard way that the GPT partition table format doesn't work. I was able to get it running with MBR (which is the default option anyway). I haven't tried any of the other options. With GPT, it fails with the same messages as found here: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=211599 I am then able to run the VM manually with the following: qemu-system-ppc64 -enable-kvm -m 8192 -nographic -vga none -mem-prealloc -mem-path /dev/hugepages -drive file=freebsd-ppc.qcow2,format=qcow2 -smp 2 I haven't tried earlier snapshots of 12.0-CURRENT or 11.2 since figuring out how to get it running yet. When attempting to use KVM via libvirt, FreeBSD begins to boot, and then is unable to find the filesystem to mount root. This happens when booting off of the install disc, as well as off of the hard disk image itself even after I successfully installed running kvm manually. Here I am booting off of the virtual hard disk: http://vasteel.neo-zeon.de/~hiryu/freebsd-power9.png Here is how libvirt tries to run this VM: /usr/bin/qemu-system-ppc64 -name guest=freebsd-ppc,debug-threads=on -S -object secret,id=masterKey0,format=raw,file=/var/lib/libvirt/qemu/domain-31-freebsd-ppc/master-key.aes -machine pseries-2.12,accel=kvm,usb=off,dump-guest-core=off -cpu host -m 4096 -mem-prealloc -mem-path /dev/hugepages/libvirt/qemu/31-freebsd-ppc -realtime mlock=off -smp 8,sockets=8,cores=1,threads=1 -uuid ffd4b906-7af7-48d4-8275-f990c97faaa4 -no-user-config -nodefaults -chardev socket,id=charmonitor,path=/var/lib/libvirt/qemu/domain-31-freebsd-ppc/monitor.sock,server,nowait -mon chardev=charmonitor,id=monitor,mode=control -rtc base=utc -no-shutdown -boot strict=on -device qemu-xhci,id=usb,bus=pci.0,addr=0x3 -device virtio-scsi-pci,id=scsi0,bus=pci.0,addr=0x2 -device ahci,id=sata0,bus=pci.0,addr=0x7 -drive file=/var/lib/libvirt/images/freebsd-ppc.qcow2,format=qcow2,if=none,id=drive-virtio-disk0 -device virtio-blk-pci,scsi=off,bus=pci.0,addr=0x4,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 -drive if=none,id=drive-scsi0-0-0-1,readonly=on -device scsi-cd,bus=scsi0.0,channel=0,scsi-id=0,lun=1,drive=drive-scsi0-0-0-1,id=scsi0-0-0-1 -netdev tap,fd=26,id=hostnet0,vhost=on,vhostfd=28 -device virtio-net-pci,netdev=hostnet0,id=net0,mac=52:54:00:83:34:14,bus=pci.0,addr=0x1 -chardev pty,id=charserial0 -device spapr-vty,chardev=charserial0,id=serial0,reg=0x30000000 -device usb-kbd,id=input0,bus=usb.0,port=1 -device usb-mouse,id=input1,bus=usb.0,port=2 -vnc 127.0.0.1:0 -device VGA,id=video0,vgamem_mb=16,bus=pci.0,addr=0x6 -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x5 -sandbox on,obsolete=deny,elevateprivileges=deny,spawn=deny,resourcecontrol=deny -msg timestamp=on I see a backtrace in dmesg that doesn't always seem occur. Pastebin appears to be currently down for me, so here's the full dmesg in case other details are helpful: Copyright (c) 1992-2018 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994         The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 12.0-CURRENT #0 r336134: Mon Jul  9 18:14:23 UTC 2018 root@releng3.nyi.freebsd.org:/usr/obj/usr/src/powerpc.powerpc64/sys/GENERIC64 powerpc gcc version 4.2.1 20070831 patched [FreeBSD] WARNING: WITNESS option enabled, expect reduced performance. VT: init without driver. cpu0: IBM POWER9 revision 2.2, 2234.00 MHz cpu0: Features dc007182 cpu0: Features2 eee00000 real memory  = 8544436224 (8148 MB) avail memory = 8249282560 (7867 MB) FreeBSD/SMP: Multiprocessor System Detected: 2 CPUs random: unblocking device. random: entropy device external interface kbd0 at kbdmux0 ofwbus0: on nexus0 xicp0: on ofwbus0 xicp0: Handling CPUs 0-15 vdevice0: on ofwbus0 vscsi0: irq 16781322 on vdevice0 vscsi0: Queue depth 22 commands llan0: irq 16781321 on vdevice0 llan0: Ethernet address: 00:12:34:56:00:00 uart0: irq 16781315 on vdevice0 pcib0: on ofwbus0 pci0: on pcib0 cpulist0: on ofwbus0 cpu0: on cpulist0 cpu1: on cpulist0 rtas0: on ofwbus0 rtas0: registered as a time-of-day clock, resolution 0.002000s Timecounter "timebase" frequency 512000000 Hz quality 0 Event timer "decrementer" frequency 512000000 Hz quality 1000 Timecounters tick every 1.000 msec llan0: link state changed to UP usb_needs_explore_all: no devclass cd0 at vscsi0 bus 0 scbus0 target 0 lun 8200 cd0: Removable CD-ROM SPC-3 SCSI device cd0: 150.000MB/s transfers cd0: Attempt to query device size failed: NOT READY, Medium not present da0 at vscsi0 bus 0 scbus0 target 0 lun 0 da0: Fixed Direct Access SPC-3 SCSI device da0: 150.000MB/s transfers da0: 32768MB (67108864 512 byte sectors) SMP: AP CPU #1 launched Trying to mount root from ufs:/dev/da0s2a [rw]... WARNING: WITNESS option enabled, expect reduced performance. lock order reversal:  1st 0xe000000000c8a3b8 bufwait (bufwait) @ /usr/src/sys/kern/vfs_bio.c:3916  2nd 0xc000000007521600 dirhash (dirhash) @ /usr/src/sys/ufs/ufs/ufs_dirhash.c:289 stack backtrace: #0 0xc0000000006c937c at .witness_debugger+0x90 #1 0xc0000000006cc650 at .witness_checkorder+0xa20 #2 0xc00000000064f870 at ._sx_xlock+0xbc #3 0xc000000000989f74 at .ufsdirhash_acquire+0x3c #4 0xc00000000098a6e4 at .ufsdirhash_add+0x30 #5 0xc00000000098e250 at .ufs_direnter+0x7e8 #6 0xc0000000009975ac at .ufs_rename+0xb5c #7 0xc000000000a49a88 at .VOP_RENAME_APV+0x164 #8 0xc0000000007553fc at .kern_renameat+0x3c0 #9 0xc0000000007555f4 at .sys_rename+0x2c #10 0xc000000000a2db70 at .trap+0x65c #11 0xc000000000a22824 at .powerpc_interrupt+0x29c lo0: link state changed to UP During shutdown, I saw another backtrace, this one seems to occur all the time or at least more frequently: All buffers synced. lock order reversal:  1st 0xc00000000747c9c8 ufs (ufs) @ /usr/src/sys/kern/vfs_mount.c:1343  2nd 0xc00000000747d248 devfs (devfs) @ /usr/src/sys/kern/vfs_subr.c:2572 stack backtrace: #0 0xc0000000006c937c at .witness_debugger+0x90 #1 0xc0000000006cc650 at .witness_checkorder+0xa20 #2 0xc0000000006179c8 at .lockmgr_lock_fast_path+0x1a0 #3 0xc00000000073407c at .vop_stdlock+0x30 #4 0xc000000000a4850c at .VOP_LOCK1_APV+0x158 #5 0xc00000000075cd98 at ._vn_lock+0xac #6 0xc00000000074d15c at .vget+0xac #7 0xc0000000004dfafc at .devfs_allocv+0x110 #8 0xc0000000004dcec0 at .devfs_root+0x54 #9 0xc00000000074e4c4 at .vflush+0x5e8 #10 0xc0000000004dcfd4 at .devfs_unmount+0x64 #11 0xc00000000073ea3c at .dounmount+0xaec #12 0xc000000000746570 at .unmount_or_warn+0x28 #13 0xc000000000746668 at .vfs_unmountall+0x88 #14 0xc000000000723b28 at .bufshutdown+0x308 #15 0xc000000000642ffc at .kern_reboot+0x2f0 #16 0xc000000000643de0 at .sys_reboot+0x454 #17 0xc000000000a2db70 at .trap+0x65c Hope this helps! -Cameron From owner-freebsd-ppc@freebsd.org Wed Jul 11 15:57:25 2018 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id ED840104A46E for ; Wed, 11 Jul 2018 15:57:24 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from mail.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 7E4A77881A; Wed, 11 Jul 2018 15:57:24 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from John-Baldwins-MacBook-Pro-2.local (ralph.baldwin.cx [66.234.199.215]) by mail.baldwin.cx (Postfix) with ESMTPSA id 8C52F10AFD2; Wed, 11 Jul 2018 11:57:22 -0400 (EDT) Subject: Re: QEMU To: Jason Bacon , Nathan Whitehorn , freebsd-ppc@freebsd.org References: <0c2e8392-0444-094c-af61-ca14d4f3038e@gmail.com> <5e43417f-8797-c52f-363c-9670cd1f5947@freebsd.org> <5852aefa-c2d0-dd95-574d-14538d3a9517@gmail.com> <3eec8fcb-d208-aca8-65d8-4dc779c92d24@gmail.com> From: John Baldwin Message-ID: Date: Wed, 11 Jul 2018 08:57:21 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <3eec8fcb-d208-aca8-65d8-4dc779c92d24@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.4.3 (mail.baldwin.cx); Wed, 11 Jul 2018 11:57:23 -0400 (EDT) X-Virus-Scanned: clamav-milter 0.99.2 at mail.baldwin.cx X-Virus-Status: Clean X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jul 2018 15:57:25 -0000 On 7/10/18 1:25 PM, Jason Bacon wrote: > On 07/10/18 14:39, Jason Bacon wrote: >> On 07/09/18 16:00, Nathan Whitehorn wrote: >>> >>> >>> On 07/09/18 13:39, Jason Bacon wrote: >>>> On 07/09/18 14:17, John Baldwin wrote: >>>>> On 7/9/18 11:55 AM, Jason Bacon wrote: >>>>>> Anyone running on qemu lately? >>>>>> >>>>>> I've tried following the "recipe": >>>>>> https://wiki.freebsd.org/QemuRecipes >>>>>> and tried using aqemu. >>>>>> >>>>>> 11.2-RELEASE hangs during boot from the ISO. >>>>>> >>>>>> 11.1 makes it to the install screen, but does not accept keyboard >>>>>> input. >>>>>> >>>>>> Hoping to fix ppc issues in some of the ports I maintain and I don't >>>>>> have any ppc hardware at the moment. >>>>> It's been a while since I tried those (I put the recipes up), and IIRC >>>>> I was only ever able to boot powerpc64 under qemu, never 32-bit. >>>>> >>>> Just noticed that the keyboard works during initial boot (I can hit >>>> enter to cancel the countdown after loading the kernel), but >>>> after successfully starting services and launching the installer, >>>> there is no response. >>>> >>>> "Scanning USB" shows a USB keyboard and mouse and "no console >>>> specified using screen & keyboard". >>>> >>>> Adding -usb and/or -device usb-kbd don't seem to help. >>>> >>>> How about PearPC? >>>> >>> >>> Maybe a USB problem? If you run with -nographic with >>> qemu-system-ppc64, it will work reliably. Other modes are less >>> well-tested. >>> -Nathan >> >> With -nographic, it hangs before loading the kernel: >> >> + qemu-system-ppc64 -nographic -cdrom >> Save/FreeBSD-11.2-RELEASE-powerpc-disc1.iso -drive >> 'file=freebsd-ppc.img,format=raw' -boot d >> >> >> SLOF >> ********************************************************************** >> QEMU Starting >>  Build Date = Mar  3 2017 13:29:19 >>  FW Version = git-66d250ef0fd06bb8 >>  Press "s" to enter Open Firmware. >> >> Populating /vdevice methods >> Populating /vdevice/vty@71000000 >> Populating /vdevice/nvram@71000001 >> Populating /vdevice/l-lan@71000002 >> Populating /vdevice/v-scsi@71000003 >>        SCSI: Looking for devices >>           8000000000000000 DISK     : "QEMU     QEMU HARDDISK 2.5+" >>           8200000000000000 CD-ROM   : "QEMU     QEMU CD-ROM 2.5+" >> Populating /pci@800000020000000 >>                      00 0000 (D) : 1234 1111    qemu vga >>                      00 0800 (D) : 1033 0194    serial bus [ usb-xhci ] >> No NVRAM common partition, re-initializing... >> Installing QEMU fb >> >> >> >> Scanning USB >>   XHCI: Initializing >>     USB Keyboard >>     USB mouse >> No console specified using screen & keyboard >> >> >> >>   Welcome to Open Firmware >> >>   Copyright (c) 2004, 2011 IBM Corporation All rights reserved. >>   This program and the accompanying materials are made available >>   under the terms of the BSD License available at >>   http://www.opensource.org/licenses/bsd-license.php >> >> >> Trying to load:  from: /vdevice/v-scsi@71000003/disk@8200000000000000 >> ...   Successfully loaded >> Trying to write privileged spr 25 (0x019) at 00000000008b03c4 >> >> >> The disk image was created with >> >> qemu-img create -f raw $diskimage 20g >> > Back to the graphic run with 11.1... > > If I let it sit a while, I see the following I/O warning which might > explain the lack of keyboard response: > > + qemu-system-ppc64 -cdrom > Save/FreeBSD-11.1-RELEASE-powerpc-powerpc64-disc1.iso -drive > 'file=freebsd-ppc.img,format=raw' -boot d > Fontconfig warning: "/usr/local/etc/fonts/local.conf", line 1093: saw > number, expected matrix > main-loop: WARNING: I/O thread spun for 1000 iterations I've seen this warning lots of times when using QEMU for mips and the keyboard does work fine there via -nographic. On mips I see it when I am doing disk-intensive work (e.g. a buildworld) in the virtual machine. -- John Baldwin From owner-freebsd-ppc@freebsd.org Wed Jul 11 17:40:08 2018 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 96BB4102DBF4 for ; Wed, 11 Jul 2018 17:40:08 +0000 (UTC) (envelope-from ctuffli@gmail.com) Received: from mail-oi0-f47.google.com (mail-oi0-f47.google.com [209.85.218.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 2E9E17D94B for ; Wed, 11 Jul 2018 17:40:08 +0000 (UTC) (envelope-from ctuffli@gmail.com) Received: by mail-oi0-f47.google.com with SMTP id v8-v6so50782138oie.5 for ; Wed, 11 Jul 2018 10:40:08 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=DuQMAxJk2WE3XCq8jFHoIjx2lmQNjwUL21QXDG3Li2c=; b=lnR6/8ZoRvPNVZajaavRfabh79BxIifBF8WxwbevNz2bEQoHoL2pxxMjWqi6msI2/Y IZ+3WcAXpkk1SksoxD5cNg7i396bQX80npvA8y+awhBtWLNuBi7XCGA1Qx9aocj29IWJ E/I4FDL0Oq+wpZem0sjImF1T0awmsvzLRLCpMlRRttsqlK0HblKGXOwgztOm76KZWBEf vXNRKKkl5j525JTGTAy7C1WE2DwjkelhN2+/ZexhnP1+eynQRJeZsh2WmwADswOdf3b+ rm2HFdH0f558RWO25TEYXpZeyLZruTF6DlOzwHiLPb/wMKpJMDluqImNdKu5sLNusjyv OUBw== X-Gm-Message-State: AOUpUlFw5wdlBv47JifTu4MJC1FuDaequjw7u+RK1NHuVh+XGsxAUsFO 8Y2VPEVnUk1dVt9y7zXBRYBVMfBV X-Google-Smtp-Source: AAOMgpcl7K0VzoI3e559NbnoS5Q2E9fcEDqsiobKoi7MrQlYvfvAkwdXu4Wpi5oWhiiiqOIkqkjPrQ== X-Received: by 2002:aca:6087:: with SMTP id u129-v6mr30072127oib.99.1531321302142; Wed, 11 Jul 2018 08:01:42 -0700 (PDT) Received: from mail-oi0-f44.google.com (mail-oi0-f44.google.com. [209.85.218.44]) by smtp.gmail.com with ESMTPSA id m3-v6sm13363436oif.26.2018.07.11.08.01.41 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Jul 2018 08:01:41 -0700 (PDT) Received: by mail-oi0-f44.google.com with SMTP id y207-v6so49800112oie.13 for ; Wed, 11 Jul 2018 08:01:41 -0700 (PDT) X-Received: by 2002:aca:edc1:: with SMTP id l184-v6mr8150371oih.65.1531321301195; Wed, 11 Jul 2018 08:01:41 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a9d:a09:0:0:0:0:0 with HTTP; Wed, 11 Jul 2018 08:01:40 -0700 (PDT) From: Chuck Tuffli Date: Wed, 11 Jul 2018 08:01:40 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: QEMU To: freebsd-ppc@freebsd.org Content-Type: text/plain; charset="UTF-8" X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jul 2018 17:40:08 -0000 I'm seeing similar failures trying to run the ppc64 images under qemu. For me, the boot seemingly hangs here (full log [1]): Booting [/boot/kernel/kernel]... Kernel entry at 0x1024e0 ... KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2018 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 12.0-CURRENT #0 r336134: Mon Jul 9 18:14:23 UTC 2018 root@releng3.nyi.freebsd.org:/usr/obj/usr/src/powerpc.powerpc64/sys/GENERIC64 powerpc gcc version 4.2.1 20070831 patched [FreeBSD] WARNING: WITNESS option enabled, expect reduced performance. WARNING: Running on a broken hypervisor that does not support mandatory H_CLEAR_MOD and H_CLEAR_REF hypercalls. Performance will be suboptimal. VT: init without driver. cpu0: IBM POWER8 revision 2.0, 1000.00 MHz cpu0: Features dc007182 cpu0: Features2 ef000000 real memory = 6396997632 (6100 MB) avail memory = 6158659584 (5873 MB) ... cpu0: on cpulist0 rtas0: on ofwbus0 rtas0: registered as a time-of-day clock, resolution 0.002000s Timecounter "timebase" frequency 512000000 Hz quality 0 Event timer "decrementer" frequency 512000000 Hz quality 1000 Timecounters tick every 1.000 msec This is running qemu 2.12.50 from git with the following command line: ppc64-softmmu/qemu-system-ppc64 -m 6G \ -drive file=/usr/home/ctuffli/vms/bsdppc/freebsd-12.qcow2,format=qcow2 \ -drive id=swap,file=/usr/home/ctuffli/vms/bsd/swap.raw,format=raw \ -drive media=cdrom,file=/usr/home/ctuffli/vms/bsdppc/FreeBSD-12.0-CURRENT-powerpc-powerpc64-20180709-r336134-bootonly.iso,readonly \ -drive id=n0,if=none,file=/usr/home/ctuffli/vms/ogt/ns0.img,format=raw \ -device nvme,drive=n0,serial=bada55 \ -netdev tap,id=tap1,br=bridge0,script=/usr/home/ctuffli/dev/qemu.git/qemu-ifup,downscript=/usr/home/ctuffli/dev/qemu.git/qemu-ifdown \ -device e1000,netdev=tap1 \ -nographic -vga none -mem-prealloc -boot d Any thoughts? TIA --chuck [1] https://pastebin.com/iscPCSCi From owner-freebsd-ppc@freebsd.org Wed Jul 11 18:14:47 2018 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 75E211030F90 for ; Wed, 11 Jul 2018 18:14:47 +0000 (UTC) (envelope-from bacon4000@gmail.com) Received: from mail-io0-x241.google.com (mail-io0-x241.google.com [IPv6:2607:f8b0:4001:c06::241]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id F06DD7F3FF; Wed, 11 Jul 2018 18:14:46 +0000 (UTC) (envelope-from bacon4000@gmail.com) Received: by mail-io0-x241.google.com with SMTP id r24-v6so24942079ioh.9; Wed, 11 Jul 2018 11:14:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding:content-language; bh=uxOqqOY26Z7W+LAweMmGNkPIZOiEXm9B/AblBP/7ZJQ=; b=YFw3xQ31wF6mJI+NkaCEO9qwaOEcOjdpNCAiGO3v4s6QljpVCC3TpJgF35VZEMuGYk NTwiQSuvh+Jr+vQDmPW3Wc5fuj6B+/M2aB8I+x2IMY0PHDhFEnMM82863T6T9nrC9Gnz TyG9IZpiAeYcGgiCtcIIF+FgCeNsO8DecZQ6le1Gg4SvtAFaT95fCU92VYQJBTGECCo2 B6omPKmc4hK+NQbjG8nGxMYsQgCT4cmV5d6UmYOcv/AfMoIllp6DjD1S+YnYgFem8Wk+ FR2ewtVd1S1fW5Rx5S9WRrIU85ElZiktdNUHxT1YYCF/zO5g5ju8xfOgHX8aBKk7kbPd Ne8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=uxOqqOY26Z7W+LAweMmGNkPIZOiEXm9B/AblBP/7ZJQ=; b=unJXIeMS7mCaYInrS06vZCroDywRnhNcw0h5ttksslu5fF/uk1Fr5yIqtJPkGrSpLS fbVc8Bn3pcGp7lckWlmcXouZ8ldFfimDqylS77tN+Nz6dHUvXRIcYBGkLn2LQhzALImk eucP2Wu5DvX0VduuKhUbYB3lHUy/Hv1ncpW5O539NHllVZ50MMTmsy76dnr7MvsZTpIq c70XWySWYI2kz6v/vi4RAJS4q3gNkQcJU6P/I7QcWtcBxgI/icA0R65c9b6CWOPOrFoV gp+y8PNDno0H96uiD/fULzTaGA9IaKJGUl1uY0LGipMSeWxOMo0mhHC9hkc6drKTtLz7 UXQQ== X-Gm-Message-State: AOUpUlHkEHPUNUjEdddADX382QyHeA2eSZy/CUIbtwue5KDiOBPRZqk8 8Cy93EXV16HmAxJBR8r1WcnjFSCm X-Google-Smtp-Source: AAOMgpfP1U8X3XPiWwstiJZ6bh9CIBYmTW8NSO9IXkSiT6WEc6uGrROrDGY/QYuRt4UaktMrI5ygIQ== X-Received: by 2002:a6b:c948:: with SMTP id z69-v6mr278475iof.531.1531332885945; Wed, 11 Jul 2018 11:14:45 -0700 (PDT) Received: from imacbsd.acadix.biz ([2605:a000:bc45:5f00:216:cbff:feb9:145]) by smtp.gmail.com with ESMTPSA id f1-v6sm7216741iob.47.2018.07.11.11.14.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Jul 2018 11:14:45 -0700 (PDT) Subject: Re: QEMU To: Chuck Tuffli , freebsd-ppc@freebsd.org References: From: Jason Bacon Message-ID: <5f291124-612f-6d10-5012-a8701b1cf49e@gmail.com> Date: Wed, 11 Jul 2018 13:14:44 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.9.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jul 2018 18:14:47 -0000 I just heard back from the qemu maintainer.  He's going to upgrade qemu to the latest release and try booting FreeBSD-ppc. On 07/11/18 10:01, Chuck Tuffli wrote: > I'm seeing similar failures trying to run the ppc64 images under qemu. > For me, the boot seemingly hangs here (full log [1]): > Booting [/boot/kernel/kernel]... > Kernel entry at 0x1024e0 ... > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2018 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD is a registered trademark of The FreeBSD Foundation. > FreeBSD 12.0-CURRENT #0 r336134: Mon Jul 9 18:14:23 UTC 2018 > root@releng3.nyi.freebsd.org:/usr/obj/usr/src/powerpc.powerpc64/sys/GENERIC64 > powerpc > gcc version 4.2.1 20070831 patched [FreeBSD] > WARNING: WITNESS option enabled, expect reduced performance. > WARNING: Running on a broken hypervisor that does not support > mandatory H_CLEAR_MOD and H_CLEAR_REF hypercalls. Performance will be > suboptimal. > VT: init without driver. > cpu0: IBM POWER8 revision 2.0, 1000.00 MHz > cpu0: Features dc007182 > cpu0: Features2 ef000000 > real memory = 6396997632 (6100 MB) > avail memory = 6158659584 (5873 MB) > ... > cpu0: on cpulist0 > rtas0: on ofwbus0 > rtas0: registered as a time-of-day clock, resolution 0.002000s > Timecounter "timebase" frequency 512000000 Hz quality 0 > Event timer "decrementer" frequency 512000000 Hz quality 1000 > Timecounters tick every 1.000 msec > > > This is running qemu 2.12.50 from git with the following command line: > > ppc64-softmmu/qemu-system-ppc64 -m 6G \ > -drive file=/usr/home/ctuffli/vms/bsdppc/freebsd-12.qcow2,format=qcow2 \ > -drive id=swap,file=/usr/home/ctuffli/vms/bsd/swap.raw,format=raw \ > -drive media=cdrom,file=/usr/home/ctuffli/vms/bsdppc/FreeBSD-12.0-CURRENT-powerpc-powerpc64-20180709-r336134-bootonly.iso,readonly > \ > -drive id=n0,if=none,file=/usr/home/ctuffli/vms/ogt/ns0.img,format=raw \ > -device nvme,drive=n0,serial=bada55 \ > -netdev tap,id=tap1,br=bridge0,script=/usr/home/ctuffli/dev/qemu.git/qemu-ifup,downscript=/usr/home/ctuffli/dev/qemu.git/qemu-ifdown > \ > -device e1000,netdev=tap1 \ > -nographic -vga none -mem-prealloc -boot d > > Any thoughts? TIA > > --chuck > > [1] https://pastebin.com/iscPCSCi > _______________________________________________ > freebsd-ppc@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-ppc > To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org" -- Earth is a beta site. From owner-freebsd-ppc@freebsd.org Wed Jul 11 18:18:52 2018 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EDFE31031600 for ; Wed, 11 Jul 2018 18:18:51 +0000 (UTC) (envelope-from bacon4000@gmail.com) Received: from mail-io0-x235.google.com (mail-io0-x235.google.com [IPv6:2607:f8b0:4001:c06::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 82C7D7F559 for ; Wed, 11 Jul 2018 18:18:51 +0000 (UTC) (envelope-from bacon4000@gmail.com) Received: by mail-io0-x235.google.com with SMTP id z20-v6so24973715iol.0 for ; Wed, 11 Jul 2018 11:18:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:references:cc:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=JDcmzykmaztVVLp+nxkqibv13ZyVpji2ZaXDOGBJtZk=; b=mPqB/Mn3RBYWSMLKc0chZ6Fee++hTKSTC3/p7lauYooc0OWP/F8YFu9Xqc4wIv7uay gYu4SYHqgWou8huB0BVKxTuiqzN82Obks9yZav9Dp8Hopeood9iI3v1MZ9kRI2ERyfTM sLoKWp7V8/fg5HbBURIFqAesqEPelI0UPS9auiyZtZOc+EZmI/owVBZxeeeZhZPKIJNU F8OFYd+2ItAq9FttOxLVO42MILWB5Bp/gC8WUCpJ5DpC430BcdVuKrkLGEbx2YCPGTK3 7VHQoGyyuRvGz0/XHBJ+RHbPtepe0UBltnghDAVSTwFaacTmUPG0wRpmcZHXcaumu+vO bEkg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:references:cc:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=JDcmzykmaztVVLp+nxkqibv13ZyVpji2ZaXDOGBJtZk=; b=A704eu2M8WYEriLhATuesscEyZrxglTPMV8vuhP/1DR60qyr5v897husd0j6hJzPLl aCi6N0XTUtbTfCZqPY2PfLduRXsvovpbQ49b3BGvg3/Bn99U17PXr/mf2FpOXgxEzngf jt/D0gJLhkH5dyaSlMIxGam9ZQGEdN47oZkiGAVbn9YcfYkWbKbgZDDCY7aX8+jcpquv 23z8wge01AUA7LrJkNM8MRw7SpFYE9e70X1NGx81GEIFNhBOuQKddy1z0/smWkThOW4i DbraUdUcnCtFW160oalL5ZBVAfAHjtWrgT+wXe7mG9RW6S0o2OdoBA88hGOPUStEuunv 0lqQ== X-Gm-Message-State: AOUpUlGhsppqiUZ+75u1stRDQhE2IHu1nOaScpkjzKJWJwxGAmAVTTcL fujd9H+ukL6wgqu1S90ZSwRaktnK X-Google-Smtp-Source: AAOMgpeSAVCMk2h7VaqtmXC7KwL4JlIpVRmnKSHGPnZ7sBSwgQlkaoXeblMOMgXWjQD0V91D4eKPSA== X-Received: by 2002:a6b:a708:: with SMTP id q8-v6mr312403ioe.624.1531333130893; Wed, 11 Jul 2018 11:18:50 -0700 (PDT) Received: from imacbsd.acadix.biz ([2605:a000:bc45:5f00:216:cbff:feb9:145]) by smtp.gmail.com with ESMTPSA id i23-v6sm4814538iog.74.2018.07.11.11.18.50 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 11 Jul 2018 11:18:50 -0700 (PDT) Subject: Re: FreeBSD-PPC64 From: Jason Bacon To: Muhammad Moinur Rahman References: <92089c45-00dc-aa57-6a40-fed0eff24d1b@gmail.com> <760b1f52-08d2-0f40-c186-81d72c9f6ab5@gmail.com> Cc: "freebsd-ppc@freebsd.org" Message-ID: <2893b390-a3c6-2fe8-8a33-05a79fcd0e39@gmail.com> Date: Wed, 11 Jul 2018 13:18:49 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.9.0 MIME-Version: 1.0 In-Reply-To: <760b1f52-08d2-0f40-c186-81d72c9f6ab5@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Jul 2018 18:18:52 -0000 Are you on the freebsd-ppc mailing list?  If not, I'll forward your updates there. Cheers,     Jason On 07/10/18 17:45, Jason Bacon wrote: > > Cool, thanks much.  The current qemu would not build for me on 11.1, > BTW.  May be a recent breakage since the binary package is still > available. > > On 07/10/18 16:36, Muhammad Moinur Rahman wrote: >> Hi, >> I had been afk due to some personal issues. Am back and started >> rebuilding my poudriere host. Am working on updating my outdated >> ports. Lets c if the issue can be resolved with latest qemu. >> >> Kind regards, >> @bofh >> >> On Wed, Jul 11, 2018 at 01:25 Jason Bacon > > wrote: >> >> >>     Have you tried booting a recent freebsd-ppc64 under qemu? >> >>     It's hanging for me every time: >> >>     qemu-system-ppc64 -cdrom Save/FreeBSD-11.1-RELEASE-powerpc-disc1.iso >>     -drive 'file=freebsd-ppc.img,format=raw' -boot d >>     Trying to write invalid spr 540 (0x21c) at 000000000087e948 >>     Trying to write invalid spr 542 (0x21e) at 000000000087e94c >>     Trying to write privileged spr 25 (0x019) at 000000000087a4dc >> >>     Last thing on the qemu console is >> >>     Booting [/boot/kernel/kernel]... >>     Kernel entry at 0x1000e0 >> >>     Thanks, >> >>          Jason >> >>     --     Earth is a beta site. >> > > -- Earth is a beta site. From owner-freebsd-ppc@freebsd.org Thu Jul 12 15:09:37 2018 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 73E061042F9C for ; Thu, 12 Jul 2018 15:09:37 +0000 (UTC) (envelope-from bacon4000@gmail.com) Received: from mail-io0-x244.google.com (mail-io0-x244.google.com [IPv6:2607:f8b0:4001:c06::244]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 02C1E964E3 for ; Thu, 12 Jul 2018 15:09:37 +0000 (UTC) (envelope-from bacon4000@gmail.com) Received: by mail-io0-x244.google.com with SMTP id k3-v6so28526373iog.3 for ; Thu, 12 Jul 2018 08:09:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:references:cc:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=fbugYV9ixxA1Sd9TvdVv0reJ5YUPD218cGE1RyUWa0A=; b=FeR/2AyQbv4Cw7YMw7lDizEXJqpGou+ZPgxeptR7a3cbUiEe5fNLYPVqbxI5gvTfQ0 FC87O2LkLoUTT7XyeG7IqYkRPLFyp4XsxCUGv9lObdsJR8wWSShxHDcaoroh6hVVf77O j9JmE1dVHM7YDt224+cTLr4FFQ+R/zI3eWpaNbsqjhuKjrJOwpsh5RHVBd07EPpmg9u+ 8rc9hWNIgV/a/DJTyUGeimgPyKI23vOubMD9sHtv5s4g07qjRvByFOSAk00cjRl33PGN pNEDDVomUwSQMxBml75Odtc/MHOrZ/+y4yKJoecKJjsaphjDUgyMEHylHCtyUTOGKjdD UuFA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:references:cc:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=fbugYV9ixxA1Sd9TvdVv0reJ5YUPD218cGE1RyUWa0A=; b=VIGK6yLEITPKnSA9hl6fBwp8nOFtLouhkgJ1AjTc75Z3g0RxcJqZhVnJeQZuqsVgiE b/x272W5bsI+1UIN0mZwlOF0cqFdyb3jTSYuJ29Cr/n7iuyyNL1E5cW91s3b50OFvEkm yHjUYDsun3abRHki9iIwPkTyw176ay2H/MmXeza7u/wSEsuFGswvu0E9wTgFrxt7MOHd qgfJY+GUdC3ieEklnHA3ZToUKHHtUFjsVISN2Qc/cziCeXmEnkkQBv8J3BBxJg3V9002 7jfigY0rA8s78CaAs6XXCPmvJWkteEMVcahhw+qCndmoI1DrkFUiQvqn8M657wmQ7Yhx lEww== X-Gm-Message-State: AOUpUlHiStjWXiXvNGiUG97xzB7TSQueazbTDtI2wbRXoLWKFLshf5v2 aFbhiL2Ccr+yNZl2IKeFIMQ= X-Google-Smtp-Source: AAOMgpfbyJIk4Rz4bpt9+jiQk3W3rKS4vt0HhOw6FrW0NsKxYOO+jqF6n85JYkjundkoe79DvBwq0g== X-Received: by 2002:a6b:1c07:: with SMTP id c7-v6mr29593169ioc.298.1531408176293; Thu, 12 Jul 2018 08:09:36 -0700 (PDT) Received: from imacbsd.acadix.biz ([2605:a000:bc45:5f00:216:cbff:feb9:145]) by smtp.gmail.com with ESMTPSA id r20-v6sm6481895iog.85.2018.07.12.08.09.35 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Jul 2018 08:09:35 -0700 (PDT) Subject: Re: QEMU From: Jason Bacon To: freebsd-ppc@freebsd.org References: <5f291124-612f-6d10-5012-a8701b1cf49e@gmail.com> Cc: Muhammad Moinur Rahman Message-ID: <5302f073-b51b-c92f-ada2-f7123d27fa3d@gmail.com> Date: Thu, 12 Jul 2018 10:09:34 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.9.0 MIME-Version: 1.0 In-Reply-To: <5f291124-612f-6d10-5012-a8701b1cf49e@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jul 2018 15:09:37 -0000 FYI, I get the exact same behavior under qemu 2.8.1 on Debian. So now we have similar symptoms in qemu 2.8.1, 2.9, and 2.12.50 on FreeBSD and Linux hosts. Seems to point toward an issue between the FreeBSD guest and qemu keyboard interface. I'd love to see this fixed so port maintainers like me have an easy way to fix ppc-specific issues. Straight emulation like this is probably too sluggish for many uses, but it's more than adequate for testing port builds on decent host hardware. Cheers,     JB On 07/11/18 13:14, Jason Bacon wrote: > > I just heard back from the qemu maintainer.  He's going to upgrade > qemu to the latest release and try booting > FreeBSD-ppc. > > On 07/11/18 10:01, Chuck Tuffli wrote: >> I'm seeing similar failures trying to run the ppc64 images under qemu. >> For me, the boot seemingly hangs here (full log [1]): >> Booting [/boot/kernel/kernel]... >> Kernel entry at 0x1024e0 ... >> KDB: debugger backends: ddb >> KDB: current backend: ddb >> Copyright (c) 1992-2018 The FreeBSD Project. >> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 >>          The Regents of the University of California. All rights >> reserved. >> FreeBSD is a registered trademark of The FreeBSD Foundation. >> FreeBSD 12.0-CURRENT #0 r336134: Mon Jul  9 18:14:23 UTC 2018 >> root@releng3.nyi.freebsd.org:/usr/obj/usr/src/powerpc.powerpc64/sys/GENERIC64 >> powerpc >> gcc version 4.2.1 20070831 patched [FreeBSD] >> WARNING: WITNESS option enabled, expect reduced performance. >> WARNING: Running on a broken hypervisor that does not support >> mandatory H_CLEAR_MOD and H_CLEAR_REF hypercalls. Performance will be >> suboptimal. >> VT: init without driver. >> cpu0: IBM POWER8 revision 2.0, 1000.00 MHz >> cpu0: Features >> dc007182 >> cpu0: Features2 ef000000 >> real memory  = 6396997632 (6100 MB) >> avail memory = 6158659584 (5873 MB) >> ... >> cpu0: on cpulist0 >> rtas0: on ofwbus0 >> rtas0: registered as a time-of-day clock, resolution 0.002000s >> Timecounter "timebase" frequency 512000000 Hz quality 0 >> Event timer "decrementer" frequency 512000000 Hz quality 1000 >> Timecounters tick every 1.000 msec >> >> >> This is running qemu 2.12.50 from git with the following command  line: >> >> ppc64-softmmu/qemu-system-ppc64 -m 6G \ >>      -drive >> file=/usr/home/ctuffli/vms/bsdppc/freebsd-12.qcow2,format=qcow2 \ >>      -drive id=swap,file=/usr/home/ctuffli/vms/bsd/swap.raw,format=raw \ >>      -drive >> media=cdrom,file=/usr/home/ctuffli/vms/bsdppc/FreeBSD-12.0-CURRENT-powerpc-powerpc64-20180709-r336134-bootonly.iso,readonly >> \ >>      -drive >> id=n0,if=none,file=/usr/home/ctuffli/vms/ogt/ns0.img,format=raw \ >>      -device nvme,drive=n0,serial=bada55 \ >>      -netdev >> tap,id=tap1,br=bridge0,script=/usr/home/ctuffli/dev/qemu.git/qemu-ifup,downscript=/usr/home/ctuffli/dev/qemu.git/qemu-ifdown >> \ >>      -device e1000,netdev=tap1 \ >>      -nographic -vga none -mem-prealloc -boot d >> >> Any thoughts? TIA >> >> --chuck >> >> [1] https://pastebin.com/iscPCSCi >> _______________________________________________ >> freebsd-ppc@freebsd.org mailing list >> https://lists.freebsd.org/mailman/listinfo/freebsd-ppc >> To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org" > > -- Earth is a beta site. From owner-freebsd-ppc@freebsd.org Thu Jul 12 17:42:00 2018 Return-Path: Delivered-To: freebsd-ppc@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A2263102BA23 for ; Thu, 12 Jul 2018 17:42:00 +0000 (UTC) (envelope-from bacon4000@gmail.com) Received: from mail-it0-x243.google.com (mail-it0-x243.google.com [IPv6:2607:f8b0:4001:c0b::243]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 32E2275375 for ; Thu, 12 Jul 2018 17:42:00 +0000 (UTC) (envelope-from bacon4000@gmail.com) Received: by mail-it0-x243.google.com with SMTP id p4-v6so7980023itf.2 for ; Thu, 12 Jul 2018 10:42:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:from:to:cc:references:message-id:date:user-agent :mime-version:in-reply-to:content-language; bh=tjTl18QH9fdnCZL1H3CLzWmzgCzKnq4IlwR6QS7xXiI=; b=N8mAZtl8jsoep0g3kdmOizCFBHFLc4/LfEUEVcuEKt2gq3Otie1pOOeXG28IGPDW0y toD6V5gSDcs0sLg6S0cqSsv6kjyYs3xNrtD7yXC1WeYLmrLNcjasec8eW0H6eGJMywnJ c8TCzq2TL3AY4vxDqkBhdZu8Hc6vJR9pQmdfNbtCZj0yqwoerkOYwoFiZPqNAOLCCCw3 F/fcUqH7sHIA/QKK+TQByWK22y9sqOaWd2uox+sCDSyyJ6yy/4fVwHDkjGtkImeGm8fI gj43ldpMkKMpsty9OdlhIAa8/RPjVkf6gQWyxEG+OjyUZDIcPTZjIJhXGrnYeDOxLG0x z6rQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:from:to:cc:references:message-id:date :user-agent:mime-version:in-reply-to:content-language; bh=tjTl18QH9fdnCZL1H3CLzWmzgCzKnq4IlwR6QS7xXiI=; b=EwMQEl7xqRsSDlY32OgYOHbeDx3/GIyuoantNnmxyN5RQV9R95zDCA0Vkvx2q5kvRX z06RYj/evlSwY4K3vsWlbQatyGZPAEZue87fxmXZmYDlcXgsvEM9ITISYEO+BHEO16oE r+o7/TpDRczRsjCZaldjmjWlwniMimWKnZxgZfGeFl6923nSz/2CzQEBgjyhB6xY8/tH XaDL6fn8c2nE2VLzRIvQTO4CKxmGqnOiXwrdBP1bY/yzCzxyCVCgrpaexwGeW3acn5e1 d1HqHTYFGv/gBVLERwvlQ024FIDDBp1ecjO9fbRtVZBlV0AD2koVj9o/V+EgRjGrpZgn qDjg== X-Gm-Message-State: AOUpUlFl+nELZAymqajosTqfuj0d8f5i1MvkVb0BR9DctTgxA++pfhZZ E0513do7d7giQZbve3ghfIS/LL0z X-Google-Smtp-Source: AAOMgpeWzzPtIA413WvMCkZa6/k2JC9DK+c4tGuSv49MkZi0t6vByMLY8r+SW9Tku9gViE18Jhlfsg== X-Received: by 2002:a24:eec4:: with SMTP id b187-v6mr2123067iti.4.1531417319575; Thu, 12 Jul 2018 10:41:59 -0700 (PDT) Received: from outpaddling.cs.uwm.edu (outpaddling.cs.uwm.edu. [129.89.38.212]) by smtp.gmail.com with ESMTPSA id p130-v6sm2820925itc.38.2018.07.12.10.41.58 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Jul 2018 10:41:58 -0700 (PDT) Subject: Re: QEMU From: Jason Bacon To: freebsd-ppc@freebsd.org Cc: Muhammad Moinur Rahman References: <5f291124-612f-6d10-5012-a8701b1cf49e@gmail.com> <5302f073-b51b-c92f-ada2-f7123d27fa3d@gmail.com> Message-ID: <8dda85f6-df80-74c7-c0c6-3b8c2222783a@gmail.com> Date: Thu, 12 Jul 2018 12:41:57 -0500 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 MIME-Version: 1.0 In-Reply-To: <5302f073-b51b-c92f-ada2-f7123d27fa3d@gmail.com> Content-Language: en-US Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Content-Filtered-By: Mailman/MimeDel 2.1.27 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jul 2018 17:42:00 -0000 And one more grain of evidence... On a boot that makes it as far as the FreeBSD installer, if I hold down a key, qemu CPU usage seems to go up from about 2% to about 3%.  It appears that at least qemu is not frozen and is processing keyboard input.  I suspect this might provide a clue for someone who knows the internals. I also attached a picture of where the 11.1 install gets stuck. On 07/12/18 10:09, Jason Bacon wrote: > > FYI, I get the exact same behavior under qemu 2.8.1 on Debian. > > So now we have similar symptoms in qemu 2.8.1, 2.9, and 2.12.50 on > FreeBSD and Linux hosts. > > Seems to point toward an issue between the FreeBSD guest and qemu > keyboard interface. > > I'd love to see this fixed so port maintainers like me have an easy > way to fix ppc-specific issues. > Straight emulation like this is probably too sluggish for many uses, > but it's more than > adequate for testing port builds on decent host hardware. > > Cheers, > >     JB > > On 07/11/18 13:14, Jason Bacon wrote: >> >> I just heard back from the qemu maintainer.  He's going to upgrade >> qemu to the latest release and try booting >> FreeBSD-ppc. >> >> On 07/11/18 10:01, Chuck Tuffli wrote: >>> I'm seeing similar failures trying to run the ppc64 images under qemu. >>> For me, the boot seemingly hangs here (full log [1]): >>> Booting [/boot/kernel/kernel]... >>> Kernel entry at 0x1024e0 ... >>> KDB: debugger backends: ddb >>> KDB: current backend: ddb >>> Copyright (c) 1992-2018 The FreeBSD Project. >>> Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, >>> 1994 >>>          The Regents of the University of California. All rights >>> reserved. >>> FreeBSD is a registered trademark of The FreeBSD Foundation. >>> FreeBSD 12.0-CURRENT #0 r336134: Mon Jul  9 18:14:23 UTC 2018 >>> root@releng3.nyi.freebsd.org:/usr/obj/usr/src/powerpc.powerpc64/sys/GENERIC64 >>> >>> powerpc >>> gcc version 4.2.1 20070831 patched [FreeBSD] >>> WARNING: WITNESS option enabled, expect reduced performance. >>> WARNING: Running on a broken hypervisor that does not support >>> mandatory H_CLEAR_MOD and H_CLEAR_REF hypercalls. Performance will be >>> suboptimal. >>> VT: init without driver. >>> cpu0: IBM POWER8 revision 2.0, 1000.00 MHz >>> cpu0: Features >>> dc007182 >>> cpu0: Features2 ef000000 >>> real memory  = 6396997632 (6100 MB) >>> avail memory = 6158659584 (5873 MB) >>> ... >>> cpu0: on cpulist0 >>> rtas0: on ofwbus0 >>> rtas0: registered as a time-of-day clock, resolution 0.002000s >>> Timecounter "timebase" frequency 512000000 Hz quality 0 >>> Event timer "decrementer" frequency 512000000 Hz quality 1000 >>> Timecounters tick every 1.000 msec >>> >>> >>> This is running qemu 2.12.50 from git with the following command  line: >>> >>> ppc64-softmmu/qemu-system-ppc64 -m 6G \ >>>      -drive >>> file=/usr/home/ctuffli/vms/bsdppc/freebsd-12.qcow2,format=qcow2 \ >>>      -drive >>> id=swap,file=/usr/home/ctuffli/vms/bsd/swap.raw,format=raw \ >>>      -drive >>> media=cdrom,file=/usr/home/ctuffli/vms/bsdppc/FreeBSD-12.0-CURRENT-powerpc-powerpc64-20180709-r336134-bootonly.iso,readonly >>> \ >>>      -drive >>> id=n0,if=none,file=/usr/home/ctuffli/vms/ogt/ns0.img,format=raw \ >>>      -device nvme,drive=n0,serial=bada55 \ >>>      -netdev >>> tap,id=tap1,br=bridge0,script=/usr/home/ctuffli/dev/qemu.git/qemu-ifup,downscript=/usr/home/ctuffli/dev/qemu.git/qemu-ifdown >>> \ >>>      -device e1000,netdev=tap1 \ >>>      -nographic -vga none -mem-prealloc -boot d >>> >>> Any thoughts? TIA >>> >>> --chuck >>> >>> [1] https://pastebin.com/iscPCSCi >>> _______________________________________________ >>> freebsd-ppc@freebsd.org mailing list >>> https://lists.freebsd.org/mailman/listinfo/freebsd-ppc >>> To unsubscribe, send any mail to "freebsd-ppc-unsubscribe@freebsd.org" >> >> > > -- Earth is a beta site.