Jump to content

Samsung Galaxy S8 (samsung-dreamlte)

From postmarketOS Wiki
Revision as of 15:45, 5 October 2020 by Ivoszbg (talk | contribs) (screen brightness works on mate!)
Samsung Galaxy S8
Samsung Galaxy S8
Samsung Galaxy S8
Manufacturer Samsung
Name Galaxy S8
Codename samsung-dreamlte, samsung-dream2lte
Released 2017
Hardware
Chipset Exynos 8895
CPU 4x2.3 GHz Mongoose M2 & 4x1.7 GHz Cortex-A53
GPU Mali-G71 MP20
Display 1440 x 2960 Super AMOLED
Storage 64 GB
Memory 4 GB
Architecture aarch64
Software
Original software Android 7.1
postmarketOS
Category testing
Pre-built images no
Features
Flashing
Works
USB Networking
Broken
Internal storage
No data
SD card
No data
Battery
Works
Screen
Partial
Touchscreen
Works
Multimedia
3D Acceleration
No data
Audio
No data
Camera
Broken
Camera Flash
No data
Connectivity
WiFi
No data
Bluetooth
No data
GPS
No data
NFC
No data
Modem
Calls
No data
SMS
No data
Mobile data
No data
Miscellaneous
FDE
No data
USB OTG
Broken
HDMI/DP
No data
Sensors
Accelerometer
No data
Magnetometer
No data
Ambient Light
No data
Proximity
No data
Hall Effect
No data
Haptics
No data
Barometer
No data


Contributors

Maintainer(s)

Users owning this device


How to enter recovery/odin mode

  • Press and hold Bixby Key + Volume Down + Power simultaneously while device is powered off for odin mode
  • Press and hold Bixby Key + Volume Up + Power 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, SXMO, Xfce4, Mate
  • Screen brightness changing on Mate

However usb networking/ssh is still not working and needs to be yet investigated. Merge request is going to be done.

Installation

Note Note: Installation won't work before a merge request is done.
Note Note: If your device is dream2lte, type dream2lte instead of dreamlte!

1. Install pmbootstrap

2. Unlock the bootloader and flash twrp

3. Setup pmbootstrap:

$ pmbootstrap init
...
Vendor [samsung]: samsung              <- enter this
Device codename [dreamlte]: dreamlte   <- enter this
User interface [weston]:               <- choose any UI by your preference
...

4. Create twrp flashable .zip and export it at /tmp/postmarketOS-export/

$ pmbootstrap install --android-recovery-zip
...
$ pmbootstrap export

5. Grap the zip file from /tmp/postmarketOS-export/, put it in the phone internal storage/sd card, boot to twrp and flash it!

Note Note: Formatting system partition before flashing the zip will result in error while installation!

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