Projects/Tizen Ports

Summary

Port Tizen to SBCs and mainlines phones.

Devices

Orange Pi PC

PinePhone

Samsung Galaxy A5

Create Images

Kernel config

CONFIG_AUDIT=y
CONFIG_NETWORK_SECMARK=y
CONFIG_NETLABEL=y
CONFIG_NETFILTER_XT_TARGET_AUDIT=m
CONFIG_NETFILTER_XT_TARGET_NFQUEUE=m
CONFIG_BLK_DEV_RAM=y
CONFIG_BLK_DEV_RAM_COUNT=4
CONFIG_BLK_DEV_RAM_SIZE=8192
CONFIG_EXT4_FS_SECURITY=y
CONFIG_SECURITY_NETWORK=y
CONFIG_SECURITY_SMACK=y
CONFIG_LSM="lockdown,yama,loadpin,safesetid,integrity,bpf,smack"
CONFIG_TRACING=y
CONFIG_GENERIC_TRACER=y
CONFIG_TRACING_SUPPORT=y
CONFIG_FTRACE=y
CONFIG_FTRACE_SYSCALLS=y

Update Mesa

meson -Dplatforms=wayland,tizen,drm -Ddri-drivers= -Dgallium-drivers=lima,panfrost,swrast,freedreno,kmsro \
    -Dgallium-va=false -Dgallium-vdpau=false -Dgallium-xa=false -Dgallium-xvmc=false \
    -Dglx=disabled -Ddri3=false -Dprefix=/usr -Dgbm=true ..
nice ninja -j3
DESTDIR=`pwd`/../install meson install --no-rebuild
rm usr/lib/{libEGL.so.1.4,libGLESv1_CM.so.1.1,libGLESv2.so.2.0}

Update libtdm-drm

Update libtbm-dumb

Install device-manager-plugin-msm8916

Install pass-hal-msm8916

Add additional firmware

Remove config files

rm etc/smack/onlycap
rm etc/dlog.conf.d/25-logger.conf
rm usr/lib/systemd/system/csa.mount \
   usr/lib/systemd/system/feedbackd.service \
   usr/lib/systemd/system/*/feedbackd* \
   usr/lib/systemd/system/dlog_logger.service.d/logger-devices.conf

Additional Configuration

vconftool set -f -t bool db/setting/touch_wakeup_enable 0
sed -i -e 's|\(:string\) TM1$|\1 A5|' \
    -e 's|\(:string\) SC7727S$|\1 MSM8916|' \
    -e 's|\(platform:tizen\.org/feature/screen\.size\.normal\.480\.800:bool\) TTTTTTTT|\1 FFFFFFFF|' \
    -e 's|\(platform:tizen\.org/feature/screen\.size\.normal\.720\.1280:bool\) FFFFFFFF|\1 TTTTTTTT|' \
    /etc/system_info_db/?
chsmack -a "_" -t /etc/system_info_db