question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

input pin p8_44 to p8_41 and p8_31 issue on debian 8.x

See original GitHub issue

hello, I use official debian images for my BBB. And since debian 8.4+ those pin : p8_44 to p8_41 and p8_31, does not do their job as INPUT pin. they can not fire CHANGE event anymore :

    b.pinMode(io, b.INPUT, 7, 'pulldown');
    b.attachInterrupt(io, true, b.CHANGE, function(x){
        console.log(io);
    });

I use 24 IO as INPUT and the others as OUTPUT for information.

I have tested it on 8.4 and 8.6 debian. same issue. but on 7.9 debian it works like a charm.

I also have tried it with original bonescript pkg on debian images and after an update to 0.5-rc (installed from debian repo) but same issue on debian 8.4+

for information I run with /boot/uEnv.txt on 8.4 and 8.6 : ##BeagleBone Black: HDMI (Audio/Video)/eMMC disabled: dtb=am335x-boneblack-overlay.dtb

and with that on 7.9: ##Disable HDMI/eMMC (v3.8.x) cape_disable=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN,BB-BONE-EMMC-2G

did you have plan to fix this ? thank’s a lot

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
fivdicommented, Oct 22, 2017

don’t you assume that if it works on debian 7.11 and not on 8.4+, it is a regression ?

That sounds like a reasonable assumption to make.

0reactions
ludookcommented, Oct 22, 2017

you are right: internal pulldown mode seems not be activated by default on debian 8.4+ (but it does on debian 7.11). if I patch /usr/local/lib/node_modules/bonescript/src/hw_mainline.js on line 87 with : fs.writeFileSync(pinmux+"/state", 'gpio_pd'); it works

the pinMode bonescript api references that :

pin: the BeagleBone pin identifier
direction: INPUT, INPUT_PULLUP (under development on 3.8 kernel) or OUTPUT
mux: index to mux mode (under development on 3.8 kernel)
pullup: 'pullup', 'pulldown' or 'disabled' (under development on 3.8 kernel)
slew: 'fast' or 'slow' (under development on 3.8 kernel)
callback: called upon completion

and even if I try that test.js script, it does not work :

var b = require('bonescript');
var io = 'P8_41';
b.pinMode(io, b.INPUT, 7, 'pulldown');
setInterval(function() {
	b.digitalRead(io, function printStatus(x) {
		console.log('x.value = ' + x.value);
		console.log('x.err = ' + x.err);
	});
}, 1000);

don’t you assume that if it works on debian 7.11 and not on 8.4+, it is a regression ?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Chapter 5. Issues to be aware of for bullseye - Debian
Sometimes, changes introduced in a new release have side-effects we cannot reasonably avoid, or they expose bugs somewhere else.
Read more >
Debian “jessie” Installation Information
This is a list of known problems in the installer shipped with Debian 8.11. If you have experienced a problem installing Debian and...
Read more >
Chapter 4. Upgrades from Debian 8 (jessie)
That chapter covers potential issues which are not directly related to the upgrade process but could still be important to know about before...
Read more >
Debian 8 Long Term Support reaching end-of-life
The Debian Long Term Support (LTS) Team hereby announces that Debian 8 jessie support has reached its end-of-life on June 30, 2020, five...
Read more >
Debian “jessie” Release Information
Debian 8 has been superseded by Debian 9 ( stretch ). Regular security support updates have been discontinued as of June 17th, 2018....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found