Record networking and DMA development progress
Add the current OS source tree, build scripts, system image layout, and development notes covering DMA page allocation, e1000 bring-up, net API dispatch, and DHCP work in progress.
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,42 @@
|
||||
timeout: 0
|
||||
serial: yes
|
||||
verbose: yes
|
||||
|
||||
/UTSM boot
|
||||
protocol: limine
|
||||
kernel_path: boot():/boot/utsm.elf
|
||||
module_path: boot():/driver/manifest.json
|
||||
module_cmdline: dkm:manifest
|
||||
|
||||
module_path: boot():/driver/platform/timer.drv
|
||||
module_cmdline: dkm:timer
|
||||
module_path: boot():/driver/platform/apic.drv
|
||||
module_cmdline: dkm:apic
|
||||
module_path: boot():/driver/platform/acpi.drv
|
||||
module_cmdline: dkm:acpi
|
||||
module_path: boot():/driver/bus/pci.drv
|
||||
module_cmdline: dkm:pci
|
||||
module_path: boot():/driver/console/console_fb.drv
|
||||
module_cmdline: dkm:console_fb
|
||||
module_path: boot():/driver/block/ahci.drv
|
||||
module_cmdline: dkm:ahci
|
||||
module_path: boot():/driver/block/nvme.drv
|
||||
module_cmdline: dkm:nvme
|
||||
module_path: boot():/driver/fs/bootfs.drv
|
||||
module_cmdline: dkm:bootfs
|
||||
module_path: boot():/driver/fs/vfs.drv
|
||||
module_cmdline: dkm:vfs
|
||||
module_path: boot():/driver/fs/fat32.drv
|
||||
module_cmdline: dkm:fat32
|
||||
module_path: boot():/driver/fs/devfs.drv
|
||||
module_cmdline: dkm:devfs
|
||||
module_path: boot():/driver/net/e1000.drv
|
||||
module_cmdline: dkm:e1000
|
||||
module_path: boot():/driver/net/virtio_net.drv
|
||||
module_cmdline: dkm:virtio_net
|
||||
module_path: boot():/driver/input/ps2kbd.drv
|
||||
module_cmdline: dkm:ps2kbd
|
||||
module_path: boot():/system/deshab64/deshab.elf
|
||||
module_cmdline: dsk:main
|
||||
module_path: boot():/driver/test.fat32
|
||||
module_cmdline: dkm:test_fat32
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,169 @@
|
||||
{
|
||||
"schema": "deshab.driver.manifest.v1",
|
||||
"root": "SYSTEM",
|
||||
"driverRoot": "SYSTEM/driver",
|
||||
"format": "elf64-drv",
|
||||
"abi": {
|
||||
"name": "DKM",
|
||||
"version": 1,
|
||||
"entry": "driver_init",
|
||||
"exit": "driver_exit",
|
||||
"descriptor": "driver_desc"
|
||||
},
|
||||
"policy": {
|
||||
"loadModel": "module",
|
||||
"loadOrder": "staged",
|
||||
"requiredFailure": "drr_recovery_or_panic",
|
||||
"optionalFailure": "mark_failed_and_continue",
|
||||
"memoryModel": "UTSM",
|
||||
"codeSegment": "READ|EXEC|SEALED",
|
||||
"dataSegment": "READ|WRITE|STRONG_RECOVERY",
|
||||
"dmaSegment": "DMA|PINNED"
|
||||
},
|
||||
"stages": [
|
||||
{
|
||||
"id": 0,
|
||||
"name": "platform",
|
||||
"required": true,
|
||||
"description": "平台发现、中断、总线、基础计时。",
|
||||
"drivers": [
|
||||
{
|
||||
"name": "timer",
|
||||
"path": "driver/platform/timer.drv",
|
||||
"class": "timer",
|
||||
"required": true,
|
||||
"depends": [],
|
||||
"provides": ["timer"]
|
||||
},
|
||||
{
|
||||
"name": "apic",
|
||||
"path": "driver/platform/apic.drv",
|
||||
"class": "interrupt",
|
||||
"required": true,
|
||||
"depends": ["timer"],
|
||||
"provides": ["irq", "apic"]
|
||||
},
|
||||
{
|
||||
"name": "acpi",
|
||||
"path": "driver/platform/acpi.drv",
|
||||
"class": "platform",
|
||||
"required": false,
|
||||
"depends": [],
|
||||
"provides": ["acpi"]
|
||||
},
|
||||
{
|
||||
"name": "pci",
|
||||
"path": "driver/bus/pci.drv",
|
||||
"class": "bus",
|
||||
"required": true,
|
||||
"depends": ["irq"],
|
||||
"provides": ["pci"]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 1,
|
||||
"name": "boot",
|
||||
"required": true,
|
||||
"description": "启动关键驱动:控制台、块设备、启动文件系统。",
|
||||
"drivers": [
|
||||
{
|
||||
"name": "console_fb",
|
||||
"path": "driver/console/console_fb.drv",
|
||||
"class": "console",
|
||||
"required": false,
|
||||
"depends": [],
|
||||
"provides": ["console"]
|
||||
},
|
||||
{
|
||||
"name": "ahci",
|
||||
"path": "driver/block/ahci.drv",
|
||||
"class": "storage",
|
||||
"required": false,
|
||||
"depends": ["pci", "irq"],
|
||||
"provides": ["block"]
|
||||
},
|
||||
{
|
||||
"name": "nvme",
|
||||
"path": "driver/block/nvme.drv",
|
||||
"class": "storage",
|
||||
"required": false,
|
||||
"depends": ["pci", "irq"],
|
||||
"provides": ["block"]
|
||||
},
|
||||
{
|
||||
"name": "bootfs",
|
||||
"path": "driver/fs/bootfs.drv",
|
||||
"class": "fs",
|
||||
"required": true,
|
||||
"depends": [],
|
||||
"provides": ["bootfs"]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"name": "filesystem",
|
||||
"required": true,
|
||||
"description": "VFS 和可挂载文件系统。",
|
||||
"drivers": [
|
||||
{
|
||||
"name": "vfs",
|
||||
"path": "driver/fs/vfs.drv",
|
||||
"class": "fs-core",
|
||||
"required": true,
|
||||
"depends": ["bootfs"],
|
||||
"provides": ["vfs"]
|
||||
},
|
||||
{
|
||||
"name": "fat32",
|
||||
"path": "driver/fs/fat32.drv",
|
||||
"class": "fs",
|
||||
"required": false,
|
||||
"depends": ["vfs", "block"],
|
||||
"provides": ["fat32"]
|
||||
},
|
||||
{
|
||||
"name": "devfs",
|
||||
"path": "driver/fs/devfs.drv",
|
||||
"class": "fs",
|
||||
"required": false,
|
||||
"depends": ["vfs"],
|
||||
"provides": ["devfs"]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"name": "optional",
|
||||
"required": false,
|
||||
"description": "网络、输入、图形等非启动关键驱动。",
|
||||
"drivers": [
|
||||
{
|
||||
"name": "e1000",
|
||||
"path": "driver/net/e1000.drv",
|
||||
"class": "net",
|
||||
"required": false,
|
||||
"depends": ["pci", "irq"],
|
||||
"provides": ["netdev"]
|
||||
},
|
||||
{
|
||||
"name": "virtio_net",
|
||||
"path": "driver/net/virtio_net.drv",
|
||||
"class": "net",
|
||||
"required": false,
|
||||
"depends": ["pci", "irq"],
|
||||
"provides": ["netdev"]
|
||||
},
|
||||
{
|
||||
"name": "ps2kbd",
|
||||
"path": "driver/input/ps2kbd.drv",
|
||||
"class": "input",
|
||||
"required": false,
|
||||
"depends": ["irq"],
|
||||
"provides": ["keyboard"]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,6 @@
|
||||
network.mode=dhcp
|
||||
network.device=auto
|
||||
network.name=
|
||||
network.password=
|
||||
network.ip=dhcp
|
||||
network.dns=auto
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,7 @@
|
||||
# Deshab user configuration placeholder
|
||||
# Runtime write is pending FAT32 write support.
|
||||
version=1
|
||||
computerName=
|
||||
username=
|
||||
passwordSha256=
|
||||
configEncrypted=0
|
||||
Binary file not shown.
@@ -0,0 +1 @@
|
||||
0
|
||||
Reference in New Issue
Block a user