**** BEGIN LOGGING AT Wed Apr 01 02:59:58 2015 Apr 01 03:01:45 anyone getting weird problem of /sbin/init missing Apr 01 03:02:03 and kernel panic Apr 01 03:18:33 depends what you are doing Apr 01 08:06:26 morning all Apr 01 08:08:04 anyone getting weird problem of /sbin/init missing? Apr 01 08:15:15 <_4urele_> hi everyone! Apr 01 08:17:07 <_4urele_> I'm trying to use python-pygobject package, but while trying to use a first script example I'm getting an error : 'no module named gi' all examples are made with this 'gi' module... does someone knows what is missing? Apr 01 09:43:29 hmm, is there a standard way to make a systemd image to start up a dhcp client for interfaces? Apr 01 10:17:07 `systemctl enable udhcpc@interface_name` is supposed to work... Apr 01 10:23:56 Hey Apr 01 10:55:51 bluelightning: ping Apr 01 11:19:12 Hello! I've got an image( say, fsl-image-core) on which I try to add a new package. I created the required .bb and when I run bitbake fsl-image-core the image does get indeed parsed Apr 01 11:19:19 but there's nothing in my uImage Apr 01 11:19:23 any clue why that is happening? Apr 01 11:29:45 hmm, which package provides the udhcpc systemd integration? Apr 01 11:29:59 andrei__: which package would you expect to add things to your uImage? Apr 01 11:30:39 since a lot of ML and other places note the `systemctl enable udhcpc@interface` way of enabling ethernet networking Apr 01 11:31:02 rink_ : I'm trying to add a package that gets and builds unixodbc on my yocto distro Apr 01 11:31:34 I think you mean you want to get it added to the rootfs ? Apr 01 11:32:21 yeaj Apr 01 11:32:30 to do that, you should add: IMAGE_INSTALL_append += " whatever" Apr 01 11:32:38 in the .bb ? Apr 01 11:32:49 the .bb that you use to build your image Apr 01 11:32:55 my folder hierarchy is something like this Apr 01 11:33:05 I have two folders, say A and B Apr 01 11:33:09 each containing A.bb and B.bb Apr 01 11:33:20 A.bb in A, B.bb in B Apr 01 11:33:21 in fact Apr 01 11:33:35 in the parent dir, I have a layer.conf Apr 01 11:33:41 which has BBFILES += "${LAYERDIR}/recipes*/*/*.bb ${LAYERDIR}/recipes*/*/*.bbappend" Apr 01 11:33:58 and how do you bitbak the image itself ? Apr 01 11:34:08 actually this is is it Apr 01 11:34:08 # We have a conf and classes directory, add to BBPATH BBPATH .= ":${LAYERDIR}" # We have recipes-* directories, add to BBFILES #BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ # ${LAYERDIR}/recipes-*/*/*.bbappend" BBFILES += "${LAYERDIR}/recipes*/*/*.bb ${LAYERDIR}/recipes*/*/*.bbappend" BBFILE_COLLECTIONS += "avaya" BBFILE_PATTERN_avaya = "^${LAYERDIR}/" BBFILE_PRIORITY_avaya = "6" Apr 01 11:34:16 meh, wouldn't paste properly Apr 01 11:34:31 the meta-something in which these receipes are Apr 01 11:34:47 is connected to the meta-fsl-image (in which the image I build is) Apr 01 11:35:09 well, you need to add the line I said to the meta-fsl-image.bb (preferable using a .bbappend) Apr 01 11:35:23 or just make your own image.bb file Apr 01 11:35:24 which has it Apr 01 11:36:03 the fsl-image-core.bb (which I am running bitbake on) only contains Apr 01 11:36:04 IMAGE_INSTALL += " \ packagegroup-fsl-core \ " Apr 01 11:36:11 you need to add the line I said Apr 01 11:36:20 if you want to add extra things Apr 01 11:36:27 just adding the recipe and having it being parsed doesn't add packages to the image, you will have to add the packages you added to IMAGE_INSTALL Apr 01 11:36:29 packagegroup-fsl-core contains a lot of stuff Apr 01 11:36:42 but it doesn't contain A or B Apr 01 11:36:44 usually done in local.conf or your own image configuration or whatever Apr 01 12:00:34 thanks guys, it worked Apr 01 12:06:29 np :) Apr 01 12:08:55 hm, it's weird. It got to do_rootfs and do_rootfs crashed with "uxinodbc not found in the base feeds" Apr 01 12:09:25 ERROR: unixodbc not found in the base feeds (t1040rdb ppce5500 powerpc noarch any all). Apr 01 12:11:17 followed by a huge list of packages, or modules Apr 01 12:33:16 ok, seems like installing connman and connman-client is the simplest way to get automated networking on your image Apr 01 12:39:59 JEEBsv: where you talking to me? sorry, I don't get it ? Apr 01 12:40:48 nah, just general talk since I was trying to see what was providing the systemd stuff for the busybox dhcp client Apr 01 12:40:55 in the end I gave up and installed connman :P Apr 01 12:41:12 ah Apr 01 13:08:07 anyone got kernel panic (can't find /sbin/init) in yocto before? Apr 01 13:13:16 <_4urele_> chankit1, are you sure you unmount correctly the deviec after flashing it? Apr 01 13:44:11 as I believe ERROR: unixodbc not found in the base feeds (t1040rdb ppce5500 powerpc noarch any all). means it can't find the rpm Apr 01 13:44:22 I don't understand how do_install() doesn't fail but I don't have any rpm Apr 01 13:45:04 the package is installed by Apr 01 13:45:05 ./configure Apr 01 13:45:06 make Apr 01 13:45:27 sudo make install Apr 01 13:45:41 and this is what I do in the .bb http://pastebin.com/wNzqEKtu Apr 01 13:51:49 andrei__: have a look under the image/ dir under the workdir for the recipe (which is ${D}) Apr 01 13:51:57 are there any files under there? Apr 01 13:56:23 _4urele_: I don't think I need to umount it since it's already unmounted before I run mkedisk.sh Apr 01 13:56:35 I'm having a bit of trouble figuring where ${D} is Apr 01 13:57:07 andrei__: you can try bitbake -e | grep ^D= Apr 01 13:57:18 ah, thanks Apr 01 13:57:56 andrei__: I might be wrong about the regexp after the grep but it basically finds D= so you know what $D is Apr 01 13:58:38 bluelightning: ping Apr 01 13:58:46 chankit1: what's up? Apr 01 14:00:03 thanks, found it Apr 01 14:00:26 bluelightning: which package handles /sbin/init in yocto? Apr 01 14:00:29 sysvinit? Apr 01 14:00:47 in /image Apr 01 14:00:56 for some reason my image doesn't have /sbin/init thus causing KP Apr 01 14:01:06 I got usr/local which has bin include and lib Apr 01 14:01:50 which has nothing to do with it' Apr 01 14:01:53 I don't really get it Apr 01 14:01:54 and there's a binary called swctl Apr 01 14:01:54 my package is named unixodbc Apr 01 14:04:59 chankit1: would be sysvinit or systemd depending on config Apr 01 14:06:50 since I don't do any configure anything on that so it should be sysvinit right? Apr 01 14:07:27 but /sbin/init is there if I use core-image-minimal though..core-image-base doesn't work :-( Apr 01 15:07:57 I am trying to get python3, python3-native, and python3-distribute on my image. When I bitbake it says cannot satisfy dependencies for python3-native. It also says python3-native rdepends but isn't a build dependency - but I've added it to the DEPENDS variable in the bb file. Apr 01 15:17:38 mkaras: python3-native would be for the host, you wouldn't add that to an image Apr 01 15:18:03 ok Apr 01 15:18:13 Let me remove it and see how it goes. Apr 01 15:27:48 bluelightning: able to bake and launch on target - but states "Could not find platform dependent libraries" also couldn't import standard lib modules. Apr 01 15:28:32 mkaras: install python3-modules if you want all modules normally part of the python distribution Apr 01 15:30:34 bluelightning: ERROR: Nothing PROVIDES 'python3-modules' Apr 01 15:31:01 mkaras: it's not a recipe, it's a package provided by python3, so you would just add it to your image Apr 01 15:55:02 bluelightning: tried that - adding it to my image * satisfy_dependencies_for: Cannot satisfy the following dependencies for python3-modules: * python3-elementtree * python3-mmap * python3-fcntl * python3-gdbm * python3-fcntl * python3-resource * python3-mmap * python3-elementtree * python3-syslog * Apr 01 15:55:46 sigh Apr 01 15:55:48 khem`: ^ Apr 01 15:57:15 hmmm Apr 01 15:57:22 * khem` tries to access the old braindisk Apr 01 15:57:40 there was a packagegroup IIRC Apr 01 16:02:16 surely python3-modules should just work? Apr 01 16:03:03 khem`: Tried googling for 'yocto python3 package group' didn't seem to come up with anything. How would I find it and install it? Apr 01 16:03:24 there would be a recipe in OE-Core Apr 01 16:25:18 khem`: by adding python3-misc I was able to get the python3 env error staring up python3 to go away - but the modules are still missing. I need to be able to run python3, use the standard library, and add / use my own packages and packages from pip/easy_install. Apr 01 16:26:49 I wonder if I never eneded up posting the packagegroup Apr 01 16:27:03 and it just remained inside old employers firewalls Apr 01 16:28:49 khem`: would you say I would be able to get through this much easier trying to do everything in python2? Apr 01 16:29:07 wow, the https://lobste.rs/ bbs interface is impressive. can read articles in the text interface Apr 01 16:29:31 mkaras: no, you just need to pull in all pyton3-* Apr 01 16:42:36 hello Apr 01 16:42:59 i am another noob to ask about WTH yocto is Apr 01 16:43:46 trying to do something with intel galileo gen 2 board atm Apr 01 16:43:56 no idea how to make install on it Apr 01 16:44:08 awww Apr 01 16:44:10 "on it"? Apr 01 16:44:29 yeah Apr 01 16:44:34 you normally run the builds on a separate machine that has the processing power to do it quickly.. you then transfer the image to the board following the board's instructions.. Apr 01 16:44:51 if you want to add the compilers and other components, you can try, but you are likely going to run out of storage and/or memory Apr 01 16:45:02 aww Apr 01 16:45:04 damn Apr 01 16:45:11 sounds so complicated for me Apr 01 16:45:36 this is the normal method to embedded development. Use a fast machine to build and target software for a slower machine Apr 01 16:45:42 if you want to work with embedded development, you'd better get used to it I:) Apr 01 16:45:49 fray: :) Apr 01 16:46:06 the galileo board is very slow at computation. What will take a short amount of time on a Core i7, will take many times longer on the galileo if even possible Apr 01 16:46:32 ok im about to understand my problem Apr 01 16:46:54 gah, i had the brilliant idea a while back to break up the external toolchain recipe into multiple component recipes, e.g. libgcc-external, glibc-external, and then the links to the toolchain binaries with gcc-external-cross, binutils-external-cross.. and now i'm realizing that means that the latter two recipes aren't being properly rebuilt when EXTERNAL_TOOLCHAIN path changes, since that var is whitelisted.. Apr 01 16:46:59 * kergoth grumbles Apr 01 16:47:28 so i need to read about embeded development. right? Apr 01 16:47:36 kergoth, thats how we do it Apr 01 16:48:11 guess i could remove it from the whitelist, but you can't mess with the whitelist on a per-recipe basis i don't think, so would have to add some vardepsexcludes to the others Apr 01 16:48:12 hmm Apr 01 16:48:21 start with the Yocto Project "gettign started" guide.. (not, for a galileo, starting with the 'core-image-sato' is likely too big... you should start with core-image-minimal... just keep that in mind as you read the docs Apr 01 16:48:54 kergoth, my recipes manage the external toolchain as SRC_URIs (and/or with the bitbake hashing) that way if it changes, the hash changes and it all "just works" Apr 01 16:49:07 khem`: looking at poky/meta/recipes-devtools/python/python3_3.3.3.bb I'm finding it hard to figure out how to add everything. It seems like python-misc should do it, but it doesn't. Apr 01 16:49:26 thanks, fray! Apr 01 16:49:45 kergoth, SDK_CHKSUM="${@bb.fetch2.get_file_checksums("${SDK_TOOLCHAIN}/${SDK_INSTALLER}", d.getVar("PN", True))}" Apr 01 16:50:05 then use the results of that to determine unpack, copy.. Apr 01 16:50:08 alternative is something like Apr 01 16:50:12 do_preinstall[file-checksums] = "${SDK_TOOLCHAIN}/${SDK_INSTALLER}" Apr 01 16:50:22 replace 'SDK_INSTALLER' with whatever the primary executable you care is Apr 01 16:50:29 huh. we're stuck using an already installed toolchain, though. its a good idea though, i'll play around with that Apr 01 16:50:34 if it's not installed.. it'll kick it to do something.. Apr 01 16:50:49 if it's installed, then it'll start tracking the checksum.. if the checksum changes, it'll invalidate Apr 01 16:51:21 my code happens to do the "install" and "validate" in the same step.... since we don't leave the toolchain 'already installed' Apr 01 16:51:35 but the work in the end is similar.. just need to tag something as the key for if it changed, and process it Apr 01 16:51:46 * kergoth nods Apr 01 16:52:33 * kergoth ponders Apr 01 16:54:54 I embed that little chunk (and the extraction code that matches) into a common .inc file, then the bbappends for the bintuils, gcc, glibc, etc all point ot that and make it 'install' the toolchain (whatever gets there first).. after that the configure/compile steps are nulled.. and the install step simply copies the binary toolchain bits and pieces to work, where the regular setup/packageing steps can do their thing Apr 01 16:54:58 mkaras: python2-misc is for all misc thats not in other packages Apr 01 16:55:19 (thats hte target stuff).. the other things just create symlinks (or wrapper scripts) that call the binary toolchain bits and pieces, like gcc or ld Apr 01 16:55:21 mkaras: look into build tree of python3 and see what all ipk/rpms it generated Apr 01 16:55:29 and add them all to IMAGE_INSTALL Apr 01 16:56:03 doing this allows me to build glibc from scratch (within the build system) but still use the other binary prebuilts.... or reuse the prebuilt glibc.. Apr 01 17:21:27 fray: how do you ensure that the symlinks/wrappers pieces get re-run when EXTERNAL_TOOLCHAIN changes, since they're dependent not upon the content, but upon the path? Apr 01 17:22:03 thats what the do_preinstall does.. it does the install and confgiures the wrappers.. with the checksum stuff it only is run if the checksum changes.. Apr 01 17:22:09 then the do_install depends on do_preinstall Apr 01 17:22:12 so it'll rerun that stuff Apr 01 17:23:06 ah, right, since your'e going from toolchain installers its easier.. going from an installed toolchain, if you move the toolchain, you'd have to rebuild the recipes, even though the file checksums wont have changed Apr 01 17:23:17 yup Apr 01 17:42:09 * kergoth sighs Apr 01 19:36:54 mn,¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬Hmm.. I think I had a cat on the keyboard Apr 01 19:58:46 #caturday early Apr 01 19:59:15 hmm, do we have a script to more conveniently dump signature data for a given recipe, rather than having to bitbake -S and go dig in tmp/stamps? Apr 01 20:05:55 nerdboy: thanks Apr 01 20:06:50 * kergoth suspects the answer is no, and thinks we probably should fix that Apr 01 20:09:16 hello! I need help with Yocto Apr 01 20:09:44 I have got a new platform and I want to prepare a package for yocto Apr 01 20:09:49 I have few questions Apr 01 20:21:28 Hmm, I also want a script that accepts a variable name and a target, and tells me what bitbake-whatchanged would tell me if I changed this variable — what tasks will be affected by changing it Apr 01 20:23:07 Oh, and also, I want a script to dump variable dependency information. Along the lines of bitbake -e or bb-show, but which dumps information about what depends on what, and what would depend on something if it wasn't excluded, and what value is used (for vardepvalue) Apr 01 20:26:40 * moto-timo gives kergoth a pony too Apr 01 20:26:49 hurray Apr 01 20:27:28 but yeah, more stuff for the *eventually* pile.. though some of it might start to annoy me enough to write one, will see Apr 01 20:28:03 how much of your python auto dep checking got into recipetool? Apr 01 20:28:32 it's all in, works nicely if i do say so Apr 01 20:28:41 * moto-timo must try this Apr 01 20:28:46 at one point i used it to check for missing rdeps in the existing recipes.. there are lots :) Apr 01 20:28:56 hurrah Apr 01 20:31:14 there it is: https://gist.github.com/kergoth/7d2e9f6c7d0fd759d7f2 Apr 01 20:31:18 knew i had it somewhere Apr 01 20:32:03 be aware that in some cases it'll scan the entire source tree (e.g. if the package/module lists in setup.py are dynamic), so in those cases it'll pick up e.g. modules used in the unit tests, which obviously arent' needed for the module itself Apr 01 20:32:09 so it definitely does require a certain amount of manual review Apr 01 20:32:28 also if there's a python 3 compatibility module, it'llp ick up all the imports on both sides of the conditionals, since it's doing static analysis.. Apr 01 20:32:37 but for the most part it works pretty well Apr 01 20:34:13 that is a totally exceptable situation ! Apr 01 20:35:05 I see some layer maintainance in my future :) Apr 01 20:35:17 https://gist.github.com/kergoth/0a641e90cdfd37fd2100 shows an example recipe created by it. https://gist.github.com/kergoth/7ad4b5102b2a5fe3a956 was the todo, so you can see there's still room to grow Apr 01 20:37:02 https://gist.github.com/kergoth/c6b6e08fd24cdde8adc5, specifically https://gist.github.com/kergoth/c6b6e08fd24cdde8adc5#file-test-py-L61 with https://gist.github.com/kergoth/c6b6e08fd24cdde8adc5#file-test-py-output-xt as the output shows how i separated the static from dynamic setup() arguments from the ones we can get at parse time with the ast module for use in recipetool, which i thought was pretty interesting Apr 01 20:37:09 * kergoth had fun with that development task :) Apr 01 20:38:56 still not 100% happy with way it processes package_dir Apr 01 20:40:22 i think it'd be interesting to gather OR dependencies by flattening a try/except ImportError block. since those are generally we want this module or that module or this other module Apr 01 20:40:47 also needs python 3 support added for sure at some point Apr 01 20:41:38 ah yes, python 3.... it looms Apr 01 20:42:59 not sure how to handle that.. might just need two scripts, or split out the bits that parse the ast and make it emit json or so and have the main script use that, to split out python 2 and 3 ast parsing Apr 01 20:43:00 * kergoth shrugs Apr 01 20:47:38 we are certainly in a better place than we were... Apr 01 20:47:45 thank you! Apr 01 22:01:47 When trying to build a makefile project, how do I get it to execute the commands from the externalsrc directory? Apr 01 22:02:05 Do I need SRC_URI=file:// etc to make it pull all the files into a separate build directory? **** ENDING LOGGING AT Thu Apr 02 02:59:58 2015