Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[茶话会][2025-3-9][20 分钟] OS胰岛素小课堂 #74

Open
4 tasks
manchangfengxu opened this issue Mar 8, 2025 · 0 comments
Open
4 tasks

[茶话会][2025-3-9][20 分钟] OS胰岛素小课堂 #74

manchangfengxu opened this issue Mar 8, 2025 · 0 comments
Labels
talk 茶话会报名

Comments

@manchangfengxu
Copy link

署名

manchang fengxu

摘要

OS in 1,000 Lines

本次茶话主要是讲解OS in 1,000 Lines

一、主要内容:

本次教程主要让大家对于操作系统的加载有一定的了解,不涉及具体内核的构建。

  • 计算机是如何启动的
  • 什么是BIOS
  • 链接器在干什么
  • 教程代码讲解

二、你需要准备什么👀️

  1. WSL,Ubuntu最新版本

  2. 了解一定的编译的小芝士🧀

  3. 下载基本工具和openSBI(把它理解成是 PC 的 BIOS)

    • sudo apt update && sudo apt install -y clang llvm lld qemu-system-riscv32 curl
    • curl -LO https://github.com/qemu/qemu/raw/v8.0.4/pc-bios/opensbi-riscv32-generic-fw_dynamic.bin

(确保opensbi-riscv32-generic-fw_dynamic.bin在当前目录中)

三、尝试启动🚀️

创建文件😄 :

$ touch run.sh
$ chmod +x run.sh

文件内容🎉️ :

#!/bin/bash
set -xue

# QEMU 文件路径
QEMU=qemu-system-riscv32

# 启动 QEMU
$QEMU -machine virt -bios default -nographic -serial mon:stdio --no-reboot

内容类型

我的分享涉及技术或计算机

附件 (可选)

有点糖🍬

关闭 Issue 前请先确认以下内容

  • 文档/PPT:<PR 链接>

OS in 1,000 lines.pptx

  • B 站视频:<视频链接>
@manchangfengxu manchangfengxu added the talk 茶话会报名 label Mar 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
talk 茶话会报名
Projects
None yet
Development

No branches or pull requests

1 participant