Commit graph

124 commits

Author SHA1 Message Date
Tomáš Kelemen (vudiq)
f5eaf79a20
scripts: drop LAKKA_DEVBUILD, LAKKA_NIGHTLY, add LAKKA_BUILD_TYPE 2024-05-27 13:47:56 +02:00
macmoritz
0a36daf088
add COUNTRY to wifi-config.txt 2024-05-15 21:49:44 +02:00
Tomáš Kelemen (vudiq)
c07c6e2493
Lakka support for firstboot.sh script (backport)
This script takes values from files stored in the FAT32 partition to set
up Wi-Fi and override/add settings to default retroarch.cfg.

inspired by the solution from @macmoritz
2024-05-15 21:49:24 +02:00
Tomáš Kelemen (vudiq)
4cc4c3f481
mkimage: use only grub for EFI boot 2024-04-16 16:14:16 +02:00
Tomáš Kelemen (vudiq)
afaeeacb8a
image: create storage partition with 4KiB blocks
by default mke2fs assumes block size by the size of the partition. when
the partition is being resized on an 2TiB disk, the resize fails.
forcing 4 KiB block will allow resize of the parittion on such large
drives.

closes #1963
2024-04-14 16:37:08 +02:00
Matthias Reichl
8615165179 scripts/mkimage: create storage filesystem without orphan_file option
resize2fs creates a filesystem with unclean orphan file when resizing
to more than 32GB if the orphan_file option is enabled, resulting in
an unmountable storage partition after initial resize.

Explicitly disable the option until the issue is resolved.

Signed-off-by: Matthias Reichl <hias@horus.com>
2024-02-02 14:11:49 +02:00
Demetris Ierokipides
4099f48153 Merge Rpi5 SOC support to Lakka
Signed-off-by: Demetris Ierokipides <ierokipides.dem@gmail.com>
2023-11-25 02:07:06 +02:00
Matthias Reichl
fe21297a01 RPi: make bootloader files optional
RPi4 only needs start.elf/fixup.dat, RPi5 doesn't need any of them

Signed-off-by: Matthias Reichl <hias@horus.com>
2023-10-08 11:57:04 +02:00
David Lawson
bb5db7a195
Fix build for Generic v5 (#1867)
* libva-utils: fix sha256

* linux: delete obsolete patches

* ppsspp: set USE_SYSTEM_FFMPEG=OFF by default

* show_config: update to match upstream

* Fix build Generic build error

```
.../Lakka-LibreELEC/build.Lakka-Generic.x86_64-5.0-devel/toolchain/share/grub/bootx64.efi: No such file or directory
```

* Move STORAGE_SIZE default to match upstream
2023-07-19 19:02:36 +03:00
Tomáš Kelemen (vudiq)
cec8e52d20
Capcom Home Arcade: set CMA to 128MB
avoid crashes due to being unable to allocate memory, e.g.:
DRM_IOCTL_MODE_CREATE_DUMB failed: Cannot allocate memory
2023-02-11 00:28:31 +01:00
Tomáš Kelemen (vudiq)
fc278bc834
Merge branch 'LibreELEC.tv/master' into Lakka 2023-02-03 23:28:27 +01:00
Tomáš Kelemen (vudiq)
34ff603e1d
Lakka: add debug mode to boot menu (PC+dev/nightly only) 2023-02-03 23:19:02 +01:00
Matthias Reichl
e63855bc0f scripts/mkimage: support multiple distroconfig files
Signed-off-by: Matthias Reichl <hias@horus.com>
2023-02-03 16:02:21 +01:00
Tomáš Kelemen (vudiq)
be47bb0834
use grub for both - 32/64 bit - EFI boot
* grub: update to latest release
* gnulib: update to match grub bootstrap.conf
* grub: build 32 and 64 bit EFI images
* syslinux: do not copy EFI image
* installer: adapt script to above changes
* mkimage: virtual: build only for 64-bit Generic
* mkimage: grub: create cfg / copy EFI images only for 64-bit Generic
2021-11-28 10:45:28 +01:00
Tomáš Kelemen (vudiq)
0217b7a165
mkimage: additional changes
* create temporary folder in the target folder
* move DISK_LABEL setting closer to the part where it is used
* te MBR without test (it should be already present and if not, dd
  will fail anyway and error is caught)
* update output when vmdk is created
2021-11-23 22:23:33 +01:00
Tomáš Kelemen (vudiq)
41b6c049ea
mkimage: optimize disk image creation
In case SYSTEM_SIZE was higher than 1024, mcopy would fail without the
failure being caught. The failure was probably due to invalid geometry
(number of sectors per track too high?). However mformat should be able
to determine the geometry on its own, when no geometry parameters are
supplied. After discussion on IRC with vpeter we came to this solution.

* create temporary folder in the target folder
* use sparse files to create image and partitions
* no extractions of the partitions from image
* modify mcopy alias to copy to the partition sparse file
* add `-o` switch to mcopy alias, so mcopy does not prompt in case of
  existing file in the partition
* remove alias for mformat (is used only one time)
* catch errors for mformat/mcopy/mmd
* use mcopy alias when copying files to virtual appliance part1
* move DISK_LABEL setting closer to the part where it is used
* write MBR without test (it should be already present and if not, dd
  will fail anyway and error is caught)
* update output when vmdk is created

Co-authored-by: Peter <peter.vicman@gmail.com>
2021-11-23 21:28:46 +01:00
Peter
99c8a53164
mkimage: use sparse files during disk image creation
Sparse files are created much faster than writing full disk image and
extracting individual partitions from the disk image.
2021-11-22 22:52:27 +01:00
Tomáš Kelemen (vudiq)
3c36b4f045
mkimage: rework FAT32 population
In case SYSTEM_SIZE was higher than 1024, mcopy would fail without the
failure being caught. The failure was probably due to invalid geometry
(number of sectors per track too high?). After discussion on IRC with
vpeter we came to this solution.

* extract the FAT32 partition from the image
* format the extracted partition without any geometry parameters
  (mformat is able to determine the geometry by itself)
* install/copy files to the extracted partition
* verify the partition
* merge the partition back to the image

The extraction of the FAT32 partition is also needed for the OVA image
in case of Generic project.

Errors while mformat/mcopy/mmd will now be caught and image creation
will be terminated with an error message.

Removed alias for mformat, as it is used only once. Added `-o` to alias
for mcopy, just in case, as the output is now redirected, in case a file
would already exist, the prompt would be not shown and image creation
would just hang (ctrl-c does not work, had to use kill -9 on mcopy
during my testing when I forgot the `-o` switch).

For OVA full path to toolchain is not needed, as the alias has already
the partition in it, not the image.
2021-11-22 00:11:28 +01:00
Tomáš Kelemen (vudiq)
e8c3695999 mkimage: remove copying of fixup4.dat 2021-10-26 22:19:16 +02:00
David Lawson
24b8ee0712 Add support for RPi4.aarch64
port of 1bd927e074
2021-10-15 21:40:40 +02:00
Tomáš Kelemen (vudiq)
607dcb16b9 Merge remote-tracking branch 'libreelec/master' 2021-10-07 11:40:15 +02:00
Ian Leonard
29a3baee03 scripts/mkimage: elminate use of basename
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2021-10-01 19:41:50 +00:00
Tomáš Kelemen (vudiq)
4d0b013fa3 mkimage/Lakka: remove obsolete tty arg 2021-04-05 20:30:27 +02:00
Tomáš Kelemen (vudiq)
0b3188978b mkimage: adjust boot menus for Lakka 2021-04-05 17:00:00 +02:00
Tomáš Kelemen (vudiq)
b0e25f5624 image: option to skip virtual appliance image
in some cases image for virtual appliance might not be needed, so can be
skipped with simple `SKIP_VIRTUAL_IMAGE=yes make image`
2021-04-05 00:55:01 +02:00
Jernej Skrabec
bbd9f80240 mkimage: copy overlays for u-boot images 2021-01-21 22:19:07 +01:00
Matthias Reichl
bc4943e203 scripts/mkimage: drop dt-blob.bin handling
Signed-off-by: Matthias Reichl <hias@horus.com>
2020-09-28 21:02:05 +02:00
Matthias Reichl
578b34eb1b scripts/mkimage: drop chowning image to SUDO_USER
This is a leftover from ancient times when mkimage had to be
run via sudo.

Signed-off-by: Matthias Reichl <hias@horus.com>
2020-09-13 10:32:39 +02:00
mglae
0c065dbdde mkimage: replace deprecated "tty" with "systemd.debug_shell" for Generic 2020-04-06 18:42:34 +02:00
Jonas Karlman
5045ba2274 scripts/mkimage: configure extlinux for valid uboot_helper dtb 2020-01-12 21:19:58 +00:00
chewitt
4228404417 mkimage: remove support for 'vendor' u-boot, we use 'box' now 2019-09-04 03:50:40 +00:00
Matthias Reichl
65beb0f276 scripts/mkimage: use fsck.fat to check FAT partition
fsck.fat is available in toolchain, so use that instead of fsck from
build host (which may not support checking FAT filesystems).

Signed-off-by: Matthias Reichl <hias@horus.com>
2019-07-16 20:06:07 +02:00
MilhouseVH
9bb0b82aba scripts/mkimage: use pigz when compressing image 2019-06-26 20:04:08 +01:00
chewitt
fe8a92fc7e scripts/mkimage: force gzip to overwrite target/*.img.gz 2019-06-26 08:10:38 +04:00
CvH
4b0687558d
Merge pull request #3573 from MilhouseVH/le10_installer_options
init: more informative syslinux boot message
2019-06-23 22:27:24 +02:00
MilhouseVH
3388460ac4 image: explain available options 2019-06-18 18:42:54 +01:00
MilhouseVH
ff3887ee11 init: more informative syslinux boot message 2019-06-18 03:16:04 +01:00
MilhouseVH
90be11322a buildsystem: consistently use braces 2019-06-16 03:35:56 +01:00
Jonas Karlman
0d2d9f8c29 scripts/image: use BUILD_NAME in mkimage 2019-05-01 16:27:04 +00:00
Jonas Karlman
41329e36e5 scripts/image: pass UUID_SYSTEM to mkimage 2019-05-01 16:27:02 +00:00
CvH
7f13cab6d6 mkimage: change ova size to 4gb 2019-01-25 12:10:49 +01:00
Ian Leonard
04556e8036 scripts/mkimage: die is unknown; exit 1
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2018-11-22 21:42:59 +00:00
vpeter4
1edd8b4724 scripts/mkimage: show message when temp folder is full
If temporary folder is full error message can't be saved and shown to the user which doesn't know what the problem actually is. In this case file is empty and show other message.
2018-11-21 14:24:17 +01:00
Ian Leonard
0b524bc1a0 scripts/mkimage: general cleanup
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2018-11-13 01:24:12 +00:00
Ian Leonard
cc266bbf34 scripts/mkimage: indent
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2018-11-13 01:23:14 +00:00
chewitt
d2fa2d6cc8 mkimage: support tty in run mode 2018-08-20 22:28:32 +04:00
CvH
843051d0f7 spdx: scripts/ 2018-07-17 23:58:49 +02:00
Tomas Kelemen (vudiq)
00f059abfd mkimage: use BOOTLABEL and DISKLABEL directly 2018-06-01 11:52:36 +02:00
Tomas Kelemen (vudiq)
c2792f5dbb redefine variable names for partition labels 2018-05-30 08:31:04 +02:00
Tomas Kelemen (vudiq)
ba307e3366 mkimage: use labels defined by distro options 2018-05-29 09:21:44 +02:00