Buy why not use the kernels that are already available and build on it rather than trying to re-invent the wheel. Even Apple uses the Linux kernel