0
ITNavigate

How to build specific kernel

Recommended Posts

Officially, how do I convince my build environment that I still want to use 4.14?

 

When I just

./compile.sh BOARD=nanopiair BRANCH=next

it defaults to 4.17

 

What I have come up with is:

git checkout sunxi-4.14 && touch .ignore_changes

 

This results in a lot of patches failing 

What is the correct way please?

Share this post


Link to post
Share on other sites
18 hours ago, Igor said:

Yep, Read that and tried

LIB_TAG="sunxi-4.14"

but that stilled wanted to use 4.17.

 

I have since renamed my build directory, and started from scratch cloning your build environment again, and that seems to be working. Obviously, my local directory got corrupted. I'll let you know how the build goes.

Share this post


Link to post
Share on other sites
5 hours ago, ITNavigate said:

Obviously, my local directory got corrupted.


If you were editing something outside user area, this is normal. It will not change branches ... and overwrite your changes. Perhaps we need to add another warning.

Share this post


Link to post
Share on other sites
19 hours ago, Igor said:


If you were editing something outside user area, this is normal. It will not change branches ... and overwrite your changes. Perhaps we need to add another warning.

The only places I am *aware* that I had changed files were:

build/config/kernel/linux-sunxi-next.config (and then reverted)
build/patches/sunxi* (renamed to & from .disabled)
build/userpatches/
cache/sources/linux-mainline/

I'm not saying that these are definitely the only files that I changed, only the ones that I can remember.

colin@ArmbianDev:~/Armbian/build$ git status

didn't flag anything either.

 

However, all that aside, checking out an entire new build env from your github repo fixed all the errors for my basic build.

./compile.sh BOARD=nanopiair BRANCH=next LIB_TAG=sunxi-4.14 KERNEL_ONLY=yes KERNEL_CONFIGURE=yes

works flawlessly

 

However, I want a real-time sunxi-next kernel. The latest 4.14 RT patch that I can find at https://mirrors.edge.kernel.org/pub/linux/kernel/projects/rt/4.14/ is patch-4.14.52-rt34.patch. Is there any way that I can convince the compile script to only download 4.14.52, not 4.14.58?

Share this post


Link to post
Share on other sites
4 hours ago, ITNavigate said:

build/config/kernel/linux-sunxi-next.config

build/patches/sunxi

 


Those are build system areas. You copy linux-sunxi-next.config to build/userpatches/ and edit there ... the same goes with patches, copy to userpatches/kernel/sunxi-next (in this case) and rename to .patch ... those .disabled are for our internal needs.

 

4 hours ago, ITNavigate said:

Is there any way that I can convince the compile script to only download 4.14.52, not 4.14.58?


Sure it is. https://docs.armbian.com/Developer-Guide_User-Configurations/ 

 

Add: KERNELBRANCH='tag:v4.14.52' to build/userpatches/lib.config

Share this post


Link to post
Share on other sites
23 hours ago, Igor said:


Those are build system areas. You copy linux-sunxi-next.config to build/userpatches/ and edit there ... the same goes with patches, copy to userpatches/kernel/sunxi-next (in this case) and rename to .patch ... those .disabled are for our internal needs.

 


Sure it is. https://docs.armbian.com/Developer-Guide_User-Configurations/ 

 

Add: KERNELBRANCH='tag:v4.14.52' to build/userpatches/lib.config

OK. That is awesome!!

 

One problem, I can't find KERNELBRANCH documented :-(

Share this post


Link to post
Share on other sites
8 minutes ago, ITNavigate said:

One problem, I can't find KERNELBRANCH documented


Documentation is always behind/at minimum since we are low on resources. It is stated: "For a comprehensive list of available variables, look through lib/configuration.sh"

https://github.com/armbian/documentation/blob/master/docs/Developer-Guide_User-Configurations.md#user-provided-configuration

 

Feel free to make a pull request if you want to extend this part of the documentation.

Share this post


Link to post
Share on other sites
3 minutes ago, Igor said:


Documentation is always behind/at minimum since we are low on resources. It is stated: "For a comprehensive list of available variables, look through lib/configuration.sh"

https://github.com/armbian/documentation/blob/master/docs/Developer-Guide_User-Configurations.md#user-provided-configuration

 

Feel free to make a pull request if you want to extend this part of the documentation.

*Blush*

 

I'll see what I can do to help. Maybe a week before I can.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
0