Forum Discussion
Hello Nate,
We don’t fully understand your question.
Do you want to boot Linux using prebuilt kernel from Redhat?
If so, why do you need the prebuilt kernel instead of built kernel from source?
Thanks
- natehoward3 years ago
New Contributor
Hi there,
The company that I work for asks to use a stock configuration of Linux so it's commercially supported so we can sell to our clients. If any security patches and vulnerabilities are found in the kernel and it needs patching, we do not want this to be our responsibility to rebuild the kernel every time. And therefore, would like to run stock RHEL.
In regards to the original post, I made a lot of progress determining what the root problem was. The main issue being the prebuilt kernel has mmc as a kernel module marked as "M" not baked into the kernel with "Y". This means that unless the rootfs is loaded, it wont ever find the mmc module on the SD card and therefore wont boot. Classic catch 22 problem.
I partially solved this using an initramfs with the kernel, device tree and rootfs baked into a singular .itb blob. Now the device loads the kernel properly, finds the initramfs and starts loading system modules like systemd. However, there is an issue im currently resolving regarding building a working initramfs image using dracut.
I'll update this thread if I finally get it to boot into a shell, still learning a lot about generating cpio initramfs images. If anyone knows a method to properly generate it from a rootfs.tar.gz archive or working RHEL VM please let me know. There might be a missing parameter call to dracut.
Best
Nate