PPS GPIO with Buildroot image on Raspberry Pi 3
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
fromgithub.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
add a comment |
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
fromgithub.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
add a comment |
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
fromgithub.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
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
fromgithub.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
linux udev buildroot device-tree
asked Mar 4 at 16:05
Isak T.Isak T.
61
61
add a comment |
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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