devtool question/issue


gartnerd@...
 

Hi,

I've been following along on this youtube video created by a Yocto developer:


I can reproduce everything presented until it comes to using devtool (as shown at the time index in the link given above). When attempting to run:

devtool add git://blah-blah-gitrepo

I get the error:

ERROR: workspace layer not set up


My understanding from the documentation is that the "workspace" layer gets created (if it doesn't exist) when running devtool with a command such as add.

Since I'm new at using Yocto, it's likely that I"m missing something fundamental here. 

Any help/suggestions would be appreciated


Gary Huband
 

I always start with

devtool modify <package>

This sets-up the workspace,  puts the package source code in workspace/sources, inits git, etc.

Gary


From: yocto@... <yocto@...> on behalf of David Gartner via lists.yoctoproject.org <gartnerd=gmail.com@...>
Sent: Friday, February 5, 2021 8:06 PM
To: yocto@... <yocto@...>
Subject: [yocto] devtool question/issue
 
Hi,

I've been following along on this youtube video created by a Yocto developer:


I can reproduce everything presented until it comes to using devtool (as shown at the time index in the link given above). When attempting to run:

devtool add git://blah-blah-gitrepo

I get the error:

ERROR: workspace layer not set up


My understanding from the documentation is that the "workspace" layer gets created (if it doesn't exist) when running devtool with a command such as add.

Since I'm new at using Yocto, it's likely that I"m missing something fundamental here. 

Any help/suggestions would be appreciated

Gary Huband
Sr. Software and Systems Engineer

Office: 434.284.8071 x720
Direct: 434.260.4995
Gary@...

Follow Us!
LinkedIn  |  Blog  |  Website

: : : : : : : : : : : : : : : : : : : : : : : : : : :

MSi

This email and any files transmitted with it are confidential and proprietary and intended solely for the use of the individual or entity to whom they are addressed. Any dissemination, distribution or copying of this communication is strictly prohibited without our prior permission. If you received this in error, please contact the sender and delete the material from any computer.


David Gartner <gartnerd@...>
 

Thanks for the suggestion. I gave it a try but I still get the same result/error :( 


David Gartner <gartnerd@...>
 

After some experimentation it appears that devtool does not like running from a filesystem volume that does not contain my home directory. 

My current setup on a virtualized host has the following volumes:

Filesystem      Size  Used Avail Use% Mounted on

udev             32G     0   32G   0% /dev

tmpfs           6.3G  5.7M  6.3G   1% /run

/dev/sda         25G   11G   13G  46% /

tmpfs            32G     0   32G   0% /dev/shm

tmpfs           5.0M     0  5.0M   0% /run/lock

tmpfs            32G     0   32G   0% /sys/fs/cgroup

/dev/sdc        148G   39G  102G  28% /mnt/YB

tmpfs           6.3G     0  6.3G   0% /run/user/1000

My home directory is located on /dev/sda - devtool works for yocto projects on this volume

/dev/sdc - I added this volume so that I'd have more space while using yocto, but devtool complains and doesn't run here. I deleted the contents of /dev/sdc and re-tried following the tutorial given in my initial post. I can reproduce (e.g. create and run qemuarm images) everything upto the step where devtool needs to be used.

The short term solution would be to increase the size of /dev/sdc but this requires moving up to a more expensive plan from my cloud provider.

Any insight as to why this occurs


David Gartner <gartnerd@...>
 

I found the issue that was causing my problem. Just an FYI if anyone else happens to run into this.

There was a file named ".devtoolbase" in /mnt/YB. I think this was a remenant of some previous work I was doing with yocto. I'm not sure what the purpose of this file is but once I removed it devtool no longer errorred out.


Josef Holzmayr
 

Hi David!

Am Mo., 8. Feb. 2021 um 01:01 Uhr schrieb David Gartner <gartnerd@gmail.com>:
I found the issue that was causing my problem. Just an FYI if anyone else happens to run into this.

There was a file named ".devtoolbase" in /mnt/YB. I think this was a remenant of some previous work I was doing with yocto. I'm not sure what the purpose of this file is but once I removed it devtool no longer errorred out.
Oh great, thanks for the heads up. I am actually the one who did the
video, and just returned into office mondayishly and would have tried
probably this afternoon. But that I would have never found, as I
usually start out in clean slate containers, and I use devtool a lot
in there with builds even scattered out over multiple mount points.So
glad you figurede out and took the time to share!

Greetz