Add pin overrides to overlays in order to enable norns-shield #40
Conversation
|
wow this syntax is confusing. nice job figuring it out! |
|
Yeah - the syntax is a nightmare. The
...the override spec includes the byte offset of the value that has to change. The above device value for
@simonvanderveldt - any comments? If not I'll merge this. |
|
Nice! If it's OK I'd like to test this on norns and on rpi with the norns hat before merging. |
|
I don't know if it's this PR of #41 but the display doesn't work for me on norns with both of these changes combined (I merged both of them in a temp branch and built a buildroot image using that branch).
I'll do a separate build for only the changes in this PR asap and report back. |
|
for the buildroot image generated for norns hardware what did the |
|
@ngwese no changes from what's currently in |
|
okay. good to know. I’m tempted to do a non-buildroot build; straight kernel build, and test that on top of the existing norns image in order to eliminate buildroot specific changes I might have made |
|
i think having the normal raspbian image available would additionally be a good thing, so testing the kernel there would right away make that a secondary bonus |
|
Here is a straight kernel build of the "standard" 4.14.52 norns kernel which we currently ship that includes both the new overlays w/ overrides and the screen rotation change: https://drive.google.com/open?id=1nDQR6y6kBX35JSBHHqtYP9tcJc77B-Zp I have confirmed that this works just find on norns hardware running the standard non-buildroot images. Here is the similar output from dmesg on my norns using this build:
@simonvanderveldt I'm inclined to think there is something off in the buildroot setup have - at least as far as producing a norns image. The changes are working fine for me both my rpi4 buildroot branch with a 4.19.y kernel and the norns shield as well as on norns hardware with the 4.14.y (with the non-buildroot image). |
|
I haven't made any other changes apart from switching the kernel sources compared to current master of the buildroot norns-image, which AFAIK is working correctly, but I'll do a build from that just to be sure. |
|
Build for this branch seems to work, so it's probably #41 that breaks the display. Going to test that next. |
|
Just built 3 buildroot images for norns using the changes in this PR and in #41 and a combination of both changes. All work fine on norns. Not sure why the image with both these changes didn't work before. Also built in image for rpi2 but that's not showing anything on the display. Will need to investigate some more why. |
|
Validated together with #41 that norns still works as before and that we can now configure the pins and rotation to make the norns shield work correctly (using the code from simonvanderveldt/norns-image#18) :) |
Note that in order to override overlay parameters via
config.txt, the parameter specification must come after the overlay is included. Note that this change hasn't been tested on norns hardware proper but in theory it should be a no-op since the default values are for the norns hardware.The relevant sections of the
config.txtfor the shield looks something like this: