wp85 rebuilding legato kernel

This forum has moved to http://forum.legato.io

wp85 rebuilding legato kernel

Postby tlapsley » Tue May 24, 2016 5:27 pm

We would like to rebuild/reconfigure a custom kernel for the wp85 using instructions from this link:
http://legato.io/legato-docs/latest/yoc ... ctoImages3
There does not appear to be a stdbuild.sh file
If attempting to run the standard example from README.build:
./build.sh -p ../poky/ -o ../meta-openembedded/ -l ../meta-swi -m swi-mdm9x15 -q -t -4 j 4 -d
gets this error:
loading cache: 100% |####################################################################################| ETA: 00:00:00
Loaded 782 entries from dependency cache.
NOTE: Error during finalise of /home/usr1/wp85/yocto/poky/meta/recipes-kernel/linux/linux-yocto-rt_3.14.bb| ETA: --:--:--
NOTE: Error during finalise of /home/usr1/wp85/yocto/poky/meta/recipes-kernel/linux/linux-yocto_3.14.bb
ERROR: ExpansionError during parsing /home/usr1/wp85/yocto/poky/meta/recipes-kernel/linux/linux-yocto-rt_3.14.bb: Failure expanding variable do_patch: ExpansionError: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception MalformedUrl: The URL: 'git://;protocol=file;branch=standard/swi-mdm9x15-yocto-1.7-swi-le55,meta-yocto-1.7-swi-le55;name=machine,meta' is invalid and cannot be interpreted
Summary: There was 1 WARNING message shown.
Summary: There was 1 ERROR message shown, returning a non-zero exit code.

Is the swi-mdm9x15 argument correct for wp85 or is it possible the Legato-Dist-Source-mdm9x15-SWI9x15Y_07.08.03.00.tar.bz2 (from the Legato Downloads link) is not the latest?

If attempting to simply run 'make' (via these instructions http://legato.io/legato-docs/latest/yocto_build.html) from the yocto build generates the following errors:

Failed to fetch URL git://codeaurora.org/platform/hardware/ ... LNX.LE.2.1

Fatal : unable to connect to codeaurora.org:

Any help would be appreciated.
tlapsley
 
Posts: 3
Joined: Thu May 12, 2016 8:27 am
Has thanked: 0 time
Have thanks: 0 time

Re: wp85 rebuilding legato kernel

Postby tlapsley » Fri May 27, 2016 12:03 pm

Is there anyone else that was successful to build the kernel for wp85 ?
tlapsley
 
Posts: 3
Joined: Thu May 12, 2016 8:27 am
Has thanked: 0 time
Have thanks: 0 time

Re: wp85 rebuilding legato kernel

Postby dmarinkovic » Mon Jun 06, 2016 9:00 pm

Hi tlapsley,

Have you tried to run:

Code: Select all
    make image


Before building kernel? You need to run this command only once. After that you can:

Code: Select all
    cd poky
    source ./oe-init-build-env
    cd ../../build_bin
    bitbake -c cleanall linux-yocto (to clean)
    bitbake linux-yocto (to build it again)
    bitbake -c compile linux-yocto -f (to force kernel compilation)
    etc.


You can read more about bitbake commands at https://www.yoctoproject.org/documentation/bitbake-user-manual-0 .

Please, let me know if you have any other questions.

Best regards,
Dragan
dmarinkovic
 
Posts: 3
Joined: Tue May 06, 2014 12:04 pm
Has thanked: 0 time
Have thanks: 0 time

Re: wp85 rebuilding legato kernel

Postby rio99 » Thu Sep 01, 2016 8:21 am

I have the same problem, but
Code: Select all
make image
didn't help:

ERROR: Fetcher failure: Fetch command failed with exit code 128, output:
Cloning into bare repository '/home/igor/yocto/build_bin/downloads/git2/codeaurora.org.platform.hardware.libhardware'...
fatal: unable to connect to codeaurora.org:
codeaurora.org[0: 198.145.29.80]: errno=Connection refused
ERROR: Function failed: Fetcher failure for URL: 'git://codeaurora.org/platform/hardware/libhardware;branch=LNX.LE.2.1'. Unable to fetch URL from any source.
ERROR: Logfile of failure stored in: /home/igor/yocto/build_bin/tmp/work/armv7a-vfp-neon-poky-linux-gnueabi/libhardware/1.0-r0/temp/log.do_fetch.22981
ERROR: Task 1284 (/home/igor/yocto/meta-swi/meta-swi-mdm9xxx/recipes-bsp/libhardware/libhardware.bb, do_fetch) failed with exit code '1'


Doing
Code: Select all
./build.sh -p ../poky/ -o ../meta-openembedded/ -l ../meta-swi -m swi-mdm9x15 -q -t 4 -j 4 -d
throws another error:
ERROR: ExpansionError during parsing /home/igor/yocto/poky/meta/recipes-kernel/linux/linux-yocto-rt_3.14.bb: Failure expanding variable do_patch: ExpansionError: Failure expanding variable SRCPV, expression was ${@bb.fetch2.get_srcrev(d)} which triggered exception MalformedUrl: The URL: 'git://;protocol=file;branch=standard/swi-mdm9x15-yocto-1.7-swi-le55,meta-yocto-1.7-swi-le55;name=machine,meta' is invalid and cannot be interpreted


I have Legato Linux distribution Version 16.07.0 downloaded from http://source.sierrawireless.com/resour ... linuxdist/ and I am trying to build on ubuntu 16.04.
Any help will be appreciated.
rio99
 
Posts: 7
Joined: Tue Apr 12, 2016 11:48 am
Has thanked: 0 time
Have thanks: 0 time


Return to Legato Application Framework -- MOVED TO FORUM.LEGATO.IO

Who is online

Users browsing this forum: No registered users and 3 guests