Jump to content

Recommended Posts

Posted (edited)

i.e.

git clone -b main --depth 1 https://github.com/armbian/build.git
cd build
# I want to find out what kernel my board is building befor here.
./compile.sh kernel BOARD=orangepi5b BRANCH=vendor EXPERT=yes PREFER_DOCKER=yes KERNEL_GIT=shallow

I need to do this so I can apply patches based on the selected kernel verison (e.g. 5.10, 6.1, 6.12) as they are all different patches due to Makefile changes.

I don't see a clean way to do this with the builder unless I build the kernel first, search  the kernel sources and then determine the kernel that way.

Edited by Kraust
Posted

Look at your board config file:  config/boards/orangepi5b.csc

In there you will find the board family, which in your case is:

BOARDFAMILY="rockchip-rk3588"

 

Then look at the corresponding board family config file:

config/sources/families/rockchip-rk3588.conf

 

There you will find a section for each branch (i.e vendor, current, edge) that will specify which kernel source is used:

For BRANCH=vendor that would currently be:

        KERNELSOURCE='https://github.com/armbian/linux-rockchip.git'
        KERNELBRANCH='branch:rk-6.1-rkr5.1'
        KERNELPATCHDIR='rk35xx-vendor-6.1'

 

 

 

 

Posted

I found an incredibly roundabout way of doing this.

        ./compile.sh \
        kernel \
        BOARD=$OPT_ARMBIAN_BOARD \
        BRANCH=$OPT_ARMBIAN_KERNEL \
        CLEAN_LEVEL=make,alldebs,images,cache \
        EXPERT=yes \
        PREFER_DOCKER=yes \
        KERNEL_GIT=shallow

	KERNEL_CONFIG=$(find $KERNEL_DIR/cache/sources/linux-kernel-worktree -name .config)
    if [ ! -f $KERNEL_CONFIG ]
    then
        echo "Failed to find .config"
        exit 1
    fi
    FULL_KERNEL_VERSION=$(cat $KERNEL_CONFIG | grep "Kernel Configuration" | grep -oE '[0-9]+\.[0-9]+\.[0-9]+')
    if [ "$FULL_KERNEL_VERSION" == "" ]
    then
        echo "Failed to get full kernel version."
        exit 1
    fi

 

Posted

Hi,

If you want to know which kernel is used for your build, just run:

./compile.sh inventory-boards

This will take some time.

Open the resulting .csv file, which will contain all combinations possible.

Groetjes,

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...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines