Re: [oe] Understanding recipes vs packages

2011-11-07 Thread Charles Manning
On Mon, Nov 7, 2011 at 6:15 PM, Xu, Dongxiao dongxiao...@intel.com wrote:
 Hi Charles,

 -Original Message-
 From: openembedded-devel-boun...@lists.openembedded.org
 [mailto:openembedded-devel-boun...@lists.openembedded.org] On Behalf Of
 Charles Manning
 Sent: Monday, November 07, 2011 11:32 AM
 To: openembedded-devel@lists.openembedded.org
 Subject: [oe] Understanding recipes vs packages

 Hello

 Something very weird is going on with some changes I have made recently to a
 custom image I am building.

 For some reason I was getting libpng12 built and now that no longer happens.

 In debugging this I've been doing things that now stump me.

 From my understanding, a recipe can build multiple different packages.
 For example libpng.inc has the following in it:

 Yes, it is correct.


 PACKAGES =+ ${PN}12-dbg ${PN}12 ${PN}12-dev

 FILES_${PN}12-dbg += ${libdir}/libpng12*.dbg
 FILES_${PN}12 = ${libdir}/libpng12.so.*
 FILES_${PN}12-dev = ${libdir}/libpng12.* ${includedir}/libpng12
 ${libdir}/pkgconfig/libpng12.pc
 FILES_${PN} = ${libdir}/lib*.so.*
 FILES_${PN}-dev = ${includedir} ${libdir}/lib*.so ${libdir}/*.la \
               ${libdir}/*.a ${libdir}/pkgconfig \
               ${datadir}/aclocal ${bindir} ${sbindir}


 Does that mean I should be able to build  libgpng12 as follows:

 bitbake libpng12

 No, package name could not be passed to bitbake as a parameter.

 Bitbake can accept a recipe name as its parameter, and it will process tasks 
 like do_fetch, do_unpack, ..., do_package, etc. for that recipe. In the 
 above case, libpng12 will be generated in do_package task, and then it will 
 be archived into rpm/ipk/deb package formats.

 Try to run bitbake libpng and see if libpng12 is generated.

Yes it is.

OK thanks for the clarification

So if I want to put the libpng12 in an image then do I need to do
something like:

# Add libpng to DEPENDS to get the recipe to build
# Add libpng12 to IMAGE_INSTALL because that's what I want in the package

DEPENDS +=  libpng
IMAGE_INSTALL +=  libpng12

___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel


[oe] Understanding recipes vs packages

2011-11-06 Thread Charles Manning
Hello

Something very weird is going on with some changes I have made
recently to a custom image I am building.

For some reason I was getting libpng12 built and now that no longer happens.

In debugging this I've been doing things that now stump me.

From my understanding, a recipe can build multiple different packages.
For example libpng.inc has the following in it:

PACKAGES =+ ${PN}12-dbg ${PN}12 ${PN}12-dev

FILES_${PN}12-dbg += ${libdir}/libpng12*.dbg
FILES_${PN}12 = ${libdir}/libpng12.so.*
FILES_${PN}12-dev = ${libdir}/libpng12.* ${includedir}/libpng12
${libdir}/pkgconfig/libpng12.pc
FILES_${PN} = ${libdir}/lib*.so.*
FILES_${PN}-dev = ${includedir} ${libdir}/lib*.so ${libdir}/*.la \
${libdir}/*.a ${libdir}/pkgconfig \
${datadir}/aclocal ${bindir} ${sbindir}


Does that mean I should be able to build  libgpng12 as follows:

bitbake libpng12

Thanks

Charles

___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel


Re: [oe] Kernel boot problems

2011-07-28 Thread Charles Manning
 Hi Gary,

 Did as you suggested .. no printout from serial_imx_probe() is seen, so
 I guess it isn't been called, will have to trace it back to see why not.
 This is going to be tedious ..

 EDIT: However the function imx_serial_init() is being called and
 completes without errors, so I don't know why the probe is not being
 called ..
 Any ideas?

The serial initialisation probably happens twice:
Once for the early console stuff to give to the tracing before the
uncompressing.
Then again for setting up the real device tree when the decompressed
kernel is being booted.

I think the  probing is only during the second.



 Thanks,
 bernie


 
 --
 I want to die peacefully in my sleep, like my grandfather, not screaming
 and yelling like the passengers in his car.

 -Original Message-
 From: Gary Thomas [mailto:g...@mlbassoc.com]
 Sent: Friday, 29 July 2011 10:42 a.m.
 To: Bernard Mentink
 Cc: openembedded-devel@lists.openembedded.org
 Subject: Re: [oe] Kernel boot problems

 On 2011-07-28 16:10, Bernard Mentink wrote:
 Hi Gary,

 Further down I see a confirmation of the boot params ... i.e
 console=ttymxc0,115200

 8030d600: 73747369 206e6920 656e6f5a 64726f20    ists in Zone ord
 8030d610: 202c7265 69626f6d 7974696c 6f726720    er, mobility gro
 8030d620: 6e697075 6e6f2067 5420202e 6c61746f    uping on.  Total
 8030d630: 67617020 203a7365 31353233 353c0a32     pages: 32512.5
 8030d640: 72654b3e 206c656e 6d6d6f63 20646e61Kernel command
 8030d650: 656e696c 6f63203a 6c6f736e 74743d65    line: console=tt
 8030d660: 63786d79 31312c30 30303235 3e363c0a    ymxc0,115200.6
 8030d670: 20444950 68736168 62617420 6520656c    PID hash table e
 8030d680: 6972746e 203a7365 20323135 64726f28    ntries: 512 (ord
 8030d690: 203a7265 202c312d 38343032 74796220    er: -1, 2048 byt
 8030d6a0: 0a297365 443e363c 72746e65 61632079    es).6Dentry ca
 8030d6b0: 20656863 68736168 62617420 6520656c    che hash table e
 8030d6c0: 6972746e 203a7365 38333631 6f282034    ntries: 16384 (o
 8030d6d0: 72656472 2c34203a 35353620 62203633    rder: 4, 65536 b
 8030d6e0: 73657479 363c0a29 6f6e493e 632d6564    ytes).6Inode-c
 8030d6f0: 65686361 73616820 61742068 20656c62    ache hash table

 The only mention of serial port is:

 8030df00: 20656e69 69676572 72657473 3c0a6465    ine registered.
 8030df10: 6f693e36 68637320 6c756465 63207265    6io scheduler c
 8030df20: 72207166 73696765 65726574 64282064    fq registered (d
 8030df30: 75616665 0a29746c 533e363c 61697265    efault).6Seria
 8030df40: 49203a6c 6420584d 65766972 353c0a72    l: IMX driver.5
 8030df50: 7968703e 70616d73 616c7020 726f6674physmap platfor
 8030df60: 6c66206d 20687361 69766564 203a6563    m flash device:
 8030df70: 30303230 30303030 20746120 30303061    0200 at a000
 8030df80: 30303030 3e363c0a 73796870 2d70616d    .6physmap-
 8030df90: 73616c66 3a302e68 756f4620 3120646e    flash.0: Found 1
 8030dfa0: 36317820 76656420 73656369 20746120     x16 devices at
 8030dfb0: 20307830 31206e69 69622d36 61622074    0x0 in 16-bit ba
 8030dfc0: 202e6b6e 756e614d 74636166 72657275    nk. Manufacturer
 8030dfd0: 20444920 30307830 39383030 69684320     ID 0x89 Chi
 8030dfe0: 44492070 30783020 31393830 353c0a63    p ID 0x00891c.5
 8030dff0: 7075533e 74726f70 726f6620 6d6f6320Support for com

 .. And yes I did turn on early debug in the kernel config .. But I
 don't see any extra messages out the serial port.
 How can I check that my .config changes have propagated through ok? ..

 Do you have CONFIG_SERIAL_IMX_CONSOLE in your config?  You can just grep
 for 'SERIAL_IMX_CONSOLE' in .config

 You could also edit drivers/serial/imx.c and put some printk() messages
 in serial_imx_probe() to see if it's being called to register your
 device.
 Of course, you'll have to look at the log_buf to read the messages :-)

 I notice that your bootargs don't specify a file system.  Perhaps if you
 added that the system could actually make it up to multi-user and you
 could log in (serial, SSH, ...)

 --
 --
 --
 I want to die peacefully in my sleep, like my grandfather, not
 screaming and yelling like the passengers in his car.

 -Original Message-
 From: Gary Thomas [mailto:g...@mlbassoc.com]
 Sent: Friday, 29 July 2011 9:40 a.m.
 To: Bernard Mentink
 Cc: openembedded-devel@lists.openembedded.org
 Subject: Re: [oe] Kernel boot problems

 On 2011-07-28 14:51, Bernard Mentink wrote:
 Many thanks for that,

 I had a look through the buffer and I see pretty much normal bootup
 text ... It just isn't coming out of the serial port ..

 The only error I saw was the following:
 -
 8030cf80:  0001 3a534656 6e614320    VFS: Can
 8030cf90: 20746f6e 6e65706f 6f6f7220 65642074    not open root de
 8030cfa0: 65636976 6e282220 296c6c75 726f2022    vice (null) or
 

Re: [oe] Debugging u-boot

2011-07-06 Thread Charles Manning
Bernie

What toolchain are you building?

If you build meta-toolchain that should build all the stuff you can put into
/usr/local/angstrom/arm/... which includes gdb.

That should then work with a JTAG debugger etc.

-- Charles


On Thu, Jul 7, 2011 at 11:25 AM, Bernard Mentink
bernard_ment...@trimble.com wrote:
 Hi All,

 Can some one please tell me how to debug u-boot  on my target. I have
 built u-boot for similar hardware and I want to debug with gdb, but
 cannot even find the cross-compile version of gdb,
 It does not exist in the directory
 build/tmp/sysroots/i686-linux/usr/armv6/bin/ where the other
 cross-compile tools live ..

 I want to execute ${CROSS_COMPILE}gdb u-boot
  .. and breakpoint at some very early symbol . Some steps to
 achieving this would be much appreciated ..

 Many Thanks,
 Bernie




 ___
 Openembedded-devel mailing list
 Openembedded-devel@lists.openembedded.org
 http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel


___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel


Re: [oe] Debugging u-boot

2011-07-06 Thread Charles Manning
On Thu, Jul 7, 2011 at 1:13 PM, Bernard Mentink
bernard_ment...@trimble.com wrote:
 Hi Charles,

 Didn't know you were lurking on this list ... ;-)

You can run but you can't hide.


 I have built for the angstom distro (arm-angstrom-linux-gnueabi-*), but the 
 tools got put in my project path I described in my earlier email, but
 There was no GDB included for some reason ..

The regular toolchian than oe builds for its own purposes does not use
gdb because gdb is not needed for building. That toolchain is intended
for use within OE bitbakery only.

A meta-toolchain is built as a standalone toolchain intended for use
outside of OE (eg. if you pull u-boot to a standalone directory for
development purposes or want to do your own app development outside of
OE.)


 How do you build the meta-toolchain, and how will that help.


bitbake meta-toolchain.

This makes a toolchain which you can unpack thus:

$ cd /
$ sudo tar xvjf
${OETOP}/tmp/deploy/glibc/sdk/angstrom-2009.X-test-20110301-armv7a-linux-gnueabi-toolchain.tar.bz2

[NB your toolchain name will be something different]


To set up all the paths etc use

. /usr/local/angstrom/arm/environment-setup

Google openembedded metatoolchain will also give some interesting info.

NB If you're building apps and need extra libraries you will need to
make your own SDK. That's a bit more effort and you don't need all
that just for gdbing u-boot

-- Charles


 Cheers,
 Bernie


 --
 I want to die peacefully in my sleep, like my grandfather, not screaming and 
 yelling like the passengers in his car.

 -Original Message-
 From: openembedded-devel-boun...@lists.openembedded.org 
 [mailto:openembedded-devel-boun...@lists.openembedded.org] On Behalf Of 
 Charles Manning
 Sent: Thursday, 7 July 2011 12:38 p.m.
 To: openembedded-devel@lists.openembedded.org
 Subject: Re: [oe] Debugging u-boot

 Bernie

 What toolchain are you building?

 If you build meta-toolchain that should build all the stuff you can put into 
 /usr/local/angstrom/arm/... which includes gdb.

 That should then work with a JTAG debugger etc.

 -- Charles


 On Thu, Jul 7, 2011 at 11:25 AM, Bernard Mentink 
 bernard_ment...@trimble.com wrote:
 Hi All,

 Can some one please tell me how to debug u-boot  on my target. I have
 built u-boot for similar hardware and I want to debug with gdb, but
 cannot even find the cross-compile version of gdb, It does not exist
 in the directory build/tmp/sysroots/i686-linux/usr/armv6/bin/ where
 the other cross-compile tools live ..

 I want to execute ${CROSS_COMPILE}gdb u-boot
  .. and breakpoint at some very early symbol . Some steps to
 achieving this would be much appreciated ..

 Many Thanks,
 Bernie




 ___
 Openembedded-devel mailing list
 Openembedded-devel@lists.openembedded.org
 http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel


 ___
 Openembedded-devel mailing list
 Openembedded-devel@lists.openembedded.org
 http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

 ___
 Openembedded-devel mailing list
 Openembedded-devel@lists.openembedded.org
 http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel


___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel


[oe] How do I install python modules for use within recipes?

2011-04-07 Thread Charles Manning
Hi

I have a project which uses python as part of the building process to
generate some C code from some XML which is then later compiled.

The python script uses the python lxml module.

My recipe has a do_compile as follows:

do_compile() {
cd ${S}/
make -f Gencode.mk
make
}

During the make -f Gencode.mk, the python script which imports lxml
fails to do so and fails.

Question: How do I instruct OE to set up the lxml module and make it
available here?

Thanks

Charles

___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel


Re: [oe] How do I install python modules for use within recipes?

2011-04-07 Thread Charles Manning
Thanks

What's the story with org.openembedded.dev/contrib/python/generate-manifest*

Do I have to modify that?

--Charles


On Fri, Apr 8, 2011 at 12:07 PM, Robert Foerster rob...@erafx.com wrote:
 On Thu, Apr 7, 2011 at 7:51 PM, Charles Manning cdhmann...@gmail.comwrote:

 Hi

 I have a project which uses python as part of the building process to
 generate some C code from some XML which is then later compiled.

 The python script uses the python lxml module.

 My recipe has a do_compile as follows:

 do_compile() {
        cd ${S}/
        make -f Gencode.mk
        make
 }

 During the make -f Gencode.mk, the python script which imports lxml
 fails to do so and fails.

 Question: How do I instruct OE to set up the lxml module and make it
 available here?


 I don't see a recipe for python-lxml-native, so you'll likely have to make
 one (and then make your recipe depend on it to ensure it's built and
 available).

 There are several other python-*-native modules in OE, take a look at what
 they're doing.
 http://cgit.openembedded.org/cgit.cgi/openembedded/tree/recipes/python




 Thanks

 Charles

 ___
 Openembedded-devel mailing list
 Openembedded-devel@lists.openembedded.org
 http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

 ___
 Openembedded-devel mailing list
 Openembedded-devel@lists.openembedded.org
 http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel


___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel


Re: [oe] How do I install python modules for use within recipes?

2011-04-07 Thread Charles Manning
On Fri, Apr 8, 2011 at 1:00 PM, Gary Thomas g...@mlbassoc.com wrote:
 On 04/07/2011 06:53 PM, Charles Manning wrote:

 Thanks

 What's the story with
 org.openembedded.dev/contrib/python/generate-manifest*

 Do I have to modify that?

 No, that's for the internal Python modules.

 n.b. don't top post :-)


Sorry I don't usually use gmail web interface...

So by Internal Python modules what do you mean? If that's just the
stuff used in cranking bitbake and OE then why does it need to
generate the manifest in the recipes?

Building some python modules from scratch looks ugly. Is there
anything stopping me from just using easy-install? ... Or would that
be even harder? Seems odd that native recipes don't use easy-install
unless there is a good reason not to.


-- Charles


 On Fri, Apr 8, 2011 at 12:07 PM, Robert Foersterrob...@erafx.com  wrote:

 On Thu, Apr 7, 2011 at 7:51 PM, Charles
 Manningcdhmann...@gmail.comwrote:

 Hi

 I have a project which uses python as part of the building process to
 generate some C code from some XML which is then later compiled.

 The python script uses the python lxml module.

 My recipe has a do_compile as follows:

 do_compile() {
        cd ${S}/
        make -f Gencode.mk
        make
 }

 During the make -f Gencode.mk, the python script which imports lxml
 fails to do so and fails.

 Question: How do I instruct OE to set up the lxml module and make it
 available here?


 I don't see a recipe for python-lxml-native, so you'll likely have to
 make
 one (and then make your recipe depend on it to ensure it's built and
 available).

 There are several other python-*-native modules in OE, take a look at
 what
 they're doing.
 http://cgit.openembedded.org/cgit.cgi/openembedded/tree/recipes/python




 Thanks

 Charles

 ___
 Openembedded-devel mailing list
 Openembedded-devel@lists.openembedded.org
 http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

 ___
 Openembedded-devel mailing list
 Openembedded-devel@lists.openembedded.org
 http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel


 ___
 Openembedded-devel mailing list
 Openembedded-devel@lists.openembedded.org
 http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel

 --
 
 Gary Thomas                 |  Consulting for the
 MLB Associates              |    Embedded world
 


___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel


[oe] How to exclude a package from a rootfs?

2011-03-31 Thread Charles Manning
I'm building a customised rootfs somewhat similar to omap3-console-image.

Various dependencies cause the inclusion of /boot/uImage* which is not
required in the rootfs, so I want to exclude it.

I tried using BAD_RECOMMENDATIONS = kernel-image- but that did not work.
The log shows that it identified the right package suring the
BAD_RECOMMENDATIONS processing in rootfs-ipk.bbclass but the file is
still in the output rootfs.


Any other hints?

Thanks

-- Charles

___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel


[oe] Modifying download directories

2011-03-28 Thread Charles Manning
Hi All

I am fetching various modules from svn and need to create a specific
directory structure with them. I'm struggling to find the correct
combination to make this work.

If I use
SRC_URI =  \
svn://xxx/svn/a/trunk;module=Common;proto=http \
svn://xxx/svn/a/trunk;module=Core;proto=http \
svn://xxx/svn/b/trunk;module=HAL;proto=http \

that fetches the modules so that I end up with

${WORKDIR}/Common
${WORKDIR}/Core
${WORKDIR}/HAL

but what I really want is;

${WORKDIR}/foo/Common
${WORKDIR}/foo/Core
${WORKDIR}/bar/HAL

because that is how the Makefiles are set up

Any advice welcome.

Thanks

Charles

___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel


[oe] How do I change the kernel includes used in building a toolchain?

2011-03-23 Thread Charles Manning
I've managed to make the recipes to build a toolchain.

I've also managed to make the recipes to build a new version kernel
uImage and modules.


But the problem I have is that the toolchain I built has kernel
headers from the wrong kernel version. That means packages like tslib
which use kernel includes don't work properly because they are
compiled against obsolete kernel interfaces.

What do I change so that the sdk includes the correct kernel includes?

Thanks

Charles

___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel


[oe] How does oe handle rebuilds?

2011-03-07 Thread Charles Manning
I find I often have problems when using oe that changing a recipe does
not result in dependent packages being rebuilt. A bit of Googling
suggests that many experience this issue and take manual steps to
force rebuilding.

For example, changing the kernel requires rebuilding various libraries
(tslib etc) and rebuilding the image.

1.Should oe be able to handle that automatically or is this oe's
killer defect (ie. opposite of killer feature).
2. Is there something missing in recipes to show the correct dependencies?
3. What is the best way to manage these stale dependencies?

Thanks

Charles

___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel


[oe] What does PACKAGES_DYNAMIC do?

2011-03-07 Thread Charles Manning
What is the rationale behind PACKAGES_DYNAMIC.

I tried to RTFM, but that's in one of the Todo sections :-(.

___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel


[oe] Where are the xxx-dev recipes for Enlightenment Foundation Libraries?

2011-02-16 Thread Charles Manning
Hello

There is a task-efl.bb which builds Enlightenment Foundation Library, but
there does not seem to be any xxx-dev recipes to get EFL into an SDK.

Does task-efl.bb actually do this? If so, how should it be used?

Thanks

Charles

___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel


Re: [oe] Which recipe to get EFL into SDK

2011-02-14 Thread Charles Manning
On Tue, Feb 15, 2011 at 11:34 AM, Khem Raj raj.k...@gmail.com wrote:
 On (15/02/11 11:17), Charles Manning wrote:
 Hello

 I am building an SDK and have managed to get everything added to it
 that I want except for EFL.

 Any hints as to what recipe to use to add EFL to the SDK?
 there is a meta task
 task-efl.bb in recipes/tasks that might be a good starting point


I am confused.

Are you suggesting that I should be able to include task-efl.bb or are
you suggesting I should
be able to make a lib building version of task-efl.bb?

___
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-devel