From parkhiyadixit at gmail.com Mon Aug 8 18:14:44 2022 From: parkhiyadixit at gmail.com (Dixit Parkhiya) Date: Mon, 8 Aug 2022 21:44:44 +0530 Subject: Error While genode for ARM generation Message-ID: Hello Genodians, I'm trying to generate a genode image for ARM architecture. to be precise imx8q_evk board Currently i follow article "Sculpt OS 21.10 on ARM" by Stefan Kalkowsi https://genodians.org/skalk/2021-10-25-sculpt-arm For ARM toolchain and Packages i'm using "Docker Container" http://genodians.org/skalk/2020-09-29-docker-devel (I'm using genode-docker-devel for docker) (this docker image should contains all packages and toolchain but still need to install some packages) able to download all third party software tool/ports/prepare_port bash coreutils curl dde_linux dde_rump ...... but during depot directory facing this problem. tool/depot/create genodelabs/pkg/arm_v8a/sculpt-imx8q_evk genodelabs/bin/arm_v8a/base-hw-imx8q_evk CROSS_DEV_PREFIX=/usr/local/genode/tool/21.05/bin/genode-aarch64- UPDATE_VERSIONS=1 -j8 *[Please have a look at attached Screenshot of Error message]* *"aclocal-1.15" is missing* while look into the system found that aclocal is part of GNU basically. And version of installed aclocal is 1.16 (newer than required) and also if I change aclocal(automake) version then it may not be compatible with current GNU and create problems in future. Thanks & Regards -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot from 2022-08-08 21-18-57.png Type: image/png Size: 200036 bytes Desc: not available URL: From christian.helmuth at genode-labs.com Tue Aug 9 14:11:28 2022 From: christian.helmuth at genode-labs.com (Christian Helmuth) Date: Tue, 9 Aug 2022 14:11:28 +0200 Subject: Error While genode for ARM generation In-Reply-To: References: Message-ID: <20220809121128.GE3043@genode-labs.com> Hello Dixit Parkhiya, welcome to the list. We tackled this issue in April 2022 [1]. For your version of Genode, I suggest you cherry-pick the fix in commit [2]. [1] GitHub Issue: coreutils may not build because misssing aclocal-1.15 https://github.com/genodelabs/genode/issues/4467 [2] Genode Commit 1996afa70ff430b01a9133d77ae8aa6925077952 https://github.com/genodelabs/genode/commit/1996afa70ff430b01a9133d77ae8aa6925077952 Regards -- Christian Helmuth Genode Labs https://www.genode-labs.com/ ? https://genode.org/ https://twitter.com/GenodeLabs ? https://genodians.org/ Genode Labs GmbH ? Amtsgericht Dresden ? HRB 28424 ? Sitz Dresden Gesch?ftsf?hrer: Dr.-Ing. Norman Feske, Christian Helmuth On Mon, Aug 08, 2022 at 18:14:44 CEST, Dixit Parkhiya wrote: > Hello Genodians, > > I'm trying to generate a genode image for ARM architecture. > to be precise imx8q_evk board > > Currently i follow article "Sculpt OS 21.10 on ARM" by Stefan Kalkowsi > https://genodians.org/skalk/2021-10-25-sculpt-arm > > For ARM toolchain and Packages i'm using "Docker Container" > http://genodians.org/skalk/2020-09-29-docker-devel > (I'm using genode-docker-devel for docker) > (this docker image should contains all packages and toolchain but still > need to install some packages) > > able to download all third party software > > tool/ports/prepare_port bash coreutils curl dde_linux dde_rump ...... > > but during depot directory facing this problem. > > tool/depot/create genodelabs/pkg/arm_v8a/sculpt-imx8q_evk > genodelabs/bin/arm_v8a/base-hw-imx8q_evk > CROSS_DEV_PREFIX=/usr/local/genode/tool/21.05/bin/genode-aarch64- > UPDATE_VERSIONS=1 -j8 > > *[Please have a look at attached Screenshot of Error message]* > > *"aclocal-1.15" is missing* > > while look into the system found that aclocal is part of GNU basically. > > And version of installed aclocal is 1.16 (newer than required) > > and also if I change aclocal(automake) version then it may not be compatible > > with current GNU and create problems in future. > > Thanks & Regards From stefan.thoeni at gapfruit.com Thu Aug 18 10:59:12 2022 From: stefan.thoeni at gapfruit.com (=?UTF-8?Q?Stefan_Th=c3=b6ni?=) Date: Thu, 18 Aug 2022 10:59:12 +0200 Subject: using a C library within a VFS plugin Message-ID: Dear Genodians I would like to use a C library (wolftpm) from within a VFS plugin. I have tried the following: - using with_libc which segfaulted - creating a pthread which didn't start (result EINVAL). I came to the conclusion that some prerequisite was missing from the environment. - calling with_libc from within a Genode::Thread, which yielded "Error: pthread_self() called from alien thread named 'tpm'" So what is the proper way to do this? Bests Stefan -- Freundliche Gr?sse Stefan Th?ni Senior Security Architect +41 79 824 11 90 gapfruit AG Baarerstrasse 135 6300 Zug https://gapfruit.com From christian.helmuth at genode-labs.com Thu Aug 18 11:33:56 2022 From: christian.helmuth at genode-labs.com (Christian Helmuth) Date: Thu, 18 Aug 2022 11:33:56 +0200 Subject: using a C library within a VFS plugin In-Reply-To: References: Message-ID: <20220818093356.GA2931@genode-labs.com> Hello Stefan, On Thu, Aug 18, 2022 at 10:59:12 CEST, Stefan Th?ni wrote: > I would like to use a C library (wolftpm) from within a VFS plugin. [...] > So what is the proper way to do this? A VFS plugin may only use very limited LibC functionality. In many aspects this constellation could be compared to the execution of an application program inside the kernel on Linux. So it's tricky to get right and stable. I suggest to look for other options if pthreads and/or blocking file-system operations come into play. Beside that you may look into a prior discussion on this list [1] and the FUSE genode-world issue [2] (esp. Norman's reply [3]) for inspiration. [1] https://lists.genode.org/pipermail/users/2021-November/007828.html [2] https://github.com/genodelabs/genode-world/issues/193 [3] https://github.com/genodelabs/genode-world/issues/193#issuecomment-985327679 Regards -- Christian Helmuth Genode Labs https://www.genode-labs.com/ ? https://genode.org/ https://twitter.com/GenodeLabs ? https://genodians.org/ Genode Labs GmbH ? Amtsgericht Dresden ? HRB 28424 ? Sitz Dresden Gesch?ftsf?hrer: Dr.-Ing. Norman Feske, Christian Helmuth From ttcoder at netcourrier.com Thu Aug 18 20:04:50 2022 From: ttcoder at netcourrier.com (ttcoder at netcourrier.com) Date: Thu, 18 Aug 2022 20:04:50 +0200 (CEST) Subject: using a C library within a VFS plugin In-Reply-To: <20220818093356.GA2931@genode-labs.com> Message-ID: > > So what is the proper way to do this? > A VFS plugin may only use very limited LibC functionality. In many > aspects this constellation could be compared to the execution of an > application program inside the kernel on Linux. So it's tricky to get > right and stable. I suggest to look for other options if pthreads > and/or blocking file-system operations come into play. > > Beside that you may look into a prior discussion on this list [1] and > the FUSE genode-world issue [2] (esp. Norman's reply [3]) for > inspiration. > > [1] https://lists.genode.org/pipermail/users/2021-November/007828.html > [2] https://github.com/genodelabs/genode-world/issues/193 > [3] https://github.com/genodelabs/genode-world/issues/193#issuecomment-985327 > 679 The wolftpm's page says their code is tuned for portability and has no external dependancy, so who knows, maybe could be feasible ? In case it is, thought I'd give additional inspiration about this: In my specific case, I intended to make the ntfs-3g driver available in Genode ; in the end I realized it basically depends on open()/read()/write()/close() and the like, so that was feasible. What does it look like? Well it's not available from my repo yet, but cnuke was kind enough to make a backup copy of my code on github, look in particular for file "directfs_libc.cc" here: https://github.com/genodelabs/genode-world/commit/b4c5ebea3ea8fa28243310854d594c3afb99a38f#diff-8b00c8a3ce98aa620c2d30ec61ce550d9a661a5bb75b3b4389aee077e04c74b9 I patched an existing Genode-labs file, added a big "extern C...." block (sans aliasing the function names for now). It's ugly as sin (I tend to go "field expedient" when in a major hurry), but might give an idea of how un-complicated the concept is, provided you have a back-end for your pseudo libc. On a more general note... Grep'ping through the genode and genode-world repos for re-implementations of strlen(), malloc(), or even open/read/close(), one finds quite a few hits (including the oldest one, from the original repo/demo folder! :-). Then there's my effort mentionned above. Then there will be (?) Stefan's new effort. That's a few instances of duplicated effort/wheel re-inventing. So it might make sense to consolidate all of this a little bit in the future, i.e. Genode could provide not only their full-fledged LibC based on FreeBSD libc, but also a "micro-libc" for projects that are content with a small subset of libc features including a malloc()/free() pair based on a simple allocator, and so on. Such a 'mini-C' variant would probably require a bit more effort from the user (like "you need to call this initializer at such point from your code, you need to provide a back-end for read/write", etc), but they would be happy to at least have such a trade-off available, instead of facing a rewrite of their libC-using code to make it Genode-API-using code :-). Food for thought. Cedric From christian.helmuth at genode-labs.com Fri Aug 19 08:54:29 2022 From: christian.helmuth at genode-labs.com (Christian Helmuth) Date: Fri, 19 Aug 2022 08:54:29 +0200 Subject: using a C library within a VFS plugin In-Reply-To: References: <20220818093356.GA2931@genode-labs.com> Message-ID: <20220819065429.GA3012@genode-labs.com> Hello, On Thu, Aug 18, 2022 at 20:04:50 CEST, ttcoder at netcourrier.com wrote: > The wolftpm's page says their code is tuned for portability and has > no external dependancy, so who knows, maybe could be feasible ? In > case it is, thought I'd give additional inspiration about this: Nudged by your comment about the wolftpm sources, I had myself a look into the GitHub repository [1]. After browsing the code I got the impression that the TPM hardware use case (--enable-devtpm) is completely independent of LibC if the backend is reimplemented for Genode. The SWTPM (--enable-swtpm) naturally requires LibC and a network stack to my understanding. Note, I did not check transitive dependencies resulting in wolfcrypt. [1] https://github.com/wolfSSL/wolfTPM.git Regards -- Christian Helmuth Genode Labs https://www.genode-labs.com/ ? https://genode.org/ https://twitter.com/GenodeLabs ? https://genodians.org/ Genode Labs GmbH ? Amtsgericht Dresden ? HRB 28424 ? Sitz Dresden Gesch?ftsf?hrer: Dr.-Ing. Norman Feske, Christian Helmuth From stefan.thoeni at gapfruit.com Fri Aug 19 16:05:26 2022 From: stefan.thoeni at gapfruit.com (=?UTF-8?Q?Stefan_Th=c3=b6ni?=) Date: Fri, 19 Aug 2022 16:05:26 +0200 Subject: using a C library within a VFS plugin In-Reply-To: <20220819065429.GA3012@genode-labs.com> References: <20220818093356.GA2931@genode-labs.com> <20220819065429.GA3012@genode-labs.com> Message-ID: Hello, > Nudged by your comment about the wolftpm sources, I had myself a look > into the GitHub repository [1]. After browsing the code I got the > impression that the TPM hardware use case (--enable-devtpm) is > completely independent of LibC if the backend is reimplemented for > Genode. The SWTPM (--enable-swtpm) naturally requires LibC and a > network stack to my understanding. Note, I did not check transitive > dependencies resulting in wolfcrypt. Thanks to you observations, we succeeded in making wolftpm run without the libc mostly by using code from the mini C demo and disabling some features of wolfssl we don't care about. So our proof of concept is now able to get some random from the TPM using wolftpm running inside a VFS plugin. Have a nice weekend Stefan -- Freundliche Gr?sse Stefan Th?ni Senior Security Architect +41 79 824 11 90 gapfruit AG Baarerstrasse 135 6300 Zug https://gapfruit.com From samuraileumas at yahoo.com Fri Aug 26 05:52:19 2022 From: samuraileumas at yahoo.com (Sam Crow) Date: Thu, 25 Aug 2022 22:52:19 -0500 Subject: Missing pc_usb_host_drv and usb_hid_drv References: <0l2ed5bs6edn4dhe2fb71f1k.1661485939914.ref@email.lge.com> Message-ID: <0l2ed5bs6edn4dhe2fb71f1k.1661485939914@email.lge.com> Also posted at?https://github.com/genodelabs/genode/issues/4593I'm trying out the Nova microhypervisor with the line:make run/demo KERNEL=nova BOARD=pcand I get the error:Error: incomplete or missing recipe (genodelabs/src/pc_usb_host_drv genodelabs/src/usb_hid_drv)I'm following the Genode Foundations 21.05 pdf and tried the typing in the suggested help message from the error handler:update depot: /home/samuraicrow/Documents/genode/tool/depot/create genodelabs/bin/x86_64/base-nova genodelabs/bin/x86_64/demo genodelabs/bin/x86_64/global_keys_handler genodelabs/bin/x86_64/init genodelabs/bin/x86_64/nit_focus genodelabs/bin/x86_64/nitpicker genodelabs/bin/x86_64/report_rom genodelabs/bin/x86_64/rom_filter genodelabs/pkg/x86_64/drivers_interactive-pc CROSS_DEV_PREFIX=/usr/local/genode/tool/21.05/bin/genode-x86- DEPOT_DIR=/home/samuraicrow/Documents/genode/depot UPDATE_VERSIONS=1 FORCE=1 REBUILD= -j8?and it executes but doesn't help.? When trying again it yields the same error.I'm trying to run this on Manjaro Linux x86_64 XFCE.? My hardware is an 8 year old gaming rig with a 3rd gen i7 CPU and 32 GB of DDR3.? It has UEFI firmware and the USB3 is working under Linux.Are there any suggestions of how to get around this? -------------- next part -------------- An HTML attachment was scrubbed... URL: From christian.helmuth at genode-labs.com Fri Aug 26 11:42:03 2022 From: christian.helmuth at genode-labs.com (Christian Helmuth) Date: Fri, 26 Aug 2022 11:42:03 +0200 Subject: Missing pc_usb_host_drv and usb_hid_drv In-Reply-To: <0l2ed5bs6edn4dhe2fb71f1k.1661485939914@email.lge.com> References: <0l2ed5bs6edn4dhe2fb71f1k.1661485939914.ref@email.lge.com> <0l2ed5bs6edn4dhe2fb71f1k.1661485939914@email.lge.com> Message-ID: <20220826094203.GA3043@genode-labs.com> Hello Sam, for the subscribers in this list I post my reply in Issue #4593 [1] in the following. It seems your build-directory configuration and instructions used do not fit the source-code version of Genode. Could you please try to execute the following commands additionally to the instructions at https://genode.org/documentation/genode-foundations/21.05/getting_started/Obtaining_the_source_code.html and retry running the demo on NOVA? cd git checkout -b 21.05 The background is that Genode's Git master version evolved much since 21.05 and build/configuration requirements changed too. If my hint above works you, we will amend the instruction in Genode Foundations accordingly. In the meantime the manual was updated with the instructions above [2]. Sam, I'd appreciate to hear from you if these instructions are sufficient to run the demo in your setup. Let's keep further discussiosn on this list. [1] https://github.com/genodelabs/genode/issues/4593 [2] https://github.com/nfeske/genode-manual/pull/9 Best Regards -- Christian Helmuth Genode Labs https://www.genode-labs.com/ ? https://genode.org/ https://twitter.com/GenodeLabs ? https://genodians.org/ Genode Labs GmbH ? Amtsgericht Dresden ? HRB 28424 ? Sitz Dresden Gesch?ftsf?hrer: Dr.-Ing. Norman Feske, Christian Helmuth From christian.helmuth at genode-labs.com Fri Aug 26 12:04:14 2022 From: christian.helmuth at genode-labs.com (Christian Helmuth) Date: Fri, 26 Aug 2022 12:04:14 +0200 Subject: Missing pc_usb_host_drv and usb_hid_drv In-Reply-To: <20220826094203.GA3043@genode-labs.com> References: <0l2ed5bs6edn4dhe2fb71f1k.1661485939914.ref@email.lge.com> <0l2ed5bs6edn4dhe2fb71f1k.1661485939914@email.lge.com> <20220826094203.GA3043@genode-labs.com> Message-ID: <20220826100414.GB3043@genode-labs.com> Unfortunately, I made a mistake while transferring the command line below from my tests to my reply. On Fri, Aug 26, 2022 at 11:42:03 CEST, Christian Helmuth wrote: > git checkout -b 21.05 This must read 'git checkout -b 21.05 21.05'. Otherwise, the new branch while (again) refer to origin/master. Greets -- Christian Helmuth Genode Labs https://www.genode-labs.com/ ? https://genode.org/ https://twitter.com/GenodeLabs ? https://genodians.org/ Genode Labs GmbH ? Amtsgericht Dresden ? HRB 28424 ? Sitz Dresden Gesch?ftsf?hrer: Dr.-Ing. Norman Feske, Christian Helmuth From samuraileumas at yahoo.com Fri Aug 26 17:08:31 2022 From: samuraileumas at yahoo.com (Samuel Crow) Date: Fri, 26 Aug 2022 15:08:31 +0000 (UTC) Subject: Missing pc_usb_host_drv and usb_hid_drv In-Reply-To: <20220826100414.GB3043@genode-labs.com> References: <0l2ed5bs6edn4dhe2fb71f1k.1661485939914.ref@email.lge.com> <0l2ed5bs6edn4dhe2fb71f1k.1661485939914@email.lge.com> <20220826094203.GA3043@genode-labs.com> <20220826100414.GB3043@genode-labs.com> Message-ID: <884846432.197193.1661526511532@mail.yahoo.com> Thanks, Mr. Helmuth, That partially solved it.? Now usb_hid_drv still does not build due to a missing recipe but the host driver does.? When I switched branches, I deleted the build directory and started over. I'm almost up and running. From norman.feske at genode-labs.com Wed Aug 31 14:32:03 2022 From: norman.feske at genode-labs.com (Norman Feske) Date: Wed, 31 Aug 2022 14:32:03 +0200 Subject: Announcement: Genode OS Framework version 22.08 released Message-ID: It's my pleasure to announce today's release of Genode version 22.08. The new version puts the spotlight on the emerging phone variant of Sculpt OS, which is the culmination of the intensive work towards our vision of a Genode-based smart phone over the past 18 months. For the first time, we are able to browse https://genodians.org via a mobile-data connection with Genode on the PinePhone! Calling me excited would be a gross understatement. With the growing sophistication of Genode systems like this comes the desire for system-wide performance analysis for taking informed optimization steps. This is where the new trace recorder enters the picture, which allows for the gathering of detailed behavioral traces of components and their interplay. As the first success story of the new tooling, the release profoundly improves Genode's network performance. It goes without saying that the new version touches many more topics. Here is a quick summary: - Emerging phone variant of Sculpt OS - Modem driver with support for telephony and mobile data - Drivers for USB, Mali-400 GPU, SD-card ported from Linux - Custom touch-friendly administrative user interface - Chromium-based Morph web browser - Enhanced tooling for system tracing - Improved network performance - USB networking via Ethernet control model - Optimizations of the Linux-device-driver environment - Qt5 updated to version 5.15.2 - Support for USB smart cards via PKCS#11 - VirtIO block, network, input, and display drivers for RISC-V - Improved UEFI support For the whole story, please enjoy the detailed release documentation: https://genode.org/documentation/release-notes/22.08 Cheers Norman -- Dr.-Ing. Norman Feske Genode Labs https://www.genode-labs.com ? https://genode.org Genode Labs GmbH ? Amtsgericht Dresden ? HRB 28424 ? Sitz Dresden Gesch?ftsf?hrer: Dr.-Ing. Norman Feske, Christian Helmuth