PPS GPIO with Buildroot image on Raspberry Pi 3












1















I'm a beginner with Buildroot trying to build a Linux image for the Raspberry Pi 3 in which I have access to pulse-per-second (PPS) inputs on one of the GPIO pins.



First off, I have tried this with the standard Raspbian distribution and got it to work with the following changes:




  • Add dtoverlay=pps-gpio,gpiopin=20 to /boot/config.txt.

  • Add pps-gpio to /etc/modules.


I then get an entry /dev/pps0 and when connecting a wire with PPS signal to physical pin 38 on the RPi3 and running pps-test /dev/pps0 I get the expected one signal per second.
So far so good.



Now I would like to recreate this with my own image built with Buildroot. I'm using the default configs/raspberrypi3_64_defconfig configuration, but with the following changes in make nconfig:




  • Using kernel branch rpi-4.14.y-rt from github.com/raspberrypi/linux


  • systemd as init system

  • /dev management using udev (from systemd)


  • Target packages -> Hardware handling -> pps-tools activated


(I think that is all the changes I made, but I might have forgotten something..)



In the sdcard.img which I get as output I see the file pps-gpio.dtbo in the boot partition. I add the line dtoverlay=pps-gpio,gpiopin=20 to the file config.txt. I also add the line pps-gpio to a file named pps.conf which I put in /etc/modules-load.d on the file system.



When I boot the system I get no entry /dev/ppsX but when I run lsmod I get (among others):

pps_gpio 16384 0
pps_core 20480 1 pps_gpio



Does this mean the dtoverlay has been correctly loaded? What can I try in order to get an entry in /dev/ppsX?



Thanks!










share|improve this question



























    1















    I'm a beginner with Buildroot trying to build a Linux image for the Raspberry Pi 3 in which I have access to pulse-per-second (PPS) inputs on one of the GPIO pins.



    First off, I have tried this with the standard Raspbian distribution and got it to work with the following changes:




    • Add dtoverlay=pps-gpio,gpiopin=20 to /boot/config.txt.

    • Add pps-gpio to /etc/modules.


    I then get an entry /dev/pps0 and when connecting a wire with PPS signal to physical pin 38 on the RPi3 and running pps-test /dev/pps0 I get the expected one signal per second.
    So far so good.



    Now I would like to recreate this with my own image built with Buildroot. I'm using the default configs/raspberrypi3_64_defconfig configuration, but with the following changes in make nconfig:




    • Using kernel branch rpi-4.14.y-rt from github.com/raspberrypi/linux


    • systemd as init system

    • /dev management using udev (from systemd)


    • Target packages -> Hardware handling -> pps-tools activated


    (I think that is all the changes I made, but I might have forgotten something..)



    In the sdcard.img which I get as output I see the file pps-gpio.dtbo in the boot partition. I add the line dtoverlay=pps-gpio,gpiopin=20 to the file config.txt. I also add the line pps-gpio to a file named pps.conf which I put in /etc/modules-load.d on the file system.



    When I boot the system I get no entry /dev/ppsX but when I run lsmod I get (among others):

    pps_gpio 16384 0
    pps_core 20480 1 pps_gpio



    Does this mean the dtoverlay has been correctly loaded? What can I try in order to get an entry in /dev/ppsX?



    Thanks!










    share|improve this question

























      1












      1








      1








      I'm a beginner with Buildroot trying to build a Linux image for the Raspberry Pi 3 in which I have access to pulse-per-second (PPS) inputs on one of the GPIO pins.



      First off, I have tried this with the standard Raspbian distribution and got it to work with the following changes:




      • Add dtoverlay=pps-gpio,gpiopin=20 to /boot/config.txt.

      • Add pps-gpio to /etc/modules.


      I then get an entry /dev/pps0 and when connecting a wire with PPS signal to physical pin 38 on the RPi3 and running pps-test /dev/pps0 I get the expected one signal per second.
      So far so good.



      Now I would like to recreate this with my own image built with Buildroot. I'm using the default configs/raspberrypi3_64_defconfig configuration, but with the following changes in make nconfig:




      • Using kernel branch rpi-4.14.y-rt from github.com/raspberrypi/linux


      • systemd as init system

      • /dev management using udev (from systemd)


      • Target packages -> Hardware handling -> pps-tools activated


      (I think that is all the changes I made, but I might have forgotten something..)



      In the sdcard.img which I get as output I see the file pps-gpio.dtbo in the boot partition. I add the line dtoverlay=pps-gpio,gpiopin=20 to the file config.txt. I also add the line pps-gpio to a file named pps.conf which I put in /etc/modules-load.d on the file system.



      When I boot the system I get no entry /dev/ppsX but when I run lsmod I get (among others):

      pps_gpio 16384 0
      pps_core 20480 1 pps_gpio



      Does this mean the dtoverlay has been correctly loaded? What can I try in order to get an entry in /dev/ppsX?



      Thanks!










      share|improve this question














      I'm a beginner with Buildroot trying to build a Linux image for the Raspberry Pi 3 in which I have access to pulse-per-second (PPS) inputs on one of the GPIO pins.



      First off, I have tried this with the standard Raspbian distribution and got it to work with the following changes:




      • Add dtoverlay=pps-gpio,gpiopin=20 to /boot/config.txt.

      • Add pps-gpio to /etc/modules.


      I then get an entry /dev/pps0 and when connecting a wire with PPS signal to physical pin 38 on the RPi3 and running pps-test /dev/pps0 I get the expected one signal per second.
      So far so good.



      Now I would like to recreate this with my own image built with Buildroot. I'm using the default configs/raspberrypi3_64_defconfig configuration, but with the following changes in make nconfig:




      • Using kernel branch rpi-4.14.y-rt from github.com/raspberrypi/linux


      • systemd as init system

      • /dev management using udev (from systemd)


      • Target packages -> Hardware handling -> pps-tools activated


      (I think that is all the changes I made, but I might have forgotten something..)



      In the sdcard.img which I get as output I see the file pps-gpio.dtbo in the boot partition. I add the line dtoverlay=pps-gpio,gpiopin=20 to the file config.txt. I also add the line pps-gpio to a file named pps.conf which I put in /etc/modules-load.d on the file system.



      When I boot the system I get no entry /dev/ppsX but when I run lsmod I get (among others):

      pps_gpio 16384 0
      pps_core 20480 1 pps_gpio



      Does this mean the dtoverlay has been correctly loaded? What can I try in order to get an entry in /dev/ppsX?



      Thanks!







      linux udev buildroot device-tree






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 4 at 16:05









      Isak T.Isak T.

      61




      61






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f504290%2fpps-gpio-with-buildroot-image-on-raspberry-pi-3%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f504290%2fpps-gpio-with-buildroot-image-on-raspberry-pi-3%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How to make a Squid Proxy server?

          Is this a new Fibonacci Identity?

          19世紀