Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MACHINE=mdm9607 is invalid. Please set a valid MACHINE in your local.conf, environment or other configuration file. #1

Closed
VielLosero opened this issue Jan 12, 2021 · 3 comments
Assignees

Comments

@VielLosero
Copy link

VielLosero commented Jan 12, 2021

[v@arcadia pinephone_modem_sdk]$ make kernel                                                                                    [5/4359]
mv /home/v/data/olimex/usb-glink/new_kernel_and_bootloader/pinephone_modem_sdk/yocto/build/conf/local.conf /home/v/data/olimex/usb-glink
/new_kernel_and_bootloader/pinephone_modem_sdk/yocto/build/conf/backup.conf                                                             
cp /home/v/data/olimex/usb-glink/new_kernel_and_bootloader/pinephone_modem_sdk/tools/config/poky/rootfs.conf /home/v/data/olimex/usb-gli
nk/new_kernel_and_bootloader/pinephone_modem_sdk/yocto/build/conf/local.conf                                                            
cd /home/v/data/olimex/usb-glink/new_kernel_and_bootloader/pinephone_modem_sdk/yocto && source /home/v/data/olimex/usb-glink/new_kernel_and_bootloader/pinephone_modem_sdk/yocto/oe-init-build-env && \
bitbake -c menuconfig virtual/kernel

### Shell environment set up for builds. ###

You can now run 'bitbake <target>' 

Common targets are:
    core-image-minimal
    core-image-sato
    meta-toolchain
    meta-ide-support

You can also run generated qemu images with a command like 'runqemu qemux86'

Other commonly useful commands are:
 - 'devtool' and 'recipetool' handle common recipe tasks
 - 'bitbake-layers' handles common layer tasks
 - 'oe-pkgdata-util' handles common target package tasks
WARNING: Host distribution "arch" has not been validated with this version of the build system; you may possibly experience unexpected failures. It is recommended that you use a tested distribution.
ERROR:  OE-core's config sanity checker detected a potential misconfiguration.
    Either fix the cause of this error or at your own risk disable the checker (see sanity.conf).
    Following is the list of potential problems / advisories:

    MACHINE=mdm9607 is invalid. Please set a valid MACHINE in your local.conf, environment or other configuration file.

is there a layer missing? maybe I missed something ...
any help is appreciated thanks

@Biktorgj
Copy link
Collaborator

Don't know what exactly went wrong with the init script, but it looks like it didn't add the meta-qcom layer to your settings, can you check if all layers defined in init.sh have been populated in yocto/build/conf/bblayers.conf?

Recently I started moving to yocto release 3.2, if the clone is not recent, you might have a broken tree. If in doubt, do a git pull, completely erase the yocto folder (if you didn't make any changes to the tree, and rerun init.sh to recreate the structure)

@Biktorgj Biktorgj self-assigned this Jan 14, 2021
@VielLosero
Copy link
Author

VielLosero commented Jan 15, 2021


[v@arcadia build]$ bitbake-layers show-layers
NOTE: Starting bitbake server...
layer                 path                                      priority
==========================================================================
meta                  /home/v/data/olimex/usb-glink/new_kernel_and_bootloader/pinephone_modem_sdk-bkp/yocto/meta  5
meta-poky             /home/v/data/olimex/usb-glink/new_kernel_and_bootloader/pinephone_modem_sdk-bkp/yocto/meta-poky  5
meta-yocto-bsp        /home/v/data/olimex/usb-glink/new_kernel_and_bootloader/pinephone_modem_sdk-bkp/yocto/meta-yocto-bsp  5
[v@arcadia build]$ 

U right seems the firewall blocks something. From a fresh init (without firewall) it works great.
I need to disable firewall to build as well because yocto download lot of files with no common ports 80 or 443.
Sorry for the inconvenience , and thanks a lot.

@Biktorgj
Copy link
Collaborator

Closing the issue since it worked, if anything else fails please let me know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants