Skip to content

Commit

Permalink
WIP support for snapdragon x elite
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 committed Sep 18, 2024
1 parent 4e38013 commit cd83282
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Configuration settings
DISTRO_CODE?=pop-os
DISTRO_VERSION?=24.04
DISTRO_ARCH?=$(shell dpkg --print-architecture)
#DISTRO_ARCH?=$(shell dpkg --print-architecture)
DISTRO_ARCH?=arm64

DISTRO_EPOCH?=$(shell date +%s)
DISTRO_DATE?=$(shell date +%Y%m%d)
Expand Down
11 changes: 11 additions & 0 deletions config/pop-os/24.04.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,19 @@ else
DISTRO_VOLUME_LABEL=$(DISTRO_NAME) $(DISTRO_VERSION) $(DISTRO_ARCH)
endif

ifeq ($(DISTRO_ARCH),arm64)
DISTRO_PARAMS+=\
arm64.nopauth \
clk_ignore_unused \
cma=128M \
efi=novamap \
fw_devlink=off \
pd_ignore_unused \
rd.driver.blacklist=msm
else
# Show splash screen
#TODO DISTRO_PARAMS+=quiet splash
endif

GNOME_INITIAL_SETUP_STAMP=21.04

Expand Down
1 change: 1 addition & 0 deletions data/grub/grub.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ set timeout_style=menu

menuentry "Try or Install DISTRO_NAME" --class DISTRO_CODE {
set gfxpayload=keep
devicetree /dtb/qcom/x1e80100-crd.dtb
linux /CASPER_PATH/vmlinuz.efi boot=casper live-media-path=/CASPER_PATH hostname=DISTRO_CODE username=DISTRO_CODE noprompt DISTRO_PARAMS ---
initrd /CASPER_PATH/initrd.gz
}
4 changes: 4 additions & 0 deletions mk/iso.mk
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,10 @@ else ifeq ($(DISTRO_ARCH),arm64)
mkdir -p "$(BUILD)/iso/boot/grub/arm64-efi"
cp "$(BUILD)/pool/usr/lib/grub/arm64-efi/"*.mod "$(BUILD)/iso/boot/grub/arm64-efi/"

# Copy devicetree files
rm -rf "$(BUILD)/iso/dtb"
cp -r "$(BUILD)/chroot/usr/lib/firmware/"*"/device-tree" "$(BUILD)/iso/dtb"

endif

touch "$@"
Expand Down

0 comments on commit cd83282

Please sign in to comment.