-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
dtoverlay=lirc-rpi
does not load LIRC device
#655
Comments
Can you show your You should be using Make sure you are using |
my
|
What does And |
I do not have $ sudo vcdbg log msg |& grep -v -E "(HDMI|gpioman|clock)"
000971.852: *** Restart logging
000974.035: Read command line from file 'cmdline.txt'
+dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 cgroup_enable=memory swapaccount=1 elevator=deadline fsck.repair=yes rootwait console=ttyAMA0,115200 kgdboc=ttyAMA0,115200
001535.813: Loading 'kernel7.img' to 0x8000 size 0x8e411c
001539.461: Kernel trailer DTOK property says yes
001539.475: Kernel trailer DDTK property says no
001543.551: Loading 'bcm2709-rpi-2-b.dtb' to 0x8ec11c size 0x38e7
001619.020: dtparam: pwr_led_gpio=35
001627.826: dtparam: uart0_clkrate=3000000
001661.228: Failed to load overlay 'lirc-rpi'
001716.890: dtparam: arm_freq=900000000
001757.001: dtparam: core_freq=250000000
001767.512: dtparam: cache_line_size=64
001786.329: Device tree loaded to 0x2fffc100 (size 0x3e09)
004358.543: vchiq_core: vchiq_init_state: slot_zero = 0xfac80000, is_master = 1 |
Which kernel version are you running ( |
|
OK - that explains it. The problem is in the trailer on the kernel, which says it doesn't support Dynamic Device Tree (the DDTK flag), but this flag is also used to decide which type of overlay to load (.dtbo or -overlay.dtb), which is governed by the kernel version -> 4.1 and earlier generates -overlay.dtb, while 4.4 and later uses .dtbo. Using current firmware, there is actually no need to use the trailer - the default is to expect that Device Tree is enabled, and it will look for .dtbo overlays before falling back to using -overlay.dtb. You can strip the trailer off the kernel like this:
|
I think there's an argument for changing the mkknlimg script in the 4.4 and later trees to always set the DDTK flag. |
Great, thanks for the details @pelwell - will close that one for now and follow up with the Hypriot folks to resolve this. |
However, restoring lirc-rpi-overlay.dtb (removed by e484afe) seems to fix the issue.
The text was updated successfully, but these errors were encountered: