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 to make custom image without compiling kernel?

Featured Replies

I apologize if this is a basic question.  I'm trying to make a minimal Orange Pi Zero 3 Trixie image with a btrfs file system and NetworkManager for the networking stack using Docker without having to compile a new kernel (i.e., I just want to use the precompiled kernel found in the CSC version).

 

I created a `config-myimage.conf` file under `build/userpatches`:

 

BOARD=orangepizero3
BRANCH=current
RELEASE=trixie
CLEAN_LEVEL=cache
KERNEL_CONFIGURE=no
BUILD_KSRC=no
BUILD_MINIMAL=yes
NETWORKING_STACK=network-manager
DOCKER_ARMBIAN_BASE_IMAGE=ubuntu:jammy
ROOTFS_TYPE=btrfs
BTRFS_COMPRESSION=zlib
CONSOLE_AUTOLOGIN=yes
#BOOTSIZE=96
# need larger boot size to prevent 'disk out of space'
# on kernel upgrade
BOOTSIZE=256
COMPRESS_OUTPUTIMAGE='sha,xz'
EXTRAWIFI=yes

function user_config__010_modify_package_list() {
    # adds additional packages to the package cache
    add_packages_to_rootfs btrfs-progs neovim pmount nmap tmux
    # edit this list to remove packages from cache
    remove_packages nano
}

 

I then ran `./compile.sh myimage`, but it launches into kernel compilation. 

 

I did this once before uisng bookworm, but I can't remember how....

2 hours ago, jimg said:
CLEAN_LEVEL=cache

Why? Will cause recompilation on every build

2 hours ago, jimg said:
BUILD_KSRC=no

This does not exist anymore IIRC.

2 hours ago, jimg said:
DOCKER_ARMBIAN_BASE_IMAGE=ubuntu:jammy

Non-standard docker image can cause rebuild since it is now based on Noble.

2 hours ago, jimg said:
CONSOLE_AUTOLOGIN=yes

This is not needed since it is default behavior.

2 hours ago, jimg said:
EXTRAWIFI=yes

Also unneeded since default is yes already.

  • Author
18 hours ago, Werner said:
20 hours ago, jimg said:
DOCKER_ARMBIAN_BASE_IMAGE=ubuntu:jammy

Non-standard docker image can cause rebuild since it is now based on Noble.

 

Thanks for the information, @Werner.  That was all useful to know.

 

I removed the attributes you noted and tried building again.  (FWIW, removing the DOCKER_ARMBIAN_BASE_IMAGE line using a fresh docker image (no cache)still defaulted to Jammy, not Noble. ) The final image turned out OK, but still required compilation.  Is this because the target is Trixie (not Bookworm) which is still unsupported, or is it just not possible now to create a custom image without also compiling a kernel?

Edited by jimg
added note about Jammy still is the defualt

  • Author
1 hour ago, laibsch said:

Please be aware that trixie is as of now still unsupported

 

Yes, I'm aware of that.  I wanted to try it because it has a more up-to-date version of Podman, and will likely become stable by the end of the year.

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.