How to build my own image or kernel?


Igor
 Share

17 17

Recommended Posts

Donate and support the project!

9 hours ago, vore76 said:

scripts/Makefile.lib:308: recipe for target 'arch/arm/dts/sun7i-a20-bananapi.dtb' failed
dts/Makefile:38: recipe for target 'arch-dtbs' failed
Makefile:1061: recipe for target 'dts/dt.dtb' failed
[ error ] ERROR in function compile_uboot [ compilation.sh:204 ]
[ error ] U-boot compilation failed 
[ o.k. ] Process terminated

 

 

Go to your output/debug/ folder and check the log files for more detailed information.

Link to post
Share on other sites

14 hours ago, Werner said:

 

Go to your output/debug/ folder and check the log files for more detailed information.

 

Hello!

The only useful stuff I can find is in "compilation.log"

Error: arch/arm/dts/.sun7i-a20-bananapi.dtb.pre.tmp:378.3-11 syntax error
FATAL ERROR: Unable to parse input tree
make[2]: *** [arch/arm/dts/sun7i-a20-bananapi.dtb] Error 1
make[1]: *** [arch-dtbs] Error 2
make: *** [dts/dt.dtb] Error 2

I'm using this for my private stuff. I can't afford to hire a person for this. But I will donate some money to the project as I already did in the past. If it's impossible to build something with the new kernel it's Ok.

Link to post
Share on other sites

Hi, 

The majority of users that are interested in building their own kernel are doing so because they have installed Ubuntu on their system and they wish to make a small change to the kernel for that system. In many cases the user just wants to make a kernel configuration change.

The purpose of this page is to give that user a minimum amount of information for them to meet the goal of making a simple change to the kernel, building it and installing their kernel. It is not intended to be the definitive guide to doing Ubuntu kernel development.

Link to post
Share on other sites

21 hours ago, lanefu said:

You are not right, I shouldn't create any sources folder.

This is stranch code from

build/lib/configuration.sh
 

if [[ -f $USERPATCHES_PATH/sources/families/$LINUXFAMILY.conf ]]; then

display_alert "Adding user provided $LINUXFAMILY overrides"

source "$USERPATCHES_PATH/sources/families/${LINUXFAMILY}.conf"

fi

 

But true code are in build/lib/compilation.sh
 

if [[ -f $USERPATCHES_PATH/$LINUXCONFIG.config ]]; then

display_alert "Using kernel config provided by user" "userpatches/$LINUXCONFIG.config" "info"

cp "${USERPATCHES_PATH}/${LINUXCONFIG}.config" .config

else

display_alert "Using kernel config file" "config/kernel/$LINUXCONFIG.config" "info"

cp "${SRC}/config/kernel/${LINUXCONFIG}.config" .config

fi

So for my Orange Pi 4 with my build script

./compile.sh  BOARD=orangepi4 BRANCH=current RELEASE=hirsute BUILD_MINIMAL=yes BUILD_DESKTOP=no KERNEL_ONLY=no KERNEL_CONFIGURE=yes  COMPRESS_OUTPUTIMAGE=sha,gpg,img BSPFREEZE=yes REPOSITORY_INSTALL="" EXTERNAL=no EXTRAWIFI=no AUFS=no WIREGUARD=no INSTALL_KSRC=yes OFFLINE_WORK=yes BSPFREEZE=yes

I need put linux-rockchip64-current.config into build/userpatches. To check that armbian get my file I look at console

 

Using kernel config provided by user

linux-rockchip64-current.config

Link to post
Share on other sites

hi @kentAVR

Sorry I see that the confusion was now.  It was around user provided Kernel Configuration vs user provide Kernel Source Config.

here's an example of a kernel source config you could override.. https://github.com/armbian/build/blob/master/config/sources/families/rockchip64.conf

and yes, yourre correct, the pattern for providing a kernel build config in the top of the userpatches/ folder following the appropriate naming convention.

image.png

Link to post
Share on other sites

menuconfig is strange magic!

 

Look!

 

1) I set my settings of kernel.

2) I save my settings of kernel to file /home/a/Documents/myArmbians/8armbian/linux-rockchip64-current.config

3) I load settings from /home/a/Documents/myArmbians/8armbian/linux-rockchip64-current.config

4) I verify settings and its ok

5) I do Exit, armbian save my settings (and block file) and write me

[ o.k. ] Exporting new kernel config [ /home/a/Documents/myArmbians/8armbian/build/output/config/linux-rockchip64-current.config ]

6) I am going to file from 5) and verify and... My settings is reseted! WTF?
 

So right magic way is:

1) I set my settings of kernel.

2) I save my settings of kernel to file /home/a/Documents/myArmbians/8armbian/linux-rockchip64-current.config

3) Exit and STOP (Ctrl+Z) armbian build system.

4) put file from step 2) to /home/a/Documents/myArmbians/8armbian/build/userpatches/linux-rockchip64-current.config

5) wating message from armbian

[ o.k. ] Exporting new kernel config [ /home/a/Documents/myArmbians/8armbian/build/output/config/linux-rockchip64-current.config ]

6) do not stop build! Just go to this file and verify. Usually it contains my settings.

 

P.S. I use Orange Pi 4B

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

17 17