Oracle Linux 9 UEK ARM/AARCH64 编译内核支持Android Linux

mowen 2024-07-25 753

dnf update -y &&
yum install dwarves &&
yum remove kernel-uek-devel-5.15.0-106.131.4.el9uek.aarch64 &&
yum install -y kernel-uek-devel-5.15.0-106.131.4.el9uek.aarch64 &&
cd /usr/src/kernels/5.15.0-106.131.4.el9uek.aarch64 && 
make menuconfig
#
# Android
#
CONFIG_ASHMEM=y
# end of Android
#
# Android
#
CONFIG_ANDROID=y
CONFIG_ANDROID_BINDER_IPC=y
CONFIG_ANDROID_BINDERFS=y
CONFIG_ANDROID_BINDER_DEVICES="binder,hwbinder,vndbinder"
CONFIG_ANDROID_BINDER_IPC_SELFTEST=y
# end of Android
#
# CPU/Task time and stats accounting
#
CONFIG_PSI=y
# CONFIG_PSI_DEFAULT_DISABLED is not set
# end of CPU/Task time and stats accounting
make bzImage
make
make modules
make modules_install
make install
grub2-mkconfig -o /boot/grub2/grub.cfg


或者直接从RHEL9源仓库手动下载

Oracle Linux 9源仓库

https://yum.oracle.com/oracle-linux-9.html
或
https://oss.oracle.com/ol9/SRPMS-updates/


按架构具体下载页面

x86_64版本
https://yum.oracle.com/repo/OracleLinux/OL9/baseos/latest/x86_64/index_src.html

ARM/aarch64版本
https://yum.oracle.com/repo/OracleLinux/OL9/baseos/latest/aarch64/index_src.html


下载对应架构ARM的源码版本(5.15.0-106.131.4)

mkdir -p /opt/RHEL9 &&
cd /opt/RHEL9 &&
wget https://yum.oracle.com/repo/OracleLinux/OL9/baseos/latest/aarch64/getPackageSource/kernel-uek-5.15.0-106.131.4.el9uek.src.rpm -O ./kernel-uek-5.15.0-106.131.4.el9uek.src.rpm &&
rpm2cpio ./kernel-uek-5.15.0-106.131.4.el9uek.src.rpm | cpio -idmv &&
tar -xvjf linux-5.15.0.tar.bz2 &&
cd linux-5.15.0



最新回复 (0)
返回
发新帖
X