imbushuo / NintendoSwitchPkg

WIP UEFI EDK2 Implementation for Nintendo Switch or generic Tegra210 platforms
GNU General Public License v2.0
267 stars 20 forks source link

Empty screen after recent updates #5

Closed valpackett closed 5 years ago

valpackett commented 5 years ago

Hi, thanks for this project!

I've been able to run version d2b9bd6a68b926e43eab50b639726e67120c6d82 (and after fixing if (sdmmc_storage_init_sd…)if (!sdmmc_storage_init_sd…) it even boots from SD, though I was getting weird page faults when booting FreeBSD — probably because of #3 MMU stuff that wasn't fixed then?)

Newer versions with the stuff ported from u-boot don't display anything on the screen, it lights up and stays blank :(

imbushuo commented 5 years ago

@myfreeweb Try latest commit, and make sure you have microSD inserted in. Do you have UART access? If so, we can diagnose issues more easily.

valpackett commented 5 years ago

So the first non-working revision is 9e2a0f7 SDMMC: Take offline for bugfix. I just noticed that you changed the memory address of the framebuffer in that revision…

UART access

Well, I have a very janky cable that used to mostly work and I don't remember which pin is what anymore… anyway, it would only show coreboot output, right?

valpackett commented 5 years ago

aaand yep, this brings it back:

--- i/NintendoSwitch.dsc
+++ w/NintendoSwitch.dsc
@@ -295,7 +295,7 @@

   # Display
   # Simple FrameBuffer
-  gNintendoSwitchPkgTokenSpaceGuid.PcdMipiFrameBufferAddress|0xdfb80000
+  gNintendoSwitchPkgTokenSpaceGuid.PcdMipiFrameBufferAddress|0xc0000000
   gNintendoSwitchPkgTokenSpaceGuid.PcdMipiFrameBufferWidth|768
   gNintendoSwitchPkgTokenSpaceGuid.PcdMipiFrameBufferHeight|1280
   gNintendoSwitchPkgTokenSpaceGuid.PcdMipiFrameBufferPixelBpp|32
imbushuo commented 5 years ago

@myfreeweb So I will go ahead and close this one.

For UART, I haven’t port the actual serial I/O library, but it should be an easy task. Currently you don’t see log in UEFI, it is normal.

valpackett commented 5 years ago

Does 0xdfb80000 work for you? interesting o_0