xiaomi-begonia: new device (Redmi Note 8 Pro) (MR 1909)
This commit is contained in:
parent
7ae5c5fb03
commit
2748241a2f
5 changed files with 5185 additions and 0 deletions
22
device/testing/device-xiaomi-begonia/APKBUILD
Normal file
22
device/testing/device-xiaomi-begonia/APKBUILD
Normal file
|
@ -0,0 +1,22 @@
|
|||
# Reference: <https://postmarketos.org/devicepkg>
|
||||
pkgname=device-xiaomi-begonia
|
||||
pkgdesc="Xiaomi Redmi Note 8 Pro"
|
||||
pkgver=0.1
|
||||
pkgrel=0
|
||||
url="https://postmarketos.org"
|
||||
license="MIT"
|
||||
arch="aarch64"
|
||||
options="!check !archcheck"
|
||||
depends="postmarketos-base linux-xiaomi-begonia mkbootimg mesa-dri-gallium"
|
||||
makedepends="devicepkg-dev"
|
||||
source="deviceinfo"
|
||||
|
||||
build() {
|
||||
devicepkg_build $startdir $pkgname
|
||||
}
|
||||
|
||||
package() {
|
||||
devicepkg_package $startdir $pkgname
|
||||
}
|
||||
|
||||
sha512sums="1981b3954b96fb7da091e969944961c54735c710cd11f8e4cb368533ef7369370e2d9b70c1d086a19306eca03f8b5e7783d76d88dd6073bc4e069dba9705ccbd deviceinfo"
|
35
device/testing/device-xiaomi-begonia/deviceinfo
Normal file
35
device/testing/device-xiaomi-begonia/deviceinfo
Normal file
|
@ -0,0 +1,35 @@
|
|||
# Reference: <https://postmarketos.org/deviceinfo>
|
||||
# Please use double quotes only. You can source this file in shell
|
||||
# scripts.
|
||||
|
||||
deviceinfo_format_version="0"
|
||||
deviceinfo_name="Xiaomi Redmi Note 8 Pro"
|
||||
deviceinfo_manufacturer="Xiaomi"
|
||||
deviceinfo_codename="xiaomi-begonia"
|
||||
deviceinfo_year="2019"
|
||||
deviceinfo_dtb=""
|
||||
deviceinfo_modules_initfs=""
|
||||
deviceinfo_arch="aarch64"
|
||||
|
||||
# Device related
|
||||
deviceinfo_chassis="handset"
|
||||
deviceinfo_keyboard="false"
|
||||
deviceinfo_external_storage="true"
|
||||
deviceinfo_screen_width="1080"
|
||||
deviceinfo_screen_height="2340"
|
||||
deviceinfo_rootfs_image_sector_size="4096"
|
||||
deviceinfo_flash_sparse="true"
|
||||
|
||||
# Bootloader related
|
||||
deviceinfo_flash_method="fastboot"
|
||||
deviceinfo_kernel_cmdline="bootopt=64S3,32N2,64N2"
|
||||
deviceinfo_generate_bootimg="true"
|
||||
deviceinfo_bootimg_qcdt="false"
|
||||
deviceinfo_bootimg_mtk_mkimage="false"
|
||||
deviceinfo_bootimg_dtb_second="false"
|
||||
deviceinfo_flash_offset_base="0x40078000"
|
||||
deviceinfo_flash_offset_kernel="0x00008000"
|
||||
deviceinfo_flash_offset_ramdisk="0x07c08000"
|
||||
deviceinfo_flash_offset_second="0x00f00000"
|
||||
deviceinfo_flash_offset_tags="0x0bc08000"
|
||||
deviceinfo_flash_pagesize="2048"
|
45
device/testing/linux-xiaomi-begonia/APKBUILD
Normal file
45
device/testing/linux-xiaomi-begonia/APKBUILD
Normal file
|
@ -0,0 +1,45 @@
|
|||
# Reference: <https://postmarketos.org/vendorkernel>
|
||||
# Kernel config based on: arch/arm64/configs/begonia_user_defconfig
|
||||
|
||||
pkgname=linux-xiaomi-begonia
|
||||
pkgver=4.14.213
|
||||
pkgrel=0
|
||||
pkgdesc="Xiaomi Redmi Note 8 Pro kernel fork"
|
||||
arch="aarch64"
|
||||
_carch="arm64"
|
||||
_flavor="xiaomi-begonia"
|
||||
url="https://kernel.org"
|
||||
license="GPL-2.0-only"
|
||||
options="!strip !check !tracedeps pmb:cross-native"
|
||||
makedepends="bash bc bison devicepkg-dev flex openssl-dev perl gcompat"
|
||||
|
||||
# Source
|
||||
_repository="begonia"
|
||||
_commit="3e00a59d4e6afb88e529e3dd8cc4257f58b71eed"
|
||||
_config="config-$_flavor.$arch"
|
||||
source="
|
||||
$pkgname-$_commit.tar.gz::https://github.com/AgentFabulous/$_repository/archive/$_commit.tar.gz
|
||||
$_config
|
||||
fix_cmdline.patch
|
||||
"
|
||||
builddir="$srcdir/$_repository-$_commit"
|
||||
_outdir="out"
|
||||
|
||||
prepare() {
|
||||
default_prepare
|
||||
REPLACE_GCCH=0 . downstreamkernel_prepare
|
||||
}
|
||||
|
||||
build() {
|
||||
unset LDFLAGS
|
||||
make O="$_outdir" ARCH="$_carch" CC="${CC:-gcc}" \
|
||||
KBUILD_BUILD_VERSION="$((pkgrel + 1 ))-postmarketOS"
|
||||
}
|
||||
|
||||
package() {
|
||||
downstreamkernel_package "$builddir" "$pkgdir" "$_carch" "$_flavor" "$_outdir"
|
||||
}
|
||||
|
||||
sha512sums="8b261f5331d08445a7d05cccff18f126b745a72a7cecf74850671a45df9562f3b8c4272109052232279876dc994dd590fab87ad12aaffaad187bcf753c2d2815 linux-xiaomi-begonia-3e00a59d4e6afb88e529e3dd8cc4257f58b71eed.tar.gz
|
||||
921ef91cd9a71041f4ae42d09d8bce5d4e1f774836940d5a5048091dede519011394038f53ee5de73b6be38c5d5acbc1898f85387ba7b71b80c215c46eba5ece config-xiaomi-begonia.aarch64
|
||||
5c79eebfa777ce5041033191438e79163444ff961b16d1ece58ae064bfeeabab8c186fd819d8b0fc9eede53e2e41410bd9479c122341387d608a1b95a0130610 fix_cmdline.patch"
|
5045
device/testing/linux-xiaomi-begonia/config-xiaomi-begonia.aarch64
Normal file
5045
device/testing/linux-xiaomi-begonia/config-xiaomi-begonia.aarch64
Normal file
File diff suppressed because it is too large
Load diff
38
device/testing/linux-xiaomi-begonia/fix_cmdline.patch
Normal file
38
device/testing/linux-xiaomi-begonia/fix_cmdline.patch
Normal file
|
@ -0,0 +1,38 @@
|
|||
--- a/init/do_mounts.c 2021-01-29 21:41:59.349992543 +0100
|
||||
+++ b/init/do_mounts.c 2021-01-29 21:47:30.189991934 +0100
|
||||
@@ -290,6 +290,7 @@
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(name_to_dev_t);
|
||||
|
||||
+/*
|
||||
static int __init root_dev_setup(char *line)
|
||||
{
|
||||
strlcpy(saved_root_name, line, sizeof(saved_root_name));
|
||||
@@ -297,6 +298,7 @@
|
||||
}
|
||||
|
||||
__setup("root=", root_dev_setup);
|
||||
+*/
|
||||
|
||||
static int __init rootwait_setup(char *str)
|
||||
{
|
||||
--- a/init/initramfs.c 2021-01-29 21:41:59.349992543 +0100
|
||||
+++ b/init/initramfs.c 2021-01-29 21:44:41.699992244 +0100
|
||||
@@ -609,7 +609,7 @@
|
||||
#endif
|
||||
|
||||
static int __initdata do_skip_initramfs;
|
||||
-
|
||||
+/*
|
||||
static int __init skip_initramfs_param(char *str)
|
||||
{
|
||||
if (*str)
|
||||
@@ -618,7 +618,7 @@
|
||||
return 1;
|
||||
}
|
||||
__setup("skip_initramfs", skip_initramfs_param);
|
||||
-
|
||||
+*/
|
||||
static int __init populate_rootfs(void)
|
||||
{
|
||||
char *err;
|
Loading…
Reference in a new issue