Jump to content

Recommended Posts

Posted

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

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

Posted (edited)
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
Posted
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...

×   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