gigaset-gs290: unarchive and rename
Unarchives the 'volla-yggdrasil' device, along with its kernel, and renames the device package to match the ODM name of the device. This name is used by most projects (with the exception of Ubuntu Touch) for this device. The kernel is upgraded from v6.1-rc5 to v6.8. The plan was to upgrade it further, but 6.9-rc1 introduces a bootloop that I don't have the means to debug at the moment. Thus, reintroduce the kernel at the newest working version and it will be upgraded in a separate MR once the bootloop is figured out. himax_hx83112b is added to the initramfs and enabled in the kernel in preparation for its enablement in the device tree. Signed-off-by: Aster Boese <asterboese@mailbox.org> Part-of: <https://gitlab.postmarketos.org/postmarketOS/pmaports/-/merge_requests/9350>
This commit is contained in:
@@ -1,31 +0,0 @@
|
||||
# Archived: unmaintained
|
||||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
maintainer=""
|
||||
pkgname=device-volla-yggdrasil
|
||||
pkgdesc="Volla Phone"
|
||||
pkgver=6
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="aarch64"
|
||||
options="!check !archcheck"
|
||||
depends="
|
||||
linux-postmarketos-mediatek-mt6763
|
||||
mkbootimg
|
||||
postmarketos-base
|
||||
"
|
||||
makedepends="devicepkg-dev"
|
||||
source="deviceinfo kernel-cmdline.conf"
|
||||
|
||||
build() {
|
||||
devicepkg_build $startdir $pkgname
|
||||
}
|
||||
|
||||
package() {
|
||||
devicepkg_package $startdir $pkgname
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
7e20a5ad0066cb9977d162006205ef4ee07d486f81c17a499a27637f44461cb1adc708ea5bbad04a618f70fa5a239f366dbb8ac3c05619b35d0fa06928c1a412 deviceinfo
|
||||
c047db85c8056292b1d8a9b383e8f0683d91fa08e063291a955ec2b302d7718a146833254fb934eab24404e6732eed7cc8e0987d1c18f1ffb827d120a0ff5b3d kernel-cmdline.conf
|
||||
"
|
||||
@@ -1,71 +0,0 @@
|
||||
# Archived: unmaintained
|
||||
# Mainline Linux kernel fork with patches for MediaTek MT6763 devices
|
||||
# Kernel config based on: arch/arm64/configs/mt6763_defconfig
|
||||
maintainer=""
|
||||
_flavor="postmarketos-mediatek-mt6763"
|
||||
pkgname=linux-$_flavor
|
||||
pkgver=6.1_rc5
|
||||
pkgrel=3
|
||||
_commit="e5f07514a6172f194c8829c45965137ffa1834ea"
|
||||
pkgdesc="Mainline Kernel fork for MT6763-based devices"
|
||||
arch="aarch64"
|
||||
_carch="arm64"
|
||||
_config="config-$_flavor.$arch"
|
||||
url="https://gitlab.com/mtk-mainline/mt6763/linux"
|
||||
license="GPL-2.0-only"
|
||||
options="!strip !check !tracedeps
|
||||
pmb:cross-native
|
||||
"
|
||||
makedepends="
|
||||
android-tools
|
||||
bash
|
||||
bison
|
||||
findutils
|
||||
flex
|
||||
linux-headers
|
||||
openssl-dev
|
||||
perl
|
||||
postmarketos-installkernel
|
||||
xz
|
||||
"
|
||||
|
||||
# Source
|
||||
source="
|
||||
https://gitlab.com/mtk-mainline/mt6763/linux/-/archive/$_commit/linux-$_commit.tar.gz
|
||||
$_config
|
||||
"
|
||||
builddir="$srcdir/linux-$_commit"
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
cp "$srcdir/config-$_flavor.$arch" .config
|
||||
}
|
||||
|
||||
build() {
|
||||
unset LDFLAGS
|
||||
make ARCH="$_carch" CC="${CC:-gcc}" \
|
||||
KBUILD_BUILD_VERSION="$((pkgrel + 1))-$_flavor" \
|
||||
V=1
|
||||
}
|
||||
|
||||
package() {
|
||||
mkdir -p "$pkgdir"/boot
|
||||
|
||||
make zinstall modules_install dtbs_install \
|
||||
ARCH="$_carch" INSTALL_PATH="$pkgdir"/boot \
|
||||
INSTALL_MOD_PATH="$pkgdir" INSTALL_MOD_STRIP=1 \
|
||||
INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs
|
||||
rm -f "$pkgdir"/lib/modules/*/build "$pkgdir"/lib/modules/*/source
|
||||
|
||||
install -D "$builddir"/include/config/kernel.release \
|
||||
"$pkgdir"/usr/share/kernel/$_flavor/kernel.release
|
||||
|
||||
dtbodir="$builddir/$_outdir/arch/arm64/boot/dts/mediatek"
|
||||
mkdtboimg create "$pkgdir/boot/dtbo.img" \
|
||||
"$dtbodir/mt6763v-volla-yggdrasil-minimal-dtbo.dtb"
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
1d740a1d0494dbdf3f1ccefc5fc7dc4e13410e4161c4f04060dee717675122ef35d36fc2bf827700bfbaddb20e7b9bf136af1b8ab1c13b196d8edf4070ba7685 linux-e5f07514a6172f194c8829c45965137ffa1834ea.tar.gz
|
||||
94fbfbf047bc78a4b15cd199e2c00a1bdda7a3c3a806fdc0a2402dcbc2a6e1b0d420bc5df79bca83c32cca8cd9a7a3372eed809f451e8e944d66fa958de2d957 config-postmarketos-mediatek-mt6763.aarch64
|
||||
"
|
||||
@@ -0,0 +1,35 @@
|
||||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
maintainer="Aster Boese <asterboese@mailbox.org>"
|
||||
pkgname=device-gigaset-gs290
|
||||
pkgver=1
|
||||
pkgrel=0
|
||||
pkgdesc="Gigaset GS290"
|
||||
url="https://postmarketos.org"
|
||||
arch="aarch64"
|
||||
license="MIT"
|
||||
depends="
|
||||
android-tools-mkbootimg
|
||||
linux-postmarketos-mediatek-mt6763
|
||||
postmarketos-base
|
||||
"
|
||||
makedepends="devicepkg-dev"
|
||||
source="
|
||||
deviceinfo
|
||||
kernel-cmdline.conf
|
||||
modules-initfs
|
||||
"
|
||||
options="!archcheck !check"
|
||||
|
||||
build() {
|
||||
devicepkg_build $startdir $pkgname
|
||||
}
|
||||
|
||||
package() {
|
||||
devicepkg_package $startdir $pkgname
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
e5e040ec630cbaf2447999d3130730445cd8bc78625d1b66973261b8316062ec09255a3fc5dd62b04fc859ee568419753610d6a2cb2442a8d6d11e786d124989 deviceinfo
|
||||
c047db85c8056292b1d8a9b383e8f0683d91fa08e063291a955ec2b302d7718a146833254fb934eab24404e6732eed7cc8e0987d1c18f1ffb827d120a0ff5b3d kernel-cmdline.conf
|
||||
8c941d8574b551bfaa422a2f91d4e1be287f6ec0e920e479a2df877a84c9c5dc9e593cd2a6ba7bb706d597ac59e4b84579e1446e1d04a59c531d02d37835f4df modules-initfs
|
||||
"
|
||||
+7
-6
@@ -3,19 +3,17 @@
|
||||
# scripts.
|
||||
|
||||
deviceinfo_format_version="0"
|
||||
deviceinfo_name="Volla Phone"
|
||||
deviceinfo_manufacturer="Volla"
|
||||
deviceinfo_codename="volla-yggdrasil"
|
||||
deviceinfo_name="Gigaset GS290"
|
||||
deviceinfo_manufacturer="Gigaset"
|
||||
deviceinfo_codename="gigaset-gs290"
|
||||
deviceinfo_year="2020"
|
||||
deviceinfo_append_dtb="true"
|
||||
deviceinfo_dtb="mediatek/mt6763v-volla-yggdrasil"
|
||||
deviceinfo_dtb="mediatek/mt6763v-gigaset-gs290"
|
||||
deviceinfo_arch="aarch64"
|
||||
|
||||
# Device related
|
||||
deviceinfo_chassis="handset"
|
||||
deviceinfo_external_storage="true"
|
||||
deviceinfo_screen_width="1080"
|
||||
deviceinfo_screen_height="2340"
|
||||
|
||||
# Bootloader related
|
||||
deviceinfo_flash_method="fastboot"
|
||||
@@ -28,3 +26,6 @@ deviceinfo_flash_offset_ramdisk="0x14f88000"
|
||||
deviceinfo_flash_offset_second="0x00e88000"
|
||||
deviceinfo_flash_offset_tags="0x13f88000"
|
||||
deviceinfo_flash_fastboot_partition_dtbo="dtbo"
|
||||
# Getting into fastboot mode is very slow on this device, so mtkclient
|
||||
# flashing is useful for development because it is much faster
|
||||
deviceinfo_flash_mtkclient_partition_dtbo="dtbo"
|
||||
@@ -0,0 +1 @@
|
||||
himax_hx83112b
|
||||
@@ -0,0 +1,83 @@
|
||||
maintainer="Aster Boese <asterboese@mailbox.org>"
|
||||
pkgname=linux-postmarketos-mediatek-mt6763
|
||||
pkgver=6.8_git20260808
|
||||
pkgrel=0
|
||||
_commit="e9af4b4e53e9aaed49da45b8b6cc0a39d5bac91c"
|
||||
pkgdesc="Mainline Kernel fork for MT6763-based devices"
|
||||
arch="aarch64"
|
||||
url="https://gitlab.com/mtk-mainline/mt6763/linux"
|
||||
license="GPL-2.0-only"
|
||||
makedepends="
|
||||
android-tools-mkdtboimg
|
||||
bison
|
||||
clang
|
||||
elfutils-dev
|
||||
findutils
|
||||
flex
|
||||
linux-headers
|
||||
lld
|
||||
llvm
|
||||
openssl-dev
|
||||
pahole
|
||||
perl
|
||||
postmarketos-installkernel
|
||||
python3
|
||||
zstd
|
||||
"
|
||||
source="
|
||||
https://codeberg.org/JustSoup321/linux-mediatek-mt6763/archive/$_commit.tar.gz
|
||||
config-${pkgname#linux-}.$arch
|
||||
"
|
||||
options="
|
||||
!check
|
||||
!strip
|
||||
!tracedeps
|
||||
pmb:cross-native
|
||||
"
|
||||
builddir="$srcdir/linux-mediatek-mt6763"
|
||||
|
||||
_carch="arm64"
|
||||
|
||||
# Used internally by pmbootstrap. Don't touch.
|
||||
# TODO: Remove once minimum default pmbootstrap version supports
|
||||
# kernel packages without '_flavor' and '_config'.
|
||||
_config="$config-${pkgname#linux-}.$arch"
|
||||
_flavor="${pkgname#linux-}"
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
cp "$srcdir"/config-"${pkgname#linux-}"."$arch" .config
|
||||
}
|
||||
|
||||
build() {
|
||||
unset LDFLAGS
|
||||
make ARCH="$_carch" LLVM=1 \
|
||||
KBUILD_BUILD_VERSION="$((pkgrel + 1))"-"${pkgname#linux-}"
|
||||
mkdtboimg create "$builddir"/dtbo.img \
|
||||
"$builddir"/arch/arm64/boot/dts/mediatek/mt6763v-gigaset-gs290-minimal-dtbo.dtb
|
||||
}
|
||||
|
||||
package() {
|
||||
mkdir -p "$pkgdir"/boot
|
||||
|
||||
make dtbs_install modules_install zinstall \
|
||||
ARCH="$_carch" \
|
||||
LLVM=1 \
|
||||
INSTALL_DTBS_PATH="$pkgdir"/boot/dtbs \
|
||||
INSTALL_MOD_PATH="$pkgdir"/usr \
|
||||
INSTALL_MOD_STRIP=1 \
|
||||
INSTALL_PATH="$pkgdir"/boot
|
||||
|
||||
rm -f "$pkgdir"/usr/lib/modules/*/build "$pkgdir"/usr/lib/modules/*/source
|
||||
|
||||
install -Dm644 "$builddir"/include/config/kernel.release \
|
||||
-t "$pkgdir"/usr/share/kernel/"${pkgname#linux-}"/
|
||||
|
||||
install -Dm644 "$builddir"/dtbo.img \
|
||||
-t "$pkgdir"/boot/
|
||||
}
|
||||
|
||||
sha512sums="
|
||||
3c13b3882daf8e9d48257ef44184048cd27ad06e4f1336bd216fa73b6eb5a9334642784b14e179059ee10aa49d89b2b7248c7f69d013dfde92f1a38ce5985579 e9af4b4e53e9aaed49da45b8b6cc0a39d5bac91c.tar.gz
|
||||
b5db13c7e9804b29a34bbff2bcfc534751b30b500a5c3b95f5bddfe42de2a48fb3d05b5ddcd68159845d828447b44125acb136476596ec8c3e982536a5834ae0 config-postmarketos-mediatek-mt6763.aarch64
|
||||
"
|
||||
+527
-231
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user