This comes alongside "Winter" as a famous TV show would say. . Mion is an interesting Operating System meant to run on network appliance. It is built on top of Yocto project and inherently share its root with Linux Open Embedded system. In order to learn more about the Operating system I invite you to read Mion project page.
Why consider such an OS you would say ? It actually boils down to:
- having a minimalistic Operating system with the smallest software footprint.
- predictable Operating System with the minimum software requirement
- A supported Operating System powered by a regular release cycle
While trying to reach a minimalistic image in order to run the RARE software, for now we only managed to have a 5Gb image (with INTEL SDE installed). We are confident that we can still slimmed down the image but times is running against us. The very initial Mion image has a size of 45Mbytes !
Mion will support multiple network equipments ranging from APS bf2556x-1t, bf6064x, Edgecore wedge100bf32x and wedge100bf65x and many more (Delta, asgvolt64 etc.)
In this article, we will present :
- how to build Mion from scratch
- how to install it on our favorites P4 switches (bf2556x-1t and wedge-100bf-32x)
[ #001 ] - Cookbook
Mion docs has an excellent getting started page. In this section we will emphasize how easy it is to build Mion. First, make sure you have a machine compliant to the "Build host" requirements. Install a pristine Debian 10 and you should be go to go ...
The above steps require you have a GitHub account and uploaded public key to your account. You'll also have to activate ssh-agent as the build script will fetch software from Git using SSH transport.
Even if the build process can be long depending on your build host, build duration can reach 30 minutes with a 32 cores machines. Subsequent builds will take significantly less time as a cache mechanism will avoid to to redo the whole build process.
Believe me, you are done !
Just wait the end of the build process and grab the freshly baked image.
Of course get onie-installer-x86_64-stordis_bf2556x_1t.bin image and you are good to go for next section
- Boot bf2556x-1t via ONIE rescue session
- put you Mion image at the root of a web server
Once the installation has finished, your system reboot and you'll be rewarded by Mion Grub welcome page:
And in just 1 minute you have installed a minimalistic OS on your bf2556x-1t. In this post we will stop here. However, in order to finalise the installation you'll to install INTEL P4 Software Development Environment as of course you'll want to run your P4 program on the bf2556x-1t. We will cover this subsequent installation in a subsequent post.
In this short article we saw:
- how to build Mion
- how to install Mion (process is the same on every ONIE based system: we tested bf2556x-1t, bf6064x wedge100bf-32x, wedge100bf-64x)
Please let us know if you want us to test your P4 platform with the RARE P4 software. We will then add it to the RARE Hardware Compatibility List (RARE HCL) !
(In that case you might have to arrange access to your P4 equipment or better ... Send us a sample ! )
Mion build is quite straightforward. As it share its root from Yocto, adding specificities related to your project is easy. Most probably a Bitbake recipe already exist and you'll just have to add a reference to the layer of your interest in Bitbake config file. First time build can be long and tedious if you have a small build host machine but subsequent build will be faster thanks to the sstate cache mechanism.
Last but not least, we covered only the base OS installation, now that you have a minimal OS required to manage your machine, you need to add specific drivers and software needed to run P4 programs on APS or WEDGE platform.