*Hello, i want to build a armbian image with a custom kernel version. I got some problem.
I read this topic and the following documentation :
- https://docs.armbian.com/Developer-Guide_Build-Options/
- https://docs.armbian.com/Developer-Guide_User-Configurations/
I want use this specific version : 5.4.45
So i have put in my "lib.conf" this line :
KERNELBRANCH="tag:v5.4.45"
Then i have try to build with these commands :
./compile.sh KERNEL_ONLY=no KERNEL_CONFIGURE=no INSTALL_HEADERS=yes BUILD_DESKTOP=yes BOARD=orangepizeroplus2-h3 RELEASE=buster COMPRESS_OUTPUTIMAGE=sha,gpg,img, BRANCH=current
./compile.sh EXPERT=yes KERNEL_ONLY=no KERNEL_CONFIGURE=no INSTALL_HEADERS=yes BUILD_DESKTOP=yes BOARD=orangepizeroplus2-h3 RELEASE=buster COMPRESS_OUTPUTIMAGE=sha,gpg,img BRANCH=dev
I got error, it seem that the kernel was not found:
[ o.k. ] Checking git sources [ linux-mainline v5.4.45 ]
[ .... ] Fetching updates
fatal: Couldn't find remote ref tags/v5.4.45
[ .... ] Checking out
error: pathspec 'FETCH_HEAD' did not match any file(s) known to git
[ o.k. ] Checking git sources [ sunxi-tools master ]
...
...
...
make: *** No rule to make target 'olddefconfig'. Stop.
[ error ] ERROR in function compile_kernel [ compilation.sh:414 ]
[ error ] Kernel was not built [ @host ]
[ o.k. ] Process terminated
By reading this topic, i have try this command, but it is seem not to be the good way to do this but the kernel was found:
./compile.sh KERNEL_ONLY=no KERNEL_CONFIGURE=no INSTALL_HEADERS=yes BUILD_DESKTOP=yes BOARD=orangepizeroplus2-h3 RELEASE=buster COMPRESS_OUTPUTIMAGE=sha,gpg,img BRANCH=next
but i still got an error at the end:
....
CC kernel/padata.o
CC kernel/crash_dump.o
CC kernel/jump_label.o
CC kernel/iomem.o
CC kernel/rseq.o
AR kernel/built-in.a
[ error ] ERROR in function compile_kernel [ compilation.sh:414 ]
[ error ] Kernel was not built [ @host ]
[ o.k. ] Process terminated
i have try with different additionnal LIB_TAG argument too : LIB_TAG=sunxi-5.5 or LIB_TAG=sunxi-5.3
"sunxi-5.4" tag seem missing.
It is possible to me to build armbian with a custom kernel version ? what setting i have miss ?
the branch "next" seem legacy, what is the recent way to do this ? (kernel is not fetch when BRANCH=dev)