Re: [yocto] [layerindex-web][PATCH 5/7] update: ignore recommends when ordering layers

2018-07-05 Thread Paul Eggleton
Hi Robert

On Wednesday, 4 July 2018 7:52:05 PM NZST you wrote:
> I'm sorry to say that I met layerindex' loaddata problems yesterday and
> today,
> I still didn't find the root cause. Have you tried dumpdata and loaddata
> recently, please ?
> 
> What I did was:
> 
> $ python3 manage.py dumpdata --settings settings --exclude=contenttypes 
> --exclude=auth.Permission --exclude=corsheaders >dumped.json
> 
> On another environment:
> Setup database to sqlite3 in settings.py.
> $ python3 manage.py loaddata --settings settings dumped.json
> 
> The first problem I got was:
> [snip]
>File 
> "/buildarea1/lyang1/layerindex-web/.venv/lib/python3.5/site-packages/reversion/revisions.py",
>  
> line 410, in _assert_registered
>  model=model,
> reversion.errors.RegistrationError: Problem installing fixture 
> '/buildarea1/lyang1/layerindex-web/dumped.json':  'layerindex.models.Distro'> has not been registered with django-reversion
> [snip]
> 
> I think it is because we didn't use @reversion.register() for the class, so I 
> added them to layerindex/models.py, then I got other errors:
> 
> [snip]
>File 
> "/buildarea1/lyang1/layerindex-web/.venv/lib/python3.5/site-packages/reversion/models.py",
>  
> line 272, in _local_field_dict
>  field_dict[field.attname] = getattr(obj, field.attname)
> AttributeError: Problem installing fixture 
> '/buildarea1/lyang1/layerindex-web/dumped.json': 'Branch' object has no 
> attribute 'layerbranch_id'

Hmm, that's odd. Branch shouldn't have layerbranch_id, it's the other way 
around - 
LayerBranch has a branch_id.

> I'm not sure what's wrong atm, need more investigations.
> 
> I need loaddata on my localhost to do development testing, so I can't start
> work on update.py until I fix the loaddata problem.

I have used loaddata and dumpdata here (a couple of times) but not recently.
I did not experience these issues before though. However these don't seem like 
issues that would have started as a result of this patchset (or indeed recent
changes, other than perhaps an upgrade of django-reversion), have you been 
using loaddata/dumpdata prior to this?

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


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


Re: [yocto] Regarding Error occuring after changing configuration

2018-07-05 Thread Prakash Ks
you can use
IMAGE_ROOTFS_SIZE ?= *"8192"*
to increase Rootfs size.

On Thu, Jul 5, 2018 at 12:16 AM Abhishek Kumar Rai <
abhish...@eximiusdesign.com> wrote:

> Hi Team,
>
> I am getting error while building yocto after changing the configuration.
>
> Please find set of below commands that i have used
> $ bitbake virtual/kernel -c menuconfig
> $ bitbake virtual/kernel
> $ bitbake -k agl-demo-platform
>
> *| Disk
> ~/build/tmp/work/nitrogen6x-agl-linux-gnueabi/agl-demo-platform/1.0-r0/deploy-agl-demo-platform-image-complete/agl-demo-platform-nitrogen6x-20180705063932.rootfs.sdcard:
> 2185MB*
> *| Sector size (logical/physical): 512B/512B*
> *| Partition Table: msdos*
> *| Disk Flags:*
> *| *
> *| Number  Start   End SizeType File system  Flags*
> *|  1  4194kB  12.6MB  8389kB  primary   lba*
> *|  2  12.6MB  2181MB  2168MB  primary*
> *| *
> *| mkfs.fat: warning - lowercase labels might not work properly with DOS
> or Windows*
> *| mkfs.fat 4.1 (2017-01-24)*
> *| Disk full*
> *| WARNING: exit code 1 from a shell command.*
> *| ERROR: Function failed: do_image_sdcard (log file is located at
> ~/build/tmp/work/nitrogen6x-agl-linux-gnueabi/agl-demo-platform/1.0-r0/temp/log.do_image_sdcard.6362)*
> *ERROR: Task
> (~/kapil/meta-agl-demo/recipes-platform/images/agl-demo-platform.bb:do_image_sdcard)
> failed with exit code '1'*
>
>
> *NOTE: Tasks Summary: Attempted 7063 tasks of which 7059 didn't need to be
> rerun and 1 failed.*I think due to change in configuration rootfs size is
> increased and the current rootfs size is small that is not able to
> accommodate the thae changed size.
> If it is so can anybody please provide steps to change the rootfs size .
>
> Can you please give your inputs regarding this.
>
>
> *Regards,*
>
> *Abhishek Rai*
>
> The information contained in this e-mail message (including any
>
> attachments) may be confidential, proprietary, privileged, or otherwise
>
> exempt from disclosure under applicable laws. It is intended to be
>
> conveyed only to the designated recipient(s). Any use, dissemination,
>
> distribution, printing, retaining or copying of this e-mail (including its
>
> attachments) by unintended recipient(s) is strictly prohibited and may
>
> be unlawful. If you are not an intended recipient of this e-mail, or
> believe
>
> that you have received this e-mail in error, please notify the sender
>
> immediately (by replying to this e-mail), delete any and all copies of
>
> this e-mail (including any attachments) from your system, and do not
>
> disclose the content of this e-mail to any other person. Thank you for
> your cooperation.
>
> *This e-mail message (including any attachments) may be confidential,
> proprietary, privileged, or otherwise exempt from disclosure under
> applicable laws. If you are not an intended recipient, please delete this
> message. Thank you.*
> --
> ___
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>


-- 
Thanks and Regards,
Prakash K S
+91 9620140303
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] struggling with initramfs

2018-07-05 Thread Andre McCurdy
On Wed, Jul 4, 2018 at 11:23 PM, Zoran Stojsavljevic
 wrote:
> Hello to all,
>
> I have my own YOCTO recipe how I do the initramfs.
>
> Usually, some of these are missing in kernel .config file:
>
> CONFIG_BLK_DEV_INITRD=y
> CONFIG_RD_GZIP=y
> CONFIG_RD_BZIP2=y
> CONFIG_RD_LZMA=y
> CONFIG_RD_XZ=y
> CONFIG_RD_LZO=y
> CONFIG_RD_LZ4=y
>
> Please, check (they should be on) the CONFIG_DECOMPRESS_* options and if
> not, please, turn them on.
>
> To do this, please, for YOCTO use the following (to reconfigure kernel
> .config):
> bitbake -c menuconfig virtual/kernel
>
> Also, in the local.conf I have the following set:
>
> DISTRO_FEATURES_append = " ram"

There is no standard distro feature called "ram". Perhaps this is
something specific to your BSP layer?

> IMAGE_FSTYPES_append = " cpio.xz"
>
> Then I do: bitbake -k core-image-minimal, and from:
> .../build/tmp/tmp/deploy/images/
>
> Take my .cpio.xz as initramfs. Also, I take accordingly
> zImage and .dtb files as well.
>
> I prepend to initramfs.cpio.xz u-boot header:
> mkimage -n 'Ramdisk Image'  -A arm -O linux -T ramdisk -C gzip -d
> initramfs.cpio.xz initramfs.cpio.xz.uboot
>
> And then write tiny U-Boot ash script to tftp (from host) all three files to
> the target platform.

This advice and these instructions are all fine. However, just for the
record, creating a standalone cpio archive and arranging for the
bootloader to load the kernel and cpio archive into DRAM as separate
images before booting the kernel is not solving the same problem as
embedding a cpio archive inside the kernel image via OE's
INITRAMFS_IMAGE_BUNDLE option.

> On Wed, Jul 4, 2018 at 8:57 PM, Ferry Toth  wrote:
>>
>> Tim Hammer wrote:
>>
>> > Can anyone point me to a step-by-step tutorial or simple how-to on
>> > creating and using an initramfs with my kernel for ARM aarch64?
>> >
>> >
>> > I have tried creating my own:
>> >  - boot-image.bb file with IMAGE_FSTYPES = "cpio.gz".
>> >  - local.conf has INITRAMFS_IMAGE_BUNDLE = "1"
>> >  - linux.bbappend has INITRAMFS_IMAGE = "boot-image"
>> >
>> > This all seems to be "correct" to the extent that bitbake linux tries to
>> > do the right thing.
>> >
>> > However, I get a failure in do_bundle_initramfs- "mv: cannot stat
>> > 'arch/arm64/boot/Image': No such file or directory".
>> >
>> > To the best of my (limited) debugging abilities with Yocto, it seems
>> > like
>> > the kernel image backup has already been run when it gets to this point
>> > and the Image file in that directory has already been moved to
>> > Image.bak.
>> > If I comment out the mv statement in kernel.bbclass causing the failure,
>> > the process continues, but the initramfs does not seem to get populated
>> > or
>> > perhaps installed into my kernel image as I get kernel panics that I
>> > have
>> > been unable to get past.
>> >
>> >
>> > I decided to take a different approach and try using the
>> > core-image-minimal-initramfs recipe as INITRAMFS_IMAGE. By commenting
>> > out
>> > the COMPATIBLE_HOST entry I am able to build a kernel for ARM aarch64. I
>> > can even seem to boot into this initramfs- it counts down waiting for
>> > removable media; seems to find my primary rootfs on sda3, but there is
>> > no
>> > rootfs.img file there so says it is dropping to a shell (although I
>> > never
>> > get a prompt...).
>>
>> We have taken this approach here
>>
>> https://github.com/edison-fw/meta-intel-edison/tree/master/meta-intel-edison-distro/recipes-core
>>
>> There are 2 images, the rootfs and the initramfs. And we overload the
>> init-live.sh
>> to load certain kernel modules and acpi-tables then switchroot to the
>> rootfs.
>>
>> > Thinking I could start with that recipe and work to get rid of the live
>> > stuff and just get to a busybox prompt before trying to run my unique
>> > init
>> > commands, I copied  core-image-minimal-initramfs.bb to my-
>> > core-image-minimal-initramfs.bb in my layer and changed INITRAMFS_IMAGE
>> > to
>> > "my- core-image-minimal-initramfs".
>> > However, I obviously missed something in the configuration as I get an
>> > error in go_bundle_initramfs again:
>> >  kernel-source/scripts/gen_initramfs_list.sh:
>> >  Cannot open
>> >
>> > '/.../linux-qoriq/4.14-r0/build/usr/my-core-image-minimal-initramfs-{machine}.cpio'
>> >
>> > Any help would be greatly appreciated.
>> > Thank you!
>>
>>
>> --
>> ___
>> 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] Problem on building sdk on Docker container

2018-07-05 Thread AKASH BHARDWAJ
Actually I was facing the following issue while building my Yocto SDK on
Docker container

[04:25]  Removing intermediate container 4f3743321874  --->
674e007553da Step 4/5 : RUN chmod +x /tmp/$META_TOOLCHAIN  ---> Running in
ababb0649ea1 Removing intermediate container ababb0649ea1  --->
5f558946851e Step 5/5 : RUN /tmp/$META_TOOLCHAIN  ---> Running in
929c7ea6af59 Poky (Yocto Project Reference Distro) SDK installer version
2.4.3 = You
are about to install the SDK to "/home/akash/rpil/rpi-build/tmp"
  Extracting SDK.done Setting it up...ls: cannot access
'/home/akash/rpil/rpi-build/tmp/environment-setup-cortexa7hf-neon-vfpv4-poky-linux-gnueabi':
No such file or directory SDK relocate failed, could not get executalbe
files The command '/bin/sh -c /tmp/$META_TOOLCHAIN' returned a non-zero
code: 1

I was facing this issue even if when
environment-setup-cortexa7hf-neon-vfpv4-poky-linux-gnueabi  is present in
my tmp directory.
My sysroots directory is empty .I am assuming that ,that may be the reason
for SDK.I have tried including the target directory in my toolchain(
poky-glibc-x86_64-meta-toolchain-cortexa7hf-neon-vfpv4-toolchain-2.4.3.sh)
to /home/akash/rpil/rpi-build/tmp but it is still not working out.
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [linux-yocto] v4.12.x - stable updates comprising v4.12.26

2018-07-05 Thread Bruce Ashfield

On 07/05/2018 10:50 AM, Paul Gortmaker wrote:

Bruce, Yocto kernel folks:

Here is another 4.12.x stable update "extension" primarily created for
the Yocto project, continuing on top of the previous v4.12.25 kernel.

And a reminder: people using 4.12.x should be getting their plans in
place to moving to a newer kernel in the near future, as the number of
additional 4.12.x releases that I do will be limited to a few more
over the next couple months.

With the previous release being all about spectre, and all the commits
largely inter-dependent on each other,  I figured I'd jump right back in
and try and get some of the normal "one issue -- one commit" type of
stable content in place.  To that end, there are about 125 commits here,
based on commits chosen for the 4.14.x stable release, and then suitably
filtered based on applicability to our 4.12.x baseline used here.

I've put this 4.12.x queue through the usual testing that I figured made
sense, which includes but is not limited to:

-x86-64 sanity boot test + workloads of defconfig on COTS Core2 box.
-build MIPS, PPC, ARM, ARM64 with defconfig
-build x86-64 allmodconfig/allyesconfig
-build i386 allmodconfig/allyesconfig

I bumped the 4.12 Makefile and did the signed tag just as per the previously
released 4.12.x versions.

Please find a signed v4.12.26 tag using this key:

http://pgp.mit.edu/pks/lookup?op=vindex=0xEBCE84042C07D1D6

in the repo in the kernel.org directory here:

https://git.kernel.org/cgit/linux/kernel/git/paulg/linux-4.12.y.git/
git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux-4.12.y.git


Thanks Paul, this is now merged.

Bruce



for merge to standard/base in linux-yocto-4.12 and then out from there
into the other base and BSP branches.

For those who are interested, the evolution of the commits is here:

https://git.kernel.org/cgit/linux/kernel/git/paulg/longterm-queue-4.12.git/

This repo isn't needed for anything; it just exists for transparency and
so people can see the raw commits that were used to create this 4.12.x
release.

Paul.
--



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


Re: [linux-yocto] [PATCH] Add scsi device handler

2018-07-05 Thread Bruce Ashfield

On 07/02/2018 10:49 PM, Changqing Li wrote:

On 07/03/2018 10:16 AM, Bruce Ashfield wrote:

What kernel versions is this for ?

Bruce


kernel version:    yocto-kernel-cahe:
linux-yocto-dev   master
linux-yocto-4.12  yocto-4.12


Thanks. This is now merged.

Bruce



//changqing



On 2018-07-02 1:34 AM, Changqing Li wrote:

multipathd service depend on kernel module scsi_dh_alua/
scsi_dh_emc/scsi_dh_rdac, without these kernel modules,
service start info will have FAIL info. add these
device handler so that user can use it.

Signed-off-by: Changqing Li 
---
  cgl/cfg/scsi_dh.cfg  | 1 +
  cgl/cfg/scsi_dh.scc  | 6 ++
  cgl/cfg/scsi_dh_alua.cfg | 1 +
  cgl/cfg/scsi_dh_alua.scc | 5 +
  cgl/cfg/scsi_dh_emc.cfg  | 1 +
  cgl/cfg/scsi_dh_emc.scc  | 4 
  cgl/cfg/scsi_dh_hpsw.cfg | 1 +
  cgl/cfg/scsi_dh_hpsw.scc | 4 
  cgl/cfg/scsi_dh_rdac.cfg | 1 +
  cgl/cfg/scsi_dh_rdac.scc | 5 +
  10 files changed, 29 insertions(+)
  create mode 100644 cgl/cfg/scsi_dh.cfg
  create mode 100644 cgl/cfg/scsi_dh.scc
  create mode 100644 cgl/cfg/scsi_dh_alua.cfg
  create mode 100644 cgl/cfg/scsi_dh_alua.scc
  create mode 100644 cgl/cfg/scsi_dh_emc.cfg
  create mode 100644 cgl/cfg/scsi_dh_emc.scc
  create mode 100644 cgl/cfg/scsi_dh_hpsw.cfg
  create mode 100644 cgl/cfg/scsi_dh_hpsw.scc
  create mode 100644 cgl/cfg/scsi_dh_rdac.cfg
  create mode 100644 cgl/cfg/scsi_dh_rdac.scc

diff --git a/cgl/cfg/scsi_dh.cfg b/cgl/cfg/scsi_dh.cfg
new file mode 100644
index 000..b73df00
--- /dev/null
+++ b/cgl/cfg/scsi_dh.cfg
@@ -0,0 +1 @@
+CONFIG_SCSI_DH=y
diff --git a/cgl/cfg/scsi_dh.scc b/cgl/cfg/scsi_dh.scc
new file mode 100644
index 000..c752aad
--- /dev/null
+++ b/cgl/cfg/scsi_dh.scc
@@ -0,0 +1,6 @@
+define KFEATURE_DESCRIPTION "SCSI Device Handlers"
+define KFEATURE_COMPATIBILITY all
+
+include features/scsi/scsi.scc
+
+kconf non-hardware scsi_dh.cfg
diff --git a/cgl/cfg/scsi_dh_alua.cfg b/cgl/cfg/scsi_dh_alua.cfg
new file mode 100644
index 000..7e6ab0d
--- /dev/null
+++ b/cgl/cfg/scsi_dh_alua.cfg
@@ -0,0 +1 @@
+CONFIG_SCSI_DH_ALUA=m
diff --git a/cgl/cfg/scsi_dh_alua.scc b/cgl/cfg/scsi_dh_alua.scc
new file mode 100644
index 000..2195f13
--- /dev/null
+++ b/cgl/cfg/scsi_dh_alua.scc
@@ -0,0 +1,5 @@
+define KFEATURE_DESCRIPTION "SPC-3 ALUA Device Handler"
+define KFEATURE_COMPATIBILITY all
+
+
+kconf non-hardware scsi_dh_alua.cfg
diff --git a/cgl/cfg/scsi_dh_emc.cfg b/cgl/cfg/scsi_dh_emc.cfg
new file mode 100644
index 000..019c88a
--- /dev/null
+++ b/cgl/cfg/scsi_dh_emc.cfg
@@ -0,0 +1 @@
+CONFIG_SCSI_DH_EMC=m
diff --git a/cgl/cfg/scsi_dh_emc.scc b/cgl/cfg/scsi_dh_emc.scc
new file mode 100644
index 000..2c22e0f
--- /dev/null
+++ b/cgl/cfg/scsi_dh_emc.scc
@@ -0,0 +1,4 @@
+define KFEATURE_DESCRIPTION "EMC CLARiiON Device Handler"
+define KFEATURE_COMPATIBILITY all
+
+kconf non-hardware scsi_dh_emc.cfg
diff --git a/cgl/cfg/scsi_dh_hpsw.cfg b/cgl/cfg/scsi_dh_hpsw.cfg
new file mode 100644
index 000..2663d05
--- /dev/null
+++ b/cgl/cfg/scsi_dh_hpsw.cfg
@@ -0,0 +1 @@
+CONFIG_SCSI_DH_HP_SW=m
diff --git a/cgl/cfg/scsi_dh_hpsw.scc b/cgl/cfg/scsi_dh_hpsw.scc
new file mode 100644
index 000..4cefede
--- /dev/null
+++ b/cgl/cfg/scsi_dh_hpsw.scc
@@ -0,0 +1,4 @@
+define KFEATURE_DESCRIPTION "HP/COMPAQ MSA Device Handler"
+define KFEATURE_COMPATIBILITY all
+
+kconf non-hardware scsi_dh_hpsw.cfg
diff --git a/cgl/cfg/scsi_dh_rdac.cfg b/cgl/cfg/scsi_dh_rdac.cfg
new file mode 100644
index 000..ceafc09
--- /dev/null
+++ b/cgl/cfg/scsi_dh_rdac.cfg
@@ -0,0 +1 @@
+CONFIG_SCSI_DH_RDAC=m
diff --git a/cgl/cfg/scsi_dh_rdac.scc b/cgl/cfg/scsi_dh_rdac.scc
new file mode 100644
index 000..ec776be
--- /dev/null
+++ b/cgl/cfg/scsi_dh_rdac.scc
@@ -0,0 +1,5 @@
+define KFEATURE_DESCRIPTION "LSI RDAC Device Handler"
+define KFEATURE_COMPATIBILITY all
+
+kconf non-hardware scsi_dh_rdac.cfg
+








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


[yocto] IMX6Q add new sound simple sound card

2018-07-05 Thread Riccardo Casagrande

Hello all,
 
I'm new to Linux/Yocto world. I'm working on iMX6Q and I need to add a new 
sound card and recognized from alsamixer.
I spent days on internet looking for examples and tutorials but at the moment 
alsa never see my sound card.
This is one of the tutorials I followed 
https://elixir.bootlin.com/linux/v4.5/source/Documentation/devicetree/bindings/sound/simple-card.txt


What I've done?
- Activated support for generic sound board on menuconfig
- Added new "sound" node in device tree file with minimal properties/subnotes
- Compiled the kernel
- Compiled and flashed the image


but alsamixer still doesn't recognize my sound card, what am I missing?


Thanks.



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


Re: [yocto] porting gRPC into Yocto

2018-07-05 Thread Burton, Ross
On 5 July 2018 at 15:49, Simon Chamlian  wrote:
> After reading several documents, there seems to be several methods to
> add/remove packages from a build.
> I just want to make sure I am using the correct method that falls into YOCTO
> architecture.
>
> In local.conf file, I can use:
>
> IMAGE_INSTALL_remove = " dropbear"
> IMAGE_INSTALL_append = " openssh net-snmp "
>
> To remove dropbear and add openssh and net-snmp into image.
>
> Is this the right way of doing it?  Do I use 'DISTRO_FEATURES_remove'  or
> simply ' IMAGE_INSTALL_remove' ?

IMAGE_INSTALL specifies what packages go into the image.
DISTRO_FEATURES is unrelated and are course-grained features that
control how software is built.

Note that to change SSH server there is an IMAGE_FEATURE you can
fiddle instead: remove ssh-server-dropbear and add ssh-server-openssh.

> Does Yocto fetch *.bb files and source files just by adding these commands
> in local.conf or I need more steps to do?

Those commands will impact all images so when you build an image it
will make the changes.  Note that for the "all images" reason it is
recommended that you write  your own image recipe instead of using
core-image-minimal or similar and lots of local.conf tweaks.

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


[linux-yocto] v4.12.x - stable updates comprising v4.12.26

2018-07-05 Thread Paul Gortmaker
Bruce, Yocto kernel folks:

Here is another 4.12.x stable update "extension" primarily created for
the Yocto project, continuing on top of the previous v4.12.25 kernel.

And a reminder: people using 4.12.x should be getting their plans in
place to moving to a newer kernel in the near future, as the number of
additional 4.12.x releases that I do will be limited to a few more
over the next couple months.  

With the previous release being all about spectre, and all the commits
largely inter-dependent on each other,  I figured I'd jump right back in
and try and get some of the normal "one issue -- one commit" type of
stable content in place.  To that end, there are about 125 commits here,
based on commits chosen for the 4.14.x stable release, and then suitably
filtered based on applicability to our 4.12.x baseline used here.

I've put this 4.12.x queue through the usual testing that I figured made
sense, which includes but is not limited to:

-x86-64 sanity boot test + workloads of defconfig on COTS Core2 box.
-build MIPS, PPC, ARM, ARM64 with defconfig
-build x86-64 allmodconfig/allyesconfig
-build i386 allmodconfig/allyesconfig

I bumped the 4.12 Makefile and did the signed tag just as per the previously
released 4.12.x versions.

Please find a signed v4.12.26 tag using this key:

http://pgp.mit.edu/pks/lookup?op=vindex=0xEBCE84042C07D1D6

in the repo in the kernel.org directory here:

   https://git.kernel.org/cgit/linux/kernel/git/paulg/linux-4.12.y.git/
   git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux-4.12.y.git

for merge to standard/base in linux-yocto-4.12 and then out from there
into the other base and BSP branches.

For those who are interested, the evolution of the commits is here:

   https://git.kernel.org/cgit/linux/kernel/git/paulg/longterm-queue-4.12.git/

This repo isn't needed for anything; it just exists for transparency and
so people can see the raw commits that were used to create this 4.12.x
release.

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


Re: [yocto] porting gRPC into Yocto

2018-07-05 Thread Simon Chamlian
Hi,

After reading several documents, there seems to be several methods to
add/remove packages from a build.
I just want to make sure I am using the correct method that falls into
YOCTO architecture.

In local.conf file, I can use:

IMAGE_INSTALL_remove = " dropbear"
IMAGE_INSTALL_append = " openssh net-snmp "

To remove dropbear and add openssh and net-snmp into image.

Is this the right way of doing it?  Do I use 'DISTRO_FEATURES_remove'  or
simply ' IMAGE_INSTALL_remove' ?

Does Yocto fetch *.bb files and source files just by adding these commands
in local.conf or I need more steps to do?

Thanks,
S.













On Thu, Jun 21, 2018 at 3:05 PM, Stephen Lawrence <
stephen.lawre...@renesas.com> wrote:

> >From: yocto-boun...@yoctoproject.org [mailto:yocto-bounces@
> yoctoproject.org] On Behalf Of Simon Chamlian
> >Sent: 21 June 2018 19:50
> >To: Rudolf J Streif 
> >Cc: yocto@yoctoproject.org
> >Subject: Re: [yocto] porting gRPC into Yocto
> >
> >Thank you everyone for such a prompt response.
> >
> >What do I do with the http://cgit.openembedded.org/
> meta-openembedded/tree/meta-networking/recipes-devtools/
> grpc/grpc_1.8.5.bb?h=master recipe file (sorry >for my ignorance, it has
> been 1 day I am using Yocto)?
> >
> >Simon
>
> Hi Simon,
>
> The Yocto Project online documentation set [1] contains some useful
> development manuals that guide you through some
> common use cases for using Yocto. Such as adding a package to an existing
> image.
>
> There have also been some good books written on embedded development with
> Yocto. A more recent one is
> "Embedded Linux Systems with the Yocto Project" by Rudolf J. Streif from
> Prentice Hall. You'll easily get a return on the
> investment.
>
> [1] https://www.yoctoproject.org/docs/
>
> Regards
>
> Steve
>
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Creating a recipe for python3-pillow

2018-07-05 Thread Burton, Ross
On 5 July 2018 at 08:26, Oliver Westermann  wrote:
> I'm fiddeling around with yocto. I want to move some python stuff onto an
> embedded board and use the nxp mx8 yocto. Everything worked as expected
> until now, I was able to create yocto recipes for python modules like pyv4l2
> (is there any interest for recipes like these to be commited to
> meta-python?).
>
> Now I wanted to install pillow for some image manipulation, but whereas
> other python module recipes worked fine, this one fails and I don't
> understand why.
>
> Yocto reports missing setuptools:
>
> Log data follows:
> | DEBUG: Executing shell function do_configure
> | NOTE: make clean
> | python setup.py clean
> | Traceback (most recent call last):
> |   File "setup.py", line 22, in 
> | from setuptools import Extension, setup
> | ImportError: No module named setuptools
>
> I've googled around and everything suggests that inherit setuptools3 is
> missing, but it's present in my recipe. This is my python3-pillow_5.2.0.bb:
>
> SUMMARY = "Pillow (The friendly PIL fork)"
> HOMEPAGE = "http://python-pillow.org/;
> LICENSE = "EPLv1"
> LIC_FILES_CHKSUM = "file://LICENSE;md5=c6379001ecb47e2a0420c40177fc1125"
>
> SRC_URI[md5sum] = "52d93a34f4180abcff04876f23eaa9b9"
>
> PYPI_PACKAGE = "Pillow"
>
> inherit pypi setuptools3
>
> BBCLASSEXTEND = "native nativesdk"
>
> Any idea whats missing or what I am doing wrong (other than that the license
> line is incorrect)?

Oh, that's a fun one.

So setuptools/distutils/etc doesn't have the concept of a "configure"
phase but it also doesn't remove the default implementation.  The
default implementation will try to do a 'make clean' first to remove
existing build artifacts.  Normally this does nothing with Python code
as there's never a Makefile, but pillow has a Makefile.  This makefile
does 'python setup.py clean', which is running the *host* Python2 and
you don't have distutils installed.  So, it fails.

Three solutions in order of hackiness (more to less)
1) Set CLEANBROKEN="1" in the recipe to stop the clean happening
2) Nullify do_configure in the recipe with do_configure[noexec] = "1"
3) Override do_configure in distutils3.bbclass to call setup.py
directly to do a clean in do_configure

I'd say do (1) in your recipe and I'll send a patch for (3) to oe-core.

And yes, this recipe would be very welcome in meta-python.

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


Re: [yocto] [PATCH] [yocto-ab-helper] clobberdir: Fix Unicode data expansion with utils API

2018-07-05 Thread Chan, Aaron Chun Yew
My apologizes to that as my local copy contains the fixes from the previous 
commits. Therefore this commit builts on top of it and only contains the delta 
on the current changes, this is the reason why its not complete.

Thanks again for the merge.

-Original Message-
From: richard.pur...@linuxfoundation.org 
[mailto:richard.pur...@linuxfoundation.org] 
Sent: Thursday, July 5, 2018 5:54 PM
To: Chan, Aaron Chun Yew ; yocto@yoctoproject.org
Subject: Re: [PATCH] [yocto-ab-helper] clobberdir: Fix Unicode data expansion 
with utils API

On Thu, 2018-07-05 at 13:34 +0800, Aaron Chan wrote:
> This fix is to move clobberdir from python2 to python3 to resolve 
> unicode data in python2 and change the data extraction expansion from 
> ourconfig["TRASH_DIR"] to utils.getconfig("TRASH_DIR", ourconfig) on 
> "Clobber build dir"
> BuildStep
> 
> Signed-off-by: Aaron Chan 
> ---
>  janitor/clobberdir | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/janitor/clobberdir b/janitor/clobberdir index 
> 5e04ed7..b05a876 100755
> --- a/janitor/clobberdir
> +++ b/janitor/clobberdir
> @@ -1,4 +1,4 @@
> -#!/usr/bin/env python2
> +#!/usr/bin/env python3
>  #
>  # Delete a directory using the ionice backgrounded command  #

At this point I think we're all getting frustrated with this. Please can you 
give patches a sanity check when you're sending them. You mention in the commit 
message what you need to do but the getconfig() change is missing from the 
patch itself. This has happened with several previous patches too where there 
were pieces missing. I deal with a lot of patches and I can't fix up each one.

The commit message mentions its fixing something but not what (a regression 
introduced by a previous change).

In the interests of resolving this I've fixed up this commit and merged
it:

http://git.yoctoproject.org/cgit.cgi/yocto-autobuilder-helper/commit/?id=54f848380fc77a9b9523bd85cd1cdce075bfb96e

Cheers,

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


Re: [yocto] [PATCH] [yocto-ab-helper] clobberdir: Fix Unicode data expansion with utils API

2018-07-05 Thread Richard Purdie
On Thu, 2018-07-05 at 13:34 +0800, Aaron Chan wrote:
> This fix is to move clobberdir from python2 to python3 to resolve
> unicode data
> in python2 and change the data extraction expansion from
> ourconfig["TRASH_DIR"]
> to utils.getconfig("TRASH_DIR", ourconfig) on "Clobber build dir"
> BuildStep
> 
> Signed-off-by: Aaron Chan 
> ---
>  janitor/clobberdir | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/janitor/clobberdir b/janitor/clobberdir
> index 5e04ed7..b05a876 100755
> --- a/janitor/clobberdir
> +++ b/janitor/clobberdir
> @@ -1,4 +1,4 @@
> -#!/usr/bin/env python2
> +#!/usr/bin/env python3
>  #
>  # Delete a directory using the ionice backgrounded command
>  #

At this point I think we're all getting frustrated with this. Please
can you give patches a sanity check when you're sending them. You
mention in the commit message what you need to do but the getconfig()
change is missing from the patch itself. This has happened with several
previous patches too where there were pieces missing. I deal with a lot
of patches and I can't fix up each one.

The commit message mentions its fixing something but not what (a
regression introduced by a previous change).

In the interests of resolving this I've fixed up this commit and merged
it:

http://git.yoctoproject.org/cgit.cgi/yocto-autobuilder-helper/commit/?id=54f848380fc77a9b9523bd85cd1cdce075bfb96e

Cheers,

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


[yocto] Creating a recipe for python3-pillow

2018-07-05 Thread Oliver Westermann
 Hey,

I'm fiddeling around with yocto. I want to move some python stuff onto an
embedded board and use the nxp mx8 yocto. Everything worked as expected
until now, I was able to create yocto recipes for python modules like
pyv4l2 (is there any interest for recipes like these to be commited to
meta-python?).

Now I wanted to install pillow for some image manipulation, but whereas
other python module recipes worked fine, this one fails and I don't
understand why.

Yocto reports missing setuptools:

Log data follows:
| DEBUG: Executing shell function do_configure
| NOTE: make clean
| python setup.py clean
| Traceback (most recent call last):
|   File "setup.py", line 22, in 
| from setuptools import Extension, setup
| ImportError: No module named setuptools

I've googled around and everything suggests that inherit setuptools3 is
missing, but it's present in my recipe. This is my python3-pillow_5.2.0.bb:

SUMMARY = "Pillow (The friendly PIL fork)"
HOMEPAGE = "http://python-pillow.org/;
LICENSE = "EPLv1"
LIC_FILES_CHKSUM = "file://LICENSE;md5=c6379001ecb47e2a0420c40177fc1125"

SRC_URI[md5sum] = "52d93a34f4180abcff04876f23eaa9b9"

PYPI_PACKAGE = "Pillow"

inherit pypi setuptools3

BBCLASSEXTEND = "native nativesdk"

Any idea whats missing or what I am doing wrong (other than that the
license line is incorrect)?

Best regards, Olli
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Regarding Error occuring after changing configuration

2018-07-05 Thread Abhishek Kumar Rai
Hi Team,

I am getting error while building yocto after changing the configuration.

Please find set of below commands that i have used
$ bitbake virtual/kernel -c menuconfig
$ bitbake virtual/kernel
$ bitbake -k agl-demo-platform

*| Disk
~/build/tmp/work/nitrogen6x-agl-linux-gnueabi/agl-demo-platform/1.0-r0/deploy-agl-demo-platform-image-complete/agl-demo-platform-nitrogen6x-20180705063932.rootfs.sdcard:
2185MB*
*| Sector size (logical/physical): 512B/512B*
*| Partition Table: msdos*
*| Disk Flags:*
*| *
*| Number  Start   End SizeType File system  Flags*
*|  1  4194kB  12.6MB  8389kB  primary   lba*
*|  2  12.6MB  2181MB  2168MB  primary*
*| *
*| mkfs.fat: warning - lowercase labels might not work properly with DOS or
Windows*
*| mkfs.fat 4.1 (2017-01-24)*
*| Disk full*
*| WARNING: exit code 1 from a shell command.*
*| ERROR: Function failed: do_image_sdcard (log file is located at
~/build/tmp/work/nitrogen6x-agl-linux-gnueabi/agl-demo-platform/1.0-r0/temp/log.do_image_sdcard.6362)*
*ERROR: Task
(~/kapil/meta-agl-demo/recipes-platform/images/agl-demo-platform.bb:do_image_sdcard)
failed with exit code '1'*


*NOTE: Tasks Summary: Attempted 7063 tasks of which 7059 didn't need to be
rerun and 1 failed.*I think due to change in configuration rootfs size is
increased and the current rootfs size is small that is not able to
accommodate the thae changed size.
If it is so can anybody please provide steps to change the rootfs size .

Can you please give your inputs regarding this.


*Regards,*

*Abhishek Rai*

-- 














The information contained in this e-mail message (including 
any 


attachments) may be confidential, proprietary, privileged, or 
otherwise


exempt from disclosure under applicable laws. It is intended to 
be 


conveyed only to the designated recipient(s). Any use, dissemination, 



distribution, printing, retaining or copying of this e-mail (including 
its 


attachments) by unintended recipient(s) is strictly prohibited and 
may 


be unlawful. If you are not an intended recipient of this e-mail, or 
believe 


that you have received this e-mail in error, please notify the 
sender 


immediately (by replying to this e-mail), delete any and all 
copies of 


this e-mail (including any attachments) from your system, and 
do not


disclose the content of this e-mail to any other person. Thank you 
for your cooperation.






-- 
_This e-mail message (including any attachments) may be confidential, 
proprietary, privileged, or otherwise exempt from disclosure under 
applicable laws. If you are not an intended recipient, please delete this 
message. Thank you.
_
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] struggling with initramfs

2018-07-05 Thread Zoran Stojsavljevic
Hello to all,

I have my own YOCTO recipe how I do the initramfs.

Usually, some of these are missing in kernel .config file:

CONFIG_BLK_DEV_INITRD=y
CONFIG_RD_GZIP=y
CONFIG_RD_BZIP2=y
CONFIG_RD_LZMA=y
CONFIG_RD_XZ=y
CONFIG_RD_LZO=y
CONFIG_RD_LZ4=y

Please, check (they should be on) the CONFIG_DECOMPRESS_* options and if
not, please, turn them on.

To do this, please, for YOCTO use the following (to reconfigure kernel
.config):
bitbake -c menuconfig virtual/kernel

Also, in the local.conf I have the following set:

DISTRO_FEATURES_append = " ram"
IMAGE_FSTYPES_append = " cpio.xz"

Then I do: bitbake -k core-image-minimal, and from:
.../build/tmp/tmp/deploy/images/

Take my .cpio.xz as initramfs. Also, I take accordingly
zImage and .dtb files as well.

I prepend to initramfs.cpio.xz u-boot header:
mkimage -n 'Ramdisk Image'  -A arm -O linux -T ramdisk -C gzip -d
initramfs.cpio.xz initramfs.cpio.xz.uboot

And then write tiny U-Boot ash script to tftp (from host) all three files
to the target platform.

Works like a charm!

Zoran
___


On Wed, Jul 4, 2018 at 8:57 PM, Ferry Toth  wrote:

> Tim Hammer wrote:
>
> > Can anyone point me to a step-by-step tutorial or simple how-to on
> > creating and using an initramfs with my kernel for ARM aarch64?
> >
> >
> > I have tried creating my own:
> >  - boot-image.bb file with IMAGE_FSTYPES = "cpio.gz".
> >  - local.conf has INITRAMFS_IMAGE_BUNDLE = "1"
> >  - linux.bbappend has INITRAMFS_IMAGE = "boot-image"
> >
> > This all seems to be "correct" to the extent that bitbake linux tries to
> > do the right thing.
> >
> > However, I get a failure in do_bundle_initramfs- "mv: cannot stat
> > 'arch/arm64/boot/Image': No such file or directory".
> >
> > To the best of my (limited) debugging abilities with Yocto, it seems like
> > the kernel image backup has already been run when it gets to this point
> > and the Image file in that directory has already been moved to Image.bak.
> > If I comment out the mv statement in kernel.bbclass causing the failure,
> > the process continues, but the initramfs does not seem to get populated
> or
> > perhaps installed into my kernel image as I get kernel panics that I have
> > been unable to get past.
> >
> >
> > I decided to take a different approach and try using the
> > core-image-minimal-initramfs recipe as INITRAMFS_IMAGE. By commenting out
> > the COMPATIBLE_HOST entry I am able to build a kernel for ARM aarch64. I
> > can even seem to boot into this initramfs- it counts down waiting for
> > removable media; seems to find my primary rootfs on sda3, but there is no
> > rootfs.img file there so says it is dropping to a shell (although I never
> > get a prompt...).
>
> We have taken this approach here
> https://github.com/edison-fw/meta-intel-edison/tree/master/
> meta-intel-edison-distro/recipes-core
>
> There are 2 images, the rootfs and the initramfs. And we overload the
> init-live.sh
> to load certain kernel modules and acpi-tables then switchroot to the
> rootfs.
>
> > Thinking I could start with that recipe and work to get rid of the live
> > stuff and just get to a busybox prompt before trying to run my unique
> init
> > commands, I copied  core-image-minimal-initramfs.bb to my-
> > core-image-minimal-initramfs.bb in my layer and changed INITRAMFS_IMAGE
> to
> > "my- core-image-minimal-initramfs".
> > However, I obviously missed something in the configuration as I get an
> > error in go_bundle_initramfs again:
> >  kernel-source/scripts/gen_initramfs_list.sh:
> >  Cannot open
> > '/.../linux-qoriq/4.14-r0/build/usr/my-core-image-
> minimal-initramfs-{machine}.cpio'
> >
> > Any help would be greatly appreciated.
> > Thank you!
>
>
> --
> ___
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto
>
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto