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

Rpi zero 2 #96

Merged
merged 4 commits into from
Sep 26, 2022
Merged

Rpi zero 2 #96

merged 4 commits into from
Sep 26, 2022

Conversation

alloncm
Copy link
Owner

@alloncm alloncm commented Jul 9, 2022

Some tweaks to use the rpi zero2 instead of the rpi4 to run magenboy

Depends on #94

@alloncm
Copy link
Owner Author

alloncm commented Jul 9, 2022

I think this will mark version 2.2

@alloncm
Copy link
Owner Author

alloncm commented Jul 19, 2022

I believe the problems are duo to race condition in the rpi bcm processor

@alloncm
Copy link
Owner Author

alloncm commented Jul 20, 2022

@alloncm
Copy link
Owner Author

alloncm commented Jul 23, 2022

FIxed the crashes.

Next issues:

  • Not quitting gracefully, permap is still set
  • Sometimes there is still a white screen even though I added fence every two lines
    The allignment of the DmaControlBlock might cause this (alligned to 32 bytes, while the register file allined to 4 bytes) need to check this

@alloncm
Copy link
Owner Author

alloncm commented Aug 1, 2022

White screen is probably caused by not waiting long enough after finishing boot up sequence

gb/Cargo.toml Outdated Show resolved Hide resolved
lib_gb/src/mmu/io_bus.rs Outdated Show resolved Hide resolved
@alloncm alloncm marked this pull request as ready for review September 26, 2022 12:49
gb/src/rpi_gpio/dma.rs Outdated Show resolved Hide resolved
gb/src/rpi_gpio/rppal_spi.rs Outdated Show resolved Hide resolved
* sdl feature will enable sdl2 linking (on by defualt)
* apu feature enable the apu.
Exsists cause right now on the rpi zero2 i dont want apu (too slow).
* Add SIGINT signal handler to exit without sdl

Also arrange main a bit
* DMA - Fix a GPU memory leak, add memory barriers
 and shutdown gracefully
 * SPI - Add option to start on slow clock and then move to fast clock
 and add memory barriers
* ili9341 - Add slow initialization and shutdown gracefully
@alloncm alloncm merged commit af4c768 into dev Sep 26, 2022
@alloncm alloncm deleted the feature/zero branch September 26, 2022 15:33
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

Successfully merging this pull request may close these issues.

1 participant