Commit Graph

1211 Commits

Author SHA1 Message Date
Andrius Štikonas 61a2daf87f wip6 2024-04-09 23:19:19 +01:00
Andrius Štikonas d8121d0300 wip5 2024-03-08 08:26:20 +00:00
Andrius Štikonas e4f2ffbe44 wip4 2024-03-04 23:50:19 +00:00
Andrius Štikonas 26153ba84c wip3 2024-03-03 12:46:33 +00:00
Andrius Štikonas bbe84d2dc1 wip3 2024-03-02 21:10:55 +00:00
Andrius Štikonas 426f72a2dc wip2 2024-03-02 16:55:08 +00:00
Andrius Štikonas d983939b3c wip 2024-03-02 15:06:52 +00:00
Gábor Stefanik ee3ab501da Add rootwait to grub command line to fix USB boot failures
Without this, one of my boards fails to reboot from USB drive due to
slow USB enumeration. Rootwait is not needed during the Fiwix -> Linux
jump, because we use an initramfs there, and the init scripts already
wait for USB drives to show up. Linux->Linux kexec, used with a custom
early kernel, might need it, so add it there as well to be safe.
2024-02-18 17:52:33 +01:00
Gábor Stefanik 11d3605b08 Upgrade Linux kernel to 4.14.336
This is the last LTS version buildable using GCC 4.0.x. The next one,
version 4.19, requires at least GCC 4.6.

Fortunately, this is also the first version of the Linux kernel
without firmware blobs being included in /firmware, so the FSFLA
deblob scripts aren't needed anymore to ensure a fully auditable
kernel - the 3 remaining drivers that do include blobs masquerading
as source code are removed via a patch, avoiding all the other side
effects of the deblob scripts.
This doesn't compromise the trustworthiness of the bootstrapped
environment, since all the other drivers deblob would remove use
the firmware loader mechanism, which does nothing when the actual
firmware blobs aren't installed on the system separately. Features
dependent on firmware still won't work, but many drivers that load
firmware do so only optionally. This includes r8169, the driver for
the Realtek gigabit NICs found on many x86 motherboards.

This kernel is considerably larger than 4.9.10, and we build more
of it (including drivers that would previously get stripped away by
the deblob script, such as r8169), so to accommodate that, Fiwix
initrd size is increased by 64MiB, while lowering kexec space by
the same amount to ensure enough userspace memory available in Fiwix.
Fiwix's maximum open file count is also bumped from 1.5K to 2.5K.

The Documentation folder is deleted before build, to further save
space in the ramdisk.
2024-02-17 15:37:33 +01:00
Gábor Stefanik 32138d13b9 Clean pre-Bash build artifacts before building the Linux kernel
All of these are archived, in a compressed form, in base.tar.bz2.
2024-02-17 15:32:02 +01:00
Gábor Stefanik 4e0a0f03dd Capture everything built before the repo system in a base tarball
Parts built before bash and the repo system are available aren't
stored in a clean repository tarball, so if any early file is
overwritten, it's lost. Fix this by creating a base.tar.bz2 right
after the repo is set up, to hold reference copies of early files.
This tarball isn't checksummed, since it varies considerably with
bootstrap options, but the binaries inside are protected by their
own checksums.
2024-02-17 15:32:02 +01:00
Gábor Stefanik 7dc9ebc71d Improve hygiene of kaem build scripts 2024-02-17 15:32:02 +01:00
fosslinux 9c1ae45bb8
Merge pull request #436 from Googulator/xz
Support early xz/lzma decompression, and use it wherever possible
2024-02-15 07:51:13 +00:00
Andrius Štikonas cfa178e8b5
Merge pull request #441 from Googulator/grub-resolution
Allow grub to autodetect screen resolution
2024-02-14 22:52:06 +00:00
Andrius Štikonas 3341de6d42
Merge pull request #439 from Googulator/seedless
Exclude bootstrap-seeds from kernel bootstrap images
2024-02-14 22:51:37 +00:00
Andrius Štikonas a3e7042aa2
Merge pull request #440 from Googulator/usb-fix
Update builder-hex0 with USB mass storage support fixes
2024-02-14 22:50:00 +00:00
Gábor Stefanik 4bc54d83cb Allow grub to autodetect screen resolution
With this, systems without a supported non-vesa FB driver in Linux
(such as Intel integrated graphics) get full resolution after reboot.
2024-02-14 16:02:28 +01:00
Gábor Stefanik 65953732a0 Support early xz/lzma decompression, and use it wherever possible 2024-02-14 14:34:16 +01:00
Gábor Stefanik 967f3f2bb8 Update builder-hex0 with USB mass storage support fixes 2024-02-13 19:53:43 +01:00
Gábor Stefanik 6ecd0a79ef Exclude bootstrap-seeds from kernel bootstrap images
In kernel bootstrap mode, the kernel (builder-hex0) includes the
ability to assemble hex0 source code, and to execute basic commands,
obviating the need for the bootstrap-seeds subdirectory.
With the bootstrap-seeds directory excluded, the image consists of
purely source code, with the exception of the boot sector, which is
assembled from hex0 code by rootfs.py, and delivered ready for BIOS
to boot.
2024-02-13 18:31:36 +01:00
fosslinux 34cb6758d2
Merge pull request #437 from Googulator/e820
Use e820 memory map from BIOS, if available
2024-02-13 10:08:37 +00:00
Gábor Stefanik f2aee4758e Use e820 memory map from BIOS, if available 2024-02-12 13:34:30 +01:00
Gábor Stefanik 9e4c17b68d Pass parameters to make_fiwix_initrd and kexec-fiwix
This extends make_fiwix_initrd and kexec-fiwix to support command
line parameters, instead of hardcoding relevant values within the
C sources. This way, it becomes possible to alter e.g. ramdisk size
without affecting checksums.

While we're at it, also support loading a memory map from file.
2024-02-12 13:34:00 +01:00
fosslinux bbb96a52d6
Merge pull request #432 from Googulator/fiwix-filelist-must-die
Replace Fiwix filelist with parsing builder-hex0's FS structures
2024-02-08 00:48:43 +00:00
fosslinux 54068851d8
Merge pull request #434 from fosslinux/m4
M4 alternative update
2024-02-07 22:11:58 +00:00
fosslinux 61cb7edf91
Merge pull request #435 from Googulator/grub
Fix typo in make_bootable.sh causing failure to reboot
2024-02-07 22:11:47 +00:00
fosslinux 6b4ec19e19 Add m4 1.4.19 2024-02-07 20:35:22 +11:00
fosslinux 068f7d8f40 Fix diffutils manpage reproducibility 2024-02-07 20:22:10 +11:00
Gábor Stefanik 009ec57835 Fix typo in make_bootable.sh causing failure to reboot 2024-02-06 19:22:35 +01:00
Gábor Stefanik 5945bdc1e8 Replace Fiwix filelist with parsing builder-hex0's FS structures
And while we're at it, use a more sustainable way of getting the
address of the next file to be written to.

Since builder-hex0 doesn't distinguish directories from zero-length
files, this has a limitation that it won't copy any zero-length
files or empty directories. Only one such file is important for the
bootstrap process (mes/config.h), which is recreated using an
improve step.
2024-02-06 12:30:24 +01:00
fosslinux ba9d182471 Revert "Update m4 to 1.4.10"
This reverts commit 6d8cf14998.
2024-02-06 18:06:46 +11:00
fosslinux 49f5520143
Merge pull request #429 from fosslinux/gawk
Add gawk 5.3.0
2024-02-06 07:06:16 +00:00
fosslinux f237d67b47
Merge pull request #433 from Googulator/better-early-bash-prompt
Improve pseudo-interactive prompts using the early bash
2024-02-06 06:11:05 +00:00
Gábor Stefanik d50ecd58e8 Improve pseudo-interactive prompts using the early bash
By wrapping $(cat) in an eval, redirections and other advanced
syntax can now work in the early prompts.
Also, since "set -E" is broken is the early bash, fall back to
using "set -e" and an EXIT trap, until we can upgrade to a bash
version that already has working "set -E", or perhaps backport
it to 2.05b.
2024-02-05 10:02:34 +01:00
fosslinux ffbdd8bc18 Add gawk 5.3.0 2024-02-05 18:51:49 +11:00
fosslinux 10d2a72d16
Merge pull request #415 from Googulator/grub
Support reboot in non-chroot modes using grub and an init script
2024-02-05 07:50:36 +00:00
Andrius Štikonas 50947ca61e Fix Fiwix file list and diffutils checksum.
Thanks to Googulator for spotting these.
2024-02-04 18:46:05 +00:00
Andrius Štikonas 0b6c8bfb94 Fix mismerge in parts.rst. 2024-02-04 16:01:30 +00:00
Gábor Stefanik 6d26855dc6 Support reboot in non-chroot modes using grub and an init script
We use grub-2.06 as 2.12 has some packaging issues, and can't be
built in live-bootstrap for now.
2024-02-04 16:54:13 +01:00
fosslinux eb3414c2da
Merge pull request #428 from fosslinux/diffutils
Diffutils 3.10
2024-02-04 03:57:57 +00:00
fosslinux 9c6e5d6406 Add diffutils 3.10 2024-02-04 14:57:46 +11:00
fosslinux 0f27c03ea4
Merge pull request #427 from fosslinux/gzip-newer
Add gzip 1.13
2024-02-04 03:56:07 +00:00
fosslinux cb4404029d Add gzip 1.13
Closes #369
2024-02-04 14:55:55 +11:00
fosslinux 6e05585ff9
Merge pull request #426 from fosslinux/opendoas
Opendoas (ie, sudo)
2024-02-04 03:52:25 +00:00
fosslinux bd303ada4a
Merge pull request #425 from fosslinux/m4-update
Update m4 to 1.4.10
2024-02-04 03:50:55 +00:00
fosslinux 3dee6eab1c
Merge pull request #424 from fosslinux/shadow
Shadow/Users
2024-02-04 03:50:36 +00:00
fosslinux 2188e8182a Add opendoas 2024-02-03 10:07:41 +11:00
fosslinux 75772adb91 Allow the use of setuid binaries
This also changes checksum of util-linux.
2024-02-03 10:07:41 +11:00
fosslinux 72dba439fd
Merge pull request #418 from Googulator/better-interactive
Better interactive mode support
2024-02-02 11:28:49 +00:00
fosslinux 6d8cf14998 Update m4 to 1.4.10 2024-02-02 18:05:02 +11:00