Jump to content

Proper way to test a customized kernel


Go to solution Solved by martinayotte,

Recommended Posts

Posted

Hello, Amrbian devs,

 

Thank you for the efforts first.

 

I'm fiddling with some of SBC including PineH64, Rock Pi4...

Sometimes, I have to provide a new kernel or add modules.

 

So after the kernel modules are installed. How can I edit boot loader to start it.

I discover /boot/boot.cmd and boot.scr contains a line "DO NOT EDIT THIS FILE"

 

So how can I start another kernel image? Is the init ramdisk is required?

Thank you.

Posted
3 hours ago, delius said:

So how can I start another kernel image? Is the init ramdisk is required?

If you used Armbian build scripts, it will produce a linux-image-*.deb, and when installed using "dpkg -i", it will take care of changing symbolic links in /boot and create new uInitrd file.

Posted
13 hours ago, martinayotte said:

If you used Armbian build scripts, it will produce a linux-image-*.deb, and when installed using "dpkg -i", it will take care of changing symbolic links in /boot and create new uInitrd file.

Sir, I appreciate your reply.

Does that deb file include a proper boot configuration to boot the kernel within?

And what if I built a kernel individually out of Armbian building environment, how can I make it work with existing Armbian system?

 

Thank you.

  • Solution
Posted
9 hours ago, delius said:

Does that deb file include a proper boot configuration to boot the kernel within?

There is no "special" boot configuration since U-Boot rely on the 3 symbolic links which point to proper Image/uInitrd/dts .

9 hours ago, delius said:

And what if I built a kernel individually out of Armbian building environment, how can I make it work with existing Armbian system?

It is possible, but then you have to manually install every things and create the symbolic links as well as creating uInitrd using "mkimage".

It is much more easier to use Armbian DEBs ...

Posted

Hi, Martinayotte,

 

Thank you for helping me clear things out.

I will see what I can do with this kernel. 

Consider this topic closed. 

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines