Scripts to confgire a group of hosts on a LAN to use VXLAN over Wireguard.
Download the latest ugw3
package from https://github.com/Lochnair/vyatta-wireguard/releases and install it on your USG using dpkg -i wireguard-ugw3-<version>.deb
.
cd /config/auth
umask 077
mkdir wireguard
cd wireguard
wg genkey > wg_private.key
wg pubkey < wg_private.key > wg_public.key
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
U-Boot TPL 2020.07 (Jul 20 2021 - 21:07:08) | |
Channel 0: LPDDR4, 50MHz | |
BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB | |
Channel 1: LPDDR4, 50MHz | |
BW=32 Col=10 Bk=8 CS0 Row=15 CS1 Row=15 CS=2 Die BW=16 Size=2048MB | |
256B stride | |
256B stride | |
lpddr4_set_rate: change freq to 400000000 mhz 0, 1 | |
lpddr4_set_rate: change freq to 800000000 mhz 1, 0 | |
Trying to boot from BOOTROM |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
sudo dnf install -y glibc-static | |
git clone https://git.sr.ht/~sircmpwn/scdoc | |
cd scdoc | |
make PREFIX=~/.local/ install | |
cd .. | |
sudo dnf install -y golang notmuch-devel | |
go get golang.org/dl/go1.12.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>>> linux foo-2019.02.26 Building | |
... | |
PATH="..." BR_BINARIES_DIR=/home/philip/repos/third-party/buildroot/output/images KBUILD_BUILD_VERSION=1 KBUILD_BUILD_USER=buildroot KBUILD_BUILD_HOST=buildroot KBUILD_BUILD_TIMESTAMP="Tue Jul 9 10:59:29 EDT 2019" KCFLAGS=-Wno-attribute-alias /usr/bin/make -j9 HOSTCC="/home/philip/repos/third-party/buildroot/output/per-package/linux/host/bin/ccache /usr/lib64/ccache/gcc -O2 -I/home/philip/repos/third-party/buildroot/output/per-package/linux/host/include -L/home/philip/repos/third-party/buildroot/output/per-package/linux/host/lib -Wl,-rpath,/home/philip/repos/third-party/buildroot/output/per-package/linux/host/lib" ARCH=arm64 INSTALL_MOD_PATH=/home/philip/repos/third-party/buildroot/output/per-package/linux/target CROSS_COMPILE="/home/philip/repos/third-party/buildroot/output/per-package/linux/host/bin/aarch64-linux-gnu-" DEPMOD=/home/philip/repos/third-party/buildroot/output/per-package/linux/host/sbin/depmod INSTALL_MOD_STRIP=1 -C /home/philip/repos/third-party/buildroo |
I'm trying to install Fedora onto a pair of 250GB hard drives with either RAID0 or RAID1.
The issue seems to be the following from journal.txt
:
Dec 05 21:27:51 server anaconda[1647]: program: Installing for i386-pc platform.
Dec 05 21:27:51 server anaconda[1647]: program: grub2-install: warning: ../grub-core/partmap/gpt.c:190:this GPT partition label contains no BIOS Boot Partition; embedding won't be possible.
Dec 05 21:27:51 server anaconda[1647]: program: grub2-install: error: embedding is not possible, but this is required for RAID and LVM install.
The best resource for Chrome hardware is https://mrchromebox.tech/#devmode.
It seems like getting to a shell in order to install alternate firmware requires having ChromeOS installed. It is possible to create USB flash installation media using the following script and list of devices:
- https://dl.google.com/dl/edgedl/chromeos/recovery/linux_recovery.sh
- https://dl.google.com/dl/edgedl/chromeos/recovery/recovery.conf
I didn't trust running the script with super user privileges so I ran dd
manually as follows:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# See https://fedoramagazine.org/how-to-set-up-a-tftp-server-on-fedora/ | |
sudo dnf install tftp-server | |
sudo systemctl enable tftp | |
sudo systemctl start tftp | |
sudo firewall-cmd --add-service=tftp --perm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FILE(GLOB PUBLIC_HEADERS ../include/*.h) | |
FILE(GLOB PUBLIC_COMMON_HEADERS ../include/common/*.h) | |
FILE(GLOB PUBLIC_MESSAGES_HEADERS ../include/messages/*.h) | |
add_library(foo STATIC ...) | |
set_property(TARGET foo APPEND PROPERTY PUBLIC_HEADER "${PUBLIC_HEADERS}") | |
set_property(TARGET foo APPEND PROPERTY PUBLIC_HEADER "${PUBLIC_COMMON_HEADERS}") | |
set_property(TARGET foo APPEND PROPERTY PUBLIC_HEADER "${PUBLIC_MESSAGES_HEADERS}") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From e95f003a96096f7d8602ad2edaf1dd0bf4e27c45 Mon Sep 17 00:00:00 2001 | |
From: Philip Molloy <philip@philipmolloy.com> | |
Date: Wed, 28 Aug 2019 21:05:11 -0400 | |
Subject: [PATCH] Load a redundant environment from EEPROM | |
--- | |
env/eeprom.c | 128 +++++++++++++-------------------------------------- | |
1 file changed, 31 insertions(+), 97 deletions(-) | |
diff --git a/env/eeprom.c b/env/eeprom.c |
NewerOlder