**** BEGIN LOGGING AT Mon Apr 20 02:59:57 2020 Apr 20 07:46:43 Hi, I'm trying to setup my yocto image recipe to achieve openssh keys generation at build time but still without luck Apr 20 07:49:05 I enabled read-only-rootfs and also I added openssh-ssh/-sshd packages Apr 20 07:49:22 but still on startup these keys are generated Apr 20 07:49:36 How to change this ? Apr 20 07:51:11 rokm, sure you're putting your pre-generated keys in the right place at rootfs constructiontime ? Apr 20 07:51:33 hmm Apr 20 07:51:54 nope Apr 20 07:52:20 I thought that they will be generated on build time Apr 20 07:52:51 let's say automatically Apr 20 07:55:46 SSHD_OPTS points to sshd_config_readonly Apr 20 07:55:54 which seems to be OK Apr 20 07:57:02 in this config at the end there is a path to /var/run/ssh Apr 20 07:57:38 and these keys are generated to this path on first boot Apr 20 07:57:56 I expect to have them already on rootfs during first boot Apr 20 07:58:09 rokm: I don't think there's any support for that Apr 20 07:58:10 so something is missing in recipes Apr 20 07:58:21 it's not meant to work like that Apr 20 07:59:27 does it mean that I should generate these keys on HOST and copy them to rootfs ? Apr 20 08:01:22 rokm: I guess you could add a bbappend for openssh that 1) ship a pregenerated key and 2) modify the openssh conf to use that key Apr 20 08:06:53 ok thanks Apr 20 10:00:20 New news from stackoverflow: How to fix:- libmxnet.so: cannot open shared object file: No such file or directory Apr 20 10:14:11 Hey. Is there a way to get the binary file path (and maybe it's name) by giving the package name? For instance `bitbake -z openssh` will give `/usr/bin/ssh` (*for instance*, yeh? that command does not exist if you did not understand) Apr 20 10:17:55 nacknick: https://www.yoctoproject.org/docs/2.4.1/ref-manual/ref-manual.html#viewing-package-information-with-oe-pkgdata-util Apr 20 10:51:02 nameclash: Sorry. I didn't understand from your link how to do it Apr 20 10:52:20 nacknick: oe-pkgdata-util list-pkg-files openssh Apr 20 10:53:10 that will give you the list of files that the recipe would populate Apr 20 10:54:18 of course, you would then have to find the binary within that list but that should be easy Apr 20 11:02:34 if you're looking for a bulletproof "this is one here is the main binary" solution, I don't think that's possible with yocto tools, since it would need to have knowledge of what the recipe in question's build project definition (e.g. CMakeLists.txt, Makefile, foo.pro) defines as its "main binary" to be Apr 20 11:03:12 nameclash: thanks!! Apr 20 11:04:39 right, 'main binary' makes no real sense, but for 'what is in this package' oe-pkgdata-util is the answer Apr 20 13:21:36 Hi, if i have a site.conf.example in my templateconf folder should it be pull into my build/conf folder when i source oe-init-build-env? Apr 20 13:36:24 elcfd: I think that is only for local.conf and bblayers.conf Apr 20 13:40:50 ok - so i can make a script which will do the source and then cp the site.conf in. thanks Apr 20 13:40:55 you don't need to do that Apr 20 13:41:12 site.conf is for site-wide settings. so why would the user edit them? Apr 20 13:41:18 just put it in meta-mylayer/conf/ Apr 20 13:42:02 elcfd: ^ Apr 20 13:42:10 from recipe-sysroot-native/usr/include/python3.5m/pyport.h: Apr 20 13:42:18 #if LONG_BIT != 8 * SIZEOF_LONG Apr 20 13:42:38 #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)." Apr 20 13:42:43 #endif Apr 20 13:43:13 rburotn: thanks - i didnt understand the scope of site.conf! Apr 20 13:43:28 anyone know how I managed to steer myself into this off my (mostly) vanilla poky/thud build? Apr 20 13:43:48 nameclash: can you replicate with actual vanilla poky? Apr 20 13:44:18 I can do that Apr 20 13:46:17 how would you cope with having different site.conf requirements on different systems? Apr 20 13:46:26 not having something in site.conf Apr 20 13:47:19 its just another conf file that is loaded, if the use needs to pick then maybe just put it in local.conf and make the user pick Apr 20 13:48:13 ok - is there an order of precedence or would the user need to edit the files if they wanted to change a setting? Apr 20 13:48:46 https://github.com/openembedded/openembedded-core/blob/master/meta/conf/bitbake.conf#L748 Apr 20 13:53:09 understood thanks for the help ^rburton Apr 20 13:54:59 Hi do you have suggestions for displays? I only have experience with 'baremetal' drivers... Apr 20 13:57:36 I read that one could use framebuffer on displays but i think i would need a performant GUI Toolkit on top of this ... Apr 20 13:58:02 My idea was to render the menu and stuff from a markup language during device startup Apr 20 14:04:21 Hm i just found microwindows / nano-x ... Apr 20 14:06:13 PatrickE: that is very old Apr 20 14:06:39 PatrickE: see Qt or wxWidgets Apr 20 14:11:57 mckoan thanks. I dont like the licensing model from Qt. But Qt Embedded looks great Apr 20 14:31:09 New news from stackoverflow: Docker build fail on "OCI runtime create failed" Apr 20 15:14:25 Hello. I'm trying to create a simple recipe that download a file from my server and copy it to the `/lib` directory of the final image. What the structure of the recipe should be? (do_...{ wget }, do_...{copy to /lib})??? Apr 20 15:22:08 nacknick: SRC_URI to fetch Apr 20 15:22:11 do_install to install Apr 20 15:25:49 rburton: usually when there is no compilation involved I suggest to inherit bin_package. Does this make sense? Apr 20 15:26:22 bin_package has defined semantics Apr 20 15:27:01 but yeah if SRC_URI is a single tarball that contains the files then using bin_package is a convenient shortcut Apr 20 15:27:20 contains the file *in the paths that you want them on the target* Apr 20 15:27:46 typically you don't want that as $libdir might be wrong Apr 20 15:35:26 rburton: Thanks. But if I have to get the remote file using POST request (because I need to send a configuration settings for getting the correct file) - How should I do it? Apr 20 15:35:46 write a do_fetch yourself then Apr 20 15:43:01 rburton: OK. Is there a reason why Yocto does not recognize "curl" command? I wrote `do_fetch() {curl ...}` and get "curl: not found". curl is installed on the building machine Apr 20 15:43:21 we filter the host commands to avoid host contaimination Apr 20 15:43:25 use wget Apr 20 15:43:58 or depend on curl-native for the do_fetch task, or add curl to HOSTTOOLS if you really need curl Apr 20 15:50:25 Hi all. I need https://github.com/pyca/cryptography in Yocto. I've looked through the usual suspect recipes and have not found it. Is there a recipe for this package available in Yocto? Apr 20 15:50:52 rburton: I'm not sure that it is possible to do the same with wget. I need to convert "curl -F config={...} -F data=@" (need to send POST of configuration and binary file content) Apr 20 15:51:15 wget can do post just fine Apr 20 15:51:35 Anyway, if I want to use python script instead, can I copy it to the recipe and run it somehow? Apr 20 15:52:12 yes exactly like you'd run a shell script Apr 20 15:52:20 Thanks Apr 20 15:53:08 curl still won't be on $path though Apr 20 15:53:17 BTW, I just remembered that I use curl inside do_install_append today and it worked... Why? Apr 20 15:57:24 because you depended on curl-native maybe? Apr 20 15:59:35 mabnhdev: isn't that what python3-cryptography contains? Apr 20 16:39:34 smurray I only see a ptest script in there. None of the pyca functionality. Apr 20 16:44:31 mabnhdev: in the meta-python recipe, you mean? It's using the pypi bbclass, that does the heavy lifting Apr 20 17:01:03 smurray You've exceeded my understanding of how Yocto assembles python with that last question =$ . I was looking at the python-cryptography recipe in layers/meta-openembedded/meta-python/recipes-devtools/python/python-cryptography. Apr 20 17:02:18 mabnhdev: the recipe is meta-python/recipes-devtools/python/python3-cryptography_2.8.bb, that directory is just extra files like the ptest script you see Apr 20 17:03:02 mabnhdev: try adding python3-cryptography to your image and building, I believe you'll get the module you're looking for Apr 20 17:17:09 Ah. I think I see. It's pulling from cryptography.io. I was looking for something being pulled from pyca. But I see that cryptography.io supplies the pyca/cryptopgraphy package. Thanks. Apr 20 17:17:57 mabnhdev: no problem, good luck Apr 20 18:02:23 rburton: I reproduced the LONG_BIT build error using a small c++ application that does nothing but #include Apr 20 18:02:55 it builds fine when built for target, but as soon as I add: Apr 20 18:02:57 inherit cmake python3native Apr 20 18:03:13 BBCLASSEXTEND = " native nativesdk" Apr 20 18:03:23 it produces the mentioned build error... Apr 20 18:07:35 here's the do_compile log: https://pastebin.com/LyZ2WNwd Apr 20 18:09:41 and here's the recipe: https://pastebin.com/ePuKggCV Apr 20 18:12:19 as said, it's vanilla thud, no custom config at all (apart from BB_NUMBER_THREADS and PARALLEL_MAKE) Apr 20 18:12:59 Hi, wondering if anyone has experience using plymouth to display a splash screen. I have been struggling all day to see some text output in the splash, but all I can see are square boxes which seem to indicate some type of problem with the fonts in the tty1 terminal plymouth is using. I am using Poky warrior with systemd and I am wondering what could I be missing. Apr 20 19:59:08 ok, problem solved. I had to add -march=i686 to BUILD_FLAGS when building for native Apr 20 20:21:30 hi, ive been looking at the bins in bitbake and noticed one called bitdoc, but it seems broken. i have been working on getting it working and up to date which i have done for the most part, is this something that is still used in previous versions, or desired for use now, or should it be removed? Apr 20 21:43:14 anyone has a tip on how to organize kernel builds with different configs for different images (kernel with/without initramfs depending on images). Is multiconfig the way to go? Apr 20 22:00:34 Question: For a software developer with no experience with embedded systems, what's the best way to learn yocto? Apr 20 22:28:56 vespasian: "learn yocto" is very wide, I think (years) of experience is the best way to learn, so just start using it for whatever small projects you find useful and incrementally improve from there Apr 20 22:30:25 e.g. building own custom images for e.g. rpi with some extra recipes for projects you like, is well documented, "easy" and inexpensive way to start Apr 20 22:41:36 JaMa: thanks; I need to use it to build Automotive Grade Linux on a Qualcomm ADAS board and I'm under a bit of time pressure. The learning curve is a little steep for someone with no embedded experience, so I was hoping to find a way to flatten the learning curve a little. **** ENDING LOGGING AT Tue Apr 21 02:59:59 2020