Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp875015rdb; Fri, 22 Dec 2023 07:34:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IHmVuu861+cjQNkj6CQkKvtlRtKgCaK024ER6W8ZzjpHX0Q/Nrkpx9CwaRmxy0juOEVB9Et X-Received: by 2002:a17:90a:d715:b0:288:76d7:4227 with SMTP id y21-20020a17090ad71500b0028876d74227mr901826pju.52.1703259240644; Fri, 22 Dec 2023 07:34:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703259240; cv=none; d=google.com; s=arc-20160816; b=yCdToK7PhWhiomN7NgukxE/8hmBW5J2yF1KrxDMxRhWxeI7RkQh7GbVZk6/ZuBcFiD JwzVcTq0demfWUUeeMae6PSErPv35TzNrra8yIn3BV3SZ1faVNhsHybX8ay5cf9xYCYv qNbrnlsTN0UHm5RwE06vTiCrYSg2dQPCrwOkSH84Y5eiFw3KbsEEhBM8nCUA2XAvbWGv RqImuBDDgGERYAz+cFMGxt+4z9LVsbeDzO7Y6XHm0JHzrWh6g8clflk64qIoFNK1K90V DFTeKLhJVE68Do4ZBU9/dc7yD5p+GgylHsBzQHnWU+OjEqSDu8U3IjURFMZRL/+FJBaU WTHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=m7I+N7YglnnDAb5DtR+LUfwkg0HkRzNLUluJIF+uoPM=; fh=dAKnSYrsYWImd4CLKoewxHRCiFfbKzktV10zaQLyfpM=; b=U/WcrXMIzcz0ryqbDatR+ubykrfWDKhrfqGmyNbjSZIriOxV84Ruje2mfE3p/9/5eb 4CCvFraRym9lmrKzre6AFwLT9a4z4pekmnOV3kLsOCt7Tk8FNM11fh3dk0dPgz8ebFP1 CgwvkM/wXsM6zkPLnAoiU18jI3bzMJj5D0chJ/oCw/QcUH+HGDUcz68YH3/+AeSXmnRH geHO1mZC7hbs2387LMLTbKlnnIJlaA429qKqy3O5YE4Q+afw5F1C6rzN9POuun/n6nw6 Z8ZBfffOi+VghAEV1749Mdgc2RQha0HyU5HfO1M5SBdGGNr6m/UDOCDqBTldVtLAnP4L FAIw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gaisler.com header.s=unoeuro header.b=p2o87jp7; spf=pass (google.com: domain of linux-kernel+bounces-9843-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9843-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=gaisler.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id qe8-20020a17090b4f8800b0028bc0f786a9si6295085pjb.126.2023.12.22.07.33.59 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Dec 2023 07:34:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-9843-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gaisler.com header.s=unoeuro header.b=p2o87jp7; spf=pass (google.com: domain of linux-kernel+bounces-9843-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-9843-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=gaisler.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id BACB3285B5C for ; Fri, 22 Dec 2023 15:33:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 4D4602377F; Fri, 22 Dec 2023 15:33:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=gaisler.com header.i=@gaisler.com header.b="p2o87jp7" X-Original-To: linux-kernel@vger.kernel.org Received: from smtp-out3.simply.com (smtp-out3.simply.com [94.231.106.210]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 072C62374E; Fri, 22 Dec 2023 15:33:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=gaisler.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gaisler.com Received: from localhost (localhost [127.0.0.1]) by smtp.simply.com (Simply.com) with ESMTP id 4SxWPh4Sz5z6831; Fri, 22 Dec 2023 16:27:20 +0100 (CET) Received: from [10.10.15.23] (h-98-128-223-123.NA.cust.bahnhof.se [98.128.223.123]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by smtp.simply.com (Simply.com) with ESMTPSA id 4SxWPh0TQLz681j; Fri, 22 Dec 2023 16:27:20 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gaisler.com; s=unoeuro; t=1703258840; bh=m7I+N7YglnnDAb5DtR+LUfwkg0HkRzNLUluJIF+uoPM=; h=Date:Subject:To:Cc:References:From:In-Reply-To; b=p2o87jp784kPbSta4a1986Wv2iStA5gze7ttrCbLhC6KgxlYUjGY/PIwPQbTB9ZNQ ngb13eNePXnFDkTX+E3eWmvLmTtffjg6qL12LR+Tw8vTHoaoELXiz+DYsKTMjm0GaZ ef2LvbQI6FRWQtn12eZpRwvwz2kHJ3puvEPVLwdM= Message-ID: <22f2a3af-0f61-4938-8546-d0308853b467@gaisler.com> Date: Fri, 22 Dec 2023 16:27:19 +0100 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH 00/27] sparc32: sunset sun4m and sun4d Content-Language: en-US To: John Paul Adrian Glaubitz , Sam Ravnborg , Mark Cave-Ayland Cc: Arnd Bergmann , "David S . Miller" , Helge Deller , Alexander Viro , Greg Kroah-Hartman , Alan Stern , Jaroslav Kysela , Takashi Iwai , sparclinux@vger.kernel.org, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-sound@vger.kernel.org References: <20231219-sam-sparc32-sunset-v3-v1-0-64bb44b598c5@ravnborg.org> <01ea8c41-88cd-4123-95c7-391640845fc3@app.fastmail.com> <3d733b57-884a-4755-a32a-74061b48e182@ilande.co.uk> <20231220152224.GA867968@ravnborg.org> <566d7867c746ac2a85f0fc42dd8e28eaffd45ed4.camel@physik.fu-berlin.de> From: Andreas Larsson In-Reply-To: <566d7867c746ac2a85f0fc42dd8e28eaffd45ed4.camel@physik.fu-berlin.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 2023-12-20 18:25, John Paul Adrian Glaubitz wrote: > Hi Sam, > > On Wed, 2023-12-20 at 16:22 +0100, Sam Ravnborg wrote: >>> The leon3_generic machine is maintained by different people so I'd suggest >>> contacting them: see [1] for their contact details. I see there is an >>> avocado boot test for the leon3_generic machine included within the QEMU >>> source tree, but it uses a downloadable image of HelenOS rather than Linux. >> >> Thanks for the pointer, I will try to reach out to them when I have >> something a bit more solid than "it does not work". >> >> I tried to hack around a little in qemu and I have an idea where things >> goes wrong. The leon_generic assumes another address layout than what is >> used by the kernel, so the very first jump to a kernel address fails. The MKLINUXIMG second stage bootloader sets up MMU tables and the SPARC OPENPROM interface for LEON systems, so you need to run the vmlinux image through that. You can find it (and our other Linux related releases) via https://gaisler.com/index.php/downloads/linux. The manual is at https://www.gaisler.com/doc/mklinuximg.pdf and the latest release at https://gaisler.com/anonftp/linux/linux-2.6/kernel/mklinuximg-2.0.15.tar.bz2 With a sparc-linux-gcc in the PATH (or using CROSS_COMPILE to point out a toolchain stem) you can do: mklinuximg vmlinux image.ram and then run the resulting image.ram in e.g. QEMU 8.2.0 with qemu-system-sparc -nographic -M leon3_generic -m 256 -kernel image.ram This at least boots the kernel and let me log in when quickly testing a few images with root filesystems in initramfs, admittedly with our kernel patches in place. > I would argue that before we start introducing larger changes to arch/sparc, > we should settle the maintainership question first. Once we have an active > maintainer again, we can have a more extended discussion about what to keep > and how to name things. I agree. Cheers, Andreas