Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How do I know what kernel version I am building when using compile.sh?

Featured Replies

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

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'

 

 

 

 

  • Author

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

 

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.