This commit is contained in:
xyou
2026-07-31 13:53:49 +08:00
parent 5ea84fac97
commit f52157b7af
241 changed files with 26843 additions and 8155 deletions
+79
View File
@@ -0,0 +1,79 @@
# Deshab Kernel Configuration
# 修改此文件可自定义内核启动行为、驱动加载和算法参数
# 路径: SYSTEM/system/deshab64/FUCK
# UTSM 通过 Limine boot module 预加载读取(cmdline="fuck:config")
# DSK 通过 FAT32 子目录遍历读取(路径 "SYSTEM /DESHAB64 /FUCK ")
# 缺失或空的键使用硬编码默认值,行为与无配置文件时一致
[boot]
vmm=1
linux_guest=1
selftest=1
dev_mode=0
# 真机安全: LA57 检测 (0=不检测, 1=检测并警告, 2=检测并拒绝启动)
# 真机若 BIOS 启用 5 级分页, 设 2 可阻止启动避免数据损坏
la57_guard=2
# 真机安全: PCIe MCFG 检测 (0=不检测, 1=检测并记录)
mcfg_check=1
# 真机安全: 允许的最大物理地址宽度 (超过则拒绝启动, 0=不限制)
# 典型值: 46 (QEMU), 48 (多数实机), 52 (服务器)
max_phys_addr_bits=0
[drivers]
timer=1
apic=1
acpi=1
pci=1
console_fb=1
ahci=1
nvme=1
bootfs=1
vfs=1
fat32=1
devfs=1
e1000=1
virtio_net=1
ath9k=0
ps2kbd=1
# 真机安全: 禁用不稳定的真机特性
# ioapic_init=0 可禁用 IOAPIC 重定向表编程 (留 PIC 模式)
ioapic_init=1
# lapic_enable=0 可禁用 LAPIC software enable (留 firmware 状态)
lapic_enable=1
[utsm]
max_segments=1024
max_capabilities=256
max_pckc_keys=8
dirty_shard_pages=1024
arena_size_mb=64
drr_emergency_pool_kb=64
drr_recovery_log_size=4096
drr_heartbeat_interval=0
[dsk]
show_logo=1
skip_login=1
default_shell=cmd
mouse_init=1
netman=1
[debug]
# 全局插桩开关 (0=禁用,零开销; 1=启用所有 INSTR_* 宏)
enabled=1
# 日志级别阈值 (0=TRACE, 1=DEBUG, 2=INFO, 3=WARN, 4=ERROR, 5=SILENT)
log_level=1
# 探测缓冲开关 (0=禁用; 1=启用 INSTR_PROBE 写入环形缓冲)
probe_enable=1
# 探测缓冲容量 (条目数,每条 40 字节,默认 4096 条 ≈ 160KB)
probe_capacity=4096
# 统计摘要间隔 (每 N 次增量输出一次摘要)
stat_summary_interval=256
# 模块级过滤: 1=启用该模块的 TRACE/DEBUG 级别日志
utsm_trace=1
vmm_trace=1
dkm_trace=1
dsk_trace=1
block_trace=1
net_trace=0
input_trace=1
Binary file not shown.
Binary file not shown.
Binary file not shown.
View File
+45
View File
@@ -0,0 +1,45 @@
# Deshab 自动测试脚本 v1
# dev_mode=1 时由 shell 自动加载执行
# 手动触发: 输入 test 命令
$section 文件系统基础
ls
$assert_file FIRSTINTXT
$section 写入测试
echo Deshab test > TEST.TXT
cat TEST.TXT
$assert_file TEST.TXT
$section 复制测试
cp TEST.TXT COPY.TXT
$assert_file COPY.TXT
$section 移动测试
mv COPY.TXT MOVED.TXT
$assert_nofile COPY.TXT
$assert_file MOVED.TXT
$section 清理
rm TEST.TXT
rm MOVED.TXT
$assert_nofile TEST.TXT
$assert_nofile MOVED.TXT
$section 配置验证
$check_config dsk.show_logo
$check_config boot.dev_mode
$check_config drivers.e1000
$section 设备与版本
pci
version
uname
$section 内核插桩
$probe kernel_version
$probe block_device
$probe memory_map
$probe irq_status
$end
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.