-
Notifications
You must be signed in to change notification settings - Fork 275
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Zero 2W 64bit port #261
base: master
Are you sure you want to change the base?
Zero 2W 64bit port #261
Conversation
Will this work on 64bit pi4? |
I don't have a pi4, so I can't test it myself. I think this will work. Add -DAARCH=YES will enable 64bit build. |
Solid work! Unfortunately it looks like there is a licensing conflict that will prevent from merging this code in :( Part of the code in this PR is licensed under GPL 2, which to my understanding is not compatible with the MIT license. |
rewrite CMA allocate code and remove code licensed under GPL 2 |
Thanks for the port. I am not able to get it working on my Pi4 8GB, I get stuck with a 'Bus error' message. cmake options
running fbcp-ili9341
OS Info below
/boot/config.txt and /boot/cmdline.txt are same as yours. I have also tried setting different DMA ports using |
bus error seen it don't enable 64bit port, 64bit port is disable by default. |
That solved the 'Bus error', now I get an 'vc_dispmanx_display_open failed! Make sure to have hdmi_force_hotplug=1 setting in /boot/config.txt' even with hdmi_force_hotplug set to 1
EDIT: This solved the problem #100 (comment) |
|
Tried points 1 (I can't find an option to change to legacy GL driver on Debian 11) and 2. But I can't get the screen to change state, all I get is a white screen. It is connected exactly as it was to my previously working Pi 3, here's the program output:
Thanks for your help :) |
Hi! |
Got it working, with "-DUSE_DMA_TRANSFERS=OFF" switch, but now it is only showing white stripes with a lot of colorful noise in it. Any idea, how to fix this? |
Hello, |
spi.cpp
Outdated
@@ -553,10 +568,11 @@ int InitSPI() | |||
// Set the SPI 0 pin explicitly to output, and enable chip select on the line by setting it to low. | |||
// fbcp-ili9341 assumes exclusive access to the SPI0 bus, and exclusive presence of only one device on the bus, | |||
// which is (permanently) activated here. | |||
SET_GPIO_MODE(GPIO_SPI0_CE0, 0x01); | |||
CLEAR_GPIO(GPIO_SPI0_CE0); | |||
SET_GPIO_MODE(GPIO_SPI0_CE1, 0x01); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably didn't mean to permanently change this to CS1 outside of the #ifdef DISPLAY_USES_CS1
below?
fixed
Works well for me. Here is my cmdline on RPI4:
|
since mmap memory allocate by GPU trigger SIGBUS in 64bit system, I change DMA memory allocate to vcsm-cma.
I test only on rpi zero 2w, screen info: ili9341, resolution is 320x240
CMA Usage
OS info below
/boot/cmdline.txt
/boot/config.txt
#43