Skip to content
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 loader truncates parameter string to 80 characters and drops parameters #692

Closed
nbonniere opened this issue Dec 4, 2016 · 4 comments

Comments

@nbonniere
Copy link

  • /boot/config.txt contains:

  • dtoverlay=ads7846,cs=1,penirq=25,penirq_pull=2,speed=50000,swapxy=1,xmin=400,ymin=300,xmax=3900,ymax=3900

  • sudo vcdbg log msg

001619.094: Loaded overlay 'ads7846'
001619.109: dtparam: cs=1
001620.083: dtparam: penirq=25
001622.316: dtparam: penirq_pull=2
001623.083: dtparam: speed=50000
001624.085: dtparam: swapxy=1
001625.269: dtparam: xmin=400
001626.324: dtparam: ym=true
001629.758: Unknown dtparam 'ym' - ignored

  • It seems that the string containing the parameters gets truncate after 80 characters by the overlay loader.
  • the parameters are needed. How do you get around this problem ?
@pelwell
Copy link
Contributor

pelwell commented Dec 4, 2016

Put them as dtparam directives on subsequent lines. The previous overlay stays in scope until the next one is loaded, and it will be searched for parameters before trying the base .dtb.

@pelwell
Copy link
Contributor

pelwell commented Dec 4, 2016

See section 3.2 of the documentation: https://www.raspberrypi.org/documentation/configuration/device-tree.md

@nbonniere
Copy link
Author

nbonniere commented Dec 5, 2016 via email

@Ruffio
Copy link

Ruffio commented Dec 6, 2016

@nbonniere if this issue is solved, then please close this issue. Thanks...

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

3 participants