diff --git a/docs/index.html b/docs/index.html index 49673b3..3ed860d 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,6 +1,6 @@ - + diff --git a/docs/installation/index.html b/docs/installation/index.html index fa498cd..3d3cac7 100644 --- a/docs/installation/index.html +++ b/docs/installation/index.html @@ -52,24 +52,45 @@
  • Press s to save configuration and exit
  • Connect a network cable on net0, the port closest to the serial console port:

    -

    router7 development setup

    -

    Next, build a router7 image:

    -
    go get -u github.com/gokrazy/tools/cmd/gokr-packer github.com/rtr7/tools/cmd/...
    -go get -u -d github.com/rtr7/router7
    +

    Next, create a router7 gokrazy instance (see gokrazy +quickstart if you’re unfamiliar with gokrazy):

    +
    go install github.com/gokrazy/tools/cmd/gok@main
    +go install github.com/rtr7/tools/cmd/...@latest
     mkdir /tmp/recovery
    -GOARCH=amd64 gokr-packer \
    -	-hostname=router7 \
    -	-overwrite_boot=/tmp/recovery/boot.img \
    -	-overwrite_mbr=/tmp/recovery/mbr.img \
    -	-overwrite_root=/tmp/recovery/root.img \
    -	-eeprom_package= \
    -	-kernel_package=github.com/rtr7/kernel \
    -	-firmware_package=github.com/rtr7/kernel \
    -	-gokrazy_pkgs=github.com/gokrazy/gokrazy/cmd/ntp \
    -	-serial_console=ttyS0,115200n8 \
    -	github.com/rtr7/router7/cmd/...
    -

    Run rtr7-recover -boot=/tmp/recovery/boot.img -mbr=/tmp/recovery/mbr.img -root=/tmp/recovery/root.img to:

    +
    gok -i router7 new +gok -i router7 edit +

    Change the config until you have the following fields set:

    +
    {
    +    "Hostname": "router7",
    +    "Packages": [
    +        "github.com/gokrazy/fbstatus",
    +        "github.com/gokrazy/hello",
    +        "github.com/gokrazy/serial-busybox",
    +        "github.com/gokrazy/breakglass"
    +        "github.com/rtr7/router7/cmd/..."
    +    ],
    +    "SerialConsole": "ttyS0,115200",
    +    "GokrazyPackages": [
    +        "github.com/gokrazy/gokrazy/cmd/ntp",
    +        "github.com/gokrazy/gokrazy/cmd/randomd"
    +    ],
    +    "KernelPackage": "github.com/rtr7/kernel",
    +    "FirmwarePackage": "github.com/rtr7/kernel",
    +    "EEPROMPackage": ""
    +}
    +

    Then, build an image:

    +
    GOARCH=amd64 gok -i router7 overwrite \
    +    --boot /tmp/recovery/boot.img \
    +	--mbr /tmp/recovery/mbr.img \
    +	--root /tmp/recovery/root.img
    +

    And serve the image for netboot installation:

    +
    rtr7-recover \
    +    --boot /tmp/recovery/boot.img \
    +    --mbr /tmp/recovery/mbr.img \
    +    --root /tmp/recovery/root.img
    +

    Specifically, rtr7-recover: