User provided kernel config


dolphs
 Share

0

Recommended Posts

In this tutorial we build a custom .config for OrangePiOnePlus board,

eg: to remove blutooth, WiFi and or USB3.x support since the hardware is not onboard, alternatively you can adjust settings to your needs which is not in the default .config.

 

The section mentions, if file " userpatches/linux-$KERNELFAMILY-$KERNELBRANCH.config " exists, it will be used instead of default one from " config ".

This means for the OPiOnePlus :  " linux-sunxi64-dev.config " should be created,  but please note "dev" is just one of the three options available, which are:  " current ",  " legacy " and  " dev "

The default config files are located in : " /armbian/config/kernel " and thus also holds a "linux-sunxi64-dev.config " config file.

 

#

#If user-provided kernel .config file IS NOT present yet

#

cd ~

git clone --depth 1 https://github.com/armbian/build armbian

cd armbian
./compile.sh BRANCH=dev RELEASE=buster BUILD_MINIMAL=yes BUILD_DESKTOP=no KERNEL_ONLY=no KERNEL_CONFIGURE=yes EXTRAWIFI=no BOARD=orangepioneplus

 


Yet rename ".config" and Save to " ~/userpatches/linux-sunxi64-dev.config " , find attached a screenshot

 

 


#

#If user-provided kernel .config file IS present

#

<script>
cp -p ~/armbian/userpatches/linux-sunxi64-dev.config ~/
sudo rm -rf armbian

git clone --depth 1 https://github.com/armbian/build armbian
mkdir ~/armbian/userpatches
cp -p ~/linux-sunxi64-dev.config ~/armbian/userpatches/
</script>

 

Above can be scripted so you do not need to worry if for some reason you need to remove and rebuild your " armbian " directory from scratch

 

 

Rest would be ( assuming your kernel has been customised to your needs ):

 

cd armbian

./compile.sh BRANCH=dev RELEASE=buster BUILD_MINIMAL=yes BUILD_DESKTOP=no KERNEL_ONLY=no KERNEL_CONFIGURE=no EXTRAWIFI=no BOARD=orangepioneplus

 

 

 

Hope this addition to user-provided-kernel-config explains the idea " in depth " .

Happy configuring :-)

 

 

config-file.jpg

Link to post
Share on other sites

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

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