Created
May 4, 2026 11:43
-
-
Save devsnek/64537ada0b2a85786bcc11d682518ec0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| commit eb6116186b3c5cb42189b59a825328bb8f30cd92 | |
| Author: snek <the@snek.dev> | |
| Date: Mon May 4 13:42:25 2026 +0200 | |
| mipi early | |
| diff --git a/target/linux/ipq40xx/Makefile b/target/linux/ipq40xx/Makefile | |
| index 35412846f9..43778d041b 100644 | |
| --- a/target/linux/ipq40xx/Makefile | |
| +++ b/target/linux/ipq40xx/Makefile | |
| @@ -6,7 +6,7 @@ BOARDNAME:=Qualcomm Atheros IPQ40XX | |
| FEATURES:=squashfs fpu ramdisk | |
| CPU_TYPE:=cortex-a7 | |
| CPU_SUBTYPE:=neon-vfpv4 | |
| -SUBTARGETS:=generic chromium mikrotik | |
| +SUBTARGETS:=generic chromium mikrotik utr | |
| KERNEL_PATCHVER:=6.12 | |
| diff --git a/target/linux/ipq40xx/base-files/lib/firmware/ubnt,utr-lcd.bin b/target/linux/ipq40xx/files/firmware/ubnt,utr-lcd.bin | |
| similarity index 100% | |
| rename from target/linux/ipq40xx/base-files/lib/firmware/ubnt,utr-lcd.bin | |
| rename to target/linux/ipq40xx/files/firmware/ubnt,utr-lcd.bin | |
| diff --git a/target/linux/ipq40xx/image/generic.mk b/target/linux/ipq40xx/image/generic.mk | |
| index 8fb049e069..c93c377954 100644 | |
| --- a/target/linux/ipq40xx/image/generic.mk | |
| +++ b/target/linux/ipq40xx/image/generic.mk | |
| @@ -1273,21 +1273,6 @@ endef | |
| # Missing DSA Setup | |
| #TARGET_DEVICES += tel_x1pro | |
| -define Device/ubnt_utr | |
| - $(call Device/FitImageLzma) | |
| - $(call Device/UbiFit) | |
| - DEVICE_VENDOR := Ubiquiti | |
| - DEVICE_MODEL := UniFi Travel Router | |
| - SOC := qcom-ipq4018 | |
| - DEVICE_DTS_CONFIG := config@ea06 | |
| - BLOCKSIZE := 128k | |
| - PAGESIZE := 2048 | |
| - KERNEL_IN_UBI := | |
| - UBINIZE_PARTS = vol=$(KDIR)/ubnt_utr-uImage.itb | |
| - DEVICE_PACKAGES := kmod-drm-panel-mipi-dbi kmod-gpio-backlight kmod-bluetooth kmod-btusb | |
| -endef | |
| -TARGET_DEVICES += ubnt_utr | |
| - | |
| define Device/unielec_u4019-32m | |
| $(call Device/FitImage) | |
| DEVICE_VENDOR := Unielec | |
| diff --git a/target/linux/ipq40xx/image/utr.mk b/target/linux/ipq40xx/image/utr.mk | |
| new file mode 100644 | |
| index 0000000000..305bd2e145 | |
| --- /dev/null | |
| +++ b/target/linux/ipq40xx/image/utr.mk | |
| @@ -0,0 +1,29 @@ | |
| +DTS_DIR := $(DTS_DIR)/qcom | |
| + | |
| +define Device/FitImageLzma | |
| + KERNEL_SUFFIX := -uImage.itb | |
| + KERNEL = kernel-bin | lzma | fit lzma $$(KDIR)/image-$$(DEVICE_DTS).dtb | |
| + KERNEL_NAME := Image | |
| +endef | |
| + | |
| +define Device/UbiFit | |
| + KERNEL_IN_UBI := 1 | |
| + IMAGES := factory.ubi sysupgrade.bin | |
| + IMAGE/factory.ubi := append-ubi | |
| + IMAGE/sysupgrade.bin := sysupgrade-tar | append-metadata | |
| +endef | |
| + | |
| +define Device/ubnt_utr | |
| + $(call Device/FitImageLzma) | |
| + $(call Device/UbiFit) | |
| + DEVICE_VENDOR := Ubiquiti | |
| + DEVICE_MODEL := UniFi Travel Router | |
| + SOC := qcom-ipq4018 | |
| + DEVICE_DTS_CONFIG := config@ea06 | |
| + BLOCKSIZE := 128k | |
| + PAGESIZE := 2048 | |
| + KERNEL_IN_UBI := | |
| + UBINIZE_PARTS = vol=$(KDIR)/ubnt_utr-uImage.itb | |
| + DEVICE_PACKAGES := kmod-bluetooth kmod-btusb | |
| +endef | |
| +TARGET_DEVICES += ubnt_utr | |
| diff --git a/target/linux/ipq40xx/utr/config-default b/target/linux/ipq40xx/utr/config-default | |
| new file mode 100644 | |
| index 0000000000..f8227bdf8a | |
| --- /dev/null | |
| +++ b/target/linux/ipq40xx/utr/config-default | |
| @@ -0,0 +1,39 @@ | |
| +CONFIG_BACKLIGHT_CLASS_DEVICE=y | |
| +CONFIG_BACKLIGHT_GPIO=y | |
| +CONFIG_BACKLIGHT_LCD_SUPPORT=y | |
| +CONFIG_CONSOLE_TRANSLATIONS=y | |
| +CONFIG_CRYPTO_HASH_INFO=y | |
| +CONFIG_DRM=y | |
| +CONFIG_DRM_FBDEV_EMULATION=y | |
| +CONFIG_DRM_FBDEV_OVERALLOC=100 | |
| +CONFIG_DRM_GEM_DMA_HELPER=y | |
| +CONFIG_DRM_KMS_FB_HELPER=y | |
| +CONFIG_DRM_KMS_HELPER=y | |
| +CONFIG_DRM_MIPI_DBI=y | |
| +CONFIG_DRM_PANEL_MIPI_DBI=y | |
| +CONFIG_EXTRA_FIRMWARE="ubnt,utr-lcd.bin" | |
| +CONFIG_EXTRA_FIRMWARE_DIR="firmware" | |
| +CONFIG_FB=y | |
| +CONFIG_FB_CFB_COPYAREA=y | |
| +CONFIG_FB_CFB_FILLRECT=y | |
| +CONFIG_FB_CFB_IMAGEBLIT=y | |
| +CONFIG_FB_DEVICE=y | |
| +CONFIG_FB_SYSMEM_FOPS=y | |
| +CONFIG_FB_SYS_COPYAREA=y | |
| +CONFIG_FB_SYS_FILLRECT=y | |
| +CONFIG_FB_SYS_IMAGEBLIT=y | |
| +CONFIG_FONTS=y | |
| +CONFIG_FONT_8x8=y | |
| +CONFIG_FONT_8x16=y | |
| +CONFIG_FRAMEBUFFER_CONSOLE=y | |
| +CONFIG_FRAMEBUFFER_CONSOLE_DETECT_PRIMARY=y | |
| +CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y | |
| +CONFIG_MTD_UBI=y | |
| +CONFIG_MTD_UBI_BEB_LIMIT=20 | |
| +CONFIG_MTD_UBI_BLOCK=y | |
| +CONFIG_MTD_UBI_NVMEM=y | |
| +CONFIG_MTD_UBI_WL_THRESHOLD=4096 | |
| +CONFIG_UBIFS_FS=y | |
| +CONFIG_VT=y | |
| +CONFIG_VT_CONSOLE=y | |
| +CONFIG_VT_HW_CONSOLE_BINDING=y | |
| diff --git a/target/linux/ipq40xx/utr/target.mk b/target/linux/ipq40xx/utr/target.mk | |
| new file mode 100644 | |
| index 0000000000..699938bf61 | |
| --- /dev/null | |
| +++ b/target/linux/ipq40xx/utr/target.mk | |
| @@ -0,0 +1,3 @@ | |
| +BOARDNAME:=Ubiquiti UniFi Travel Router | |
| +FEATURES += emmc nand | |
| +DEFAULT_PACKAGES += ath10k-board-qca4019 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment