Jump to content

Samsung Galaxy S8 (samsung-dreamlte)

From Nura Wiki
Samsung Galaxy S8
Samsung Galaxy S8
Samsung Galaxy S8
Manufacturer Samsung
Name Galaxy S8
Codename samsung-dreamlte
Released 2017
Type handset
Hardware
Chipset Samsung Exynos 8895
Display 1440x2960 Super AMOLED, 60 Hz, 5.8"
Storage 64 GB
Memory 4 GB
Architecture aarch64
Software
Original software
The software and version the device was shipped with.
Android (One UI) 7
(Samsung Experience 8.0)
Extended version
The most recent supported version from the manufacturer.
Android (One UI) 9
(One UI 1.0)
FOSS bootloader partial
Nura
Category downstream
Pre-built images
Whether pre-built images are available from the Nura Installation page.
no
Mainline
Instead of a Linux kernel fork, it is possible to run (Close to) Mainline.
no
Nura kernel
The kernel version that runs on the device's port.
4.4.111
Unixbench score
Unixbench Whetstone/Dhrystone score. See Unixbench.
4559.4
Device package device-samsung-dream
Kernel package linux-samsung-dream
Firmware package firmware-samsung-dream
Features
Flashing
Whether it is possible to flash the device with pmbootstrap flasher.
Works
USB Networking
After connecting the device with USB to your PC, you can connect to it via telnet (initramfs) or SSH (booted system).
Works
Internal storage
eMMC, SD cards, UFS...
Untested
SD card
Also includes other external storage cards.
Untested
Battery
Whether charging and battery level reporting work.
Works
Screen
Whether the display works; ideally with sleep mode and brightness control.
Works
Touchscreen
Works
Multimedia
3D Acceleration
Broken
Audio
Audio playback, microphone, headset and buttons.
Broken
Camera
Broken
Camera Flash
Untested
Connectivity
Wi-Fi
Works
Bluetooth
Broken
GPS
Broken
NFC
Near Field Communication
Untested
Modem
Calls
Broken
SMS
Broken
Mobile data
Broken
Miscellaneous
FDE
Full disk encryption and unlocking with unl0kr.
Partial
USB OTG
USB On-The-Go or USB-C Role switching.
Works
Fingerprint
Fingerprint reader.
Untested
Sensors
Accelerometer
Handles automatic screen rotation in many interfaces.
Untested
Magnetometer
Sensor to measure the Earth's magnetism
Untested
Ambient Light
Measures the light level; used for automatic screen dimming in many interfaces.
Untested
Proximity
Untested
Haptics
Untested
Barometer
Sensor to measure air pressure
Untested

Contributors

Maintainers

Users owning this device

  • 19unknownXX (Notes: i have two devices one running postmarket os and the other one runns derpfest))
  • AlleM43
  • Andrisas
  • AshyPinguin (Notes: android 16 rom, was running nura v24.12)
  • AskorbinovayaKislota (Notes: locked bootloader, OneUI (Android 9), + broken dex dock)
  • Congo666 (Notes: Running LineageOS)
  • DaKnig (Notes: Half broken, stock based droid)
  • Drebrez
  • Ivoszbg
  • Jacobk (Notes: Haven't tried booting pmOS)
  • Kachiyama Nao (Notes: With cracked, but working screen)
  • Kaffeine
  • Lachtan999
  • Langfingaz (Notes: spare)
  • Leahh
  • Linuxfemboy (Notes: no back glass, every UI imaginable burnt in, black dot in the panel , dusty front cam, not unlockable bootloader idk why, heats up to around 60 deegrees celcius under load , thats the temperature not on the SOC but the whole frame)
  • M2m
  • Manty (Notes: Won't boot PMOS)
  • Nonam3248
  • R00t (Notes: S8+)
  • Silence
  • Skuld (Notes: Runs v24.12 downstream kernel with sxmo-de-dwm, yet to be convinced to open a terminal)
  • SomeRandomPersonSomewhere (Notes: Running /e/OS, might try Nura on it at some point. Cracked back.)
  • V6lhost (Notes: Water damage, no battery, broken screen and a FRP lock. Its a test subject for my crazy hardware projects, and now its not working anymore.)
  • XVT 360 (Notes: Running pmOS)

Secondary bootloader

uniLoader

Support for this device is implemented in uniLoader.

Mainline status

This device is supported in the mainline tree from kernel.org.

Features
Component Model Status Notes
Charging controller Maxim Integrated MAX77865(S) No
Screen Samsung S6E3HA6 No
Touch controller Samsung S6SY761 Yes
Speaker Cirrus Logic CS47L93 No
Camera sensors Samsung ISOCELL 2L2 (S5K2L2) No Main
Samsung ISOCELL 3H1 (S5K3H1) No Front
Wi-Fi and Bluetooth Broadcom BCM4361(B0) No
GPS Broadcom BCM4753 No
Accelerometer and gyroscope STMicroelectronics LSM6DSL Yes
Magnetometer Asahi Kasei Microsystems AK09911C (16C) No
Ambient light ams TMD4903(06) No
Proximity Semtech SX9320 No
Haptics Texas Instruments DRV2624 No Driver in mainline kernel fork
Barometer STMicroelectronics LPS22HB No

How to enter flash mode

  • Download Mode: Hold Bixby Key + Volume Down + Power while connecting the device to a computer with a USB cable.
  • Recovery Mode: Hold Bixby Key + Volume Up + Power while connecting the device to a computer with a USB cable.

What works (downstream)

  • 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-de-dwm, Xfce4, MATE, Lxqt
  • Screen brightness changing on (at least) mate, sxmo xfce and lxqt (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

Installation

Note v25.12 and v26.06 report the device not found. v24.12 does boot.
  1. Install pmbootstrap
  2. Unlock the bootloader and flash TWRP
  3. Setup pmbootstrap:
    $ pmbootstrap init
    ...
    Vendor [samsung]: samsung              <- enter this
    Device codename [dream]: dream         <- enter this
    Available kernels (2):
    * dreamlte: Kernel for the Samsung Galaxy S8
    * dream2lte: Kernel for the Samsung Galaxy S8+
    Kernel [dreamlte]: dreamlte            <- choose your device model
    User interface [weston]:               <- choose your preferred UI
    ...
    
  4. Create a TWRP-flashable .zip:
    $ pmbootstrap install --android-recovery-zip --recovery-install-partition=data
    
  5. Follow Installation from recovery mode

Wi-Fi

To connect with Wi-Fi the same steps as for the Medion Lifetab S9714 (medion-kai) work:

Verify that the wlan0 interface exists
$ ip link
Turn on Wi-Fi
$ nmcli radio wifi on
List available networks
$ nmcli device wifi list
Connect to a network
$ nmcli device wifi connect "$SSID" password "$PASSWORD"
Verify that you have been given an ip address on the wlan0, or swlan0, interface
$ ip a

If you are using SXMO, just run
# nmtui
Select "Activate a connection" and connect to your network.

Screen brightness

On MATE or Sxmo, the screen brightness can be changed with:

Echo a value between 0 and 36600
# echo 18300 > /sys/devices/platform/panel_drv@001/backlight/panel/brightness

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

set a value between 0 and 100
# pkexec xfpm-power-backlight-helper --set-brightness 50

USB OTG keyboard

Connecting a USB keyboard works on Sxmo but not on Xfce4. For the latter, the keyboard shows up in dmesg and lsusb correctly, and libinput list-devices shows it. However, xinput list does not show it, and it is not recognised in /var/log/Xorg.log.

elogind-daemon reports something like

Watching system buttons on /dev/input/event8 (keyboard name)

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.

USB OTG mouse

Connecting a USB mouse works (tested on Sxmo). The mouse shows up in dmesg and is detected by lsusb, libinput and xlist. However, the mouse cursor appears to be invisible.

Audio

Audio (tested on Sxmo) does not work. According to

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Exynos8895Mader [Exynos8895-Madera], device 0: RDMA0 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Exynos8895Mader [Exynos8895-Madera], device 1: RDMA1 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Exynos8895Mader [Exynos8895-Madera], device 2: RDMA2 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Exynos8895Mader [Exynos8895-Madera], device 3: RDMA3 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Exynos8895Mader [Exynos8895-Madera], device 4: RDMA4 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Exynos8895Mader [Exynos8895-Madera], device 6: RDMA6 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Exynos8895Mader [Exynos8895-Madera], device 7: RDMA7 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Exynos8895Mader [Exynos8895-Madera], device 22: DP Audio snd-soc-dummy-dai-22 []
  Subdevices: 1/1
  Subdevice #0: subdevice #0

The card shows up as Exynos8895Mader but it does not work. This was tested by running

$ speaker-test

speaker-test 1.2.5.1

Playback device is default
Stream parameters are 48000Hz, S16_LE, 1 channels
Using 16 octaves of pink noise
Playback open error: -16,Resource busy

and

$ aplay /usr/share/sounds/alsa/Front_Center.wav
aplay: main:831: audio open error: Resource busy

Sensors

$ sudo apk add linux-tools-iio
$ lsiio
Device 010: light_flicker_sensor
Device 011: proximity_sensor
Device 012: proximity_alert_sensor
Device 013: rotation_vector_sensor
Device 014: game_rotation_vector
Device 015: sig_motion_sensor
Device 016: step_det_sensor
Device 017: step_cnt_sensor
Device 018: tilt_detector
Device 019: pickup_gesture
Device 020: scontext_iio
Device 021: light_cct_sensor
Device 022: uncal_accel_sensor
Device 023: meta_event
Device 024: wake_up_motion
Device 000: 15b70000.adc
Device 001: accelerometer_sensor
Device 002: geomagnetic_sensor
Device 003: uncal_geomagnetic_sensor
Device 004: gyro_sensor
Device 005: uncal_gyro_sensor
Device 006: interrupt_gyro_sensor
Device 007: pressure_sensor
Device 008: light_sensor
Device 009: light_ir_sensor
Note Note: Sensors might not work out-of-the-box, more work is required!

Additional info

Partition layout

# fdisk -l /dev/block/sda
Note: sector size is 4096 (not 512)
Found valid GPT with protective MBR; using GPT

Disk /dev/block/sda: 124928000 sectors,  576M
Logical sector size: 4096
Disk identifier (GUID): 52444e41-494f-2044-4d4d-43204449534b
Partition table holds up to 128 entries
First usable sector is 6, last usable sector is 15615994

Number  Start (sector)    End (sector)  Size       Code  Name
   1            1024            2047       4096K   0700  BOTA0
   2            2048            3071       4096K   0700  NA
   3            3072            8191       20.0M   0700  EFS
   4            8192           10239       8192K   0700  PARAM
   5           10240           12287       8192K   0700  UP_PARAM
   6           12288           14335       8192K   0700  BOTA2
   7           14336           24575       40.0M   0700  BOOT
   8           24576           36351       46.0M   0700  RECOVERY
   9           36352           38399       8192K   0700  BOTA1
  10           38400           49151       42.0M   0700  RADIO
  11           49152           49407       1024K   0700  TOMBSTONES
  12           49408           49663       1024K   0700  DNT
  13           49664           49791        512K   0700  PERSISTENT
  14           49792           50047       1024K   0700  MISC
  15           50048           51071       4096K   0700  STEADY
  16           51072           55167       16.0M   0700  KEYREFUGE
  17           55168         1168767       4350M   0700  SYSTEM
  18         1168768         1296767        500M   0700  CACHE
  19         1296768         1299327       10.0M   0700  HIDDEN
  20         1299328         1312127       50.0M   0700  OMR
  21         1312128         1313407       5120K   0700  CP_DEBUG
  22         1313408         1318527       20.0M   0700  NAD_FW
  23         1318528         1318783       1024K   0700  NAD_REFER
  24         1318784        15614847       54.5G   0700  USERDATA

Links