Samsung Galaxy S8 (samsung-dreamlte)

Contributors

 * Drebrez
 * Ivoszbg
 * Grimler

Maintainers

 * Ivoszbg
 * Grimler

How to enter recovery/odin mode

 * Press and hold +  +  simultaneously while device is powered off for odin mode
 * Press and hold +  +  simultaneously while device is powered off for recovery mode.

What works

 * Phone boots
 * Touchscreen
 * Framebuffer with msm-fb-refresher
 * Phone is charging and battery status is working
 * Volume and power buttons on gnome
 * Weston, GNOME (no longer works), Sxmo, Xfce4, MATE
 * Screen brightness changing on (at least) mate, sxmo and xfce (see Screen brightness)
 * USB OTG Devices (Keyboards, USB Hubs, Mouse, Flash drives, USB Wireless headset (tested with Razer Nari), Portable Music Players (tested with Samsung YP-U4) (tested all in SXMO))
 * Wifi with firmware package
 * Mainline (WIP)

Installation
1. Install pmbootstrap

2. Unlock the bootloader and flash twrp

3. Setup pmbootstrap:

4. Create a twrp flashable .zip

5. Installation_from_recovery_mode

Wifi
To connect to a wifi the same steps as for the Medion Lifetab S9714 (medion-kai) works:

1. Verify that the wlan0 interface exists

2. Turn on wifi

3. List available wifis

4. Connect to your wifi

5. Verify that you have been given an ip address on the wlan0, or swlan0, interface

or if you are using SXMO, just run select "Activate a connection" and connect to your wifi.

Screen brightness
On mate or sxmo the screen brightness can be changed with:

On xfce you can run set the brightness with xfpm-power-backlight-helper:

USB OTG keyboard
Connecting a USB keyboard does not work (tested on xfce). The keyboard shows up in dmesg and lsusb correctly, and shows it. However, does not show it, and it is not recognised in /var/log/Xorg.log.

elogind-daemon reports something like in dmesg when the keyboard is connected. Maybe elogind is "hogging" the keyboard? Patching elogind to ignore the device does not make a difference though, X still does not recognise the keyboard.

however, in SXMO the USB Keyboard works as expected.

USB OTG mouse
Connecting a USB mouse works (tested on sxmo). The mouse shows up in dmesg and lsusb correctly, and shows it and also shows it. However, the mouse cursor appears to be invisible in SXMO.

Audio
Audio (tested on SXMO) does not work. According to the card shows up as Exynos8895Mader but it does not work. This was tested by running and

=
===========================================================  BYTE UNIX Benchmarks (Version 5.1.3)

System: samsung-dreamlte: Linux OS: Linux -- 4.4.111 -- #1-postmarketOS SMP PREEMPT Thu Nov 12 22:35:19 UTC 2020 Machine: aarch64 (unknown) Language: en_US.utf8 (charmap=, collate=) 02:23:52 up 2 min, load average: 8.04, 3.89, 1.52; runlevel

Benchmark Run: Sat Nov 14 2020 02:23:52 - 02:28:42 8 CPUs in system; running 1 parallel copy of tests

Dhrystone 2 using register variables      10703098.1 lps   (10.0 s, 7 samples) Double-Precision Whetstone                    4156.1 MWIPS (9.9 s, 7 samples)

System Benchmarks Partial Index             BASELINE       RESULT    INDEX Dhrystone 2 using register variables        116700.0   10703098.1    917.1 Double-Precision Whetstone                      55.0       4156.1    755.7 ======== System Benchmarks Index Score (Partial Only)                         832.5

Benchmark Run: Sat Nov 14 2020 02:28:42 - 02:33:36 8 CPUs in system; running 8 parallel copies of tests

Dhrystone 2 using register variables      55058190.3 lps   (10.0 s, 7 samples) Double-Precision Whetstone                   24234.1 MWIPS (10.4 s, 7 samples)

System Benchmarks Partial Index             BASELINE       RESULT    INDEX Dhrystone 2 using register variables        116700.0   55058190.3   4717.9 Double-Precision Whetstone                      55.0      24234.1   4406.2 ======== System Benchmarks Index Score (Partial Only)                        4559.4

Mainline
It boots! However only very limited hardware has support for now.

Note
GNOME no longer works, it shows GDM and after you log in with GNOME (wayland) it turns the screen off. Selecting GNOME on Xorg and logging in will immeditately send you back to GDM.

Links

 * Full phone specifications
 * TWRP for Samsung Galaxy S8 (Exynos)
 * Samsung Galaxy S8 Teardown
 * Kernel used for the port.
 * FCC internal photos of the G950U (snapdragon and not exynos!)
 * FCC internal photos of the G955U (snapdragon and not exynos!)
 * Information about working hardware on mainline
 * WIP mainline