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

DPI mode with May 15th eeprom #1397

Open
acidtech opened this issue May 25, 2020 · 23 comments
Open

DPI mode with May 15th eeprom #1397

acidtech opened this issue May 25, 2020 · 23 comments

Comments

@acidtech
Copy link

acidtech commented May 25, 2020

On an RPi 4, DPI LCD will not display anything after updating to May 15th bootloader. The Display is active, hsync, vsync, dotclock and data enable are all active, but the display is blank.

bootloader_version info:
May 15 2020 11:05:52
version 23a9f59b85f5a81bb2eec455e064ef9905216322 (release)
timestamp 1589537152

Using the same SD image with the stable bootloader from April DPI LCD starts up correctly.
Using the same SD image on a second RPi4 with the May 15 bootloader I get just a blank screen.
After reverting that RPi4 back to the April bootloader the problem goes away.

Note this image is running kernel: Linux retropie 4.19.97-v7l+ #1294 SMP Thu Jan 30 13:21:14 GMT 2020 armv7l GNU/Linux.

I also tried with an image using kernel 5.4. Same problem.

Note I was testing the beta bootloader so I could setup a USB SSD when I found this problem, then I back tracked to my previous image which still had the problem, and then I tried my previous image with another RPi4 with the stable eeprom bootloader.

Hoping this is something stupid on my part.

@timg236
Copy link

timg236 commented May 26, 2020

There are no plans to support anything except HDMI for a diagnostics screen the bootloader. There's no way to automatically probe for other displays and there isn't enough code space in the L2 cache for the drivers.
For debugging boot issues see BOOT_UART or NETCONSOLE here
https://www.raspberrypi.org/documentation/hardware/raspberrypi/bcm2711_bootloader_config.md

@acidtech
Copy link
Author

acidtech commented May 26, 2020

You are misunderstanding me. The problem isn't showing the bootloader screen. The problem is when I switched to the beta bootloader using a working SD card, NORMAL DPI LCD was black ALWAYS. No screen ever came up. The only change was the bootloader version. Why the bootloader would affect this is WHY I posed this since I dont see why a bootloader should have effected this at all.

Switch back to the current stable bootloader, no other change, same SD card, and Pi4 boots and displays the console correctly.

Note, I can log in via SSH after the board boots using the beta bootloader just fine so I know the PI is booting into the SD card well past the bootloader. Just no DPI LCD display at all. There is hsync, vsync dotclock and data enable signals but no data on any RGB pins.

@JamesH65
Copy link
Contributor

I cannot yet see how that can happen if the only change is the bootloader. Are you sure tha is the only change, or could there also be firmware/kernel changes?

@timg236
Copy link

timg236 commented May 26, 2020

Use the Raspberry Pi Imager to put the default production EEPROM on there. If the black screen persists then as @JamesH65 says it will be an issue with either the firmware or the 5.4 kernel from rpi-update.

To revert
sudo BRANCH=stable rpi-update

@acidtech
Copy link
Author

acidtech commented May 26, 2020 via email

@acidtech
Copy link
Author

acidtech commented May 26, 2020 via email

@timg236
Copy link

timg236 commented May 26, 2020

I've passed this on, not sure if anyone has a DPI display to hand

@acidtech
Copy link
Author

acidtech commented May 26, 2020 via email

@timg236
Copy link

timg236 commented May 26, 2020

Don't have one of those either, I'll upload a binary with a mini patch which resets a few more HVS registers before starting. Failing that, I might be able to take a look towards the end of next week if I visit the lab.

@timg236
Copy link

timg236 commented May 26, 2020

Best guess without a debugger or DPI display
pieeprom-1c942e-hvs-reset.zip

@acidtech
Copy link
Author

acidtech commented May 26, 2020 via email

@timg236
Copy link

timg236 commented May 26, 2020

DISABLE_HDMI=1 in the bootloader config is also worth trying because that prevents any HVS initialisation

@vol-2
Copy link

vol-2 commented May 26, 2020

Having a similar issue since May 15th. "dpi24" overylay results in a blank screen on my VGA LCD attached; the pi still boots though, and can run headless over SSH. However, using a Gert666 interface results in no boot at all.

Tried DISABLE_HDMI=1 no luck. I'll give the patched pieeprom a shot today or tomorrow.

@acidtech
Copy link
Author

acidtech commented May 26, 2020 via email

@vol-2
Copy link

vol-2 commented May 27, 2020

Didn't work for my setup, but I am on linux 5.4. Could be an additional issue.
Going to revert the linux via rpi-update.

@vol-2
Copy link

vol-2 commented May 27, 2020

Reverted to linux 4.19.118-v7l+ and still no luck with pieeprom-1c942e-hvs-reset.zip as bootloader. No apparent change in boot behavior.

@acidtech
Copy link
Author

acidtech commented May 27, 2020 via email

@vol-2
Copy link

vol-2 commented May 27, 2020

Did you reset the bootloader config(eg -d option)?

Yes.

Also have you gone back to the April stable bootloader and confirmed your setup is still working otherwise?

No. The last bootloader I had working was from earlier in the year. I hadn't turned on that particular Pi since February.
I guess I can try to go back, but it certainly was working at that time.

@vol-2
Copy link

vol-2 commented May 27, 2020

Using @timg236 patched bootloader as shown here raspberrypi/rpi-eeprom#133
I was able to get a very distorted image over the dpi24 interface by changing the resolution to something much lower than my LCD panel.

Here is an image of what the text looks like:
https://imgur.com/lOcwq8S

It's also extremely noisy and shaky, which doesn't come across in the photo. The text is really messed up though, it's like parts of the letters are missing and there are extra parts elsewhere.

@timg236
Copy link

timg236 commented May 27, 2020

That's probably a different firmware or maybe FKMS issue. Please you verify that DPI is ok with the vanilla Buster February image?

@vol-2
Copy link

vol-2 commented May 27, 2020

I am using the vanilla Buster February image right now, but with your firmware patch.

The issue persists with dtoverlay=vc4-fkms-v3d commented out, so I don't know if that impacts your question about FKMS.

I found that at least one of the DMT modes is somehow incorrect. When choosing 2,28 (which should be 1280x800) It sends 600x800 to my monitor. I'm fairly sure it's the Pi which is sending incorrectly because the aspect controls on the monitor distort when I stretch it horizontally. Mode 2,4 displays 640x480 as it should, but with considerable distortion to the image.

Unless you think there's something else I should try first, I'm going to try and revert the bootloader back to and older one and see if I can get anything.

@acidtech
Copy link
Author

acidtech commented May 27, 2020 via email

@vol-2
Copy link

vol-2 commented May 27, 2020

If you are seeing any data at all on your DPI LCD, then your problem is something other than the one I had. I had zero data coming out the RGB pins, all the pins were always held low as tested with an oscilloscope. The fact you have some data as shown by your image definitely points to a different problem probably unrelated to the eeprom bootloader version. But the only way to find out is to back track to the old bootloader and confirm the problem persists. Nathan Scherdin

Yes, it certainly seems like a different issue than yours. You got nothing and I'm getting garbage. I don't wonder it's got something to do with the display controller. If we are theoretically getting the same thing out of the GPIO, then it stands to reason the difference is occurring downstream.
The last version I have an image backup for is from the end of January. I think I'll go back to that and ground myself before going any farther.

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