Re: [yocto] [meta-selinux] Updated meta-selinux -- master (was: master-next)

2013-10-03 Thread Philip Tricca
Looks good to me.

Thanks,
- Philip

On 10/02/2013 08:57 PM, Joe MacDonald wrote:
> Philip / Mark / all,
> 
> Earlier today I updated master with a rebased version of what was in
> master-next.  I apologize for not sending this out earlier.  Today's
> been a bit turbo.
> 
> This update should have been a fast-forward update to master, so if
> that's not the case, or if the updates cause any unexpected behaviour,
> please let me know.
> 
> The only outstanding issue I'm aware of right now is basically what I
> related in my earlier mail, but less severe.  The initial boot and
> auto-relabelling hums along fine.  The second boot produces a few
> issues about /dev/vcs* and /dev/fb* having their label applications
> denied due to an invalid context.  Logging in to the system and
> manually doing a restorecon on those devices as root/secadm_r/secadm_t
> applies the correct label until the next boot.  Then you're back to
> the default labels and have to restore them again.
> 
> The current state of affairs works around the more serious problem I
> mentioned previously by not using the udev device cache.  I'd like to
> fix that, but since it was the approach used in master previously, I
> didn't think it was worth holding off on the update just for that.
> 
> -J.
> 
> On Sat, Sep 28, 2013 at 3:46 PM, Philip Tricca  wrote:
>> On 09/27/2013 03:58 PM, Joe MacDonald wrote:
>>> [[yocto] [meta-selinux] Updated meta-selinux -- master-next] On 13.09.19 
>>> (Thu 13:41) Mark Hatle wrote:
>>>
 I have updated meta-selinux, and placed the update into the 'master-next' 
 branch.

 This was locally tested with Poky as of commit
 853bc53cd58a621918f0e5ce662dba263d1befb4.

 Note, when building the core-image-selinux, the internal refpolicies
 cause a lot of failures.  I'm not an expert on how this should be
 configured, so I'm looking for help/patches from others.

 If you know of any other additional patches that should be applied,
 or are able to help with the refpolicies, please let me know!

 Thanks!
 --Mark
>>>
>>> I just pushed a new (non-ff!) update to master-next.  It includes the
>>> following:
>>>
>>>- Mark Hatle: policycoreutils: avoid shell for checking target-special 
>>> actions
>>>- Mark Hatle: setools: Uprev setools
>>>- Mark Hatle: README: Update status
>>>- Mark Hatle: libcap-ng: Uprev libcap-ng
>>>- Mark Hatle: audit: Uprev to audit 2.3.2
>>>- Mark Hatle: swig: Update to latest swig from meta-openembedded
>>>- Mark Hatle: python-ipy: Uprev to latest 0.81 version
>>>- Mark Hatle: distro/*: Update the distro files
>>>- Christopher Larson: layer.conf: avoid unnecessary early expansion with 
>>> :=
>>>- Qiang Chen: selinux: remove reference to locale env files from login
>>>- Mark Hatle: linux-yocto: Add support for the 3.10 kernel
>>>- Xin Ouyang: kernel: add BBAPPEND for linux 3.10
>>
>> Can I put in a request to cherry-pick the 3.10 kernel update down to master? 
>> This is independent from all of the tools / policy updates and it would be 
>> very convenient for those of us building against master oe-core. As of now a 
>> build of meta-selinux master against oe-core master results in an image that 
>> will panic on boot as linux-yocto builds the 3.10 kernel and the selinux 
>> distros don't prefer a kernel with an available selinux config (3.8 is the 
>> most recent).
>>
>> Thanks,
>> - Philip
>>
> 
> 
> 

___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Cross Compile Kernel Modules

2013-10-03 Thread Bruce Ashfield

On 13-10-03 8:21 PM, Parker Mackenzie wrote:

Thanks Bruce,

That got me further. I added a comment to the video on YouTube which might help 
others which stumble across the presentation.

Now I get the following error
ERROR: Function failed: do_rootfs

Which points me to a log file which indicates the following failed:


Note: adding Smart RPM DB channel

Note: to be installed: packagegroup-core-tools-debug@beagleboard 
kernel-dev@beagleboard rpm-postinsts@all packagegroup-core-boot@beagleboard 
libstdc++6@armv7a_vfp_neon
Loading cache...
Updating cache...  [100%]

Computing transaction...error: Can't install 
kernel-dev-3.4.43+git0+1bab5bd090948b4cc4c4ed57c834603a3cf9f235_c994390cfa28339cbc1ec3b56eeec83a5fa75bb7-r4.4@beagleboard:
 no package provides /usr/bin/python

Saving cache...

ERROR: Function failed: do_rootfs (see 
/home/parker/Projects/beagleboard/yocto/poky-dylan-9.0.2/build/tmp/work/beagleboard-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_rootfs.61003
 for further information)


However :
[parker@jasper build]$ which python
/usr/bin/python


That would be your build host's python. The kernel module is pulling it
in as a dependency for the target, so it needs to be part of the rootfs
packages.

Check that your have python in your dependencies/image install lists,
which bitbake -e  will dump ... among many other
things :)

Which image type are you building ? core-image-minimal ? Try adding this
to your local.conf: IMAGE_INSTALL_append = " python"

Cheers,

Bruce




I have gone through the documentation; however, feel free to point me at a 
resource if this is a silly new-guy question. An internet search did bring up 
the following nugget; patch 2/3 sounds related, however, I am not sure how to 
proceed.
http://comments.gmane.org/gmane.comp.handhelds.openembedded.core/34245

Thanks in advance,
Parker  
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto



___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Cross Compile Kernel Modules

2013-10-03 Thread Parker Mackenzie
Thanks Bruce,

That got me further. I added a comment to the video on YouTube which might help 
others which stumble across the presentation.

Now I get the following error
ERROR: Function failed: do_rootfs

Which points me to a log file which indicates the following failed:


Note: adding Smart RPM DB channel

Note: to be installed: packagegroup-core-tools-debug@beagleboard 
kernel-dev@beagleboard rpm-postinsts@all packagegroup-core-boot@beagleboard 
libstdc++6@armv7a_vfp_neon
Loading cache...
Updating cache...  [100%]

Computing transaction...error: Can't install 
kernel-dev-3.4.43+git0+1bab5bd090948b4cc4c4ed57c834603a3cf9f235_c994390cfa28339cbc1ec3b56eeec83a5fa75bb7-r4.4@beagleboard:
 no package provides /usr/bin/python

Saving cache...

ERROR: Function failed: do_rootfs (see 
/home/parker/Projects/beagleboard/yocto/poky-dylan-9.0.2/build/tmp/work/beagleboard-poky-linux-gnueabi/core-image-minimal/1.0-r0/temp/log.do_rootfs.61003
 for further information)


However :
[parker@jasper build]$ which python
/usr/bin/python


I have gone through the documentation; however, feel free to point me at a 
resource if this is a silly new-guy question. An internet search did bring up 
the following nugget; patch 2/3 sounds related, however, I am not sure how to 
proceed.
http://comments.gmane.org/gmane.comp.handhelds.openembedded.core/34245

Thanks in advance,
Parker
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Cross Compile Kernel Modules

2013-10-03 Thread Bruce Ashfield

On 13-10-03 04:08 PM, Parker Mackenzie wrote:

I have been researching a way to build loadable kernel modules outside of Yocto 
for a while. I was excited to find a presentation from the Yocto Developer's 
Day 2013 which implied I code do this by adding the following line to my 
local.conf:
IMAGE_INSTALL_append = " kernel_dev"

However, when I ran bitbake for my beagleboard target I get the following 
error. Any help in understanding what is wrong and how to achieve my goal would 
be most helpful.


Try "kernel-dev"

Bruce



Kind Regards,
Parker Mackenzie



[parker@jasper build]$ bitbake core-image-minimal
Parsing recipes: 100% |#| Time: 00:03:55
Parsing of 814 .bb files complete (0 cached, 814 parsed). 1121 targets, 43 
skipped, 0 masked, 0 errors.

Build Configuration:
BB_VERSION= "1.18.0"
BUILD_SYS = "x86_64-linux"
NATIVELSBSTRING   = "Fedora-17"
TARGET_SYS= "arm-poky-linux-gnueabi"
MACHINE   = "beagleboard"
DISTRO= "poky"
DISTRO_VERSION= "1.4.2"
TUNE_FEATURES = "armv7a vfp neon"
TARGET_FPU= "vfp-neon"
meta
meta-yocto
meta-yocto-bsp= ":"

NOTE: Resolving any missing task queue dependencies
ERROR: Nothing RPROVIDES 'kernel_dev' (but 
/home/parker/Projects/beagleboard/yocto/poky-dylan-9.0.2/meta/recipes-core/images/core-image-minimal.bb
 RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'kernel_dev' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['kernel_dev']
ERROR: Required build target 'core-image-minimal' has no buildable providers.
Missing or unbuildable dependency chain was: ['core-image-minimal', 
'kernel_dev']

Summary: There were 2 ERROR messages shown, returning a non-zero exit code. 

___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto



___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Cross Compile Kernel Modules

2013-10-03 Thread Parker Mackenzie
I have been researching a way to build loadable kernel modules outside of Yocto 
for a while. I was excited to find a presentation from the Yocto Developer's 
Day 2013 which implied I code do this by adding the following line to my 
local.conf:
IMAGE_INSTALL_append = " kernel_dev"

However, when I ran bitbake for my beagleboard target I get the following 
error. Any help in understanding what is wrong and how to achieve my goal would 
be most helpful.

Kind Regards,
Parker Mackenzie



[parker@jasper build]$ bitbake core-image-minimal
Parsing recipes: 100% |#| Time: 00:03:55
Parsing of 814 .bb files complete (0 cached, 814 parsed). 1121 targets, 43 
skipped, 0 masked, 0 errors.

Build Configuration:
BB_VERSION        = "1.18.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Fedora-17"
TARGET_SYS        = "arm-poky-linux-gnueabi"
MACHINE           = "beagleboard"
DISTRO            = "poky"
DISTRO_VERSION    = "1.4.2"
TUNE_FEATURES     = "armv7a vfp neon"
TARGET_FPU        = "vfp-neon"
meta              
meta-yocto        
meta-yocto-bsp    = ":"

NOTE: Resolving any missing task queue dependencies
ERROR: Nothing RPROVIDES 'kernel_dev' (but 
/home/parker/Projects/beagleboard/yocto/poky-dylan-9.0.2/meta/recipes-core/images/core-image-minimal.bb
 RDEPENDS on or otherwise requires it)
NOTE: Runtime target 'kernel_dev' is unbuildable, removing...
Missing or unbuildable dependency chain was: ['kernel_dev']
ERROR: Required build target 'core-image-minimal' has no buildable providers.
Missing or unbuildable dependency chain was: ['core-image-minimal', 
'kernel_dev']

Summary: There were 2 ERROR messages shown, returning a non-zero exit code. 
  
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Fwd: OpenSSH pre login banner

2013-10-03 Thread Amit Tomer
Sorry for the typo mistake ,its sshd_config only
In fact I didn't create this file ,its already existing file which I just
modified.


On Thu, Oct 3, 2013 at 11:40 AM, Bryan Evenson wrote:

> Amit,
>
> ** **
>
> Did you name the file sshd-config or sshd_config?  Because it should be
> sshd_config.
>
> ** **
>
> -Bryan
>
> ** **
>
> *From:* Amit Tomer [mailto:amittome...@gmail.com]
> *Sent:* Thursday, October 03, 2013 2:36 PM
>
> *To:* Bryan Evenson
> *Cc:* yocto@yoctoproject.org
> *Subject:* Re: [yocto] Fwd: OpenSSH pre login banner
>
> ** **
>
> Yes Brayan
>
> ** **
>
> I did the whole process again and  looked into Target filesystem /etc/ssh.
> I can see the banner file with my content is there
>
> /etc/ssh/banner
>
> ** **
>
> Then I see the /etc/ssh/sshd-config with Banner variable to set to
> /etc/ssh/sshd-config
>
> ** **
>
> But still, when I do ssh IP_address, I did not see any Banner message .***
> *
>
> ** **
>
> I restarted the sshd service without any luck
>
> ** **
>
> I have connected to board using putty on serial line /dev/ttyUSB1 .
>
> ** **
>
> What could be the problem here?? 
>
> ** **
>
> On Thu, Oct 3, 2013 at 10:17 AM, Bryan Evenson 
> wrote:
>
> Amit,
>
>  
>
> To me it looks like it did not take your sshd_config file.  Maybe try
> adding it to the SRC_URI in your bbappend?
>
>  
>
> Instead of running the updated package on your target board, you can open
> up the newly created package and verify the file you want is where it
> should be.  Ipks are basically a tar.gz file, so you can open their
> contents with any unpacking tool that can read tar.gz (file-roller is what
> I use).  In the .ipk, open up the etc/ssh/sshd_config file and verify it
> matches the one with your modifications.  If not, then Bitbake isn’t
> grabbing your modified sshd_config.  If you’re using RPM or DEB packages, I
> believe something similar can be done.
>
>  
>
> -Bryan
>
>  
>
> *From:* Amit Tomer [mailto:amittome...@gmail.com]
> *Sent:* Thursday, October 03, 2013 10:41 AM
> *To:* Bryan Evenson; yocto@yoctoproject.org
>
>
> *Subject:* Re: [yocto] Fwd: OpenSSH pre login banner
>
>  
>
> Fine Bryan,Thanks for your Suggestion
>
>  
>
> Not sure should I Share it with you or not but I have seen very weird
> behaviour on my Targer board regarding Openssh Banner.
>
>  
>
> When I login to my Hardware Board(after freash boot) and do ssh
> some_ip_address ,I am able to see Banner message
>
> But in /etc/ssh/sshd_config file 
>
>  
>
> #Banner is set to nothing
>
>  
>
> Then when I do ssh some_ip_address again ,I could not see any banner as it
> is expected behaviour.
>
>  
>
> Hope you would provide any pointer on the same .
>
>  
>
> Thanks 
>
> Amit 
>
>  
>
>  
>
>  
>
>  
>
> On Thu, Oct 3, 2013 at 7:40 PM, Bryan Evenson 
> wrote:
>
> Amit,
>
>  
>
> Good to hear you got your recipe in order.  Best way to learn more about
> the Yocto Project and the Poky distribution is through watching this
> mailing list and the Poky mailing list (p...@yoctoproject.org) to see how
> other people solve their problems they come across.  And, by reading the
> documentation over at http://www.yoctoproject.org/documentation/current/.*
> ***
>
>  
>
> -Bryan 
>
>  
>
> *From:* Amit Tomer [mailto:amittome...@gmail.com]
> *Sent:* Thursday, October 03, 2013 10:03 AM
>
>
> *To:* Bryan Evenson
> *Cc:* yocto@yoctoproject.org
> *Subject:* Re: [yocto] Fwd: OpenSSH pre login banner
>
>  
>
> Thanks again Bryan for your kind response 
>
>  
>
> The reason for having the PRINC ="4" is becaue when I started modifying
> this already existing file
>
> value of PRINC is set 3 ,so for my changes I Incremented it to One.
>
>  
>
> Change
>
> SRC_URI = “file://banner”
>
> To
>
> SRC_URI += “file://banner“
>
>  
>
> I am really feeling bit stupid here ,I just in hurry forgot to put + sign*
> ***
>
> Though I learned a new point 
>
>  
>
> "With your line, you are overriding all the SRC_URI for the entire openssh
> recipe and the openssh recipe will only include the banner file ".
>
>  
>
> Change
>
> FILESEXTRAPATHS_prepend := "${THISDIR}/openssh-6.1p1:"
>
> to
>
> FILESEXTRAPATHS_prepend := "${THISDIR}:"
>
>  
>
> We already had openssh-6.1p1 folder where our sshd_config file is placed
> ,So I guess it won't harm
>
> much if I put FILESEXTRAPATHS_prepend := "${THISDIR}/openssh-6.1p1:" with
> banner file in openssh-6.1p1 folder
>
>  
>
> One more point wanted from your end,what is best way to learn Yocto
>
> How can improve my knowledge in Yocto?
>
>  
>
> Thanks 
>
> Amit.
>
>  
>
>  
>
>  
>
>  
>
> On Thu, Oct 3, 2013 at 7:05 PM, Bryan Evenson 
> wrote:
>
> Amit,
>
>  
>
> First, I suggest you change
>
> P

Re: [yocto] Fwd: OpenSSH pre login banner

2013-10-03 Thread Matthew Weigel

On 10/03/2013 01:36 PM, Amit Tomer wrote:

Yes Brayan

I did the whole process again and  looked into Target filesystem
/etc/ssh. I can see the banner file with my content is there
/etc/ssh/banner

Then I see the /etc/ssh/sshd-config with Banner variable to set to
/etc/ssh/sshd-config


Is the file named "sshd-config" with a hyphen or "sshd_config" with an 
underscore?  That might be the problem.

--
 Matthew Weigel


___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Fwd: OpenSSH pre login banner

2013-10-03 Thread Bryan Evenson
Amit,

Did you name the file sshd-config or sshd_config?  Because it should be 
sshd_config.

-Bryan

From: Amit Tomer [mailto:amittome...@gmail.com]
Sent: Thursday, October 03, 2013 2:36 PM
To: Bryan Evenson
Cc: yocto@yoctoproject.org
Subject: Re: [yocto] Fwd: OpenSSH pre login banner

Yes Brayan

I did the whole process again and  looked into Target filesystem /etc/ssh. I 
can see the banner file with my content is there
/etc/ssh/banner

Then I see the /etc/ssh/sshd-config with Banner variable to set to 
/etc/ssh/sshd-config

But still, when I do ssh IP_address, I did not see any Banner message .

I restarted the sshd service without any luck

I have connected to board using putty on serial line /dev/ttyUSB1 .

What could be the problem here??

On Thu, Oct 3, 2013 at 10:17 AM, Bryan Evenson 
mailto:beven...@melinkcorp.com>> wrote:
Amit,

To me it looks like it did not take your sshd_config file.  Maybe try adding it 
to the SRC_URI in your bbappend?

Instead of running the updated package on your target board, you can open up 
the newly created package and verify the file you want is where it should be.  
Ipks are basically a tar.gz file, so you can open their contents with any 
unpacking tool that can read tar.gz (file-roller is what I use).  In the .ipk, 
open up the etc/ssh/sshd_config file and verify it matches the one with your 
modifications.  If not, then Bitbake isn't grabbing your modified sshd_config.  
If you're using RPM or DEB packages, I believe something similar can be done.

-Bryan

From: Amit Tomer [mailto:amittome...@gmail.com]
Sent: Thursday, October 03, 2013 10:41 AM
To: Bryan Evenson; yocto@yoctoproject.org

Subject: Re: [yocto] Fwd: OpenSSH pre login banner

Fine Bryan,Thanks for your Suggestion

Not sure should I Share it with you or not but I have seen very weird behaviour 
on my Targer board regarding Openssh Banner.

When I login to my Hardware Board(after freash boot) and do ssh some_ip_address 
,I am able to see Banner message
But in /etc/ssh/sshd_config file

#Banner is set to nothing

Then when I do ssh some_ip_address again ,I could not see any banner as it is 
expected behaviour.

Hope you would provide any pointer on the same .

Thanks
Amit




On Thu, Oct 3, 2013 at 7:40 PM, Bryan Evenson 
mailto:beven...@melinkcorp.com>> wrote:
Amit,

Good to hear you got your recipe in order.  Best way to learn more about the 
Yocto Project and the Poky distribution is through watching this mailing list 
and the Poky mailing list (p...@yoctoproject.org) 
to see how other people solve their problems they come across.  And, by reading 
the documentation over at http://www.yoctoproject.org/documentation/current/.

-Bryan

From: Amit Tomer [mailto:amittome...@gmail.com]
Sent: Thursday, October 03, 2013 10:03 AM

To: Bryan Evenson
Cc: yocto@yoctoproject.org
Subject: Re: [yocto] Fwd: OpenSSH pre login banner

Thanks again Bryan for your kind response

The reason for having the PRINC ="4" is becaue when I started modifying this 
already existing file
value of PRINC is set 3 ,so for my changes I Incremented it to One.

Change
SRC_URI = "file://banner"
To
SRC_URI += "file://banner"

I am really feeling bit stupid here ,I just in hurry forgot to put + sign
Though I learned a new point

"With your line, you are overriding all the SRC_URI for the entire openssh 
recipe and the openssh recipe will only include the banner file ".

Change
FILESEXTRAPATHS_prepend := "${THISDIR}/openssh-6.1p1:"
to
FILESEXTRAPATHS_prepend := "${THISDIR}:"

We already had openssh-6.1p1 folder where our sshd_config file is placed ,So I 
guess it won't harm
much if I put FILESEXTRAPATHS_prepend := "${THISDIR}/openssh-6.1p1:" with 
banner file in openssh-6.1p1 folder

One more point wanted from your end,what is best way to learn Yocto
How can improve my knowledge in Yocto?

Thanks
Amit.




On Thu, Oct 3, 2013 at 7:05 PM, Bryan Evenson 
mailto:beven...@melinkcorp.com>> wrote:
Amit,

First, I suggest you change
PRINC = "4"
to
PRINC := "${@int(PRINC) + 1}"

This way your bbappend will always increment the PR to one more than the PR 
called out by the main recipe.  So if the openssh recipe would get updated and 
increment the PR, you do not have to change your bbappend.

Change
SRC_URI = "file://banner"
To
SRC_URI += "file://banner"

The += appends your banner file to the SRC_URI for the openssh recipe.  With 
your line, you are overriding all the SRC_URI for the entire openssh recipe and 
the openssh recipe will only include the banner file.  I've taken to the habit 
of writing the SRC_URI as follows:

SRC_URI += " \
file://banner \
"
just to ensure that words aren't joined together when my SRC_URI is appended to 
the existing one.  I don't know if this is strictly necessary, but it's not a 
bad habit.

Change
FILESEXTRAPATHS_prepend := "${THISDIR}/openssh-6.1p1:"
to
FILESEXTR

Re: [yocto] Fwd: OpenSSH pre login banner

2013-10-03 Thread Amit Tomer
Yes Brayan

I did the whole process again and  looked into Target filesystem /etc/ssh.
I can see the banner file with my content is there
/etc/ssh/banner

Then I see the /etc/ssh/sshd-config with Banner variable to set to
/etc/ssh/sshd-config

But still, when I do ssh IP_address, I did not see any Banner message .

I restarted the sshd service without any luck

I have connected to board using putty on serial line /dev/ttyUSB1 .

What could be the problem here??


On Thu, Oct 3, 2013 at 10:17 AM, Bryan Evenson wrote:

> Amit,
>
> ** **
>
> To me it looks like it did not take your sshd_config file.  Maybe try
> adding it to the SRC_URI in your bbappend?
>
> ** **
>
> Instead of running the updated package on your target board, you can open
> up the newly created package and verify the file you want is where it
> should be.  Ipks are basically a tar.gz file, so you can open their
> contents with any unpacking tool that can read tar.gz (file-roller is what
> I use).  In the .ipk, open up the etc/ssh/sshd_config file and verify it
> matches the one with your modifications.  If not, then Bitbake isn’t
> grabbing your modified sshd_config.  If you’re using RPM or DEB packages, I
> believe something similar can be done.
>
> ** **
>
> -Bryan
>
> ** **
>
> *From:* Amit Tomer [mailto:amittome...@gmail.com]
> *Sent:* Thursday, October 03, 2013 10:41 AM
> *To:* Bryan Evenson; yocto@yoctoproject.org
>
> *Subject:* Re: [yocto] Fwd: OpenSSH pre login banner
>
> ** **
>
> Fine Bryan,Thanks for your Suggestion
>
> ** **
>
> Not sure should I Share it with you or not but I have seen very weird
> behaviour on my Targer board regarding Openssh Banner.
>
> ** **
>
> When I login to my Hardware Board(after freash boot) and do ssh
> some_ip_address ,I am able to see Banner message
>
> But in /etc/ssh/sshd_config file 
>
> ** **
>
> #Banner is set to nothing
>
> ** **
>
> Then when I do ssh some_ip_address again ,I could not see any banner as it
> is expected behaviour.
>
> ** **
>
> Hope you would provide any pointer on the same .
>
> ** **
>
> Thanks 
>
> Amit 
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> On Thu, Oct 3, 2013 at 7:40 PM, Bryan Evenson 
> wrote:
>
> Amit,
>
>  
>
> Good to hear you got your recipe in order.  Best way to learn more about
> the Yocto Project and the Poky distribution is through watching this
> mailing list and the Poky mailing list (p...@yoctoproject.org) to see how
> other people solve their problems they come across.  And, by reading the
> documentation over at http://www.yoctoproject.org/documentation/current/.*
> ***
>
>  
>
> -Bryan 
>
>  
>
> *From:* Amit Tomer [mailto:amittome...@gmail.com]
> *Sent:* Thursday, October 03, 2013 10:03 AM
>
>
> *To:* Bryan Evenson
> *Cc:* yocto@yoctoproject.org
> *Subject:* Re: [yocto] Fwd: OpenSSH pre login banner
>
>  
>
> Thanks again Bryan for your kind response 
>
>  
>
> The reason for having the PRINC ="4" is becaue when I started modifying
> this already existing file
>
> value of PRINC is set 3 ,so for my changes I Incremented it to One.
>
>  
>
> Change
>
> SRC_URI = “file://banner”
>
> To
>
> SRC_URI += “file://banner“
>
>  
>
> I am really feeling bit stupid here ,I just in hurry forgot to put + sign*
> ***
>
> Though I learned a new point 
>
>  
>
> "With your line, you are overriding all the SRC_URI for the entire openssh
> recipe and the openssh recipe will only include the banner file ".
>
>  
>
> Change
>
> FILESEXTRAPATHS_prepend := "${THISDIR}/openssh-6.1p1:"
>
> to
>
> FILESEXTRAPATHS_prepend := "${THISDIR}:"
>
>  
>
> We already had openssh-6.1p1 folder where our sshd_config file is placed
> ,So I guess it won't harm
>
> much if I put FILESEXTRAPATHS_prepend := "${THISDIR}/openssh-6.1p1:" with
> banner file in openssh-6.1p1 folder
>
>  
>
> One more point wanted from your end,what is best way to learn Yocto
>
> How can improve my knowledge in Yocto?
>
>  
>
> Thanks 
>
> Amit.
>
>  
>
>  
>
>  
>
>  
>
> On Thu, Oct 3, 2013 at 7:05 PM, Bryan Evenson 
> wrote:
>
> Amit,
>
>  
>
> First, I suggest you change
>
> PRINC = “4”
>
> to
>
> PRINC := "${@int(PRINC) + 1}"
>
>  
>
> This way your bbappend will always increment the PR to one more than the
> PR called out by the main recipe.  So if the openssh recipe would get
> updated and increment the PR, you do not have to change your bbappend.
>
>  
>
> Change
>
> SRC_URI = “file://banner”
>
> To
>
> SRC_URI += “file://banner“
>
>  
>
> The += appends your banner file to the SRC_URI for the openssh recipe.
> With your line, you are overriding all the SRC_URI for the entire openssh
> recipe and the openssh recipe will only include the banner file.  I’ve
> taken to the habit of writing the SRC_URI as follows:
>
>  
>
> SRC_

Re: [yocto] Fwd: OpenSSH pre login banner

2013-10-03 Thread Bryan Evenson
Amit,

To me it looks like it did not take your sshd_config file.  Maybe try adding it 
to the SRC_URI in your bbappend?

Instead of running the updated package on your target board, you can open up 
the newly created package and verify the file you want is where it should be.  
Ipks are basically a tar.gz file, so you can open their contents with any 
unpacking tool that can read tar.gz (file-roller is what I use).  In the .ipk, 
open up the etc/ssh/sshd_config file and verify it matches the one with your 
modifications.  If not, then Bitbake isn't grabbing your modified sshd_config.  
If you're using RPM or DEB packages, I believe something similar can be done.

-Bryan

From: Amit Tomer [mailto:amittome...@gmail.com]
Sent: Thursday, October 03, 2013 10:41 AM
To: Bryan Evenson; yocto@yoctoproject.org
Subject: Re: [yocto] Fwd: OpenSSH pre login banner

Fine Bryan,Thanks for your Suggestion

Not sure should I Share it with you or not but I have seen very weird behaviour 
on my Targer board regarding Openssh Banner.

When I login to my Hardware Board(after freash boot) and do ssh some_ip_address 
,I am able to see Banner message
But in /etc/ssh/sshd_config file

#Banner is set to nothing

Then when I do ssh some_ip_address again ,I could not see any banner as it is 
expected behaviour.

Hope you would provide any pointer on the same .

Thanks
Amit




On Thu, Oct 3, 2013 at 7:40 PM, Bryan Evenson 
mailto:beven...@melinkcorp.com>> wrote:
Amit,

Good to hear you got your recipe in order.  Best way to learn more about the 
Yocto Project and the Poky distribution is through watching this mailing list 
and the Poky mailing list (p...@yoctoproject.org) 
to see how other people solve their problems they come across.  And, by reading 
the documentation over at http://www.yoctoproject.org/documentation/current/.

-Bryan

From: Amit Tomer [mailto:amittome...@gmail.com]
Sent: Thursday, October 03, 2013 10:03 AM

To: Bryan Evenson
Cc: yocto@yoctoproject.org
Subject: Re: [yocto] Fwd: OpenSSH pre login banner

Thanks again Bryan for your kind response

The reason for having the PRINC ="4" is becaue when I started modifying this 
already existing file
value of PRINC is set 3 ,so for my changes I Incremented it to One.

Change
SRC_URI = "file://banner"
To
SRC_URI += "file://banner"

I am really feeling bit stupid here ,I just in hurry forgot to put + sign
Though I learned a new point

"With your line, you are overriding all the SRC_URI for the entire openssh 
recipe and the openssh recipe will only include the banner file ".

Change
FILESEXTRAPATHS_prepend := "${THISDIR}/openssh-6.1p1:"
to
FILESEXTRAPATHS_prepend := "${THISDIR}:"

We already had openssh-6.1p1 folder where our sshd_config file is placed ,So I 
guess it won't harm
much if I put FILESEXTRAPATHS_prepend := "${THISDIR}/openssh-6.1p1:" with 
banner file in openssh-6.1p1 folder

One more point wanted from your end,what is best way to learn Yocto
How can improve my knowledge in Yocto?

Thanks
Amit.




On Thu, Oct 3, 2013 at 7:05 PM, Bryan Evenson 
mailto:beven...@melinkcorp.com>> wrote:
Amit,

First, I suggest you change
PRINC = "4"
to
PRINC := "${@int(PRINC) + 1}"

This way your bbappend will always increment the PR to one more than the PR 
called out by the main recipe.  So if the openssh recipe would get updated and 
increment the PR, you do not have to change your bbappend.

Change
SRC_URI = "file://banner"
To
SRC_URI += "file://banner"

The += appends your banner file to the SRC_URI for the openssh recipe.  With 
your line, you are overriding all the SRC_URI for the entire openssh recipe and 
the openssh recipe will only include the banner file.  I've taken to the habit 
of writing the SRC_URI as follows:

SRC_URI += " \
file://banner \
"
just to ensure that words aren't joined together when my SRC_URI is appended to 
the existing one.  I don't know if this is strictly necessary, but it's not a 
bad habit.

Change
FILESEXTRAPATHS_prepend := "${THISDIR}/openssh-6.1p1:"
to
FILESEXTRAPATHS_prepend := "${THISDIR}:"

so Bitbake can find your banner file and sshd_config that you have in the same 
directory as the bbappend.

I can't remember if you get a warning if Bitbake can't find the license file at 
all or if it fails on each attempt through the filepath.  Since your new path 
is first, it won't find LICENCE in your layer since you didn't copy it.  Once 
way to quiet this warning would be to copy the license file to your directory.

-Bryan

From: Amit Tomer [mailto:amittome...@gmail.com]
Sent: Thursday, October 03, 2013 8:23 AM
To: Bryan Evenson
Cc: yocto@yoctoproject.org
Subject: Re: [yocto] Fwd: OpenSSH pre login banner

Hi Brayan

Thanks for your help

The way I modify .bbapend file is below

PRINC = "4"
SRC_URI = "file://banner"
FILESEXTRAPATHS_prepend := "${THISDIR}/openssh-6.1p1:"
do_install_append() {

In

Re: [yocto] Install Kernel Modules in rootfs

2013-10-03 Thread Raul Rosetto Munoz
Bruce, I don't know if i did the correct thing but works.

I found in my tmp some thing about kernel 3.8 fslc and I deleted it.



/tmp$ find . -name "*3.8*" | grep fslc
./stamps/imx28evk-poky-linux-gnueabi/linux-fslc/3.8+gitAUTOINC+72053409242244eaa59497e665945ddeea69c397-r5.do_cleansstate.sigdata.fff4fea9e1722790f7eb22d5d464b82a
./stamps/imx28evk-poky-linux-gnueabi/linux-fslc/3.8+gitAUTOINC+72053409242244eaa59497e665945ddeea69c397-r5.do_cleansstate.fff4fea9e1722790f7eb22d5d464b82a
./work/imx28evk-poky-linux-gnueabi/linux-fslc/3.8+gitAUTOINC+72053409242244eaa59497e665945ddeea69c397-r5
./work/imx28evk-poky-linux-gnueabi/core-image-minimal/1.0-r0/rootfs/lib/modules/3.8.13-fslc+g7205340
./work/imx28evk-poky-linux-gnueabi/core-image-minimal/1.0-r0/rootfs/boot/uImage-3.8.13-fslc+g7205340
./work/imx28evk-poky-linux-gnueabi/core-image-minimal/1.0-r0/rootfs/etc/rpm-postinsts/kernel-image-3.8.13-fslc+g7205340
./buildstats/virtual/kernel-imx28evk/201310011528/linux-fslc-3.8+gitAUTOINC+72053409242244eaa59497e665945ddeea69c397-r5


After that I returned my prefered kernel version for 3.8, and did a bitbake
cleanall virtual/kernel.

And change again my kernel version for default 2.6.35 and works perfect.

Thanks For all help, did you help me a lot!



On Thu, Oct 3, 2013 at 11:22 AM, Bruce Ashfield <
bruce.ashfi...@windriver.com> wrote:

> On 13-10-03 10:09 AM, Raul Rosetto Munoz wrote:
>
>> Look all the time the modules of kernel 3.8 come.
>>
>> My /lib/modules is like this:
>>
>
> That's where ? In your booted target ? What BSP are you using, how did
> you install the image ?
>
> Answering that question, will likely get you your answer. If you previously
> generated a rootfs and installed it. You'd need to do the same thing
> and do it with a clean install with the new kernel to remove all
> remnants of the old package.
>
> (That's assuming you aren't using package management on the target,
> or package feeds. I don't, so manually look after this sort of thing).
>
> Cheers,
>
> Bruce
>
>
>> /lib/modules$ ll
>> total 16
>> drwxr-xr-x 4 raul raul 4096 Oct  3 10:09 ./
>> drwxr-xr-x 7 raul raul 4096 Oct  3 10:09 ../
>> drwxr-xr-x 2 raul raul 4096 Oct  3 10:09 2.6.35.3-1.1.0+yocto+g914558e/
>> drwxr-xr-x 3 raul raul 4096 Oct  1 15:45 3.8.13-fslc+g7205340/
>>
>>
>> /lib/modules$ ll 2.6.35.3-1.1.0+yocto+g914558e/
>> total 36
>> drwxr-xr-x 2 raul raul 4096 Oct  3 10:09 ./
>> drwxr-xr-x 4 raul raul 4096 Oct  3 10:09 ../
>> -rw-r--r-- 1 raul raul   45 Oct  3 10:09 modules.alias
>> -rw-r--r-- 1 raul raul   12 Oct  3 10:09 modules.alias.bin
>> -rw-r--r-- 1 raul raul0 Oct  3 10:09 modules.builtin.bin
>> -rw-r--r-- 1 raul raul0 Oct  3 10:09 modules.dep
>> -rw-r--r-- 1 raul raul   12 Oct  3 10:09 modules.dep.bin
>> -rw-r--r-- 1 raul raul   52 Oct  3 10:09 modules.devname
>> -rw-r--r-- 1 raul raul  131 Oct  3 10:09 modules.softdep
>> -rw-r--r-- 1 raul raul   49 Oct  3 10:09 modules.symbols
>> -rw-r--r-- 1 raul raul   12 Oct  3 10:09 modules.symbols.bin
>>
>> /lib/modules$ ll 3.8.13-fslc+g7205340/
>> total 24
>> drwxr-xr-x 3 raul raul 4096 Oct  1 15:45 ./
>> drwxr-xr-x 4 raul raul 4096 Oct  3 10:09 ../
>> drwxr-xr-x 6 raul raul 4096 Oct  1 15:45 kernel/
>> -rw-r--r-- 1 raul raul 5153 Oct  1 15:45 modules.builtin
>> -rw-r--r-- 1 raul raul  391 Oct  1 15:45 modules.order
>>
>> I have no idea how to remove the remains of the kernel 3.8.
>>
>> I dont want to delete all the /tmp
>>
>> =/
>>
>> Take so much time.
>>
>>
>>
>>
>>
>>
>>
>>
>> On Thu, Oct 3, 2013 at 10:58 AM, Bruce Ashfield
>> > >
>> wrote:
>>
>>
>> On 13-10-03 09 :32 AM, Raul Rosetto Munoz wrote:
>>
>> I think that I found my problem,
>>
>> I tryed to use the kernel 3.8 before in this build system, but I
>> decided
>> to go back to the 2.6.35.3.
>>
>> But now I did bitbake -c cleanall virtual/kernel, I tryed to
>> delete
>> every thing about kernel 3.8 but the modules that are instaled in
>> my
>> /lib/modules/ still be the modules of kernel 3.8.
>>
>> How I clean the modules and force to use no 2.6.35.3 again.
>>
>> Which package or command do that?
>>
>>
>> If you reconstruct your image, the old module package shouldn't be
>> re-used, since you would now have a dependency on the 2.6.35.x kernel.
>>
>> How exactly are they installed in /lib/modules ? Did you do anything
>> in particular ?
>>
>> Bruce
>>
>>
>> Thanks for all Help.
>>
>>
>> On Thu, Oct 3, 2013 at 9:38 AM, Bruce Ashfield
>> > > >
>> 
>> 
>> >>
>> wrote:
>>
>>
>>  On 13-10-03 08  :34
>>
>> AM, Raul Rosetto Munoz wrote:
>>
>>  Hello All,
>>
>>  I'm Trying to install the kernel modules inside my
>> rootfs but I
>>  

Re: [yocto] Fwd: OpenSSH pre login banner

2013-10-03 Thread Amit Tomer
Fine Bryan,Thanks for your Suggestion

Not sure should I Share it with you or not but I have seen very weird
behaviour on my Targer board regarding Openssh Banner.

When I login to my Hardware Board(after freash boot) and do ssh
some_ip_address ,I am able to see Banner message
But in /etc/ssh/sshd_config file

#Banner is set to nothing

Then when I do ssh some_ip_address again ,I could not see any banner as it
is expected behaviour.

Hope you would provide any pointer on the same .

Thanks
Amit





On Thu, Oct 3, 2013 at 7:40 PM, Bryan Evenson wrote:

> Amit,
>
> ** **
>
> Good to hear you got your recipe in order.  Best way to learn more about
> the Yocto Project and the Poky distribution is through watching this
> mailing list and the Poky mailing list (p...@yoctoproject.org) to see how
> other people solve their problems they come across.  And, by reading the
> documentation over at http://www.yoctoproject.org/documentation/current/.*
> ***
>
> ** **
>
> -Bryan 
>
> ** **
>
> *From:* Amit Tomer [mailto:amittome...@gmail.com]
> *Sent:* Thursday, October 03, 2013 10:03 AM
>
> *To:* Bryan Evenson
> *Cc:* yocto@yoctoproject.org
> *Subject:* Re: [yocto] Fwd: OpenSSH pre login banner
>
> ** **
>
> Thanks again Bryan for your kind response 
>
> ** **
>
> The reason for having the PRINC ="4" is becaue when I started modifying
> this already existing file
>
> value of PRINC is set 3 ,so for my changes I Incremented it to One.
>
> ** **
>
> Change
>
> SRC_URI = “file://banner”
>
> To
>
> SRC_URI += “file://banner“
>
> ** **
>
> I am really feeling bit stupid here ,I just in hurry forgot to put + sign*
> ***
>
> Though I learned a new point 
>
> ** **
>
> "With your line, you are overriding all the SRC_URI for the entire openssh
> recipe and the openssh recipe will only include the banner file ".
>
> ** **
>
> Change
>
> FILESEXTRAPATHS_prepend := "${THISDIR}/openssh-6.1p1:"
>
> to
>
> FILESEXTRAPATHS_prepend := "${THISDIR}:"
>
>  
>
> We already had openssh-6.1p1 folder where our sshd_config file is placed
> ,So I guess it won't harm
>
> much if I put FILESEXTRAPATHS_prepend := "${THISDIR}/openssh-6.1p1:" with
> banner file in openssh-6.1p1 folder
>
> ** **
>
> One more point wanted from your end,what is best way to learn Yocto
>
> How can improve my knowledge in Yocto?
>
> ** **
>
> Thanks 
>
> Amit.
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> On Thu, Oct 3, 2013 at 7:05 PM, Bryan Evenson 
> wrote:
>
> Amit,
>
>  
>
> First, I suggest you change
>
> PRINC = “4”
>
> to
>
> PRINC := "${@int(PRINC) + 1}"
>
>  
>
> This way your bbappend will always increment the PR to one more than the
> PR called out by the main recipe.  So if the openssh recipe would get
> updated and increment the PR, you do not have to change your bbappend.
>
>  
>
> Change
>
> SRC_URI = “file://banner”
>
> To
>
> SRC_URI += “file://banner“
>
>  
>
> The += appends your banner file to the SRC_URI for the openssh recipe.
> With your line, you are overriding all the SRC_URI for the entire openssh
> recipe and the openssh recipe will only include the banner file.  I’ve
> taken to the habit of writing the SRC_URI as follows:
>
>  
>
> SRC_URI += “ \
>
> file://banner \
>
> “
>
> just to ensure that words aren’t joined together when my SRC_URI is
> appended to the existing one.  I don’t know if this is strictly necessary,
> but it’s not a bad habit.
>
>  
>
> Change
>
> FILESEXTRAPATHS_prepend := "${THISDIR}/openssh-6.1p1:"
>
> to
>
> FILESEXTRAPATHS_prepend := "${THISDIR}:"
>
>  
>
> so Bitbake can find your banner file and sshd_config that you have in the
> same directory as the bbappend.
>
>  
>
> I can’t remember if you get a warning if Bitbake can’t find the license
> file at all or if it fails on each attempt through the filepath.  Since
> your new path is first, it won’t find LICENCE in your layer since you
> didn’t copy it.  Once way to quiet this warning would be to copy the
> license file to your directory.
>
>  
>
> -Bryan
>
>  
>
> *From:* Amit Tomer [mailto:amittome...@gmail.com]
> *Sent:* Thursday, October 03, 2013 8:23 AM
> *To:* Bryan Evenson
> *Cc:* yocto@yoctoproject.org
> *Subject:* Re: [yocto] Fwd: OpenSSH pre login banner
>
>  
>
> Hi Brayan
>
>  
>
> Thanks for your help
>
>  
>
> The way I modify .bbapend file is below
>
>  
>
> PRINC = "4"
>
> SRC_URI = "file://banner"
>
> FILESEXTRAPATHS_prepend := "${THISDIR}/openssh-6.1p1:"
>
> do_install_append() {
>
>  
>
> Install -m 755 ${WORKDIR}/banner ${D}${sysconfdir}/ssh
>
> }
>
>  
>
>  
>
>  
>
> But it gives me 
>
>  
>
> Below problem
>
>  
>
> WARNING:
> /tmp/work/cortexa15hf-vfp-neon-poky-linux-gnueabi/openssh/6.1p1-r3/openssh-6.1p1/LICENCE
> could not be copied for s

Re: [yocto] Install Kernel Modules in rootfs

2013-10-03 Thread Bruce Ashfield

On 13-10-03 10:09 AM, Raul Rosetto Munoz wrote:

Look all the time the modules of kernel 3.8 come.

My /lib/modules is like this:


That's where ? In your booted target ? What BSP are you using, how did
you install the image ?

Answering that question, will likely get you your answer. If you previously
generated a rootfs and installed it. You'd need to do the same thing
and do it with a clean install with the new kernel to remove all
remnants of the old package.

(That's assuming you aren't using package management on the target,
or package feeds. I don't, so manually look after this sort of thing).

Cheers,

Bruce



/lib/modules$ ll
total 16
drwxr-xr-x 4 raul raul 4096 Oct  3 10:09 ./
drwxr-xr-x 7 raul raul 4096 Oct  3 10:09 ../
drwxr-xr-x 2 raul raul 4096 Oct  3 10:09 2.6.35.3-1.1.0+yocto+g914558e/
drwxr-xr-x 3 raul raul 4096 Oct  1 15:45 3.8.13-fslc+g7205340/


/lib/modules$ ll 2.6.35.3-1.1.0+yocto+g914558e/
total 36
drwxr-xr-x 2 raul raul 4096 Oct  3 10:09 ./
drwxr-xr-x 4 raul raul 4096 Oct  3 10:09 ../
-rw-r--r-- 1 raul raul   45 Oct  3 10:09 modules.alias
-rw-r--r-- 1 raul raul   12 Oct  3 10:09 modules.alias.bin
-rw-r--r-- 1 raul raul0 Oct  3 10:09 modules.builtin.bin
-rw-r--r-- 1 raul raul0 Oct  3 10:09 modules.dep
-rw-r--r-- 1 raul raul   12 Oct  3 10:09 modules.dep.bin
-rw-r--r-- 1 raul raul   52 Oct  3 10:09 modules.devname
-rw-r--r-- 1 raul raul  131 Oct  3 10:09 modules.softdep
-rw-r--r-- 1 raul raul   49 Oct  3 10:09 modules.symbols
-rw-r--r-- 1 raul raul   12 Oct  3 10:09 modules.symbols.bin

/lib/modules$ ll 3.8.13-fslc+g7205340/
total 24
drwxr-xr-x 3 raul raul 4096 Oct  1 15:45 ./
drwxr-xr-x 4 raul raul 4096 Oct  3 10:09 ../
drwxr-xr-x 6 raul raul 4096 Oct  1 15:45 kernel/
-rw-r--r-- 1 raul raul 5153 Oct  1 15:45 modules.builtin
-rw-r--r-- 1 raul raul  391 Oct  1 15:45 modules.order

I have no idea how to remove the remains of the kernel 3.8.

I dont want to delete all the /tmp

=/

Take so much time.








On Thu, Oct 3, 2013 at 10:58 AM, Bruce Ashfield
mailto:bruce.ashfi...@windriver.com>> wrote:

On 13-10-03 09 :32 AM, Raul Rosetto Munoz wrote:

I think that I found my problem,

I tryed to use the kernel 3.8 before in this build system, but I
decided
to go back to the 2.6.35.3.

But now I did bitbake -c cleanall virtual/kernel, I tryed to delete
every thing about kernel 3.8 but the modules that are instaled in my
/lib/modules/ still be the modules of kernel 3.8.

How I clean the modules and force to use no 2.6.35.3 again.

Which package or command do that?


If you reconstruct your image, the old module package shouldn't be
re-used, since you would now have a dependency on the 2.6.35.x kernel.

How exactly are they installed in /lib/modules ? Did you do anything
in particular ?

Bruce


Thanks for all Help.


On Thu, Oct 3, 2013 at 9:38 AM, Bruce Ashfield
mailto:bruce.ashfi...@windriver.com>
>> wrote:


 On 13-10-03 08  :34
AM, Raul Rosetto Munoz wrote:

 Hello All,

 I'm Trying to install the kernel modules inside my
rootfs but I
 couldn't
 find an especific information that help me to do that!

 I have in my /tmp/images/ the tgz with all the modules
that I need.

 modules--2.6.35.3-r32.23-imx28evk-20131002210958.tgz


 I just want that this tzg was extracted inside my rootfs
 /lib/modules.

 Please some one can help me with this?


 Does your image type have a RDEPENDS on "kernel-modules",
or do you
 have IMAGE_INSTALL_append = " kernel-modules", in your
local.conf ?

 If you do either of the above, the entire set of built
modules will
 be installed.

 You can also install / require individual modules via
 kernel-module-.

 The Yocto docs should have details on this as well.

 Cheers,

 Bruce


 Thanks so much.

 --
 *Raul Rosetto Muñoz*


 ___
 yocto mailing list
yocto@yoctoproject.org 
__>
https://lists.yoctoproject.org/listinfo/yocto

 >





--
*Raul Rosetto Muñoz*





--
*Raul Rosetto Muñoz*


___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Install Kernel Modules in rootfs

2013-10-03 Thread Raul Rosetto Munoz
Look all the time the modules of kernel 3.8 come.

My /lib/modules is like this:

/lib/modules$ ll
total 16
drwxr-xr-x 4 raul raul 4096 Oct  3 10:09 ./
drwxr-xr-x 7 raul raul 4096 Oct  3 10:09 ../
drwxr-xr-x 2 raul raul 4096 Oct  3 10:09 2.6.35.3-1.1.0+yocto+g914558e/
drwxr-xr-x 3 raul raul 4096 Oct  1 15:45 3.8.13-fslc+g7205340/


/lib/modules$ ll 2.6.35.3-1.1.0+yocto+g914558e/
total 36
drwxr-xr-x 2 raul raul 4096 Oct  3 10:09 ./
drwxr-xr-x 4 raul raul 4096 Oct  3 10:09 ../
-rw-r--r-- 1 raul raul   45 Oct  3 10:09 modules.alias
-rw-r--r-- 1 raul raul   12 Oct  3 10:09 modules.alias.bin
-rw-r--r-- 1 raul raul0 Oct  3 10:09 modules.builtin.bin
-rw-r--r-- 1 raul raul0 Oct  3 10:09 modules.dep
-rw-r--r-- 1 raul raul   12 Oct  3 10:09 modules.dep.bin
-rw-r--r-- 1 raul raul   52 Oct  3 10:09 modules.devname
-rw-r--r-- 1 raul raul  131 Oct  3 10:09 modules.softdep
-rw-r--r-- 1 raul raul   49 Oct  3 10:09 modules.symbols
-rw-r--r-- 1 raul raul   12 Oct  3 10:09 modules.symbols.bin

/lib/modules$ ll 3.8.13-fslc+g7205340/
total 24
drwxr-xr-x 3 raul raul 4096 Oct  1 15:45 ./
drwxr-xr-x 4 raul raul 4096 Oct  3 10:09 ../
drwxr-xr-x 6 raul raul 4096 Oct  1 15:45 kernel/
-rw-r--r-- 1 raul raul 5153 Oct  1 15:45 modules.builtin
-rw-r--r-- 1 raul raul  391 Oct  1 15:45 modules.order

I have no idea how to remove the remains of the kernel 3.8.

I dont want to delete all the /tmp

=/

Take so much time.








On Thu, Oct 3, 2013 at 10:58 AM, Bruce Ashfield <
bruce.ashfi...@windriver.com> wrote:

> On 13-10-03 09:32 AM, Raul Rosetto Munoz wrote:
>
>> I think that I found my problem,
>>
>> I tryed to use the kernel 3.8 before in this build system, but I decided
>> to go back to the 2.6.35.3.
>>
>> But now I did bitbake -c cleanall virtual/kernel, I tryed to delete
>> every thing about kernel 3.8 but the modules that are instaled in my
>> /lib/modules/ still be the modules of kernel 3.8.
>>
>> How I clean the modules and force to use no 2.6.35.3 again.
>>
>> Which package or command do that?
>>
>
> If you reconstruct your image, the old module package shouldn't be
> re-used, since you would now have a dependency on the 2.6.35.x kernel.
>
> How exactly are they installed in /lib/modules ? Did you do anything
> in particular ?
>
> Bruce
>
>
>> Thanks for all Help.
>>
>>
>> On Thu, Oct 3, 2013 at 9:38 AM, Bruce Ashfield
>> > >
>> wrote:
>>
>>
>> On 13-10-03 08 :34 AM, Raul Rosetto Munoz wrote:
>>
>> Hello All,
>>
>> I'm Trying to install the kernel modules inside my rootfs but I
>> couldn't
>> find an especific information that help me to do that!
>>
>> I have in my /tmp/images/ the tgz with all the modules that I
>> need.
>>
>> modules--2.6.35.3-r32.23-__**imx28evk-20131002210958.tgz
>>
>>
>> I just want that this tzg was extracted inside my rootfs
>> /lib/modules.
>>
>> Please some one can help me with this?
>>
>>
>> Does your image type have a RDEPENDS on "kernel-modules", or do you
>> have IMAGE_INSTALL_append = " kernel-modules", in your local.conf ?
>>
>> If you do either of the above, the entire set of built modules will
>> be installed.
>>
>> You can also install / require individual modules via
>> kernel-module-.
>>
>> The Yocto docs should have details on this as well.
>>
>> Cheers,
>>
>> Bruce
>>
>>
>> Thanks so much.
>>
>> --
>> *Raul Rosetto Muñoz*
>>
>>
>> __**___
>> yocto mailing list
>> yocto@yoctoproject.org 
>> https://lists.yoctoproject.__**org/listinfo/yocto
>>
>> 
>> 
>> >
>>
>>
>>
>>
>>
>> --
>> *Raul Rosetto Muñoz*
>>
>
>


-- 
*Raul Rosetto Muñoz*
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Fwd: OpenSSH pre login banner

2013-10-03 Thread Bryan Evenson
Amit,

Good to hear you got your recipe in order.  Best way to learn more about the 
Yocto Project and the Poky distribution is through watching this mailing list 
and the Poky mailing list (p...@yoctoproject.org) 
to see how other people solve their problems they come across.  And, by reading 
the documentation over at http://www.yoctoproject.org/documentation/current/.

-Bryan

From: Amit Tomer [mailto:amittome...@gmail.com]
Sent: Thursday, October 03, 2013 10:03 AM
To: Bryan Evenson
Cc: yocto@yoctoproject.org
Subject: Re: [yocto] Fwd: OpenSSH pre login banner

Thanks again Bryan for your kind response

The reason for having the PRINC ="4" is becaue when I started modifying this 
already existing file
value of PRINC is set 3 ,so for my changes I Incremented it to One.

Change
SRC_URI = "file://banner"
To
SRC_URI += "file://banner"

I am really feeling bit stupid here ,I just in hurry forgot to put + sign
Though I learned a new point

"With your line, you are overriding all the SRC_URI for the entire openssh 
recipe and the openssh recipe will only include the banner file ".

Change
FILESEXTRAPATHS_prepend := "${THISDIR}/openssh-6.1p1:"
to
FILESEXTRAPATHS_prepend := "${THISDIR}:"

We already had openssh-6.1p1 folder where our sshd_config file is placed ,So I 
guess it won't harm
much if I put FILESEXTRAPATHS_prepend := "${THISDIR}/openssh-6.1p1:" with 
banner file in openssh-6.1p1 folder

One more point wanted from your end,what is best way to learn Yocto
How can improve my knowledge in Yocto?

Thanks
Amit.




On Thu, Oct 3, 2013 at 7:05 PM, Bryan Evenson 
mailto:beven...@melinkcorp.com>> wrote:
Amit,

First, I suggest you change
PRINC = "4"
to
PRINC := "${@int(PRINC) + 1}"

This way your bbappend will always increment the PR to one more than the PR 
called out by the main recipe.  So if the openssh recipe would get updated and 
increment the PR, you do not have to change your bbappend.

Change
SRC_URI = "file://banner"
To
SRC_URI += "file://banner"

The += appends your banner file to the SRC_URI for the openssh recipe.  With 
your line, you are overriding all the SRC_URI for the entire openssh recipe and 
the openssh recipe will only include the banner file.  I've taken to the habit 
of writing the SRC_URI as follows:

SRC_URI += " \
file://banner \
"
just to ensure that words aren't joined together when my SRC_URI is appended to 
the existing one.  I don't know if this is strictly necessary, but it's not a 
bad habit.

Change
FILESEXTRAPATHS_prepend := "${THISDIR}/openssh-6.1p1:"
to
FILESEXTRAPATHS_prepend := "${THISDIR}:"

so Bitbake can find your banner file and sshd_config that you have in the same 
directory as the bbappend.

I can't remember if you get a warning if Bitbake can't find the license file at 
all or if it fails on each attempt through the filepath.  Since your new path 
is first, it won't find LICENCE in your layer since you didn't copy it.  Once 
way to quiet this warning would be to copy the license file to your directory.

-Bryan

From: Amit Tomer [mailto:amittome...@gmail.com]
Sent: Thursday, October 03, 2013 8:23 AM
To: Bryan Evenson
Cc: yocto@yoctoproject.org
Subject: Re: [yocto] Fwd: OpenSSH pre login banner

Hi Brayan

Thanks for your help

The way I modify .bbapend file is below

PRINC = "4"
SRC_URI = "file://banner"
FILESEXTRAPATHS_prepend := "${THISDIR}/openssh-6.1p1:"
do_install_append() {

Install -m 755 ${WORKDIR}/banner ${D}${sysconfdir}/ssh
}



But it gives me

Below problem

WARNING: 
/tmp/work/cortexa15hf-vfp-neon-poky-linux-gnueabi/openssh/6.1p1-r3/openssh-6.1p1/LICENCE
 could not be copied for some reason. It may not exist. WARN for now.

And my build process is really got slow and sometimes I am getting the error 
also

What could be the reason for above??






On Thu, Oct 3, 2013 at 5:49 PM, Bryan Evenson 
mailto:beven...@melinkcorp.com>> wrote:
Amit,

>From your message, I'm assuming you have a bbappend file for openssh.  
>Following the example in section of 5.1.4 of the Mega Manual (located at 
>http://www.yoctoproject.org/docs/current/mega-manual/mega-manual.html#using-bbappend-files)
> and from personal experience, put the following in your bbappend file:

FILESEXTRAPATHS_prepend := " ${THISDIR}: "
SRC_URI += " file://banner "
FILES_${PN} += " /etc/ssh/banner "

do_install_append() {
install -d ${D}${sysconfdir}/ssh
install -m 0644 ${WORKDIR}/banner ${D}${sysconfdir/ssh/banner
}
PRINC := "${@int(PRINC) + 1}"

then place your banner file and sshd_config in the same directory as your 
bbappend.  When openssh gets built, Bitbake will find your sshd_config first 
and use and install that file instead of the one from the main layer.  The 
recipe also tells it how to handle the new banner file that is not part of the 
original recipe; you do not need to put these rules in place for sshd_config 
because that is already part of the original rec

Re: [yocto] Fwd: OpenSSH pre login banner

2013-10-03 Thread Amit Tomer
Thanks again Bryan for your kind response

The reason for having the PRINC ="4" is becaue when I started modifying
this already existing file
value of PRINC is set 3 ,so for my changes I Incremented it to One.

Change

SRC_URI = “file://banner”

To

SRC_URI += “file://banner“


I am really feeling bit stupid here ,I just in hurry forgot to put + sign

Though I learned a new point


"With your line, you are overriding all the SRC_URI for the entire openssh
recipe and the openssh recipe will only include the banner file ".


Change

FILESEXTRAPATHS_prepend := "${THISDIR}/openssh-6.1p1:"

to

FILESEXTRAPATHS_prepend := "${THISDIR}:"

**

We already had openssh-6.1p1 folder where our sshd_config file is placed
,So I guess it won't harm

much if I put FILESEXTRAPATHS_prepend := "${THISDIR}/openssh-6.1p1:" with
banner file in openssh-6.1p1 folder


One more point wanted from your end,what is best way to learn Yocto

How can improve my knowledge in Yocto?


Thanks

Amit.






On Thu, Oct 3, 2013 at 7:05 PM, Bryan Evenson wrote:

> Amit,
>
> ** **
>
> First, I suggest you change
>
> PRINC = “4”
>
> to
>
> PRINC := "${@int(PRINC) + 1}"
>
> ** **
>
> This way your bbappend will always increment the PR to one more than the
> PR called out by the main recipe.  So if the openssh recipe would get
> updated and increment the PR, you do not have to change your bbappend.
>
> ** **
>
> Change
>
> SRC_URI = “file://banner”
>
> To
>
> SRC_URI += “file://banner“
>
> ** **
>
> The += appends your banner file to the SRC_URI for the openssh recipe.
> With your line, you are overriding all the SRC_URI for the entire openssh
> recipe and the openssh recipe will only include the banner file.  I’ve
> taken to the habit of writing the SRC_URI as follows:
>
> ** **
>
> SRC_URI += “ \
>
> file://banner \
>
> “
>
> just to ensure that words aren’t joined together when my SRC_URI is
> appended to the existing one.  I don’t know if this is strictly necessary,
> but it’s not a bad habit.
>
> ** **
>
> Change
>
> FILESEXTRAPATHS_prepend := "${THISDIR}/openssh-6.1p1:"
>
> to
>
> FILESEXTRAPATHS_prepend := "${THISDIR}:"
>
> ** **
>
> so Bitbake can find your banner file and sshd_config that you have in the
> same directory as the bbappend.
>
> ** **
>
> I can’t remember if you get a warning if Bitbake can’t find the license
> file at all or if it fails on each attempt through the filepath.  Since
> your new path is first, it won’t find LICENCE in your layer since you
> didn’t copy it.  Once way to quiet this warning would be to copy the
> license file to your directory.
>
> ** **
>
> -Bryan
>
> ** **
>
> *From:* Amit Tomer [mailto:amittome...@gmail.com]
> *Sent:* Thursday, October 03, 2013 8:23 AM
> *To:* Bryan Evenson
> *Cc:* yocto@yoctoproject.org
> *Subject:* Re: [yocto] Fwd: OpenSSH pre login banner
>
> ** **
>
> Hi Brayan
>
> ** **
>
> Thanks for your help
>
> ** **
>
> The way I modify .bbapend file is below
>
> ** **
>
> PRINC = "4"
>
> SRC_URI = "file://banner"
>
> FILESEXTRAPATHS_prepend := "${THISDIR}/openssh-6.1p1:"
>
> do_install_append() {
>
> ** **
>
> Install -m 755 ${WORKDIR}/banner ${D}${sysconfdir}/ssh
>
> }
>
> ** **
>
> ** **
>
> ** **
>
> But it gives me 
>
> ** **
>
> Below problem
>
> ** **
>
> WARNING:
> /tmp/work/cortexa15hf-vfp-neon-poky-linux-gnueabi/openssh/6.1p1-r3/openssh-6.1p1/LICENCE
> could not be copied for some reason. It may not exist. WARN for now.
>
> ** **
>
> And my build process is really got slow and sometimes I am getting the
> error also
>
> ** **
>
> What could be the reason for above??
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> ** **
>
> On Thu, Oct 3, 2013 at 5:49 PM, Bryan Evenson 
> wrote:
>
> Amit,
>
>  
>
> From your message, I’m assuming you have a bbappend file for openssh.
> Following the example in section of 5.1.4 of the Mega Manual (located at
> http://www.yoctoproject.org/docs/current/mega-manual/mega-manual.html#using-bbappend-files)
> and from personal experience, put the following in your bbappend file:
>
>  
>
> FILESEXTRAPATHS_prepend := " ${THISDIR}: "
>
> SRC_URI += “ file://banner ”
>
> FILES_${PN} += “ /etc/ssh/banner ”
>
>  
>
> do_install_append() {
>
> install –d ${D}${sysconfdir}/ssh
>
> install –m 0644 ${WORKDIR}/banner
> ${D}${sysconfdir/ssh/banner
>
> }
>
> PRINC := "${@int(PRINC) + 1}"
>
>  
>
> then place your banner file and sshd_config in the same directory as your
> bbappend.  When openssh gets built, Bitbake will find your sshd_config
> first and use and install that file instead of the one from the main
> layer.  The recipe also tells it how to handle the new banner file that is
> not part of the original recipe; you do not need to put these rules in
> place for sshd_config because that is

Re: [yocto] Install Kernel Modules in rootfs

2013-10-03 Thread Bruce Ashfield

On 13-10-03 09:32 AM, Raul Rosetto Munoz wrote:

I think that I found my problem,

I tryed to use the kernel 3.8 before in this build system, but I decided
to go back to the 2.6.35.3.

But now I did bitbake -c cleanall virtual/kernel, I tryed to delete
every thing about kernel 3.8 but the modules that are instaled in my
/lib/modules/ still be the modules of kernel 3.8.

How I clean the modules and force to use no 2.6.35.3 again.

Which package or command do that?


If you reconstruct your image, the old module package shouldn't be
re-used, since you would now have a dependency on the 2.6.35.x kernel.

How exactly are they installed in /lib/modules ? Did you do anything
in particular ?

Bruce



Thanks for all Help.


On Thu, Oct 3, 2013 at 9:38 AM, Bruce Ashfield
mailto:bruce.ashfi...@windriver.com>> wrote:

On 13-10-03 08 :34 AM, Raul Rosetto Munoz wrote:

Hello All,

I'm Trying to install the kernel modules inside my rootfs but I
couldn't
find an especific information that help me to do that!

I have in my /tmp/images/ the tgz with all the modules that I need.

modules--2.6.35.3-r32.23-__imx28evk-20131002210958.tgz

I just want that this tzg was extracted inside my rootfs
/lib/modules.

Please some one can help me with this?


Does your image type have a RDEPENDS on "kernel-modules", or do you
have IMAGE_INSTALL_append = " kernel-modules", in your local.conf ?

If you do either of the above, the entire set of built modules will
be installed.

You can also install / require individual modules via
kernel-module-.

The Yocto docs should have details on this as well.

Cheers,

Bruce


Thanks so much.

--
*Raul Rosetto Muñoz*


_
yocto mailing list
yocto@yoctoproject.org 
https://lists.yoctoproject.__org/listinfo/yocto






--
*Raul Rosetto Muñoz*


___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Fwd: OpenSSH pre login banner

2013-10-03 Thread Bryan Evenson
Amit,

First, I suggest you change
PRINC = "4"
to
PRINC := "${@int(PRINC) + 1}"

This way your bbappend will always increment the PR to one more than the PR 
called out by the main recipe.  So if the openssh recipe would get updated and 
increment the PR, you do not have to change your bbappend.

Change
SRC_URI = "file://banner"
To
SRC_URI += "file://banner"

The += appends your banner file to the SRC_URI for the openssh recipe.  With 
your line, you are overriding all the SRC_URI for the entire openssh recipe and 
the openssh recipe will only include the banner file.  I've taken to the habit 
of writing the SRC_URI as follows:

SRC_URI += " \
file://banner \
"
just to ensure that words aren't joined together when my SRC_URI is appended to 
the existing one.  I don't know if this is strictly necessary, but it's not a 
bad habit.

Change
FILESEXTRAPATHS_prepend := "${THISDIR}/openssh-6.1p1:"
to
FILESEXTRAPATHS_prepend := "${THISDIR}:"

so Bitbake can find your banner file and sshd_config that you have in the same 
directory as the bbappend.

I can't remember if you get a warning if Bitbake can't find the license file at 
all or if it fails on each attempt through the filepath.  Since your new path 
is first, it won't find LICENCE in your layer since you didn't copy it.  Once 
way to quiet this warning would be to copy the license file to your directory.

-Bryan

From: Amit Tomer [mailto:amittome...@gmail.com]
Sent: Thursday, October 03, 2013 8:23 AM
To: Bryan Evenson
Cc: yocto@yoctoproject.org
Subject: Re: [yocto] Fwd: OpenSSH pre login banner

Hi Brayan

Thanks for your help

The way I modify .bbapend file is below

PRINC = "4"
SRC_URI = "file://banner"
FILESEXTRAPATHS_prepend := "${THISDIR}/openssh-6.1p1:"
do_install_append() {

Install -m 755 ${WORKDIR}/banner ${D}${sysconfdir}/ssh
}



But it gives me

Below problem

WARNING: 
/tmp/work/cortexa15hf-vfp-neon-poky-linux-gnueabi/openssh/6.1p1-r3/openssh-6.1p1/LICENCE
 could not be copied for some reason. It may not exist. WARN for now.

And my build process is really got slow and sometimes I am getting the error 
also

What could be the reason for above??






On Thu, Oct 3, 2013 at 5:49 PM, Bryan Evenson 
mailto:beven...@melinkcorp.com>> wrote:
Amit,

>From your message, I'm assuming you have a bbappend file for openssh.  
>Following the example in section of 5.1.4 of the Mega Manual (located at 
>http://www.yoctoproject.org/docs/current/mega-manual/mega-manual.html#using-bbappend-files)
> and from personal experience, put the following in your bbappend file:

FILESEXTRAPATHS_prepend := " ${THISDIR}: "
SRC_URI += " file://banner "
FILES_${PN} += " /etc/ssh/banner "

do_install_append() {
install -d ${D}${sysconfdir}/ssh
install -m 0644 ${WORKDIR}/banner ${D}${sysconfdir/ssh/banner
}
PRINC := "${@int(PRINC) + 1}"

then place your banner file and sshd_config in the same directory as your 
bbappend.  When openssh gets built, Bitbake will find your sshd_config first 
and use and install that file instead of the one from the main layer.  The 
recipe also tells it how to handle the new banner file that is not part of the 
original recipe; you do not need to put these rules in place for sshd_config 
because that is already part of the original recipe.  Then in the future every 
time you make a change to the openssh package in your layer, increment the 
PRINC so your package management tools will see it as an upgrade.  For example, 
if you change the contents of the banner file, then change the "+ 1" to "+ 2".

-Bryan

From: yocto-boun...@yoctoproject.org 
[mailto:yocto-boun...@yoctoproject.org] 
On Behalf Of Amit Tomer
Sent: Thursday, October 03, 2013 7:05 AM
To: yocto@yoctoproject.org
Subject: [yocto] Fwd: OpenSSH pre login banner


-- Forwarded message --
From: Amit Tomer mailto:amittome...@gmail.com>>
Date: Thu, Oct 3, 2013 at 1:50 PM
Subject: OpenSSH pre login banner
To: "yocto-requ...@yoctoproject.org" 
mailto:yocto-requ...@yoctoproject.org>>
I am new to OpenEmbedded Yocto and have a requirement where OpenSSH pre login 
banner
should come when do ssh from target board

Now I know I have to create a simple .txt file(banner) and put my banner in to 
it and add the following to sshd_config

Banner /etc/ssh/banner

But now  wanted to know where should I keep my banner file in yocto so that 
Yocto build infrastructure will pack banner file  to /etc/ssh/banner into final 
image.

I do have receipes for openssh in meta-xyz/recipes-connectivity/openssh  folder

Thanks
Amit





___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Install Kernel Modules in rootfs

2013-10-03 Thread Raul Rosetto Munoz
I think that I found my problem,

I tryed to use the kernel 3.8 before in this build system, but I decided to
go back to the 2.6.35.3.

But now I did bitbake -c cleanall virtual/kernel, I tryed to delete every
thing about kernel 3.8 but the modules that are instaled in my
/lib/modules/ still be the modules of kernel 3.8.

How I clean the modules and force to use no 2.6.35.3 again.

Which package or command do that?

Thanks for all Help.


On Thu, Oct 3, 2013 at 9:38 AM, Bruce Ashfield  wrote:

> On 13-10-03 08:34 AM, Raul Rosetto Munoz wrote:
>
>> Hello All,
>>
>> I'm Trying to install the kernel modules inside my rootfs but I couldn't
>> find an especific information that help me to do that!
>>
>> I have in my /tmp/images/ the tgz with all the modules that I need.
>>
>> modules--2.6.35.3-r32.23-**imx28evk-20131002210958.tgz
>>
>> I just want that this tzg was extracted inside my rootfs /lib/modules.
>>
>> Please some one can help me with this?
>>
>
> Does your image type have a RDEPENDS on "kernel-modules", or do you
> have IMAGE_INSTALL_append = " kernel-modules", in your local.conf ?
>
> If you do either of the above, the entire set of built modules will
> be installed.
>
> You can also install / require individual modules via
> kernel-module-.
>
> The Yocto docs should have details on this as well.
>
> Cheers,
>
> Bruce
>
>
>> Thanks so much.
>>
>> --
>> *Raul Rosetto Muñoz*
>>
>>
>> __**_
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.**org/listinfo/yocto
>>
>>
>


-- 
*Raul Rosetto Muñoz*
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Install Kernel Modules in rootfs

2013-10-03 Thread Bruce Ashfield

On 13-10-03 08:34 AM, Raul Rosetto Munoz wrote:

Hello All,

I'm Trying to install the kernel modules inside my rootfs but I couldn't
find an especific information that help me to do that!

I have in my /tmp/images/ the tgz with all the modules that I need.

modules--2.6.35.3-r32.23-imx28evk-20131002210958.tgz

I just want that this tzg was extracted inside my rootfs /lib/modules.

Please some one can help me with this?


Does your image type have a RDEPENDS on "kernel-modules", or do you
have IMAGE_INSTALL_append = " kernel-modules", in your local.conf ?

If you do either of the above, the entire set of built modules will
be installed.

You can also install / require individual modules via 
kernel-module-.


The Yocto docs should have details on this as well.

Cheers,

Bruce



Thanks so much.

--
*Raul Rosetto Muñoz*


___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto



___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Install Kernel Modules in rootfs

2013-10-03 Thread Raul Rosetto Munoz
Hello All,

I'm Trying to install the kernel modules inside my rootfs but I couldn't
find an especific information that help me to do that!

I have in my /tmp/images/ the tgz with all the modules that I need.

modules--2.6.35.3-r32.23-imx28evk-20131002210958.tgz

I just want that this tzg was extracted inside my rootfs /lib/modules.

Please some one can help me with this?

Thanks so much.

-- 
*Raul Rosetto Muñoz*
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Fwd: OpenSSH pre login banner

2013-10-03 Thread Amit Tomer
Hi Brayan

Thanks for your help

The way I modify .bbapend file is below

PRINC = "4"
SRC_URI = "file://banner"
FILESEXTRAPATHS_prepend := "${THISDIR}/openssh-6.1p1:"
do_install_append() {

Install -m 755 ${WORKDIR}/banner ${D}${sysconfdir}/ssh
}



But it gives me

Below problem

WARNING:
/tmp/work/cortexa15hf-vfp-neon-poky-linux-gnueabi/openssh/6.1p1-r3/openssh-6.1p1/LICENCE
could not be copied for some reason. It may not exist. WARN for now.

And my build process is really got slow and sometimes I am getting the
error also

What could be the reason for above??







On Thu, Oct 3, 2013 at 5:49 PM, Bryan Evenson wrote:

> Amit,
>
> ** **
>
> From your message, I’m assuming you have a bbappend file for openssh.
> Following the example in section of 5.1.4 of the Mega Manual (located at
> http://www.yoctoproject.org/docs/current/mega-manual/mega-manual.html#using-bbappend-files)
> and from personal experience, put the following in your bbappend file:
>
> ** **
>
> FILESEXTRAPATHS_prepend := " ${THISDIR}: "
>
> SRC_URI += “ file://banner ”
>
> FILES_${PN} += “ /etc/ssh/banner ”
>
> ** **
>
> do_install_append() {
>
> install –d ${D}${sysconfdir}/ssh
>
> install –m 0644 ${WORKDIR}/banner
> ${D}${sysconfdir/ssh/banner
>
> }
>
> PRINC := "${@int(PRINC) + 1}"
>
> ** **
>
> then place your banner file and sshd_config in the same directory as your
> bbappend.  When openssh gets built, Bitbake will find your sshd_config
> first and use and install that file instead of the one from the main
> layer.  The recipe also tells it how to handle the new banner file that is
> not part of the original recipe; you do not need to put these rules in
> place for sshd_config because that is already part of the original recipe.
> Then in the future every time you make a change to the openssh package in
> your layer, increment the PRINC so your package management tools will see
> it as an upgrade.  For example, if you change the contents of the banner
> file, then change the “+ 1” to “+ 2”.
>
> ** **
>
> -Bryan
>
> ** **
>
> *From:* yocto-boun...@yoctoproject.org [mailto:
> yocto-boun...@yoctoproject.org] *On Behalf Of *Amit Tomer
> *Sent:* Thursday, October 03, 2013 7:05 AM
> *To:* yocto@yoctoproject.org
> *Subject:* [yocto] Fwd: OpenSSH pre login banner
>
> ** **
>
> ** **
>
> -- Forwarded message --
> From: *Amit Tomer* 
> Date: Thu, Oct 3, 2013 at 1:50 PM
> Subject: OpenSSH pre login banner
> To: "yocto-requ...@yoctoproject.org" 
>
> 
>
> I am new to OpenEmbedded Yocto and have a requirement where OpenSSH pre
> login banner
>
> should come when do ssh from target board
>
> ** **
>
> Now I know I have to create a simple .txt file(banner) and put my banner
> in to it and add the following to sshd_config
>
> ** **
>
> Banner /etc/ssh/banner 
>
> ** **
>
> But now  wanted to know where should I keep my banner file in yocto so
> that Yocto build infrastructure will pack banner file  to /etc/ssh/banner
> into final image.
>
> ** **
>
> I do have receipes for openssh in meta-xyz/recipes-connectivity/openssh
>  folder
>
> ** **
>
> Thanks 
>
> Amit 
>
>  
>
> ** **
>
> ** **
>
> ** **
>
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Fwd: OpenSSH pre login banner

2013-10-03 Thread Bryan Evenson
Amit,

>From your message, I'm assuming you have a bbappend file for openssh.  
>Following the example in section of 5.1.4 of the Mega Manual (located at 
>http://www.yoctoproject.org/docs/current/mega-manual/mega-manual.html#using-bbappend-files)
> and from personal experience, put the following in your bbappend file:

FILESEXTRAPATHS_prepend := " ${THISDIR}: "
SRC_URI += " file://banner "
FILES_${PN} += " /etc/ssh/banner "

do_install_append() {
install -d ${D}${sysconfdir}/ssh
install -m 0644 ${WORKDIR}/banner ${D}${sysconfdir/ssh/banner
}
PRINC := "${@int(PRINC) + 1}"

then place your banner file and sshd_config in the same directory as your 
bbappend.  When openssh gets built, Bitbake will find your sshd_config first 
and use and install that file instead of the one from the main layer.  The 
recipe also tells it how to handle the new banner file that is not part of the 
original recipe; you do not need to put these rules in place for sshd_config 
because that is already part of the original recipe.  Then in the future every 
time you make a change to the openssh package in your layer, increment the 
PRINC so your package management tools will see it as an upgrade.  For example, 
if you change the contents of the banner file, then change the "+ 1" to "+ 2".

-Bryan

From: yocto-boun...@yoctoproject.org [mailto:yocto-boun...@yoctoproject.org] On 
Behalf Of Amit Tomer
Sent: Thursday, October 03, 2013 7:05 AM
To: yocto@yoctoproject.org
Subject: [yocto] Fwd: OpenSSH pre login banner


-- Forwarded message --
From: Amit Tomer mailto:amittome...@gmail.com>>
Date: Thu, Oct 3, 2013 at 1:50 PM
Subject: OpenSSH pre login banner
To: "yocto-requ...@yoctoproject.org" 
mailto:yocto-requ...@yoctoproject.org>>

I am new to OpenEmbedded Yocto and have a requirement where OpenSSH pre login 
banner
should come when do ssh from target board

Now I know I have to create a simple .txt file(banner) and put my banner in to 
it and add the following to sshd_config

Banner /etc/ssh/banner

But now  wanted to know where should I keep my banner file in yocto so that 
Yocto build infrastructure will pack banner file  to /etc/ssh/banner into final 
image.

I do have receipes for openssh in meta-xyz/recipes-connectivity/openssh  folder

Thanks
Amit




___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Fwd: OpenSSH pre login banner

2013-10-03 Thread Amit Tomer
-- Forwarded message --
From: Amit Tomer 
Date: Thu, Oct 3, 2013 at 1:50 PM
Subject: OpenSSH pre login banner
To: "yocto-requ...@yoctoproject.org" 


I am new to OpenEmbedded Yocto and have a requirement where OpenSSH pre
login banner
should come when do ssh from target board

Now I know I have to create a simple .txt file(banner) and put my banner in
to it and add the following to sshd_config

Banner /etc/ssh/banner

But now  wanted to know where should I keep my banner file in yocto so that
Yocto build infrastructure will pack banner file  to /etc/ssh/banner into
final image.

I do have receipes for openssh in meta-xyz/recipes-connectivity/openssh
 folder

Thanks
Amit
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] 1.5_M5.rc6 available for testing.

2013-10-03 Thread Stanacar, StefanX


On Thu, 2013-10-03 at 09:36 +, Stanacar, StefanX wrote:
> 
> On Thu, 2013-10-03 at 09:16 +, Stanacar, StefanX wrote:
> > 
> 
> 
> > Also:
> > [stefans@firebird poky2]$ git tag -l --contains
> > 0197e5cb4253d6137b0d166cfcd699d404d2cab3
> > 1.5_M5.rc6
> > [stefans@firebird poky2]$ git tag -l --contains
> > a02280f99f05b1c21de2a78de9222a2f62a0dabc
> > 1.5_M5.rc6
> > [stefans@firebird poky2]$ git tag -v 1.5_M5.rc6
> > object a02280f99f05b1c21de2a78de9222a2f62a0dabc
> > type commit
> > tag 1.5_M5.rc6
> > 
> > I don't know how git rev-parse is supposed to work on a tag and why it
> > returns a different id, but it's a bit confusing.
> > 
> 
> Okay this tagging thing confuses me, although everything seems to be in
> orderd the ids are identical.
> If someone with more git-fu can explain what and how this happens I'd be
> grateful:
> 
> [stefans@firebird poky]$ git rev-list 1.5_M5.rc6 | head -n1
> a02280f99f05b1c21de2a78de9222a2f62a0dabc
> [stefans@firebird poky]$ git show-ref 1.5_M5.rc6
> 0197e5cb4253d6137b0d166cfcd699d404d2cab3 refs/tags/1.5_M5.rc6
> [stefans@firebird poky]$ git rev-parse 1.5_M5.rc6
> 0197e5cb4253d6137b0d166cfcd699d404d2cab3
> [stefans@firebird poky]$ git rev-parse --verify 1.5_M5.rc6^{commit}
> a02280f99f05b1c21de2a78de9222a2f62a0dabc
> [stefans@firebird poky]$ git show-ref --dereference 1.5_M5.rc6
> 0197e5cb4253d6137b0d166cfcd699d404d2cab3 refs/tags/1.5_M5.rc6
> a02280f99f05b1c21de2a78de9222a2f62a0dabc refs/tags/1.5_M5.rc6^{}
> [stefans@firebird poky]$ 
> 

Okay, it's pretty clear. It all comes down to annotated vs lightweight
tags.
1.5_M5.rc6 it's an annotated tag (which contains metadata and the SHA-1
hash of the object it tags) and git gives a SHA-1 hash to all objects
not only commits (tags,trees,blobs).
So when using --dereference option, it will dereference the tag into the
object the tag refers to, and provide information about it instead.

Perhaps the AB should use in it's properties (in Git checkout step) git
rev-parse ^0 to dereference the tag instead of git rev-parse 
>From the man-page:

   ^{}, e.g. v0.99.8^{commit}
   A suffix ^ followed by an object type name enclosed in brace
pair
   means the object could be a tag, and dereference the tag
   recursively until an object of that type is found or the
object
   cannot be dereferenced anymore (in which case, barf).
^0 is a
   short-hand for ^{commit}.


Cheers,

Stefan



> Cheers,
> Stefan
>  
> 
> 
> 
> > Cheers,
> > 
> > Stefan
> > 
> > 
> > 
> > ___
> > yocto mailing list
> > yocto@yoctoproject.org
> > https://lists.yoctoproject.org/listinfo/yocto
> 
> ___
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] 1.5_M5.rc6 available for testing.

2013-10-03 Thread Stanacar, StefanX


On Thu, 2013-10-03 at 09:16 +, Stanacar, StefanX wrote:
> 


> Also:
> [stefans@firebird poky2]$ git tag -l --contains
> 0197e5cb4253d6137b0d166cfcd699d404d2cab3
> 1.5_M5.rc6
> [stefans@firebird poky2]$ git tag -l --contains
> a02280f99f05b1c21de2a78de9222a2f62a0dabc
> 1.5_M5.rc6
> [stefans@firebird poky2]$ git tag -v 1.5_M5.rc6
> object a02280f99f05b1c21de2a78de9222a2f62a0dabc
> type commit
> tag 1.5_M5.rc6
> 
> I don't know how git rev-parse is supposed to work on a tag and why it
> returns a different id, but it's a bit confusing.
> 

Okay this tagging thing confuses me, although everything seems to be in
orderd the ids are identical.
If someone with more git-fu can explain what and how this happens I'd be
grateful:

[stefans@firebird poky]$ git rev-list 1.5_M5.rc6 | head -n1
a02280f99f05b1c21de2a78de9222a2f62a0dabc
[stefans@firebird poky]$ git show-ref 1.5_M5.rc6
0197e5cb4253d6137b0d166cfcd699d404d2cab3 refs/tags/1.5_M5.rc6
[stefans@firebird poky]$ git rev-parse 1.5_M5.rc6
0197e5cb4253d6137b0d166cfcd699d404d2cab3
[stefans@firebird poky]$ git rev-parse --verify 1.5_M5.rc6^{commit}
a02280f99f05b1c21de2a78de9222a2f62a0dabc
[stefans@firebird poky]$ git show-ref --dereference 1.5_M5.rc6
0197e5cb4253d6137b0d166cfcd699d404d2cab3 refs/tags/1.5_M5.rc6
a02280f99f05b1c21de2a78de9222a2f62a0dabc refs/tags/1.5_M5.rc6^{}
[stefans@firebird poky]$ 

Cheers,
Stefan
 



> Cheers,
> 
> Stefan
> 
> 
> 
> ___
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] 1.5_M5.rc6 available for testing.

2013-10-03 Thread Stanacar, StefanX


On Tue, 2013-10-01 at 23:12 -0700, Flanagan, Elizabeth wrote:
> All
> 
> 1.5_M5.rc6 is now available for testing. We've identified one issue
> with package index
> https://bugzilla.yoctoproject.org/show_bug.cgi?id=5277
> 
> Artifacts are available:
> 
> http://autobuilder.yoctoproject.org/pub/releases/1.5_M5.rc6
> 
> poky 0197e5cb4253d6137b0d166cfcd699d404d2cab3
> eclipse-poky-juno 9cff88d9b3043547e3ad6264f5af3f4a8d367496
> eclipse-poky-kepler ab0acbd9e7fa3b5bc48af72c569b4ed1f7d686bb
> meta-qt3 199986d8fc59a18cd660dbad635076fc9d4d7cc3
> meta-minnow 38c2d6ec6c9f8880ff86bed10aa95589850dc214
> meta-intel 0dbdf993f8a7e8005248ffac3a5feba1f8ad3623
> meta-fsl-arm 60b2189d29851b9bc066e129b2945163214bc742
> meta-fsl-ppc 25ee629b826a138ef407c113f776830e5d822c01
> 

Hey Beth,

There is something wierd with that poky revision that AB reports.
It seems the 1.5_M5.rc6 tag points to two different commit ids, and that
confuses people.

This build
http://autobuilder.yoctoproject.org:8011/builders/nightly-x86/builds/313/steps/Building%20Images/logs/stdio

actually shows the right commit id 
meta-yocto-bsp= "dora:a02280f99f05b1c21de2a78de9222a2f62a0dabc"

but the AB says it's on  0197e5cb4253d6137b0d166cfcd699d404d2cab3 in
properties.

[stefans@firebird poky2]$ git branch
* dora
  master
[stefans@firebird poky2]$ git reset --hard 1.5_M5.rc6
HEAD is now at a02280f README.hardware: update genericx86 hardware
support
[stefans@firebird poky2]$ git log --oneline -n 1
a02280f README.hardware: update genericx86 hardware support
[stefans@firebird poky2]$ 



The Git checkout step from AB confirms this:
It does:
 - git clone --branch dora git://git.yoctoproject.org/poky 
 - then it does: git reset --hard 1.5_M5.rc6
HEAD is now at a02280f README.hardware: update genericx86 hardware
support

 - but: git rev-parse 1.5_M5.rc6 gives:
0197e5cb4253d6137b0d166cfcd699d404d2cab3

Also:
[stefans@firebird poky2]$ git tag -l --contains
0197e5cb4253d6137b0d166cfcd699d404d2cab3
1.5_M5.rc6
[stefans@firebird poky2]$ git tag -l --contains
a02280f99f05b1c21de2a78de9222a2f62a0dabc
1.5_M5.rc6
[stefans@firebird poky2]$ git tag -v 1.5_M5.rc6
object a02280f99f05b1c21de2a78de9222a2f62a0dabc
type commit
tag 1.5_M5.rc6

I don't know how git rev-parse is supposed to work on a tag and why it
returns a different id, but it's a bit confusing.

Cheers,

Stefan



___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] yocto query on SR_URI creation

2013-10-03 Thread Paul Eggleton
Hi Rohit,

On Thursday 03 October 2013 09:13:51 Rohit2 Jindal wrote:
> I want to download open source toolchain version 4.4.5 . Can u suggest me
> the git source from where I can download it using Yocto. And please also
> suggest me the steps to compile it for mips64 processors .
> 
> How to override gcc_4.7 etc bitbake files in meta/recipes-devtools for the
> same for compile it for mips specific boards.

We don't directly support a toolchain that old, I'm afraid. I'm sure it would 
be possible to set up with some work, but it's not something we support out of 
the box.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] nativesdk-dbus not shipped for meta-toolchain-qt

2013-10-03 Thread diego

El 02/10/2013 23:26, Dan B escribió:
I was having a similar error, and sgw_ in the #yocto irc channel 
helped me out. It looks like there is some bug in nativesdk-dbus
A quick-fix until someone can figure out what's going on is to add the 
following line to your local.conf:


INSANE_SKIP_nativesdk-dbus = "installed-vs-shipped"


All this does is skip the QA test that is failing. I haven't yet 
checked the result to see if it's working, but it at least was able to 
skip that QA test and build successfully.


Good luck


___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Hello Dryaw,

I just checked what you said and it works! It skipped that QA test and 
built perfectly. Additionally if you install this sdk into the Qt 
creator it will work fine. I created, built, compiled and debugged and 
app in QT 4.8.5  successfully.


Thank you!!

--
Diego González González
diego.gonza...@horus.es

___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] (no subject)

2013-10-03 Thread Jack
Anders Darander  writes:

> 
> 
> Jack  gmail.com> wrote:
> >Hi,
> >I want to set/reset GPIO registers in freescale p1022 processor. I saw
> >a
> >hello-mod kernel module in yocto and I added it to my image and it
> >worked.
> >According to hello-mod kernel module, I created GPIO module like
> >hello-mod.
> >But it GPIO module failed when I run it in kernel level. I checked
> >several
> >times addresses of registers and it seems accurate. 
> >My code is here :
> >
> >
> >#include 
> >
> >int init_module(void)
> >{
> > volatile uint32_t * Guts_Pmuxcr;
> > volatile uint32_t * Gpio3_Gpdir;
> > volatile uint32_t * Gpio3_Gpdat;
> > 
> > // e500 Core View To Power Architecture CCSR: 0x0_FF70_
> >
> >// GUTS_PMUXCR:Alternate Function Signal Multiplex Control Register
> > Guts_Pmuxcr = (volatile uint32_t *)(0xFF7E0060);
> >  
> >// GPIO3_GPDIR: GPIO3 direction register
> > Gpio3_Gpdir = (volatile uint32_t *)(0xFF70F200);
> >
> >// GPIO3_GPDAT: GPIO3 data register
> > Gpio3_Gpdat = (volatile uint32_t *)(0xFF70F208); 
> 
> You should generally a of trying to dereference physical addresses, or you
should explicitly declare them
> as such. 
> 
> If suggest looking for some info on using GPIO on your CPU. Unfortunately,
I've not used the p1022, so I can't
> really help you. 
> 
> http://linuxppc.10917.n7.nabble.com/Re-GPIO-IRQ-on-P1022-td59356.html
discusses some IRQ
> issues, though you should be able to use the codes as an example of the
GPIO framework and how to use it. 
> 
> Cheers, 
> Anders 
> 
> >
> > // Enable GPIO3[10]: IRQ_DEBUG1_GPIO FIELD [BIT 26] set to "1"
> > *(Guts_Pmuxcr) = 0x0010;
> >
> 
> >
> > // Set Direction for GPIO3[10] to Output: FIELD DR10 [BIT 10] set to
> >'1'
> > *(Gpio3_Gpdir) = 0x0020;
> > 
> >  
> > // Set GPIO3[10] to '0': FIELD D10 [BIT 10] set to '0'
> > *(Gpio3_Gpdat) = 0x;
> > 
> > printk("Hello World!\n");
> > return 0;
> >}
> >
> >void cleanup_module(void)
> >{
> > printk("Goodbye Cruel World!\n");
> >}
> >
> >MODULE_LICENSE("GPL");
> >
> >
> >When I write insmod GPIO.ko in the terminal I get error these errors:
> >
> >Unable to handle kernel paging request for data at address 0xff7e0060
> >faulting instruction address: 0xf107e05c
> >Oops: Kernel access of bad area, sig: 11 [#1]
> >..
> >.
> >
> >
> >How can I solve this problem?
> >
> >
> >___
> >yocto mailing list
> >yocto  yoctoproject.org
> >https://lists.yoctoproject.org/listinfo/yocto
> 

Thanks Anders,

But I have this problem not only for GPIOs, but also for other registers.
For example, I tried to change DTW bits of PROCTL register in eSDH but I get
"Kernel access of bad area" again. My simple code is here :

#include 

int init_module(void)
{

// e500 Core View To Power Architecture CCSR: 0x0_FF70_

volatile uint32_t * eSDH_PROCTL = (volatile uint32_t *)(0xFF72E028);

*(eSDH_PROCTL) = 0x0002;

return 0;
}

void cleanup_module(void)
{
printk("Goodbye Cruel World!\n");
}

MODULE_LICENSE("GPL");

What should I do? Can you help me?




___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto