Commit Graph

85 Commits

Author SHA1 Message Date
Przemysław Sztoch
bc0fbb85bc Add USERPATCHES_PATH optional setting to config file. (#1450)
Required if userpatches folder is conflicted between two different configs.
This is frequent and requires maintaining two copies of the builder.
2019-07-09 22:50:49 -04:00
Przemysław Sztoch
31b56af49f Default config as symlink and better kernel package metadata (#1446)
* Default config as symlink for comfort switching between several custom boards.

* Better metadata for kernel packages.

* Local changes with detailed git diff.

* Support for gz and bz2 compression (supported by balenaEtcher).
Support for generation sha without 7z compression.
Bug fix for current directory changing in 7z compression.

* Remove bzip2 and use fast pigz for gziping.

* Deleted typo with "gz" in 7z section.
Separated parameter for gpg.

* Information about exit command.
2019-07-06 22:35:42 +02:00
Igor Pecovnik
8ac17c0d6c [ general ] More bullet proof Aria2 default configuration. Removing torrent dl from default and force single source. There seems to be problems with multiple downloads at once in current version. 2019-06-02 21:44:56 +02:00
Igor Pečovnik
e8a79a85db Download with Aria2 (#1384)
* [ general ] Change Toolchain download method. Introduce torrent downloads by using Aria2. If torrent download fails it proceeds to download from servers. It can download from all mirrors at once, so download speed is dramatically increased. @mzhboy DOWNLOAD_MIRROR parameter is not needed here anymore. The same method is used to download rootfilesystem cache. Based on ideas from here https://github.com/armbian/build/pull/1364

* Added yet another mirror for speeding up the download process, few small adjustements for torrent downloading

* Optimising direct download when DOWNLOAD_MIRROR is set to 'china' due to aria2 download limitations

* Both mirrors support HTTPS, changing
2019-06-02 19:49:59 +02:00
tcme
24afe02e88 Add oldcache to clean target comment
text from 376c1b0551/config/templates/config-example.conf (L10)
2019-05-31 12:01:20 +02:00
Igor Pečovnik
ff3bb4265f Merge pull request #1371 from mzhboy/ups
bug fixes and enhancements
2019-05-18 13:19:20 +02:00
may
2b584bb5e0 [general] new option DOWNLOAD_MIRROR to select download mirror
- set to `china` to use `mirrors.tuna.tsinghua.edu.cn`
 - leave it unset to use official source.
2019-05-15 18:47:29 +08:00
may
3407150565 [general.sh] change ntp server to pool.ntp.org 2019-05-15 17:33:23 +08:00
may
d56eb10c8d [general] remove duplicate download item 2019-05-15 17:33:12 +08:00
Igor Pecovnik
18f6113751 Revert "some enchantments for build scripts (#1364)"
This reverts commit 7f1c5b19cd.
2019-05-15 10:00:23 +02:00
mei
7f1c5b19cd some enchantments for build scripts (#1364)
* downloader aria2 replace curl

aria2 is a fast downloader and it can do much more than curl
 - skip download when target file exists
 - restart an interrupted download session
 - multithreading

* remove duplicate download item

* change btrfs compression to zstd and no force compression

* mkfs.btrfs options '--data single --metadata single --label btrfs'

disable dup(duplication) on microsd card

* [fstab] change mountopts[btrfs] compression method to zstd

lzo is no fater than zstd because the low 4k write performance on my
Samsung EVO+ 32GB microsd card.
meanwhile the best io size is above 32k based on benchmark

* replace dd with truncate, create a sparse disk image

* create btrfs subvolume by default

subvolume @ as rootfs, mount at /
subvolume @home as /home, mount at /home

* fix extraargs in armbianEnv.txt

* remove tmpfs mount on /tmp

A zram block device will mount on /tmp by
/usr/lib/armbian/armbian-zram-config.

And instead, mount /media as tmpfs.

* [rsync] add '--inplace' option, optimize for btrfs

* [general.sh] change ntp server to pool.ntp.org

* [general] new option to setup btrfs compression method

for support old and boring 3.x kernels

* [general] set btrfs space cache based kervel version

kernel version above 4.5 select 'v2' as default

* [btrfs] BTRFS_COMPRESSION accept compression ratio

BTRFS_COMPRESSION=zlib
BTRFS_COMPRESSION=zstd:5
BTRFS_COMPRESSION=zstd:12 are acceptable

* [btrfs] set btrfs compression to lzo when input is illegal

* [general] new option DOWNLOAD_MIRROR to select download mirror

current DOWNLOAD_MIRROR=china is used
the mirror is provided by tsinghua university

* [general] replace USE_MAINLINE_GOOGLE_MIRROR with MAINLINE_MIRROR

MAINLINE_MIRROR=google, use google provided mirror
MAINLINE_MIRROR=tuna, use tsinghua provided mirror
leave it empty, use official git.kernel.org

* fix btrfs default compression

* display $fscreateopt

* display_alert BTRFS_COMPRESSION

* try fix BTRFS_COMPRESSION variable not working

* debug fetch_from_repo

* configuration.sh debug BTRFS_COMPRESION

* update logic

* debug checking btrfs compression

* fix variable check,fix local variable usage

* [general] replace USE_MAINLINE_GOOGLE_MIRROR with MAINLINE_MIRROR

MAINLINE_MIRROR=google, use google provided mirror
MAINLINE_MIRROR=tuna, use tsinghua provided mirror
leave it empty, use official git.kernel.org

* [general] new option DOWNLOAD_MIRROR to select download mirror

current DOWNLOAD_MIRROR=china is used
the mirror is provided by tsinghua university

* Revert "try fix BTRFS_COMPRESSION variable not working"

This reverts commit 9814cfb054.

* Revert "debug fetch_from_repo"

This reverts commit ba571f0d89.

* add default compression method for mountopts

* remove useless var

* remove debug

* remove debug

* [general] set btrfs space cache based on kernel version

kernel version above 4.5 select 'v2' as default,
below 4.5 select 'v1' as default

* [general] reintroduce USE_MAINLINE_GOOGLE_MIRROR

* [general] case replaces 'if xx ;elif xxx;fi'

* [general] fix always downloading linux-firmware.git

clone to new dir 'linux-firmware-git' instead the old '$plugin_dir/lib/firmware'
,and then copy files as hardlinks.

* [general] create soft link instead of moving directory

* [btrfs] change rootfs subvolume name to @$RELEASE

now, the rootfs subvolume looks like @stretch,@bionic
it is possible to use different distribution in the same btrfs
partition.
2019-05-14 18:37:00 +02:00
Igor Pecovnik
552db3d323 Buster and Disco releated adjustements. 2019-05-13 07:47:29 +02:00
Igor Pecovnik
2bd7f8efbd [ Odroid N2 ] Added Odroid N2 with mods necessary to build from sources. Made a few tests builds ... it works at least as good as stock. 2019-05-10 10:27:01 +02:00
Igor Pecovnik
181c97055c [ buster / disco ] Disable extra-package creation and repository since its broken and represent lots of work 2019-04-20 17:32:14 +02:00
m][sko
24c81d1b05 Ubuntu 19.04 support (#1351)
* ubuntu 19.04 support

* ubuntu 19.04 support 2

* ubuntu 19.04 support 3

* add netplan config
2019-04-19 17:14:57 +02:00
Igor Pecovnik
b92f11e89a [ added Debian buster ] Initial commit. It builds, but its not tested nor fine tuned. 2019-04-17 21:39:54 +02:00
Igor Pecovnik
dfa23380ea [ general ] Linaro compilers update to 2019.02 2019-04-11 00:32:25 +02:00
Igor Pecovnik
b2eea32cb4 [ general ] Locales fix/workaround to make warning go away 2019-04-05 09:37:47 +02:00
The-going
eb528f6c9e Fix: incomplete cleaning of the source code.
Before you begin the compilation process,
we should always check and clean the sources.

If not, then warn the user.
2019-03-18 11:54:07 +03:00
Zhang Ning
1c86794d01 fix fetch gpg key behind a proxy
add --keyserver-options when http_proxy env is set.

for docker build, need to pass http_proxy to docker

Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>
2019-03-12 14:44:02 +08:00
Zhang Ning
5d12350e9a change aptly apt key server to ubuntu
it's difficult to access sks-keyservers key server.

Signed-off-by: Zhang Ning <832666+zhangn1985@users.noreply.github.com>
2019-03-12 14:38:06 +08:00
Igor Pečovnik
3a89ab7982 Adding CPIO package to the host list
That Docker Ubuntu image will also work as a host.
https://github.com/armbian/build/issues/1292
If that is all ...
2019-02-25 16:27:57 +01:00
Igor Pečovnik
2563185ffc [ cosmetics ]
Suppress error at counting rootfs caches.
2018-12-20 13:31:13 +01:00
Igor Pecovnik
a4e4d56168 [ general ] Fixing aptly to a better workaround solution. 2018-12-03 07:50:21 +01:00
Igor Pecovnik
416bff334d [ build script ] update etcher 2018-11-26 20:52:29 +01:00
Thomas McKahan
819937ba99 Fix apt key fetch for aptly 1.2.0 2018-10-23 20:52:11 -04:00
Thomas McKahan
20d9d74446 Fix linaro 4.8 public key fetching 2018-10-23 01:10:17 -04:00
Igor Pecovnik
a4f069f9b1 [Buildscript] Update Etcher for CLI 2018-10-19 17:59:17 +02:00
Igor Pecovnik
fa88e5c2aa Implement bulding and packing all different boot firmware for Espressobin, bump u-boot and ATF sources to latest version 18.09 2018-09-09 23:22:50 +02:00
zciendor
bd83c60b23 Merge remote-tracking branch 'upstream/master' 2018-08-26 07:04:03 -05:00
Igor Pecovnik
128829764b Proper rootfs cleaning. Support for cleaning signatutures as well. 2018-08-15 18:45:29 +02:00
Igor Pecovnik
98c9505d0b Rootfs cache management bugfix due to added Bionic targt. 2018-08-15 15:31:58 +02:00
Igor Pecovnik
f5f7a0836a Moving numix-icon theme back to main package list since its fixed with this commit b293f186fb (diff-cc2879263e4a73e37cf60f2fa6b3fb64) , etcher download rfc, minor fixes 2018-08-10 22:44:55 +02:00
Igor Pecovnik
c721510e6e Add support for burning to SD card using Etcher for CLI 2018-08-03 19:35:19 +02:00
zciendor
ddf0ed1edf Redo of implementation for feature request #947 on current master
This was already implemented with https://github.com/armbian/build/pull/948,
before but never made it into the master branch yet. Probably because the
development branch has been abandoned in the meantime and it is to much effort
now to merge it into master.

It includes all the cleanup changes from commit 08743d3 and has been successfully
tested on an Odroid HC1.

In addition to what is currently in the `luks` branch the following improvments
where done/added:

1. update_initramfs() function in debbootstrap-ng.sh, which needs to be invoked
   after the partition layout and /etc/crypttab was created. Else `cryptroot-unlock`
   won't work and you'll run into:
   https://serverfault.com/questions/907254/cryproot-unlock-with-dropbear-timeout-while-waiting-for-askpass

   Apart from that it might be useful to always run `update-initramfs` at the end
   of the build process anyway, in case customize_image (userpatches) made some
   changes to the initramfs tools configs.

2. CRYPTROOT_SSH_UNLOCK=yes/no config option. It's by default set to yes, but it
   might be desired by some users to disable enable SSH/dropbear access while
   still having LUKS support. E.g. if they have a device that has a display
   and keyboard.

3. If no `authorized_keys` file is provided via userpatches, a new SSH key pair
   is generated and for convenience copied to the output directory along with
   the final image.
2018-07-31 16:02:26 -05:00
Igor Pečovnik
1d18b1ea1b reverting back to main server 2018-07-17 11:43:16 +02:00
Igor Pecovnik
a9de196c42 Switch to backup server for downloading the toolchains. Speed is the same. 2018-07-01 19:03:36 +02:00
Igor Pečovnik
8aacc920da Update aptly key 2018-07-01 17:21:36 +02:00
zador-blood-stained
6afe135989 Better handling for additional ATF toolchains 2018-06-13 19:23:00 +03:00
Igor Pecovnik
d1a9c8a768 Merging main libs into the stable. Hack for building Bionic on Xenial left out 2018-05-24 21:01:02 +02:00
zador-blood-stained
91852b6910 Enable initial Bionic host support 2018-04-29 15:32:18 +03:00
zador-blood-stained
7179692dca Sync and update host dependencies 2018-04-29 15:30:20 +03:00
Igor Pečovnik
2da24cfeeb Adding bison GNU parser generation
Apparently needed for K4.16.y
2018-02-18 19:24:27 +01:00
zador-blood-stained
f8709ec46b Log build directory permissions to detect dpkg packaging errors 2018-01-27 17:43:18 +03:00
Igor Pecovnik
5ad2a947bb Cosmetic fix - showing error even it wasn't there when creating repository. 2018-01-20 22:39:15 +01:00
zador.blood.stained
5b1367a87b Add experimental check for WSL hosts 2018-01-12 17:15:59 +03:00
zador.blood.stained
e755245208 Improve unsupported release handling and drop Trusty workarounds 2018-01-05 12:56:32 +03:00
Olgierd Nowakowski
e07731de90 Add supported host system override 2018-01-04 18:41:25 +01:00
Igor Pecovnik
f411ba18c2 Small bugfix on repository creation error checkings 2017-12-08 16:44:28 +01:00
Igor Pecovnik
4a523d56e7 Repository handling RFC, purge debs directory if publishing is succesful, added local server, few extra checks ... 2017-12-06 17:38:38 +01:00