Skip to main content

Building Hanlon Micro-Kernel (MK)

I am posting a quick cookbook on creating hanlon microkernel for easy reference. Detailed information on how the microkernel organized and build along with details on each of the command listed here can be found on git hanlon microkernel wiki

 

1. Install dependencies

sudo apt-get install squashfs-tools -y
sudo apt-get install -y fakeroot
sudo apt-get install p7zip-full -y
sudo apt-get install curl -y

 

2. Install Ruby (I prefer using rvm)

\curl -sSL https://get.rvm.io | bash -s stable --ruby
source /home/user/.rvm/scripts/rvm

 

3. Clone hanlon micro-kernel project into your working directory (my directory ~/wspace/hanlon/hanlon-mk)

cd
mkdir wspace
mkdir hanlon
git clone hanlon-mk
cd hanlon-mk

 

4. Clone hanlon micro-kernel project into your working directory (my directory ~/wspace/hanlon/hanlon-mk)

cd
mkdir wspace
mkdir hanlon
git clone hanlon-mk

 

5. Create bundle file: This would create a temporary tar file containing all necessary files to complete iso creation process

cd hanlon-mk
./build-bundle-file.sh -d -t test1234 -b additional-build-files/builtin-extensions.lst -m additional-build-files/mirror-extensions.lst

This would create hanlon-microkernal-bundle-<mode>.tar.gz. Mode of the file depends on dev/debug/prod switch selected with build-bundle-file.sh

 

6. Create iso file structure with tar file

cd bundle_files
tar zxvf hanlon-microkernel-bundle-debug.tar.gz
fakeroot ./build_initial_directories.sh

This would create a directory structure to be used for the microkernel iso file. build_initial_directories.sh should be run as root. Because I do not prefer installing ruby at root, I am using fakeroot to work around the issue.

 

7. Create final iso file

./rebuild_iso.sh
Build the mk iso (in my case it is hnl_mk_debug-image.2.0.0+2-g99e078f.iso). File is naming follows the convention hnl_mk_<mode>-image.<version>-<git-stamp>.iso

Comments

Popular posts from this blog

Machine learning challenges with Imbalanced Data

For many real world machine learning problem we see an imbalance in the data where one class under represented in relative to others. This leads to mis-classification of elements between classes. The cost of mis-classification is often unknown at learning time and can be far too high. We often see this type of imbalanced classification scenarios in fraud/intrusion detection, medical diagnosis/monitoring, bio-informatics, text categorization and et al. To better understand the problem, consider the “Mammography Data Set,” a collection of images acquired from a series of mammography examinations performed on a set of distinct patients. For such a data set, the natural classes that arise are “Positive” or “Negative” for an image representative of a “cancerous” or “healthy” patient, respectively. From experience, one would expect the number of noncancerous patients to exceed greatly the number of cancerous patients; indeed, this data set contains 10,923 “Negative” (majority class) and

Infra store – the next IT marketplace

We are all familiar with the Apple App Store or Google Play Store we visit every day to download apps, games and necessary updates for our phones and tablets. The app store model revolutionized the marketplace idea, making it easy for both software vendors and consumers to publish and install software without the hassles of software building, distribution and deployment. Read further on CSC HyperThink

Do we know the enterprise IT challenges...???

Last night during the dinner chat with one of my old school pal, we stumbled on the topic of current issues that enterprises are stuck with. It went on almost for 30 mins. But what made it less interesting to me is that whole discussion was around cost cutting, our sourcing, rationalization etc., It is really boring, we are still taking about the tip of iceberg. But the question is due we really know what the real challenges are. I am not talking about a laundry list with 30/40/50 items. I am looking why we really have those items? (whatever the count is). I could not get this out of mind and started listing, order, consolidating, prioritizing those items to make sure I am completely confident that as a consultant I am doubly sure about them. Of course, it is debatable. But this is what I think are core problem and rest of list is the symptoms. 1. Dynamic market conditions are forcing business to adopt rapidly while IT is able to respond to this 2. Day by day IT is becoming exp