Skip to content

Commit cd83282

Browse files
committed
WIP support for snapdragon x elite
1 parent 4e38013 commit cd83282

File tree

4 files changed

+18
-1
lines changed

4 files changed

+18
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# Configuration settings
22
DISTRO_CODE?=pop-os
33
DISTRO_VERSION?=24.04
4-
DISTRO_ARCH?=$(shell dpkg --print-architecture)
4+
#DISTRO_ARCH?=$(shell dpkg --print-architecture)
5+
DISTRO_ARCH?=arm64
56

67
DISTRO_EPOCH?=$(shell date +%s)
78
DISTRO_DATE?=$(shell date +%Y%m%d)

config/pop-os/24.04.mk

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,19 @@ else
66
DISTRO_VOLUME_LABEL=$(DISTRO_NAME) $(DISTRO_VERSION) $(DISTRO_ARCH)
77
endif
88

9+
ifeq ($(DISTRO_ARCH),arm64)
10+
DISTRO_PARAMS+=\
11+
arm64.nopauth \
12+
clk_ignore_unused \
13+
cma=128M \
14+
efi=novamap \
15+
fw_devlink=off \
16+
pd_ignore_unused \
17+
rd.driver.blacklist=msm
18+
else
919
# Show splash screen
1020
#TODO DISTRO_PARAMS+=quiet splash
21+
endif
1122

1223
GNOME_INITIAL_SETUP_STAMP=21.04
1324

data/grub/grub.cfg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ set timeout_style=menu
3838

3939
menuentry "Try or Install DISTRO_NAME" --class DISTRO_CODE {
4040
set gfxpayload=keep
41+
devicetree /dtb/qcom/x1e80100-crd.dtb
4142
linux /CASPER_PATH/vmlinuz.efi boot=casper live-media-path=/CASPER_PATH hostname=DISTRO_CODE username=DISTRO_CODE noprompt DISTRO_PARAMS ---
4243
initrd /CASPER_PATH/initrd.gz
4344
}

mk/iso.mk

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ else ifeq ($(DISTRO_ARCH),arm64)
162162
mkdir -p "$(BUILD)/iso/boot/grub/arm64-efi"
163163
cp "$(BUILD)/pool/usr/lib/grub/arm64-efi/"*.mod "$(BUILD)/iso/boot/grub/arm64-efi/"
164164

165+
# Copy devicetree files
166+
rm -rf "$(BUILD)/iso/dtb"
167+
cp -r "$(BUILD)/chroot/usr/lib/firmware/"*"/device-tree" "$(BUILD)/iso/dtb"
168+
165169
endif
166170

167171
touch "$@"

0 commit comments

Comments
 (0)