|
@@ -16,7 +16,7 @@ Targets i586 (first-gen Pentium); runs under QEMU or on real hardware.
|
|
|
| `user/` | `ucmd_lib.h` (the ring-3 syscall wrappers) and `ucmd.ld` |
|
|
| `user/` | `ucmd_lib.h` (the ring-3 syscall wrappers) and `ucmd.ld` |
|
|
|
| `user/apps/<name>/` | One ring-3 program per directory: entry file `ucmd_<name>.c` plus private modules (`browser/` holds `browser.c`, `browser_html.c`, `js_*.c`, `svg_raster.c`; `chat/` holds `chat_login.c`; `gallery/` holds the real `gallery.c` behind the `ucmd_gallery.c` launcher; `hello/` has its own `hello.ld`) |
|
|
| `user/apps/<name>/` | One ring-3 program per directory: entry file `ucmd_<name>.c` plus private modules (`browser/` holds `browser.c`, `browser_html.c`, `js_*.c`, `svg_raster.c`; `chat/` holds `chat_login.c`; `gallery/` holds the real `gallery.c` behind the `ucmd_gallery.c` launcher; `hello/` has its own `hello.ld`) |
|
|
|
| `user/lib/<lib>/` | Ring-3 libraries: `libc`, `ngui`, `ufont`, `img`, `tls` (crypto incl. `wpa_crypto.c`), `uhttp`, `ujson`, `uwm` (`uwm_lib.c`), `wifi` (`wifi_store.c`, `wpa.c`); host tests live next to their library |
|
|
| `user/lib/<lib>/` | Ring-3 libraries: `libc`, `ngui`, `ufont`, `img`, `tls` (crypto incl. `wpa_crypto.c`), `uhttp`, `ujson`, `uwm` (`uwm_lib.c`), `wifi` (`wifi_store.c`, `wpa.c`); host tests live next to their library |
|
|
|
-| `tools/` | Host tools (`mkpack.c`, `mkrootfs.c`, `mkrtwtbl.c`, `mkcursors.c`, `mkicons.c`, `mkwoff.py`, `kexec_send.c`, `netkexec_send.c`, `netmonitor.c`, `flash.sh`, `xcursor_trim.py`), the QMP test scripts and `cursor_test.c` |
|
|
|
|
|
|
|
+| `tools/` | Host tools (`mkpack.c`, `mkrootfs.c`, `mkrtwtbl.c`, `mkcursors.c`, `mkicons.c`, `jsstrip.c`, `mkwoff.py`, `kexec_send.c`, `netkexec_send.c`, `netmonitor.c`, `flash.sh`, `xcursor_trim.py`), the QMP test scripts and `cursor_test.c` |
|
|
|
| `assets/` | Imported assets: `assets/cursors/adwaita/` (the Adwaita 24 px Xcursor files) and `assets/icons/adwaita/` (the Adwaita symbolic SVGs used as UI icons), both LGPL-3 / CC-BY-SA-3.0, with README and licences |
|
|
| `assets/` | Imported assets: `assets/cursors/adwaita/` (the Adwaita 24 px Xcursor files) and `assets/icons/adwaita/` (the Adwaita symbolic SVGs used as UI icons), both LGPL-3 / CC-BY-SA-3.0, with README and licences |
|
|
|
| `host/` | Linux SDL3 browser harness |
|
|
| `host/` | Linux SDL3 browser harness |
|
|
|
|
|
|
|
@@ -128,7 +128,9 @@ make clean
|
|
|
```
|
|
```
|
|
|
|
|
|
|
|
- Build flags (in `Makefile`): `-m32 -march=i586 -ffreestanding -fno-pie -nostdlib
|
|
- Build flags (in `Makefile`): `-m32 -march=i586 -ffreestanding -fno-pie -nostdlib
|
|
|
- -fno-stack-protector -mno-sse -mno-sse2 -mno-mmx -O2`.
|
|
|
|
|
|
|
+ -fno-stack-protector -mno-sse -mno-sse2 -mno-mmx -O2`. The ring-3 WM and
|
|
|
|
|
+ viewer are per-object `-Os` with function sections, like the other size-
|
|
|
|
|
+ sensitive GUIs, because the 2 MB gzip rootfs pack is close to its cap.
|
|
|
- `make browser-host` is a development-only harness, not part of the images: it
|
|
- `make browser-host` is a development-only harness, not part of the images: it
|
|
|
builds `browser.c`, ngui, the image/TLS stack and QuickJS as a 32-bit Linux
|
|
builds `browser.c`, ngui, the image/TLS stack and QuickJS as a 32-bit Linux
|
|
|
program against the same `SYS_*` ABI (`host/syscall.c`, an SDL3 window,
|
|
program against the same `SYS_*` ABI (`host/syscall.c`, an SDL3 window,
|
|
@@ -353,7 +355,8 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
and the shadow flush) or the BKL is held; voluntary blocks/yields go through
|
|
and the shadow flush) or the BKL is held; voluntary blocks/yields go through
|
|
|
the `int 0x81` gate.
|
|
the `int 0x81` gate.
|
|
|
- **SMP / ACPI**: `acpi.c/h` (RSDP → RSDT/XSDT → MADT; CPU/LAPIC and IOAPIC
|
|
- **SMP / ACPI**: `acpi.c/h` (RSDP → RSDT/XSDT → MADT; CPU/LAPIC and IOAPIC
|
|
|
- base lists; 4 MB table page mapping; malformed tables are ignored),
|
|
|
|
|
|
|
+ base lists; 4 MB table page mapping; the FADT PM1 control blocks, flags and
|
|
|
|
|
+ the DSDT (or SSDT) `\_S5` sleep types; malformed tables are ignored),
|
|
|
`ioapic.c/h` (masks the normal IOAPIC redirection entries after ACPI init so
|
|
`ioapic.c/h` (masks the normal IOAPIC redirection entries after ACPI init so
|
|
|
the 8259/LINT0 path is deterministic; ExtINT entries are preserved),
|
|
the 8259/LINT0 path is deterministic; ExtINT entries are preserved),
|
|
|
`lapic.c/h`
|
|
`lapic.c/h`
|
|
@@ -373,6 +376,21 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
into `struct process.fpu` and FRSTORs the incoming one (FNINIT for a
|
|
into `struct process.fpu` and FRSTORs the incoming one (FNINIT for a
|
|
|
process that never ran); the kernel uses no x87, and its SSE helpers
|
|
process that never ran); the kernel uses no x87, and its SSE helpers
|
|
|
touch only XMM registers, which ring 3 (`-mno-sse`) never uses.
|
|
touch only XMM registers, which ring 3 (`-mno-sse`) never uses.
|
|
|
|
|
+ `acpi_poweroff()` enables ACPI through the FADT SMI command (or the
|
|
|
|
|
+ conventional `0xB2`/`0xF1` pair) when `SCI_EN` is clear, then sets
|
|
|
|
|
+ `SLP_TYP` and `SLP_EN` in PM1a/PM1b with a read-modify-write that keeps
|
|
|
|
|
+ `SCI_EN` set (the type first, `SLP_EN` in a second write). The values
|
|
|
|
|
+ come from the FADT and the decoded `\_S5` package. Intel-style
|
|
|
|
|
+ southbridges also clear `SMI_EN.SLP_SMI_EN` (bit 4 at PMBASE+0x30) so
|
|
|
|
|
+ the sleep write is not turned into an SMI. NVIDIA nForce/MCP boards (the
|
|
|
|
|
+ ION) run S5 through the firmware SMM instead: the same path writes the
|
|
|
|
|
+ sleep state into the BIOS NVS (ASSB=5, AOTB/OSTP for Linux, AAXB=0) and
|
|
|
|
|
+ arms PS1S/PS1E in the SMI block, matching the DSDT's `_PTS(5)`. So
|
|
|
|
|
+ `poweroff` performs a real ACPI S5 shutdown on BIOS and UEFI boots alike
|
|
|
|
|
+ (both hand the kernel the same ACPI tables); the Bochs/QEMU ports are
|
|
|
|
|
+ only the emulator fallback. If no path works the command returns instead
|
|
|
|
|
+ of halting: the WM shows `poweroff failed` and the FADT/S5/`SCI_EN` state
|
|
|
|
|
+ is in the netlog.
|
|
|
- **Memory**: `phys.h` — `MM_MAX_PHYS` (1 GB, the lowmem/identity-map
|
|
- **Memory**: `phys.h` — `MM_MAX_PHYS` (1 GB, the lowmem/identity-map
|
|
|
ceiling, also used by the UEFI loader for the pack buffer), `MM_KMAP_VA`
|
|
ceiling, also used by the UEFI loader for the pack buffer), `MM_KMAP_VA`
|
|
|
(`0x4FC00000`) and `MM_HIGH_LIMIT` (4 GB). Lowmem ends where ring-3 space
|
|
(`0x4FC00000`) and `MM_HIGH_LIMIT` (4 GB). Lowmem ends where ring-3 space
|
|
@@ -514,6 +532,24 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
window behind it. While dragged or resized the WM owns the pointer
|
|
window behind it. While dragged or resized the WM owns the pointer
|
|
|
(`SYS_WM_MOUSE_CAPTURE`), so canvas clients see no held button and cannot
|
|
(`SYS_WM_MOUSE_CAPTURE`), so canvas clients see no held button and cannot
|
|
|
start a scrollbar drag. The kernel hit-test uses the same order.
|
|
start a scrollbar drag. The kernel hit-test uses the same order.
|
|
|
|
|
+ The desktop background is `COL_BG` until a wallpaper is installed. The
|
|
|
|
|
+ image viewer pre-renders the current image to a screen-aspect RGB565
|
|
|
|
|
+ buffer (at most 1440x810, cropped to cover) and writes one
|
|
|
|
|
+ `struct wm_wallpaper_hdr` (magic `NBWAL1`, width, height) plus the pixels to
|
|
|
|
|
+ `/data/WALLPAPR.BIN` when the data volume is mounted, else the RAM-only
|
|
|
|
|
+ `/share/wallpaper`. It then calls `SYS_WM_WALLPAPER` (123, op 1), which
|
|
|
|
|
+ bumps `wm_status.wallpaper_seq`; the WM's loop sees the new sequence,
|
|
|
|
|
+ reloads the file (`/data` first, then `/share`), rebuilds its x/y
|
|
|
|
|
+ nearest-neighbour maps and repaints. The WM has no image decoder: it
|
|
|
|
|
+ stretches the stored buffer into every desktop damage rectangle under the
|
|
|
|
|
+ bar and windows, with a static 2.4 MB buffer plus a 256 KB RGB565-to-BGRA
|
|
|
|
|
+ table for 32 bpp (and direct stores for 16/24 bpp). A row pointer starts
|
|
|
|
|
+ at the row and is indexed with absolute screen x, so a partial damage rect
|
|
|
|
|
+ paints exactly the same pixels as a full redraw; adding x0 to both shifted
|
|
|
|
|
+ the wallpaper inside the rect and left the previous window pixels behind
|
|
|
|
|
+ while dragging. A missing or invalid file falls back to `COL_BG`. The
|
|
|
|
|
+ file survives a reboot on an installed board because it lives on the
|
|
|
|
|
+ `NEBOSDATA` volume.
|
|
|
The NebOS banner in the top-left corner is the start button. Clicking it
|
|
The NebOS banner in the top-left corner is the start button. Clicking it
|
|
|
opens the WM's Windows-like start menu, a flat overlay panel drawn by the
|
|
opens the WM's Windows-like start menu, a flat overlay panel drawn by the
|
|
|
WM (not a window, so it does not consume a `WM_MAX_WINDOWS` slot). It is
|
|
WM (not a window, so it does not consume a `WM_MAX_WINDOWS` slot). It is
|
|
@@ -616,8 +652,11 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
`SYS_GFX_BEGIN/PRESENT/END` terminal-takeover service and the kernel
|
|
`SYS_GFX_BEGIN/PRESENT/END` terminal-takeover service and the kernel
|
|
|
text-canvas renderer are removed. Pointer input: `SYS_WIN_POINTER` reports
|
|
text-canvas renderer are removed. Pointer input: `SYS_WIN_POINTER` reports
|
|
|
the content-relative position, buttons and focus, and `SYS_WIN_EVENT` queues
|
|
the content-relative position, buttons and focus, and `SYS_WIN_EVENT` queues
|
|
|
- press/release edges with a capture window, so a click that starts in a
|
|
|
|
|
- window still gets its release after the pointer leaves. The userland
|
|
|
|
|
|
|
+ left and right press/release edges with a capture window (its `button` field
|
|
|
|
|
+ says which button changed), so a click that starts in a window still gets
|
|
|
|
|
+ its release after the pointer leaves. `ngui` exposes `right_pressed`/
|
|
|
|
|
+ `right_released` beside the left `pressed`/`released` edges, which widgets
|
|
|
|
|
+ do not consume; the browser uses them for its page context menu. The userland
|
|
|
`ngui.c/h` immediate-mode toolkit builds on those: clipped RGB565
|
|
`ngui.c/h` immediate-mode toolkit builds on those: clipped RGB565
|
|
|
primitives, buttons, text input, the Adwaita symbolic icons and scrolling panes
|
|
primitives, buttons, text input, the Adwaita symbolic icons and scrolling panes
|
|
|
(`ngui_scroll`: an overlay scrollbar that is hidden while the pointer is
|
|
(`ngui_scroll`: an overlay scrollbar that is hidden while the pointer is
|
|
@@ -909,6 +948,8 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
works. Files are 8.3 only until FAT LFN write support exists. A reinstall
|
|
works. Files are 8.3 only until FAT LFN write support exists. A reinstall
|
|
|
replaces P1..P3 and keeps P4; `net-install` never touches it. The data
|
|
replaces P1..P3 and keeps P4; `net-install` never touches it. The data
|
|
|
volume is not available on the live USB unless that stick was installed.
|
|
volume is not available on the live USB unless that stick was installed.
|
|
|
|
|
+ The image viewer stores the desktop wallpaper in `WALLPAPR.BIN` here (the
|
|
|
|
|
+ WM's `wall_load()` looks for it at boot and after a change).
|
|
|
- **SATA/AHCI**: `ahci.c/h` — polled AHCI driver (first controller only, PCI
|
|
- **SATA/AHCI**: `ahci.c/h` — polled AHCI driver (first controller only, PCI
|
|
|
class `01:06:01`, no IRQs, no NCQ): port bring-up with COMRESET, IDENTIFY
|
|
class `01:06:01`, no IRQs, no NCQ): port bring-up with COMRESET, IDENTIFY
|
|
|
(shared `ata_identify_parse()` with `ata.c`) and READ/WRITE DMA EXT through
|
|
(shared `ata_identify_parse()` with `ata.c`) and READ/WRITE DMA EXT through
|
|
@@ -1245,8 +1286,8 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
ngui) uses the same ids for the bar's network and battery icons.
|
|
ngui) uses the same ids for the bar's network and battery icons.
|
|
|
`tools/mkicons.c` rasterizes
|
|
`tools/mkicons.c` rasterizes
|
|
|
each SVG with the browser's `svg_raster.c` into a 16x16 8-bit coverage
|
|
each SVG with the browser's `svg_raster.c` into a 16x16 8-bit coverage
|
|
|
- mask and writes one `NBICO1` bundle (16-byte header + masks, 24 icons,
|
|
|
|
|
- ~6.2 KB, ~1.3 KB gzip) packed as `icons/adwaita16.icn` in **both** packs.
|
|
|
|
|
|
|
+ mask and writes one `NBICO1` bundle (16-byte header + masks, 25 icons,
|
|
|
|
|
+ ~6.3 KB, ~1.4 KB gzip) packed as `icons/adwaita16.icn` in **both** packs.
|
|
|
Its XML reader handles only what symbolic icons use (`<svg viewBox>`,
|
|
Its XML reader handles only what symbolic icons use (`<svg viewBox>`,
|
|
|
`<g>`, `<path>`, `<rect>`, `<circle>`, `<ellipse>`,
|
|
`<g>`, `<path>`, `<rect>`, `<circle>`, `<ellipse>`,
|
|
|
fill/fill-rule/opacity) and
|
|
fill/fill-rule/opacity) and
|
|
@@ -1788,6 +1829,29 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
Up/Down preview a row in the bar, Delete forgets the highlighted row,
|
|
Up/Down preview a row in the bar, Delete forgets the highlighted row,
|
|
|
Esc closes the list (and drops the completion), a click opens a row.
|
|
Esc closes the list (and drops the completion), a click opens a row.
|
|
|
The in-session back/forward stack (`history[]`, 16 entries) is separate.
|
|
The in-session back/forward stack (`history[]`, 16 entries) is separate.
|
|
|
|
|
+ **Downloads**: right-clicking the page opens an in-window context menu
|
|
|
|
|
+ (`ngui.right_pressed`): over an `<img>` or a CSS `background-image` it
|
|
|
|
|
+ offers *Save image*, over a link *Save link*, and anywhere *Save page*
|
|
|
|
|
+ (not for `about:` URLs). `dl_queue()` puts one job in a 24-entry static
|
|
|
|
|
+ list; a dedicated fifth `curl __serve` helper outside `fetch_workers`
|
|
|
|
|
+ fetches it, so a navigation that cancels the page's image workers does not
|
|
|
|
|
+ cancel the download. The request line is `<seq> <cap> DL <url>`; the
|
|
|
|
|
+ helper skips gzip, reads the body in 16 KB slices and writes
|
|
|
|
|
+ `/share/bf...prog` (`seq`, bytes received, Content-Length or 0) at most
|
|
|
|
|
+ every 100 ms. When `/data` is mounted the browser copies the body to
|
|
|
|
|
+ `/data/DOWNLOAD`, else `/share/DOWNLOAD`, with a FAT-safe 8.3 name from
|
|
|
|
|
+ the URL basename (MIME-type extension when there is none, `~N` collision
|
|
|
|
|
+ suffixes), then drops the helper files. The body cap is the helper's
|
|
|
|
|
+ 4 MB. The toolbar's download button opens a panel with the newest twelve
|
|
|
|
|
+ jobs: live percentage/progress bar for the active one, size for a finished
|
|
|
|
|
+ file, error text for a failure, and a *Clear* action for completed
|
|
|
|
|
+ entries. The icon carries a progress bar while a job runs and an accent
|
|
|
|
|
+ dot for unseen completions. The list is `/share/bdownloads` plus
|
|
|
|
|
+ `/data/BDOWN.DAT` (8.3, plaintext `NBDL1\n` then
|
|
|
|
|
+ `state\nsize\nname\npath\n`), so history survives a reload/reboot; the
|
|
|
|
|
+ panel reads `/share` first, else `/data`. One download runs at a time
|
|
|
|
|
+ (the extra helper keeps the page pool intact) and it continues while the
|
|
|
|
|
+ page scrolls, a new page loads or the window loses focus.
|
|
|
Images are prefetched up to four at a time and only when their measured
|
|
Images are prefetched up to four at a time and only when their measured
|
|
|
position is within the viewport plus 160 px; deferred images are loaded as
|
|
position is within the viewport plus 160 px; deferred images are loaded as
|
|
|
the page scrolls. Network work runs in up to `FETCH_WORKERS` (four)
|
|
the page scrolls. Network work runs in up to `FETCH_WORKERS` (four)
|
|
@@ -1940,8 +2004,26 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
run (the microtask checkpoint, `mu_do_jobs`) and reported only if no
|
|
run (the microtask checkpoint, `mu_do_jobs`) and reported only if no
|
|
|
handler was attached by then (`Promise.reject(e).then(f).catch(g)` used
|
|
handler was attached by then (`Promise.reject(e).then(f).catch(g)` used
|
|
|
to print "Uncaught"). `js_prelude.js` (embedded by `js_prelude.S`, run once per
|
|
to print "Uncaught"). `js_prelude.js` (embedded by `js_prelude.S`, run once per
|
|
|
- state before the page's scripts) implements the Web APIs in JavaScript on
|
|
|
|
|
|
|
+ state before the page's scripts; the build embeds
|
|
|
|
|
+ `build/user/apps/browser/js_prelude.min.js`, which the host tool
|
|
|
|
|
+ `tools/jsstrip.c` makes by dropping comments, indentation and the blanks
|
|
|
|
|
+ that do not separate two tokens -- ~4 KB of gzip in the rootfs pack, with
|
|
|
|
|
+ names and line breaks kept) implements the Web APIs in JavaScript on
|
|
|
three C primitives (`__nb_http`, `__nb_storage`, `__nb_resolve`):
|
|
three C primitives (`__nb_http`, `__nb_storage`, `__nb_resolve`):
|
|
|
|
|
+ an en-US-only `Intl` (QuickJS has none; the Cloudron dashboard's date
|
|
|
|
|
+ helpers threw `'Intl' is not defined`): `DateTimeFormat` (fields,
|
|
|
|
|
+ `dateStyle`/`timeStyle`, `formatToParts`, always UTC, which is also
|
|
|
|
|
+ `resolvedOptions().timeZone`), `NumberFormat` (decimal/percent/currency/
|
|
|
|
|
+ unit, compact, significant digits, sign display), `RelativeTimeFormat`,
|
|
|
|
|
+ `DurationFormat`, `DisplayNames` (a small language/region table),
|
|
|
|
|
+ `Collator`, `PluralRules`, `ListFormat` and a stub `Locale`; it also
|
|
|
|
|
+ replaces `Date.prototype.toLocale*String`, `Number.prototype.
|
|
|
|
|
+ toLocaleString` and `String.prototype.localeCompare` (ICU-like: case- and
|
|
|
|
|
+ accent-blind first, whitespace < punctuation < digits < letters);
|
|
|
|
|
+ constraint validation (`checkValidity`/`reportValidity`/`validity`/
|
|
|
|
|
+ `setCustomValidity` on controls and forms: required, min/maxlength,
|
|
|
|
|
+ pattern, email/url syntax, number min/max; `reportValidity` shows no
|
|
|
|
|
+ bubble; the dashboard's domain dialog calls it on every input),
|
|
|
`fetch`/`Request`/`Response`/`Headers`, `XMLHttpRequest`, `URL`/
|
|
`fetch`/`Request`/`Response`/`Headers`, `XMLHttpRequest`, `URL`/
|
|
|
`URLSearchParams`, `TextEncoder`/`TextDecoder`, `btoa`/`atob`, `Blob`/
|
|
`URLSearchParams`, `TextEncoder`/`TextDecoder`, `btoa`/`atob`, `Blob`/
|
|
|
`File`/`FormData` (urlencoded only), `AbortController`,
|
|
`File`/`FormData` (urlencoded only), `AbortController`,
|
|
@@ -2199,7 +2281,12 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
animated GIF frames are supported as well; arithmetic JPEG/CMYK are not.
|
|
animated GIF frames are supported as well; arithmetic JPEG/CMYK are not.
|
|
|
The viewer, `ucmd_view.c`, owns a canvas window and reads its file through
|
|
The viewer, `ucmd_view.c`, owns a canvas window and reads its file through
|
|
|
`SYS_READ_FILE`; it uses fit/1:1/zoom/pan, shows format/dimensions/size,
|
|
`SYS_READ_FILE`; it uses fit/1:1/zoom/pan, shows format/dimensions/size,
|
|
|
- animates GIFs, and gives a clear error for unsupported variants. The chat
|
|
|
|
|
|
|
+ animates GIFs, and gives a clear error for unsupported variants. Its
|
|
|
|
|
+ toolbar's *Background* button (or `b`) calls `view_set_wallpaper()`: it
|
|
|
|
|
+ reads `SYS_SCREEN_INFO`, cover-scales the image into a screen-aspect
|
|
|
|
|
+ RGB565 buffer capped at 1440x810, writes `/data/WALLPAPR.BIN` or
|
|
|
|
|
+ `/share/wallpaper` and signals the WM. The status bar shows
|
|
|
|
|
+ "Wallpaper set" (or the failure) for four seconds. The chat
|
|
|
client decodes fetched message images and avatars into a 480x320 / 32x32
|
|
client decodes fetched message images and avatars into a 480x320 / 32x32
|
|
|
cache (passing those bounds to `img_options.max_w/h`) and draws them with
|
|
cache (passing those bounds to `img_options.max_w/h`) and draws them with
|
|
|
`img_draw()`. Host
|
|
`img_draw()`. Host
|
|
@@ -2270,7 +2357,8 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
## Shell commands
|
|
## Shell commands
|
|
|
|
|
|
|
|
`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`, `acpidump` (writes the mapped
|
|
|
|
|
+DSDT to `/share/DSDT.BIN`), `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), `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),
|
|
`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]`, `membench` (ring-3 speed check: TSC, ALU, heap/BSS memcpy, syscall rates), `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]`, `membench` (ring-3 speed check: TSC, ALU, heap/BSS memcpy, syscall rates), `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).
|
|
|
|
|
|
|
@@ -2510,7 +2598,12 @@ briefly reporting disconnected.
|
|
|
Disabling clears ASE and acknowledges `STS_IAA`; leaving the IAA doorbell
|
|
Disabling clears ASE and acknowledges `STS_IAA`; leaving the IAA doorbell
|
|
|
status set stalls the next enable. Bulk `in`/`out` use one qTD per call
|
|
status set stalls the next enable. Bulk `in`/`out` use one qTD per call
|
|
|
(up to five 4 KB buffer pages), which is enough for the ASIX AX88772 RX/TX
|
|
(up to five 4 KB buffer pages), which is enough for the ASIX AX88772 RX/TX
|
|
|
- path. The HCD vtable's optional `bulk_reset` disarms the endpoint's qTD,
|
|
|
|
|
|
|
+ path. A bulk-IN qTD is armed with exactly the length of the call that
|
|
|
|
|
+ starts it and is not pre-armed for a later, possibly shorter chunk: a
|
|
|
|
|
+ device that ends a transfer on a max-packet boundary without a zero-length
|
|
|
|
|
+ packet (a USB stick's 512-byte READ(10) data stage) would otherwise leave a
|
|
|
|
|
+ larger qTD ACTIVE forever. The HCD vtable's optional `bulk_reset` disarms
|
|
|
|
|
+ the endpoint's qTD,
|
|
|
clears its data toggle and drops the bulk state, so a timed-out bulk-IN
|
|
clears its data toggle and drops the bulk state, so a timed-out bulk-IN
|
|
|
transfer cannot leave the endpoint permanently armed; xHCI stops the
|
|
transfer cannot leave the endpoint permanently armed; xHCI stops the
|
|
|
endpoint before dropping its ring. After an async-transfer gap of 100 ms
|
|
endpoint before dropping its ring. After an async-transfer gap of 100 ms
|
|
@@ -2875,9 +2968,9 @@ 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.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
|
|
|
|
|
|
|
+ bytes) and `install/kernel.bin` is ~2.00 MiB gzip (~4 KB under the
|
|
|
|
|
+ cap), inflating to ~4.13 MB, which adds about
|
|
|
|
|
+ half a second to the boot; the floppy lite pack is ~641 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 (4.1 MiB) now takes about four
|
|
115200 serial a raw `cmds-dev` pack (4.1 MiB) now takes about four
|
|
@@ -2979,6 +3072,12 @@ and the WM falls back to polling (`io_keyboard_irq_masked()`).
|
|
|
small RX ring and stall TLS handshakes into a 10 s timeout; use e1000
|
|
small RX ring and stall TLS handshakes into a 10 s timeout; use e1000
|
|
|
(the shared receive-window budget in `tcp.c` limits, but does not
|
|
(the shared receive-window budget in `tcp.c` limits, but does not
|
|
|
rule out, such overruns).
|
|
rule out, such overruns).
|
|
|
|
|
+ `Intl` is a small en-US subset: the locale argument is ignored (a
|
|
|
|
|
+ `de` formatter prints English), every date is formatted in UTC
|
|
|
|
|
+ whatever `timeZone` says, `DisplayNames` knows ~45 languages and ~18
|
|
|
|
|
+ regions (others fall back to the code), and number rounding goes
|
|
|
|
|
+ through binary `toFixed` (ICU rounds the decimal value, so a few
|
|
|
|
|
+ halfway cases differ).
|
|
|
`DOMParser` and `document.implementation.createHTMLDocument` return an
|
|
`DOMParser` and `document.implementation.createHTMLDocument` return an
|
|
|
inert detached document (its nodes live in the page arena; markup goes
|
|
inert detached document (its nodes live in the page arena; markup goes
|
|
|
through the innerHTML fragment parser, split at `<head>`/`<body>`),
|
|
through the innerHTML fragment parser, split at `<head>`/`<body>`),
|
|
@@ -3103,6 +3202,11 @@ and the WM falls back to polling (`io_keyboard_irq_masked()`).
|
|
|
normal browser's. `@layer` ranks nested layers flat by first
|
|
normal browser's. `@layer` ranks nested layers flat by first
|
|
|
appearance (a parent layer's own rules lose to its sublayers, the spec
|
|
appearance (a parent layer's own rules lose to its sublayers, the spec
|
|
|
says the reverse).
|
|
says the reverse).
|
|
|
|
|
+ Downloads are capped at the helper's 4 MB, run one at a time, cannot be
|
|
|
|
|
+ cancelled or retried from the panel, use 8.3 names on both `/data` and
|
|
|
|
|
+ `/share`, skip `data:`/`mailto:`/`javascript:` targets, and the panel
|
|
|
|
|
+ shows only the newest twelve of 24 entries. The history file is
|
|
|
|
|
+ last-writer-wins between browser windows.
|
|
|
TLS is phase A (no certificate verification); `https` is shown as
|
|
TLS is phase A (no certificate verification); `https` is shown as
|
|
|
unverified. The disk app
|
|
unverified. The disk app
|
|
|
is loaded from FAT at spawn time, so a cold floppy start takes a few
|
|
is loaded from FAT at spawn time, so a cold floppy start takes a few
|
|
@@ -3122,8 +3226,11 @@ and the WM falls back to polling (`io_keyboard_irq_masked()`).
|
|
|
OVMF delivers the ISA IRQs through the 8259 path; the kernel nevertheless
|
|
OVMF delivers the ISA IRQs through the 8259 path; the kernel nevertheless
|
|
|
masks the IOAPIC's normal redirection entries after ACPI init, so
|
|
masks the IOAPIC's normal redirection entries after ACPI init, so
|
|
|
firmware-left vectors cannot collide with the PIC or LAPIC timer.
|
|
firmware-left vectors cannot collide with the PIC or LAPIC timer.
|
|
|
- UEFI runtime services are not used, so
|
|
|
|
|
- `reboot`/`poweroff` still use the legacy ports. The image is 17 MB: the
|
|
|
|
|
|
|
+ UEFI runtime services are not used: `reboot` still pulses the keyboard
|
|
|
|
|
+ controller and `poweroff` uses ACPI S5 (the FADT PM1a/PM1b control blocks
|
|
|
|
|
+ and the DSDT `\_S5` sleep type, enabling ACPI through the SMI command
|
|
|
|
|
+ when `SCI_EN` is clear) on both BIOS and UEFI boots, with the
|
|
|
|
|
+ Bochs/QEMU ports as an emulator fallback. The image is 17 MB: the
|
|
|
9 MB kernel + rootfs disk and the 8 MB ESP. Maxwell GPUs such as the
|
|
9 MB kernel + rootfs disk and the 8 MB ESP. Maxwell GPUs such as the
|
|
|
GTX 960 use the firmware VBE/GOP framebuffer only; there is no native
|
|
GTX 960 use the firmware VBE/GOP framebuffer only; there is no native
|
|
|
NVIDIA driver, and `nv50_probe()` is gated to the ION/nv50 chipsets.
|
|
NVIDIA driver, and `nv50_probe()` is gated to the ION/nv50 chipsets.
|
|
@@ -3379,3 +3486,13 @@ and the WM falls back to polling (`io_keyboard_irq_masked()`).
|
|
|
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` ~0x8df80, ~8 KB below the `0x90000` wall.
|
|
`_end` ~0x8df80, ~8 KB below the `0x90000` wall.
|
|
|
|
|
+
|
|
|
|
|
+40. Wallpaper limits: one screen-aspect image pre-scaled to at most
|
|
|
|
|
+ 1440x810 (cropped to cover, no crop/position choice), no slideshow and
|
|
|
|
|
+ no Clear action in the viewer. The WM reads the whole file when
|
|
|
|
|
+ `SYS_WM_WALLPAPER` bumps the sequence, so installing/switching a
|
|
|
|
|
+ wallpaper blocks the WM for the FAT read; the storage is
|
|
|
|
|
+ `/data/WALLPAPR.BIN` on installed boards and the RAM-only
|
|
|
|
|
+ `/share/wallpaper` otherwise. The WM keeps a 2.4 MB static copy plus a
|
|
|
|
|
+ 256 KB RGB565->BGRA table (16/24 bpp convert per pixel), all inside the
|
|
|
|
|
+ 4 MB user image window, and has no image decoder of its own.
|