This repository contains the boot scripts for EdgeNet's bare metal nodes.
N2 boards have three main memories:
- A 8MB flash SPI with petitboot preinstalled
- A eMMC slot
- A SD slot
Our current boot procedure is as follows:
- petitboot loads the
boot/odroid-n2.sh
script from GitHub. - The script fetch a minimal Ubuntu image and write it to the eMMC.
- petitboot boots from the eMMC.
This procedure is currently repeated on every boot.
- Set the
MMC/SPI
switch at the rear of the board toSPI
- Plug a keyboard and a screen, or connect via the serial port
- Plug an Ethernet cable and the power cord
- Initialize the hardware clock:
# Replace with the actual date and time
date -s "2022-06-08 21:59"
hwclock -w
- Set the boot script url:
fw_setenv petitboot,userscript https://odroid.edge-net.io/odroid-n2.sh
The provided URL is an alias to https://raw.githubusercontent.com/EdgeNet-project/hardware/main/boot/odroid-n2.sh
- Update petitboot (we require version
20220317
at-least):
pb-update
- Verify that the board runs the script
journalctl -fu edgenet
journalctl -fu kubelet