|
@@ -245,8 +245,10 @@ and `make net-dev`/`kernel-net-dev` reload over the network. `bootlog save
|
|
|
`SYS_NET_INFO` does not trigger the NIC probe (it reports "no NIC" until
|
|
`SYS_NET_INFO` does not trigger the NIC probe (it reports "no NIC" until
|
|
|
`kernel_main` probed), so the first frame never waits for a PHY reset.
|
|
`kernel_main` probed), so the first frame never waits for a PHY reset.
|
|
|
COM1 prints `wm: first window frame (term) at N ms` (uptime) when the
|
|
COM1 prints `wm: first window frame (term) at N ms` (uptime) when the
|
|
|
- first app window presents: the end point of a boot-time measurement
|
|
|
|
|
- (~0.35-0.4 s after the kernel starts on QEMU's USB image).
|
|
|
|
|
|
|
+ first terminal presents (the bootscan window is not counted): the end
|
|
|
|
|
+ point of a boot-time measurement
|
|
|
|
|
+ (~0.5-0.6 s after the kernel starts on QEMU's USB image; the bootscan
|
|
|
|
|
+ window is created first).
|
|
|
4. `mbr.S` — MBR (USB/HDD boot); loads the active partition's boot sector
|
|
4. `mbr.S` — MBR (USB/HDD boot); loads the active partition's boot sector
|
|
|
(partition 1 at LBA 63).
|
|
(partition 1 at LBA 63).
|
|
|
5. **UEFI (`boot/efi/`)** — an x86-64 PE32+ `BOOTX64.EFI` loads from the ESP. It
|
|
5. **UEFI (`boot/efi/`)** — an x86-64 PE32+ `BOOTX64.EFI` loads from the ESP. It
|
|
@@ -450,8 +452,10 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
canvas at `WM_CONTENT_VA_BASE`, routes input, owns the cursor, kexec
|
|
canvas at `WM_CONTENT_VA_BASE`, routes input, owns the cursor, kexec
|
|
|
detection and the boot-console handoff. Every window is a canvas client;
|
|
detection and the boot-console handoff. Every window is a canvas client;
|
|
|
there is no in-kernel WM or terminal fallback. The WM paints the desktop,
|
|
there is no in-kernel WM or terminal fallback. The WM paints the desktop,
|
|
|
- spawns the first terminal after `wm_server_boot_ready()` (set after the
|
|
|
|
|
- storage mount), and composites the canvases into the shadow. A normal
|
|
|
|
|
|
|
+ spawns the `/ramfs/bin/bootscan` live-log window first and only then the
|
|
|
|
|
+ first terminal after `wm_server_boot_ready()`, so the terminal is the
|
|
|
|
|
+ newest window and keeps the keyboard focus on startup, and composites the
|
|
|
|
|
+ canvases into the shadow. A normal
|
|
|
window has no visible frame: its `WM_TITLE_H` title bar starts at the
|
|
window has no visible frame: its `WM_TITLE_H` title bar starts at the
|
|
|
window origin and a resize band (`WM_RESIZE_IN` 1 px inside,
|
|
window origin and a resize band (`WM_RESIZE_IN` 1 px inside,
|
|
|
`WM_RESIZE_OUT` 3 px outside every outer edge) is the edge/corner resize
|
|
`WM_RESIZE_OUT` 3 px outside every outer edge) is the edge/corner resize
|
|
@@ -1469,6 +1473,21 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
`bin/gallery` launcher, which prefers `/share/GALLERY` (development upload
|
|
`bin/gallery` launcher, which prefers `/share/GALLERY` (development upload
|
|
|
via `make gallery-dev`), then the pack copy, then the `GALLERY` disk
|
|
via `make gallery-dev`), then the pack copy, then the `GALLERY` disk
|
|
|
fallback on `root.img`/FAT mounts.
|
|
fallback on `root.img`/FAT mounts.
|
|
|
|
|
+- **Boot scan window**: `ucmd_bootscan.c` is the `bootscan` window, a live
|
|
|
|
|
+ tail of the `bootscan` kernel thread's own COM1 output. `boot_storage_main()`
|
|
|
|
|
+ calls `bootcon_scan_begin()`/`bootcon_scan_end()`; while active,
|
|
|
|
|
+ `serial_putc()` passes every COM1 character through `bootcon_scan_char()`,
|
|
|
|
|
+ which keeps only the owning thread's output (CRs dropped) in a 16 KB
|
|
|
|
|
+ frame-allocated ring. The ring survives the thread, so a later manual
|
|
|
|
|
+ `bootscan` launch still shows the completed scan. `SYS_BOOTLOG` (122, STAT
|
|
|
|
|
+ fills `struct sys_bootlog` with total/start/capacity/active, READ copies
|
|
|
|
|
+ one 1 KB chunk from an absolute offset) is the ring-3 view. The WM spawns
|
|
|
|
|
+ the window before the terminal, waits (2 s bound) for it to appear and
|
|
|
|
|
+ places it flush right under the top bar, so the terminal is created last
|
|
|
|
|
+ and owns the focus. The app follows the tail while the scan runs, keeps
|
|
|
|
|
+ the scrollback afterwards (wheel/PgUp/PgDn/Up/Down/Home/End, scrolling up
|
|
|
|
|
+ pauses the follow), colours `vfs:`/`blk:`/`[boot]` lines, and closes with
|
|
|
|
|
+ Esc or the title-bar X.
|
|
|
- **Process monitor**: `ucmd_process.c` — the graphical task manager (`process`
|
|
- **Process monitor**: `ucmd_process.c` — the graphical task manager (`process`
|
|
|
or the top bar's `Tasks` button), the ngui counterpart of `top`. It
|
|
or the top bar's `Tasks` button), the ngui counterpart of `top`. It
|
|
|
samples once per second and keeps 60 s
|
|
samples once per second and keeps 60 s
|
|
@@ -2107,7 +2126,7 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
|
|
|
|
|
`cd [path]`, `ls [path]`, `cat <path>`, `save <path> <text>`, `rm <path>`,
|
|
`cd [path]`, `ls [path]`, `cat <path>`, `save <path> <text>`, `rm <path>`,
|
|
|
`mkdir <path>`, `rmdir <path>`, `hello`, `reboot`, `poweroff`,
|
|
`mkdir <path>`, `rmdir <path>`, `hello`, `reboot`, `poweroff`,
|
|
|
-`display`, `cpuinfo`, `mouseinfo`, `gfxbench`, `lsusb`, `touchpad [rightclick off|tap|corner|both] [tapclick on|off] [scroll on|off|natural|traditional]`, `lspci [id]`, `peek <addr> [len]`, `poke <addr> <val>`, `storage`, `disks` (the ngui storage manager), `meminfo`, `top`, `process` (the ngui task manager), `sched`, `format [-y] <device> [size]` (binary units, e.g. `format ide0 100mb` or `1gb`; no size formats the whole disk; `-y` skips the prompt), `install [-y] <target> [source|self]` (clone the live image, or write the running image; auto-detects the source, preferring `usb0`; `auto` targets the only non-USB NebOS disk),
|
|
|
|
|
|
|
+`display`, `cpuinfo`, `mouseinfo`, `gfxbench`, `lsusb`, `touchpad [rightclick off|tap|corner|both] [tapclick on|off] [scroll on|off|natural|traditional]`, `lspci [id]`, `peek <addr> [len]`, `poke <addr> <val>`, `storage`, `disks` (the ngui storage manager), `meminfo`, `top`, `process` (the ngui task manager), `bootscan` (the live boot storage-scan window), `sched`, `format [-y] <device> [size]` (binary units, e.g. `format ide0 100mb` or `1gb`; no size formats the whole disk; `-y` skips the prompt), `install [-y] <target> [source|self]` (clone the live image, or write the running image; auto-detects the source, preferring `usb0`; `auto` targets the only non-USB NebOS disk),
|
|
|
`ps`, `renice <pid> <weight>`, `kill <pid>`, `idle [auto|hlt|c1e|c3|c6]`, `power`, `powerinfo`, `cpufreq [auto|min|max|off|<pstate>]`, `spin [ms]`, `backlight [0-100|up|down]` (also `probe`), `keytest` (raw scancode tap), `help`, `clear`, `serial test`, `kexec`, `dbg`, `view <file>` (image viewer; PNG, baseline/progressive JPEG, animated GIF, BMP, TGA, PNM, ICO, PAM), `browser [url|file]` (disk app launcher), and `chat [config-path]` (Cloudron Chat client).
|
|
`ps`, `renice <pid> <weight>`, `kill <pid>`, `idle [auto|hlt|c1e|c3|c6]`, `power`, `powerinfo`, `cpufreq [auto|min|max|off|<pstate>]`, `spin [ms]`, `backlight [0-100|up|down]` (also `probe`), `keytest` (raw scancode tap), `help`, `clear`, `serial test`, `kexec`, `dbg`, `view <file>` (image viewer; PNG, baseline/progressive JPEG, animated GIF, BMP, TGA, PNM, ICO, PAM), `browser [url|file]` (disk app launcher), and `chat [config-path]` (Cloudron Chat client).
|
|
|
|
|
|
|
|
Network: `netinfo`, `netrecv`, `netsend`, `netip [a.b.c.d]`, `dhcp` (re-run the
|
|
Network: `netinfo`, `netrecv`, `netsend`, `netip [a.b.c.d]`, `dhcp` (re-run the
|
|
@@ -2692,12 +2711,12 @@ and the WM falls back to polling (`io_keyboard_irq_masked()`).
|
|
|
with `--gc-sections`; the current full pack with the UI fonts, both
|
|
with `--gc-sections`; the current full pack with the UI fonts, both
|
|
|
WiFi firmwares (7265D 1,036,312 bytes, ~442 KiB gzip; 6000 454,608 bytes,
|
|
WiFi firmwares (7265D 1,036,312 bytes, ~442 KiB gzip; 6000 454,608 bytes,
|
|
|
~204 KiB gzip), the RTL8821A firmware and tables (31,898 + 11,668
|
|
~204 KiB gzip), the RTL8821A firmware and tables (31,898 + 11,668
|
|
|
- bytes) and `install/kernel.bin` is ~1.88 MiB gzip (~120 KB under the
|
|
|
|
|
- cap), inflating to ~3.6 MB, which adds about
|
|
|
|
|
- half a second to the boot; the floppy lite pack is ~580 KiB gzip and
|
|
|
|
|
|
|
+ bytes) and `install/kernel.bin` is ~1.98 MiB gzip (~20 KB under the
|
|
|
|
|
+ cap), inflating to ~4.1 MB, which adds about
|
|
|
|
|
+ half a second to the boot; the floppy lite pack is ~638 KiB gzip and
|
|
|
deliberately omits the firmware, `install/kernel.bin` and the browser
|
|
deliberately omits the firmware, `install/kernel.bin` and the browser
|
|
|
(`BROWSER` on `root.img` is the floppy copy). `libdeflate-gzip -12` is still preferred. Over
|
|
(`BROWSER` on `root.img` is the floppy copy). `libdeflate-gzip -12` is still preferred. Over
|
|
|
- 115200 serial a raw `cmds-dev` pack (3.5 MiB) now takes about four
|
|
|
|
|
|
|
+ 115200 serial a raw `cmds-dev` pack (4.1 MiB) now takes about four
|
|
|
minutes; use `net-cmds`.
|
|
minutes; use `net-cmds`.
|
|
|
9. SMP is **ACPI/MADT only**: no Intel MP-table fallback, so a Pentium II SMP
|
|
9. SMP is **ACPI/MADT only**: no Intel MP-table fallback, so a Pentium II SMP
|
|
|
board that exposes only MP tables stays UP (deliberate; there is no test
|
|
board that exposes only MP tables stays UP (deliberate; there is no test
|
|
@@ -2767,8 +2786,10 @@ and the WM falls back to polling (`io_keyboard_irq_masked()`).
|
|
|
~0x8ef20 before (with the 6200/6300 DVM layer, the RTL8821AU driver, the
|
|
~0x8ef20 before (with the 6200/6300 DVM layer, the RTL8821AU driver, the
|
|
|
8×16 boot-console font, the IOAPIC/AMD-thermal additions and the safe
|
|
8×16 boot-console font, the IOAPIC/AMD-thermal additions and the safe
|
|
|
AMD MTRR path, the 32x32 cursor save buffer and the mount-policy table)
|
|
AMD MTRR path, the 32x32 cursor save buffer and the mount-policy table)
|
|
|
- ~0x8bf20 now that the frame bitmap moved out of BSS, ~16 KB below the
|
|
|
|
|
- `0x90000` wall, and the remaining limit
|
|
|
|
|
|
|
+ ~0x8bf20 once the frame bitmap moved out of BSS; with the ioremap
|
|
|
|
|
+ window, the EHCI handoff fix and the boot-scan log ring it is ~0x8df80,
|
|
|
|
|
+ ~8 KB below the `0x90000` wall, and the
|
|
|
|
|
+ remaining limit
|
|
|
is kernel code/buffers only.
|
|
is kernel code/buffers only.
|
|
|
|
|
|
|
|
22. Browser limits: JavaScript runs inline and external classic scripts on
|
|
22. Browser limits: JavaScript runs inline and external classic scripts on
|
|
@@ -3183,4 +3204,4 @@ and the WM falls back to polling (`io_keyboard_irq_masked()`).
|
|
|
drivers and only Cirrus and the software cursor are tested in QEMU.
|
|
drivers and only Cirrus and the software cursor are tested in QEMU.
|
|
|
The cursor shape follows the WM poll, so it can lag the pointer by
|
|
The cursor shape follows the WM poll, so it can lag the pointer by
|
|
|
one WM loop. The 4 KB save buffer and the cursor code (~8 KB in all) are included in
|
|
one WM loop. The 4 KB save buffer and the cursor code (~8 KB in all) are included in
|
|
|
- `_end` ~0x8bf20, ~16 KB below the `0x90000` wall.
|
|
|
|
|
|
|
+ `_end` ~0x8df80, ~8 KB below the `0x90000` wall.
|