mirror of
https://github.com/ps5-linux/ps5-linux-loader.git
synced 2026-05-09 00:24:16 +00:00
Add direct "x86_64-linux-gnu-*" if running on ARM64 Linux machines
This commit is contained in:
@@ -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.
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user