Closed boomlinde closed 5 years ago
Haven't needed to do that since the code was updated a year ago. It works fine on all versions of Pi.
Thanks for this boomlinde. Any chance you could let me know the line to change in tvctl.c?
Line 142.
Any chance you could paste what the line should be changed to? Would this account for lines randomly disappearing and some corruption on the page?
map_base = mmap(0, MAP_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0x3f807000);
Closing this since the current version should support all models of Raspberry Pi.
The RPi 2 uses a different SoC (BCM2836) for which the peripheral base starts at 0x3f000000 instead of 0x20000000. I tried changing the
map_base
intvctl.c
accordingly, and the program worked fine with Raspberry Pi 2. I might submit a patch if I learn a clean way to detect the model of the unit, but for now I am just leaving this here for reference if anyone wants to run tvctl on Raspberry Pi 2