Skip to content

Gpio-IR-Receiver doesn't work with latest start_x.elf #319

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

Closed
mrniceplay opened this issue Sep 29, 2014 · 16 comments
Closed

Gpio-IR-Receiver doesn't work with latest start_x.elf #319

mrniceplay opened this issue Sep 29, 2014 · 16 comments

Comments

@mrniceplay
Copy link

Gpio-IR-Receiver doesn't work with latest start_x.elf.
The start.elf of Openelec 4.07 works without problems.
If i boot with the old start.elf and then boot with the new start.elf the gpio-ir-receiver works also. If i had disconnected power and hdmi the new start.elf doesn't work anymore.

@popcornmix
Copy link
Contributor

How is the IR receiver connected? Which GPIO pin are you using?

@mrniceplay
Copy link
Author

The TSOP-IR-receiver is connected directly to GPIO pin1, pin6 and pin12 (GPIO18).
Dmesg shows the receiver is recognized and the driver is loaded.

@mrniceplay
Copy link
Author

The start.elf of Openelec4.1.1 is the last working one. OE4.1.2 and newer doesn't work.

@popcornmix
Copy link
Contributor

Could you post the output of
vcgencmd version
for the non-working and working start.elf.

@mrniceplay
Copy link
Author

Sep 19 2014 16:49:58
Copyright (c) 2012 Broadcom
version 193e6925ff92741775b3893fbd95bb8b6dc41e41 (clean) (release)

@popcornmix
Copy link
Contributor

Is that the working or non-working version?
I would like to identify the first start.elf that has the problem and see what the changes were.

@mrniceplay
Copy link
Author

This is the non working version.

@mrniceplay
Copy link
Author

OOps, that was the last version! (OE4.2.0)
Here comes the first non working version(OE4.1.2) :
Jul 15 2014 17:53:13
Copyright (c) 2012 Broadcom
version ad89e56fcfdce27003bb1c722534d117d4bebf06 (clean) (release)

maybe there are firmware versions between working OE4.1.1 and non working OE4.1.2, i don't know!

@mrniceplay
Copy link
Author

Here comes the last working version(OE4.1.1) :
Jul 5 2014 19:03:42
Copyright (c) 2012 Broadcom
version cb433d55f9f5b29b59968019e3b54802894af489 (clean) (release)

@popcornmix
Copy link
Contributor

Looks like the gpioman commit. What version of pi (e.g. rev1/rev2/B+?)

@mrniceplay
Copy link
Author

Should be model B rev2

cat /proc/cpuinfo
processor : 0
model name : ARMv6-compatible processor rev 7 (v6l)
BogoMIPS : 2.00
Features : swp half thumb fastmult vfp edsp java tls
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part : 0xb76
CPU revision : 7

Hardware : BCM2708
Revision : 000d
Serial : 00000000b28c98cb

@ghollingworth
Copy link
Contributor

Revision '0xd' is not a valid revision... Could you upload a photo of the Pi (both sides) this will enable us to identify the manufacturer and test results for that device

Thanks

Gordon

@popcornmix
Copy link
Contributor

0xd is reported as:
000d Q4 2012 B 2.0 512MB (Mfg by Egoman)
http://elinux.org/RPi_HardwareHistory

@popcornmix
Copy link
Contributor

GPIO18 should be a default pin on rev2:

                     polarity = "active_high";
                     termination = "pull_down";
                     startup_state = "inactive";
                     function = "input";

with a drive strength of 8. Previously it had:

   { GPIO_POLARITY_ACTIVE_HIGH, GPIO_TERMINATION_NO_PULLING, GPIO_TERMINATION_NO_PULLING, GPIO_PIN_STATE_INACTIVE, GPIO_FUNCTION_INPUT,    GPIO_DEFAULT_DRIVE_STRENGTH  },

so was floating rather than pulled down.

We believe the (weak) pull down applied to inputs as a default is the better behaviour.

Can you try placing this file on boot partition of sdcard:
https://drive.google.com/file/d/0B-6zmEDJwxZEVDBkUXVuXzlRdms/view?usp=sharing

(which removes the pull down on GPIO18)

@mrniceplay
Copy link
Author

The file solved the problem.

Thank you!

@Ruffio
Copy link

Ruffio commented Jun 24, 2015

@popcornmix this issue can be closed as it has been resolved

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

4 participants