Commit Graph

53 Commits

Author SHA1 Message Date
Duncan Bellamy
4a689f8b89
change DEFAULT_BOOTSIZE to 256 for nand-sata-install and debootstrap.sh (#2437) 2020-12-10 21:17:13 +01:00
Igor Pecovnik
514b5f1535 Remove hardcoded user group 2020-12-03 01:37:45 +01:00
Igor Pečovnik
3ddd91de71
Add several small improvements for building all images (#2365)
* Add several improvements for build all images / kernels
* More small fixes
* Adjust version
2020-11-22 08:54:41 +01:00
Piotr Szczepanik
b8af894293
Fixed update-initramfs optimisation for ubuntu targets (#2348) 2020-11-15 15:45:22 +01:00
Igor Pečovnik
a78eaa5aaf
Improve creating images from repository (#2340)
* Few cosmetic changes and updated configs
* Improve repository install
* Update configs
* Adjust configs
2020-11-14 19:29:39 +01:00
Igor Pečovnik
694b2313dd
Cosmetical: exchange mv with rsync (#2329)
* Cosmetical: exchange mv with rsync

Also make build script output less chatty to console. Show SD and mount size % only.

* Leave output here
2020-11-11 19:25:51 +01:00
Piotr Szczepanik
961064ed23
Fix disable/enable initramfs-tools calls and package list updates 2020-11-07 15:25:39 +01:00
Piotr Szczepanik
f9642f3882
Disable multiple update-initramfs runs while building image (#2296) 2020-11-06 10:52:53 +01:00
iav
af7aa141c3
Add xfs filesystem for root creation (#2294) 2020-11-01 08:24:08 +01:00
Igor Pečovnik
1275f118e2
Change desktop cache name, add support for automated cached creation / switching (#2257) 2020-10-16 15:25:15 +02:00
Igor Pečovnik
448484f6d8
Change Ubuntu Eoan to Ubuntu Groovy and enable it as CSC (#2254)
* Change Ubuntu Eoan to Ubuntu Groovy and enable it as CSC

Tested CLI and desktop image, but needs cache creation and repository before it will be possible to build without error.

* Update Groovy compiler for chroot

* Adjust pkg dependencies for groovy

Sadly htop doesn't build
2020-10-14 22:50:11 +02:00
iav
599dd2a8cb
Don't delete /boot/armbianEnv.txt file at least for meson64 (#2252)
* Don't delete /boot/armbianEnv.txt file at least for meson64
fix for #2249 ODroid-N2 armbian-config-->hardware menu not work

* Update meson.txt

* Update boot-odroid-n2.ini

Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
2020-10-13 20:34:45 +02:00
iav
04292b06c8
replace apt with apt-get (#2214)
* replace apt with apt-get
APT is not meant to be used in scripts: https://manpages.debian.org/stretch/apt/apt.8.en.html#SCRIPT_USAGE_AND_DIFFERENCES_FROM_OTHER_APT_TOOLS

* Add apt-get to desktop too

Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
2020-09-22 19:04:10 +02:00
iav
ad3f403246
set Btrfs compression creation time only (#2169)
* set default btrfs compression at image creation to zlib according to
https://github.com/armbian/build/pull/2163#issuecomment-683444245

* never set compression in /etc/fstab for btrfs root

* adjust comment
2020-08-31 16:31:15 +02:00
iav
0db07f6137
respect BTRFS_COMPRESSION parameter (#2163) 2020-08-28 18:44:37 +02:00
Igor Pecovnik
3a5b572c0f Improve multithreaded building, few changes for BUILD_ALL and removing debug code from MOTD 2020-08-18 22:31:07 +02:00
Igor Pečovnik
6ff4813b60
Reverint Shelcheck on this file ... not able to find all errors in a decent time. (#2067) 2020-06-25 20:19:37 +02:00
Manuel Rüger
4555a7aed5
Shellcheck fix4 (#2061)
* compilation.sh: Lint with shellcheck

* configuration.sh: Lint with shellcheck

* debootstrap.sh: Lint via shellcheck

* Update configuration.sh

* Update compilation.sh

Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
2020-06-25 11:07:24 +02:00
The-going
c29fff8590
Revert "Fix file encoding of the locale generator (#2000)" (#2044)
This (bugfix) is needed on Debian to suppress
multiple locales warnings ... Buster is affected

This reverts commit 069afc183a.
2020-06-20 21:23:57 +02:00
Igor Pečovnik
ca67855553
Add GPT partition table support (#2015)
* Add GPT parition table support               Leave unchanged / mbr by default since GPT doesn't works everywhere.

* Accept ROOTFS_PARTITION_TABLE as a parameter

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>

* Change variable name

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>

* Update README.md
2020-06-14 23:03:58 +02:00
The-going
069afc183a
Fix file encoding of the locale generator (#2000)
This is a minimal fix for the correct display
of characters in the applications, especially the console.

For example, if the locale-gen command is only for one locale
locale-gen ru_RU.UTF-8
Then the console application MC instead of a line in the frame outputs:

@
@@@@@@@@@@@@@@@@@@
@   README.md
@@@@@@@@@@@@@@@@@@
@
@

Setting variables to LC_ALL=C LANG=C is not necessary in this construction.
The line with the editor is not needed.
The 'locale-gen en_US.UTF-8 xx_XX.UTF-8' command
will fix this file itself.
2020-06-10 18:38:10 +02:00
Werner
72e9782493
Revert "Implement a possible workaround for initird corruption (#2004)" (#2005)
This reverts commit a1a20f4572.
2020-06-03 23:30:43 +02:00
Igor Pečovnik
a1a20f4572
Implement a possible workaround for initird corruption (#2004)
Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2020-06-02 16:40:41 +02:00
Igor Pečovnik
0832201958
Rework of image signing. (#1995)
* Rework of image signing. We compress the image first, then signing and shaing that.

Based on @belfastraven work https://github.com/belfastraven/build/blob/pre-new-doc/lib/debootstrap.sh

* Uncompressed images can be removed

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2020-05-28 15:52:44 +02:00
zciendor
a0d6f21ac7
various minor fixes (#1993)
* fix permisson denied error happening in line 79

`mktemp` creates files with `-rw-------` (on Ubuntu bionic at least), which causes `line 79` to throw a permission denied error if the file isn't world readable.

* fixes umount error caused by single quotes

* force metadata duplication for btrfs root

Without this change metadata duplication is automatically turned off for `mkfs.btrfs` when the **build system** has a SSD drive.
However, since Armbian image is most likely flashed to a SD card afterwards, the drive type of the build host system should not be the deciding factor.
Metadata duplication is a good idea (better reliability) to have on a SD card.

From `man mkfs.btrfs`:
```
-m|--metadata <profile>
           Specify the profile for the metadata block groups. Valid values are raid0, raid1, raid5, raid6, raid10, single or dup, (case does not matter).

           A single device filesystem will default to DUP, unless a SSD is detected. Then it will default to single.
```
2020-05-28 10:52:54 +02:00
Werner
f78591db5b
Fixes building on Linux Mint Tricia (Bionic based) (#1914)
* Replace apt with apt-get unless in chroot
* Improve support for Buster and Mint Debbie

Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
2020-04-25 21:25:05 +02:00
Przemysław Sztoch
d07647e5ce
Better logging for external userpatches path and generate a lot of empty folders only once (#1897)
* Better logging for external userpatches path.
* Genrate a lot of empty folders only once
* Better handling for COMPRESS_OUTPUTIMAGE
2020-04-20 08:39:29 +02:00
Igor Pecovnik
207548cb8f
Improve RAW image compressing routines
Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2020-04-12 22:28:37 +02:00
Igor Pečovnik
dd50c432f8
Bugfix - fixed wrong fs cache creation when forcing creation (#1869) 2020-04-05 14:05:10 +02:00
Igor Pecovnik
b607b666b3
Improve XZ compression support
Cleanup after upload, download scripts also supports this format

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2020-04-04 21:04:34 +02:00
Igor Pečovnik
874149e6ad
Add support for xz image compression format (#1868)
Our next default.
2020-04-04 18:29:42 +02:00
Igor Pečovnik
2b3997df53
When seeking for rootfs cache files it also checks previous version. This solves problem described in [AR-166] (#1790) 2020-02-09 10:25:41 +01:00
Igor Pečovnik
89a5a394ba
Add exceptions to support native Ubuntu 20.04 building (#1764)
* Add exceptions to support native Ubuntu 20.04 building, fix small bug related to SD card write verification.

* Improve first install steps by installing Dialog and lsb_release first. This left out since we moved host install after we choose what we will do ... dialog is essential for this. Second we don't wait properly for APT manager to finish the process. Fixed with this commit

* Suppress output

* Update OdroidXU4 dev config & patches
2020-02-02 10:31:30 +01:00
zhangn1985
3e38b4b715 build optimize for upstream (#1713)
* add tuna debian-security mirror

Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>

* replace apt-get with apt

Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>

* speed up desktop build

Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>
2020-01-06 23:45:28 +01:00
zciendor
5c7e7c7235 fix for https://github.com/armbian/build/issues/1584 (#1723)
Since Debian buster the final `update-initramfs` call must be made
on the finished image where the final root device is mounted, else
`cryptsetup-initramfs` hooks fail to detect the root device.
2020-01-06 23:31:54 +01:00
Igor Pecovnik
8df3e98401 Add Debian 11 bullseye 2019-12-13 20:01:00 +01:00
Igor Pecovnik
6e54a48778 Exchange EOL Ubuntu Disco with Ubuntu Focal 20.04 LTS (development) 2019-12-12 15:51:42 +01:00
Igor Pečovnik
150ac0c2af
Remove K<4, change branches, new features (#1586)
AR-1 - Adding support category for distributions
AR-4 - Remove Allwinner legacy
AR-5 - Drop Udoo family and move Udoo board into newly created imx6 family
AR-9 - Rename sunxi-next to sunxi-legacy
AR-10 - Rename sunxi-dev to sunxi-current
AR-11 - Adding Radxa Rockpi S support
AR-13 - Rename rockchip64-default to rockchip64-legacy
AR-14 - Add rockchip64-current as mainline source
AR-15 - Drop Rockchip 4.19.y NEXT, current become 5.3.y
AR-16 - Rename RK3399 default to legacy
AR-17 - Rename Odroid XU4 next and default to legacy 4.14.y, add DEV 5.4.y
AR-18 - Add Odroid N2 current mainline
AR-19 - Move Odroid C1 to meson family
AR-20 - Rename mvebu64-default to mvebu64-legacy
AR-21 - Rename mvebu-default to mvebu-legacy
AR-22 - Rename mvebu-next to mvebu-current
AR-23 - Drop meson64 default and next, current becomes former DEV 5.3.y
AR-24 - Drop cubox family and move Cubox/Hummingboard boards under imx6
AR-26 - Adjust motd
AR-27 - Enabling distribution release status
AR-28 - Added new GCC compilers
AR-29 - Implementing Ubuntu Eoan
AR-30 - Add desktop packages per board or family
AR-31 - Remove (Ubuntu/Debian) distribution name from image filename
AR-32 - Move arch configs from configuration.sh to separate arm64 and armhf config files
AR-33 - Revision numbers for beta builds changed to day_in_the_year
AR-34 - Patches support linked patches
AR-35 - Break meson64 family into gxbb and gxl
AR-36 - Add Nanopineo2 Black
AR-38 - Upgrade option from old branches to new one via armbian-config
AR-41 - Show full timezone info
AR-43 - Merge Odroid N2 to meson64
AR-44 - Enable FORCE_BOOTSCRIPT_UPDATE for all builds
2019-11-19 23:25:39 +01:00
Igor Pecovnik
2f84cff50e
Fix Odroid N2, add upstream patches for rockchip-default
Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2019-09-02 07:01:44 +02:00
Igor Pečovnik
1221d59233
Build all targets RFC (#1515)
* Introducing build-all-ng
* Implementing REBUILD_IMAGES='board1,board2,...' for rebuilding certain images only
* Add optimisations when building kernels - only cycle trough needed targets. Adding variable for defining whether an image is build, otherwise only BSP is made.
* repository manipulating RFC
* Add bianco deb file that is added by default if repository is clean
* Switch to gpg2 signing method, small bugfix
* Create subdir for debs and debs-beta
* Synaptic bugfix: installing indexing tools https://forum.armbian.com/topic/8021-orange-pi-one-synaptic-package-manager-search-very-slow/?do=findComment&comment=74918
* add all modules by default to Odroid N2, but leave them commented
* Bugfix: not making any builds when selecting kernel_only
* Remove EXTERNAL=yes ... move armbian-config and armbian-firmware into main compilation area, drop others since they are deprecated anyway. This will also enable multi threaded images making
* Move armbian.list to create_sources_list function. Replace NTP by Chrony. Remove armbian-firmware from PACKAGE_LIST and RockPi 4A (#1528)
* Replace NTP by chrony. Remove installion of outdated armbian-firmware from reposity.
* added RockPi 4A
* New format for board config
* Fix Bluetooth dependencies for minimal package - add rfkill to family related installs
* Moving networkd-dispatcher from minimal image
* Cubox-i: update default config
* Improving umount process
* Add purgesource feature
* Add FULL_DESKTOP to install few more applications on top of our desktop - notebooks should * rk3399 default: adjust patches and configuration
* Enable full desktop on most powerfull boards and notebooks

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2019-09-01 22:13:13 +02:00
Igor Pečovnik
da903f2d65
Replace Etcher with dd + verify, tested under Docker (#1522)
* Replace Etcher with dd + verify, tested under Docker

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2019-09-01 00:12:36 +02:00
zhangn1985
e71c145cb7 move armbian source to create_sources_list (#1532)
1. move armbian source to create_sources_list
2. check DOWNLOAD_MIRROR
3. alse change prebuild rootfs's source list

Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>
2019-09-01 00:11:40 +02:00
Igor Pecovnik
29fc989c1b
Bugfix: improper BUILD_MINIMAL handling and fixing terrible synaptic performance https://forum.armbian.com/topic/7422-terrible-synaptic-performance/
Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2019-08-17 22:17:13 +02:00
Igor Pecovnik
737bd30d04
build_minimal related bugfixes. Cache didn't follow minimal filename
Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2019-08-17 09:10:20 +02:00
5kft
7a2bf78e10 increased the default boot partition size to 96MB (from 64MB) for multi-partition fs targets 2019-08-16 21:44:01 -07:00
Igor Pečovnik
f416c35c16
Adding minimal image (#1504)
* Minimal build setup (#1463)
* Netplan folder check & armbian-tools dependency on expect (and tcl) solved (#1464)
* Prevent netplan configration if it is not installed
* Resolved expect dependecy of armbian-tools
* More packages added for armbian-tools
* Added python3-apt and rsyslog to minimal installation
* Debootstrap variant doesn't play nice. We loose networking and it affects standard builds as well. Removing.
* Python-to-Bash conversion (#1470)
* Remove python3-apt dependency from BSP package, fix netplan error also on Disco and putting back varint=minbase ... tested Disco, Bionic
* Distinguish package list: *-minimal.list and *-desktop.list
* Enable Wireguard back which was removed by mistake. https://github.com/armbian/build/issues/1471
* Having minbase debootstrap variant for all will require further adjustements with current package base - backward compatibility. Minimal image is now Python free but need further testings ...
* Add wireless-regdb and crda to the pakage base, fix Ubuntu keyring warning while debootstrap.
* Add figlet to sort out missing fonts
* Moving few packages here and there. Bugfix when creating a cache package list
* Manually compared base images - they are the same with small insignificant difference. Minimal image has to be futher tuned
* Adjustements for bash powered lsb_release, adding some needed packages
* Fixed (no) network problems on Bionic/Disco
* Add rsync to debootstrap_list and few minor fixes
* Adjust text in lsb_release
* Olimex Micro A20: fix wrong boot config
* Remove duplicate depenedency
* Odroid C1: adjust kernel config
2019-08-16 19:21:12 +02:00
Becker Béla
e517d588a9 Disable ext4 options that don't work with u-boot (#1495)
Disable these mkfs options for all new distros
2019-08-02 20:02:54 -04:00
Igor Pecovnik
a169b1e750
Adjust rootfs cache number, fix packaging debugging
Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2019-08-01 10:45:31 +02:00
Igor Pecovnik
34a109fbf9
Typos & small bugfixes, odroidxu4 and mvebu64-default kernel adjustements + upstream kernel patches
Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2019-08-01 10:33:47 +02:00
zhangn1985
28c2d20c77 rootfs: update DNS for prebuilt rootfs (#1469)
defualt DNS for prebuilt rootfs is 1.0.0.1
when this DNS is not accessable, eg. due to proxy.

network operation in chroot will not available.

use alternative DNS in variable NAMESERVER.

Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>
2019-07-22 09:41:02 +02:00