Proper way to test a customized kernel


delius
 Share

0
Go to solution Solved by martinayotte,

Recommended Posts

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.

Link to post
Share on other sites

Armbian is a community driven open source project. Do you like to contribute your code?

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.

Link to post
Share on other sites

  • Solution
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 ...

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

0