Hi everyone,
Today I use the toaster in the yocto project in the imx8dxmek.
1.According the imx yocto linux user guide,I install the yocto environment.
2.run DISTRO=fsl-imx-wayland MACHINE=imx8dxmek source imx-setup-release.sh -b imx8dx_toaster_build
3.run source toaster start
4.In the webbrowser ,set the http://localhost:8000/
5.click the newproject in the top right corner.
6.Project name is test ,enable Import command line project,the exist project directory is /home/zenghongjin/imx-yocto-bsp/imx8dx_toaster_build,then click create peoject
7.Now I get the error message
Environment:
Request Method: POST
Request URL: http://localhost:8000/toastergui/newproject/
Django Version: 1.11.29
Python Version: 3.8.5
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.messages',
'django.contrib.sessions',
'django.contrib.admin',
'django.contrib.staticfiles',
'django.contrib.humanize',
'bldcollector',
'toastermain',
'bldcontrol',
'orm',
'toastergui')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware')
Traceback:
File "/home/zenghongjin/.local/lib/python3.8/site-packages/django/core/handlers/exception.py" in inner
41. response = get_response(request)
File "/home/zenghongjin/.local/lib/python3.8/site-packages/django/core/handlers/base.py" in _legacy_get_response
249. response = self._get_response(request)
File "/home/zenghongjin/.local/lib/python3.8/site-packages/django/core/handlers/base.py" in _get_response
187. response = self.process_exception_by_middleware(e, request)
File "/home/zenghongjin/.local/lib/python3.8/site-packages/django/core/handlers/base.py" in _get_response
185. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/home/zenghongjin/imx-yocto-bsp/sources/poky/bitbake/lib/toaster/toastergui/views.py" in newproject
1410. management.call_command('buildimport', '--command=import', '--name=%s' % request.POST['projectname'], '--path=%s' % request.POST['importdir'], interactive=False)
File "/home/zenghongjin/.local/lib/python3.8/site-packages/django/core/management/__init__.py" in call_command
131. return command.execute(*args, **defaults)
File "/home/zenghongjin/.local/lib/python3.8/site-packages/django/core/management/base.py" in execute
330. output = self.handle(*args, **options)
File "/home/zenghongjin/imx-yocto-bsp/sources/poky/bitbake/lib/toaster/toastermain/management/commands/buildimport.py" in handle
507. default_release = Release.objects.get(id=1)
File "/home/zenghongjin/.local/lib/python3.8/site-packages/django/db/models/manager.py" in manager_method
85. return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/home/zenghongjin/.local/lib/python3.8/site-packages/django/db/models/query.py" in get
378. raise self.model.DoesNotExist(
Exception Type: DoesNotExist at /toastergui/newproject/
Exception Value: Release matching query does not exist.
How to resolve the problem?Who can give me some advice?
Thanks.
Hello hongjinzeng,
Toaster is not supported by the i.mx8 BSP as of today. You may be able to get it running on the Community BSP as it’s part of the Yocto project but in my experience the way the layers are handled makes it not to work.
Regards