Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kernel: Minimize size of bzImage [kernel] file #6

Open
kkarhan opened this issue Dec 6, 2023 · 3 comments
Open

Kernel: Minimize size of bzImage [kernel] file #6

kkarhan opened this issue Dec 6, 2023 · 3 comments
Labels
blocked blocked by another issue enhancement New feature or request help wanted Extra attention is needed question Further information is requested

Comments

@kkarhan
Copy link
Contributor

kkarhan commented Dec 6, 2023

As per Issue #5 the Kernel will grow quite in size, so it's vital to be able to make it smaller, since the growth of the rootfs.cpio.xz isn't that much of a problem.

@landley pointed out his microconfigs which are sadly neglected by upstream.

Furthermore bloatcheck seems to be a good choice to dive into and reducing loglevel as much as possible may also improve the situation.

As the boot issues have been fixed early printk() can be removed.

@kkarhan kkarhan added enhancement New feature or request help wanted Extra attention is needed question Further information is requested labels Dec 6, 2023
@kkarhan kkarhan added this to the OS/1337 "Core" Edition milestone Dec 6, 2023
@kkarhan kkarhan self-assigned this Dec 6, 2023
@kkarhan kkarhan changed the title Kernel: Minimize size of bzImage [kernel] file. Kernel: Minimize size of bzImage [kernel] file Dec 6, 2023
@kkarhan kkarhan removed their assignment Dec 11, 2023
@kkarhan
Copy link
Contributor Author

kkarhan commented Dec 13, 2023

Blocked by #13

@kkarhan kkarhan moved this from Todo to blocked in OS/1337 "CORE" Edition Dec 13, 2023
@kkarhan kkarhan added the blocked blocked by another issue label Dec 15, 2023
@kkarhan kkarhan moved this from blocked to Todo in OS/1337 "CORE" Edition Dec 20, 2023
@kkarhan kkarhan moved this from Todo to Backlog in OS/1337 "CORE" Edition Dec 20, 2023
@kkarhan
Copy link
Contributor Author

kkarhan commented Dec 21, 2023

As of now, the most space-saving technique is to use xz for compressing both bzImage and initramfs.cpio.xz and yeeting all the other compressions at the Kernel Configuration.

@kkarhan
Copy link
Contributor Author

kkarhan commented Dec 22, 2023

As of now, basically everything has been gutted that isn't necessary to boot besides:

  • PC Speaker Support
  • ISA Support
    • PC/104 Support
  • /sys support
  • /proc support
  • /dev support
  • TTY support
  • Network Drivers
    • 3Com
    • AMD
    • Intel
    • VIA

It doesn't even have Filesystems Support built in!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blocked blocked by another issue enhancement New feature or request help wanted Extra attention is needed question Further information is requested
Projects
Development

No branches or pull requests

1 participant