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=-0.9 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H4,RCVD_IN_MSPIKE_WL,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 16580 invoked from network); 17 Jan 2021 07:11:31 -0000 Received: from tb-ob1.topicbox.com (64.147.108.173) by inbox.vuxu.org with ESMTPUTF8; 17 Jan 2021 07:11:31 -0000 Received: from tb-mx0.topicbox.com (tb-mx0.nyi.icgroup.com [10.90.30.73]) by tb-ob1.topicbox.com (Postfix) with ESMTP id 9C182187D6 for ; Sun, 17 Jan 2021 02:11:27 -0500 (EST) (envelope-from bounce.mM9568b0b0d78c08e1ec367e5c.r522be890-2105-11eb-b15e-8d699134e1fa@9fans.bounce.topicbox.com) Received: by tb-mx0.topicbox.com (Postfix, from userid 1132) id 9A2DB1226DFA; Sun, 17 Jan 2021 02:11:27 -0500 (EST) 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=l9LyA2+X header.a=rsa-sha256 header.s=20161025 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=skip.tavakkolian@gmail.com smtp.helo=mail-oi1-f169.google.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (body 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=1610867487; bh=uU640d24aBe6f+S9 DL9R0/pa02qfHht03X8plVB8sdU=; b=Pt9ldDXh4rk20XX4W9sezd40G6tukBos iaVe04NimxxzTcYzmNRrJgADZstSbWOunYj8T13kFsLnAM4sZ8D3GHaoNjvTl2jW 9voYt9nSPARRNaPNBnZ7yc6pGlPC2ywEvrMR/3KrZos1fKRq5o13P81hy1pZn1nf bz5EgMLbIIc= ARC-Seal: i=2; a=rsa-sha256; cv=pass; d=topicbox.com; s=sysmsg-1; t= 1610867487; b=MX1Y+Jl+PTvk7FJaz63D9QghnVTYEtWIDR7a88qsrIcG36p5GR jtP4R+s8mAL9vkvToymYjXIN97nF2T7FNkOz4mMdZSA94ZSdhzgCsDbb87b3dw+e h/q7j+RaL4pPSXgsD3nVqRW27vfGQ4tKgF10MlnkirTsMfZnQwlfvrkq8= Authentication-Results: topicbox.com; arc=pass; dkim=pass (2048-bit rsa key sha256) header.d=gmail.com header.i=@gmail.com header.b=l9LyA2+X header.a=rsa-sha256 header.s=20161025 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=skip.tavakkolian@gmail.com smtp.helo=mail-oi1-f169.google.com; x-internal-arc=fail (as.1.topicbox.com=pass, ams.1.topicbox.com=fail (body 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=l9LyA2+X header.a=rsa-sha256 header.s=20161025 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.167.169 (mail-oi1-f169.google.com); spf=pass smtp.mailfrom=skip.tavakkolian@gmail.com smtp.helo=mail-oi1-f169.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=aebe6xdL; x-ptr=pass smtp.helo=mail-oi1-f169.google.com policy.ptr=mail-oi1-f169.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt1.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt1.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,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; bh=o3NujTVxhhdlwNfomNf26eoOxR3LBHrNrISHO5coANU=; b=mkDSP+H1WVSW UmT1b3CFd4l7YFNzBDMnqXofmvG4f3fcu+oYRv4ZooA5t7poRBZoGOZ8s/dIss3f gydrRjzpn0yWzmQDwh6BY2hTW8iTRS1j0dI+zeDe2vNscm2Ot0bZGlvXty5/R490 75ufJDB49Y5SUd/cyxVxWDusQzdkXK4= Received: from tb-mx0.topicbox.com (localhost.local [127.0.0.1]) by tb-mx0.topicbox.com (Postfix) with ESMTP id 895F61226A4D for <9fans@9fans.net>; Sun, 17 Jan 2021 02:11:15 -0500 (EST) (envelope-from skip.tavakkolian@gmail.com) Received: from tb-mx0.topicbox.com (localhost [127.0.0.1]) by tb-mx0.topicbox.com (Authentication Milter) with ESMTP id 39A2C2A79F8; Sun, 17 Jan 2021 02:11:15 -0500 ARC-Seal: i=1; a=rsa-sha256; cv=none; d=topicbox.com; s=arcseal; t= 1610867475; b=y+TQ+MJdRctSCkWQW+xtGQfwgXLb4PiPQgd/f35iGfMwboFdUV eod0mJYC0FBasNb0fymUU8bEYVnq8lZSZfPmnH/zyk+EQfSu/1jT6zwr5DugBccX S7GU/dqOAAnfKdUeOp6cDUmTee1bJw97+/23oZjM2gbsQRvG0QA4LNiXDhe2Ovzg l/2I9OUEfwtaSJXZSZ7g09gqtqwdwgfQKTy69ioOdJ0R46jB+XxFpcly8gI0lNSr mLUex42wStDds4AFmawThi2n9gRrPX+pXaIEc/ll2Pw+UeOIMUUBDp0bEoilK0pB 9uP2swfQy5U4hn66crSmAj11yLKzUIhOnM8Q== 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=1610867475; bh=jA9D08iyHAZ452v0hSSTrMPwJHxOZpCU8qXHXVrNJqw=; b=SmZywvhZ7u9U ZLXDWJ5YrJ5dLqFj9fJgFSLTL/tbQj1FUSXlIHQuMUAZYdipCTL/uCQnOi3o88OP L9cWrSmvpXGUUxwMBa18ZQqQV8IkrIiXDcPvN+2ccp+QKy/H4oRziC7yxHd4Q+co FkNKlCRyM92m99iCk/AJltDgMIZw0WMKuIPIXsTx542QhgH9v49pXeX8RvWS8HUe ogIs06xSLSH1Z8vR3V5E/VQnbpbktNtpJMFiXP8I+MrKr5w1LhJA1+i3+0xjA+/N mj2VsDnE/hPZrz0zQeI6BBXpLgBa7tyR7etaHc5UiH8r81KF77tKUJ4/iwO+dmpN Zc4Ds6hJtA== 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=l9LyA2+X header.a=rsa-sha256 header.s=20161025 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.167.169 (mail-oi1-f169.google.com); spf=pass smtp.mailfrom=skip.tavakkolian@gmail.com smtp.helo=mail-oi1-f169.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=aebe6xdL; x-ptr=pass smtp.helo=mail-oi1-f169.google.com policy.ptr=mail-oi1-f169.google.com; x-return-mx=pass header.domain=gmail.com policy.is_org=yes (MX Records found: alt1.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,gmail-smtp-in.l.google.com); x-return-mx=pass smtp.domain=gmail.com policy.is_org=yes (MX Records found: alt1.gmail-smtp-in.l.google.com,alt2.gmail-smtp-in.l.google.com,alt3.gmail-smtp-in.l.google.com,alt4.gmail-smtp-in.l.google.com,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: gggruggvucftvghtrhhoucdtuddrgeduledrtdeggdduieeiucdltddurdegudehrddttd dmucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgf nhhsuhgsshgtrhhisggvpdfurfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttd enucenucfjughrpeggfhgjhfffkffuvfgtsegrtderredttdejnecuhfhrohhmpefukhhi phcuvfgrvhgrkhhkohhlihgrnhcuoehskhhiphdrthgrvhgrkhhkohhlihgrnhesghhmrg hilhdrtghomheqnecuggftrfgrthhtvghrnhepueeuieefhffhheejudekgfelheffteek ieevgffhgfegvdfghffggeelgffgueegnecuffhomhgrihhnpehgihhthhhusgdrtghomh dplehprdhiohdpthhophhitggsohigrdgtohhmpdhvtghhihhqrdhmhienucfkphepvddt ledrkeehrdduieejrdduieelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpe hinhgvthepvddtledrkeehrdduieejrdduieelpdhhvghlohepmhgrihhlqdhoihduqdhf udeiledrghhoohhglhgvrdgtohhmpdhmrghilhhfrhhomhepoehskhhiphdrthgrvhgrkh hkohhlihgrnhesghhmrghilhdrtghomheq X-ME-VSScore: 0 X-ME-VSCategory: clean Received-SPF: pass (gmail.com ... _spf.google.com: Sender is authorized to use 'skip.tavakkolian@gmail.com' in 'mfrom' identity (mechanism 'include:_netblocks.google.com' matched)) receiver=tb-mx0.topicbox.com; identity=mailfrom; envelope-from="skip.tavakkolian@gmail.com"; helo=mail-oi1-f169.google.com; client-ip=209.85.167.169 Received: from mail-oi1-f169.google.com (mail-oi1-f169.google.com [209.85.167.169]) (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>; Sun, 17 Jan 2021 02:11:14 -0500 (EST) (envelope-from skip.tavakkolian@gmail.com) Received: by mail-oi1-f169.google.com with SMTP id q25so14378868oij.10 for <9fans@9fans.net>; Sat, 16 Jan 2021 23:11:14 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=jA9D08iyHAZ452v0hSSTrMPwJHxOZpCU8qXHXVrNJqw=; b=aebe6xdLC+hkSCKjPlZaQmeiGIwmNMYhVs2Y7WwPYsjkWFUC2DozXeBtQ4ZI69a8QI u7kPgSioLdT/UDQbd2tqAOAbjgU4WL9LdpFDL3YiuF/wNoHloMlB7KaHuNbxnYJf2XCl BE1l+CxLEXYOrE9Yv4u1p5QyvJou0aQskXj6kev8TbnSG7lPWRYYg/SXo/YaYimzRMkn Qp8TZHSFvXYAtHlIXnw5ikyT9r92mUJHSU104KlOh0zGfA6Wp8pJ5K2IYd14Rv0mV1Y2 oUO+KZ6t1MzUN5vm0eshI7jWVYj/0kGWX40yVW3q78ASHrZd0nGiqqkNrKgMKhCTv4vw pODw== X-Gm-Message-State: AOAM531RjltyxeyVJR7r9TOZAvPKnZTvGbPHzslsra8Iqys8vr7cjslh f4lJ5nlTRdgjvzqTK136uDc+SC419P1pDRSOHirtQL4ph68= X-Google-Smtp-Source: ABdhPJws9FBRM1KkDkUtlOIhR7aDsKQmatvHzRGgL0fqpOAankNJh9eWK+MKirXOb4VCiYm8hKSW3wCijYVBI+8DfYA= X-Received: by 2002:aca:d584:: with SMTP id m126mr3401911oig.152.1610867473941; Sat, 16 Jan 2021 23:11:13 -0800 (PST) MIME-Version: 1.0 References: <27B589BD-55D2-4A68-BCD3-AEACF0151CC3@iitbombay.org> In-Reply-To: <27B589BD-55D2-4A68-BCD3-AEACF0151CC3@iitbombay.org> From: Skip Tavakkolian Date: Sat, 16 Jan 2021 23:11:02 -0800 Message-ID: Subject: Re: [9fans] Plan9 on Raspberry Pi 400? To: 9fans <9fans@9fans.net> Content-Type: multipart/alternative; boundary="000000000000908a0905b9134f33" Topicbox-Policy-Reasoning: allow: sender is a member Topicbox-Message-UUID: 335bd4a0-5893-11eb-8c85-f7093e74eb3f Archived-At: =?UTF-8?B?PGh0dHBzOi8vOWZhbnMudG9waWNib3guY29tL2dyb3Vwcy85?= =?UTF-8?B?ZmFucy9UZmNmMTJjY2EzYTE0ZGM4YS1NOTU2OGIwYjBkNzhjMDhlMWVjMzY3?= =?UTF-8?B?ZTVjPg==?= 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:M9568b0b0d78c08e1ec367e5c:1:0vzsvfUxtXfQ5XhwzZaceH88kGitrkU8neOQ3avDA2o --000000000000908a0905b9134f33 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable I went down the eeprom rabbithole a bit. To access and manipulate RPI4's eeprom directly, Plan 9 would need to support a device like /dev/vchiq (VideoCore interface) on Linux: https://github.com/raspberrypi/linux/blob/rpi-3.2.27/drivers/misc/vc04_serv= ices/interface/vchiq_arm/vchiq_arm.c#L334 The rest of the tools (e.g. rpi-eeprom-update) eventually use vcgencmd which ioctl into /dev/vchiq. My /dev/mmcblk comment was wrong. On Sat, Jan 16, 2021 at 2:15 PM Bakul Shah wrote: > I believe all it takes is the presence of recover.bin file on the dos > partition. > You still need an updated eeprom image for it to flash the real eeprom wi= th > but preparing this image doesn't require any h/w access. Unless things > have changed in the last year. > > On Jan 16, 2021, at 1:24 PM, Skip Tavakkolian > wrote: > > regarding /dev/serial, this should be helpful for anyone wanting to set up > netboot. > > If you have a number of RPI's that netboot, the way that the common > config.txt is segmented for each board is by using the '[serial number in > hex]' section headers. Unfortunately, netboot also requires changing the > BOOT_ORDER parameter in EEPROM, which requires access to /dev/mmcblk* and > some way of generating the proper .bin format. So Linux is still needed f= or > the initial setup. > > On Sat, Jan 16, 2021 at 9:13 AM Richard Miller <9fans@hamnavoe.com> wrote: > >> > I didn't realise the 9pi image was not up to date. >> > I'll put a new one on 9p.io today. >>=20 >> I've done that. Sorry for letting it get out of sync with the kernel >> source. >>=20 >> The new contrib/miller/9pi.img.gz has >> - the latest firmware files from the raspberry pi github >> - the update to initialise xhci firmware for pi400 and recent pi4 boards >> - a tweak to the pi4 gigabit ethernet driver to allow jumbo packets >> - a new /dev/serial device from which you can read the board serial >> number (I forget why) >>=20 >> Nothing outside the kernel has changed from the previous image. >>=20 > > *9fans * / 9fans / see discussions > + participants > + delivery options > Permalink > > ------------------------------------------ 9fans: 9fans Permalink: https://9fans.topicbox.com/groups/9fans/Tfcf12cca3a14dc8a-M9568b= 0b0d78c08e1ec367e5c Delivery options: https://9fans.topicbox.com/groups/9fans/subscription --000000000000908a0905b9134f33 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
I went down the eeprom rabbithole a bit. = To access and manipulate RPI4's eeprom directly,
Plan 9 would= need to support a device like /dev/vchiq (VideoCore interface) on Linux:


The rest of the tools (e.g. rpi-eeprom-update) eventually use vcge= ncmd which ioctl into /dev/vchiq.
My /dev/mmcblk comment was wron= g.

On Sat, Jan 16, 2021 at 2:15 PM Bakul Shah <bakul@iitbombay.org> wrote:
I believe all it takes is the presence of recover.bin file on the = dos partition.
You still need an updated eeprom image for it to flash t= he real eeprom with
 but preparing this image doesn't re= quire any h/w access. Unless things
have changed in the last year= .

On Jan 16, 2021, at 1= :24 PM, Skip Tavakkolian <skip.tavakkolian@gmail.com> wrote:

regarding /dev/serial, this should be helpful for anyone = wanting to set up netboot.

If you have a number of RPI= 's that netboot, the way that the common config.txt is segmented for ea= ch board is by using the '[serial number in hex]' section headers. = Unfortunately, netboot also requires changing the BOOT_ORDER parameter in E= EPROM, which requires access to /dev/mmcblk* and some way of generating the= proper .bin format. So Linux is still needed for the initial setup.

On Sat, Jan 16, 2021 at 9:13 AM Richard Miller <9fans@hamnavoe.com> wrote:
> I didn't= realise the 9pi image was not up to date.
> I'll put a new one on 9p.io today.

I've done that. Sorry for letting it get out of sync with the kernel so= urce.

The new contrib/miller/9pi.img.gz has
- the latest firmware files from the raspberry pi github
- the update to initialise xhci firmware for pi400 and recent pi4 boards - a tweak to the pi4 gigabit ethernet driver to allow jumbo packets
- a new /dev/serial device from which you can read the board serial number = (I forget why)

Nothing outside the kernel has changed from the previous image.

=


------------------------------------------
9fans: 9fans
Permalink: https:= //9fans.topicbox.com/groups/9fans/Tfcf12cca3a14dc8a-M6d02f52b317dd7989854d8= 01
Delivery options: https://9fans.topicbox.com/gro= ups/9fans/subscription

= --000000000000908a0905b9134f33--