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

Add aarch64 support #102

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Add aarch64 support #102

wants to merge 2 commits into from

Conversation

Mabbs
Copy link

@Mabbs Mabbs commented Sep 24, 2023

Fixed #93
Tested on Raspberry Pi 3b and 4b.

@ellartdev
Copy link

ellartdev commented Sep 25, 2023

Wouldn't this be better, as there are multiple revisions of RPi 4 Model B boards? Multiple revisions (i.e. I have Revision 1.5, PCPUI variable outputs 15), but CPU is the same. My example below:

...
LSCPU := $(shell lscpu | grep "Model name" | awk '{print $$3}')
...
...
else ifeq ($(UNAME), aarch64)
	ifeq ($(LSCPU), Cortex-A72)
		CFLAGS = $(STD_CFLAGS) -march=armv8-a -mtune=cortex-a72 -ffast-math -DRASPI=4
		TARGET = pi4
	else
		CFLAGS = $(STD_CFLAGS) -march=armv7-a -ffast-math -DRASPI=2
		TARGET = pi2
	endif
else
	CFLAGS = $(STD_CFLAGS)
	TARGET = other
endif
...

@Mabbs
Copy link
Author

Mabbs commented Sep 26, 2023

Wouldn't this be better, as there are multiple revisions of RPi 4 Model B boards? Multiple revisions (i.e. I have Revision 1.5, PCPUI variable outputs 15), but CPU is the same. My example below:

...
LSCPU := $(shell lscpu | grep "Model name" | awk '{print $$3}')
...
...
else ifeq ($(UNAME), aarch64)
	ifeq ($(LSCPU), Cortex-A72)
		CFLAGS = $(STD_CFLAGS) -march=armv8-a -mtune=cortex-a72 -ffast-math -DRASPI=4
		TARGET = pi4
	else
		CFLAGS = $(STD_CFLAGS) -march=armv7-a -ffast-math -DRASPI=2
		TARGET = pi2
	endif
else
	CFLAGS = $(STD_CFLAGS)
	TARGET = other
endif
...

You're right, I modified.

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.

Cannot make on aarch64 OS
2 participants