onie-nos-install http://192.168.0.4:8000/ubuntu-focal-amd64-mini-ONIE.bin
https://github.com/netbergtw/files/tree/master/debian-bsps
Model-dependent repos:
Please unplug the USB drive if inserted or follow debian-preseed.txt
# Due notably to potential USB sticks, the location of the MBR can not be # determined safely in general, so this needs to be specified: #d-i grub-installer/bootdev string /dev/sdb # To install to the first device (assuming it is not a USB stick): d-i grub-installer/bootdev string default
Please wipe the drive clean if a NOS was installed.
We are going through a standard ONIE procedure.
Please refer to this article if ONIE is missing.
You can make your own ONIE image with the preseed file (https://github.com/opencomputeproject/onie/blob/master/contrib/debian-iso/README.md)
or get a ready to use Ubuntu 20.04 image:
Install OS with the onie-nos-install command from a remote or local source (don’t forget to put debian-preseed.txt near the image).
onie-nos-install http://192.168.0.4:8000/ubuntu-focal-amd64-mini-ONIE.bin
Select the proper network device:
e.g. enp8s0: Intel Corporation I210 Gigabit Network Connection.
Agree to a weak password (onie/onie is the default user/password).
sudo apt update
sudo apt upgrade
sudo apt install --install-recommends linux-generic-hwe-20.04
sudo reboot
apt install openssh-server build-essential git i2c-tools
git clone https://github.com/opencomputeproject/oom.git
cd oom/optoe
echo "ccflags-y := -DLATEST_KERNEL" > Makefile
echo "obj-m := optoe.o" >> Makefile
make -C /lib/modules/$(uname -r)/build M=$(pwd) modules
make -C /lib/modules/$(uname -r)/build M=$(pwd) modules_install
depmod
wget https://github.com/netbergtw/files/raw/master/debian-bsps/aurora-710/i2c_utils.sh -O /usr/sbin/i2c_utils.sh
chmod +x /usr/sbin/i2c_utils.sh
With this, you can initialize the switch i2c tree:
i2c_utils.sh i2c_init
There are a lot of useful i2c_utils.sh options.
Just execute it without parameters to show all of them.
wget https://github.com/netbergtw/files/raw/master/debian-bsps/aurora-710/aurora-710-monitor.service -O /etc/systemd/system/aurora-710-monitor.service
wget https://github.com/netbergtw/files/raw/master/debian-bsps/aurora-710/aurora_710_monitor.sh -O /usr/sbin/aurora_710_monitor.sh
chmod +x /usr/sbin/aurora_710_monitor.sh
systemctl enable aurora-710-monitor
This script will automatically run during the system boot, start the i2c_init function, and control fans/LEDs.
Please refer to our FTP for instructions.