Add direct "x86_64-linux-gnu-*" if running on ARM64 Linux machines

This commit is contained in:
buzzer-re
2026-04-29 23:53:05 -03:00
parent 2497034be9
commit 6ac9bab944
3 changed files with 27 additions and 4 deletions

View File

@@ -156,6 +156,14 @@ git clone https://github.com/ps5-linux/ps5-linux-loader
cd ps5-linux-loader cd ps5-linux-loader
make make
``` ```
## Compiling on ARM64 Linux
Install the x86-64 cross-compilation tools before:
```bash
sudo apt install gcc-x86-64-linux-gnu binutils-x86-64-linux-gnu
```
Find your PS5 IP at `Settings → Network → View Connection Status`. Find your PS5 IP at `Settings → Network → View Connection Status`.
@@ -172,6 +180,7 @@ If the LED is white, but you still have a blackscreen then:
If none of this helps, please report the issue in our [Discord server](https://discord.gg/PeMGVB7BAm) and provide your EDID information. If none of this helps, please report the issue in our [Discord server](https://discord.gg/PeMGVB7BAm) and provide your EDID information.
## First Boot ## First Boot
Configure your system and memorize your login password. Configure your system and memorize your login password.

View File

@@ -3,9 +3,16 @@ ifndef PS5_PAYLOAD_SDK
endif endif
# 1. Variables # 1. Variables
ifeq ($(shell uname -m),aarch64)
CC = x86_64-linux-gnu-gcc
LD = x86_64-linux-gnu-ld
OBJCOPY = x86_64-linux-gnu-objcopy
else
CC = gcc CC = gcc
LD = ld LD = ld
CFLAGS = -O2 -fno-stack-protector -ffreestanding -nostdlib -fcf-protection=none -I$(PS5_PAYLOAD_SDK)/target/include OBJCOPY = objcopy
endif
CFLAGS = -O2 -fno-stack-protector -ffreestanding -nostdlib -fcf-protection=none -m64 -I$(PS5_PAYLOAD_SDK)/target/include
LDFLAGS = -T linker.ld LDFLAGS = -T linker.ld
TARGET = shellcode_hypervisor.elf TARGET = shellcode_hypervisor.elf
TEXT_BIN = shellcode_hypervisor.bin TEXT_BIN = shellcode_hypervisor.bin
@@ -23,7 +30,7 @@ $(TARGET): $(OBJ)
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) -c $< -o $@
$(TEXT_BIN): $(TARGET) $(TEXT_BIN): $(TARGET)
objcopy -O binary -j .shell_code $(TARGET) $(TEXT_BIN) $(OBJCOPY) -O binary -j .shell_code $(TARGET) $(TEXT_BIN)
clean: clean:
rm -f $(OBJ) $(TARGET) $(TEXT_BIN) $(dump) rm -f $(OBJ) $(TARGET) $(TEXT_BIN) $(dump)

View File

@@ -3,9 +3,16 @@ ifndef PS5_PAYLOAD_SDK
endif endif
ifeq ($(shell uname -m),aarch64)
CC = x86_64-linux-gnu-gcc
LD = x86_64-linux-gnu-ld
OBJCOPY = x86_64-linux-gnu-objcopy
else
CC = gcc CC = gcc
LD = ld LD = ld
CFLAGS = -O2 -fno-stack-protector -ffreestanding -nostdlib -I$(PS5_PAYLOAD_SDK)/target/include OBJCOPY = objcopy
endif
CFLAGS = -O2 -fno-stack-protector -ffreestanding -nostdlib -m64 -I$(PS5_PAYLOAD_SDK)/target/include
LDFLAGS = -T linker.ld LDFLAGS = -T linker.ld
TARGET = shellcode_kernel.elf TARGET = shellcode_kernel.elf
TEXT_BIN = shellcode_text.bin TEXT_BIN = shellcode_text.bin
@@ -24,7 +31,7 @@ $(TARGET): $(OBJ)
$(CC) $(CFLAGS) -c $< -o $@ $(CC) $(CFLAGS) -c $< -o $@
$(TEXT_BIN): $(TARGET) $(TEXT_BIN): $(TARGET)
objcopy -O binary -j .text $(TARGET) $(TEXT_BIN) $(OBJCOPY) -O binary -j .text $(TARGET) $(TEXT_BIN)
clean: clean:
rm -f $(OBJ) $(TARGET) $(TEXT_BIN) $(dump) rm -f $(OBJ) $(TARGET) $(TEXT_BIN) $(dump)