From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 30492 invoked from network); 2 Sep 2023 03:26:19 -0000 Received: from tb-ob0.topicbox.com (64.147.108.117) by inbox.vuxu.org with ESMTPUTF8; 2 Sep 2023 03:26:19 -0000 Received: from tb-mx1.topicbox.com (tb-mx1.nyi.icgroup.com [10.90.30.61]) by tb-ob0.topicbox.com (Postfix) with ESMTP id 4307020778 for ; Fri, 1 Sep 2023 23:26:18 -0400 (EDT) (envelope-from bounce.mM0fe94460eed29c4f77883688.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx1.topicbox.com (Postfix, from userid 1132) id 3382F23D03A5; Fri, 1 Sep 2023 23:26:18 -0400 (EDT) ARC-Authentication-Results: i=2; topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=ZKeRoAfH header.a=rsa-sha256 header.s=20221208 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; spf=pass smtp.mailfrom=don.bailey@gmail.com smtp.helo=mail-qt1-f178.google.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type:list-help:list-id:list-post :list-subscribe:reply-to:content-transfer-encoding :list-unsubscribe; s=sysmsg-1; t=1693625178; bh=EQaRVpSu58sjnTOK aKk9zQiqRxBAPoKiKv9qu4Ca5cY=; b=mLmP1YdMHamgbvq8cklmFmToqp9njTtG bL2s9s1GnUGQ60ltRgqvDu2g/deOhSoMHe2fZdi6J5aR0JajlG46lJ63wSlmmHMp cS1VHtY36iEBEHn5JNt81Zrnm7yJg2PczzVRpdNZeR7OVYvdd9CXmOTvxT1vYumG uF84LgDXoJU= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1693625178; b=VZ6cEQUl5TmhotHisCcHE29XsSdE8QMifIhm+zboIHEj3WJFZM bjCoXYhGQoJbfb2ScVsyZo+EBdAVWBhU+QsDEvpg8jr3xihP5QW5GguJ+8AwdLnD 3x2RvZYldU0WfUKNRX9+Vk8CXrAZR/j0oWz8Tc+lmUT9twADpSWrytkN8= Authentication-Results: topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=ZKeRoAfH header.a=rsa-sha256 header.s=20221208 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; spf=pass smtp.mailfrom=don.bailey@gmail.com smtp.helo=mail-qt1-f178.google.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (message has been altered)) (Message modified while forwarding at Topicbox) X-Received-Authentication-Results: tb-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=ZKeRoAfH header.a=rsa-sha256 header.s=20221208 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.160.178 (mail-qt1-f178.google.com); spf=pass smtp.mailfrom=don.bailey@gmail.com smtp.helo=mail-qt1-f178.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=EiOGNYvs; x-me-sender=none; x-ptr=pass smtp.helo=mail-qt1-f178.google.com policy.ptr=mail-qt1-f178.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt4.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt4.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=9fans.net; h= mime-version:references:in-reply-to:from:date:message-id:subject :to:content-type:list-help:list-id:list-post:list-subscribe :reply-to:content-transfer-encoding:list-unsubscribe; s=dkim-1; t=1693625178; x=1693711578; bh=9uubWisquVpkazZO7Uv+jY5ZzGno86h1 H7jTBU5Der0=; b=n2ViASDtDp/gx0jnnALNcS13/IEQHnWoGvdHIokoBHJRurWX NRdoj2/zI1cA2gqqH+Ic+uAxGoxt6hET8oXGbG710qTr0Q2lnXhDL1k7Sn0NAl0x aUJ/MAogrBOmxHRArdq/2NjCQir3lAQABBq94Sz7+KGny5P0H4nzn0HBSyU= Received: from tb-mx0.topicbox.com (localhost.local [127.0.0.1]) by tb-mx0.topicbox.com (Postfix) with ESMTP id 6CB0D279F4BC for <9fans@9fans.net>; Fri, 1 Sep 2023 23:26:07 -0400 (EDT) (envelope-from don.bailey@gmail.com) Received: from tb-mx0.topicbox.com (localhost [127.0.0.1]) by tb-mx0.topicbox.com (Authentication Milter) with ESMTP id 88C63CF7505; Fri, 1 Sep 2023 23:26:07 -0400 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1693625167; b=ppMARPzG/rSrmAM6pkQTkQ4WpGbDyXUUSBxe+0e/ISupvgHIhQ W3tcTLJlP9/3glc5NIntyf0cajOsg5OJfcq6Q4uc1J8qRi0+62dj/v40TxNtgBll pIxT+Y/sxbUmBmxXP6v8fSgEWAJXolVEaDTRijvgXXFVlXhxFOyYsHe7hA0QSduv ftKhT/8wUhQaWCyzfFgwkzqJ5CeLniJwI+YGWM0JfywdQXfY0E4WVaNPCT0nQPdy zJ9rqGC/DLFb1o/D3wZRlkNqm/duBarjIoNgQdrXSNj+TEbliyisdNT7V43RPr/a u329TeEjvKWU1qaxpB3/hTujFm2VzmEO9C3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d= topicbox.com; h=mime-version:references:in-reply-to:from:date :message-id:subject:to:content-type; s=arcseal; t=1693625167; bh=KDErjAOo0tx5vr83rQTOTCUWs0xQST+y10Yeyj6GnYo=; b=JXtBtkGr/yed VvBUj9O0gxgPXkfkCJGuS3yZL4tmk3fzhs4hH9hxxQXrh2OF+1bdwRNNzRwjMTLL y7vOXiy+JFQUTI8Q/bemnrBvZSIywALYF291+FajiDiRm/m1PZ7VLd6Aq61hUduq LDEEJQzc6m0/XcwgQyFgxYuugmcRxLxwVq7duoyGdtRNA9L10PvGa14MFqkewNcG O+oa9dPnwYdXolTroTSOj2IA0tPs9Jz6rNtzR8uDArE2wZwzZ6ylkpRmwT6UPYVP BFy4rUUSkKmY23BpjGZGhXXVfW382Ng7G13WjOTmOR5230v92R+4WQSFXKz4YWGU 0h6sYX0KsA== ARC-Authentication-Results: i=1; tb-mx0.topicbox.com; arc=none (no signatures found); bimi=skipped (DMARC Policy is not at enforcement); dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=ZKeRoAfH header.a=rsa-sha256 header.s=20221208 x-bits=2048; dmarc=pass policy.published-domain-policy=none policy.published-subdomain-policy=quarantine policy.applied-disposition=none policy.evaluated-disposition=none (p=none,sp=quarantine,d=none,d.eval=none) policy.policy-from=p header.from=gmail.com; iprev=pass smtp.remote-ip=209.85.160.178 (mail-qt1-f178.google.com); spf=pass smtp.mailfrom=don.bailey@gmail.com smtp.helo=mail-qt1-f178.google.com; x-aligned-from=pass (Address match); x-google-dkim=pass (2048-bit rsa key) header.d=1e100.net header.i=@1e100.net header.b=EiOGNYvs; x-me-sender=none; x-ptr=pass smtp.helo=mail-qt1-f178.google.com policy.ptr=mail-qt1-f178.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt4.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt4.gmail-smtp-in.l.google.com,alt1.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com); x-tls=pass smtp.version=TLSv1.2 smtp.cipher=ECDHE-RSA-AES256-GCM-SHA384 smtp.bits=256/256; x-vs=clean score=0 state=0 X-ME-VSCause: gggruggvucftvghtrhhoucdtuddrgedviedrudegfedgjeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucenucfjughrpeggfhgjhf ffkffuvfgtsegrtderredttdejnecuhfhrohhmpeffohhnuceurghilhgvhicuoeguohhn rdgsrghilhgvhiesghhmrghilhdrtghomheqnecuggftrfgrthhtvghrnhepgfejffefge fggfeliefgjeekgefftdejgfeludetuddulefguefgueeuvdfhueetnecuffhomhgrihhn pehtohhpihgtsghogidrtghomhenucfkphepvddtledrkeehrdduiedtrddujeeknecuve hluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvddtledrkeehrdduiedt rddujeekpdhhvghlohepmhgrihhlqdhqthduqdhfudejkedrghhoohhglhgvrdgtohhmpd hmrghilhhfrhhomhepoeguohhnrdgsrghilhgvhiesghhmrghilhdrtghomheq X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (gmail.com ... _spf.google.com: Sender is authorized to use 'don.bailey@gmail.com' in 'mfrom' identity (mechanism 'include:_netblocks.google.com' matched)) receiver=tb-mx0.topicbox.com; identity=mailfrom; envelope-from="don.bailey@gmail.com"; helo=mail-qt1-f178.google.com; client-ip=209.85.160.178 Received: from mail-qt1-f178.google.com (mail-qt1-f178.google.com [209.85.160.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by tb-mx0.topicbox.com (Postfix) with ESMTPS for <9fans@9fans.net>; Fri, 1 Sep 2023 23:26:06 -0400 (EDT) (envelope-from don.bailey@gmail.com) Received: by mail-qt1-f178.google.com with SMTP id d75a77b69052e-4121b5334f3so15536021cf.0 for <9fans@9fans.net>; Fri, 01 Sep 2023 20:26:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693625166; x=1694229966; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=KDErjAOo0tx5vr83rQTOTCUWs0xQST+y10Yeyj6GnYo=; b=EiOGNYvs5dZL20KjJvPSeKIy0jnPr9dn7C196Vj2wW+FnhtcQFf+E9Pp2dLyLysqle bEwJ5yhHw/oj7nNuhmK3+BeKyZQIQmngKw6D2o8AjyPtrPLxZfnuIldn4LPYKCktFjmg s7Mv/fRAVx/Ck0AWQNKvCnYaBYAG8OU4O65ugxF8SXfeInJ3IAvVml0U3JOCKLqUq0dt 7md7Hl4dpSafBGQZ1tcEKeZJDw3byjczNRzgvEXeuqfNN0JCbG2qmTOYY0jwB6NxGviG boch+u3UWWWqIIvDvD5oIDcL2c4Kdb1ELtNDuXdcB/x58Cwv8E1D+rg+f9S5bEYwTyIT aEXQ== X-Gm-Message-State: AOJu0YwO1uNS1vnl1xDzR5PW0UTeEV18H8WyC/yVnKRSo9pykAXREClr QC6vWxCslDVKvuCfd0QrkFtYKXR7TGarvX7ZkMdG00AA3cU= X-Google-Smtp-Source: AGHT+IF2Uqp+FokPTQjt0Yoaq7HiNGmvI5ROS5ghxHUBdPiQOld5VyO83qEtaR5i2bIcVXLkEOXGl4bsKwemwYCZ6Ho= X-Received: by 2002:ac8:5d94:0:b0:3ff:42df:7bfd with SMTP id d20-20020ac85d94000000b003ff42df7bfdmr5001038qtx.63.1693625165784; Fri, 01 Sep 2023 20:26:05 -0700 (PDT) MIME-Version: 1.0 References: <96c54f12e16b3628266d3a3b7a577bdc@hamnavoe.com> In-Reply-To: From: Don Bailey Date: Fri, 1 Sep 2023 23:25:54 -0400 Message-ID: Subject: Re: [9fans] RPi in QEMU To: 9fans <9fans@9fans.net> Content-Type: multipart/alternative; boundary=00000000000063a8db060457d677 Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 76fe080e-4940-11ee-b72e-3b1d068c7b06 Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UNWRhNTQ2NzA5N2U0ZWFiMi1NMGZlOTQ0NjBlZWQyOWM0Zjc3ODgz?= =?UTF-8?B?Njg4Pg==?= List-Help: List-Id: "9fans" <9fans.9fans.net> List-Post: List-Software: Topicbox v0 List-Subscribe: Precedence: list Reply-To: 9fans <9fans@9fans.net> Content-Transfer-Encoding: 7bit List-Unsubscribe: , Topicbox-Delivery-ID: 2:9fans:437d30aa-c441-11e9-8a57-d036212d11b0:522be890-2105-11eb-b15e-8d699134e1fa:M0fe94460eed29c4f77883688:1:fYLYyiys2zy8usehbev1XPIbqwEohyAjImrV4dURzSk --00000000000063a8db060457d677 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Ok I pulled a 9legacy ISO, applied your patch set from this thread above, and built a 9pi2 kernel. My build now runs as the kernel on a QEMU raspi2b system. I didn't realize 9legacy actually had a distribution for some reason I thought it was only a patch set applied against the old main line. Glad I don't have to pick apart the patch set that (works)... It looks like on boot with both the kernel you built and my kernel (the sizes are different so I presume you added on things in a custom config?) the system loads into the GUI but then hangs moments later and stops updating the frame buffer, or the system is hung. Any thoughts on why that might have occurred? Is this to do with the watchdog...? Thanks, this is excellent and useful. D On Fri, Sep 1, 2023 at 10:01=E2=80=AFPM Don Bailey w= rote: > Yeah it must be patches in 9legacy.... because pulling the bcm from > contrib and using that does not alone fix the kernel. > > Interestingly, I can get a kernel to boot in a raspi1ap emulated image, > but it faults on what I presume is the jump to userland, resets, and > auto-boots the kernel again in an infinite loop. I cannot get raspi2b to > boot at all (same deadlock as before). > > The thing about 9legacy is I'm not sure what patches to pull and what is > or isn't stable.... do you have any recommendations? > > Thanks again, > D > > > On Fri, Sep 1, 2023 at 3:38=E2=80=AFPM Richard Miller <9fans@hamnavoe.com= > wrote: > >> > Based on the diffs you supplied, it looks like my bcm >> > sources (from the latest r4 ISO) are not the same as yours. I don't use >> > 9front. What is the best way to make sure my bcm (and 9) kernel trees >> are >> > the same as your current tree? >>=20 >> A lot has changed in the bcm kernel since the 4th edition ISO, because >> of the release of newer Raspberry Pi models. Current source is in >> contrib/miller/9/bcm - just copy those files into /sys/src/9/bcm (or use >> the 9legacy ISO instead, which is kept up to date and has other useful >> patches too). >>=20 ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/T5da5467097e4eab2-M0fe94= 460eed29c4f77883688 Delivery options: https://9fans.topicbox.com/groups/9fans/subscription --00000000000063a8db060457d677 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Ok I pulled a 9legacy ISO, applied your p= atch set from this thread above, and built a 9pi2 kernel. My build now runs= as the kernel on a QEMU raspi2b system. 

I = didn't realize 9legacy actually had a distribution for some reason I th= ought it was only a patch set applied against the old main line. Glad I don= 't have to pick apart the patch set that (works)...

It looks like on boot with both the kernel you built and my kernel = (the sizes are different so I presume you added on things in a custom confi= g?) the system loads into the GUI but then hangs moments later and stops up= dating the frame buffer, or the system is hung. Any thoughts on why that mi= ght have occurred? Is this to do with the watchdog...? 

Thanks, this is excellent and useful. 
D
<= div>

On Fri, Sep 1, 2023 at 10:01 PM Don Bailey <don.bailey@gmail.com> wrote:
Yeah it must be patches in 9legacy.... because pulling the bcm from contri= b and using that does not alone fix the kernel. 

= Interestingly, I can get a kernel to boot in a raspi1ap emulated image= , but it faults on what I presume is the jump to userland, resets, and auto= -boots the kernel again in an infinite loop. I cannot get raspi2b to b= oot at all (same deadlock as before). 

The = thing about 9legacy is I'm not sure what patches to pull and what is or= isn't stable.... do you have any recommendations?

Thanks again,
D


On Fri, Sep 1, 202= 3 at 3:38 PM Richard Miller <9fans@hamnavoe.com> wrote:
> Based on the diffs you supplie= d, it looks like my bcm
> sources (from the latest r4 ISO) are not the same as yours. I don'= t use
> 9front. What is the best way to make sure my bcm (and 9) kernel trees = are
> the same as your current tree?

A lot has changed in the bcm kernel since the 4th edition ISO, because
of the release of newer Raspberry Pi models.  Current source is in
contrib/miller/9/bcm - just copy those files into /sys/src/9/bcm (or use the 9legacy ISO instead, which is kept up to date and has other useful
patches too).


------------------------------------------
9fans: 9fans
Permalink: https:= //9fans.topicbox.com/groups/9fans/T5da5467097e4eab2-Me83a2442fc4a034b67c85c= ec
Delivery options: https://9fans.topicbox.com/gro= ups/9fans/subscription
= --00000000000063a8db060457d677--