aad4edd194a93c2dace76be1c5830f853cde43e25782c74c2cc855da0718cb0f
monok8s
Kubernetes image for Mono Gateway Development Kit
https://docs.mono.si/gateway-development-kit/getting-started
DISCLAIMER
USE AT YOUR OWN RISKS. I leverage ChatGPT heavily for this. I am testing them all by myself right now.
The device's dts files are located at here
- We need both
mono-gateway-dk-sdk.dtsandmono-gateway-dk.dtssince the sdk one includes the non-sdk one. - The actual dts being used is the
mono-gateway-dk-sdk.dts
Build
Find the latest package versions and update build.env
Then run
make release
Making sub stages
make build-base # The image the builds kernel and everything
make kernel # Builds our kernel from NXP
make initramfs
make itb # Builds out/board.itb (contains the kernel and the initramfs)
Architecture
- A/B deployment
- Read-only OS
Upgrade process
Rough idea
./configure
# - asks for some config for kubelet
# - Join a cluster? Start a cluster?
make release
# Copy the new image to the upgrade-scheduler
kubectl cp -n kube-system upgrade-scheduler:/tmp/upgrade.img
# Upgrade scheduler reads the file that issue a self-reboot
reboot
# uboot to boot into partition B
PENDING
tftp (network is required)
setenv ipaddr 10.0.0.153
setenv serverip 10.0.0.129
tftp 0x80000000 board.itb
USB Flashing
- Copy board.itb into an SDCard
- Copy
[RELEASE_NAME].img.gzinto an SDCard
usb start
usb tree
fatls usb 0:1 # For fat
ext4ls usb 0:1 # For ext4
fatload usb 0 0x80000000 board.itb
setenv bootargs "console=ttyS0,115200 earlycon=uart8250,mmio,0x21c0500 root=/dev/ram0 rootwait rw"
bootm 0x80000000
- Inside initramfs
mount /dev/sda /mnt
gunzip -c /mnt/[RELEASE_IMAGE].img.gz | dd of=/dev/mmcblk0
reboot -f
- If it boots, create the A/B deployment scheme
- (WORK IN PROGRESS)
Description
Kubernetes image for Mono Gateway Development Kit
https://docs.mono.si/gateway-development-kit/getting-started
Languages
Go
66.9%
Shell
22.9%
Makefile
6%
Dockerfile
4.2%