sudo apt update && sudo apt upgrade
This file contains hidden or 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
| #!/bin/sh | |
| set -x | |
| NAME=thingy | |
| MIRROR=ftp.at.debian.org/debian | |
| tmpdir=$(mktemp -p "${TMPDIR:-/tmp/}" -d $NAME-XXXX) || exit 1 | |
| #tmpdir=/tmp/thingy | |
| #mkdir -p "$tmpdir" |
This file contains hidden or 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
| // gcc aml-upgrade-package-extract.c -o aml-upgrade-package-extract | |
| // ./aml-upgrade-package-extract update-usb-burning-mode.img | |
| // /dev/sdX - fat32 sdcard | |
| // Make bootable Android update: | |
| // dd if=aml_sdc_burn.UBOOT bs=1 count=442 of=/dev/sdX | |
| // dd if=aml_sdc_burn.UBOOT seek=1 skip=1 bs=512 of=/dev/sdX | |
| // sync |
Below are the steps to get an ARM64 version of Ubuntu running in the QEMU emulator on Windows 10.
Install for Windows from https://qemu.weilnetz.de/w64/ (I used qemu-w64-setup-20181211.exe)
Put C:\Program Files\qemu on your PATH, and run the below to check it's working (which will list out
the CPUs the AArch64 emulator can emulate):
qemu-system-aarch64 -M virt -cpu help
This file contains hidden or 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-meson.com/doku.php#howto | |
| make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- defconfig | |
| make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu- Image dtbs | |
| mkimage -A arm64 -O linux -T kernel -C none -a 0x1080000 -e 0x1080000 -n linux-next -d arch/arm64/boot/Image ../uImage | |
| cp arch/arm64/boot/dts/amlogic/meson-gxbb-wetek-play2.dtb ../uImage BOOT_PARTITION | |
| # ROOTFS_PARTITION can be any arm64 Linux root filesystem |
This file contains hidden or 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
| #!/bin/sh | |
| set -e | |
| set -o noglob | |
| # Usage: ./install.sh [options] | |
| # | |
| # Example: | |
| # Installing on first master node run: | |
| # ./install --num 3 --vip 192.168.2.10 --iface eth0 | |
| # Installing on other master nodes run: |
This file contains hidden or 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
| #!/bin/bash | |
| curl -sfL https://get.k3s.io | INSTALL_K3S_EXEC='--flannel-backend=none --no-flannel' sh -s - \ | |
| --disable-network-policy \ | |
| --disable "servicelb" \ | |
| --disable "traefik" \ | |
| --disable "metrics-server" | |
| sudo cat /etc/rancher/k3s/k3s.yaml > ~/.kube/config | |
| kubectl create -f https://raw.githubusercontent.com/cilium/cilium/v1.7/install/kubernetes/quick-install.yaml |
default_kernel_opts="nomodeset quiet rootfstype=ext4 cgroup_enable=cpuset cgroup_memory=1 cgroup_enable=memory consoleblank=120"
update-extlinux && reboot
curl -sfL https://get.k3s.io | INSTALL_k3S_EXEC='--disable servicelb --no-deploy traefik --flannel-backend=none --disable-network-policy' sh -