Commit Graph

698 Commits

Author SHA1 Message Date
Igor Pečovnik
ce9cb071bf
Disable improved RTL8152 driver for Odroid XU4
Apparently not fully compatible - need deeper research.
2020-07-12 13:22:23 +02:00
Igor Pečovnik
1c76861d19
Bugfix / hack for 3rd party drivers compilation
Compilation is breaking with 
cc1: error: unrecognized -mtune target: native 
... for few hours due to upstream code fixing. Once wireless driver code is stabilized we move back to branch. @kimocoder
2020-07-12 13:15:08 +02:00
Igor Pecovnik
4947af7bf7 Added few support packages to the base
They are needed to test / deploy https://github.com/armbian/build/pull/2081
2020-07-08 16:52:14 +02:00
Igor Pečovnik
56f7fa2b9e
Improve patch making (#2070)
* Improve patch making
* Better default patch name
* Remove the patch file in the sources since we only need to extract the name
2020-07-08 09:28:55 +02:00
Werner
d13f84fd0c
Make WiFi injection and USB network drivers require EXTRAWIFI (#2078) 2020-07-03 15:20:32 +02:00
Igor Pecovnik
3f99860009 Bugfix: disabling improved network driver for RK322x family because it breks compilation
@paolosabatino When this is bumped to 5.7.y it will probably work, so revert this change if you will doing this.
2020-07-01 21:48:41 +02:00
Igor Pečovnik
f6abcc7c85
Add most recent drivers for Realtek RTL8152/RTL8153 that supports 2.5G adapters (#2071) 2020-06-29 19:16:10 +02:00
Igor Pecovnik
9020803f1d Update kernel configs due to logo support, adjust patches
Now always create logo, but enable only on request, where defined (Pinebook, Teres, ...)
2020-06-28 17:13:32 +02:00
Igor Pecovnik
92dca11e1d Move mvebu 64 to 5.7.y, add few kernels to build target, improve git changes checking 2020-06-28 12:15:23 +02:00
Igor Pecovnik
7bfc49b22c Fix rootfs torrent downloadinging. 2020-06-27 19:27:53 +02:00
Igor Pečovnik
7d758026b5
Enable kernel boot splash, env and bootscript files cleanup, upstream patches (#2065)
* Initial commit for kernel boot splash
* Add startup files to disable bootlog when system is up / down
* Update logo, remove deprecated one
* Introduce new u-boot variable bootlogo
* Adjust kernel config
* Make logo possible on Odroid XU4
- add legacy and current upstream patches
- delete xu4 environment since its not used
* Cleanup C2,C4, both tested, logo works on mainline,
- adding legacy upstream patches for c4
* Enable bootlogo by default on Odroid N2
* Enable logo on RK3399 desktop images
* Cleanup the rest of the environment files
* Add initrd hook that copy splash file to initrd.
* Missing logo bits for one boot scripts
* Enable boot logo on Pinebook A64
* Enable bootlogo on Teres
* Update config
2020-06-27 19:14:38 +02:00
Igor Pečovnik
8ea083ae36
Rebuild rootfs cache 2020-06-26 08:56:46 +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
Igor Pečovnik
204e1ccd7a
Add missing variable (#2066) 2020-06-25 17:58:18 +02:00
Manuel Rüger
37ee587662
main.sh: Switch kernel target order (#2063)
First option is selected in the UI, so have the recommended one there
2020-06-25 11:39:34 +02:00
Igor Pečovnik
2e764387ee
Rebuild rootfs cache 2020-06-25 11:09:02 +02:00
Piotr Szczepanik
d87b155a94
Added rtl8723du support for ROCK Pi E (#2060) 2020-06-25 11:07:40 +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
Igor Pečovnik
cc3b7d1b0e
Resolve one Shellcheck bug and add latest Linux mint as supported (#2062) 2020-06-25 08:54:12 +02:00
Igor Pecovnik
57aed22fc8
More shellcheck fixes
Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2020-06-24 17:22:04 +02:00
Igor Pečovnik
8b350f386f
Mini bugfixes related to shellcheck and changes to beta building (#2057)
https://github.com/armbian/build/pull/2054
Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2020-06-24 13:16:25 +02:00
Igor Pecovnik
ce5d51c2de
Another small shellcheck issue
Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2020-06-24 07:39:00 +02:00
lanefu
463e9b72fc
fix default var parsing quirk with ntp
having var in double quotes evaluates space default differently..


```
lane@billroyall:~/GIT/build$ ntpdate -s "${NTP_SERVER:- pool.ntp.org}"
Error resolving  pool.ntp.org: No address associated with hostname (-5)
lane@billroyall:~/GIT/build$ ntpdate -s "${NTP_SERVER:-pool.ntp.org}"
```
2020-06-23 21:52:53 -04:00
Manuel Rüger
68b6d2ead0
Shellcheck fixes 3 (#2054)
* lib/general.sh: Lint via shellcheck

* lib/compilation-prepare.sh: Lint via shellcheck
2020-06-23 20:15:20 -04:00
Manuel Rüger
752f4ddc7e
lib/build-all-ng.sh: Fix mistakes with shellcheck linting (#2052)
* lib/build-all-ng.sh: Fix mistakes with shellcheck linting

* Update build-all-ng.sh

Co-authored-by: Igor Pečovnik <igorpecovnik@users.noreply.github.com>
2020-06-23 20:04:30 +02:00
Manuel Rüger
b3c75bdfb8
Shellcheck fixes2 (#2049)
* distributions.sh: Lint via shellcheck

* chroot-buildpackages.sh: Lint via shellcheck

* build-all-ng.sh: Lint via shellcheck
2020-06-23 10:15:13 -04:00
Werner
5f6a959cd6
Replace gpgv1 (#2047)
Not haven the common gpg package leads into verification error (https://forum.armbian.com/topic/14455-error-verifying-gcc-linaro-2013/) but is also marked as deprecated (https://packages.ubuntu.com/focal/gpgv1)
2020-06-21 17:34:19 +02:00
Igor Pečovnik
6d40284374
Rebuild cache
https://github.com/armbian/build/pull/2044
2020-06-21 12:33:10 +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 Pecovnik
355a306301
[Backend] Few improvements to the build-all
Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2020-06-20 20:49:03 +02:00
Igor Pecovnik
b9730fe0e2
Small fixes
Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2020-06-19 17:32:43 +02:00
Paolo
23604e8a0d
Introducing Rockchip RK322X SoC support (#2032)
* Introducing Rockchip rk322x SoC support

Main features:

- Legacy kernel flavour based upon stable v2.x rk3288 Rockchip branch (https://github.com/rockchip-linux/kernel/tree/stable-4.4-rk3288-linux-v2.x)
- Current kernel flavour based on mainline 5.6.y kernel
- Mainline u-boot (v2020.04)
- Single generic tv box target (rk322x-box) which boots on all the known tv boxes
- Hardware devices (eMMC/NAND, led wiring configuration, SoC variant selection) modulation done by user at runtime via device tree overlays - a script (rk322x-config) is provided for autodetection and simple configuration by inexperienced users;
- Bits added to armbian-hardware-optimization to set affinity for irq handlers
- rk322x-box targets already added to targets.conf for automatic image creation

* Removed disabled patches
* Restored mysteriously removed comment character
2020-06-19 17:27:27 +02:00
Igor Pecovnik
4762ec2302
Add some delay to not kill build server
Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2020-06-18 21:42:55 +02:00
Martin Cross
108e86f02d
Check the return code from 'make menuconfig' and abort compilation with a suitable message. (#2037) 2020-06-18 21:40:21 +02:00
Igor Pečovnik
213a5a6855
Enabling IGNORE_UPDATES back (#2036) 2020-06-18 20:21:00 +02:00
Igor Pecovnik
7b2dd51f86
Repository management fixes
Let's leave DEV kernels as is

Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2020-06-18 17:39:09 +02:00
Igor Pecovnik
273fb7dea4
Automation related bugfix
Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2020-06-18 17:26:15 +02:00
Manuel Rüger
9fa6069f9f
Shellcheck fixes (#2034)
* compile.sh: Apply shellcheck linting

* main.sh: Apply shellcheck linting

* fel-load.sh: Apply shellcheck linting
2020-06-18 10:06:21 -04:00
Igor Pecovnik
dc478af1cb
Bugfix when making all kernels, also enable building of sunxi-legacy
Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2020-06-18 15:49:27 +02:00
Igor Pečovnik
bfacc6cd89
Install SELinux related userland packages (#2014)
* Install SELinux related userland packages

But leave it disabled by default. Todo: add toggle to armbian-config
2020-06-17 19:43:04 +02:00
Igor Pecovnik
d9770e2a86
[CI actions] Also watch kernel changes in kernel configuration 2020-06-17 13:36:48 +00:00
Igor Pečovnik
fda0e22951
Improve all kernel building (#2017)
* Improve all kernel building

Store hashes and rebuild only changed kernels. TBD: support for patch directory not fully implemented yet

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

* Add support for patch directory checking

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

* Update lib/build-all-ng.sh

Co-authored-by: Manuel Rüger <manuel@rueg.eu>

* Update lib/build-all-ng.sh

Co-authored-by: Manuel Rüger <manuel@rueg.eu>

* Update lib/compilation.sh

Co-authored-by: Manuel Rüger <manuel@rueg.eu>

* Update lib/compilation.sh

Co-authored-by: Manuel Rüger <manuel@rueg.eu>

* Update build-all-ng.sh

* Disable u-boot hashing for now

* remove banana r2

breaks compilation ... no time for inspection ATM

* typo

* Change s5p6818 to COMMIT instead of TAG

TAG points to a different HASH and its not posible to resolve hash without cloning. This can be addressed later, but now commit HASH will do.

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

* Bumping to new version

* Bumping to new version

* Bump

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

* few changes

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

* Test

* Bumping to new version

* Bumping to new version

BOARD
Cubox i2eX/i4

* Bumping to new version

imx6 current
meson-gxl current

* Bumping to new version

linux-image-current-imx6_20.08.4-trunk_armhf.deb
linux-image-current-meson64_20.08.4-trunk_arm64.deb

* Bumping to new version

Adding following kernels:\n

* Bumping to new version

Adding following kernels:

linux-image-current-imx6_20.08.4-trunk_armhf.deb
linux-image-current-meson64_20.08.4-trunk_arm64.deb

* Bumping to new version

Adding following kernels:

linux-image-current-meson64_20.08.5-trunk_arm64.deb
linux-image-current-sunxi_20.08.5-trunk_armhf.deb
linux-image-legacy-meson_20.08.5-trunk_armhf.deb
linux-image-legacy-s5p6818_20.08.5-trunk_arm64.deb

* fix versioning

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

* Bumping to new version

Adding following kernels:

linux-image-current-meson64_20.08.1_arm64.deb

* Put version back

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

* Bumping to new version

Adding following kernels:

linux-image-current-imx6_20.08.0-trunk_armhf.deb
linux-image-current-meson64_20.08.0-trunk_arm64.deb
linux-image-current-mvebu_20.08.0-trunk_armhf.deb
linux-image-current-mvebu64_20.08.0-trunk_arm64.deb
linux-image-current-odroidxu4_20.08.0-trunk_armhf.deb
linux-image-current-rockchip_20.08.0-trunk_armhf.deb
linux-image-current-rockchip64_20.08.0-trunk_arm64.deb
linux-image-current-sunxi_20.08.0-trunk_armhf.deb
linux-image-dev-mvebu_20.08.0-trunk_armhf.deb
linux-image-dev-rockchip64_20.08.0-trunk_arm64.deb
linux-image-legacy-meson_20.08.0-trunk_armhf.deb
linux-image-legacy-meson64_20.08.0-trunk_arm64.deb
linux-image-legacy-mvebu_20.08.0-trunk_armhf.deb
linux-image-legacy-mvebu64_20.08.0-trunk_arm64.deb
linux-image-legacy-odroidxu4_20.08.0-trunk_armhf.deb
linux-image-legacy-rk3399_20.08.0-trunk_arm64.deb
linux-image-legacy-rockchip_20.08.0-trunk_armhf.deb
linux-image-legacy-rockchip64_20.08.0-trunk_arm64.deb
linux-image-legacy-rockpis_20.08.0-trunk_arm64.deb
linux-image-legacy-s5p6818_20.08.0-trunk_arm64.deb

* Bumping to new version

Adding following kernels:

* Bumping to new version

Adding following kernels:

linux-image-dev-rockchip_20.08.0-trunk.2_armhf.deb

* Bumping to new version

Adding following kernels:

* Bumping to new version

Adding following kernels:

* Bumping to new version

Adding following kernels:

* Bumping to new version

Adding following kernels:

* Report error code, adjust version

* Adjust ver

* Add another switch

Co-authored-by: Manuel Rüger <manuel@rueg.eu>
Co-authored-by: root <root@workstation>
2020-06-17 11:38:17 +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
dcc6e791da
Offlinework (#2019)
* Delete FORCE_CHECKOUT, IGNORE_UPDATES variables

There are currently two questionable variables.
They are the keys in the structures:
'if [[ $FORCE_CHECKOUT == yes ]]; then' in the function 'fetch_from_repo()'
which is set by default by the script 'main.sh'
'[[ -z $FORCE_CHECKOUT ]] && FORCE_CHECKOUT=yes'

Next in the script 'main.sh'

if [[ $IGNORE_UPDATES != yes ]]; then
    display_alert "Downloading sources" "" "info"
    fetch_from_repo "$BOOTSOURCE" "$BOOTDIR" "$BOOTBRANCH" "yes"

This key has aged. It can't work properly today.
We should always clear the sources before starting the build.
For this reason, these two keys in these places do not make any sense.
You can just delete them.

* Working offline for sources

This is useful when building recursively for multiple platforms,
when some resource on the Internet is frozen.
To do this, I entered a new variable 'OFFLINE_WORK'

* New ability to work in offline mode

* Skip check prepare host
* Add unset OFFLINE_WORK in lib/build-all-ng.sh

Sources, time and host will not be checked
Now you can collect packages without accessing the Internet
2020-06-14 22:58:02 +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
The-going
bce24a2e8d
delete Checking out sources from compile_uboot() (#1999)
At this point the repository is already clean,
and the next line is not needed.

Fix issues #1952
2020-06-10 12:37:20 -04:00
The-going
dc95a3f9a3
Fixed checking the target git sources (#1998)
* Exit if you can't create a directory
  Otherwise the entire folder structure will crash

* git rev-parse --git-dir will always return ".git" line
  if we are in the git repository folder.

When there is a symbolic link in the path, some functions
will not return what is expected. This condition is always true.
$(git rev-parse --show-toplevel) != $(pwd)

This commit fixes this threat
2020-06-10 18:15:08 +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 Pecovnik
436a5681b5
Proper fix for ramdisk corruption seen on Focal / Bullseye
Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>
2020-06-03 08:45:30 +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