567 Commits

Author SHA1 Message Date
MilhouseVH
b42b63983b Allow for a custom system partition start sector + custom system size 2016-03-24 12:02:45 +00:00
MilhouseVH
2f1b279177 Merge pull request #27 from vpeter4/img_update1
init: allow update also with .img.gz or .img besides to .tar
2016-03-21 07:19:18 +00:00
MilhouseVH
5ffa451cf5 libreelec: re-add OPENELEC_ARCH for temporary backwards compatability 2016-03-20 23:16:03 +00: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
Lukas Rusak
9737e400d0 scripts/get: only try 3 times before giving up 2016-03-15 10:39:14 -07:00
Lukas Rusak
76a4367644 scripts/unpack: fix to allow packages that don't unpack 2016-03-14 14:30:32 -07:00
MilhouseVH
d8f6577b52 Merge pull request #2 from lrusak/seo-stripping
stripping changes
2016-03-14 17:55:15 +00:00
MilhouseVH
875806cdac Add PKG_SOURCE_NAME for non-standard package tarballs 2016-03-13 23:47:12 -07:00
Lukas Rusak
40af353132 rebrand: LibreELEC 2016-03-12 01:41:55 +01:00
Stephan Raue
d036c394f2 scripts/image: fix build after 692b086ad0
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2016-03-04 22:30:36 +01:00
Zalaare
692b086ad0 Various $HOME/.openelec (vendor) fixes 2016-03-04 11:52:43 -05:00
Stephan Raue
79efe4e328 Merge pull request #4803 from lrusak/aarch64
linux: use KERNEL_TARGET as make target
2016-03-02 07:44:47 +01:00
Stephan Raue
52b5fc5a4d Merge pull request #4791 from OpenELEC/package-updates
Package updates and fixes
2016-03-02 07:42:07 +01:00
Lukas Rusak
362ed24bd2 linux: use KERNEL_TARGET as make target 2016-03-01 21:30:29 +01:00
Stephan Raue
7f77d0df5b NOOBS: add support for NOOBS-1.8
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2016-03-01 16:45:26 +01:00
Lukas Rusak
ae9e7cab5f buildsys: define TARGET_KERNEL_ARCH early 2016-02-29 21:25:37 +01:00
Stephan Raue
3d4caa6b6d buildsystem: move $HOME/.openelec/$PROJECT to $HOME/.openelec/projects/$PROJECT
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2016-02-22 17:40:39 +01:00
Stephan Raue
b0aa92889f buildsystem: install vendor and project related files to image
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2016-02-22 17:40:39 +01:00
Philipp Felix Hoefler
65643c1681 scripts/unpack: creates empty build-dir for packages without sources so deepmd5 works 2016-02-22 14:27:05 +01:00
Peter Vicman
3b75736931 scripts/mkimage: create disk image without sudo
Mtools is used to format and copy files to vfat partition.
Populatefs is used to copy files to ext4 partition.

Tested on imx6 with u-boot, Generic with BIOS and EFI boot.

To avoid messing around with ext4 partition we could also provide "empty" disk image file. Both partitions would be already formatted and storage partition would already contain resize file. Then mkimage script would only copy kernel, system, bootloader files and install bootloader.
But current approach is more flexible for future use.
2016-02-19 08:49:20 +01:00
Stephan Raue
5d25757702 Merge pull request #4676 from MilhouseVH/less_messy_locking
build: Take a lock on the package download directory
2016-02-08 12:43:56 +01:00
Stephan Raue
44da7861bc Merge pull request #4543 from CvH/patch-1
zip packages extraction fix
2016-02-07 15:58:53 +01:00
MilhouseVH
dc12bbd8a6 build: Take a lock on the package download directory 2016-02-04 09:51:00 +00:00
Stefan Saraev
1b6da2aaff scripts/build: strip binaries 2016-01-31 00:21:56 +01:00
Stefan Saraev
66aa95e906 scripts/build: fix thread debugging. do not strip glibc.
fixes corrupt stack on arm
2016-01-31 00:21:45 +01:00
Peter Vicman
62b83002ee scripts/mkimage: sync disk few more times
fix issue like this
image: creating filesystem on part1...
losetup: /dev/loop0: device is busy
2016-01-21 10:36:48 +01:00
Alex Deryskyba
7177ce1a45 scripts/image: copy aml_autoscript only if it exists 2016-01-15 14:43:49 +01:00
dolorosus
7ea1999d22 Quoting variables to preserve whitespaces in banner 2016-01-12 06:35:50 +01:00
chewitt
0e1f4ef82a cosmetics: rename 'unofficial' to 'community' builds 2016-01-07 04:09:45 +01:00
MilhouseVH
fbfc4705b2 [get]: Avoid concurrent downloads of the same package 2016-01-03 07:23:06 +00:00
Stephan Raue
6481621d97 scripts: update license headers
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2016-01-02 17:26:58 +01:00
CvH
7df343f885 scripts/image: remove imx6 hack for zip extraction
removed workaround which was necessary due the broken zip extrtaction
2015-12-30 16:55:01 +01:00
CvH
5f535e8c02 scripts/extract: fix zip extraction
should fix *.zip packages
before pr:
PKG_NAME-PKG_VERSION.zip

creates
build.OE.../PKG_NAME/PKG_NAME-PKG_VERSION/files

instead of
build.OE.../PKG_NAME-PKG_VERSION/files
2015-12-30 03:50:20 +01:00
Lukas Rusak
8f5f26d65c scripts/image: dont strip symlinks and silence depmod 2015-12-21 23:38:07 -08:00
MilhouseVH
7cf785b58a Stop being stingy with System partition size 2015-12-20 18:11:07 +00:00
MilhouseVH
0f415ed2f3 [RBP] Use actual kernel_version in place of wildcard 2015-10-25 21:34:08 +00:00
MilhouseVH
3dfc075002 [RBP] Drop mkknlimg, use version shipped with kernel 2015-10-25 17:09:07 +00:00
Lukas Rusak
94f780417b Merge pull request #4394 from vitalogy/dosfstools_host
Build mkfs.(v)fat from dosfstools for the host
2015-10-23 15:21:46 -07:00
vitalogy
176a5d7660 dosfstools: build mkfs.vfat for host (do this from scripts/image) 2015-10-23 21:21:15 +02:00
Stefan Saraev
b674670ed6 buildsys: do poor man's md5deep 2015-10-23 15:13:44 +03:00
vitalogy
525780e607 scripts/image: remove spaces 2015-10-18 01:15:26 +02:00
vitalogy
29e8ecb3ad scripts/checkdeps: fix gentoo deps 2015-10-18 01:14:51 +02:00
Lukas Rusak
dc340f5374 scripts/checkdeps: fixup fedora / gentoo / arch 2015-10-05 00:38:40 +02:00
Stefan Saraev
fd31d5d958 buildsys: clean up checkdeps 2015-10-05 00:38:40 +02:00
Stefan Saraev
d690ffa4de scripts/checkdeps improvements
- when available, use etc/os-release
- on debian/ubuntu do not require aptitude
2015-10-05 00:38:40 +02:00
Stefan Saraev
c371c3c67a scripts/build: usr/lib/cmake do not belong to target 2015-09-27 12:51:09 +03:00
Haggai Eran
e3203be00e add EXTRA_CMDLINE option to add kernel command line arguments
Allow configuring extra kernel command line arguments by using the
EXTRA_CMDLINE variable. The patch handles EXTRA_CMDLINE only for the
bcm2835 boot loaders.
2015-09-15 14:13:08 +02:00
Stefan Saraev
e32ef16312 scripts/get: 900s is too much 2015-08-26 00:17:00 +03:00
Stefan Saraev
0d8bb0d800 (cosmetics) scripts/image: do not create unused dist specific files in /etc 2015-08-22 19:34:08 +03:00
Stefan Saraev
b9284db4a3 (cosmetics) scripts/unpack: cosmetics 2015-08-22 19:31:59 +03:00