Skip to content

Commit 7b0cd41

Browse files
Update docs
1 parent f909b06 commit 7b0cd41

8 files changed

Lines changed: 923 additions & 30 deletions

File tree

docs/architecture/boot-sequence.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Boot sequence
2+
3+
MicroPythonOS consists of several core components that initialize and manage the system.
4+
5+
- **MicroPythonOS/lvgl_micropython/lib/micropython/ports/esp32/modules/_boot.py**: attempts to mount the internal storage partition to / and if it fails, formats it
6+
7+
- **internal_filesystem/main.py**: Hands off execution to /lib/mpos/main.py by importing it
8+
9+
- **/lib/mpos/main.py**:
10+
- Detects the hardware board
11+
- Initializes the filesystem driver
12+
- Mounts the freezefs into /builtin/
13+
- Loads the com.micropythonos.settings
14+
- Initializes the user interface.
15+
- Starts the WiFi autoconnect thread
16+
- Launches the `launcher` app that shows the icons
17+
- Starts the asyncio REPL
18+
- Marks the current boot as successful (cancel rollback)
19+
- Starts the TaskManager
20+
21+
See [Filesystem Layout](filesystem.md) for where apps and data are stored.
22+

docs/architecture/frameworks.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,6 +463,5 @@ class TestMyFramework(unittest.TestCase):
463463
## See Also
464464

465465
- [AppManager](../frameworks/app-manager.md): App discovery, installation, and launching
466-
- [System Components](system-components.md): Overview of all system components
467466
- [Architecture Overview](overview.md): High-level design principles
468467
- [App Development Guide](../apps/index.md): How to use frameworks in apps

docs/architecture/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33
Learn about the design and structure of MicroPythonOS, inspired by Android's "thin" OS model.
44

55
- [Overview](overview.md): High-level architecture and design principles.
6-
- [System Components](system-components.md): Key files and their roles.
6+
- [Boot Sequence](boot-sequence.md): What happens when MicroPythonOS starts up
77
- [Frameworks](frameworks.md): Unified framework pattern for system services.
88
- [Filesystem Layout](filesystem.md): Directory structure for apps and data.

0 commit comments

Comments
 (0)