Re: [yocto] Update SRCREV doesn't work?

2017-07-08 Thread Ngọc Thi Huỳnh
Hi Babic,

I think the problem is from

> meta-swupdate-boards/recipes-support/swupdate/swupdate_%.bbappend
>

The file contains

> SRCREV = "${AUTOREV}"
>

which overwrites SRCREV in

> meta-swupdate/recipes-support/swupdate/swupdate_2017.04.bb
>

After removing that line, everything is fine now.

Best Regards,
Thi Huynh

Huỳnh Ngọc Thi
-so61pi

On Wed, Jul 5, 2017 at 1:43 PM, Stefano Babic  wrote:

> Hi Huynh,
>
> On 05/07/2017 04:09, Ngọc Thi Huỳnh wrote:
> > Hi,
> >
> > I guess I'll remove build/tmp directory and rebuild everything from
> scratch.
> > I'll post the result later then.
> >
>
> The recipe for beaglebone was dropped from meta-swupdate. I moved the
> examples for bbb and raspi into a separate layer (meta-swupdate-boards,
> -master).
>
> > BTW, thank you so much for writing swupdate.
>
> You're welcome.
>
> >
> Best regards,
> Stefano Babic
>
> > Best Regards,
> > Thi Huynh
> >
> > Huỳnh Ngọc Thi
> > -so61pi
> >
> > On Wed, Jul 5, 2017 at 12:08 AM, Stefano Babic  > > wrote:
> >
> > Hi,
> >
> > On 04/07/2017 18:13, Ngọc Thi Huỳnh wrote:
> > > Hi everyone,
> > >
> > > I'm using poky pyro to build a beaglebone image with swupdate.
> > >
> > > First time I built swupdate (by bitbake swupdate), it used the
> latest
> > > git version and I encountered an make error which related to
> swupdate only.
> > >
> > > Then I changed swupdate version to 2017.04 (by using
> > > PREFERRED_VERSION_swupdate = "2017.04") but the bitbake still used
> the
> > > latest git version and I had the make error again.
> > >
> >
> > I cannot confirm this. I have built a custom board and setting
> > PREFERRED_VERSION_swupdate works without issues.
> >
> > > But when I used devshell and changed the git revision to 2017.04
> then
> > > do_configure and do_compile, everything went fine.
> > >
> > > My question is, is there a simple way to solve this problem?
> > >
> > > /Note:/
> > > The swupdate recipes for beaglebone that I'm using are from
> > > https://github.com/sbabic/meta-swupdate
> > 
> > >
> > > Content of swupdate_2017.04.bb 
> > :
> > >
> > > require swupdate.inc
> > >
> > > SRCREV = "d344ec10b71293d2aaf96816266d4e6ed1d3bf6a"
> > >
> > >
> > > Content of swupdate_git.bb 
> > 
> > >
> > > require swupdate.inc
> > >
> > > DEFAULT_PREFERENCE = "-1"
> > >
> > >
> > > A snippet of swupdate.inc
> > >
> > > SRCREV = "${AUTOREV}"
> > >
> > >
> >
> > Best regards,
> > Stefano Babic
> >
> >
> > --
> > 
> =
> > DENX Software Engineering GmbH,  Managing Director: Wolfgang Denk
> > HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> > Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email:
> > sba...@denx.de 
> > 
> =
> >
> >
>
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


Re: [yocto] Update SRCREV doesn't work?

2017-07-08 Thread Stefano Babic
Hi Thi Huynh,

On 08/07/2017 17:12, Ngọc Thi Huỳnh wrote:
> Hi Babic,
> 
> I think the problem is from
> 
> meta-swupdate-boards/recipes-support/swupdate/swupdate_%.bbappend
> 
> 
> The file contains
> 
> SRCREV = "${AUTOREV}"
> 
> 
> which overwrites SRCREV in
> 
> meta-swupdate/recipes-support/swupdate/swupdate_2017.04.bb
> 
> 
> 
> After removing that line, everything is fine now.

There is a commit 10 days ago that has already fix this. Check
met-swupdate-boards, -master.

Best regards,
Stefano Babic

-- 
=
DENX Software Engineering GmbH,  Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sba...@denx.de
=
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto


[yocto] Yocto build at Kali

2017-07-08 Thread Rafael Machado
Hi everyone

I need your help. For the last several days, I've being trying to compile a
yocto based project with no success. So in case someone can help me this
would be really nice :)

Follow the details of the problem.
On my development system, I have installed a kali linux (debian)  4.9.0.

http://cdimage.kali.org/kali-2017.1/kali-linux-2017.1-amd64.iso

The project I'm trying to compile is from SECO, for the Q974 som.
It can be found here:

http://www.seco.com/prods/other/form-factor/qseven-7-x-7/q7-974.html

At this page you can find the BSP (board support package), but it cannot be
done, as described at the .pdf available at the BSP package. Doing the same
steps at debian, ubuntu and fedora, everything works fine, but at Kali it
fails with the message:

"File "/media/sda3/open_env/openembedded-core/bitbake/bin/bitbake", line 34,
in 

import bb
  File "/media/sda3/open_env/openembedded-core/bitbake/lib/bb/__init__.py",
line 77, in 
from bb import fetch2 as fetch
  File 
"/media/sda3/open_env/openembedded-core/bitbake/lib/bb/fetch2/__init__.py",
line 38, in 
import bb.persist_data, bb.utils
  File "/media/sda3/open_env/openembedded-core/bitbake/lib/bb/persist_data.py",
line 35, in 


It seems to be the same problem as described at these two posts:

https://stackoverflow.com/questions/36395831/importerror-no-module-named-bb
http://www.oesf.org/forum/index.php?showtopic=12006

But no resolution works as expected.
Does anyone can try to help?

Thanks and Regards
Rafael Machado
-- 
___
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto