Commit graph

361 commits

Author SHA1 Message Date
CvH
851f654777
Merge pull request #3458 from kszaq/drop_aml_3.14
Goodbye Amlogic 3.14
2019-05-04 07:22:11 +02:00
Ian Leonard
1fcc9d3247 image: drop OPENELEC_ARCH from /etc/os-release
Also swaps the necessary variable check in busybox/init to acoomodate OPENELEC_ARCH
may or may not exist, while LIBREELEC_ARCH will be assumed to exist.

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2019-05-03 23:11:24 +00:00
kszaq
10b7806c2e busybox/init: amend comment on block devices 2019-05-04 00:02:46 +02:00
chewitt
3f9782d1c8 busybox: fix dtfile path error 2019-04-24 08:49:38 +04:00
kszaq
52d603a711 init: set ondemand up_threshold for multi-cluster CPUs
For multi-cluster CPUs (e.g. Amlogic S912) there is a separate
policy for each CPU cluster. Add a case in init script to cover
setting up_threshold for all clusters.
2019-04-22 22:00:34 +02:00
chewitt
9126dc8644 busybox: improvements to dtname/dtfile 2019-04-18 03:21:53 +04:00
Christian Hewitt
cdeb85f70c busybox: add dtname/dtfile helper scripts 2019-04-17 08:28:42 +04:00
MilhouseVH
d4f6326142 packages: align source code licence usage with project licence 2019-03-26 18:05:50 +00:00
MilhouseVH
e691b3b693 packages: correct original copyright 2019-03-26 16:43:42 +00:00
Ian Leonard
b77ec0436a busybox/init: integer comparisons in fsck retval checks
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2019-03-10 00:03:43 +00:00
Ian Leonard
efd28315ac busybox/init: style changes
Remove whitespace between ] and ;
Elminiate line continuations where they don't aid readability

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2019-03-10 00:01:34 +00:00
Ian Leonard
497933e776 busybox/init: reorder script
This changes the order of the script to be:

Necssary bring up tasks
Setting variables to control rest of system intialization
Sourcing shared functions
Setting script functions
Doing the work of bringing the system up

Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2019-03-10 00:01:34 +00:00
Ian Leonard
7ebd79ae67 busybox/init: remove leading indent
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2019-03-10 00:01:34 +00:00
craxycat
5364344b2e
FIX getedid sh: bad number on intel/amd 2019-01-23 00:10:08 +10:00
DaVukovic
19fd886d34 [busybox] Fixed 'getedid delete' section 2018-12-02 16:02:10 +01:00
MilhouseVH
1f7d6fee4a
Merge pull request #2993 from mglae/le9_fsresize
Improve fs-resize, fix delay and simplify
2018-11-04 02:36:02 +00:00
Mario Krupa
22ed317c89
getedid: added the active HDMI/DP port to new kernel parameters
Added the active HDMI/DP port to kernel parameters. 

Without it, fixed EDID does not work on Intel Haswell and possibly others.
2018-10-26 14:27:13 +02:00
Mario Krupa
25732b0247
Fixed typo in order to make "delete" work again
"getedid delete" did not work because of the use of the wrong $gpu variable output "intel" which should read "intel/amd"
2018-10-26 13:33:14 +02:00
mglae
2be09187dc fs-resize: simplify using parted's 3.2 'resizepart' 2018-10-23 18:50:57 +02:00
chewitt
5983d488b2 busybox: quit countdown timers on keyboard input 2018-10-19 18:53:53 +04:00
vpeter4
c617921042 busybox: remove passwd script because we have real one 2018-09-20 20:23:59 +02:00
DaVukovic
72709dece1 Fixed a little typo 2018-09-20 18:18:55 +02:00
chewitt
e0b3dbf010 busybox: don't fix GPT tables when partition scheme is MBR 2018-09-08 10:58:42 +04:00
CvH
1b9cbdaf26 spdx: packages/sysutils 2018-07-18 22:37:47 +02:00
MilhouseVH
3ada3effec
Merge pull request #2814 from chewitt/boot_cosmetics
busybox: tweak text as dtb.img is not a bootloader
2018-07-15 04:36:20 +01:00
chewitt
2c05b8c7ba busybox: tweak text as dtb.img is not a bootloader 2018-07-06 10:49:03 +04:00
DaVukovic
e9906ee6d5 Add AMD support and react on used used kernel 2018-06-26 20:42:18 +02:00
MilhouseVH
6d696c7ac3 init: strip leading / from BOOT_IMAGE & DISK_IMAGE, normalising for all projects 2018-06-13 14:20:57 +01:00
Lukas Rusak
37b4ddd3cd
Revert "init: fix // as IMAGE_KERNEL and IMAGE_SYSTEM should always have a leading /"
This reverts commit 01a87ad788.
2018-06-11 10:10:14 -07:00
MilhouseVH
3d7409570c busybox: assign copyright to Team LE 2018-06-02 22:09:17 +01:00
MilhouseVH
517330f9fe installer: drop extlinux support, not needed - use syslinux 2018-05-15 22:14:42 +01:00
MilhouseVH
cdb7daba21 grub: drop /flash/grub.cfg 2018-05-15 22:14:42 +01:00
MilhouseVH
7f61cb0349 init: fix grub check 2018-05-15 22:14:42 +01:00
MilhouseVH
52aa5db587 init: extra update validation 2018-05-15 22:14:42 +01:00
MilhouseVH
4c0b9c5f85 init: stop using backticks, minor cleanup 2018-05-15 22:14:42 +01:00
MilhouseVH
01a87ad788 init: fix // as IMAGE_KERNEL and IMAGE_SYSTEM should always have a leading / 2018-05-15 22:14:42 +01:00
MilhouseVH
20992919e1 init: update copyright 2018-05-15 22:14:42 +01:00
MilhouseVH
d8d723d7c2 init: drop BOOT_IMAGE from RPi/RPi2/Rockchip; fix img upgrades 2018-05-15 22:14:42 +01:00
MilhouseVH
63d995fc9c init: add post mount user hooks 2018-05-15 22:14:42 +01:00
MilhouseVH
f918598aa9 init: allow configurable ramdisk limit 2018-05-15 22:14:42 +01:00
MilhouseVH
2c281d13d9 syslinux.cfg/init/etc: unify syslinux.cfg 2018-05-15 22:14:42 +01:00
Chris Novakovic
dac5caa67c initramfs: write /dev/.flash_netboot if /flash is a remote filesystem
The init script currently touches a file at /dev/.storage_netboot if
/storage is a remote filesystem, so that scripts that run after the root
filesystem has been switched can behave differently depending on whether
/storage is mounted locally or remotely. Add similar functionality for
/flash by touching /dev/.flash_netboot if it is a remote filesystem.
2018-05-03 13:25:38 +01:00
MilhouseVH
347767b848 pastebinit: sprunge.us is worse than useless 2017-12-26 17:55:35 +00:00
MilhouseVH
4bc97b2aa9 init: fix offset calculation after busybox fdisk change 2017-12-04 00:49:10 +00:00
MilhouseVH
41dd8f9534 Merge pull request #2061 from maideii/libreelec-8.2
added EFI 32bit support via GRUB2
2017-10-12 23:05:17 +01:00
Matthias Reichl
ad9e8dc372 Add support for kernel overlays
Core Kernel modules are now installed to
/usr/lib/kernel-overlays/base/lib/modules instead of /usr/lib/modules

Firmware files are installed to
/usr/lib/kernel-overlays/base/lib/firmware instead of /usr/lib/firmware

Packages can choose to install their modules and/or firmwareinto a
different overlay directory than base so they are not automatically enabled.

A new systemd service kernel-overlays, which is run before any modules
are loaded, adds overlays enabled via /storage/.cache/kernel-overlays/*.conf

These conf files must either contain the name of a system overlay,
which will then be searched for in /usr/lib/kernel-overlays/, or an
absolute path starting with '/'.

Overlaying is implemented by symlinking files from the overlays
to /usr/lib/modules and /usr/lib/firmware as not all platforms
support overlayfs.

This overlaying system can also be used by addons to provide optional
kernel modules and/or firmware by storing the absolute path to the addon
directory in the conf file and shipping kernel modules in
<addondir>/lib/modules/<KERNELVER>.

To save space only symlinks for modules matching the currently
running kernel version are created as addons may want to ship
modules for older kernel versions as well to be backward-compatible
to older LibreELEC versions.

Changes since v1:
- fixup kernel-overlays-service: add before kmod-static-nodes.service
  Fix static device nodes for module autoloading not being created.
- fixup kernel-overlays-service: fail if /usr/lib/modules exists
- squash kernel overlays: use get_kernel_overlay_dir in linux/package.mk
- Add support for firmware files via kernel overlays
- config/functions: include kernel overlays in addon installation

Signed-off-by: Matthias Reichl <hias@horus.com>
2017-10-12 20:04:02 +02:00
maideii
7def0a79dc added EFI 32bit support via GRUB2-updated busybox init config 2017-10-12 08:40:08 +08:00
maideii
c268754d0d added EFI 32bit support via GRUB2-expanded all the config with variables 2017-10-10 11:31:49 +08:00
MilhouseVH
8ac550bde9 init: recover from a failed upgrade 2017-09-17 16:16:55 +01:00
Christian Hewitt
63c0f2cb8c Merge pull request #1773 from MilhouseVH/init_break_after
init: make break after behaviour really break after
2017-09-13 20:56:12 +04:00