Re: [yocto] [meta-raspberrypi][PATCH V2] Add initramfs support

2014-02-10 Thread Sebastien MENNETRIER
Hi,


2014-02-09 Andrei Gherzan :

> Hi,
>
>
> On Fri, Jan 31, 2014 at 5:30 PM, Sébastien Mennetrier <
> s.mennetr...@innotis.org> wrote:
>
>> Permit to build an image with initramfs.
>>
>> Signed-off-by: Sébastien Mennetrier 
>> ---
>>  classes/sdcard_image-rpi.bbclass | 5 -
>>  1 file changed, 4 insertions(+), 1 deletion(-)
>>
>> diff --git a/classes/sdcard_image-rpi.bbclass
>> b/classes/sdcard_image-rpi.bbclass
>> index 3ee4e94..815aaa9 100644
>> --- a/classes/sdcard_image-rpi.bbclass
>> +++ b/classes/sdcard_image-rpi.bbclass
>> @@ -26,6 +26,9 @@ inherit image_types
>>  # Set kernel and boot loader
>>  IMAGE_BOOTLOADER ?= "bcm2835-bootfiles"
>>
>> +# Set initramfs extension
>> +KERNEL_INITRAMFS ?= ""
>> +
>>
>
> I'm not sure how is this supposed to work. Could you please give more
> info? I haven't seen this defined anywhere else so it must be something
> custom you use.
>

When you would build an initramfs image, you must set this 3 kernel
variables :
 # Set initramfs
 kernel_configure_variable BLK_DEV_INITRD y
 kernel_configure_variable INITRAMFS_SOURCE ""
 kernel_configure_variable RD_GZIP y

And you must set INITRAMFS_IMAGE and INITRAMFS_IMAGE_BUNDLE variables.
These variables are used in kernel.bbclass from poky.

The generated image name with initramfs feature is
${KERNEL_IMAGETYPE}-initramfs-${MACHINE}.bin

So you must set KERNEL_INITRAMFS in the machine.conf file with "-initramfs"
in order to use this image in the mcopy below.


>
>
>>  # Boot partition volume id
>>  BOOTDD_VOLUME_ID ?= "${MACHINE}"
>>
>> @@ -91,7 +94,7 @@ IMAGE_CMD_rpi-sdimg () {
>> BOOT_BLOCKS=$(LC_ALL=C parted -s ${SDIMG} unit b print | awk '/ 1
>> / { print substr($4, 1, length($4 -1)) / 512 /2 }')
>> mkfs.vfat -n "${BOOTDD_VOLUME_ID}" -S 512 -C ${WORKDIR}/boot.img
>> $BOOT_BLOCKS
>> mcopy -i ${WORKDIR}/boot.img -s
>> ${DEPLOY_DIR_IMAGE}/bcm2835-bootfiles/* ::/
>> -   mcopy -i ${WORKDIR}/boot.img -s
>> ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}-${MACHINE}.bin ::kernel.img
>> +   mcopy -i ${WORKDIR}/boot.img -s
>> ${DEPLOY_DIR_IMAGE}/${KERNEL_IMAGETYPE}${KERNEL_INITRAMFS}-${MACHINE}.bin
>> ::kernel.img
>>
>> if [ -n ${FATPAYLOAD} ] ; then
>> echo "Copying payload into VFAT"
>> --
>> 1.8.1.2
>>
>> ___
>> yocto mailing list
>> yocto@yoctoproject.org
>> https://lists.yoctoproject.org/listinfo/yocto
>>
>
>
>
> --
> *Andrei Gherzan*
> m: +40.744.478.414 |  f: +40.31.816.28.12
>



-- 

Regards,
Sébastien
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Kudos to Beth Flanagan...

2014-02-10 Thread Chris Hallinan
...for being recognized by Yahoo Finance Business Insider column for her
contributions to open source and the Yocto Project, and getting some very
nice PR for the project!

http://finance.yahoo.com/news/women-building-software-quietly-runs-133000395.html

Congratulations, Beth!!
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Kudos to Beth Flanagan...

2014-02-10 Thread Rifenbark, Scott M
I saw this article shared on Facebook shared by Nicole Very nice Beth!

From: yocto-boun...@yoctoproject.org [mailto:yocto-boun...@yoctoproject.org] On 
Behalf Of Chris Hallinan
Sent: Monday, February 10, 2014 5:55 AM
To: yocto@yoctoproject.org; yocto...@yoctoproject.org
Subject: [yocto] Kudos to Beth Flanagan...

...for being recognized by Yahoo Finance Business Insider column for her 
contributions to open source and the Yocto Project, and getting some very nice 
PR for the project!

http://finance.yahoo.com/news/women-building-software-quietly-runs-133000395.html

Congratulations, Beth!!


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


Re: [yocto] ##SPAM## [yocto-ab] Kudos to Beth Flanagan...

2014-02-10 Thread Otavio Salvador
On Mon, Feb 10, 2014 at 11:55 AM, Chris Hallinan  wrote:
> ...for being recognized by Yahoo Finance Business Insider column for her
> contributions to open source and the Yocto Project, and getting some very
> nice PR for the project!
>
> http://finance.yahoo.com/news/women-building-software-quietly-runs-133000395.html
>
> Congratulations, Beth!!

+1

-- 
Otavio Salvador O.S. Systems
http://www.ossystems.com.brhttp://code.ossystems.com.br
Mobile: +55 (53) 9981-7854Mobile: +1 (347) 903-9750
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Kudos to Beth Flanagan...

2014-02-10 Thread Marko Lindqvist
On 10 February 2014 16:21, Rifenbark, Scott M
 wrote:
> I saw this article shared on Facebook shared by Nicole…. Very nice Beth!
>
> From: yocto-boun...@yoctoproject.org [mailto:yocto-boun...@yoctoproject.org]
> On Behalf Of Chris Hallinan
> Sent: Monday, February 10, 2014 5:55 AM
> To: yocto@yoctoproject.org; yocto...@yoctoproject.org
> Subject: [yocto] Kudos to Beth Flanagan...
>
> ...for being recognized by Yahoo Finance Business Insider column for her
> contributions to open source and the Yocto Project, and getting some very
> nice PR for the project!
>
>
>
> http://finance.yahoo.com/news/women-building-software-quietly-runs-133000395.html
>
>
>
> Congratulations, Beth!!


 Read the article yesterday, but due to language / culture barrier
didn't immediately recognize "Beth" as "Elizabeth" so often seen as
email sender. Congratulations, and keep up the good work on both
technical and feminism sides.


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


[yocto] Agenda: Yocto Project Technical Team Meeting - Tuesday, February 11, 2014 8:00 AM US Pacific Time

2014-02-10 Thread Jolley, Stephen K
Agenda:



* Opens collection - 5 min (Stephen)

* Yocto 1.6 status - 10 min (Stephen/team)

  https://wiki.yoctoproject.org/wiki/Yocto_Project_v1.6_Status

  https://wiki.yoctoproject.org/wiki/Yocto_1.6_Features

* SWAT team rotation: Laurentiu -> Nitin

  https://wiki.yoctoproject.org/wiki/Yocto_Build_Failure_Swat_Team

* Opens - 10 min

* Team Sharing - 20 min

-Original Appointment-

We encourage people attending the meeting to logon the Yocto Project IRC 
chancel during the meeting (optional):



Yocto IRC: http://webchat.freenode.net/?channels=#yocto

IRC Tutorial: http://www.irchelp.org/irchelp/irctutorial.html

Conference details

Conference name:

Yocto Project Technical Team

Conference date/start time:

Tue Jun 25, 2013 at 11:00 AM Eastern Daylight Time (GMT-0400)

Participants:

30

Duration:

60 minutes

Participant passcode:

42001078

Dial-in number:

1.972.995.

US Toll Free number:

1.877.561.6828

BlackBerry users, click this link to join your conference as a participant:

1.972.995.x42001078#



Depending on where you are dialing from, either your BlackBerry will pause and 
enter the passcode automatically or you will be prompted to click again to dial 
the passcode.


Local and Global Access Numbers



Country

Dial-in number

Australia:

1800 636 843

Czech Republic:

242 430 350

China (Beijing):

>From office dial 8-995 or 8784277
Beijing Out of Office dial 5878 4277

China (Shanghai):

>From office dial 8-995 or 3073322
Shanghai Out of Office dial 2307 3322

China (Shenzen):

>From office dial 8-995 or 6007877
Shenzen Out of Office dial 2600 7877

China (Other Cities):

>From IP phone dial 8-995
Other cities - Non IP phone dial 021-23073322

Denmark:

8060 1400

Finland:

09 41333477

France:

0497 275888

Germany:

08161 803232

Holland:

030 2417490

India:

BSNL subscribers use 1800 425 9996 (Toll Free)
Airtel subscribers use 0008 009 861 212 (Toll Free)
>From TI Campus use 8995
Others use 2509 9555 (Landline within Bangalore) or
80 2509 9555 (Outside Bangalore)

Israel:

09 790 6715

Italy:

039 69061234 (039 is local city code not country code)

Japan:

>From TI Campus use 8 995 
Outside TI use 03 4331 3777

Malaysia:

>From IP phone dial 2643799
>From Kuala Lumpur dial 4264 3799
Outside Kuala Lumpur dial (03)4264 3799

Norway:

2 295 8744

Philippines:

>From Baguio City use 4471177
>From Metro Manila area use 8702477

Singapore:

>From IP phone dial 3894777
Outside TI use 6389 4777

South Korea:

>From IP phone dial 5606998
>From Seoul dial 5606998
Outside Seoul dial (02)5606998

Sweden:

08 58755577

Taiwan:

>From IP phone dial 1363
>From Taipei dial 2241 1363
Outside Taipei dial (02)2241 1363

Turkey:

Landline Only dial 0811 288 0001
then enter 877 633 1123

UK:

01908 355599

US:

972 995  or 1877 561 6828


Recurring conferences

First scheduled conference:

Tue Jun 25, 2013

Recurrence frequency:

Weekly - Every 1 week(s) on Tuesday

Recurrence ends:

End after 52 occurrences


Thanks,

Stephen K. Jolley
Yocto Project Program Manager
INTEL, MS JF1-255, 2111 N.E. 25th Avenue, Hillsboro, OR 97124
*   Work Telephone:  (480) 554-5904
*Cell:(208) 244-4460
* Email: stephen.k.jol...@intel.com

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


[yocto] [PATCH 0/1] refpolicy: make proftpd be able to work

2014-02-10 Thread rongqing.li
From: Roy Li 

The following changes since commit 8089f0d19f757ecf65f957d6a196e66c90bd7911:

  refpolicy: allow portmap to create portmap_t type socket (2014-02-10 15:54:14 
+0800)

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib roy/refpolicy-proftpd
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=roy/refpolicy-proftpd

Roy Li (1):
  refpolicy: make proftpd be able to work

 ...y-policy-ftp-make-proftpd-be-able-to-work.patch |   85 
 .../refpolicy/refpolicy_2.20130424.inc |1 +
 2 files changed, 86 insertions(+)
 create mode 100644 
recipes-security/refpolicy/refpolicy-2.20130424/poky-policy-ftp-make-proftpd-be-able-to-work.patch

-- 
1.7.10.4

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


[yocto] [PATCH 1/1] refpolicy: make proftpd be able to work

2014-02-10 Thread rongqing.li
From: Roy Li 

Signed-off-by: Roy Li 
---
 ...y-policy-ftp-make-proftpd-be-able-to-work.patch |   85 
 .../refpolicy/refpolicy_2.20130424.inc |1 +
 2 files changed, 86 insertions(+)
 create mode 100644 
recipes-security/refpolicy/refpolicy-2.20130424/poky-policy-ftp-make-proftpd-be-able-to-work.patch

diff --git 
a/recipes-security/refpolicy/refpolicy-2.20130424/poky-policy-ftp-make-proftpd-be-able-to-work.patch
 
b/recipes-security/refpolicy/refpolicy-2.20130424/poky-policy-ftp-make-proftpd-be-able-to-work.patch
new file mode 100644
index 000..9521fcf
--- /dev/null
+++ 
b/recipes-security/refpolicy/refpolicy-2.20130424/poky-policy-ftp-make-proftpd-be-able-to-work.patch
@@ -0,0 +1,85 @@
+ftp: make proftpd be able to work
+
+Upstream-Status: pending
+
+1. proftpd need not to access and communicate with avahi, so dontaudit them
+2. ftpd_t is transited to mls_systemhigh, the running created files under
+/var/run is in mls_systemlow, so put ftpd_t to write_all_levels  
+
+Signed-off-by: Roy Li 
+---
+ policy/modules/contrib/avahi.if |   40 +++
+ policy/modules/contrib/ftp.te   |6 ++
+ 2 files changed, 46 insertions(+)
+
+diff --git a/policy/modules/contrib/avahi.if b/policy/modules/contrib/avahi.if
+index aebe7cb..0e7a748 100644
+--- a/policy/modules/contrib/avahi.if
 b/policy/modules/contrib/avahi.if
+@@ -135,6 +135,46 @@ interface(`avahi_dontaudit_search_pid',`
+ 
+ 
+ ## 
++##Do not audit attempts to rw 
++##avahi var directories.
++## 
++## 
++##
++##Domain to not audit.
++##
++## 
++#
++interface(`avahi_dontaudit_rw_var',`
++  gen_require(`
++  type avahi_var_run_t;
++  ')
++
++  dontaudit $1 avahi_var_run_t:file rw_term_perms;
++')
++
++
++
++## 
++##Do not audit attempts to connectto 
++##avahi unix socket.
++## 
++## 
++##
++##Domain to not audit.
++##
++## 
++#
++interface(`avahi_dontaudit_connectto',`
++  gen_require(`
++  type avahi_t;
++  ')
++
++  dontaudit $1 avahi_t:unix_stream_socket connectto;
++')
++
++
++
++## 
+ ##All of the rules required to
+ ##administrate an avahi environment.
+ ## 
+diff --git a/policy/modules/contrib/ftp.te b/policy/modules/contrib/ftp.te
+index 544c512..12492d2 100644
+--- a/policy/modules/contrib/ftp.te
 b/policy/modules/contrib/ftp.te
+@@ -144,6 +144,12 @@ role ftpdctl_roles types ftpdctl_t;
+ type ftpdctl_tmp_t;
+ files_tmp_file(ftpdctl_tmp_t)
+ 
++mls_file_write_all_levels(ftpd_t)
++
++avahi_dontaudit_connectto(ftpd_t)
++
++avahi_dontaudit_rw_var(ftpd_t)
++
+ type sftpd_t;
+ domain_type(sftpd_t)
+ role system_r types sftpd_t;
+-- 
+1.7.10.4
+
diff --git a/recipes-security/refpolicy/refpolicy_2.20130424.inc 
b/recipes-security/refpolicy/refpolicy_2.20130424.inc
index 5d55030..422c974 100644
--- a/recipes-security/refpolicy/refpolicy_2.20130424.inc
+++ b/recipes-security/refpolicy/refpolicy_2.20130424.inc
@@ -53,6 +53,7 @@ SRC_URI += 
"file://poky-policy-fix-xconsole_device_t-as-a-dev_node.patch \
 file://hostname-do-not-audit-attempts-by-hostname-to-read-a.patch \
 file://sysnetwork-dhcpc-binds-socket-to-random-high-udp-por.patch \
 file://portmap-allow-portmap-to-create-socket.patch \
+file://poky-policy-ftp-make-proftpd-be-able-to-work.patch \
"
 
 # Backport from upstream
-- 
1.7.10.4

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


Re: [yocto] Error in configuring multilib ie libstdc++ for c++

2014-02-10 Thread Khem Raj

On Jan 26, 2014, at 10:51 PM, Rohit2 Jindal  wrote:

> Hi,
>  
> I am trying to compile both c and c++ multilib for elf toolchain but its 
> giving error in configuring the same for c++. Logs are attached with this 
> mail. And EXTRA_OECONF passed are as below:
>  
> EXTRA_OECONF += 
> "--with-sysroot=${TMPDIR}/sysroots/${BUILD_SYS}/usr/lib/mips32-nlm-elf.gcc-cross-initial/gcc/mips64-nlm-elf/4.6.3
>  \

you are trying to mix bare metal compiler toolchain with hosted toolchain 
targeting Linux ?
OpenEmbedded has concept of TARGET_OS and now you could unset it but thats a 
untreated territory. If you explain in essence what you are trying to do. May 
be there is a solution.

> --enable-threads \
> --enable-multilib \
> --disable-libmudflap \
> --disable-libssp \
> --disable-libstdcxx-pch \
> --with-gnu-as \
> --with-gnu-ld \
> --with-mips-plt \
>  --enable-languages=c,c++ \
> --enable-lto \
> --disable-nls \
> --disable-shared \
> --disable-threads \
> --disable-libgomp \
> --without-headers \
> --with-newlib \
> --disable-decimal-float \
> --disable-libffi \
> --disable-libquadmath \
> --disable-libitm \
> --enable-poison-system-directories \
> 
> --with-gxx-include-dir=${TMPDIR}/sysroots/${BUILD_SYS}/usr/${TARGET_SYS}/usr/include/c++
>  \
> --enable-cxx-flags='-G0 -mno-gpopt' \
>  
> Please suggest me the way to resolve this issue.
>  
> Regards,
> Rohit Jindal
>  
> 
> 
> 
> 
> ===
> Please refer to http://www.aricent.com/legal/email_disclaimer.html
> for important disclosures regarding this electronic communication.
> ===
>  c++.log>___
> 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] SCons Build Issue

2014-02-10 Thread Khem Raj

On Jan 30, 2014, at 5:32 PM, George Hilliard  wrote:

> Hello,
> I have a build issue.  I'm trying to write a Bitbake recipe for jsoncpp, 
> which uses SConstruct.  My .bb file is at 
> https://gist.github.com/thirtythreeforty/8725055.  When I run it, Bitbake 
> complains,
> 
> | DEBUG: Executing shell function do_compile
> | Traceback (most recent call last):
> |   File 
> "/home/user/msu-community-bsp/build_mx6/tmp/sysroots/x86_64-linux/usr/bin/scons",
>  line 187, in 
> | import SCons.Script
> | ImportError: No module named SCons.Script
> | ERROR: scons build execution failed.
> | ERROR: Function failed: do_compile (see 
> /home/user/msu-community-bsp/build_mx6/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/jsoncpp/0.5.0-r0/temp/log.do_compile.8396
>  for further information)
> 
> What gives?  How can I modify the recipe (or my setup) to build this infernal 
> package?

it seems SCONS_LIB_DIR need to set to point to sys root as well since scons 
itself is coming from native sys root.
for tests export SCONS_LIB_DIR=${STAGING_LIBDIR_NATIVE}/scons/…. where ever its 
installed might help

> 
> Thanks in advance!
> George Hilliard
> ___
> 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] Adding functionality to SDK

2014-02-10 Thread Khem Raj

On Feb 7, 2014, at 5:56 AM, Gary Thomas  wrote:

> I have a basic image (similar to core-image-sato) that I've added
> (on board) SDK to using packagegroup-core-sdk  & 
> packagegroup-core-standalone-sdk-target.
> This works pretty well but I've found some missing functionality.
> In particular, I used it to build the kernel on my ARM board and
> found the U-Boot 'mkimage' tool missing from the SDK.


add the package (whichever provided mkimage ) to IMAGE_INSTALL 
> 
> How can I add this to my SDK build?  I'm interested in both
> the specific answer of how to get the U-Boot utilities but
> also how to include additional functionality in my SDK builds,
> e.g. additional libraries, include files, etc.
> 
> I've looked through the reference manual and it seems to only
> discuss cross-build SDK, not on-target SDK.
> 
> Thanks for any pointers
> 
> -- 
> 
> Gary Thomas |  Consulting for the
> MLB Associates  |Embedded world
> 
> ___
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto

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