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] 9pi provenance
Date: Fri, 12 Feb 2021 11:09:54 +0000	[thread overview]
Message-ID: <cf8e88b90916ccaf0558e5e43fbb2bd7@hamnavoe.com> (raw)
In-Reply-To: <faa01a7a1859858280535c9fca33262c@quintile.net>

A couple of people have speculated about what exactly is in the 9pi SD card image.

I should really publish a build script, but first I would have to write one.

Informally, here's how the 9pi fossil contents were created, starting from the
Bell Labs 4th Edition download CD image on 9p.io:

1. Installed the 4e filesystem onto a freshly formatted fossil image:
    echo uname upas :upas >>/srv/fscons
    disk/mkfs -a -s /n/cd /n/cd/dist/replica/plan9.proto | disk/mkext -ud /n/fossil

2. Copied all bcm kernel source from /n/sources/contrib/miller/9/bcm on 9p.io
   to /sys/src/9/bcm

3. Applied these updates from /n/sources/patch on 9p.io
        aes-ctr
        armv7-atomic
        exec-postnote-race
        exit-wrong-parent
        pread-offset
        ramfs-fixes
        segment-overlap
        ssh2-aes-ctr
        ssh2-dh-group14
        usb-ether-lan78xx
        usbserial-ftdi-writelen

4. Applied these updates from http://9legacy.org/patch.html
        aux-wpa
        bcm-brian-man [followed by a small correction to /sys/man/3/spi]
        factotum-wpa
        fossil-wstat-qid
        libsec-tlshand12-fixes
        libsec-tlshand12-norc4
        libsec-tlshand12-nossl3
        libsec-x509-sha2
        libsec-x509-sig
        tcp-close 
        tls-devtls12
        tls-tlshand12
        usb-usbd-usb3

5. Copied the latest /sys/src/cmd/aux/wpa.c and /sys/src/cmd/auth/factotum/wpapsk.c
   from 9front.org, with a couple of small edits to remove 9front dependencies

6. Copied wifi firmware files from https://github.com/RPi-Distro/firmware-nonfree
   into /sys/lib/firmware
        brcmfmac43430-sdio.bin
        brcmfmac43430-sdio.txt
        brcmfmac43455-sdio.bin
        brcmfmac43455-sdio.clm_blob
        brcmfmac43455-sdio.txt

7. Adjusted a few config files and scripts for an easier first-time experience
   of Plan 9 on a Raspberry Pi
         /adm/timezone/local
         /adm/users
         /dist/replica/client/*
         /rc/bin/replica/pull
         /rc/bin/termrc
         /rc/bin/termrc.local
         /sys/lib/newuser
         /usr/glenda/bin/arm
         /usr/glenda/bin/rc/patch-apply
         /usr/glenda/bin/rc/riostart
         /usr/glenda/lib/profile

8. Built and installed libraries, commands and kernels for ARM, and removed the
   corresponding 386 binaries. Also ran mkindex in /sys/lib/man/lookman to update
   the database for the lookman command.

9. As an extra bonus, installed go1.14 (cross-compiled under go-linux-386), into
   /sys/lib/go1.14, along with its dependencies /rc/bin/git (a just-enough-git
   emulation from David du Columbier) and /sys/lib/tls/ca.pem which were needed
   for 'go get' (not sure if they still are).  A new /lib/namespace.local with
   'bind -a /sys/lib/go1.14/bin /bin' makes it simple to use 'go' as a command
   invoking the latest installed release.


------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T16171523f95d8656-M87e4ccc2f2348d4492e94048
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

  reply	other threads:[~2021-02-12 11:10 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-10  3:27 [9fans] patches from 9front Eli Cohen
2021-02-10  3:37 ` Lucio De Re
2021-02-10  3:47   ` Eli Cohen
2021-02-10  4:14     ` Lucio De Re
2021-02-10  7:24     ` Skip Tavakkolian
2021-02-10 16:15       ` ori
2021-02-10 21:50         ` Eli Cohen
2021-02-10 22:00           ` ori
2021-02-10 22:26             ` David du Colombier
2021-02-11  5:49               ` ori
2021-02-11  7:24                 ` Lucio De Re
2021-02-11  8:57                   ` Jens Staal
2021-02-11 10:31                   ` hiro
2021-02-11 11:57                     ` Lucio De Re
2021-02-11 13:07                       ` hiro
2021-02-11 17:41                       ` pouya+lists.9fans
2021-02-11  8:40                 ` David du Colombier
2021-02-12  1:21                   ` ori
2021-02-12  2:55                     ` Skip Tavakkolian
2021-02-12 17:42                       ` ori
2021-02-12 17:48                         ` sirjofri
2021-02-12 18:09                           ` ori
2021-02-12 20:46                             ` Lucio De Re
2021-02-12 23:54                               ` Anthony Martin
2021-02-13 13:34                               ` hiro
2021-02-13 14:05                                 ` Lucio De Re
2021-02-13 15:30                                   ` hiro
2021-02-22 18:44                 ` David du Colombier
2021-02-23  4:45                   ` ori
2021-03-19 14:41                     ` Eli Cohen
2021-03-21  0:01                       ` kokamoto
2021-03-21  8:33                         ` David du Colombier
2021-03-21  9:46                           ` hiro
2021-03-21 11:07                             ` David du Colombier
2021-03-21 14:38                           ` David du Colombier
2021-03-21 13:02                         ` Ethan Gardener
2021-02-12 16:39           ` ori
2021-02-10 13:49 ` Steve Simon
2021-02-12 11:09   ` Richard Miller [this message]
2021-02-12 11:56     ` [9fans] 9pi provenance pouya+lists.9fans
2021-02-13 14:42       ` David du Colombier
2021-02-13 14:47         ` Richard Miller
2021-02-13 14:53           ` David du Colombier

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=cf8e88b90916ccaf0558e5e43fbb2bd7@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).