98 Commits

Author SHA1 Message Date
Vincent Li
916a8aa5ed flash-images: mount debugfs
mount debugfs to allow kernel functions tracing

Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
2025-11-05 18:13:17 +00:00
Vincent Li
6f60c4696f lfs/flash-images: missing serial linux command
Add the missing serial linux command so the
flash image can be converted to qcow2, the
bpfire qcow2 image can be deployed in KVM
virtual environment through serial console
installation.

for exmaple:

virsh define BPFire-VM.xml
virsh start BPFire-VM
virsh console BPFire-VM

we will have serial console access to BPFire
VM and the installation will start.

Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
2024-09-23 17:56:26 +00:00
Vincent Li
eefbd2ef87 mount bpffs for XDP program
Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
2024-03-04 22:15:09 +00:00
Vincent Li
803c6baaea Increase img build partition size
increase img build partition size for
BPF/BTF enabled kernel

Singed-off-by: Vincent Li <vincent.mc.li@gmail.com>
2024-03-01 04:08:01 +00:00
Michael Tremer
ffdc6fbba8 Increase size of /boot to 512 MiB
Is XFS is being selected as file system, the minimum size requirement is
300 MiB. In order to keep it to a round number, this patch increases the
size of /boot to 512 MiB.

To keep all systems consistent, we will also do this on systems that are
being formatted using different file systems.

Fixes: #13077 - xfs cannot installed anymore because boot is to small
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2023-04-24 18:51:12 +00:00
Michael Tremer
39f94ee8eb Drop support for armv6l (and armv7hl)
This removes support for building IPFire for 32 bit ARM architectures.

This has been decided in August 2022 with six months notice as there are
not very many users and hardware is generally not available any more.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2023-02-10 09:26:37 +00:00
Michael Tremer
2e58337291 flash-images: Drop 2gb-ext4 from image filename
This is now being dropped since the image won't fit onto a 2GB device
any more and since there is only one type of image, we don't need to
state the filesystem type.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-08-09 10:23:55 +00:00
Michael Tremer
ca119bb268 flash-images: Increase size of the /boot partition
Same as change to the installer.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Reviewed-by: Peter Müller <peter.mueller@ipfire.org>
2022-08-08 10:12:37 +00:00
Peter Müller
17aaad5d96 flash-images: Harden mount options of /boot
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Reviewed-by: Michael Tremer <michael.tremer@ipfire.org>
2022-06-13 15:39:52 +00:00
Peter Müller
9a7e4d8506 Switch checksums from MD5 to BLAKE2
Historically, the MD5 checksums in our LFS files serve as a protection
against broken downloads, or accidentally corrupted source files.

While the sources are nowadays downloaded via HTTPS, it make sense to
beef up integrity protection for them, since transparently intercepting
TLS is believed to be feasible for more powerful actors, and the state
of the public PKI ecosystem is clearly not helping.

Therefore, this patch switches from MD5 to BLAKE2, updating all LFS
files as well as make.sh to deal with this checksum algorithm. BLAKE2 is
notably faster (and more secure) than SHA2, so the performance penalty
introduced by this patch is negligible, if noticeable at all.

In preparation of this patch, the toolchain files currently used have
been supplied with BLAKE2 checksums as well on
https://source.ipfire.org/.

Cc: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Peter Müller <peter.mueller@ipfire.org>
Acked-by: Michael Tremer <michael.tremeripfire.org>
2022-04-02 14:19:25 +00:00
Michael Tremer
fdb587deca flash-images: Increase size of root partition to 1800 MB
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2022-02-05 12:11:35 +00:00
Arne Fitzenreiter
954ac9df04 flash-images: install u-boot for nanopi r2s on aarch64
rockchip has a large bootloader so this also increase the gap between partitiontable
and fist partition to 16MB on aarch64

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-10-03 07:42:41 +00:00
Michael Tremer
b8b36e969c grub cloud: Add kernel release to boot ID
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-08-01 13:25:03 +00:00
Michael Tremer
dd730a395b flash-image: Enable GRUB_FIRST_BOOT setting
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-08-01 13:24:46 +00:00
Michael Tremer
5621b0ef0a cdrom: Compress file system image using Zstandard
This patch uses the new Zstandard algorithm to compress the file system
image on the ISO image. This comes with these advantages:

* Compression is about twice as fast than XZ with the parameters we have
  selected here
* We use a lot less memory during compression and can therefore utilise
  all processor cores of the build machines
* Decompression (when installing IPFire and when creating the
  flash-image) is substantically faster

The downside is that the generated ISO image is slighty larger (~10MiB)
which I am okay with as a trade-off for the points mentioned above.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-07-14 08:28:46 +00:00
Arne Fitzenreiter
aafdd71b04 switch arm 32 bit arch from armv5tel to armv6l
we have no supported armv5tel board left so we can switch to the higher
arch. This now can use the vpu (still in softfp calling convention to
not break existing installations.)
this fix many compile problems, also boost is now working again.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2021-07-05 07:42:39 +02:00
Michael Tremer
613db5c199 flash-image: Increase root partition size to 1600MB
This is necessary due to the increased size of the base OS which is
mostly driven by linux-firmware.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-06-08 13:37:33 +00:00
Michael Tremer
b37678e922 Package extended attributes in distro.img and Core Updates
System capabilities are stored in extended file system attributes
which are by default not stored in tar balls.

This patch ensures that they are packaged and extracted.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2021-01-06 14:45:02 +00:00
Michael Tremer
70e7351c3e core-updates: Ensure we have no temporary data in the package
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2020-03-24 08:58:10 +00:00
Michael Tremer
7c62b3a587 cdrom+flash-image: Move all temporary files to /tmp
Since /tmp is now a ramdisk, we move all temporary files into it.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2020-03-21 16:03:09 +00:00
Arne Fitzenreiter
2b6b6df32a flash-images: update the uENV root UUID also on arch64
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2020-02-19 08:49:21 +00:00
Arne Fitzenreiter
6ede197501 pathon: update to 3.8 and move pyhton to core
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2020-01-11 14:35:11 +01:00
Arne Fitzenreiter
0894092e2c linux-firmware: update to 20191022
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2019-12-05 12:44:45 +01:00
Arne Fitzenreiter
e47e01f60c u-boot: enable boot from additional mmc device
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2019-08-04 13:43:44 +00:00
Michael Tremer
c4dd9dfc46 Revert "Generate a VHD image"
This reverts commit ee0e3beb39.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-07-01 07:54:19 +01:00
Michael Tremer
ee0e3beb39 Generate a VHD image
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-07-01 07:53:58 +01:00
Michael Tremer
4cf7c05dd8 flash-image: Align image to 1MB boundary
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2019-07-01 07:53:34 +01:00
Arne Fitzenreiter
9023689d73 flash-images: fix partition layout on i586
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2018-07-21 16:33:29 +02:00
Arne Fitzenreiter
46a4581db6 flash-image: use FAT for /boot partition on aarch64
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2018-07-20 12:24:49 +01:00
Michael Tremer
a5c92f50bf flash-images: Only install grub for EFI on aarch64
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-07-14 13:43:54 +01:00
Michael Tremer
f096a2ea98 flash-image+cdrom: Execute ARMv5-specific code on ARMv5
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-07-14 13:43:52 +01:00
Michael Tremer
b89c7379f9 flash-images: Make EFI partition 32MB
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-07-14 13:43:52 +01:00
Michael Tremer
89e79c50c7 flash-images: Cleanup partitioning code
No functional changes

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-07-14 13:43:52 +01:00
Michael Tremer
8662e98173 flash-images: Mark the /boot partition as bootable
Before, the ESP was marked as bootable which isn't necessary

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-07-14 13:43:52 +01:00
Michael Tremer
7d456c3971 flash-image: Use grub-install to install GRUB in EFI mode
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-07-14 13:43:51 +01:00
Michael Tremer
2f329aab27 flash-image: Mark the EFI system partition as such
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-07-14 13:43:51 +01:00
Michael Tremer
dfb0084e35 flash-image: Remove any other GRUB configuration files in EFI mode
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-07-14 13:43:51 +01:00
Michael Tremer
ba3cbb0cfb Adjust variables that have been renamed
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-07-14 13:43:50 +01:00
Michael Tremer
7fbbd2aebc Enable EFI on x86_64
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-07-14 13:43:49 +01:00
Michael Tremer
784cd5cbd7 Enhance the flash image to support EFI
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-07-14 13:43:49 +01:00
Michael Tremer
bd3bcb45d6 AWS: Import aws setup script
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-06-25 10:55:39 +01:00
Michael Tremer
1f2a90b552 flash-image: Make sure that GRUB boots the first entry
This is required when importing an image into AWS EC2 or
the import of the image fails.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-06-21 16:45:40 +01:00
Arne Fitzenreiter
779706b5f8 flash-image: increase boot partition to match with iso install
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2018-06-06 14:52:55 +02:00
Michael Tremer
a649b64547 flash-image: Install files for armv5tel only on armv5tel
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-05-31 12:09:26 +01:00
Michael Tremer
b302b9a695 Compress flash-images as XZ as well
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2018-05-21 20:59:06 +01:00
Arne Fitzenreiter
6b56624445 flash-images: merge normal and scon to one image.
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2018-04-12 16:36:31 +02:00
Arne Fitzenreiter
0a21d63f26 kernel: updated arm config and image build
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2018-03-25 11:41:20 +02:00
Arne Fitzenreiter
ea9d53c822 inittab: change tty1 to console
this reduce the differences between tty and scon installations
and make it easier to switch between.

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2018-03-24 13:26:32 +01:00
Arne Fitzenreiter
02c36af4ba linux-firmare: update to 5d98692
Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
2017-12-12 09:18:11 +01:00
Michael Tremer
c061d66fca cdrom: Change format to XZ and compress in parallel
This allows us to use all processor cores to compress
the image faster.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
2017-10-17 14:58:52 +01:00