| Summary: | [HOB] No rootfs image generated after image build finished | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] Hob | Reporter: | Jiajun Xu <jiajun.xu> |
| Component: | hob | Assignee: | Joshua Lock - Disabled <josh> |
| Status: | VERIFIED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | High | CC: | jessica.zhang, lianhao.lu, liping.ke, poky.bs.watcher, poky.watcher, sgw |
| Version: | unspecified | ||
| Target Milestone: | 1.1 M3 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | --- | |
| Bug Depends on: | 1249 | ||
| Bug Blocks: | |||
|
Description
Jiajun Xu
2011-07-07 07:59:38 UTC
I think I know what's going on here. There is a known issue with the image creator that the native tools for rootfs construction are not correctly included in the dependencies of the image and therefore if these native tools have not already been built the actual rootfs construction will fail. I assume this was a clean build directory? I guess the reason why no rootfs is generated is when calling the bitbake server command 'buildTargets', hob passes in all the packages included in the core-image-minimal, not the core-image-minimal itself. If we build a image from bitbake command line first. Then build the same image in hob. There will be no rootfs image generated also. Currently the actual image build is queued to be run using buildFile after the package builds (using buildTargets) have completed. That's what works on my Fedora 15 workstation(s) but will fail if the builddir hasn't had an image built in it already. Fixing hob to use buildTargets for the actual image is a high priority issue for M2 but if that's not what you're seeing I'd like to get some more info so that I can try and ensure the image creator works for you. Can you tell me Python version, distribution and distro version so I can try and reproduce? (In reply to comment #4) > Currently the actual image build is queued to be run using buildFile after the > package builds (using buildTargets) have completed. > That's what works on my Fedora 15 workstation(s) but will fail if the builddir > hasn't had an image built in it already. > Fixing hob to use buildTargets for the actual image is a high priority issue > for M2 but if that's not what you're seeing I'd like to get some more info so > that I can try and ensure the image creator works for you. > Can you tell me Python version, distribution and distro version so I can try > and reproduce? I am using 32bit Ubuntu 10.04 with python 2.6.5. got 3 event after buildFile command was sent out: <bb.command.CommandCompleted> <bb.command.CommandFailed> <bb.command.CommandFailed> (In reply to comment #4) > Currently the actual image build is queued to be run using buildFile after the > package builds (using buildTargets) have completed. > > That's what works on my Fedora 15 workstation(s) but will fail if the builddir > hasn't had an image built in it already. > > Fixing hob to use buildTargets for the actual image is a high priority issue > for M2 but if that's not what you're seeing I'd like to get some more info so > that I can try and ensure the image creator works for you. > > Can you tell me Python version, distribution and distro version so I can try > and reproduce? OK, working on this. For those following along, the problem was that the GUI was calling the findConfigFilePath command of the cooker looking for a UI specific config file. However the findConfigFilePath command was buggy such that it would fire the ConfigFilePathFound event regardless of whether a file was actually found or not, leading to the UI trying to handle the event and process a None object as a file path. The submitted patch updates the cooker to only fire events in the finder methods when something is actually found. Dammit, comment on the wrong bug. Sorry. Please ignore last comment. This change is pending further development on #1249 Verify the bug with commit 46cf540e63a848512617b20fd8492f81bfb2f704, now rootfs image could be built out with hob. |