Commit graph

1024 commits

Author SHA1 Message Date
Matthias Reichl
d85c804c75 busybox: cleanup persistent log setup when debugging is enabled
The ancient approach of symlinking /var/log to /storage/log doesn't
play nice with systemd as it doesn't setup proper dependencies and
unmounting /storage during shutdown may fail because systemd doesn't
know that it's needed for /var/log.

Use a conditional bind mount instead so systemd can automatically
create proper dependencies and unmount filesystems in the correct order.

Also store the persistent logfiles on /storage in a .cache/log
directory instead of log to avoid confusing users - users can access
logfiles via /var/log.

Note: we can't use tmpfiles.d to create the .cache/log directory on
/storage because that would run after local-fs.target but we need
the .log directory before that so it has to be done via a one-shot
service.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-09-16 18:57:58 +02:00
CvH
1e1e695073
Merge pull request #3703 from chewitt/amlogic-master
update Amlogic to 5.3.x and various other cleanups
2019-09-13 13:16:45 +02:00
Matthias Reichl
ed840db477 init: make copying SYSTEM to RAM opt-in
Copying SYSTEM to RAM eats up precious memory that'd be better used
for kernel filesystem cache and other things and can takes quite some
time on slower storage devices like SD cards.

Instead of having two options to define a minimum RAM size (below
which SYSTEM won't be copied) and the "noram" option (which disables
copying completely) reverse the logic and use a single "toram" option
which users can set on kernel command line if they want SYSTEM copied
to RAM.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-09-13 10:28:56 +02:00
chewitt
da9d8fcb8b busybox: fix dtfile helper script 2019-09-10 16:53:08 +00:00
MilhouseVH
5d01dc4f1d init: cleanup flash; execute real script not wrapper 2019-09-08 18:30:23 +01:00
MilhouseVH
05184d1d23 init: add rpi-flash-firmware service 2019-09-06 19:30:13 +01:00
MilhouseVH
ee2128d78e
Merge pull request #3764 from HiassofT/le10-console-font
[le10] use a larger console font on HiDPI displays
2019-08-23 15:20:11 +01:00
Matthias Reichl
1cb0af881c init: make resolution limit for using big console font configurable
The vertical resulution limit can be set with the "bigfont" option.

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-08-23 12:55:15 +02:00
Matthias Reichl
5f9248eb59 init: use terminus 16x32 font on >1080 lines displays
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-08-23 12:55:15 +02:00
Matthias Reichl
a6ef4e5c59 busybox: enable setfont
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-08-23 12:55:15 +02:00
DaVukovic
2c0288b0c2
Merge pull request #3064 from pizzaboy75/patch-2
getedid: added the active HDMI/DP port to new kernel parameters
2019-08-18 22:07:45 +02:00
MilhouseVH
6a2ee780ff
Merge pull request #3738 from lbschenkel/suspend-xpad
busybox: add 'xpad' to SUSPEND_MODULES
2019-08-07 17:03:29 +01:00
Leonardo Brondani Schenkel
1c90c1d946 busybox: allow customizing suspend-modules.conf 2019-08-04 10:58:27 +02:00
Leonardo Brondani Schenkel
803b5304ba busybox: add 'xpad' to SUSPEND_MODULES
In some systems, xpad times out during suspend:

[ 4470.773651] xpad 2-1.5:1.6: timed out waiting for output URB to complete, killing
[ 4475.892774] xpad 2-1.5:1.4: timed out waiting for output URB to complete, killing
[ 4481.011717] xpad 2-1.5:1.2: timed out waiting for output URB to complete, killing
[ 4486.130707] xpad 2-1.5:1.0: timed out waiting for output URB to complete, killing
[ 4486.288630] PM: suspend devices took 20.880 seconds

This causes suspend to take a long time to complete. Unloading/reloading
the module during suspend/wakeup successfully works around this issue.
2019-08-03 16:49:06 +02:00
MilhouseVH
b0e0aa64e9 init: clean up splash image selection 2019-07-02 16:34:29 +01:00
MilhouseVH
ff3887ee11 init: more informative syslinux boot message 2019-06-18 03:16:04 +01:00
MilhouseVH
4cc4efe73d busybox: fix XBMC reference 2019-06-15 02:55:58 +01:00
CvH
2825c30f92
Merge pull request #3536 from LibreELEC/amlogic
Add Amlogic (mainline) project
2019-06-13 23:06:16 +02:00
MilhouseVH
6d2187c013 busybox: update to busybox-1.31.0 2019-06-12 03:53:14 +01:00
Christian Hewitt
84baa30734
Merge pull request #3537 from MilhouseVH/le10_packages2
packages: mega bump
2019-06-12 06:34:07 +04:00
MilhouseVH
7693bcdac5 procps-ng: free from busybox doesn't match top 2019-06-10 21:44:02 +01:00
chewitt
ecd87898a5 busybox: add dtsoc helper script 2019-06-08 00:39:06 +02:00
MilhouseVH
9cadf50f02 busybox: update to busybox-1.30.1 2019-06-07 08:49:07 +01:00
Matthias Reichl
7f52096b6d busybox: drop uvesafb module handling in init
Signed-off-by: Matthias Reichl <hias@horus.com>
2019-05-24 16:22:48 +02:00
Lukas Rusak
ec17cea5e6
systemd: enable switch debug-tty to provide a debug console
This allows us to use the default debug-shell.service provided
by systemd and cut down on custom made services. This will also
always provide a debug shell as there is no reason we shouldn't
have access to one.
2019-05-08 11:54:58 -07:00
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
MilhouseVH
b135c7ead9 packages: add missing dependencies 2019-02-08 17:17:43 +00:00
MilhouseVH
15287a2da8 packages: pciutils, nasm, etc.: build only for x86_64 2019-02-08 17:17:43 +00:00
CvH
974f4cb736
Merge pull request #3202 from MilhouseVH/le90_busybox_1.30.0
busybox: update to busybox-1.30.0
2019-01-31 15:06:54 +01:00
craxycat
5364344b2e
FIX getedid sh: bad number on intel/amd 2019-01-23 00:10:08 +10:00
MilhouseVH
b7dc90552a busybox: update to busybox-1.30.0 2018-12-30 19:00:08 +00:00
MilhouseVH
c19a3ff780 packages: setup_toolchain $TARGET only called after package is sourced
Packages referencing variables defined in setup_toolchain such as CC, CXX,
AR, CFLAGS, LDFLAGS, HOST_CC etc. etc. must only reference these variables in
pre_build()/pre_configure()/pre_make() etc. functions, as the variables will not
be available when the package is sourced, but will be available after the call
to setup_toolchain() from scripts/build.
2018-12-18 03:43:28 +00:00
DaVukovic
19fd886d34 [busybox] Fixed 'getedid delete' section 2018-12-02 16:02:10 +01:00
Matthias Reichl
74bcd5d36e busybox: enable dmesg and less in init
Signed-off-by: Matthias Reichl <hias@horus.com>
2018-11-20 10:33:17 +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