Received: by 2002:a25:ab43:0:0:0:0:0 with SMTP id u61csp822343ybi; Fri, 24 May 2019 12:02:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqwOAKNXJai7/mbeF/wveyy+2BDF2D0BneC41sCZafdohkQ1hAJvmxX5eLBnvqX4kK0374+2 X-Received: by 2002:a17:902:4623:: with SMTP id o32mr86441871pld.276.1558724534982; Fri, 24 May 2019 12:02:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1558724534; cv=none; d=google.com; s=arc-20160816; b=dTMGwdaxWHPjG4zz5uON9JVF/l+LGpLF81uIJXYFZ9Py4ad1sr9dXT19a7Xhzuu/Jf 0w0bD9EgPbdMBwfUlFjjgQaqzkM+jQXebXOqu48o4CtP01drRBIJDFOblut3DALN4dKa C8rR9WY665bpGbKcQicmSzJpmYYtSmSLh6Q9GCdSsA5wOFTAM38rJI6QkBE76jEHEWn0 IuYslWAxhMmVRmJGkgH7VYaWuQIgGlu2TpeHvvcvTrf/0nv9ob39wXgFrlFXFvaIwFhp PzzWVXItw7xKH4lPGljylC7MSk/0R6DAfO5htZDh8uoxvUzvJrYcOkCD2odA6m76T+Lj 6J/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=rOGmquJ6YYhLXY5JaXmULgWGU31En2Si2D64a4BUBQM=; b=eabPTH4uZP+nIVm9ZijIUOxCVQJeqjaETsuEnI28NAeuVIEFkEOCrs2kGUKIRsY5OS 7AsyPjmIs3om7xblKEj+zSsoW4CnW2wvpwK2pR0E8Q2WGoY/F27oS1ODP0Jt0kV388tj 36eZ4ZQAFaJ2bL1FWXLLLezUUlmGKUQ5IxWQxvIbChxCYtsSJVCJJ/KQ3M3rCNV4lkFU 5pWcv7Wou5mg5ZA31m5yAxOAdtcN+YejsYyiOVycya5SQdwOC7mi1ceXdQCV0vQKee/e 7g3YG1v1AXBmYP5aWlf3jBlNMZ0yuk6pxXUu0ygQ7Ivk4aR/KXtAnE7CsnUOSRO5ckdK k0NA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=iki.fi Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a3si4804359pju.78.2019.05.24.12.01.57; Fri, 24 May 2019 12:02:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=iki.fi Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2403936AbfEXS73 (ORCPT + 99 others); Fri, 24 May 2019 14:59:29 -0400 Received: from emh01.mail.saunalahti.fi ([62.142.5.107]:45636 "EHLO emh01.mail.saunalahti.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391592AbfEXS71 (ORCPT ); Fri, 24 May 2019 14:59:27 -0400 Received: from t60.musicnaut.iki.fi (85-76-86-221-nat.elisa-mobile.fi [85.76.86.221]) by emh01.mail.saunalahti.fi (Postfix) with ESMTP id C12E020014; Fri, 24 May 2019 21:59:22 +0300 (EEST) Date: Fri, 24 May 2019 21:59:22 +0300 From: Aaro Koskinen To: Peter Maydell , Thomas Huth Cc: Philippe =?iso-8859-1?Q?Mathieu-Daud=E9?= , Corentin Labbe , Tony Lindgren , Linux OMAP Mailing List , QEMU Developers , lkml - Kernel Mailing List Subject: Re: [Qemu-devel] Running linux on qemu omap Message-ID: <20190524185922.GA4597@t60.musicnaut.iki.fi> References: <20190520190533.GA28160@Red> <20190521232323.GD3621@darkstar.musicnaut.iki.fi> <20190522093341.GA32154@Red> <20190522181904.GE3621@darkstar.musicnaut.iki.fi> <8977e2bb-8d9e-f4fd-4c44-b4f67e0e7314@redhat.com> <20190523183623.GB5234@darkstar.musicnaut.iki.fi> <20190524150018.GA3156@t60.musicnaut.iki.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190524150018.GA3156@t60.musicnaut.iki.fi> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Fri, May 24, 2019 at 06:00:18PM +0300, Aaro Koskinen wrote: > Please don't delete OMAP boards quite yet :) In the mainline kernel > they are not orphaned, they frequently get tested using actual hardware, > and QEMU would help in additional testing. I'll try to get N8x0 boot to > work with the minimal kernel I use on real HW. So it was only a matter of attaching the serial console at the QEMU side (a hackish patch at the end of the mail). $ qemu-system-arm --version QEMU emulator version 4.0.0 (v4.0.0-dirty) Copyright (c) 2003-2019 Fabrice Bellard and the QEMU Project developers $ qemu-system-arm -M n810 -kernel zImage -nographic Uncompressing Linux... done, booting the kernel. [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 5.1.0-n8x0_tiny-los_b1ac4+-00007-g7435e73d8ac4 (aaro@amd-fx-6350) (gcc version 8.3.0 (GCC)) #1 Fri May 24 20:43:02 EEST 2019 [ 0.000000] CPU: ARMv6-compatible processor [4107b362] revision 2 (ARMv6TEJ), cr=00c5387d [ 0.000000] CPU: VIPT aliasing data cache, unknown instruction cache [ 0.000000] OF: fdt: Machine model: Nokia N810 [ 0.000000] printk: bootconsole [earlycon0] enabled [ 0.000000] Memory policy: Data cache writeback [ 0.000000] OMAP2420 [...] However there are plenty of WARNs that are not present on real hardware. Anyway, it's a start. A. ... diff --git a/hw/arm/nseries.c b/hw/arm/nseries.c index 906b7ca22d43..52ff83ec5147 100644 --- a/hw/arm/nseries.c +++ b/hw/arm/nseries.c @@ -792,6 +792,7 @@ static void n8x0_uart_setup(struct n800_s *s) qdev_connect_gpio_out(s->mpu->gpio, N8X0_BT_WKUP_GPIO, csrhci_pins_get(radio)[csrhci_pin_wakeup]); + omap_uart_attach(s->mpu->uart[2], serial_hd(0)); omap_uart_attach(s->mpu->uart[BT_UART], radio); }