**** BEGIN LOGGING AT Tue Jan 03 03:00:01 2017 Jan 03 09:27:46 Hi, I'm using poky and package "kernel-modules" does install the kernel into /boot - but I don't want that. I just want its modules in /lib/modules but no kernel-image in /boot. How can I stop that from happening? Jan 03 10:42:47 Hi, I want to send a patch for image.bbclass, which mailing list should I use ? Jan 03 10:49:58 the README says openembedded-core@lists.openembedded.org Jan 03 10:50:14 Thanks Jan 03 11:18:15 hello, does anyone has any experience with Intel Joule? As far as I understand it does not use Yocto like Edison modules did. I would like to be corrected if I am wrong. Jan 03 11:19:28 as far as I can see it uses Ostro linux that uses Yocto project tools Jan 03 11:20:17 but I am not sure how the whole infrastructure compares to usual Yocto development, like for example Freescale imx6 platforms Jan 03 11:25:54 hello everybody, is there any way to patch the /etc/passwd file generated and included in the pocky distro ? Jan 03 11:26:04 I want to add a new user by default Jan 03 11:26:48 eduardas_m: I believe there is some support for the Joule via meta-intel Jan 03 11:27:15 I've definitely seen patches for it Jan 03 11:32:03 CTtpollard, so I assume one can build a Joule image using just Yocto master, without using any Ostro-specific stuff? Jan 03 11:36:19 how can I add a custom user to the pocky distro ? I'd like to log with another username Jan 03 11:38:28 pedr0_: http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#ref-classes-extrausers Jan 03 11:39:26 cheers Jan 03 11:49:27 I am getting an awful long error message when compiling my image - I've added a recipe to it to create a new user, the beginning of the error is: "rcom-support not found in the base feeds" Jan 03 11:49:55 what's that ? Jan 03 11:52:13 rcom-support is the name of my package Jan 03 12:51:41 Hi, I'm using poky and package "kernel-modules" does install the kernel into /boot - but I don't want that. I just want its modules in /lib/modules but no kernel-image in /boot. How can I stop that from happening? Jan 03 13:01:35 Hi, I am using http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#ref-classes-extrausers to add an extra user to my pocky Jan 03 13:02:10 do I need to create a new image to do that ? Jan 03 13:02:30 I have tried to create a new recipe and to include it in the IMAGE_INSTALL_append but it does not work Jan 03 13:02:39 I just want to add an user to my image Jan 03 13:02:48 do I need to create a new image ? Jan 03 13:06:55 extrausers is image-level user customisation, if you want to add a user from a recipe you need the useradd class Jan 03 13:07:57 I am sorry, I am lost Jan 03 13:08:34 I have been able to create new recipes to the core-image-sato and include them in the generated rootfs, but I do not understand what is needed now Jan 03 13:10:11 pedr0_: if you want to add a user to an image extrausers is what you need, how do you use it ? what do you add and where ? Jan 03 13:11:43 I have created my own layer, a recipes called support does : Jan 03 13:11:48 inherit extrausers Jan 03 13:11:52 EXTRA_USERS_PARAMS = "useradd test -P test" Jan 03 13:12:04 then I include the recipe name in the IMAGE_INSTALL_append Jan 03 13:13:54 kalpu: have a look at kernel.bbclass and in case override do_install() in your kernel recipe Jan 03 13:14:46 when I compile I get the error "ERROR: support not found in the base feeds " Jan 03 13:14:57 I am utterly lost Jan 03 13:15:39 extrausers hooks into the image construction logic and must be used either within an image recipe or in the global configuration. If you want to add users as part of a package you should use the useradd class instead Jan 03 13:16:01 http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#ref-classes-useradd Jan 03 13:17:11 what's the easiest way among the two ? Jan 03 13:20:46 using a recipe just to add a user is a bit unclean, useradd is usually used to add accounts which support the software in a recipe. extrausers is designed for your usecase but requires either a) a custom image or b) modifying a conf file (an example of syntax for that is in the meta/classes/extrausers.bbclass file) Jan 03 13:24:48 is there a good tutorial about the creation of a custom image ? Jan 03 13:25:06 eventually I will need to do that therefore I do better go that way Jan 03 13:28:44 there's a brief section in the dev manual: http://www.yoctoproject.org/docs/2.2/dev-manual/dev-manual.html#usingpoky-extend-customimage-custombb Jan 03 13:29:12 I am following the example in /meta-skeleton/recipes-skeleton/useradd/useradd-example.bb and I am far from understanding it though Jan 03 13:33:16 that's an example of the full capabilities of the useradd class, rather than being a tutorial-like example Jan 03 13:34:29 the development manual has a section on creating recipes and their syntax: http://www.yoctoproject.org/docs/2.2/dev-manual/dev-manual.html#new-recipe-writing-a-new-recipe Jan 03 13:36:54 it may be that our documentation isn't especially beginner friendly, there are several courses and books you might be better to start with Jan 03 13:37:11 a quick google tells me that free electrons have the materials for their 3-day course freely available online: http://free-electrons.com/docs/ Jan 03 13:38:19 it hasn't been that difficult to create my own image Jan 03 13:39:09 I copied the ../meta/recipes-sato/images/core-image-sato.bb inside meta-mylayer/../images/myimage.bb Jan 03 13:39:26 and bitbake did not complain so far Jan 03 13:41:17 yes I used to work with buildroot but I am completely new to OE, it is tough to learn at the beginning to me, especially the recipes stuff - or maybe I am terribly lazy Jan 03 13:42:01 how do I use extrauser now I have got a custom image ? Jan 03 13:44:09 pedr0_: OE is difficult to learn, but it is extremely powerful. Definitely read the bitbake manual and the mega manual on www.yoctoproject.org/docs if you haven't already. Jan 03 13:45:21 pedr0_: heh. I haven't even used the extrausers class yet. I'll have to read up on that. I've only used useradd. **** BEGIN LOGGING AT Tue Jan 03 13:47:11 2017 Jan 03 13:52:07 in my image recipe Jan 03 13:52:28 I have added Jan 03 13:52:37 inherit extrausers Jan 03 13:52:41 EXTRA_USERS_PARAMS = "useradd -p tester tester;" Jan 03 13:52:44 that was it Jan 03 13:53:15 I can't login with it yet as I do not understand how to set the pwd, but the user shows up in the /etc/passwd file ! Uhhhuh! Jan 03 13:57:57 I do not get it : Jan 03 13:58:09 EXTRA_USERS_PARAMS = "useradd -p 'tester' tester;" Jan 03 13:58:18 I can't login with passwd 'tester' Jan 03 13:58:37 any thoughts ? Jan 03 14:54:11 is it possible to make my recipe to create a folder in the root fs ? such as /var/log/mystuff ? Jan 03 14:59:29 do_install_append() { install -m 0755 -d ${D}/var/log/mystuff Jan 03 14:59:29 } Jan 03 15:00:35 pedr0_: what abelloni said + you need to add the path to FILES_${PN} IIRC Jan 03 15:12:04 install -d ${D}/var/log/mystuff in do_install() did not work Jan 03 15:12:26 what's FILES_${PN} ? Where do I need to add what ? :-) Jan 03 15:15:17 http://www.yoctoproject.org/docs/2.2/ref-manual/ref-manual.html#var-FILES Jan 03 15:17:56 abelloni: your recipe is a package recipe or an image reciipe ? Jan 03 15:18:11 I need to add a folder though, not a file, would it work anyway ? Jan 03 15:20:02 is do_install() ok or I MUST use do_install_append() ? Jan 03 15:20:24 pedr0_: depends... ususally you want the _append version in your case Jan 03 15:20:35 but are you using an image recipe or a package recipe ? Jan 03 15:21:02 this will be a package recipe, I could use an image recipe though as I have created my own image Jan 03 15:26:08 is there any way I could use my image recipe file to create a folder under /var/log/ ? Jan 03 15:26:33 pedr0_: i think you can use ROOTFS_POSTPROCESS_COMMAND Jan 03 15:27:08 is there a working example somewhere ? Jan 03 15:27:25 isn't using ROOTFS_POSTPROCESS_COMMAND ugly? :) Jan 03 15:28:05 kind of :) Jan 03 15:28:51 ... ! Jan 03 15:28:54 :-( Jan 03 15:29:21 pedr0_: you haven't said how install "didn't work"? if /var/log/mystuff is required by the software you're packaging it should be done in the same recipe. You need to add the directory to the FILES_${PN} otherwise it won't be included in the resulting package. Jan 03 15:29:23 I just need to create a folder under /var/log/ - I could have do that in my image recipe or package recipe Jan 03 15:29:24 ? Jan 03 15:30:16 FILES_pkg = "/var/log/pkg" was added in the package recipe Jan 03 15:30:51 but it did not result in the folder being created in the rootfs, but not errors were raised Jan 03 15:35:03 can you paste your exact code somewhere? it's hard to tell what's a typo from trying to obfuscate recipe names and what's a syntax error Jan 03 15:36:21 the FILES_pkg line above would override any existing FILES_pkg setting, by use of the assignment operator, resulting in the package *only* containing /var/log/pkg Jan 03 15:37:06 typically you'd have do_install_append () { install -d ${D}/var/log/foo } FILES_${PN} += "/var/log/foo" Jan 03 15:38:46 pedr0_: by default, /var/log is symlinked to a ramdisk. installing files into that path is unlikely to go well Jan 03 15:38:58 use volatiles or tmpfiles.d to create that path as needed, instead Jan 03 15:39:10 see various recipes in oe-core for examples Jan 03 15:39:49 oks,thanks - yes /var/log is s symlink to the /voltatile/.. Jan 03 15:40:31 I am resorting using another folder Jan 03 15:40:41 as my files will need to be permanent Jan 03 15:41:00 thanks a lot guys, I know it is frustraing to answer to new "starters" :-) Jan 03 15:41:30 moving to /usr would be best, or i believe i saw a patch seires on a list to add a feature for users to put the directory in a non-volatile path Jan 03 15:41:40 check the oe-core list for that, if interested Jan 03 15:41:46 don't think 'ts been merged yet Jan 03 15:43:31 kergoth: i gotta ask, your nick is chosen after the famous branch or the other way around? :) Jan 03 15:43:43 neither. Jan 03 15:44:40 i've been kergoth since years before the project started Jan 03 15:45:24 I am using ${prefix} and I get : QA Issue: support: Files/directories were installed but not shipped /usr/support [installed-vs-shipped] Jan 03 15:45:42 heh, i have a character in an MMO who has the same name as a popular addon. it turns out the addon is named after the character. Jan 03 15:45:47 that's not a standard path, so of coruse it's not packaged Jan 03 15:45:58 FILES_${PN} += "${prefix}/support" Jan 03 15:46:00 install -d ${D}${localstatedir}/support Jan 03 15:52:07 Should configuration fragments (.cfg) appear on parsing environment ? Jan 03 15:52:22 I want to figure out if my .cfg is applying Jan 03 15:52:45 How to overwrite function kernel_do_install() from /meta/classes/kernel.bbclass in a meta-myown layer? Jan 03 15:53:35 kalpu: you can't append a class, only individual recipes. there are hacks to do otherwise, but you'd have to inherit the class globally and then check whether hte current recipe is a kernel and operate at that point Jan 03 15:53:55 aV_V: no, they're generally applied at configure time. but keep in mind most kernel recipes don't support fragments at all. anything linux-yocto based does, but otherwise it's case-by-case Jan 03 15:56:02 kergoth: ? ... ok - sounds complicated and ugly. What would you do to the following problem: I'm using poky and package "kernel-modules" does install the kernel into /boot - but I don't want that. I just want its modules in /lib/modules but no kernel-image in /boot. Jan 03 15:56:07 before holidays it was working, now it doesnt, I dont know why Jan 03 15:56:15 YPTM: Ready-Access Number: 8007302996 Access Code: 2705751 Jan 03 15:56:21 YPTM: Stephen Joined Jan 03 15:56:42 kalpu: set RDEPENDS_kernel-base = "". problem solved Jan 03 15:56:49 :) Jan 03 15:57:01 :-D I'll try that! Jan 03 15:57:11 it's a common thing to want to do, so there's an existing mechanism for it. it's kernel-base that's automatically installed, and by default it depends on kernel-image Jan 03 15:57:19 by setting to the empty string, kernel-image wont' be installed Jan 03 15:57:59 see lines 487 through 489 of kernel.bbclass Jan 03 15:59:30 YPTM: Morning Saul Joined Jan 03 16:00:14 YPTM: Richard joined Jan 03 16:00:35 kergoth: According to the comment, this needs to get into a machine config and not in one of my extra files which generate different root-images? Jan 03 16:00:53 kalpu: it has to be set for the kernel. setting it in an image won't affect an entirely different recipe Jan 03 16:00:59 YPTM: Joshua joined Jan 03 16:01:03 so it needs to be either in the kernel itself or in the config metadata Jan 03 16:01:06 YPTM: Stephano joined Jan 03 16:01:33 machine is best, though, since only the machine knows whether the kernel is needed int her ootfs or not given how that hardware boots Jan 03 16:02:23 got it, thanks! Jan 03 16:02:28 np Jan 03 16:10:37 I made a change on my cfg and when I'm rebuilding I notice that the kernel is rebuilding too, so I guess that my cfg is applying. But when I run it and check the modules, there should be one that is built in but it isn't there Jan 03 16:15:42 YPTM: is over Jan 03 16:17:08 guy, by any chance, is it possible to change the login command used by SSH ? Jan 03 16:35:30 heck if i know, but sshd is pretty configurable, check its docs? Jan 03 16:51:15 sjolley: yes, you can specify it in the authorized_keys file on the server side, see the sshd man page Jan 03 16:51:39 /sjolley/pedr0_ (sorry) Jan 03 17:07:16 amsuing reading Jan 03 17:07:17 https://ecf.dcd.uscourts.gov/cgi-bin/show_public_doc?2016cr0215-5 Jan 03 17:09:13 Epic: http://www.politico.com/story/2017/01/house-ethics-panel-jack-abramoff-233126 Jan 03 21:04:54 Hi guys, what is the best way to debug "[package name] is not installable" during do_rootfs? Jan 03 21:05:24 It probably has an unmet dependency or may be empty (its a new recipe I just wrote) Jan 03 21:42:48 damnit, why is objcopy writing an empty file when i try to write the contents of .gnu_debuglink.. Jan 03 23:18:24 Hi, is it possible to somehow override poky classes like meta/classes/kernel-fitimage.bbclass in a meta-layer ? Jan 03 23:20:53 yes, just put your layer earlier in BBLAYERS Jan 03 23:21:16 cool Jan 03 23:34:54 kergoth: doesn't seem to work. I just copied the file meta/classes/kernel-fitimage.bbclass to meta-mylayer/meta/classes/kernel-fitimage.bbclass and adapted BBLAYERS. Any ideas? Jan 03 23:37:18 kergoth: Ah, it seems I need to get lost of the "meta" dir and use meta-mylayer/classes/kernel-fitimage.bbclass Jan 04 00:08:35 I'm getting random do_populate_sysroot_setscene failures when using a sstate-mirror Jan 04 00:10:07 Does the SSTATE_MIRROR with yocto work reliably? Jan 04 00:11:09 Then when it can't set the scene, it builds the package itself, which if fine and the build completes but bitbake returns an ERROR which seems a bit over the top Jan 04 00:11:30 Since the build has completed successfully **** ENDING LOGGING AT Wed Jan 04 03:00:01 2017