{"id":19338183,"url":"https://github.com/jserv/kernel-in-kernel","last_synced_at":"2025-04-23T01:31:16.824Z","repository":{"id":146557256,"uuid":"38184980","full_name":"jserv/kernel-in-kernel","owner":"jserv","description":"Develop your own OS kernel by reusing Linux infrastructure","archived":false,"fork":false,"pushed_at":"2015-07-01T06:04:24.000Z","size":140,"stargazers_count":172,"open_issues_count":0,"forks_count":67,"subscribers_count":23,"default_branch":"master","last_synced_at":"2025-04-22T22:57:06.286Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","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/jserv.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}},"created_at":"2015-06-28T03:32:11.000Z","updated_at":"2024-11-08T00:16:40.000Z","dependencies_parsed_at":"2023-03-31T03:31:16.993Z","dependency_job_id":null,"html_url":"https://github.com/jserv/kernel-in-kernel","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/jserv%2Fkernel-in-kernel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jserv%2Fkernel-in-kernel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jserv%2Fkernel-in-kernel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jserv%2Fkernel-in-kernel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jserv","download_url":"https://codeload.github.com/jserv/kernel-in-kernel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250352245,"owners_count":21416461,"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-10T03:16:34.779Z","updated_at":"2025-04-23T01:31:16.597Z","avatar_url":"https://github.com/jserv.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"Welcome to the kernel-in-kernel repository. Here you will find the\nstraightfoward environment to develop your own operating system kernel\nby means of reusing Linux kernel, that implies that you do not have to\nworry about low-level initilizations, platform-specific configurations,\nand even device drivers.\n\nThis work was inspired by [mykernel](https://github.com/mengning/mykernel/),\nthe simple simulation of the linux process scheduling.\nMaintained by `Jim Huang \u003cjserv.tw@gmail.com\u003e`.\n\nBuild Instructions\n------------------\nUnless otherwise noted, file and directory names refer to this repository.\n\n1. Install [QEMU](http://www.qemu.org) and ensure its availability of x86 support.\n   For Debian/Ubuntu Linux, you can simply do `sudo apt-get install qemu-system-x86`.\n\n2. Return to the kernel-in-kernel top-level directory. Do a `make`. This will\n   do several things including downloading Linux kernel 4.1 as the base of\n   your own kernel, configuring the minimal development environment, and\n   building everything from scratch.\n\n3. At present, only IA32 image is generated, but it should be reasonably easy\n   to enable other architectures originally supported by Linux kernel.\n\nModify Your Own Kernel\n----------------------\nHacking kernel is interesting, and you should take a look over the files in\nthe `src` directory:\n* `mypcb.h`: the cutomized process control block\n* `scheduler.c`: timer interrupt handler and simple scheduler\n* `main.c`: entry point\n\nRunning kernel-in-kernel\n------------------------\nRun `make run` and and you should see this:\n\n```\nthis is process 0 -\nthis is process 0 +\nthis is process 1 -\nthis is process 1 +\nthis is process 2 -\nthis is process 2 +\nthis is process 3 -\nthis is process 3 +\n```\n\nLicensing\n=========\nSince kernel-in-kernel is built directly upon Linux kernel, it is certainly\nlicensed under GNU GPL v2.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjserv%2Fkernel-in-kernel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjserv%2Fkernel-in-kernel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjserv%2Fkernel-in-kernel/lists"}