Commit graph

200 commits

Author SHA1 Message Date
MilhouseVH
e45ba7e298 init: Add progress indicators during long running updates 2016-03-20 21:32:59 +00:00
Stephan Raue
6c2e5ce1c2 busybox: load cpu firmwares in initramfs
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2016-03-19 12:52:40 -07:00
Peter Vicman
0a8df76e5e init: allow update also with .img.gz or .img besides to .tar
needs double space on storage partition for extracted .img file
KERNEL/SYSTEM files are copied directly from mounted partition to /flash
tested on imx6 project
size of initramfs/kernel increased by ~40kB
if downgrade with image without included .md5 files
user needs to create file .nocheck (there is no integrity
checks done in this case - can be unsafe)

### Checking for updates ###
Found new .tar archive. extracting...
Checking KERNEL.md5...
/storage/.update/KERNEL: OK
Checking SYSTEM.md5...
/storage/.update/SYSTEM: OK
Checking size: OK
### mount filesystem /flash/SYSTEM ... ###
### mount filesystem /storage/.update/SYSTEM ... ###
updating Kernel...
updating System...
### mount filesystem /flash/SYSTEM ... ###
updating Bootloader...
*** updating Device Tree Blob: imx6q-udoo.dtb ...
.................................................
*** updating u-boot image: /flash/u-boot.img ...
*** updating u-boot SPL Blob on: /dev/mmcblk0 ...
35+0 records in
35+0 records out
35840 bytes (35.0KB) copied, 0.050510 seconds, 692.9KB/s
System reboots now...

### Checking for updates ###
Found new .img.gz archive. extracting...
Mounting system partition...
Checking KERNEL.md5...
/storage/.update/.tmp/mnt/KERNEL: OK
Checking SYSTEM.md5...
/storage/.update/.tmp/mnt/SYSTEM: OK
Checking size: OK
updating Kernel...
updating System...
### mount filesystem /flash/SYSTEM ... ###
updating Bootloader...
*** updating Device Tree Blob: imx6dl-cubox-i.dtb ...
.....................................................
*** updating u-boot image: /flash/u-boot.img ...
*** updating u-boot SPL Blob on: /dev/mmcblk0 ...
35+0 records in
35+0 records out
35840 bytes (35.0KB) copied, 0.050320 seconds, 695.5KB/s
System reboots now...

### Checking for updates ###
Found new .img file...
Mounting system partition...
Checking KERNEL.md5...
/storage/.update/.tmp/mnt/KERNEL: OK
Checking SYSTEM.md5...
/storage/.update/.tmp/mnt/SYSTEM: OK
Checking size: OK
updating Kernel...
updating System...
### mount filesystem /flash/SYSTEM ... ###
updating Bootloader...
*** updating Device Tree Blob: imx6dl-cubox-i.dtb ...
.....................................................
*** updating u-boot image: /flash/u-boot.img ...
*** updating u-boot SPL Blob on: /dev/mmcblk0 ...
35+0 records in
35+0 records out
35840 bytes (35.0KB) copied, 0.050320 seconds, 695.5KB/s
System reboots now...
2016-03-18 12:08:03 +01:00
Alex Deryskyba
68754ae925 packages/sysutils/busybox/scripts/init: Add the ability to update the kernel that resides on a block device, such as NAND partition 2016-01-15 14:41:18 +01:00
Stefan Saraev
b9adb2d9f9 move 'set ondemand threshold' to init 2015-06-17 10:46:11 +03:00
Alex Deryskyba
0c973c9b62 WeTek_Play: Add support for installing OE into NAND memory 2015-05-04 19:19:29 +03:00
Stephan Raue
98994fe324 Revert "WeTek_Play: Add support for installing OE into NAND memory"
This reverts commit 06e5bdcf78.
2015-05-03 19:20:30 +02:00
Alex Deryskyba
06e5bdcf78 WeTek_Play: Add support for installing OE into NAND memory 2015-05-02 17:45:49 +02:00
Stefan Saraev
0d847e4f13 init: add boot parameter to start in-memory live mode
.. no /storage hacks hacks, would also work with uefi boot
2015-04-05 20:34:59 +03:00
Stefan Saraev
d826fa2e44 init: storage should always be writable
fixes minor issue in installer, where some (non critical) systemd
services fail to start
2015-04-05 20:31:35 +03:00
Stefan Saraev
c33ddc5c61 init: ignore ret 8 from fsck if not force checking
when /flash or /storage is on non-persistent storage, it's not
yet available at the time fsck -a -p fires, so just skip
and force fsck only if ret=4

now, if /flash or /storage is non-persistent, users get
either non-recovered fs (just as it was before) or debug
shell if the fs is fubar (bad sb and so). nobody cares.
2015-02-23 00:05:10 +02:00
Stefan Saraev
b1c7391900 init: fsck -y when automatic repair fails 2015-02-21 14:21:29 +02:00
Stefan Saraev
01a0d5fcca init: forgot fs-resize in 208d45d 2015-01-19 20:09:22 +02:00
Stefan Saraev
208d45db46 init: there can be only one default systemd unit 2015-01-19 19:39:21 +02:00
Stefan Saraev
b793ba8c80 factory-reset: move as systemd target 2015-01-19 19:39:21 +02:00
Stefan Saraev
f1990c91db backup-restore: move as systemd target 2015-01-19 19:39:18 +02:00
Stefan Saraev
4fffa76c53 fs-resize: move as systemd target 2015-01-19 19:27:51 +02:00
Stefan Saraev
a0dee49e5d init: drop atv legacy 2015-01-17 22:42:12 +02:00
Stefan Saraev
cfc879b94f init: warn if booting from removable storage 2015-01-12 23:05:39 +02:00
Stefan Saraev
5185cd9263 Revert "disable suspend if booting from removable storage"
This reverts commit 803bc002b9.

I have to explain why it was there again and again. so f*** it
and I'll just ignore the "hey suspend is broken" bugreports
2015-01-12 21:56:40 +02:00
Stefan Saraev
ffa3ec4bd5 init: check first if fbcon/cursor_blink exists 2015-01-12 19:32:19 +02:00
Alex Deryskyba
a918376a7f Add support for executing project-specific initialization script from the init script 2014-12-17 06:14:16 +01:00
Stefan Saraev
79d8668907 init: warn on obvious KERNEL/SYSTEM mismatch
... because rpi / netboot users still cant get it
2014-11-23 19:06:19 +02:00
Stephan Raue
26c49caf2b busybox: remove CIFS/SMB boot support
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2014-08-17 17:49:32 +02:00
Stephan Raue
e672e6e249 busybox: remove support for initramfs.conf, disable SYSTEM-to-RAM support for RPi
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2014-07-25 07:30:19 +02:00
Stephan Raue
86944a6ea2 Revert "busybox: remove SYSTEM-to-RAM support, it dont improves much"
This reverts commit 1e12d8be3f.
2014-07-25 07:28:13 +02:00
Stephan Raue
1e12d8be3f busybox: remove SYSTEM-to-RAM support, it dont improves much
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2014-07-24 07:09:01 +02:00
Stephan Raue
4241180f12 busybox: fix issue with not removing *.md5 files after update
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2014-06-28 21:43:35 +02:00
Stefan Saraev
3fd8c315bb init: remove unused ssh check 2014-06-16 18:17:35 +02:00
Stephan Raue
9171a0678d busybox: unmount /flash and /storage on reboot in initramfs, add 'do_reboot' function and use this for all reboot calls
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2014-06-07 17:10:42 +02:00
Stephan Raue
6431768463 busybox: cosmetics
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2014-06-07 14:56:51 +02:00
Stephan Raue
6aea31a5fa busybox: add initial support for fsck /flash and /storage on boot
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2014-06-07 14:56:51 +02:00
Stephan Raue
cbfe2fa62a Revert "init: e2fsck /storage"
This reverts commit f7d87a2380.
2014-06-04 16:29:52 +02:00
Stefan Saraev
f7d87a2380 init: e2fsck /storage 2014-06-04 16:19:38 +02:00
andreasmn
8cfb7daa7b init: optimized wake-on-lan script 2014-05-01 08:35:54 +02:00
andreasmn
a080cda38e init: added wake-on-lan script 2014-04-25 15:27:50 +02:00
Stefan Saraev
803bc002b9 disable suspend if booting from removable storage 2014-03-22 16:11:28 +02:00
Stefan Saraev
d4fc0986a0 busybox: init: set rsize/wsize for nfs 2014-03-05 15:59:40 +02:00
Stefan Saraev
0c96e95f70 busybox: init: clean up and cosmetics 2014-02-22 14:47:17 +02:00
Stephan Raue
74d7bcc068 busybox: move systemd to /usr/lib
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2014-02-20 17:05:22 +01:00
Christian Hewitt
db78221e4d init: only fsck hfs+ when booting from hfs+
Only fsck an HFS+ partition when we booted from an HFS+ partition. This
should only be true on AppleTV where we need to ensure the HFSX volume
is clean before mounting. It is false on other MacOS dual-boot
configurations where HFS+ partitions are present. This resolves #2929,
2014-02-13 07:57:23 +04:00
Stephan Raue
0f3e2d4ffa update license headers
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-12-21 21:51:48 +01:00
Stephan Raue
cfc62d1fe9 busybox, busybox-initramfs, busybox-hosttools: convert to new package format
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-12-18 17:35:23 +01:00
Stephan Raue
5abd5e113b busybox: remove old init system
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-08-21 16:13:44 +02:00
Stephan Raue
f76251bd2e busybox: show versions info again
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2012-05-03 22:57:23 +02:00
Stephan Raue
b36ce523ba busybox: cleanup not more needed framebuffer stuff
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2012-05-03 13:01:43 +02:00
Stephan Raue
223e493d66 splashutils: add option to disable splash on boot, this can give us a 2-3sec faster boot, to disable add 'nosplash' (without quotes) to the kernel commandline in your bootloader config
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2012-03-21 01:15:13 +01:00
Domin6
543c89c24b Change copyright and FSF address, this fixes #252 2012-02-29 13:36:32 +01:00
Stephan Raue
ed04a24d44 busybox: cleanup
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2012-02-28 09:29:31 +01:00
Stephan Raue
98b6c97568 busybox: cleanup /sbin/init, move mount of filesystem in init script, clear screen on boot and hide cursor if possible, load uvesafb if no framebuffer is present
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2012-02-24 08:16:36 +01:00