ConnectAll ran only when UniXNU was started straight from BDS. The other entry
path, a DXE driver launching UniXNU, skipped it. UniXNURamDiskDxe publishes its
BlockIo during dispatch, so the DiskIo to SimpleFileSystem connection never
happened and the initrd volume had no filesystem: payload discovery reported fs 0
and the menu offered no boot entry, on firmware where the same payload worked
when UniXNU was started from BDS.
The comment claimed connecting was a BDS-only concern; it is not, because the
connection order matters for a block device published during dispatch. Run it
unconditionally. [boot] connect_all still allows turning it off.
PublishInitrd() refused any initrd whose length was not a multiple of
RAM_BLOCK_SIZE: it logged an error and returned before publishing the block
device, so the payload looked absent even though the bootloader had handed over
a perfectly good ramdisk.
Bootloaders are not obliged to end the initrd on a sector boundary. The NX769J
hands over B3DFA000-B7FFF430, whose low bits are 0x430, and the initrd volume
never appeared: payload discovery reported fs 0 and the menu showed no payload.
Keep rejecting empty ranges, and round the published length up instead. The tail
bytes past the real end are inside the RAM the bootloader reserved for the
initrd and the volume is read-only, so nothing outside the reservation is read.
An already aligned initrd takes exactly the same path as before.
Introduce a generic Tools submenu plus a menu-plugin protocol so device
tools can be discovered at runtime instead of being hardcoded in UniXNU.
Structure:
- UniXNUPkg/Include/Protocol/UniXNUMenuPlugin.h: plugin protocol with a
Run callback, a content rect and a DrawStatus footer callback.
- UniXNUPkg/Library/UniXNULib: discover installed plugins, render a
Back + plugin list, and run the selected plugin between the header and
footer while keeping the upper UI visible.
- UniXNUPkg/Driver/AdvancedLogDxe: first plugin; exports the Advanced
Logger log as OneSend QR frames with 5 volume-key speed gears and a
5-segment level bar, drawn with a single Blt.
- UniXNUPkg.dec: adds the menu plugin GUID and PcdUniXNUDeviceModel so
exported log files are named with the device model.
- scripts/unixnu/payload.py, built-in config and docs: `tools = true`
appends a Tools entry and documents the `tools` action.
The exported QR frames are read with OneSend (扫传):
https://onesend.01mvp.com
Scope: loader and boot logic are unchanged. This commit only adds the
menu/UI plugin path and the Advanced Logger tool; device wiring lives in
the platform checkout and is not part of this change.
The logo's wordmark already reads UniXNU; as in the portrait header, the landscape header draws the title only without the logo or when it says something else, and its provenance line reads version and source.
Parse the P6 header explicitly, keep every raster byte, and reject
non-positive dimensions, maxval other than 255, and mismatched raster
lengths. Add scripts/test-qemu-ppm.py.
confirm_titles and confirm_args give the question a list of choices.
Up and Down step through them, Cancel is shown first, and Enter picks
the shown one. Its argument is appended to the entry's own on a copy,
so the entry itself stays as configured.
An entry with confirm = "text" shows the question and boots only on
Enter. Any other key, or a machine without an input device, cancels.
The default entry never needs confirmation: the config falls back to
the first entry that does not, so the countdown cannot start it.
The boot menu uses a column layout on a framebuffer whose width/height
is below [ui] portrait_below (default 800 thousandths): the vector logo
on top, numbered entry cards at the bottom and wrapping status lines.
[ui] layout forces landscape or portrait. qemu-run.py gains
--display-size to test tall panels, and smoke.sh a layout scenario.
The PPM pixels were split off the header with split(maxsplit=4), which
drops leading bytes that are ASCII whitespace. A background starting
with 0x0B shifted every channel and tinted the screenshot. Take the
pixels from the end of the file instead.
Add English and Simplified Chinese documentation under docs/, covering the boot chain, build, boot, debugging, porting, drivers, XNU 4 KiB pages, macOS and device notes. Add the Pages workflow and CNAME. Rename the boot manager from CrabApple to UniXNU across the package, symbols, paths, configuration file and logs. Update README with the documentation badge and CONTRIBUTING link.
Add transparent dark and light SVG logos under assets/ and show them in
the README with a picture element so they follow the page theme. The
wordmark is a traced outline; gen-logo.py now emits both variants.