UP | HOME

9front

Table of Contents

9front

9front has a pretty solid FQA (frequent questions answered) that should be consulted for the latest information.

Booting serial console on VMM

Hit enter during boot. At the console enter:

console=0 b115200
boot

Don't worry if there are duplicate characters.

Always use CTRL-H to backspace. Normal backspace will terminate the currently running thing.

At the vgasize prompt, type text.

Installing

To start the installer run:

inst/start

Remember, backspace will end the current task!

  • Select hjfs as the filesystem.
  • At the Distribution disk prompt, select /.
  • Location of archives will also be /.

Cross compiling amd64 from i386

# Update the source tree
sysupdate

# Populate stub directories
cd /
. /sys/lib/rootstub

# Cross build / install
cd /sys/src
objtype=amd64 mk install

# Install the amd64 kernel
cd /sys/src/9/pc64
mk install # this puts the kernel in /amd64/9pc64

# Put the new kernel on the 9fat partition
9fs 9fat # mounts 9fat to /n/9fat

# Optional, install the new bootloader
rm /n/9fat/9bootfat
cp /386/9bootfat /n/9fat/
chmod +al /n/9fat/9bootfat # this defrags ... something

# Copy the amd64 kernel to the 9fat partition.
cp /amd64/9pc64 /n/9fat

# Finally change the plan9.ini file to boot the 9pc64 file
acme /n/9fat/plan9.ini

drawterm

drawterm allows you to connect to a remote plan9 instance.

Start server

The server runs on the remote instance you want to access.

Add the below lines to /usr/glenda/lib/profile.

echo 'key proto=p9sk1 dom=cirno user=glenda !password=asdfasdf' > /mnt/factotum/ctl
aux/listen1 -t 'tcp!*!rcpu' /rc/bin/service/tcp17019 &

I opted for the terminal use case, as vmm does not have graphics.

Connect from a client

  • -a is auth server, in this case we use nuc because it's a single instance 9front install.
  • -h is the host to connect to, again nuc because it's a single instance.
drawterm -a nuc -p -h nuc -u glenda -c rio -i riostart

Manual network config

ip/ipconfig -g 10.10.10.1 ether /net/ether0 10.10.10.2 255.255.255.0

Managing users

Adding

Removing

Modifying

Build from source

sysupdate
cd /sys/src; mk all; mk install

Build from source for amd64

sysupdate
cd /
. /sys/lib/rootstub
cd /sys/src
objtype=amd64 mk install

Machines

APU 4b4

  • Currently not working. Boot hangs after starting.
    • Tried 0, 1, 2, also switched to COM2 (physical connector on board). No luck.
SeaBIOS (version rel-1.12.0.1-0-g393dc9c)

Press F10 key now for boot menu

Booting from Hard Disk...
MBR...pbs..............ok
*e820=1 0x0000000000000000 0x000000000009fc00 2 0x000000000009fc00 0x00000000000
a0000 2 0x00000000000f0000 0x0000000000100000 1 0x0000000000100000 0x00000000cfe
a8000 2 0x00000000cfea8000 0x00000000d0000000 2 0x00000000f8000000 0x00000000fc0
00000 1 0x0000000100000000 0x000000012f000000
cdboot=yes
mouseport=ask
monitor=ask
vgasize=ask
bootfile=/amd64/9pc64
>console=0 b115200
console=0 b115200
>boot
booP

Author: Aaron Bieber

Created: 2022-08-23 Tue 13:15

Validate