mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-20 14:13:09 +00:00
Genode OS Framework
armcpluspluscppframeworkgenodegoahypervisorlinuxmicrokernelnovaobject-capabilitiesoperating-systemosdevriscvsculpt-ossel4virtualizationx86
fc6bcd9f9f
The Demo of 64bit Genode/NOVA fails during the booting phase when physical memory was tried to be mapped lying above 4G boundary. (qemu -m 4096 triggered it on some systems). The memory never got mapped and the attempt to access the virtual region resulted in a unexpected page fault inside Genode core. The latest revision removed the artificial boundary of 4G for 64bit. Example trace showing the issue: ([-1] lines show debugging output that mapping failed) ... int main(): --- create local services --- int main(): --- start init --- int main(): transferred 4047 MB to init int main(): --- init created, waiting for exit condition --- start new pager object with EIP=0x1025814, ESP=0x6001000 [init] Could not open file "ld.lib.so" start new pager object with EIP=0x10213e4, ESP=0x6001000 start new pager object with EIP=0x1037684, ESP=0x6001000 start new pager object with EIP=0x1021664, ESP=0x6001000 start new pager object with EIP=0x101e374, ESP=0x6001000 start new pager object with EIP=0x10295a4, ESP=0x6001000 start new pager object with EIP=0x1037db4, ESP=0x6001000 [init -> pci_drv] PCI driver started [init -> launchpad] Could not open file "ld.lib.so" [init -> launchpad] Could not open file "config" [init -> launchpad] Could not obtain config file [init -> ps2_drv] Detected ExPS/2 mouse - activating scroll-wheel and 5-button support. [init -> ps2_drv] Using keyboard with scan code set 1 (xlate). [init -> timer] Timer::Timeout_scheduler::Timeout_scheduler(Platform_timer*, Genode::Rpc_entrypoint*): starting timeout scheduler [init -> vesa_drv] int Framebuffer_drv::map_io_mem(Genode::addr_t, Genode::size_t, bool, void**, Genode::addr_t, Genode::Dataspace_capability*): fb mapped to 1000 start new pager object with EIP=0x101eaf0, ESP=0x401fef80 [init -> timer] Timer::Session_component::Session_component(Timer::Timeout_scheduler*, Genode::Cap_session*): created new session component, _session_cap.valid=1 start new pager object with EIP=0x1021d10, ESP=0x400fef80 start new pager object with EIP=0x1021d10, ESP=0x401fef80 [init -> vesa_drv] Could not open file "config" [init -> vesa_drv] Could not obtain config file [init -> vesa_drv] Found: VESA BIOS version 2.0 [init -> vesa_drv] OEM: VGABIOS Cirrus extension [init -> vesa_drv] Found: physical frame buffer at 0xfc000000 size: 0x00400000 [init -> vesa_drv] int Framebuffer_drv::map_io_mem(Genode::addr_t, Genode::size_t, bool, void**, Genode::addr_t, Genode::Dataspace_capability*): fb mapped to 400000 [init -> nitpicker] framebuffer is 1024x768@1 [init -> nitpicker] create session with args: fb_format=1, label="launchpad", ram_quota=1646592 [init -> nitpicker] Could not open file "config" [init -> nitpicker] Could not obtain config file [init -> nitpicker] create session with args: fb_width=400, fb_height=1504, fb_format=1, label="launchpad", ram_quota=1211392 [ 0] DEL MEM PD:0xffffffff8100d620->0xffffffff8100d320 SB:0x00100000 RB:0x00002a00 O:0x08 A:0x7 [-1] Pd::delegate snd->S::tree_lookup(0x100000) == 0x0 -- base-nova/contrib/src/pd.cpp:54 - Pd::snd 0xffffffff8100d620 =? Pd::kern 0xffffffff8100d620 [ 0] DEL MEM PD:0xffffffff8100d620->0xffffffff8100d320 SB:0x00100100 RB:0x00002b00 O:0x05 A:0x7 [-1] Pd::delegate snd->S::tree_lookup(0x100100) == 0x0 -- base-nova/contrib/src/pd.cpp:54 - Pd::snd 0xffffffff8100d620 =? Pd::kern 0xffffffff8100d620 [ 0] DEL MEM PD:0xffffffff8100d620->0xffffffff8100d320 SB:0x00100120 RB:0x00002b20 O:0x02 A:0x7 [-1] Pd::delegate snd->S::tree_lookup(0x100120) == 0x0 -- base-nova/contrib/src/pd.cpp:54 - Pd::snd 0xffffffff8100d620 =? Pd::kern 0xffffffff8100d620 [ 0] DEL MEM PD:0xffffffff8100d620->0xffffffff8100d320 SB:0x00100124 RB:0x00002b24 O:0x01 A:0x7 [-1] Pd::delegate snd->S::tree_lookup(0x100124) == 0x0 -- base-nova/contrib/src/pd.cpp:54 - Pd::snd 0xffffffff8100d620 =? Pd::kern 0xffffffff8100d620 [ 0] Killed EC:0xffffffff823ca880 SC:0xffffffff823cb740 V:0xe CS:0x2b EIP:0x1215a0 CR2:0x2b25fff ERR:0x6 (PT not found) |
||
---|---|---|
base | ||
base-codezero | ||
base-fiasco | ||
base-foc | ||
base-host | ||
base-linux | ||
base-mb | ||
base-nova | ||
base-okl4 | ||
base-pistachio | ||
dde_ipxe | ||
dde_linux | ||
demo | ||
doc | ||
gems | ||
hello_tutorial | ||
libports | ||
os | ||
ports | ||
ports-foc | ||
ports-okl4 | ||
qt4 | ||
tool | ||
.gitignore | ||
LICENSE | ||
README |
================================= Genode Operating System Framework ================================= This is the source tree of the reference implementation of the Genode OS architecture. For a general overview about the architecture, please refer to the project's official website: :Official project website for the Genode OS Framework: [http://genode.org/documentation/general-overview] The current implementation can be compiled for 8 different kernels: Linux, L4ka::Pistachio, L4/Fiasco, OKL4, NOVA, Fiasco.OC, Codezero, and a custom kernel for the MicroBlaze architecture. Whereas the Linux version serves us as development vehicle and enables us to rapidly develop the generic parts of the system, the actual target platforms of the framework are microkernels. There is no "perfect" microkernel - and neither should there be one. If a microkernel pretended to be fit for all use cases, it wouldn't be "micro". Hence, all microkernels differ in terms of their respective features, complexity, and supported hardware architectures. Genode allows the use of each of the kernels listed above with a rich set of device drivers, protocol stacks, libraries, and applications in a uniform way. For developers, the framework provides an easy way to target multiple different kernels instead of tying the development to a particular kernel technology. For kernel developers, Genode contributes advanced workloads, stress-testing their kernel, and enabling a variety of application use cases that would not be possible otherwise. For users and system integrators, it enables the choice of the kernel that fits best with the requirements at hand for the particular usage scenario. Directory overview ################## The Genode source tree is composed of the following subdirectories: :'doc': This directory contains general documentation. Please consider the following document for a quick guide to get started with the framework: ! doc/getting_started.txt If you are curious about the ready-to-use components that come with the framework, please review the components overview: ! doc/components.txt :'base': This directory contains the source-code repository of the fundamental frameworks and interfaces of Genode. Furthermore, it contains the generic parts of core. :'os': This directory contains the non-base OS components such as the init process, device drivers, and basic system services. :'demo': This directory contains the source-code repository of various services and applications that we use for demonstration purposes. For example, a graphical application launcher called Launchpad and the Scout tutorial browser. :'base-<platform>': These directories contain platform-specific source-code repositories complementing the 'base' repository. The following platforms are supported: :'linux': Linux kernel (both x86_32 and x86_64) :'pistachio': L4ka::Pistachio kernel developed at University of Karlsruhe. See [http://genode.org/community/wiki/GenodeOnL4kaPistachio] :'fiasco': L4/Fiasco kernel developed at University of Technology Dresden. See [http://genode.org/community/wiki/GenodeOnL4Fiasco] :'foc': Fiasco.OC is a modernized version of the Fiasco microkernel with a completely revised kernel interface fostering capability-based security. It is not compatible with L4/Fiasco. See [http://genode.org/community/wiki/GenodeOnFiascoOC] :'okl4': OKL4 kernel (x86_32 and ARM) developed at Open-Kernel-Labs. See [http://genode.org/community/wiki/GenodeOnOKL4] :'nova': NOVA hypervisor developed at University of Technology Dresden See [http://genode.org/community/wiki/GenodeOnNOVA] :'codezero': Codezero microkernel developed by B-Labs See [http://genode.org/community/wiki/GenodeOnCodezero] :'mb': Support for running Genode natively on the MicroBlaze softcore CPU. See [http://genode.org/community/wiki/GenodeOnMicroBlaze] :'host': Pseudo platform documenting the interface between the generic and platform-specific parts of the base framework. This is not a functional base platform. :'tool': Source-code management tools and scripts. Please refer to the README file contained in the directory. :'hello_tutorial': Tutorial for creating a simple client-server scenario with Genode. This repository includes documentation and the complete source code. :'libports': This source-code repository contains ports of popular open-source libraries to Genode, most importantly the C library. The repository contains no upstream source code but means to download the code and adapt it to Genode. For instructions about how to use this mechanism, please consult the README file at the top level of the repository. :'dde_linux': This source-code repository contains the device driver environment for executing Linux device drivers natively on Genode. Currently, this repository hosts the USB stack. :'linux_drivers': Deprecated version of the Linux device driver environment featuring audio drivers and the Intel GEM driver. This repository is in a transitionary phase. Its functionality will be incorporated into 'dde_linux'. :'dde_ipxe': This source-code repository contains the device driver environment for executing drivers of the iPXE project. :'qt4': This source-code repository contains the Genode version of Qt4 framework. Please find more information about using Qt4 with Genode in the repository's 'README' file. :'ports': This source-code repository hosts ports of 3rd-party applications to Genode. The repository does not contain upstream source code but provides a mechanism for downloading the official source distributions and adapt them to the Genode environment. The used mechanism is roughly the same as used for the 'libports' repository. Please consult 'libports/README' for further information. :'ports-<platform>': These platform-specific source-code repositories contain software that capitalizes special features of the respective kernel platform. I.e., for the OKL4 base platform, a port of OKLinux is provided in 'ports-okl4'. For the Fiasco.OC platform, 'ports-foc' hosts a port of the L4Linux kernel. For further information, please refer to the README file at the top level of the respective repository. :'gems': This source-code repository contains Genode applications that use both native Genode interfaces as well as features of other high-level repositories, in particular shared libraries provided by 'libports'. Contact ####### The best way to get in touch with Genode developers and users is the project's mailing list. Please feel welcome to join in! :Genode Mailing Lists: [http://genode.org/community/mailing-lists]