{"action":"opened","number":2829,"pull_request":{"url":"https://api.github.com/repos/genodelabs/genode/pulls/2829","id":188062133,"html_url":"https://github.com/genodelabs/genode/pull/2829","diff_url":"https://github.com/genodelabs/genode/pull/2829.diff","patch_url":"https://github.com/genodelabs/genode/pull/2829.patch","issue_url":"https://api.github.com/repos/genodelabs/genode/issues/2829","number":2829,"state":"open","locked":false,"title":"WIP: base-linux-hw","user":{"login":"jklmnn","id":7999005,"avatar_url":"https://avatars2.githubusercontent.com/u/7999005?v=4","gravatar_id":"","url":"https://api.github.com/users/jklmnn","html_url":"https://github.com/jklmnn","followers_url":"https://api.github.com/users/jklmnn/followers","following_url":"https://api.github.com/users/jklmnn/following{/other_user}","gists_url":"https://api.github.com/users/jklmnn/gists{/gist_id}","starred_url":"https://api.github.com/users/jklmnn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jklmnn/subscriptions","organizations_url":"https://api.github.com/users/jklmnn/orgs","repos_url":"https://api.github.com/users/jklmnn/repos","events_url":"https://api.github.com/users/jklmnn/events{/privacy}","received_events_url":"https://api.github.com/users/jklmnn/received_events","type":"User","site_admin":false},"body":"This work in progress PR targets base-linux to be able to use native Genode drivers. It also enables Genode to boot on a bare Linux kernel and creating images for image/iso and image/uefi. To do this\r\n```\r\nKERNEL_RUN_OPT(linux) := --include power_on/linux --include log/linux\r\n```\r\nneeds to be replaced with\r\n```\r\nKERNEL_RUN_OPT(linux)   := $(QEMU_RUN_OPT)\r\n```\r\nin etc/build.conf.\r\nAlso for some components to build `pci` needs to appended to repos/base-linux/etc/specs.conf\r\n\r\n# Current state\r\n\r\n## Linux kernel\r\n\r\nThe Linux kernel used is available at https://github.com/jklmnn/linux/tree/genode. Interrupts and MMIO get provided by the [hwio](https://github.com/jklmnn/linux/blob/genode/drivers/char/genode/hwio.c) module and the `platform_info` ROM gets provided by the [platform_info](https://github.com/jklmnn/linux/blob/genode/drivers/char/genode/platform_info.c).\r\n\r\n## IO ports\r\n\r\nThe `IO_PORT` session works without any problems.\r\n\r\n## IO memory\r\n\r\nThe `IO_MEM` session work for mapping and using memory but freeing it results in a segmentation fault. This prevents the acpi_drv from working. If `free_io_mem` is implemented with a dummy the driver works but obviously creates a memory leak.\r\n\r\n## Interrupts\r\n\r\nInterrupts are provided by calling a blocking read on the hwio device that returns on a triggered interrupt (similar to okl4).\r\n\r\n## DMA\r\n\r\nTo provide DMA on base-linux the RAM session using mmaped files needs to replaced with an implementation that provides contiguous physical memory. The current implementation of the hwio kernel module already provides a configuration for this case but replacing the file used in Genodes RAM session with this file descriptor causes a segmentation fault in the child component.\r\n\r\n## Architectures\r\n\r\nCurrently this setup only works for x86_64 because of the provided kernel image. A better solution would be to build the bzimage from a port of the Linux kernel with the correct compiler and architecture.\r\n\r\n## Notes\r\n\r\nThe fb_drv fails to load due to a race condition. On qemu this can be mitigated by inserting  log messages before the call of `X86EMU_exec()` (and therefor slowing down the driver).\r\n\r\nI hope I didn't forget anything. If something is unclear, don't hesitate to ask me.","created_at":"2018-05-15T09:15:17Z","updated_at":"2018-05-15T09:15:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/genodelabs/genode/pulls/2829/commits","review_comments_url":"https://api.github.com/repos/genodelabs/genode/pulls/2829/comments","review_comment_url":"https://api.github.com/repos/genodelabs/genode/pulls/comments{/number}","comments_url":"https://api.github.com/repos/genodelabs/genode/issues/2829/comments","statuses_url":"https://api.github.com/repos/genodelabs/genode/statuses/590fedd5e0431c5d7bd0d0d0f86e6e7624d996e5","head":{"label":"jklmnn:base_linux_hw_r0","ref":"base_linux_hw_r0","sha":"590fedd5e0431c5d7bd0d0d0f86e6e7624d996e5","user":{"login":"jklmnn","id":7999005,"avatar_url":"https://avatars2.githubusercontent.com/u/7999005?v=4","gravatar_id":"","url":"https://api.github.com/users/jklmnn","html_url":"https://github.com/jklmnn","followers_url":"https://api.github.com/users/jklmnn/followers","following_url":"https://api.github.com/users/jklmnn/following{/other_user}","gists_url":"https://api.github.com/users/jklmnn/gists{/gist_id}","starred_url":"https://api.github.com/users/jklmnn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jklmnn/subscriptions","organizations_url":"https://api.github.com/users/jklmnn/orgs","repos_url":"https://api.github.com/users/jklmnn/repos","events_url":"https://api.github.com/users/jklmnn/events{/privacy}","received_events_url":"https://api.github.com/users/jklmnn/received_events","type":"User","site_admin":false},"repo":{"id":85593553,"name":"genode","full_name":"jklmnn/genode","owner":{"login":"jklmnn","id":7999005,"avatar_url":"https://avatars2.githubusercontent.com/u/7999005?v=4","gravatar_id":"","url":"https://api.github.com/users/jklmnn","html_url":"https://github.com/jklmnn","followers_url":"https://api.github.com/users/jklmnn/followers","following_url":"https://api.github.com/users/jklmnn/following{/other_user}","gists_url":"https://api.github.com/users/jklmnn/gists{/gist_id}","starred_url":"https://api.github.com/users/jklmnn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jklmnn/subscriptions","organizations_url":"https://api.github.com/users/jklmnn/orgs","repos_url":"https://api.github.com/users/jklmnn/repos","events_url":"https://api.github.com/users/jklmnn/events{/privacy}","received_events_url":"https://api.github.com/users/jklmnn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jklmnn/genode","description":"Genode OS Framework","fork":true,"url":"https://api.github.com/repos/jklmnn/genode","forks_url":"https://api.github.com/repos/jklmnn/genode/forks","keys_url":"https://api.github.com/repos/jklmnn/genode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jklmnn/genode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jklmnn/genode/teams","hooks_url":"https://api.github.com/repos/jklmnn/genode/hooks","issue_events_url":"https://api.github.com/repos/jklmnn/genode/issues/events{/number}","events_url":"https://api.github.com/repos/jklmnn/genode/events","assignees_url":"https://api.github.com/repos/jklmnn/genode/assignees{/user}","branches_url":"https://api.github.com/repos/jklmnn/genode/branches{/branch}","tags_url":"https://api.github.com/repos/jklmnn/genode/tags","blobs_url":"https://api.github.com/repos/jklmnn/genode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jklmnn/genode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jklmnn/genode/git/refs{/sha}","trees_url":"https://api.github.com/repos/jklmnn/genode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jklmnn/genode/statuses/{sha}","languages_url":"https://api.github.com/repos/jklmnn/genode/languages","stargazers_url":"https://api.github.com/repos/jklmnn/genode/stargazers","contributors_url":"https://api.github.com/repos/jklmnn/genode/contributors","subscribers_url":"https://api.github.com/repos/jklmnn/genode/subscribers","subscription_url":"https://api.github.com/repos/jklmnn/genode/subscription","commits_url":"https://api.github.com/repos/jklmnn/genode/commits{/sha}","git_commits_url":"https://api.github.com/repos/jklmnn/genode/git/commits{/sha}","comments_url":"https://api.github.com/repos/jklmnn/genode/comments{/number}","issue_comment_url":"https://api.github.com/repos/jklmnn/genode/issues/comments{/number}","contents_url":"https://api.github.com/repos/jklmnn/genode/contents/{+path}","compare_url":"https://api.github.com/repos/jklmnn/genode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jklmnn/genode/merges","archive_url":"https://api.github.com/repos/jklmnn/genode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jklmnn/genode/downloads","issues_url":"https://api.github.com/repos/jklmnn/genode/issues{/number}","pulls_url":"https://api.github.com/repos/jklmnn/genode/pulls{/number}","milestones_url":"https://api.github.com/repos/jklmnn/genode/milestones{/number}","notifications_url":"https://api.github.com/repos/jklmnn/genode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jklmnn/genode/labels{/name}","releases_url":"https://api.github.com/repos/jklmnn/genode/releases{/id}","deployments_url":"https://api.github.com/repos/jklmnn/genode/deployments","created_at":"2017-03-20T15:26:58Z","updated_at":"2018-04-08T10:40:43Z","pushed_at":"2018-05-15T07:54:22Z","git_url":"git://github.com/jklmnn/genode.git","ssh_url":"git@github.com:jklmnn/genode.git","clone_url":"https://github.com/jklmnn/genode.git","svn_url":"https://github.com/jklmnn/genode","homepage":"http://genode.org/","size":58334,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"genodelabs:master","ref":"master","sha":"3b7d6394d722089aafc2b66fd4e434e52b021d7f","user":{"login":"genodelabs","id":1256097,"avatar_url":"https://avatars2.githubusercontent.com/u/1256097?v=4","gravatar_id":"","url":"https://api.github.com/users/genodelabs","html_url":"https://github.com/genodelabs","followers_url":"https://api.github.com/users/genodelabs/followers","following_url":"https://api.github.com/users/genodelabs/following{/other_user}","gists_url":"https://api.github.com/users/genodelabs/gists{/gist_id}","starred_url":"https://api.github.com/users/genodelabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/genodelabs/subscriptions","organizations_url":"https://api.github.com/users/genodelabs/orgs","repos_url":"https://api.github.com/users/genodelabs/repos","events_url":"https://api.github.com/users/genodelabs/events{/privacy}","received_events_url":"https://api.github.com/users/genodelabs/received_events","type":"Organization","site_admin":false},"repo":{"id":3018212,"name":"genode","full_name":"genodelabs/genode","owner":{"login":"genodelabs","id":1256097,"avatar_url":"https://avatars2.githubusercontent.com/u/1256097?v=4","gravatar_id":"","url":"https://api.github.com/users/genodelabs","html_url":"https://github.com/genodelabs","followers_url":"https://api.github.com/users/genodelabs/followers","following_url":"https://api.github.com/users/genodelabs/following{/other_user}","gists_url":"https://api.github.com/users/genodelabs/gists{/gist_id}","starred_url":"https://api.github.com/users/genodelabs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/genodelabs/subscriptions","organizations_url":"https://api.github.com/users/genodelabs/orgs","repos_url":"https://api.github.com/users/genodelabs/repos","events_url":"https://api.github.com/users/genodelabs/events{/privacy}","received_events_url":"https://api.github.com/users/genodelabs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/genodelabs/genode","description":"Genode OS Framework","fork":false,"url":"https://api.github.com/repos/genodelabs/genode","forks_url":"https://api.github.com/repos/genodelabs/genode/forks","keys_url":"https://api.github.com/repos/genodelabs/genode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/genodelabs/genode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/genodelabs/genode/teams","hooks_url":"https://api.github.com/repos/genodelabs/genode/hooks","issue_events_url":"https://api.github.com/repos/genodelabs/genode/issues/events{/number}","events_url":"https://api.github.com/repos/genodelabs/genode/events","assignees_url":"https://api.github.com/repos/genodelabs/genode/assignees{/user}","branches_url":"https://api.github.com/repos/genodelabs/genode/branches{/branch}","tags_url":"https://api.github.com/repos/genodelabs/genode/tags","blobs_url":"https://api.github.com/repos/genodelabs/genode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/genodelabs/genode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/genodelabs/genode/git/refs{/sha}","trees_url":"https://api.github.com/repos/genodelabs/genode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/genodelabs/genode/statuses/{sha}","languages_url":"https://api.github.com/repos/genodelabs/genode/languages","stargazers_url":"https://api.github.com/repos/genodelabs/genode/stargazers","contributors_url":"https://api.github.com/repos/genodelabs/genode/contributors","subscribers_url":"https://api.github.com/repos/genodelabs/genode/subscribers","subscription_url":"https://api.github.com/repos/genodelabs/genode/subscription","commits_url":"https://api.github.com/repos/genodelabs/genode/commits{/sha}","git_commits_url":"https://api.github.com/repos/genodelabs/genode/git/commits{/sha}","comments_url":"https://api.github.com/repos/genodelabs/genode/comments{/number}","issue_comment_url":"https://api.github.com/repos/genodelabs/genode/issues/comments{/number}","contents_url":"https://api.github.com/repos/genodelabs/genode/contents/{+path}","compare_url":"https://api.github.com/repos/genodelabs/genode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/genodelabs/genode/merges","archive_url":"https://api.github.com/repos/genodelabs/genode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/genodelabs/genode/downloads","issues_url":"https://api.github.com/repos/genodelabs/genode/issues{/number}","pulls_url":"https://api.github.com/repos/genodelabs/genode/pulls{/number}","milestones_url":"https://api.github.com/repos/genodelabs/genode/milestones{/number}","notifications_url":"https://api.github.com/repos/genodelabs/genode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/genodelabs/genode/labels{/name}","releases_url":"https://api.github.com/repos/genodelabs/genode/releases{/id}","deployments_url":"https://api.github.com/repos/genodelabs/genode/deployments","created_at":"2011-12-20T08:27:40Z","updated_at":"2018-05-14T20:52:15Z","pushed_at":"2018-05-15T06:38:44Z","git_url":"git://github.com/genodelabs/genode.git","ssh_url":"git@github.com:genodelabs/genode.git","clone_url":"https://github.com/genodelabs/genode.git","svn_url":"https://github.com/genodelabs/genode","homepage":"http://genode.org/","size":37270,"stargazers_count":419,"watchers_count":419,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":172,"mirror_url":null,"archived":false,"open_issues_count":207,"license":{"key":"other","name":"Other","spdx_id":null,"url":null},"forks":172,"open_issues":207,"watchers":419,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/genodelabs/genode/pulls/2829"},"html":{"href":"https://github.com/genodelabs/genode/pull/2829"},"issue":{"href":"https://api.github.com/repos/genodelabs/genode/issues/2829"},"comments":{"href":"https://api.github.com/repos/genodelabs/genode/issues/2829/comments"},"review_comments":{"href":"https://api.github.com/repos/genodelabs/genode/pulls/2829/comments"},"review_comment":{"href":"https://api.github.com/repos/genodelabs/genode/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/genodelabs/genode/pulls/2829/commits"},"statuses":{"href":"https://api.github.com/repos/genodelabs/genode/statuses/590fedd5e0431c5d7bd0d0d0f86e6e7624d996e5"}},"author_association":"CONTRIBUTOR","merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":15,"additions":448,"deletions":23,"changed_files":21}}
{"actor":{"display_login":"jklmnn"}}