How to add kernel to custom image?

Asked by Rob

Hi all,

I'm sorry if this question has already been asked, I've been struggling on my own for a while to get everything working... and I don't really have much of a clue as I'm relatively new to linux.

Basically, I can't install Ubuntu on my laptop because it doesn't see the emmc drive to reformat it. I installed Ubuntu on an SD card for the moment to try and work things out, I discovered that by adding the 5.13 kernel, Ubuntu (on the SD card) finally recognised my emmc drive.

I read about about someone having success with a similar model to my laptop (Lenovo 11ADA05) installing Manjaro with a custom live image using the 5.13 kernel. But I don't have much of a clue how to add the kernel to cubic, I don't really need to alter the image outside of being able to boot using a kernel that can read my emmc drive.

Any help would be truly appreciated!


Question information

English Edit question
Cubic Edit question
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Cubic PPA (cubic-wizard) said :

I'll assume the kernel you want to install is available in the repositories for the Ubuntu version you are customizing. (You didn't mention the version in your question).

See Option (A) in the answer to this question:

    "Why can't I see Kernel 5.3.0-18 files on the Kernels tab for Ubuntu 19.10?"

Remember to select the newly installed kernel on the Kernels tab on Cubic's Options page, so this kernel is also used to boot your ISO (in addition to being installed to disk when you install your customized ISO).

Revision history for this message
Kippykip (kippykip) said :

I think I just copied the initrd and vmlinuz files somewhere and pasted them in the custom-root/boot/ directory then it shows up as an option to use in the next page on Cubic

Revision history for this message
Cubic PPA (cubic-wizard) said :

That will work as long as you have a kernel that is compiled for your hardware, and as long as you have a matching pair of vmlinuz and initrd files.

Nevertheless, I suggest always executing the following after coping kernel files into /boot:

    $ update-initramfs -uk all

(Note that `apt install` always does this automatically when installing a kernel from the official repositories).

Can you help with this problem?

Provide an answer of your own, or ask Rob for more information if necessary.

To post a message you must log in.