106 Commits

Author SHA1 Message Date
Matthias Reichl
a6ce06cb01 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-01-17 16:49:39 +01:00
Matthias Reichl
968f589b37 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-09-29 11:00:16 +02:00
CvH
3f49a597e6
Merge pull request #7036 from antonlacon/le11-scripts
buildsystem: additions to show_config, related
2023-04-16 10:34:43 +02: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
Ian Leonard
d417519f98 buildsystem: move STORAGE_SIZE to the general buildsystem
Signed-off-by: Ian Leonard <antonlacon@gmail.com>
2022-10-24 00:49:24 +00: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
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
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
MilhouseVH
517330f9fe installer: drop extlinux support, not needed - use syslinux 2018-05-15 22:14:42 +01:00
MilhouseVH
cdb7daba21 grub: drop /flash/grub.cfg 2018-05-15 22:14:42 +01:00
MilhouseVH
20992919e1 init: update copyright 2018-05-15 22:14:42 +01:00
MilhouseVH
2c281d13d9 syslinux.cfg/init/etc: unify syslinux.cfg 2018-05-15 22:14:42 +01:00
Matthias Reichl
71b9eacbc6 scripts/mkimage: create .sha256 files of images
Signed-off-by: Matthias Reichl <hias@horus.com>
2018-04-24 20:43:30 +02:00
Matthias Reichl
6d9031b932 scripts/mkimage: drop string substition to change DISK suffix
Signed-off-by: Matthias Reichl <hias@horus.com>
2018-04-24 20:43:30 +02:00
Radostan Riedel
a44ba1226f
Merge pull request #2507 from kszaq/le90_aml_sbc
projects/Amlogic: SBC updates
2018-03-06 08:58:36 +01:00
kszaq
bb85432771 scripts/mkimage: remove project-specific device tree copy
This is already done in project/bootloader/mkimage script.
2018-03-05 22:44:52 +01:00
chewitt
2180f4c85b mkimage: tweak uboot wording to match other messages 2018-03-03 17:41:00 +00:00
MilhouseVH
8f2b872ab6 Revert "scripts/mkimage: use helper function"
This reverts commit 7793bea2e9d47d979bf830c15c657c456aead2bb.
2018-02-04 17:55:59 +00:00
MilhouseVH
7793bea2e9 scripts/mkimage: use helper function 2018-02-01 05:21:36 +00:00
Alex Deryskyba
ce2d407491 scripts/mkimage: Fix an issue when device tree image is not included into SD card images for WeTek devices 2017-12-17 16:59:32 +02:00
Radostan Riedel
e1a965772d
Merge pull request #2260 from kszaq/data_partition_label
scripts/mkimage: add label to disk partition as well
2017-12-09 21:50:46 +01:00
kszaq
7d3bbed226 scripts/mkimage: add label to disk partition as well 2017-12-09 21:48:14 +01:00
Radostan Riedel
c36fada03b Fix image creation for WeTek Devices 2017-11-27 10:02:07 +01:00
Lukas Rusak
561d22515f
scripts/mkimage: use uuid for partitions on RPi 2017-11-17 23:15:37 -08:00
Lukas Rusak
5da14cfce5
u-boot: allow using UBOOT_SYSTEM 2017-11-11 10:32:53 -08:00
MilhouseVH
41dd8f9534 Merge pull request #2061 from maideii/libreelec-8.2
added EFI 32bit support via GRUB2
2017-10-12 23:05:17 +01:00