All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Haridasan, Sujith" <Sujith_Haridasan@mentor.com>
To: belen barros pena <belenbarrospena@gmail.com>,
	Rizwan Md <mdrizwan827@gmail.com>
Cc: "toaster@yoctoproject.org" <toaster@yoctoproject.org>
Subject: Re: Issue with Toaster
Date: Sun, 12 Feb 2017 13:56:51 +0000	[thread overview]
Message-ID: <1486907809689.26962@mentor.com> (raw)
In-Reply-To: <CAKvA3BSbnaBmotxK=XHOK-=kAQpgEiMecA3xMa85_X6V2gFXfg@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 7504 bytes --]

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:

[cid:5b23618c-884d-4f5b-8543-e2bb5fb79e70]


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<mailto: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<mailto: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<mailto:toaster@yoctoproject.org>
https://lists.yoctoproject.org/listinfo/toaster




--
?????? ????????
Bangalore
<Project>Contributor to KDE project
<Project>Contributor to Yocto project
http://fci.wikia.com/wiki/Anti-DRM-Campaign
<Blog> http://sujithh.info
C-x C-c

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



[-- Attachment #1.2: Type: text/html, Size: 11510 bytes --]

[-- Attachment #2: pastedImage.png --]
[-- Type: image/png, Size: 217522 bytes --]

  parent reply	other threads:[~2017-02-12 13:57 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-06 18:45 Issue with Toaster Rizwan Md
2017-02-07  4:55 ` sujith h
2017-02-11  6:21   ` Rizwan Md
2017-02-11 11:16     ` belen barros pena
2017-02-12  6:52       ` Reyna, David
2017-02-12 13:56       ` Haridasan, Sujith [this message]
  -- strict thread matches above, loose matches on Subject: below --
2015-05-07 12:47 Issue with toaster Barros Pena, Belen
2015-05-08  5:14 ` Raghavendra Kakarla
2015-05-08  8:54   ` Damian, Alexandru
2015-05-08  9:42     ` Raghavendra Kakarla
2015-05-15 14:08       ` Damian, Alexandru
2015-06-02  5:07         ` Raghavendra Kakarla
2015-06-10 14:46           ` Damian, Alexandru
2015-05-07  9:18 Raghavendra Kakarla

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1486907809689.26962@mentor.com \
    --to=sujith_haridasan@mentor.com \
    --cc=belenbarrospena@gmail.com \
    --cc=mdrizwan827@gmail.com \
    --cc=toaster@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.