Received: by 2002:a05:6a10:87d6:0:0:0:0 with SMTP id g22csp639732pxr; Mon, 11 Apr 2022 03:27:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyE0fCJDGnSn6s1afDiSnRrysAcNlZAesdU3TGVi7LEtcCqJiVolI8o1+v56MSSM3Q5viIn X-Received: by 2002:a17:906:5fc6:b0:6e8:86bd:64ab with SMTP id k6-20020a1709065fc600b006e886bd64abmr5285149ejv.538.1649672837196; Mon, 11 Apr 2022 03:27:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649672837; cv=none; d=google.com; s=arc-20160816; b=Lj9+IfElznumG1+Mf6aZvLLQUve6h6o4Sq36nSO5boyCWYod1+3EQFh/vM5x5PN6jA BGGmpjmG0YHpszVj1gWIxqadX/8T7fb2TxCuu90rLXMwG/vvJsTUtYJAlMzwafim/AD1 cyUpjMEFg4WQUQiU2B0hde3om5VZY2o5kvipGQ07TN/DmueF/cWijQD9nBzBF/4F7gVP ndtt7+TY00f+1NkdrZZYTcfSK9xoLS1rDszFe9yz5MEt2P0Ul0TMA99TlJ4c1XarfQNI fePUP4RHFWGmuia13SlabXs9UYy0T1PZVhcSRxFY10nuQqIKXZU3yRj9G2SmGAiMS5mV PjOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=HLcHxok0TrE1xQrUdzzB3gUD4+EGnlP7Z3j2dVkEC1E=; b=E1Qad0TEkcEcYM6f/kK64gy3C9B68YFOR/H80R8zlnRFof3rpOH4R1odC8d8ZnCW9y QHVHalMGbgqJrorzzbnxGJDYflQgJvt3XOStw5YfwAEmgCDtdsJTBiDcqempnBsmh3nc vCvsL7oVDEOAuYp/h1Mp9p0EYiYZuwpxDUjKZ3ahsMmXV0zfYr5DB2M8fYc4lKfMreX+ Q+s8ilLSyZNR9tDl+vQh9nUgAgQpyjKOTuSRXrwKt2tdAvG7JlSQwsYzBP+1gBAU3RYC sP1dPmCJyRrfUtMdgjF6vvi/MOwLqlq8mJ9snkxbkfEBYaXGHYPojcI/C4cGQ22q2DMu NeLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@landley-net.20210112.gappssmtp.com header.s=20210112 header.b=CDOKrgbE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id z21-20020a1709067e5500b006e892eb5798si1449671ejr.808.2022.04.11.03.26.51; Mon, 11 Apr 2022 03:27:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@landley-net.20210112.gappssmtp.com header.s=20210112 header.b=CDOKrgbE; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233935AbiDJHY4 (ORCPT + 99 others); Sun, 10 Apr 2022 03:24:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59044 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233795AbiDJHYw (ORCPT ); Sun, 10 Apr 2022 03:24:52 -0400 Received: from mail-oa1-x42.google.com (mail-oa1-x42.google.com [IPv6:2001:4860:4864:20::42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9CBA411A2C for ; Sun, 10 Apr 2022 00:22:41 -0700 (PDT) Received: by mail-oa1-x42.google.com with SMTP id 586e51a60fabf-deb9295679so14081490fac.6 for ; Sun, 10 Apr 2022 00:22:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=landley-net.20210112.gappssmtp.com; s=20210112; h=message-id:date:mime-version:user-agent:subject:content-language:to :cc:references:from:in-reply-to:content-transfer-encoding; bh=HLcHxok0TrE1xQrUdzzB3gUD4+EGnlP7Z3j2dVkEC1E=; b=CDOKrgbEU+Q9Ta7bNjY7kM0CEtCjXc4Mdx5lNRcE1AlbQ4sEiQA1TcL/jymJDPD2T6 IkK56d0xkBbM6FgVF0CUCOLNn6PrZJALVEuLH+d4jUkn/4f5gayUjqa1Tr8s7d3qUK5j tR+OiveAwIczYKdp6hgPUkHydMNPOoEXQvBo+D77BKSGZJTEMfb9+MpPyZ4jTbQla9j6 H3J9AfzlLd6ni3B331Wa0jUfqM40xPxLiSKyHYlJAs7AAE6gIvChiS1BczYifu6VDnIP aTbfbosD9dfF4kveqfYYbaUIdlOg084qs/0/9yfVqjDrmoELIaFPLRP3ksk6yqJv6EG/ RmVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=HLcHxok0TrE1xQrUdzzB3gUD4+EGnlP7Z3j2dVkEC1E=; b=WzIDsBdE3eWJd9vs41cpJM2DWvKMRvVc05FcV+UaUSXizbk7cFHT5FzKwL9If1gJOR OOs13eB5hePSIpr3aIdwGl79xzR7qqnRzl81b7zK4CkQGHbgUcAeSfY6EinQmo+rK9rl RqaVvAKESgOJ0L4nHwDcFf+GJKhsYWlfuAp2kz4l/qF6ePJxWVe5v1xDEqbdXEHtBqLP a0atUE7JK/VfrChx3V/2f6JaRuPWNVh8NTDwZXGeqKZvX7pVGSFT9dvwGcXIISOJQVjW FWueIIlRsSAEpGqzPVwOvKjsgZIikRmGZzk9UBgj1zAkyyaCe7WtHEAoKAXvtlmNnmg9 lQDw== X-Gm-Message-State: AOAM530WUj8r25ObdBM8ClBDmpQYFeKj+t2i+J6HTkWBRs4QMXurGpEG rY+tYLq+xxYXr49hrMXoe0LTzw== X-Received: by 2002:a05:6870:639e:b0:e2:ab7c:d868 with SMTP id t30-20020a056870639e00b000e2ab7cd868mr1856692oap.108.1649575360859; Sun, 10 Apr 2022 00:22:40 -0700 (PDT) Received: from [192.168.224.179] ([172.58.198.202]) by smtp.gmail.com with ESMTPSA id q203-20020acad9d4000000b002f8ee3f69e2sm10328337oig.52.2022.04.10.00.22.39 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 10 Apr 2022 00:22:40 -0700 (PDT) Message-ID: Date: Sun, 10 Apr 2022 02:26:45 -0500 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.2 Subject: Re: [RFC PULL] remove arch/h8300 Content-Language: en-US To: Greg Ungerer , Finn Thain Cc: Daniel Palmer , Arnd Bergmann , Christoph Hellwig , Linus Torvalds , Yoshinori Sato , Linux Kernel Mailing List , linux-arch , "moderated list:H8/300 ARCHITECTURE" , "open list:TENSILICA XTENSA PORT (xtensa)" , Max Filippov , Linux-sh list , linux-m68k , Damien Le Moal , linux-riscv References: <6a38e8b8-7ccc-afba-6826-cb6e4f92af83@linux-m68k.org> <5b7687d4-8ba5-ad79-8a74-33fc2496a3db@linux-m68k.org> <8f9be869-7244-d92a-4683-f9c53da97755@landley.net> <3d5cf48c-94f1-2948-1683-4a2a87f4c697@linux-m68k.org> <147dc6cc-1fbb-558f-8e6d-29d4327d54b4@linux-m68k.org> From: Rob Landley In-Reply-To: <147dc6cc-1fbb-558f-8e6d-29d4327d54b4@linux-m68k.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,NICE_REPLY_A,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/8/22 23:18, Greg Ungerer wrote: > > On 9/4/22 11:59, Finn Thain wrote: >> On Fri, 8 Apr 2022, Rob Landley wrote: >> >>> On 4/5/22 08:07, Greg Ungerer wrote: >>>> On 5/4/22 13:23, Daniel Palmer wrote: >>>>> On Mon, 4 Apr 2022 at 22:42, Greg Ungerer wrote: >>>>>> But we could consider the Dragonball support for removal. I keep it >>>>>> compiling, but I don't use it and can't test that it actually works. >>>>>> Not sure that it has been used for a very long time now. And I >>>>>> didn't even realize but its serial driver (68328serial.c) was >>>>>> removed in 2015. No one seems too have noticed and complained. >>>>> >>>>> I noticed this and I am working on fixing it up for a new Dragonball >>>>> homebrew machine. I'm trying to add a 68000 machine to QEMU to make >>>>> the development easier because I'm currently waiting an hour or more >>>>> for a kernel to load over serial. It might be a few months. >>> >>> I've been booting Linux on qemu-system-m68k -M q800 for a couple years >>> now? (The CROSS=m68k target of mkroot in toybox?) >>> >>> # cat /proc/cpuinfo >>> CPU: 68040 >>> MMU: 68040 >>> FPU: 68040 >>> Clocking: 1261.9MHz >>> BogoMips: 841.31 >>> Calibration: 4206592 loops >>> >>> It certainly THINKS it's got m68000... >>> >> >> Most 68040 processor variants have a built-in MMU and the m68k "nommu" >> Linux port doesn't support them. The nommu port covers processors like >> 68000, Dragonball etc. whereas the m68k "mmu" port covers 680x0 where x is >> one of 2,3,4,6 with MMU. In theory you can switch the MMU off. (Or at least give it a NOP page table that maps all the physical memory into one big contiguous block 1:1 with the physical address and leave it there.) Doesn't mean anybody's bothered to implement and add a config option to stub that out in the kernel yet. But presumably you could have a bootloader shim do it... >>> (I'd love to get an m68k nommu system working but never sat down and >>> worked out a kernel .config qemu agreed to run, plus compiler and libc. >>> Musl added m68k support but I dunno if that includes coldfire?) >>> >> >> I could never figure out how to boot a coldfire machine in qemu either. >> There was no documentation about that back when I attempted it but maybe >> things have improved since. > > FWIW this will do it: > > qemu-system-m68k -nographic -machine mcf5208evb -kernel vmlinux > > That will boot an m5208evb_defconfig generated vmlinux. > But you will need a user space to get a full boot to login/shell. No FDPIC support. :( I had a binflt toolchain working with uClibc in 2015 or so, but I end of lifed https://landley.net/aboriginal in 2017 (five years ago now). Multiple reasons, but one was the old "last GPLv2 release" toolchain was getting painful to force the kernel to build with. These days there's articles on lwn.net about yanking a.out support, which fdpic is a buggy variant of that didn't actually have a maintained elf2flt repository when I was assembling my toolchain. (I vaguely recall I poked enough people that somebody picked it up and stuck a repository on github, but Jeff Dionne explained some fundamental design flaw that had been introduced having to do with register offsets being calculated in the wrong framework or something? I don't remember, I lost interest because it's _conceptually_ obsolete. FDPIC is ELF with a little extra header info, it's clean and potentially even useful on with-MMU systems as extra ASLR. BINFLT is a.out run through a postprocessing tool that nominally converts ELF files into the new format but actually needs .o files from earlier in the process and is kind of an alternate linker except it doesn't replace the linker... It's layers of ugly. > Regards > Greg Rob