pmbootstrap bootimg_analyze ~/src/realme/stockboot/a95boot.img
[22:57:48] Put these variables in the deviceinfo file of your device:
deviceinfo_kernel_cmdline="bootopt=64S3,32N2,64N2 buildvariant=user"
deviceinfo_generate_bootimg="true"
deviceinfo_bootimg_qcdt="false"
deviceinfo_bootimg_mtk_mkimage="false"
deviceinfo_bootimg_dtb_second="false"
deviceinfo_flash_pagesize="2048"
deviceinfo_header_version="2"
deviceinfo_append_dtb="false"
deviceinfo_flash_offset_dtb="0x07808000"
deviceinfo_flash_offset_base="0x40078000"
deviceinfo_flash_offset_kernel="0x00008000"
deviceinfo_flash_offset_ramdisk="0x11a88000"
deviceinfo_flash_offset_second="0x00e88000"
deviceinfo_flash_offset_tags="0x07808000"
nano ~/.local/var/pmbootstrap/cache_git/pmaports/device/testing/linux-oppo-rmx2180/APKBUILD
------------------------------------------------------------------------------------------------------
# Reference: <https://postmarketos.org/vendorkernel>
# Kernel config based on: arch/arm64/configs/(CHANGEME!)
pkgname=linux-oppo-rmx2180
pkgver=4.9.19
# Source
_repository="android_kernel_realme_karashi"
_commit="d8616baefd8d28811bea04d3da4d1ff5930171c5"
_config="config-$_flavor.$arch"
source="
$pkgname-$_commit.tar.gz::https://github.com/techyminati/$_repository/archive/$_commit.tar.gz
$_config
"
------------------------------------------------------------------------------------------------------
nano ~/.local/var/pmbootstrap/cache_git/pmaports/device/testing/device-oppo-rmx2180/deviceinfo
------------------------------------------------------------------------------------------------------
# Reference: <https://postmarketos.org/deviceinfo>
# Please use double quotes only. You can source this file in shell
# scripts.
deviceinfo_format_version="0"
deviceinfo_name="realme c15"
deviceinfo_manufacturer="realme"
deviceinfo_codename="oppo-rmx2180"
deviceinfo_year="2020"
deviceinfo_dtb=""
deviceinfo_modules_initfs=""
deviceinfo_arch="aarch64"
# Device related
deviceinfo_chassis="handset"
deviceinfo_keyboard="false"
deviceinfo_external_storage="true"
deviceinfo_screen_width="800"
deviceinfo_screen_height="600"
# Bootloader related
deviceinfo_flash_method="fastboot"
##deleted emply lines
#autogenerated by boot_analyze
deviceinfo_kernel_cmdline="bootopt=64S3,32N2,64N2 buildvariant=user"
deviceinfo_generate_bootimg="true"
deviceinfo_bootimg_qcdt="false"
deviceinfo_bootimg_mtk_mkimage="false"
deviceinfo_bootimg_dtb_second="false"
deviceinfo_flash_pagesize="2048"
deviceinfo_header_version="2"
deviceinfo_append_dtb="false"
deviceinfo_flash_offset_dtb="0x07808000"
deviceinfo_flash_offset_base="0x40078000"
deviceinfo_flash_offset_kernel="0x00008000"
deviceinfo_flash_offset_ramdisk="0x11a88000"
deviceinfo_flash_offset_second="0x00e88000"
deviceinfo_flash_offset_tags="0x07808000"
------------------------------------------------------------------------------------------------------
default configs
https://github.com/techyminati/android_kernel_realme_karashi/tree/android-10.0/arch/arm64/configs
https://raw.githubusercontent.com/techyminati/android_kernel_realme_karashi/android-10.0/arch/arm64/configs/karashi_defconfig
device tree
https://github.com/techyminati/android_device_realme_RMX2185/blob/lineage-18.1/BoardConfig.mk
config extractor
https://raw.githubusercontent.com/torvalds/linux/master/scripts/extract-ikconfig
stock config
sh extract-ikconfig ~/src/realme/stockboot/a95boot.img >> mtk_config
https://raw.githubusercontent.com/kzwkt/c15mtk/main/mtk_config
cd ~/.local/var/pmbootstrap/cache_git/pmaports/device/testing/linux-oppo-rmx2180/
wget https://raw.githubusercontent.com/techyminati/android_kernel_realme_karashi/android-10.0/arch/arm64/configs/karashi_defconfig
mv karashi_defconfig config-oppo-rmx2180.aarch64
pmbootstrap checksum linux-oppo-rmx2180
remove all patches from kernel apkbuild else wont build ::
gcc7-give-up-on-ilog2-const-optimizations.patch
gcc8-fix-put-user.patch
gcc10-extern_YYLOC_global_declaration.patch
kernel-use-the-gnu89-standard-explicitly.patch
---------------------------------------------------------------------------------------------
pmbootstrap kconfig edit
warnings
[00:26:45] (native) generate checksums for linux-oppo-rmx2180
[00:26:46] WARNING: linux-oppo-rmx2180/config-oppo-rmx2180.aarch64: CONFIG_ANDROID_PARANOID_NETWORK should *not* be set. See <https://wiki.postmarketos.org/wiki/kconfig#CONFIG_ANDROID_PARANOID_NETWORK> for details.
[00:26:46] WARNING: linux-oppo-rmx2180/config-oppo-rmx2180.aarch64: CONFIG_DEVTMPFS should be set. See <https://wiki.postmarketos.org/wiki/kconfig#CONFIG_DEVTMPFS> for details.
[00:26:46] WARNING: linux-oppo-rmx2180/config-oppo-rmx2180.aarch64: CONFIG_SYSVIPC should be set. See <https://wiki.postmarketos.org/wiki/kconfig#CONFIG_SYSVIPC> for details.
[00:26:46] WARNING: linux-oppo-rmx2180/config-oppo-rmx2180.aarch64: CONFIG_TMPFS_POSIX_ACL should be set. See <https://wiki.postmarketos.org/wiki/kconfig#CONFIG_TMPFS_POSIX_ACL> for details.
[00:26:46] WARNING: linux-oppo-rmx2180/config-oppo-rmx2180.aarch64: CONFIG_VT should be set. See <https://wiki.postmarketos.org/wiki/kconfig#CONFIG_VT> for details.
[00:26:46] WARNING: linux-oppo-rmx2180/config-oppo-rmx2180.aarch64: CONFIG_USER_NS should be set. See <https://wiki.postmarketos.org/wiki/kconfig#CONFIG_USER_NS> for details.
[03:21:47] Copy kernel config back to aport-folder
[03:21:49] (native) generate checksums for linux-oppo-rmx2180
[03:21:50] WARNING: linux-oppo-rmx2180/config-oppo-rmx2180.aarch64:
[03:21:50] WARNING: linux-oppo-rmx2180/config-oppo-rmx2180.aarch64: CONFIG_CRYPTO_XTS should be set. See <https://wiki.postmarketos.org/wiki/kconfig#CONFIG_CRYPTO_XTS> for details.
[03:21:50] WARNING: linux-oppo-rmx2180/config-oppo-rmx2180.aarch64: CONFIG_DM_CRYPT should be set. See <https://wiki.postmarketos.org/wiki/kconfig#CONFIG_DM_CRYPT> for details.
[03:21:50] WARNING: linux-oppo-rmx2180/config-oppo-rmx2180.aarch64: CONFIG_TMPFS_POSIX_ACL should be set. See <https://wiki.postmarketos.org/wiki/kconfig#CONFIG_TMPFS_POSIX_ACL> for details.
pmbootstrap kconfig check
[00:42:42] WARNING: linux-google-veyron/config-google-veyron.armv7: CONFIG_NFT_FIB should be set. See <https://wiki.postmarketos.org/wiki/kconfig#CONFIG_NFT_FIB> for details.
[00:42:42] WARNING: linux-google-veyron/config-google-veyron.armv7: CONFIG_NFT_FIB_IPV4 should be set. See <https://wiki.postmarketos.org/wiki/kconfig#CONFIG_NFT_FIB_IPV4> for details.
[00:42:42] WARNING: linux-google-veyron/config-google-veyron.armv7: CONFIG_NFT_FIB_IPV6 should be set. See <https://wiki.postmarketos.org/wiki/kconfig#CONFIG_NFT_FIB_IPV6> for details.
[00:42:42] WARNING: linux-google-veyron/config-google-veyron.armv7: CONFIG_NF_CONNTRACK_MARK should be set. See <https://wiki.postmarketos.org/wiki/kconfig#CONFIG_NF_CONNTRACK_MARK> for details.
[00:42:42] WARNING: linux-google-veyron/config-google-veyron.armv7: CONFIG_NETFILTER_XT_MATCH_TCPMSS should be set. See <https://wiki.postmarketos.org/wiki/kconfig#CONFIG_NETFILTER_XT_MATCH_TCPMSS> for details.
[00:42:42] WARNING: linux-google-veyron/config-google-veyron.armv7: CONFIG_NETFILTER_XT_TARGET_TCPMSS should be set. See <https://wiki.postmarketos.org/wiki/kconfig#CONFIG_NETFILTER_XT_TARGET_TCPMSS> for details.
[00:42:44] WARNING: linux-postmarketos-qcom-msm8998/config-postmarketos-qcom-msm8998.aarch64: CONFIG_WIREGUARD should be set. See <https://wiki.postmarketos.org/wiki/kconfig#CONFIG_WIREGUARD> for details.
[00:42:44] WARNING: linux-postmarketos-qcom-msm8998/config-postmarketos-qcom-msm8998.aarch64: CONFIG_IP_ADVANCED_ROUTER should be set. See <https://wiki.postmarketos.org/wiki/kconfig#CONFIG_IP_ADVANCED_ROUTER> for details.
[00:42:44] WARNING: linux-postmarketos-qcom-msm8998/config-postmarketos-qcom-msm8998.aarch64: CONFIG_IP_MULTIPLE_TABLES should be set. See <https://wiki.postmarketos.org/wiki/kconfig#CONFIG_IP_MULTIPLE_TABLES> for details.
[00:42:44] WARNING: linux-postmarketos-qcom-msm8998/config-postmarketos-qcom-msm8998.aarch64: CONFIG_IPV6_MULTIPLE_TABLES should be set. See <https://wiki.postmarketos.org/wiki/kconfig#CONFIG_IPV6_MULTIPLE_TABLES> for details.
[00:42:44] WARNING: linux-postmarketos-qcom-msm8998/config-postmarketos-qcom-msm8998.aarch64: CONFIG_NFT_FIB should be set. See <https://wiki.postmarketos.org/wiki/kconfig#CONFIG_NFT_FIB> for details.
[00:42:44] WARNING: linux-postmarketos-qcom-msm8998/config-postmarketos-qcom-msm8998.aarch64: CONFIG_NFT_FIB_IPV4 should be set. See <https://wiki.postmarketos.org/wiki/kconfig#CONFIG_NFT_FIB_IPV4> for details.
[00:42:44] WARNING: linux-postmarketos-qcom-msm8998/config-postmarketos-qcom-msm8998.aarch64: CONFIG_NFT_FIB_IPV6 should be set. See <https://wiki.postmarketos.org/wiki/kconfig#CONFIG_NFT_FIB_IPV6> for details.
[00:42:44] WARNING: linux-postmarketos-qcom-msm8998/config-postmarketos-qcom-msm8998.aarch64: CONFIG_NF_CONNTRACK_MARK should be set. See <https://wiki.postmarketos.org/wiki/kconfig#CONFIG_NF_CONNTRACK_MARK> for details.
[00:42:44] WARNING: linux-postmarketos-qcom-msm8998/config-postmarketos-qcom-msm8998.aarch64: CONFIG_BTRFS_FS should be set. See <https://wiki.postmarketos.org/wiki/kconfig#CONFIG_BTRFS_FS> for details.
[00:42:44] WARNING: linux-postmarketos-qcom-msm8998/config-postmarketos-qcom-msm8998.aarch64: CONFIG_EXFAT_FS should be set. See <https://wiki.postmarketos.org/wiki/kconfig#CONFIG_EXFAT_FS> for details.
[00:42:44] WARNING: linux-postmarketos-qcom-msm8998/config-postmarketos-qcom-msm8998.aarch64: CONFIG_NETFILTER_XT_MATCH_TCPMSS should be set. See <https://wiki.postmarketos.org/wiki/kconfig#CONFIG_NETFILTER_XT_MATCH_TCPMSS> for details.
[00:42:44] WARNING: linux-postmarketos-qcom-msm8998/config-postmarketos-qcom-msm8998.aarch64: CONFIG_NETFILTER_XT_TARGET_TCPMSS should be set. See <https://wiki.postmarketos.org/wiki/kconfig#CONFIG_NETFILTER_XT_TARGET_TCPMSS> for details.
[00:42:46] kconfig check succeeded!
https://www.kernelconfig.io/CONFIG_NF_TABLES?kernelversion=6.0-rc7
pmbootstrap checksum linux-oppo-rmx2180
pmbootstrap build linux-oppo-rmx2180
src::
https://wiki.postmarketos.org/wiki/How_to_find_device-specific_information
https://wiki.postmarketos.org/wiki/Porting_to_a_new_device
Comments
Post a Comment