From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 9EFBBE77188 for ; Wed, 8 Jan 2025 16:23:48 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tVYqD-0002Qh-G4; Wed, 08 Jan 2025 11:23:33 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tVYqB-0002QP-PD for qemu-devel@nongnu.org; Wed, 08 Jan 2025 11:23:31 -0500 Received: from fly.ash.relay.mailchannels.net ([23.83.222.61]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tVYq9-0005H3-HP for qemu-devel@nongnu.org; Wed, 08 Jan 2025 11:23:31 -0500 X-Sender-Id: dreamhost|x-authsender|rob@landley.net Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id A63541C1C30; Wed, 8 Jan 2025 16:23:25 +0000 (UTC) Received: from pdx1-sub0-mail-a309.dreamhost.com (100-110-108-165.trex-nlb.outbound.svc.cluster.local [100.110.108.165]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id 4722C1C1BBD; Wed, 8 Jan 2025 16:23:25 +0000 (UTC) ARC-Seal: i=1; s=arc-2022; d=mailchannels.net; t=1736353405; a=rsa-sha256; cv=none; b=sFe1/rz5zPHx/Ovb/O6uC0tjPFVw+vMLPx7fM0x8j8xrM0KA58psHHRfWFqa3sTfEGT3OG IhtsdHvuPkEBNe8yO8GZnnMtvgd1bBVVvRiBrvwZ2dzc/n7c1dUS7Ykwd1qUltcs2YxiLQ x1w56oWFUwPUwcBbVzdv4OsVr6RxG8qGh9kyzds+RbxWlRLJp7taGna1L6DuR90BRGVrit xDNfsirJAkwITVygdU0hO4qf7uRIMZIPycSVENUhG+8cqEwyMH3So04wiRXmJRjC55sU5C JKAFMET56MBVdx9q4pUQwd4YNyi6iEQmYjx2haScpBsPHQ8045hq47f3j6MLxg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1736353405; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:dkim-signature; bh=CGDrVvdqW0s36dkkSTkRGhSab9TZ1A3vOMkxmNwyxfY=; b=5GE+3eGYZQjcYU7UrrpguAE2e6JTB6oUbOTDoHdjfLx25Y3HTLh+nyZPRMMIp915cGStze e8EYWucEhTP3Pr9NugBXoAoXhbmC3BiP5gIewJzxto49LMArRCS1uoWToF2+x6WesEOXOM BjqW7EIN1sorRz0ZFHxcbJxiNuvPJlfEWH+HKeaMNkILoVVhAVh0kv1cuJe44JXshddX42 XwNMbrRL2mk3Y9RqmGjxWWJZIIINfcnIBy45oDMHPF4oUN1Y2w7ew0ZmWoDSJwq54hVEn4 2iheEn+dbBySJv4w8hLDws9T0T1lCs9dtfiXy1zEvFM7lzBz9eAwcL7QWOazVQ== ARC-Authentication-Results: i=1; rspamd-7df4dcbd86-r9vfz; auth=pass smtp.auth=dreamhost smtp.mailfrom=rob@landley.net X-Sender-Id: dreamhost|x-authsender|rob@landley.net X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|rob@landley.net X-MailChannels-Auth-Id: dreamhost X-Whistle-Desert: 5add090e240d9555_1736353405538_3883757128 X-MC-Loop-Signature: 1736353405538:2201811337 X-MC-Ingress-Time: 1736353405538 Received: from pdx1-sub0-mail-a309.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.110.108.165 (trex/7.0.2); Wed, 08 Jan 2025 16:23:25 +0000 Received: from [172.16.32.88] (unknown [198.232.126.202]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: rob@landley.net) by pdx1-sub0-mail-a309.dreamhost.com (Postfix) with ESMTPSA id 4YStWc30sFz7l; Wed, 8 Jan 2025 08:23:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=landley.net; s=dreamhost; t=1736353404; bh=CGDrVvdqW0s36dkkSTkRGhSab9TZ1A3vOMkxmNwyxfY=; h=Content-Type:Date:Subject:To:Cc:From; b=piGGjA/fRIcNwcww47NaQXUjHStwDNTa5NyzcFrT124Guw1lktLNX4Z7I2S3aVHC3 O5M1VeeWhV9B71Y2AK9FP6yS4gKk5v4AjSn3kFaAOPwqKQJuNAOy7OjhnIdLi40j2M 6aVtp4SFAWHVccQ3yc5I3zPrlhXAWskvnh3NuwX32lItZlSDatvHfcXCS7j+oAK8L9 JZRjckM3AHi/uW0+b1Ke2MeWjKrUOXtyfIkgu7LepU+ZegZfdDO3Q4dabgozE0hHOm WfrHZgPmRzPaZLj/ySj5tXAh7qCp4PWSHuvXX3rgxN2qBRYvDS9wodevlBrt0H4mmy m+80ryw2eL6Nw== Content-Type: multipart/mixed; boundary="------------P08yIc0OD1j4aRX9JfFOjnEj" Message-ID: Date: Wed, 8 Jan 2025 10:23:23 -0600 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: or1k -M virt -hda and net. To: Geert Uytterhoeven Cc: Stafford Horne , Peter Maydell , "Jason A. Donenfeld" , QEMU Developers , Linux OpenRISC References: <9b2761aa-8ee0-4399-b237-31e70e3ed165@landley.net> <31fa6255-8e0c-4d05-bad9-dd843c676244@landley.net> <87a6b910-5af6-47ad-ad8d-b79f11a7cbf2@landley.net> <57c5207c-3aca-47cd-bfd3-3d7eb7be3c0f@landley.net> <8807078a-0673-4b27-8d58-4a2a3ce4987d@landley.net> <39511711-b86a-4ac6-8bd6-8dab824b693e@landley.net> <0d2df37a-a167-445f-aacf-714a29587511@landley.net> Content-Language: en-US From: Rob Landley In-Reply-To: Received-SPF: pass client-ip=23.83.222.61; envelope-from=rob@landley.net; helo=fly.ash.relay.mailchannels.net X-Spam_score_int: -19 X-Spam_score: -2.0 X-Spam_bar: -- X-Spam_report: (-2.0 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_SBL_A=0.1 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org This is a multi-part message in MIME format. --------------P08yIc0OD1j4aRX9JfFOjnEj Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit On 1/8/25 02:24, Geert Uytterhoeven wrote: > Hi Rob, > > On Tue, Jan 7, 2025 at 11:53 PM Rob Landley wrote: >> Microblaze has no /dev/?da (as in there's no device I could attach it to >> even with the long option, I'd have to use NBD), sh4eb has -hda is >> working but it's having some endianness hiccup with the network card >> (works in sh4 but not sh4eb, I'm trying to track it down, I thought this >> worked at one point), and the two "No kernel" ones legitimately have no > > That's using sh_eth, right? 8139cp: 8139cp: 10/100 PCI Ethernet driver v1.3 (Mar 22, 2004) 8139cp 0000:00:02.0: enabling device (0000 -> 0003) 8139cp 0000:00:02.0 eth0: RTL-8139C+ at 0x(ptrval), 52:54:00:12:34:56, IRQ 128 Is there a different driver I should use? That one works on sh4 little endian with almost the same config. > Last time I tried booting a big endian ARM kernel on Koelsch (R-Car > M2-W), it booted fine until "unable to mount root" (I have no suitable > userspace), except for broken Ethernet, so it failed to obtain a > DHCP lease. Miniconfig I'm using for 6.19 attached. If you don't want to build mkroot's toybox+musl userspace yourself, the initramfs.cpio.gz in the last release from https://landley.net/bin/mkroot/0.8.11/sh4eb.tgz presumably still works, using the instructions in run-qemu.sh. (I'm trying to get a new release out, hence poking at targets that don't quite pass muster.) You can also use the sh2eb fdpic userspace from the same directory, but you'll need the "fdpic with mmu for sh" patch from https://landley.net/bin/mkroot/0.8.11/linux-patches/0002-sh4-fdpic.patch to enable the fdpic loader in your kernel config. (That's the current sh big endian board I know people deploying today, but qemu doesn't emulate it directly, so I run its userspace under qemu-system-sh4eb...) I think I've built a working static busybox defconfig with https://landley.net/bin/toolchains/25-03-2024/sh4eb-linux-musl-cross.tar.xz too, although not recently. Might need to switch a command or two off? The boot says "8139cp 0000:00:02.0 eth0: link down" and then pauses for 3 seconds while ntp fails to talk to time.google.com to set the clock newer than 1970 (sadly no battery backed up clock in the board qemu's emulating, there's config entries for one in the relevant kernel defconfig but nothing in qemu last I checked), and then I get a shell prompt that thinks it's 1970 and can't wget or scp with dropbear. Rob P.S: If you "./run-emulator.sh -hda file.img" the init script will try to mount /dev/?da on /mnt for you, and then run /mnt/init if it exists instead of a shell prompt. Easy automated testing. --------------P08yIc0OD1j4aRX9JfFOjnEj Content-Type: text/plain; charset=UTF-8; name="linux-miniconfig" Content-Disposition: attachment; filename="linux-miniconfig" Content-Transfer-Encoding: base64 IyBtYWtlIEFSQ0g9c2ggYWxs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