ubuntugpsdpetalinux

gpsd:error: can't run with neither control socket nor devices on petalinux


I am facing a gpsd issues on petalinux. I have installed the gpsd on petalinux but the gpsd-client was not being installed, thats why gpsd.socket and the gpsd.service files are missing. Can someone tell me if i add these files manually, where i place these files so that gpsd works properly.


Solution

  • gpsd-client is a separate recipe. It's not installed automatically when you install gpsd. You'll need to explicitly call it out in your PetaLinux build. That being said, gpsd is not dependent on gpsd-client so it should work whether gpsd-client is installed or not.

    To install gpsd-client:
    Open project-spec/meta-user/recipes-core/images/petalinux-image.bbappend
    (filename may vary based on version of Petalinux you are using)

    add these lines:
    IMAGE_INSTALL_append = " gpsd"
    IMAGE_INSTALL_append = " gpsd-client"

    petalinux-config -c rootfs
    user packages --> [x] gpsd
    user packages --> [x] gpsd-client

    petalinux-build

    If gpsd-client fails to build correctly, you may need to add the appropriate layer to the build process. The gpsd-client recipe info can be found in the OpenEmbedded Layer Index.