Skip to content

Instantly share code, notes, and snippets.

@rick-masters
Created December 11, 2022 16:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rick-masters/54204c0b6b369748b4a1aaf2a4da22cf to your computer and use it in GitHub Desktop.
Save rick-masters/54204c0b6b369748b4a1aaf2a4da22cf to your computer and use it in GitHub Desktop.
List of caveats for getting a build of linux with live-boostrap on Fiwix kernel
  • Fiwix was built outside of live-bootstrap with gcc. Fiwix does compile and boot with tcc but I haven't taken that further.
  • I launched live-bootstrap on the Fiwix kernel rather than transitioning from builder-hex0.
  • I had to run live-bootstrap in phases due to unexplained intermittent Fiwix reboots.
  • I modified musl-1.1.24 to avoid syscalls set_thread_area and clone.
  • I modified autoconf-2.6.4 to expand a package version macro which was failing.
  • I modified helpers.sh to retry an intermittent failing rm -rf, probably due to a Fiwix kernel bug.
  • I skipped building musl-1.2.3 and curl.
  • I skipped the "sortextable" step in the Linux kernel build.
    • (sortextable "sorts the exception table" but it corrupted the kernel on fiwix.)
  • To test the built Linux kernel I inserted it into a Linux driven run of live-bootstrap.
  • Due to my musl changes I disabled checksum validation of created packages

The following major steps are needed to complete the kernel bootstrap path:

  1. Fix Fiwix kernel bugs mentioned above.
  2. Tcc 0.9.27 would need to be repackaged as tar.gz because builder-hex0 can't take us to bzip2.
  3. Fiwix needs to be built with the tcc inside live-bootstrap.
  4. An ext2 initrd filesystem must be prepared using builder-hex0 kernel.
  5. Builder-hex0 kernel needs to kexec fiwix.
  6. Fiwix needs to kexec Linux.
  7. The kernel bootstrap path will need to be integrated into the live-bootstrap project
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment