Page MenuHomeFreeBSD

Implement new MFS_IMAGE_UZIP kernel makeoption, fix MFS_IMAGE without MD_ROOT_SIZE on MIPS*
AbandonedPublic

Authored by sobomax on Mar 11 2016, 2:40 AM.
Tags
None
Referenced Files
F81701461: D5604.diff
Sat, Apr 20, 4:19 AM
Unknown Object (File)
Wed, Apr 3, 1:53 AM
Unknown Object (File)
Dec 22 2023, 10:15 PM
Unknown Object (File)
Nov 11 2023, 12:04 PM
Unknown Object (File)
Nov 5 2023, 7:45 AM
Unknown Object (File)
Oct 31 2023, 2:26 PM
Unknown Object (File)
Oct 10 2023, 11:03 AM
Unknown Object (File)
Oct 4 2023, 7:42 AM

Details

Reviewers
None
Group Reviewers
manpages
Summary
o Implement new MFS_IMAGE_UZIP option to request automatic
  compression of the image using mkuzip(8) utility. This saves
  time when doing iterative development. As a bonus, MFS_IMAGE
  is set as a dependency for the kernel, so if that one gets
  modified, it should also trigger re-compilation even in the
  NO_CLEAN mode.

o Document MFS_IMAGE_UZIP, add some more documentation for the
  case when MD_ROOT_SIZE is omitted;

o Fix compilation of MIPS MFS_IMAGE kernels without explicit
  MD_ROOT_SIZE specifier.
Test Plan

Tested by buildworld+buildkernel on mips:mips, mips:mipsel, mips:mips64 and mips:mips64el

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

sobomax retitled this revision from to Implement new MFS_IMAGE_UZIP kernel makeoption, fix MFS_IMAGE without MD_ROOT_SIZE on MIPS*.
sobomax updated this object.
sobomax edited the test plan for this revision. (Show Details)
sobomax set the repository for this revision to rS FreeBSD src repository - subversion.
sobomax added subscribers: adrian, manpages.
sobomax edited edge metadata.
wblock added inline comments.
share/man/man4/md.4
75

"would" is kind of unsure. Maybe just

This statically reserves an 8MB area in the kernel and puts...
79

How about

The
.Dv MD_ROOT_SIZE
parameter can be omitted, and the size of the RAM disk will be
determined automatically from the actual size of the
86

s/ramdisk/RAM disk/

90

This sentence is really long and has a lot of conditions. Try to simplify:

When memory is limited and read-write access to the RAM disk data is not needed,
.Xr mkuzip 8
can be used to compress the image before it is linked to the kernel:
101

Not yours, but "to use" is not necessary.