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.

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

Featured Replies

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
EXTERNAL="no"
EXTERNAL_NEW="no"
KERNEL_ONLY="no"
BOARD="orangepizero"


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


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


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

 

Attached:

customize-image.sh

Edited by lrrr
Move code from codeblock to attached file

  • Author

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.

customize-image.sh

lib.config

lib.sh

Guest
This topic is now closed to further replies.

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.