|
@@ -84,6 +84,7 @@ make test-font-asan # ASan/UBSan variant
|
|
|
make test-svg # host tests for the inline-SVG rasterizer (ASan/UBSan)
|
|
make test-svg # host tests for the inline-SVG rasterizer (ASan/UBSan)
|
|
|
make test-touchpad # host tests for the contact gesture engine
|
|
make test-touchpad # host tests for the contact gesture engine
|
|
|
make test-wpa # host tests for the WPA2-PSK supplicant (SHA-1/PBKDF2/PRF/AES, 4-way)
|
|
make test-wpa # host tests for the WPA2-PSK supplicant (SHA-1/PBKDF2/PRF/AES, 4-way)
|
|
|
|
|
+make test-wifi-store # host tests for the saved-network list file
|
|
|
make test-chat # host tests: JSON parser, cookie jar, chat login parsers (ASan)
|
|
make test-chat # host tests: JSON parser, cookie jar, chat login parsers (ASan)
|
|
|
make test-chat-e2e # QEMU + tools/mock_chat.py chat end-to-end (CHAT_E2E=--totp...)
|
|
make test-chat-e2e # QEMU + tools/mock_chat.py chat end-to-end (CHAT_E2E=--totp...)
|
|
|
make compat-serve # serve the browser A/B ladder on port 8000
|
|
make compat-serve # serve the browser A/B ladder on port 8000
|
|
@@ -141,9 +142,13 @@ make clean
|
|
|
## Boot chain
|
|
## Boot chain
|
|
|
|
|
|
|
|
1. `boot.S` — 512-byte boot sector (FAT16 BPB). Loads contiguous kernel sectors
|
|
1. `boot.S` — 512-byte boot sector (FAT16 BPB). Loads contiguous kernel sectors
|
|
|
- to `0x7E00` (CHS for floppy, one sector per call; INT 13h AH=42h LBA for
|
|
|
|
|
- hard disk, up to 64 sectors per call into `ES:0` with `ES` advanced, so the
|
|
|
|
|
- offset never wraps), jumps there with the boot drive still in DL.
|
|
|
|
|
|
|
+ to `0x7E00`, one INT 13h per run of sectors into `ES:0` with `ES`
|
|
|
|
|
+ advanced (the offset never wraps): EDD LBA for hard disks, up to 64
|
|
|
|
|
+ sectors; CHS for floppies, up to the end of the track and never across a
|
|
|
|
|
+ 64 KB physical ISA DMA boundary. Errors get three tries per run, then one
|
|
|
|
|
+ sector per call (the old behaviour), three tries, then `Disk read error`.
|
|
|
|
|
+ Jumps to the stage with the boot drive still in DL (do not clobber DX).
|
|
|
|
|
+ The 512-byte sector has only a few bytes left before the partition table.
|
|
|
2. `vesa_stage.S` — real-mode VESA stage. Probes INT 15h E820 into `0x1000`,
|
|
2. `vesa_stage.S` — real-mode VESA stage. Probes INT 15h E820 into `0x1000`,
|
|
|
enables A20, reads the `NBROOT1` rootfs header at the boot sector's
|
|
enables A20, reads the `NBROOT1` rootfs header at the boot sector's
|
|
|
`pack_lba` field and copies the gzip pack directly to `PACK_HIGH_ADDR`
|
|
`pack_lba` field and copies the gzip pack directly to `PACK_HIGH_ADDR`
|
|
@@ -169,14 +174,20 @@ make clean
|
|
|
used); fixed disks use EDD LBA.
|
|
used); fixed disks use EDD LBA.
|
|
|
3. `kernel.c` — `kernel_main` zeroes BSS then inits serial → memory/paging →
|
|
3. `kernel.c` — `kernel_main` zeroes BSS then inits serial → memory/paging →
|
|
|
ACPI/MADT → I/O → power → idle → processes → timer (PIT; 1 kHz busy,
|
|
ACPI/MADT → I/O → power → idle → processes → timer (PIT; 1 kHz busy,
|
|
|
- 100 Hz idle + IDT) → SMP AP bring-up → mouse/USB → VGA shadow buffer →
|
|
|
|
|
- ramfs inflate → WM → NIC probe → kworker → the `bootscan` kernel thread
|
|
|
|
|
- (storage scan + FAT mounts, then the `/data` WiFi autoconnect once the
|
|
|
|
|
- boot DHCP finished) → `wm_server_boot_ready()` immediately, so the first
|
|
|
|
|
- terminal starts while the disks are still probed → DHCP. 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.65 s after
|
|
|
|
|
- the kernel starts on QEMU's USB image).
|
|
|
|
|
|
|
+ 100 Hz idle + IDT) → SMP AP bring-up → PS/2 mouse (the I2C touchpad
|
|
|
|
|
+ probe only on Airmont) → VGA shadow buffer → ramfs inflate → WM →
|
|
|
|
|
+ publish `vfs_scan_busy` → `wm_server_boot_ready()` → wait (idle `hlt`,
|
|
|
|
|
+ 1 s cap) until the first terminal has presented → USB bring-up and scan
|
|
|
|
|
+ (non-preemptible, as before the WM existed: reset/SOF timing) → NIC probe
|
|
|
|
|
+ → kworker → the `bootscan` kernel thread (storage scan + FAT mounts, then
|
|
|
|
|
+ the `/data` WiFi autoconnect once the boot DHCP finished) → DHCP. So
|
|
|
|
|
+ the terminal is on screen before USB, NIC and disks are probed; USB
|
|
|
|
|
+ input, USB NICs and USB disks attach right after. The WM's
|
|
|
|
|
+ `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.
|
|
|
|
|
+ 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).
|
|
|
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 (`efi/`)** — an x86-64 PE32+ `BOOTX64.EFI` loads from the ESP. It
|
|
5. **UEFI (`efi/`)** — an x86-64 PE32+ `BOOTX64.EFI` loads from the ESP. It
|
|
@@ -354,8 +365,16 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
network status icon: a cable for a wired netdev, signal bars for an
|
|
network status icon: a cable for a wired netdev, signal bars for an
|
|
|
associated WiFi link, a USB mark for RNDIS tethering, and a red X otherwise.
|
|
associated WiFi link, a USB mark for RNDIS tethering, and a red X otherwise.
|
|
|
The WM polls `SYS_NET_INFO` (and `SYS_WIFI_STATUS` only while WiFi is active)
|
|
The WM polls `SYS_NET_INFO` (and `SYS_WIFI_STATUS` only while WiFi is active)
|
|
|
- at 1 Hz; clicking the network icon spawns one `/ramfs/bin/netmenu` window and
|
|
|
|
|
- anchors it under the icon once its window exists (`u_wm_set_geom`).
|
|
|
|
|
|
|
+ at 1 Hz; clicking the network icon opens one `/ramfs/bin/netmenu` popover and
|
|
|
|
|
+ anchors it under the icon (`u_wm_set_geom`). A popover is a chromeless
|
|
|
|
|
+ `WIN_F_POPOVER` canvas window (`u_win_create_popover`): the WM skips the
|
|
|
|
|
+ title bar/close/resize chrome and treats it as always topmost in painting
|
|
|
|
|
+ and hit-testing. The canvas fills the whole window rectangle: there is no
|
|
|
|
|
+ outer shadow, rim or rounded corner, so it reads as a flat menu panel. The
|
|
|
|
|
+ kernel uses the window origin for content-relative pointer and scroll
|
|
|
|
|
+ coordinates (a normal window uses the 1 px border plus title bar). An
|
|
|
|
|
+ outside press dismisses the popover and then continues with the normal
|
|
|
|
|
+ click handling; a second click on the network icon toggles it.
|
|
|
The last launcher, `Chat`, spawns `/ramfs/bin/chat`; `WM_BTN_END_X`
|
|
The last launcher, `Chat`, spawns `/ramfs/bin/chat`; `WM_BTN_END_X`
|
|
|
(`wm_abi.h`) is the launchers' right edge, and the bar notice and the
|
|
(`wm_abi.h`) is the launchers' right edge, and the bar notice and the
|
|
|
right-aligned status never draw left of it.
|
|
right-aligned status never draw left of it.
|
|
@@ -396,7 +415,14 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
live showcase of every control and primitive the toolkit exports. Buttons
|
|
live showcase of every control and primitive the toolkit exports. Buttons
|
|
|
fire on the release edge and keep `active` until `ui->released`: inferring
|
|
fire on the release edge and keep `active` until `ui->released`: inferring
|
|
|
release from the sampled `ui->buttons` races the WM event queue and drops
|
|
release from the sampled `ui->buttons` races the WM event queue and drops
|
|
|
- clicks. Text fields use the proportional font with measured caret,
|
|
|
|
|
|
|
+ clicks. The popover component (`ngui_popover_begin`/`footer`, a flat
|
|
|
|
|
+ surface with a body and footer, no title bar or close button) is the shell
|
|
|
|
|
+ of `netmenu`; `ngui_section` draws captioned section headers with an
|
|
|
|
|
+ optional action button, `ngui_list_row` is a two-line hover/selected row
|
|
|
|
|
+ with optional signal bars and trailing text, and `ngui_signal_bars` draws
|
|
|
|
|
+ the four-bar strength icon. The WM draws no outer chrome, so a popover
|
|
|
|
|
+ fills its whole window. Text fields use the proportional font with
|
|
|
|
|
+ measured caret,
|
|
|
selection and horizontal scrolling, and support mouse drag-selection,
|
|
selection and horizontal scrolling, and support mouse drag-selection,
|
|
|
double-click select-all, Ctrl+Left/Right word jumps,
|
|
double-click select-all, Ctrl+Left/Right word jumps,
|
|
|
Ctrl+Delete/Ctrl+Backspace word deletion and Ctrl+A select-all; typing or
|
|
Ctrl+Delete/Ctrl+Backspace word deletion and Ctrl+A select-all; typing or
|
|
@@ -451,6 +477,23 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
DMA channels never fetch until nouveau's full takeover (which re-programs the
|
|
DMA channels never fetch until nouveau's full takeover (which re-programs the
|
|
|
mode itself), the cursor staging registers are engine-only, and a channel
|
|
mode itself), the cursor staging registers are engine-only, and a channel
|
|
|
that has run cannot be restarted — see the header of `nv50.c`.
|
|
that has run cannot be restarted — see the header of `nv50.c`.
|
|
|
|
|
+- **Panel backlight**: `backlight.c/h` — the Intel Cherryview/VLV display PWM
|
|
|
|
|
+ for the internal panel (the HP Chromebook 11 G5's `google/setzer` VBT
|
|
|
|
|
+ declares PWM controller 0, 200 Hz, active high). It matches Intel
|
|
|
|
|
+ `8086:22b0`/`22b1`, maps the graphics MMIO BAR, reads `BLC_PWM_CTL2`
|
|
|
|
|
+ (`0x1E1250`, +`0x100` for pipe B) and `BLC_PWM_CTL` (`0x1E1254`), follows the
|
|
|
|
|
+ pipe the firmware enabled and falls back to controller 0; the period comes
|
|
|
|
|
+ from the firmware (`6000` = 19.2 MHz / (200 Hz × 16) when it reads zero).
|
|
|
|
|
+ The 10% steps clamp at 5..100% and the level is not persisted across a cold
|
|
|
|
|
+ boot. `io.c` maps F6/F7 (the ChromeOS EC action row) and `E0 14`/`E0 15`
|
|
|
|
|
+ (standard brightness scancodes) to `backlight_step()` and consumes them.
|
|
|
|
|
+ The `backlight [0-100|up|down|probe]` kernel command is the other interface.
|
|
|
|
|
+ `struct wm_status` carries the level and a change counter
|
|
|
|
|
+ (`backlight_seq()`); the ring-3 WM shows a centered 3 s bubble with a
|
|
|
|
|
+ sun icon, the percentage and a bar after each change, and redraws it on
|
|
|
|
|
+ every pass while visible so a window cannot cover it.
|
|
|
|
|
+ The `keytest` kernel command drains the raw scancode tap in `io.c`
|
|
|
|
|
+ (E0/make/break/decoded) for key mapping.
|
|
|
- **Text console**: `fbtext.c`, `font_8x8.c/h`, `io.c/h`, `screen.c/h` — 8×8 font,
|
|
- **Text console**: `fbtext.c`, `font_8x8.c/h`, `io.c/h`, `screen.c/h` — 8×8 font,
|
|
|
framebuffer glyph blitting (`fbtext_draw_cells`) and the boot-console cell
|
|
framebuffer glyph blitting (`fbtext_draw_cells`) and the boot-console cell
|
|
|
buffer (`screen.c`, used by `io.c`'s fallback screen and `bootcon`). The
|
|
buffer (`screen.c`, used by `io.c`'s fallback screen and `bootcon`). The
|
|
@@ -628,8 +671,14 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
the selected driver's probe and leaves the current driver untouched on
|
|
the selected driver's probe and leaves the current driver untouched on
|
|
|
failure. The top-bar network icon opens `ucmd_netmenu.c`, which lists every
|
|
failure. The top-bar network icon opens `ucmd_netmenu.c`, which lists every
|
|
|
present driver through `SYS_NET_DEVLIST` (111), selects one through
|
|
present driver through `SYS_NET_DEVLIST` (111), selects one through
|
|
|
- `SYS_NET_SELECT` (112) and runs DHCP; the same window lists scanned WiFi
|
|
|
|
|
- networks and asks for the WPA2 passphrase. Hidden SSIDs are omitted, and
|
|
|
|
|
|
|
+ `SYS_NET_SELECT` (112) and runs DHCP; the same popover lists scanned WiFi
|
|
|
|
|
+ networks, marks the ones in `/data/WIFI.CFG` as saved, joins them with the
|
|
|
|
|
+ stored passphrase, and has a Saved view that forgets individual networks.
|
|
|
|
|
+ The panel is an ngui popover (a device status card, a scrollable
|
|
|
|
|
+ Devices/Wi-Fi/Connection content area with `ngui_section` and
|
|
|
|
|
+ `ngui_list_row`, and a footer status line); it opens as a `WIN_F_POPOVER`
|
|
|
|
|
+ canvas window anchored under the icon, not as a titled window.
|
|
|
|
|
+ Hidden SSIDs are omitted, and
|
|
|
BSSIDs that share an SSID/security collapse to the strongest entry (the
|
|
BSSIDs that share an SSID/security collapse to the strongest entry (the
|
|
|
active BSSID wins while connected). `wifi.c` (the Intel
|
|
active BSSID wins while connected). `wifi.c` (the Intel
|
|
|
7265D/3165 netdev, see the WiFi bullet) is
|
|
7265D/3165 netdev, see the WiFi bullet) is
|
|
@@ -707,27 +756,37 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
7265D-29 firmware does not use correctly installed `ADD_STA_KEY` keys for
|
|
7265D-29 firmware does not use correctly installed `ADD_STA_KEY` keys for
|
|
|
RX even though TX (which embeds the TK in `TX_CMD`) works; there is no
|
|
RX even though TX (which embeds the TK in `TX_CMD`) works; there is no
|
|
|
software replay window yet.
|
|
software replay window yet.
|
|
|
- The firmware is loaded on the first `wifi` command, not at boot.
|
|
|
|
|
|
|
+ The firmware is loaded on first use (`wifi` or the boot autoconnect
|
|
|
|
|
+ helper), not during kernel init.
|
|
|
`netdev_shutdown()` always calls `wifi_shutdown()` before a kexec (the RX
|
|
`netdev_shutdown()` always calls `wifi_shutdown()` before a kexec (the RX
|
|
|
ring would keep writing into reused pages). The ring-3 side is
|
|
ring would keep writing into reused pages). The ring-3 side is
|
|
|
`ucmd_wifi.c` (`wifi`, `wifi up|scan|connect <ssid> [pass]|disconnect`,
|
|
`ucmd_wifi.c` (`wifi`, `wifi up|scan|connect <ssid> [pass]|disconnect`,
|
|
|
`wifi connectfile <path>` for the network menu's staged SSID/pass/BSSID
|
|
`wifi connectfile <path>` for the network menu's staged SSID/pass/BSSID
|
|
|
- record, `wifi autoconnect` for the boot helper and `wifi forget`),
|
|
|
|
|
|
|
+ record, `wifi saved` to list the saved networks, `wifi autoconnect` for the
|
|
|
|
|
+ boot helper and `wifi forget [ssid]`),
|
|
|
`wpa.c/h` (4-way + group handshake, key descriptor v2) and
|
|
`wpa.c/h` (4-way + group handshake, key descriptor v2) and
|
|
|
`wpa_crypto.c/h` (SHA-1, HMAC, PBKDF2, PRF, AES-128, RFC 3394 unwrap; host
|
|
`wpa_crypto.c/h` (SHA-1, HMAC, PBKDF2, PRF, AES-128, RFC 3394 unwrap; host
|
|
|
test `make test-wpa`). After the handshake `wifi connect` installs the
|
|
test `make test-wpa`). After the handshake `wifi connect` installs the
|
|
|
TK/GTK, calls `SYS_WIFI_AUTHORIZE` (data port open + `netdev_select
|
|
TK/GTK, calls `SYS_WIFI_AUTHORIZE` (data port open + `netdev_select
|
|
|
("wifi")`), runs DHCP and leaves `wifi __keep` running for group rekeys.
|
|
("wifi")`), runs DHCP and leaves `wifi __keep` running for group rekeys.
|
|
|
- A successful menu/CLI connect also writes the SSID and passphrase to
|
|
|
|
|
- `/data/WIFI.CFG` (8.3, plaintext, BSSID zeroed so a mesh/repeater AP works);
|
|
|
|
|
- after the storage scan and the boot DHCP attempt the `bootscan` thread spawns
|
|
|
|
|
|
|
+ A successful menu/CLI connect stores the SSID and passphrase through
|
|
|
|
|
+ `wifi_store.c/h` in `/data/WIFI.CFG` (8.3, plaintext), a
|
|
|
|
|
+ most-recently-used list of up to `WIFI_CFG_MAX` (16) fixed records behind
|
|
|
|
|
+ a list header; the old one-record file is still read. Re-connecting a
|
|
|
|
|
+ known SSID replaces its record and moves it to the front, and a full list
|
|
|
|
|
+ drops the least recently used network. Each record leaves the BSSID zero
|
|
|
|
|
+ so a mesh/repeater AP with the same SSID still works. After the storage
|
|
|
|
|
+ scan and the boot DHCP attempt the `bootscan` thread spawns
|
|
|
`/ramfs/bin/wifi autoconnect` when that file exists. Autoconnect leaves a
|
|
`/ramfs/bin/wifi autoconnect` when that file exists. Autoconnect leaves a
|
|
|
- wired link that is physically up alone and only tries WiFi when no wired
|
|
|
|
|
- link is present; an already-linked WiFi card is also left alone. `/data`
|
|
|
|
|
- is the persistent FAT volume from the installer.
|
|
|
|
|
- `wifi forget` removes the saved record. A FAT read may write a final
|
|
|
|
|
- partial sector past the requested length, so the credential reader keeps
|
|
|
|
|
- 512 bytes of slack on the stack.
|
|
|
|
|
|
|
+ wired link that is physically up alone, and an already-linked WiFi card
|
|
|
|
|
+ too. Otherwise it scans once and joins the strongest network present whose
|
|
|
|
|
+ SSID is in the saved list, moves on to the other saved networks found if
|
|
|
|
|
+ one fails, and rescans after three seconds for a second pass. `/data` is
|
|
|
|
|
+ the persistent FAT volume from the installer. `wifi forget` without an
|
|
|
|
|
+ SSID removes the whole list, `wifi forget <ssid>` one record; the network
|
|
|
|
|
+ menu marks saved SSIDs and its Saved view forgets them individually. A FAT
|
|
|
|
|
+ read may write a final partial sector past the requested length, so the
|
|
|
|
|
+ credential reader keeps 512 bytes of slack on the stack.
|
|
|
The helper's PTK and EAPOL replay counter are kept in the kernel
|
|
The helper's PTK and EAPOL replay counter are kept in the kernel
|
|
|
(`SYS_WIFI_SET_PTK`/`SYS_WIFI_GET_PTK`) and fetched by connection ID, so
|
|
(`SYS_WIFI_SET_PTK`/`SYS_WIFI_GET_PTK`) and fetched by connection ID, so
|
|
|
the 64-byte `SYS_SPAWN` argument limit cannot truncate the rekey state.
|
|
the 64-byte `SYS_SPAWN` argument limit cannot truncate the rekey state.
|
|
@@ -841,7 +900,10 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
for the Braswell LPSS blocks (fast mode, component-type probe, explicit
|
|
for the Braswell LPSS blocks (fast mode, component-type probe, explicit
|
|
|
LPSS reset-release so the FIFO drains); `touchpad.c/h` — Elan
|
|
LPSS reset-release so the FIFO drains); `touchpad.c/h` — Elan
|
|
|
HID-over-I2C touchpad on LPSS I2C6 at `0xD1327000`, slave `0x15`.
|
|
HID-over-I2C touchpad on LPSS I2C6 at `0xD1327000`, slave `0x15`.
|
|
|
- `touchpad_init()` runs from `mouse_init()` at boot (it maps the I2C
|
|
|
|
|
|
|
+ `touchpad_init()` runs from `mouse_init()` at boot, only when
|
|
|
|
|
+ `cpu_family_model()` is Airmont `0x64C` (elsewhere the fixed-address LPSS
|
|
|
|
|
+ scan would reset-cycle 32 MMIO windows that belong to nobody, ~64 ms, or
|
|
|
|
|
+ to another device); it maps the I2C
|
|
|
window before processes clone the page directory), resets the device,
|
|
window before processes clone the page directory), resets the device,
|
|
|
consumes the 2-byte acknowledgement, reads the HID descriptor, selects
|
|
consumes the 2-byte acknowledgement, reads the HID descriptor, selects
|
|
|
absolute mode (`0x0300 = 1`), wakes it (`0x0800`) and then queries the
|
|
absolute mode (`0x0300 = 1`), wakes it (`0x0800`) and then queries the
|
|
@@ -1093,7 +1155,9 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
copy, then `BROWSER` on `root.img`/IDE/SATA fat mounts. The launcher
|
|
copy, then `BROWSER` on `root.img`/IDE/SATA fat mounts. The launcher
|
|
|
forwards its argument and cwd.
|
|
forwards its argument and cwd.
|
|
|
`uhttp.c/h` is the shared ring-3 HTTP client extracted from curl: URL
|
|
`uhttp.c/h` is the shared ring-3 HTTP client extracted from curl: URL
|
|
|
- parsing/resolution, redirects, chunked decoding, timeouts and TLS; curl,
|
|
|
|
|
|
|
+ parsing/resolution (unsafe path bytes are percent-encoded; path
|
|
|
|
|
+ normalization stops at `?`/`#`), redirects, chunked decoding, timeouts
|
|
|
|
|
+ and TLS; curl,
|
|
|
the browser and chat use it. `browser_html.c/h` is a tolerant HTML tree + the
|
|
the browser and chat use it. `browser_html.c/h` is a tolerant HTML tree + the
|
|
|
CSS subset: external `<link rel=stylesheet>` sheets (in document order,
|
|
CSS subset: external `<link rel=stylesheet>` sheets (in document order,
|
|
|
inline `<style>` last), one selector engine shared by the cascade,
|
|
inline `<style>` last), one selector engine shared by the cascade,
|
|
@@ -1219,7 +1283,7 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
arena, so a large image no longer reserves a fixed 24 MB. `<script>`
|
|
arena, so a large image no longer reserves a fixed 24 MB. `<script>`
|
|
|
blocks are collected by `browser_html.c`; inline bodies run directly and
|
|
blocks are collected by `browser_html.c`; inline bodies run directly and
|
|
|
`<script src>` bodies are fetched through the same local/network path as
|
|
`<script src>` bodies are fetched through the same local/network path as
|
|
|
- pages and CSS (512 KB cap), in document order, through the vendored QuickJS
|
|
|
|
|
|
|
+ pages and CSS (2 MB cap), in document order, through the vendored QuickJS
|
|
|
engine (`third_party/quickjs/`, 2026-06-04, ES2025: classes, arrow
|
|
engine (`third_party/quickjs/`, 2026-06-04, ES2025: classes, arrow
|
|
|
functions, `let`/`const`, template literals, destructuring, spread,
|
|
functions, `let`/`const`, template literals, destructuring, spread,
|
|
|
async/await, Promise, Map/Set, BigInt, optional chaining; linked only
|
|
async/await, Promise, Map/Set, BigInt, optional chaining; linked only
|
|
@@ -1267,7 +1331,41 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
libc math/time layers. The parsed page is painted before scripts are
|
|
libc math/time layers. The parsed page is painted before scripts are
|
|
|
fetched and run, and remote `<script src>` bodies are cached under
|
|
fetched and run, and remote `<script src>` bodies are cached under
|
|
|
`/share/bjs-*` for the current boot. Classic scripts run sloppy by
|
|
`/share/bjs-*` for the current boot. Classic scripts run sloppy by
|
|
|
- default (`"use strict"` and private class fields work). `cloneNode`
|
|
|
|
|
|
|
+ default (`"use strict"` and private class fields work).
|
|
|
|
|
+ `<script type="module">` runs as an ES module (`js_browser_run_module`,
|
|
|
|
|
+ `js_ploadmodule`): QuickJS's module loader resolves each specifier to an
|
|
|
|
|
+ absolute URL (module name = URL, so every module is evaluated once) and
|
|
|
|
|
+ loads it synchronously through `host.load_script` (the boot script cache,
|
|
|
|
|
+ else one blocking helper fetch with input pumping off, since the loader
|
|
|
|
|
+ runs inside JavaScript); `import()` and `import.meta.url` work, `nomodule`
|
|
|
|
|
+ scripts are skipped, and the page's `<link rel="modulepreload">` targets
|
|
|
|
|
+ are downloaded on all helpers in parallel into the script cache before any
|
|
|
|
|
+ script runs. The 20 s budget restarts after every blocking fetch, so it
|
|
|
|
|
+ measures script time, not the network. Unhandled promise rejections are
|
|
|
|
|
+ reported (`JS_SetHostPromiseRejectionTracker`), as Vite apps boot from an
|
|
|
|
|
+ async IIFE. `js_prelude.js` (embedded by `js_prelude.S`, run once per
|
|
|
|
|
+ state before the page's scripts) implements the Web APIs in JavaScript on
|
|
|
|
|
+ three C primitives (`__nb_http`, `__nb_storage`, `__nb_resolve`):
|
|
|
|
|
+ `fetch`/`Request`/`Response`/`Headers`, `XMLHttpRequest`, `URL`/
|
|
|
|
|
+ `URLSearchParams`, `TextEncoder`/`TextDecoder`, `btoa`/`atob`, `Blob`/
|
|
|
|
|
+ `File`/`FormData` (urlencoded only), `AbortController`,
|
|
|
|
|
+ `localStorage`/`sessionStorage` (a Proxy, so `localStorage.token = x`
|
|
|
|
|
+ works), `crypto.getRandomValues`/`randomUUID`/`subtle.digest("SHA-256")`
|
|
|
|
|
+ (PKCE), inert `MutationObserver`/`ResizeObserver`/`IntersectionObserver`,
|
|
|
|
|
+ `instanceof`-able DOM classes (`HTMLElement`, `Node`, ...), and Element
|
|
|
|
|
+ methods (`closest`, `append`/`prepend`/`before`/`after`, `replaceWith`,
|
|
|
|
|
+ `insertAdjacentHTML`, `toggleAttribute`, `*AttributeNS`) on the node
|
|
|
|
|
+ wrappers' own prototype. fetch()/XHR are synchronous inside a Promise:
|
|
|
|
|
+ `js_host_http` submits `X <method> <len> <ctype> <url>` to a helper and
|
|
|
|
|
+ returns the status and body whatever the HTTP status (2 MB response, 16 KB
|
|
|
|
|
+ request body). Web Storage is stored in `/share/bls<origin-hash>`
|
|
|
|
|
+ (local, per boot) and `/share/bss<pid>-<origin-hash>` (session, per
|
|
|
|
|
+ window), outside the page heap that navigation resets. `console.*` print
|
|
|
|
|
+ Error stacks. `location.assign`/`replace`/`reload` navigate. The
|
|
|
|
|
+ Cloudron dashboard (`my.<domain>`: a Vite/Vue 3 app, 12 modules / 3.5 MB)
|
|
|
|
|
+ boots, builds its PKCE request, and its OIDC login form renders, submits
|
|
|
|
|
+ through `fetch()` with the interaction cookie and shows the server's
|
|
|
|
|
+ verdict; the `authcallback.html` code exchange runs the same way. `cloneNode`
|
|
|
copies attributes to the clone (it used to stamp them onto the previous
|
|
copies attributes to the clone (it used to stamp them onto the previous
|
|
|
node, which broke every `ng-repeat`).
|
|
node, which broke every `ng-repeat`).
|
|
|
`addEventListener`/`removeEventListener`/`dispatchEvent` dispatch real DOM
|
|
`addEventListener`/`removeEventListener`/`dispatchEvent` dispatch real DOM
|
|
@@ -1288,14 +1386,22 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
since the floppy needs IRQ 6.
|
|
since the floppy needs IRQ 6.
|
|
|
- **Chat client**: `ucmd_chat.c` (`chat [config-path]`, top-bar `Chat`
|
|
- **Chat client**: `ucmd_chat.c` (`chat [config-path]`, top-bar `Chat`
|
|
|
button) is a native Cloudron Chat client on ngui: channel/DM sidebar with
|
|
button) is a native Cloudron Chat client on ngui: channel/DM sidebar with
|
|
|
- unread badges, presence dots and previews; a timeline with initial-letter
|
|
|
|
|
- avatars, author grouping, UTC times, day headers, reply snippets and an
|
|
|
|
|
- attachments/thread/reaction line; a composer; browse/join and new-DM
|
|
|
|
|
- pickers. It talks to the Chat REST API (`/api/me`, `/api/channels`,
|
|
|
|
|
- `/api/dms`, `/api/channels/public`, `/api/users`, messages with
|
|
|
|
|
- `?limit=50`, `&before=` and `&after=`, POST messages with a `clientId`,
|
|
|
|
|
- `/read`, `/join`, `/api/dms`) through one `struct uhttp` with a cookie
|
|
|
|
|
- jar. No WebSocket: the open conversation is polled every 2 s (5 s
|
|
|
|
|
|
|
+ unread badges, presence dots and previews; a timeline with circular
|
|
|
|
|
+ profile-picture avatars (initials until the picture loads, or when there is
|
|
|
|
|
+ none), author grouping, UTC times, day headers, reply snippets, inline
|
|
|
|
|
+ image attachments/link-preview images and an attachments/thread/reaction
|
|
|
|
|
+ line; a composer; browse/join and new-DM pickers. It talks to the Chat REST
|
|
|
|
|
+ API (`/api/me`, `/api/channels`, `/api/dms`, `/api/channels/public`,
|
|
|
|
|
+ `/api/users`, messages with `?limit=50`, `&before=` and `&after=`, POST
|
|
|
|
|
+ messages with a `clientId`, `/read`, `/join`, `/api/dms`) through one
|
|
|
|
|
+ `struct uhttp` with a cookie jar. Message images and avatars use the same
|
|
|
|
|
+ uhttp connection and cookie jar, are fetched one per main-loop pass, and
|
|
|
|
|
+ are decoded by the in-tree image library (PNG/JPEG/GIF first
|
|
|
|
|
+ frame/BMP/TGA/PNM/ICO/PAM). They live in a 16-entry, 6 MB message-image
|
|
|
|
|
+ LRU plus a 64-entry avatar cache. The fetch is capped at 4 MB and the
|
|
|
|
|
+ decoder at 4 MP / 12 MB of scratch.
|
|
|
|
|
+
|
|
|
|
|
+ No WebSocket: the open conversation is polled every 2 s (5 s
|
|
|
unfocused), the directory every 12 s (20 s), polling waits 1 s after
|
|
unfocused), the directory every 12 s (20 s), polling waits 1 s after
|
|
|
input, and errors back off 2/5/10/30 s. An open TCP socket pauses the
|
|
input, and errors back off 2/5/10/30 s. An open TCP socket pauses the
|
|
|
netkexec watcher (`tcp_client_count()`), so keep-alive is kept only while
|
|
netkexec watcher (`tcp_client_count()`), so keep-alive is kept only while
|
|
@@ -1312,8 +1418,10 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
is parsed and posted) and validating with `/api/me`. External
|
|
is parsed and posted) and validating with `/api/me`. External
|
|
|
SSO and passkey accounts use the pasted-cookie screen. The password is
|
|
SSO and passkey accounts use the pasted-cookie screen. The password is
|
|
|
wiped after each attempt and never stored; the Chat host's cookie header
|
|
wiped after each attempt and never stored; the Chat host's cookie header
|
|
|
- and the server go to `/share/chat.cfg` (or the given path) and are
|
|
|
|
|
- re-saved when the server rolls the cookie. `uhttp_cookie.c/h` is the jar
|
|
|
|
|
|
|
+ and the server go to `/data/CHAT.CFG` when the persistent `/data` mount
|
|
|
|
|
+ exists, otherwise `/share/chat.cfg` (or the given path), and are
|
|
|
|
|
+ re-saved when the server rolls the cookie. A session left in the old
|
|
|
|
|
+ `/share/chat.cfg` is copied to `/data` once. `uhttp_cookie.c/h` is the jar
|
|
|
(24 host-only cookies, Path prefix match, Secure, Max-Age/1970-Expires
|
|
(24 host-only cookies, Path prefix match, Secure, Max-Age/1970-Expires
|
|
|
deletion); uhttp stores every `Set-Cookie` (redirects too), sends matching
|
|
deletion); uhttp stores every `Set-Cookie` (redirects too), sends matching
|
|
|
cookies on each hop, splits requests/bodies into 1024-byte TLS records or
|
|
cookies on each hop, splits requests/bodies into 1024-byte TLS records or
|
|
@@ -1328,8 +1436,8 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
`img_png.c`, `img_bmp.c`, `img_gif.c`, `img_jpeg.c`, `img_tga.c`,
|
|
`img_png.c`, `img_bmp.c`, `img_gif.c`, `img_jpeg.c`, `img_tga.c`,
|
|
|
`img_pnm.c`, `img_file.c/h` — freestanding RGB565 decoders with an optional
|
|
`img_pnm.c`, `img_file.c/h` — freestanding RGB565 decoders with an optional
|
|
|
8-bit alpha plane. The codecs are independent of the OS and ngui: they take
|
|
8-bit alpha plane. The codecs are independent of the OS and ngui: they take
|
|
|
- an input buffer plus a caller-provided `struct img_mem` arena, so a browser
|
|
|
|
|
- can link the same objects and decode HTTP bodies. `inflate.c/h` (DEFLATE,
|
|
|
|
|
|
|
+ an input buffer plus a caller-provided `struct img_mem` arena, so the browser
|
|
|
|
|
+ and the chat client can link the same objects and decode HTTP bodies. `inflate.c/h` (DEFLATE,
|
|
|
zlib, gzip, CRC32/Adler32) is shared with the boot pack. Its whole-buffer
|
|
zlib, gzip, CRC32/Adler32) is shared with the boot pack. Its whole-buffer
|
|
|
helpers (`inflate_gzip_mem`/`_zlib_mem`/`_raw_mem`, used by `ramfs_init`
|
|
helpers (`inflate_gzip_mem`/`_zlib_mem`/`_raw_mem`, used by `ramfs_init`
|
|
|
and the image decoders) are a separate fast path: 10-bit Huffman lookup
|
|
and the image decoders) are a separate fast path: 10-bit Huffman lookup
|
|
@@ -1339,12 +1447,14 @@ it to `0x7E00`. The kernel region itself only has one wall (`_end` below
|
|
|
with a source/sink and progress hook) keeps the bit-at-a-time decoder. `img_sniff()` is a
|
|
with a source/sink and progress hook) keeps the bit-at-a-time decoder. `img_sniff()` is a
|
|
|
cheap header probe; `img_decode()` returns `struct img_image`; `img_draw()`
|
|
cheap header probe; `img_decode()` returns `struct img_image`; `img_draw()`
|
|
|
is a clipped, scaled (box-filter down, bilinear up) RGB565 blit with alpha
|
|
is a clipped, scaled (box-filter down, bilinear up) RGB565 blit with alpha
|
|
|
- over a checkerboard or over the destination (for a browser). Progressive
|
|
|
|
|
|
|
+ over a checkerboard or over the destination (for the browser and chat). Progressive
|
|
|
JPEG (successive approximation), EXIF orientation, ICO/CUR, PAM and
|
|
JPEG (successive approximation), EXIF orientation, ICO/CUR, PAM and
|
|
|
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. Host
|
|
|
|
|
|
|
+ animates GIFs, and gives a clear error for unsupported variants. The chat
|
|
|
|
|
+ client decodes fetched message images and avatars into a 480x320 / 32x32
|
|
|
|
|
+ cache and draws them with `img_draw()`. Host
|
|
|
tests: `make test-images` (`img_test.c`, corpus in `testdata/images/`,
|
|
tests: `make test-images` (`img_test.c`, corpus in `testdata/images/`,
|
|
|
generator `tools/gen_img_tests.py`).
|
|
generator `tools/gen_img_tests.py`).
|
|
|
- **Network service**: `sys_net.c/h` — the NIC and the stack stay in the
|
|
- **Network service**: `sys_net.c/h` — the NIC and the stack stay in the
|
|
@@ -1408,7 +1518,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`, `meminfo`, `top`, `sched`, `format <device> [size]` (binary units, e.g. `format ide0 100mb` or `1gb`; no size formats the whole disk), `install <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`, `meminfo`, `top`, `sched`, `format <device> [size]` (binary units, e.g. `format ide0 100mb` or `1gb`; no size formats the whole disk), `install <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]`, `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
|
|
|
DHCP client), `netdev [name]` (kernel command: show the active NIC driver or
|
|
DHCP client), `netdev [name]` (kernel command: show the active NIC driver or
|
|
@@ -1920,7 +2030,8 @@ and the WM falls back to polling (`io_keyboard_irq_masked()`).
|
|
|
7. `display` (needs a GPU snapshot) and `lsusb` (a 45-byte wrapper around
|
|
7. `display` (needs a GPU snapshot) and `lsusb` (a 45-byte wrapper around
|
|
|
the USB tree printer) are the last non-privileged commands still living in
|
|
the USB tree printer) are the last non-privileged commands still living in
|
|
|
the kernel, plus the privileged ones (`peek`, `poke`, `dbg`, `serial`,
|
|
the kernel, plus the privileged ones (`peek`, `poke`, `dbg`, `serial`,
|
|
|
- `kexec`, `reboot`, `poweroff`, `format`, `install`, `ps`/`kill`).
|
|
|
|
|
|
|
+ `kexec`, `reboot`, `poweroff`, `format`, `install`, `ps`/`kill`,
|
|
|
|
|
+ `backlight`/`keytest`).
|
|
|
8. The rootfs pack is inflated into one contiguous page-allocated run at
|
|
8. The rootfs pack is inflated into one contiguous page-allocated run at
|
|
|
boot, capped by `RAMFS_MAX_DECOMPRESSED` (8 MB); a larger pack fails to
|
|
boot, capped by `RAMFS_MAX_DECOMPRESSED` (8 MB); a larger pack fails to
|
|
|
load (the USB rootfs partition is 8 MB, so this only bites if the cap is
|
|
load (the USB rootfs partition is 8 MB, so this only bites if the cap is
|
|
@@ -1932,11 +2043,11 @@ 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.75 MiB gzip (1,832,893
|
|
|
|
|
- bytes, ~264 KB under the cap), inflating to ~3.6 MB, which adds about
|
|
|
|
|
|
|
+ bytes) and `install/kernel.bin` is ~1.75 MiB gzip (~260 KB under the
|
|
|
|
|
+ cap), inflating to ~3.6 MB, which adds about
|
|
|
half a second to the boot; the floppy lite pack is ~930 KiB gzip and
|
|
half a second to the boot; the floppy lite pack is ~930 KiB gzip and
|
|
|
deliberately omits the firmware and `install/kernel.bin`. `libdeflate-gzip -12` is still preferred. Over
|
|
deliberately omits the firmware and `install/kernel.bin`. `libdeflate-gzip -12` is still preferred. Over
|
|
|
- 115200 serial a raw `cmds-dev` pack (2.6 MB) now takes about three
|
|
|
|
|
|
|
+ 115200 serial a raw `cmds-dev` pack (3.5 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
|
|
@@ -2007,9 +2118,20 @@ and the WM falls back to polling (`io_keyboard_irq_masked()`).
|
|
|
`once`/`passive` options. POST uses
|
|
`once`/`passive` options. POST uses
|
|
|
`application/x-www-form-urlencoded`; a redirected POST follows as GET,
|
|
`application/x-www-form-urlencoded`; a redirected POST follows as GET,
|
|
|
and `enctype=multipart/form-data` plus file inputs are unsupported.
|
|
and `enctype=multipart/form-data` plus file inputs are unsupported.
|
|
|
- Also missing: `type="module"`,
|
|
|
|
|
- `defer`/`async`, `MutationObserver`/`IntersectionObserver`,
|
|
|
|
|
- `XMLHttpRequest`/`fetch`, `DOMParser`, canvas/2D contexts, user-state
|
|
|
|
|
|
|
+ ES modules, `fetch`/`XMLHttpRequest` and Web Storage work (see the
|
|
|
|
|
+ browser bullet) with these limits: fetch()/XHR block the page while they
|
|
|
|
|
+ run (no streaming bodies, no upload progress), `FormData` is sent
|
|
|
|
|
+ urlencoded (no multipart/files), only `Content-Type` is forwarded from
|
|
|
|
|
+ request headers, response headers other than `Content-Type` are not
|
|
|
|
|
+ exposed, bodies are text (Latin-1/UTF-8, no binary `arrayBuffer`),
|
|
|
|
|
+ CORS is not enforced, and the observers never fire. Module loading is
|
|
|
|
|
+ sequential apart from the modulepreload pass. `crypto` entropy is the
|
|
|
|
|
+ weak Math.random/clock mix (fine for PKCE nonces, like the TLS DRBG).
|
|
|
|
|
+ On QEMU's NE2000 the four parallel module downloads can overrun its
|
|
|
|
|
+ small RX ring and stall TLS handshakes into a 10 s timeout; use e1000.
|
|
|
|
|
+ Also missing: `defer`/`async` ordering, `DOMParser`/
|
|
|
|
|
+ `document.implementation.createDocument` (DOMPurify throws, so the
|
|
|
|
|
+ Cloudron login footer is not rendered), canvas/2D contexts, user-state
|
|
|
pseudo-classes (`:hover`, `:focus`, ...), `:nth-child(... of S)` and
|
|
pseudo-classes (`:hover`, `:focus`, ...), `:nth-child(... of S)` and
|
|
|
pseudo-elements other than `::before`/`::after`; generated content is
|
|
pseudo-elements other than `::before`/`::after`; generated content is
|
|
|
text only (no box, background, counters or `url()` images, and
|
|
text only (no box, background, counters or `url()` images, and
|
|
@@ -2240,10 +2362,13 @@ and the WM falls back to polling (`io_keyboard_irq_masked()`).
|
|
|
TOTP; passkeys and external SSO need the pasted `connect.sid` cookie.
|
|
TOTP; passkeys and external SSO need the pasted `connect.sid` cookie.
|
|
|
The login depends on Cloudron's `cloudron-config` login API
|
|
The login depends on Cloudron's `cloudron-config` login API
|
|
|
(`chat_login.c` isolates it). TLS is not verified (the login screen
|
|
(`chat_login.c` isolates it). TLS is not verified (the login screen
|
|
|
- says so), and the saved cookie in `/share/chat.cfg` is a bearer
|
|
|
|
|
- credential (RAM-only unless a FAT path is chosen; concurrent chat
|
|
|
|
|
- windows share the file). No threads, reactions, polls, search,
|
|
|
|
|
- attachments/images/GIFs, edits or deletes beyond what a reload shows;
|
|
|
|
|
|
|
+ says so), and the saved cookie in `/data/CHAT.CFG` (or
|
|
|
|
|
+ `/share/chat.cfg` without a `/data` mount) is a bearer credential
|
|
|
|
|
+ (persistent on `/data`, RAM-only on `/share`; concurrent chat windows
|
|
|
|
|
+ share the file). No threads, reactions, polls, search, edits or deletes
|
|
|
|
|
+ beyond what a reload shows; image attachments and link-preview images
|
|
|
|
|
+ render inline up to the 4 MB fetch / 4 MP decode caps (first GIF frame;
|
|
|
|
|
+ WebP/AVIF/SVG are not decoded), file attachments are still text-only,
|
|
|
messages over 4 KB are truncated, history holds 240 messages, times are
|
|
messages over 4 KB are truncated, history holds 240 messages, times are
|
|
|
UTC and text is Latin-1. Network calls block the UI for their duration.
|
|
UTC and text is Latin-1. Network calls block the UI for their duration.
|
|
|
|
|
|
|
@@ -2279,16 +2404,23 @@ and the WM falls back to polling (`io_keyboard_irq_masked()`).
|
|
|
36. Network menu limits (`ucmd_netmenu.c`): building the device list probes
|
|
36. Network menu limits (`ucmd_netmenu.c`): building the device list probes
|
|
|
every driver, so opening the menu on a machine with an unconfigured USB
|
|
every driver, so opening the menu on a machine with an unconfigured USB
|
|
|
NIC can take a moment (USB control transfers) and may initialize a device
|
|
NIC can take a moment (USB control transfers) and may initialize a device
|
|
|
- that was not the boot-time winner. The list shows at most six device
|
|
|
|
|
- rows, one menu instance is kept open by the WM, and WiFi scanning is
|
|
|
|
|
- refused while associated (use Disconnect first). The staged
|
|
|
|
|
|
|
+ that was not the boot-time winner. The panel shows at most four device
|
|
|
|
|
+ rows plus a "+N more devices" line, one menu instance is kept open by the
|
|
|
|
|
+ WM, and WiFi scanning is refused while associated (use Disconnect first).
|
|
|
|
|
+ The popover is a 404x520 canvas (with 380x440 and 340x360 fallbacks); the
|
|
|
|
|
+ content area scrolls, the connection card can be scrolled away in a long
|
|
|
|
|
+ Wi-Fi list, and closing the panel with an outside click kills the netmenu
|
|
|
|
|
+ process without cancelling an already started `wifi` helper. The staged
|
|
|
`/share/netmenu.wifi` record contains the WPA2 passphrase until the
|
|
`/share/netmenu.wifi` record contains the WPA2 passphrase until the
|
|
|
`wifi` helper reads and unlinks it; the path is fixed, so two concurrent
|
|
`wifi` helper reads and unlinks it; the path is fixed, so two concurrent
|
|
|
netmenu instances (e.g. one launched from a terminal) would overwrite
|
|
netmenu instances (e.g. one launched from a terminal) would overwrite
|
|
|
each other. The `wifi` helper is asynchronous: closing the menu does not
|
|
each other. The `wifi` helper is asynchronous: closing the menu does not
|
|
|
cancel a connection attempt. Saved credentials live in plaintext
|
|
cancel a connection attempt. Saved credentials live in plaintext
|
|
|
- `/data/WIFI.CFG` (8.3), hold one network, and are retried at boot; use
|
|
|
|
|
- `wifi forget` to remove them. There is no menu button for forgetting yet.
|
|
|
|
|
|
|
+ `/data/WIFI.CFG` (8.3), hold up to 16 networks, and are retried at boot;
|
|
|
|
|
+ `wifi saved` lists them, `wifi forget [ssid]` removes one and the menu's
|
|
|
|
|
+ Saved view has a Forget button per network. A network saved with a wrong
|
|
|
|
|
+ passphrase is tried again at every boot until it is forgotten (Saved view
|
|
|
|
|
+ or `wifi forget <ssid>`) and joined again with the correct passphrase.
|
|
|
|
|
|
|
|
37. `/data` limits: the data partition is a plain FAT volume, so file names
|
|
37. `/data` limits: the data partition is a plain FAT volume, so file names
|
|
|
are 8.3 until `fat.c` gains LFN write support; there is no fsck, resize or
|
|
are 8.3 until `fat.c` gains LFN write support; there is no fsck, resize or
|