9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Richard Miller <9fans@hamnavoe.com>
To: 9fans@9fans.net
Subject: [9fans] raspberry pi root filesystem via wifi
Date: Thu, 14 Jan 2021 15:20:27 +0000	[thread overview]
Message-ID: <32a59b33244b34dbb45e818fe87f6fe4@hamnavoe.com> (raw)

> Have you ever tried taking root from a wifi connected server on a PI?

I was asked this question by email, but I'll reply on the list
in case others would like to know.

Yes, 9pi allows for this. You need a kernel built from configuration
/sys/src/9/bcm/pi2wifi (for Pi2 and Pi3) or /sys/src/9/bcm/pi4wifi
(for Pi4). Some configuration variables need to be defined at boot time,
either in cmdline.txt (see the sample cmdline-wifiroot.txt in the DOS
partition) or by responding to prompts (if you'd rather not store your
wifi password on the SD card).

The wifi configurations use /bin/rc as the boot process instead of
the normal boot program, with /sys/src/9/bcm/bootwifi.rc as a script.
Feel free to tinker with this script to adapt to your local setup.

The pi[24]wifi configurations are for a Plan 9 terminal. Adapting these
for a Pi cpu server taking root over wifi is left as an exercise for the
reader. (Hint: diff pi2 pi2cpu)


------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/Tb72d6baf10887da3-M26deb24e1be176b1e1c640de
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

                 reply	other threads:[~2021-01-14 15:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=32a59b33244b34dbb45e818fe87f6fe4@hamnavoe.com \
    --to=9fans@hamnavoe.com \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).