Hi Rizwan,


In fact Belen is right. You shouldn't make changes in your toaster cloned directories. If at all you need to make change, may be you can create a local layer and import it into toaster and then have your local changes in that layer. Just import the local layer as mentioned by Belen.


Below is the screenshot of how a user can change machine:


Hope this helps?


Thanks,

Sujith H



From: toaster-bounces@yoctoproject.org <toaster-bounces@yoctoproject.org> on behalf of belen barros pena <belenbarrospena@gmail.com>
Sent: Saturday, February 11, 2017 4:46 PM
To: Rizwan Md
Cc: toaster@yoctoproject.org
Subject: Re: [Toaster] Issue with Toaster
 
On Sat, Feb 11, 2017 at 6:21 AM, Rizwan Md <mdrizwan827@gmail.com> wrote:

Hi Sujith,

Thanks for the reply.

Yes, I am able to download the sources using https in command line.

And also Toaster is able to download the meta-freescale and meta-freescale-3rdparty layers into “_toaster_clones” directory.

Query1: The actual issue I am facing is not regarding git access it’s about Toaster behavior.


Hi Rizwan,

I think I might be able to answer your first question, which is about the layer development workflow with Toaster. In short, you should never make any changes to the layers inside the _toaster_clones directory since, as you have observed, those layers will be reset every time you start a new build.

If you want to make changes to an upstream layer, you should make a local clone of that layer (outside the _toaster_clones directory) and make your changes in that local clone. Then:

1) Remove the upstream layer(s) you are changing from the list of layers added to your project, which are listed in the project configuration page

2) Using the "Import layer" functionality, import your local version of the layer(s) where you are making your changes. You can either point Toaster to a local directory or initialise the local directory as a Git repository and enter the repository information. Note that you will have to give a new name to the layers you are importing, since Toaster does not allow you to have 2 layers with the same name inside a project.

I hope this explains.

I will try to explain it clearly below:

When all the required layers are added in Toaster(I provide only the https addresses of layers to be added in import layer of Toaster as mentioned in my previous mail), machine is set and I start the build, Toaster clones the meta-freescale and meta-freescale-3rdparty correctly into “_toaster_clones” and starts the build as expected. Until this everything goes well.

But, later if I get into any error related to cloned layers, I manually do changes to the required files inside "_toaster_clones" directory to resolve the error.

When I do “rebuild” in Toaster after my changes, it removes the changes I made previously and runs into the same error again.

I guess the problem is in this “Toaster will fetch and checkout your chosen git revision each time you start a build”(See the screenshot ”ToasterMorty.png” attached), hence the changes I make manually to the cloned layers inside _toaster_clones are never applied to the build.

Note: _toaster_clones directory in my case is stored inside poky/_toaster_clones.

Please let me know what needs to be done. Am I doing anything wrong or this is how Toaster works?

Query2: And I require one more clarity on the following regarding Toaster.

To build a minimal image for my imx6qsabrelite board using Toaster I follow below steps
1. Clone poky and switch to krogoth/morty branch.
2. Start Toaster in Port 8000
3. Inside import layer of Toaster, added repo addresses of two layers I.e. meta-freescale and meta-freescale-3rdparty and added them into Toaster.(In total I have 5 layers, 3 default and 2 which I imported).
4. Change the machine to imx6qsabrelite.
5. Set Bitbake variable ACCEPT_FSL_EULA to 1.

6. Start building core-image-minimal.

Note: I am using "Local project release" in Toaster.

Are the above steps correct with respect to Toaster or am I missing something?

Query3 (Not related to above 2 queries): One last thing, in morty release I recently downloaded, I am not able to set machine variable(Please see the screenshot “ToasterwithoutMainpage.png”).

This might be a bug in Morty.

Cheers

Belén
 

Do you know what might have caused such behavior?

Please answer my above queries, as I want to resolve them ASAP.
Please let me know if any other information is required.

Thanks and regards,

Rizwan

Hi,

Are you able to download the sources with https from the command line? Just wondering if the sources have been downloaded to the downloads folder or a folder name which DL_DIR is pointing to in your case. If so toaster shouldn't stop you from building the source. Just make sure that replacing git with https works on the command line. If https works on the command line, then you can also go for protocol=https. Also just make sure if you have ACCEPT_FSL_EULA added in the bitbake variables of toaster.

Hope this helps you?

Thanks,
Sujith H

On Tue, Feb 7, 2017 at 12:15 AM, Rizwan Md <mdrizwan827@gmail.com> wrote:

Hello,

I have been using toaster recently.

I am facing an issue while using Toaster with "Local Yocto Project release".

I am doing the following:
Trying to create an image for my imx6qsabrelite board.
1. Started Toaster.
2. Selected Local Yocto Project release.
3. Imported following layer into Toaster.
3.1. meta-freescale from:
https://github.com/Freescale/meta-freescale/blob/master/README
3.2. meta-freescale-3rdparty(This supports the imx6qsabrelite machine) layer from:
https://github.com/Freescale/meta-freescale-3rdparty/blob/master/README
4. Changed the machine as imx6qsabrelite
5. Started building core-image-minimal image for my imx6qsabrelite board.

The building starts as expected, but at some point of time I got an error saying "no address associated with hostname" and the building stopped.
Since I cannot access repositories using "git:://git"(due to firewall) I need to change it to https in the required file.

I manually browsed to the file and changed git to https, and pressed "rebuild" button in Toaster.

Expected result: Toaster adapts my changes and clones the required repos using https and rebuilds the image.

Obtained result : The changes I made to the file got "undone" and Toaster again got stuck with the same error.

Please let me know how to solve this issue. I cannot use git for cloning due to firewall, hence I want to be able to change git to https wherever required and start rebuilding.

Sorry if the content is not clear, please let me know if any clarity is required.

Awaiting your response.

Thanks,
Rizwan.


--
_______________________________________________
toaster mailing list
toaster@yoctoproject.org
https://lists.yoctoproject.org/listinfo/toaster




--
സുജിത് ഹരിദാസന്
Bangalore
<Project>Contributor to KDE project
<Project>Contributor to Yocto project
C-x C-c

--
_______________________________________________
toaster mailing list
toaster@yoctoproject.org
https://lists.yoctoproject.org/listinfo/toaster