Re: [meta-freescale] Help using toaster

2016-10-25 Thread Thomas Thorne
I continued trying to get Toaster to work last week. 

I found that by cloning a fresh poky work area directly from the yocto project 
main repository I was able to include the meta-fsl-arm layer from their servers 
(which I think is a direct mirror of the GitHub one) and build an image.  I 
targeted the ls1021atwr machine in my toaster build.  

I am sure that with some manipulation of the toasterconf.json file, it would be 
possible to use the freescale work area layout as generated by repo.  If I make 
progress in that area I will update this thread or possibly generate a patch 
for the toasterconf.json file.  

Thomas A. F. Thorne  Software Engineer  Net2Edge

-Original Message-
From: Thomas Thorne 
Sent: 19 October 2016 12:45
To: Thomas Thorne ; Daiane Angolini 
; Gustavo Ramon Arambula Aguilar 

Cc: meta-freescale@yoctoproject.org
Subject: RE: [meta-freescale] Help using toaster

After reading more of the toaster-manual I found the section on "4.1.1.2. 
Configuring Toaster to Hook Into Your Layer Index"

In there it is mentioned that after editing your toasterconf.json file there 
are two commands you should run from your toaster environment to pick up 
changes from your modified file.  To load the changes you run something like: 
$ bitbake/lib/toaster/manage.py loadconf 
/home/scottrif/poky/meta-poky/conf/toasterconf.json
If that was successful you then run:
$ bitbake/lib/toaster/manage.py lsupdates to update your Toaster databse.  

When I run the loadconf command I get a lot of errors out of it, even with the 
default toasterconf.json:

~/work/fsl-community-bsp/ls1021atwr$ 
../sources/poky/bitbake/lib/toaster/manage.py loadconf -v 2 
/home/thomasthorne/work/fsl-community-bsp/sources/poky/meta-poky/conf/toasterconf.json
 
WARNING:root:Error while looking for remote "origin" in "yocto  
https://git.yoctoproject.org/git/poky (fetch)
yocto   https://git.yoctoproject.org/git/poky (push)
"
2016-10-19 11:54:17,691 ERROR The toaster config file references the local git 
repo, but Toaster cannot detect it.
Your local configuration for bitbake version jethro is invalid. Make sure that 
the toasterconf.json file is correct.
ERROR:toaster:The toaster config file references the local git repo, but 
Toaster cannot detect it.
Your local configuration for bitbake version jethro is invalid. Make sure that 
the toasterconf.json file is correct.
WARNING:root:Error while looking for remote "origin" in "yocto  
https://git.yoctoproject.org/git/poky (fetch)
yocto   https://git.yoctoproject.org/git/poky (push)
"
2016-10-19 11:54:17,696 ERROR The toaster config file references the local git 
repo, but Toaster cannot detect it.
Your local configuration for bitbake version krogoth is invalid. Make sure that 
the toasterconf.json file is correct.
ERROR:toaster:The toaster config file references the local git repo, but 
Toaster cannot detect it.
Your local configuration for bitbake version krogoth is invalid. Make sure that 
the toasterconf.json file is correct.
WARNING:root:Error while looking for remote "origin" in "yocto  
https://git.yoctoproject.org/git/poky (fetch)
yocto   https://git.yoctoproject.org/git/poky (push)
"
2016-10-19 11:54:17,699 ERROR The toaster config file references the local git 
repo, but Toaster cannot detect it.
Your local configuration for bitbake version HEAD is invalid. Make sure that 
the toasterconf.json file is correct.
ERROR:toaster:The toaster config file references the local git repo, but 
Toaster cannot detect it.
Your local configuration for bitbake version HEAD is invalid. Make sure that 
the toasterconf.json file is correct.
WARNING:root:Error while looking for remote "origin" in "yocto  
https://git.yoctoproject.org/git/poky (fetch)
yocto   https://git.yoctoproject.org/git/poky (push)
"
2016-10-19 11:54:17,705 ERROR The toaster config file references the local git 
repo, but Toaster cannot detect it.
Your local configuration for layer openembedded-core is invalid. Make sure that 
the toasterconf.json file is correct.
ERROR:toaster:The toaster config file references the local git repo, but 
Toaster cannot detect it.
Your local configuration for layer openembedded-core is invalid. Make sure that 
the toasterconf.json file is correct.
WARNING:root:Error while looking for remote "origin" in "yocto  
https://git.yoctoproject.org/git/poky (fetch)
yocto   https://git.yoctoproject.org/git/poky (push)
"
2016-10-19 11:54:17,711 ERROR The toaster config file references the local git 
repo, but Toaster cannot detect it.
Your local configuration for layer meta-poky is invalid. Make sure that the 
toasterconf.json file is correct.
ERROR:toaster:The toaster config file references the local git repo, but 
Toaster cannot detect it.
Your local configuration for layer meta-poky is invalid. Make sure that the 
toasterconf.json file is correct.
WARNING:root:Error while looking for remo

Re: [meta-freescale] Help using toaster

2016-10-19 Thread Thomas Thorne
After reading more of the toaster-manual I found the section on "4.1.1.2. 
Configuring Toaster to Hook Into Your Layer Index"

In there it is mentioned that after editing your toasterconf.json file there 
are two commands you should run from your toaster environment to pick up 
changes from your modified file.  To load the changes you run something like: 
$ bitbake/lib/toaster/manage.py loadconf 
/home/scottrif/poky/meta-poky/conf/toasterconf.json
If that was successful you then run:
$ bitbake/lib/toaster/manage.py lsupdates
to update your Toaster databse.  

When I run the loadconf command I get a lot of errors out of it, even with the 
default toasterconf.json:

~/work/fsl-community-bsp/ls1021atwr$ 
../sources/poky/bitbake/lib/toaster/manage.py loadconf -v 2 
/home/thomasthorne/work/fsl-community-bsp/sources/poky/meta-poky/conf/toasterconf.json
 
WARNING:root:Error while looking for remote "origin" in "yocto  
https://git.yoctoproject.org/git/poky (fetch)
yocto   https://git.yoctoproject.org/git/poky (push)
"
2016-10-19 11:54:17,691 ERROR The toaster config file references the local git 
repo, but Toaster cannot detect it.
Your local configuration for bitbake version jethro is invalid. Make sure that 
the toasterconf.json file is correct.
ERROR:toaster:The toaster config file references the local git repo, but 
Toaster cannot detect it.
Your local configuration for bitbake version jethro is invalid. Make sure that 
the toasterconf.json file is correct.
WARNING:root:Error while looking for remote "origin" in "yocto  
https://git.yoctoproject.org/git/poky (fetch)
yocto   https://git.yoctoproject.org/git/poky (push)
"
2016-10-19 11:54:17,696 ERROR The toaster config file references the local git 
repo, but Toaster cannot detect it.
Your local configuration for bitbake version krogoth is invalid. Make sure that 
the toasterconf.json file is correct.
ERROR:toaster:The toaster config file references the local git repo, but 
Toaster cannot detect it.
Your local configuration for bitbake version krogoth is invalid. Make sure that 
the toasterconf.json file is correct.
WARNING:root:Error while looking for remote "origin" in "yocto  
https://git.yoctoproject.org/git/poky (fetch)
yocto   https://git.yoctoproject.org/git/poky (push)
"
2016-10-19 11:54:17,699 ERROR The toaster config file references the local git 
repo, but Toaster cannot detect it.
Your local configuration for bitbake version HEAD is invalid. Make sure that 
the toasterconf.json file is correct.
ERROR:toaster:The toaster config file references the local git repo, but 
Toaster cannot detect it.
Your local configuration for bitbake version HEAD is invalid. Make sure that 
the toasterconf.json file is correct.
WARNING:root:Error while looking for remote "origin" in "yocto  
https://git.yoctoproject.org/git/poky (fetch)
yocto   https://git.yoctoproject.org/git/poky (push)
"
2016-10-19 11:54:17,705 ERROR The toaster config file references the local git 
repo, but Toaster cannot detect it.
Your local configuration for layer openembedded-core is invalid. Make sure that 
the toasterconf.json file is correct.
ERROR:toaster:The toaster config file references the local git repo, but 
Toaster cannot detect it.
Your local configuration for layer openembedded-core is invalid. Make sure that 
the toasterconf.json file is correct.
WARNING:root:Error while looking for remote "origin" in "yocto  
https://git.yoctoproject.org/git/poky (fetch)
yocto   https://git.yoctoproject.org/git/poky (push)
"
2016-10-19 11:54:17,711 ERROR The toaster config file references the local git 
repo, but Toaster cannot detect it.
Your local configuration for layer meta-poky is invalid. Make sure that the 
toasterconf.json file is correct.
ERROR:toaster:The toaster config file references the local git repo, but 
Toaster cannot detect it.
Your local configuration for layer meta-poky is invalid. Make sure that the 
toasterconf.json file is correct.
WARNING:root:Error while looking for remote "origin" in "yocto  
https://git.yoctoproject.org/git/poky (fetch)
yocto   https://git.yoctoproject.org/git/poky (push)
"
2016-10-19 11:54:17,716 ERROR The toaster config file references the local git 
repo, but Toaster cannot detect it.
Your local configuration for layer meta-yocto-bsp is invalid. Make sure that 
the toasterconf.json file is correct.
ERROR:toaster:The toaster config file references the local git repo, but 
Toaster cannot detect it.
Your local configuration for layer meta-yocto-bsp is invalid. Make sure that 
the toasterconf.json file is correct.


So either there is a problem with the script doing the checking or with the 
default config file.  
$ ../sources/poky/bitbake/lib/toaster/manage.py loadconf --version
1.8.15
Who know what is really wants to see in that file.  I will try either working 
out how to write a new toasterconf.json file that does not generate a bunch of 
complains or see if getting the /admin/ web interface working suggests 
something helpful.  I can see the login p

Re: [meta-freescale] Help using toaster

2016-10-18 Thread Thomas Thorne
I have just tried to use toaster and also got the remote loaning error:

command: git clone "remote:origin" 
"/home/thomasthorne/work/fsl-community-bsp/_toaster_clones/_remote_origin_krogoth"
 
Cloning into 
'/home/thomasthorne/work/fsl-community-bsp/_toaster_clones/_remote_origin_krogoth'...
ssh: Could not resolve hostname remote: Temporary failure in name resolution
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.


Did anyone get this working recently?  It seems that It is not that 
straightforward.  Here is my working so far, I will keep plugging away in the 
morning.   


Now when I look back at the console that I started toaster from I can see a lot 
of errors output:

(venv) thomasthorne@thorne-ul-dt:~/work/fsl-community-bsp/ls1021atwr$ source 
../sources/poky/bitbake/bin/toaster
The system will start.
Check if toaster can listen on 0.0.0.0:8000
OK
Operations to perform:
  Synchronize unmigrated apps: staticfiles, messages, toastermain, 
bldcollector, toastergui, humanize
  Apply all migrations: sessions, admin, auth, contenttypes, orm, bldcontrol
Synchronizing apps without migrations:
  Creating tables...
Running deferred SQL...
  Installing custom SQL...
Running migrations:
  Rendering model states... DONE
  Applying contenttypes.0001_initial... OK
  Applying auth.0001_initial... OK
  Applying admin.0001_initial... OK
  Applying contenttypes.0002_remove_content_type_name... OK
  Applying auth.0002_alter_permission_name_max_length... OK
  Applying auth.0003_alter_user_email_max_length... OK
  Applying auth.0004_alter_user_username_opts... OK
  Applying auth.0005_alter_user_last_login_null... OK
  Applying auth.0006_require_contenttypes_0002... OK
  Applying orm.0001_initial... OK
  Applying bldcontrol.0001_initial... OK
  Applying bldcontrol.0002_auto_20160120_1250... OK
  Applying bldcontrol.0003_add_cancelling_state... OK
  Applying orm.0002_customimagerecipe... OK
  Applying orm.0003_customimagepackage... OK
  Applying orm.0004_provides... OK
  Applying orm.0005_task_field_separation... OK
  Applying orm.0006_add_cancelled_state... OK
  Applying sessions.0001_initial... OK

 -- Validation: The layers checkout directory must be set.

 -- Validation: The build directory must be set.

Build configuration saved

Importing file: 
/home/thomasthorne/work/fsl-community-bsp/sources/poky/meta-poky/conf/toasterconf.json
WARNING:root:Error while looking for remote "origin" in "yocto  
https://git.yoctoproject.org/git/poky (fetch)
yocto   https://git.yoctoproject.org/git/poky (push)
"
2016-10-18 15:47:59,765 ERROR The toaster config file references the local git 
repo, but Toaster cannot detect it.
Your local configuration for bitbake version jethro is invalid. Make sure that 
the toasterconf.json file is correct.
ERROR:toaster:The toaster config file references the local git repo, but 
Toaster cannot detect it.
Your local configuration for bitbake version jethro is invalid. Make sure that 
the toasterconf.json file is correct.
WARNING:root:Error while looking for remote "origin" in "yocto  
https://git.yoctoproject.org/git/poky (fetch)
yocto   https://git.yoctoproject.org/git/poky (push)
"
2016-10-18 15:47:59,770 ERROR The toaster config file references the local git 
repo, but Toaster cannot detect it.
Your local configuration for bitbake version krogoth is invalid. Make sure that 
the toasterconf.json file is correct.
ERROR:toaster:The toaster config file references the local git repo, but 
Toaster cannot detect it.
Your local configuration for bitbake version krogoth is invalid. Make sure that 
the toasterconf.json file is correct.
WARNING:root:Error while looking for remote "origin" in "yocto  
https://git.yoctoproject.org/git/poky (fetch)
yocto   https://git.yoctoproject.org/git/poky (push)
"
2016-10-18 15:47:59,775 ERROR The toaster config file references the local git 
repo, but Toaster cannot detect it.
Your local configuration for bitbake version HEAD is invalid. Make sure that 
the toasterconf.json file is correct.
ERROR:toaster:The toaster config file references the local git repo, but 
Toaster cannot detect it.
Your local configuration for bitbake version HEAD is invalid. Make sure that 
the toasterconf.json file is correct.
WARNING:root:Error while looking for remote "origin" in "yocto  
https://git.yoctoproject.org/git/poky (fetch)
yocto   https://git.yoctoproject.org/git/poky (push)
"
2016-10-18 15:47:59,781 ERROR The toaster config file references the local git 
repo, but Toaster cannot detect it.
Your local configuration for layer openembedded-core is invalid. Make sure that 
the toasterconf.json file is correct.
ERROR:toaster:The toaster config file references the local git repo, but 
Toaster cannot detect it.
Your local configuration for layer openembedded-core is invalid. Make sure that 
the toasterconf.json file is correct.
WARNING:root:Error while looking for remote "origin" in "yocto  
https://git.yoctop

Re: [meta-freescale] Help using toaster

2016-08-10 Thread Daiane Angolini
On Tue, Aug 9, 2016 at 5:57 PM, Gustavo Ramon Arambula Aguilar
 wrote:
> Hello team,
>
>
>
> I’ve been trying to use Toaster by following the steps on the Toaster
> Reference Manual. I’m using the FSL Community BSP krogoth branch and toaster
> does start altough at webserver address:  http://0.0.0.0:8000/
>
>
>
> I can see and add layers that are part of the Yocto Project but I always get
> the same error when Toaster tries to clone the repositories:
>
>
>
> “command: git clone "remote:origin"
> "/home/usuario/fsl-community-bsp/_toaster_clones/_remote_origin_krogoth"
>
> Cloning into
> '/home/usuario/fsl-community-bsp/_toaster_clones/_remote_origin_krogoth'...
>
> ssh: Could not resolve hostname remote: Name or service not known
>
> fatal: Could not read from remote repository.
>
>
>
> Please make sure you have the correct access rights
>
> and the repository exists.”
>
>
>
> Has anyone encountered a similar error or had any experience running Toaster
> for the Community BSP that may suggest me what went wrong?

I was able to build an image when I tested Toaster in the past (I have
no idea when)

Make sure you have all needed host packages listed in the quick start guide.

Make sure your proxy does not block ssh or other services.


Daiane
>
>
>
> Regards,
>
>
>
>
> --
> ___
> meta-freescale mailing list
> meta-freescale@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/meta-freescale
>
-- 
___
meta-freescale mailing list
meta-freescale@yoctoproject.org
https://lists.yoctoproject.org/listinfo/meta-freescale