Projects/Tizen Ports

Summary

Port Tizen to devices running mainline Linux.

Chat (Matrix)

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 -Dc_link_args="-lttrace" -Dcpp_link_args="-lttrace" \
    -Dplatforms=tizen -Ddri-drivers= -Dgallium-drivers=lima,panfrost,freedreno,kmsro \
    -Dgallium-va=false -Dgallium-vdpau=false -Dgallium-xa=false -Dgallium-xvmc=false \
    -Dvulkan-drivers=freedreno -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-a5

Install pass-hal-msm8916

Update connman

setcap cap_net_admin,cap_net_bind_service,cap_net_broadcast,cap_net_raw,cap_dac_override=ei /usr/bin/connmand
chown network_fw.network_fw /usr/bin/connmand

Add additional firmware

Remove config files

rm -r etc/smack/onlycap \
   usr/lib/systemd/system/csa.mount \
   usr/lib/systemd/system/feedbackd.service \
   usr/lib/systemd/system/*/feedbackd* \
   hal/share/alsa/ucm/{TM1-sc7730,sprdphone}

Additional Configuration

vconftool set -f -t bool db/setting/touch_wakeup_enable 0
sdb uninstall 9z6IujVul3
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|' \
    -e 's|\(platform:tizen\.org/feature/network\.telephony\.service\.lte:bool\) FFFFFFFF|\1 TTTTTTTT|' \
    etc/system_info_db/?
chsmack -a "_" -rt etc/system_info_db