customize-image.sh for orangepizero minimal network-install image

Recommended Posts


For anyone who wants a minimal "network-install" like image for orangepizero. Does this with the customize-image.sh and armbian build scripts.  Could be cleaner but would be much easier to just hack the build scripts.


I've tested with jessie and stretch, and with branches default, next, and dev. The image should boot up, get eth0 dhcp address, and have serial console on ttyS0.  Script option to remove systemd and use sysvinit.  Might be modded to work with other boards?


Set the following options and use the customize-image.sh.  If script breaks due to upstream changes, use last tested commit:  git checkout -f a66121


# required options for ./config-default.conf to prevent external packages

# required options for ./userpatches/lib.config to set minimal package install
PACKAGE_LIST="linux-base u-boot-tools initramfs-tools"

# to build stretch, set in ./userpatches/sources/sun8i.conf

# ./userpatches/customize-image.sh
WITHOUT_SYSTEMD=yes # yes for sysvinit, no for systemd.
SERIAL_CONSOLE=yes  # enable serial console with sysvinit




Edited by lrrr
Move code from codeblock to attached file

Share this post

Link to post
Share on other sites

Here is a slightly cleaner approach.  Download lib.config, lib.sh, customize-image.sh to userpatches.  Most options are already set in lib.config.  The resulting image is close to a basic chroot install with the minimal armbian packages needed for booting.


Options: REMOVE_SYSTEMD in customize-image.sh to use systemd or not.  PACKAGE_LIST* in lib.config will determine which armbian based configs are added to the image.


There are a few optimizations, that might be of interest, which are not included.  Some are located in the SDK under packages/bsp/common/usr/lib/armbian/*.  There is an example of one optimization in the customize-image.sh.


Only tested debian, with Orange Pi Zero and R1 boards.  Last git commit used: be0778b.




Share this post

Link to post
Share on other sites

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.

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.