{"id":21008109,"url":"https://github.com/lflxp/blog_os","last_synced_at":"2026-04-21T21:06:15.336Z","repository":{"id":150080572,"uuid":"554889887","full_name":"lflxp/blog_os","owner":"lflxp","description":"rust编写的最小内核os","archived":false,"fork":false,"pushed_at":"2022-10-21T12:01:02.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-20T10:48:30.280Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lflxp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-10-20T15:16:46.000Z","updated_at":"2022-10-20T17:52:06.000Z","dependencies_parsed_at":"2023-06-05T03:00:40.291Z","dependency_job_id":null,"html_url":"https://github.com/lflxp/blog_os","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lflxp%2Fblog_os","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lflxp%2Fblog_os/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lflxp%2Fblog_os/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lflxp%2Fblog_os/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lflxp","download_url":"https://codeload.github.com/lflxp/blog_os/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243428437,"owners_count":20289318,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-19T09:11:32.578Z","updated_at":"2025-12-28T22:03:26.541Z","avatar_url":"https://github.com/lflxp.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 介绍\n\n本文参考[blog_os](https://os.phil-opp.com/zh-CN/freestanding-rust-binary/) 博客内容进行编写，学习和了解rust编写kernel os的知识点，供后面学习。\n\n# 命令\n\n## 第二章 最小化内核\n\n- rustup update\n- rustup target add thumbv7em-none-eabihf\n- rustup override add nightly\n- rustup component add llvm-tools-preview\n- rustup component add rust-src \n- brew install qemu\n- cargo install cargo-xbuild\n- cargo xbuild --target x86_64-blog_os.json\n- cargo xbuild\n- cargo install bootimage\n- cargo bootimage\n- qemu-system-x86_64 -drive format=raw,file=bootimage-blog_os.bin\n- cargo run\n\n# bootloader bug\n\n[github issues](https://github.com/phil-opp/blog_os/issues/403)\n\n```markdown\nSevendaye commented on 27 May 2021\nStarting from scratch and noticing this problem with bootloader 0.10.2 ― host OS is Fedora Rawhide and Rust version is 1.54.0-nightly (4de757209 2021-05-01):\n\nError: An error occured while trying to build the bootloader: The `bootloader` dependency has not the right format: No `package.metadata.bootloader.target` key found in Cargo.toml of bootloader\nParticularly bizarre since I'm following this to the T and it worked fine last year. Oh, and obviously 0.10.2 \u003e 0.5.1.\n\nHi,\n\nI had the same problem, I was able to solve it by:\n\nbootloader = \"0.9.18\" // In Cargo.toml\n$cargo clean\n$cargo bootimage --target .\\x86_64-blog_os.json\n$cargo run\nIt seems that there is a problem after version 0.9.18 of the bootlader crate\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flflxp%2Fblog_os","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flflxp%2Fblog_os","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flflxp%2Fblog_os/lists"}