50 Commits

Author SHA1 Message Date
zalaare
a3a8d635ea build system: drop .img extension for the open virtual appliance
and change the default syslinux entry from installer to run
  for the open virtual appliance.
2017-08-16 09:00:32 -04:00
zalaare
e8fe8b4360 build system: use DISK_SIZE in bytes for ovf template 2017-08-15 12:56:14 -04:00
Jonas Karlman
49b9c41d6a scripts/mkimage: align partitions to 4MiB
(cherry picked from commit e4ba1d473636d1c9ca741be9cb9c2da8a3f53450)
2017-07-05 07:27:50 +02:00
Lukas Rusak
a51188bd68 Generic: merge Virtual project 2017-06-22 18:42:29 +01:00
MilhouseVH
28a90c5bb3 TOOLCHAIN: drop $ROOT, convert to absolute path 2017-06-20 17:30:40 +01:00
Olli Salonen
cbb43e568a mkimage: rebranding and prompt change
Change the prompt to instruct the end user to wait for the installer
instead of just "Press TAB for boot options". Hopefully more intuitive
now.

Rebrand to LE in the code also. :)
2016-10-19 22:51:43 +03:00
MilhouseVH
7353f15dd3 scripts/mkimage: Add run mode, remember default selection, resize gpt partitions 2016-09-15 23:25:13 +01:00
MilhouseVH
39021544c4 mkimage: add fogotten distroconfig.txt after #389 2016-08-28 22:07:53 +01:00
Jonas Karlman
9dde35d458 scripts/mkimage: add support for boot-logo.bmp.gz 2016-08-24 23:03:18 +02:00
Jonas Karlman
e8870e6abd u-boot: use pre-fused u-boot.bin
Use pre-fused u-boot.bin and drop use of bl1.bin.hardkernel for Odroid C2
Only need to write 0-111 and 512+ to image/disk
2016-08-24 23:03:18 +02:00
Peter Vicman
33ee98ef6e scripts/mkimage: set real volume label on system partition for all projects
useful when disk is mounted showing nice label LIBREELEC instead of NO NAME
2016-08-15 19:44:49 +02:00
Alex Deryskyba
0fbb9d1b38 scripts/mkimage: Include Amlogic device tree into SD-card image 2016-08-11 16:47:03 +02:00
zalaare
8ada210183 scripts/mkimage: enable building Open Virtualization Format image 2016-07-27 10:53:36 -04:00
Peter Vicman
0d26727fad scripts/mkimage: check filesystem on system partition 2016-06-12 17:19:38 +02:00
Lukas Rusak
eb052860c1 scripts/mkimage: support Odroid_C2 2016-05-05 01:23:04 -07:00
Michael Busby
c23d571b47 corrected typo 2016-04-15 16:40:51 +01:00
Michael Busby
eba907be9b also dt-blob gets copied here 2016-04-15 13:50:32 +01:00
MilhouseVH
b42b63983b Allow for a custom system partition start sector + custom system size 2016-03-24 12:02:45 +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
Zalaare
692b086ad0 Various $HOME/.openelec (vendor) fixes 2016-03-04 11:52:43 -05: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
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
Stephan Raue
6481621d97 scripts: update license headers
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2016-01-02 17:26:58 +01:00
MilhouseVH
7cf785b58a Stop being stingy with System partition size 2015-12-20 18:11:07 +00: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
vpeter4
461e76c940 imx6: create images for diferent systems based on SYSTEM environment variable
creates default cuboxi image
PROJECT=imx6 ARCH=arm make image

creates image for udoo system
PROJECT=imx6 ARCH=arm SYSTEM=udoo_quad make image
2015-05-17 14:16:03 +02:00
Stefan Saraev
71d4eb111b scripts/mkimage: fixup after c2b378c
fail.. sorry rpi/wetek/imx6 builders. call me stupid
and feel free to slap me ;)
2015-04-13 21:45:48 +03:00
Stefan Saraev
d112a25697 scripts/mkimage: use same syslinux.cfg for uefi and legacy
... and use the new 'live' mode. cleanup fancy graphics bootstuff
2015-04-05 20:34:59 +03:00
Stefan Saraev
c2b378c895 mkimage: x86: always creeate uefi images 2015-04-05 18:10:46 +03:00
Stefan Saraev
b20d36e3e0 scripts/mkimage: change image owner back to the calling user 2015-04-05 18:09:22 +03:00
Stephan Raue
5e3dde6d2f scripts/mkimage: install dtb files for bcm2835 bootloader too if avaible
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2015-02-02 22:08:31 +01:00
Stefan Saraev
b1ddbd91c7 mkimage: allow projects to set kernel image name
... and set to kernel.img for WeTek_Play and RPi
2015-01-13 12:36:40 +02:00
Stefan Saraev
24602d9b42 mkimage: dont copy missing files 2015-01-13 12:32:46 +02:00
fritsch
dae7b19e83 Mkimage: Add forgotten -f to check for file available 2014-12-29 19:59:06 +01:00
Stefan Saraev
ae42436eb3 scripts/mkimage: use 256MB system partition for all platforms
closes #3677
2014-12-09 20:06:23 +02:00
Stefan Saraev
79b18383aa Revert "[uefi] enable 32bit uefi support"
This reverts commit 2c7735709d948bf28391023c99ab08e39a7917e7.

it did not work. thanks to t-nelson for testing it..

1. Zotac ZBOX PI320 pico wants bootia32.efi not bootx32.efi
2. even with bootia32.efi (from syslinux) it doesnt boot. I suspect it requires pure 32bit kernel. no mixed mode ?

thank you zotac for creating such a mess.. damn it's almost y2k15
2014-11-12 20:32:34 +02:00
Stefan Saraev
2c7735709d [uefi] enable 32bit uefi support 2014-10-25 15:28:40 +03:00
jenkins101
d7818ab3c4 mkimage: added support for u-boot 2014-05-12 22:18:03 +02:00
Stefan Saraev
de917b244c scripts/mkimage: set 'installer' as default boot option
some people dont enable "usb legacy support" in bios (or dont know how)
thus they can't access installer at all. live mode is non-important
2014-04-25 17:20:12 +03:00
Stephan Raue
80944c8486 scripts/mkimage: install config.txt to image
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2014-03-04 23:07:13 +01:00
Stefan Saraev
bf6703aad3 scripts/mkimag: use different name for uefi images 2014-03-04 11:38:50 +02:00
Stefan Saraev
599837b4ef scripts/mkimage: no menu in uefi boot mode. clean up 2014-03-01 00:49:37 +02:00
Stefan Saraev
301dfa5f1e scripts/mkimage: support only installer in uefi boot mode 2014-03-01 00:46:36 +02:00
Stefan Saraev
3a62787081 syslinux:host: install efi64/efi/syslinux.efi as bootx64.efi 2014-02-28 22:54:15 +02:00
Stefan Saraev
76a19cc0a6 testing: add support for creating efi live images
TODO: full uefi support in installer
2014-02-28 21:04:40 +02:00
Stefan Saraev
56c3d7b79e scripts/mkimage: align partitions 2014-02-28 20:53:43 +02:00
Stefan Saraev
624abb61f4 scripts/mkimage: sizelimit for partition2 2014-02-28 20:28:35 +02:00
Stefan Saraev
87a83d1142 buildsystem: fix image creation 2013-12-29 21:19:14 +02:00
Stephan Raue
1b111d2b5d scripts/mkimage: dont exit and break the build from here
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-12-27 22:14:31 +01:00
Stephan Raue
c0de147498 bcm2835-bootloader: merge image makescript with scripts/mkimage, rename 'mkimage-syslinux' to 'mkimage'
Signed-off-by: Stephan Raue <stephan@openelec.tv>
2013-12-27 22:13:41 +01:00