Jump to content

Samsung Galaxy S6 (samsung-zerofltexx): Difference between revisions

From postmarketOS Wiki
Drebrez (talk | contribs)
m manufacturer name
Halamix2 (talk | contribs)
mNo edit summary
 
(14 intermediate revisions by 8 users not shown)
Line 1: Line 1:
{{Infobox device
{{Infobox device
| pmoskernel = 3.10.101
| manufacturer = Samsung
| manufacturer = Samsung <!-- e.g. HTC -->
| name = Galaxy S6
| name = Galaxy S6 <!-- e.g. Desire -->
| codename = samsung-zerofltexx
| codename = zerofltexx <!-- e.g. htc-bravo -->
| image = File:samsung-zerofltexx.jpg
| image = File:CHANGE_ME_TO_DEVICE_CODENAME.jpg
| imagecaption = Samsung Galaxy S6
| imagecaption = Samsung Galaxy S6
| releaseyear = 2015
| releaseyear = 2015
| originalsoftware = Android 5.0 <!-- e.g. Android 2 -->
| originalsoftware = Android
| chipset = Exynos 7420 Octa <!-- e.g. Qualcomm QSD8250 Snapdragon S1 -->
| originalversion = 5.0
| cpu = Octa-core Cortex-A53 & Cortex-A57 4 x 2.1GHz + 4 x 1.5GHz <!-- e.g. 1.0 GHz Scorpion -->
| extendedversion = 8.0
| gpu = Mali-T760 MP8 <!-- e.g. Adreno 200 -->
| pmoskernel = 3.10.101
| storage = 32,64,128 GB <!-- e.g. 512 MB -->
| chipset = Samsung Exynos 7420 Octa
| display = 1440x2560 AMOLED <!-- e.g. 480x800 AMOLED -->
| cpu = Octa-core (4x 2.1 GHz Cortex-A57 & 4x 1.5 GHz Cortex-A53)
| memory = 3GB <!-- e.g. 576 MB -->
| gpu = Mali-T760 MP8
| architecture = aarch64 <!-- One of these: armhf, armv7, aarch64, x86, x86_64 -->
| storage = 32,64,128 GB
<!-- the following status_* questions should be answered with Y - yes, P - partial, N - no, or left blank (for untested or unknown) -->
| display = 1440x2560 AMOLED
| status_usbnet = N<!-- USB networking does work? then put Y here and delete this comment -->
| memory = 3 GB
| status_flashing = <!-- Flashing with "pmbootstrap flasher" works? Put Y here. It works the same for everything coming below. -->
| architecture = aarch64
| status_touch = <!-- Touch screen is working? You can also answer these questions with P for partially. -->
| type = handset
| status_screen = <!-- The display is working? -->
| status_usbnet = Y
| status_wifi = <!-- Wireless network works? -->
| status_flashing =
| status_xwayland = <!-- Showing X11 applications in a Wayland compositor (Weston, KWin, ...) works? -->
| status_touch = Y
| status_fde = <!-- When installing with full disk encryption, can you type in the password with the on screen keyboard? -->
| status_screen = Y
| status_mainline = <!-- Instead of a Linux kernel fork, it is possible to run mainline. -->
| status_wifi =
| status_battery = <!-- Charging the battery with charging-sdl is possible -->
| status_xwayland =
| status_3d = <!-- Hardware accelerated 3D graphics (e.g. with freedreno) -->
| status_fde =
| status_accel = <!-- The sensor that measures proper acceleration works -->
| status_mainline =
| status_audio = <!-- Using the device's speakers/headphone jack works -->
| status_battery =
| status_bluetooth = <!-- It's possible to pair and use other devices via the bluetooth protocol -->
| status_3d =
| status_camera = <!-- Taking photos and videos works. -->
| status_accel =
| status_gps = <!-- The Global Positioning System sensor works.  -->
| status_audio =
| status_mobiledata = <!-- Connecting to the Internet via cellular network. -->
| status_bluetooth =
| status_sms = <!-- Sending and receiving short messages works as intended. -->
| status_camera =
| status_calls = <!-- Talking to other people over the cellular network. -->
| status_gps =
| status = <!-- Text displayed in the "not booting" table on the Devices page , e.g "kernel compiles, doesn't boot" -->
| status_mobiledata =
| booting = N <!-- The device is booting at all, can be yes/no *IMPORTANT* -->
| status_sms =
 
| status_calls =
| status =
| booting = yes
<!-- you can also use these lines if you need to:
<!-- you can also use these lines if you need to:
if the device haven't originally ran Android OS, e.g. Nokia N900
| n-android =  ✔
Version of the kernel that pmos is running
Version of the kernel that pmos is running
| pmoskernel = 3.x.x
| pmoskernel = 3.10.108
see Unixbench page on wiki
see Unixbench page on wiki
| whet_dhry = 0.0
| whet_dhry = 0.0
Line 51: Line 50:
== Contributors ==
== Contributors ==
* techfreak
* techfreak
 
* St.S
== Maintainer(s) ==
<!-- Only if this device doesn't run on linux-postmarketos yet! -->
<!-- This person needs to be willing to answer questions from users of this device -->


== Users owning this device ==
== Users owning this device ==
{{Device owners}}
{{Device owners}}
<!-- autogenerated, use {{Owns device|devicepage|notes}} on your profile page -->
<!-- use _ instead of spaces in device page name, e.g. {{Owns device|Nokia_N900|broken screen}}-->
<!-- you may need to purge page cache to see changes (more->purge cache)-->
<!-- you can use {{My devices}} on your profile page to show table with all your devices -->


== How to enter flash mode ==
== How to enter flash mode ==
Volume Down 🔈, Home + Power
Volume Down 🔈, Home + Power
== Device information ==
Some device information that may or may not be useful for further development
<syntaxhighlight lang="bash">
zerofltespr:/ $ ls -l /dev/block/platform/15570000.ufs/by-name/                                                                     
total 0
lrwxrwxrwx 1 root root 15 2022-02-01 17:09 BOOT -> /dev/block/sda8
lrwxrwxrwx 1 root root 15 2022-02-01 17:09 BOTA0 -> /dev/block/sda1
lrwxrwxrwx 1 root root 15 2022-02-01 17:09 BOTA1 -> /dev/block/sda2
lrwxrwxrwx 1 root root 16 2022-02-01 17:09 CACHE -> /dev/block/sda19
lrwxrwxrwx 1 root root 16 2022-02-01 17:09 CARRIER -> /dev/block/sda20
lrwxrwxrwx 1 root root 16 2022-02-01 17:09 DNT -> /dev/block/sda13
lrwxrwxrwx 1 root root 15 2022-02-01 17:09 EFS -> /dev/block/sda3
lrwxrwxrwx 1 root root 16 2022-02-01 17:09 OTA -> /dev/block/sda10
lrwxrwxrwx 1 root root 15 2022-02-01 17:09 PARAM -> /dev/block/sda7
lrwxrwxrwx 1 root root 16 2022-02-01 17:09 PERSDATA -> /dev/block/sda16
lrwxrwxrwx 1 root root 16 2022-02-01 17:09 PERSISTENT -> /dev/block/sda14
lrwxrwxrwx 1 root root 16 2022-02-01 17:09 RADIO -> /dev/block/sda11
lrwxrwxrwx 1 root root 15 2022-02-01 17:09 RECOVERY -> /dev/block/sda9
lrwxrwxrwx 1 root root 16 2022-02-01 17:09 SBFS -> /dev/block/sda17
lrwxrwxrwx 1 root root 16 2022-02-01 17:09 STEADY -> /dev/block/sda15
lrwxrwxrwx 1 root root 16 2022-02-01 17:09 SYSTEM -> /dev/block/sda18
lrwxrwxrwx 1 root root 16 2022-02-01 17:09 TOMBSTONES -> /dev/block/sda12
lrwxrwxrwx 1 root root 16 2022-02-01 17:09 USERDATA -> /dev/block/sda21
lrwxrwxrwx 1 root root 15 2022-02-01 17:09 m9kefs1 -> /dev/block/sda4
lrwxrwxrwx 1 root root 15 2022-02-01 17:09 m9kefs2 -> /dev/block/sda5
lrwxrwxrwx 1 root root 15 2022-02-01 17:09 m9kefs3 -> /dev/block/sda6
zerofltespr:/ $ uname -a
Linux localhost 3.10.61-11881452 #1 SMP PREEMPT Wed Mar 21 23:42:01 KST 2018 aarch64
zerofltespr:/ $ df
Filesystem                    1K-blocks    Used Available Use% Mounted on
tmpfs                            1370152      820  1369332  1% /dev
tmpfs                            1370152        0  1370152  0% /mnt
/dev/block/dm-0                  3737264  3438436    298828  93% /system
/dev/block/sda3                    16048      440    15608  3% /efs
/dev/block/sda19                  297560    5884    291676  2% /cache
/dev/block/sda21                26477824 12053528  14419176  46% /data
/dev/block/sda16                    5032      244      4788  5% /persdata/absolute
/dev/block/sda17                  11008        8    11000  1% /sbfs
/dev/block/sda11                  88016    68432    19584  78% /firmware
tmpfs                            153600        0    153600  0% /cpdump
/dev/block/sda20                  41248      56    41192  1% /carrier
/data/knox/tmp_sdcard          26477824 12053528  14419176  46% /mnt/knox
/data/knox/secure_fs/enc_media  26457344 12058648  14398696  46% /mnt/shell/enc_media
/data/media                    26457344 12058648  14398696  46% /storage/emulated
/data/knox/secure_fs/enc_user  26477824 12053528  14419176  46% /data/enc_user
/mnt/shell/enc_media            26457344 12058648  14398696  46% /mnt/shell/enc_emulated
zerofltespr:/ $  cat /proc/partitions                                                                                               
major minor  #blocks  name
253        0    2097152 vnswap0
  8        0  31240192 sda
  8        1      4096 sda1
  8        2      4096 sda2
  8        3      20480 sda3
  8        4      4096 sda4
  8        5      4096 sda5
  8        6      4096 sda6
  8        7      8192 sda7
  8        8      28672 sda8
  8        9      34816 sda9
  8      10      8192 sda10
  8      11      77824 sda11
  8      12      1024 sda12
  8      13      1024 sda13
  8      14        768 sda14
  8      15        256 sda15
259        0      9216 sda16
259        1      15360 sda17
259        2    3829760 sda18
259        3    307200 sda19
259        4      46080 sda20
259        5  26820608 sda21
  8      16      4096 sdb
  8      32      4096 sdc
254        0    3796952 dm-0
zerofltespr:/ $ cat  /proc/asound/*                                                                                                 
/system/bin/sh: cat: /proc/asound/Sound: Is a directory
/system/bin/sh: cat: /proc/asound/card0: Is a directory
0 [Sound          ]: Pacific_WM1840_ - Pacific WM1840 Sound
                      Pacific WM1840 Sound
  2: [ 0- 9]: digital audio playback
  3: [ 0- 8]: digital audio playback
  4: [ 0- 7]: digital audio playback
  5: [ 0- 6]: digital audio playback
  6: [ 0- 5]: ?
  7: [ 0- 4]: ?
  8: [ 0- 3]: digital audio playback
  9: [ 0- 2]: digital audio playback
10: [ 0- 2]: digital audio capture
11: [ 0- 1]: digital audio playback
12: [ 0- 1]: digital audio capture
13: [ 0- 0]: digital audio playback
14: [ 0- 0]: digital audio capture
15: [ 0]  : control
33:        : timer
00-00: i2s0-pri clearwater-aif1-0 :  : playback 1 : capture 1
00-01: pacific-ext voice call clearwater-aif2-1 :  : playback 1 : capture 1
00-02: pacific-ext bluetooth sco clearwater-aif3-2 :  : playback 1 : capture 1
00-03: i2s0-sec clearwater-aif1-3 :  : playback 1
00-06: eax0 clearwater-aif1-6 :  : playback 1
00-07: eax1 clearwater-aif1-7 :  : playback 1
00-08: eax2 clearwater-aif1-8 :  : playback 1
00-09: eax3 clearwater-aif1-9 :  : playback 1
G0: system timer : 10000.000us (10000000 ticks)
P0-0-0: PCM playback 0-0-0 : SLAVE
P0-0-1: PCM capture 0-0-1 : SLAVE
P0-1-0: PCM playback 0-1-0 : SLAVE
P0-1-1: PCM capture 0-1-1 : SLAVE
P0-2-0: PCM playback 0-2-0 : SLAVE
P0-2-1: PCM capture 0-2-1 : SLAVE
P0-3-0: PCM playback 0-3-0 : SLAVE
P0-6-0: PCM playback 0-6-0 : SLAVE
P0-7-0: PCM playback 0-7-0 : SLAVE
P0-8-0: PCM playback 0-8-0 : SLAVE
P0-9-0: PCM playback 0-9-0 : SLAVE
Advanced Linux Sound Architecture Driver Version k3.10.61-11881452.
</syntaxhighlight>
Based on the previous command output and PostmarketOS kernel .config file, it seems that this device supports some version of SATA, PCI and also routes audio on bare ALSA.
== Installation ==
== Installation ==
Create a [https://wiki.postmarketos.org/wiki/Android_Recovery_Zip_Installation recovery.zip] and flash it with TWRP. Make sure that in TWRP you unmounted the partition you want to flash on by default that would be "SYSTEM".
{{todo|Explain TWRP recovery installaton process and recovery.zip creation}}
<!-- add more sections below as necessary, e.g. Wifi, photos, ... -->
Create a [[Android_Recovery_Zip_Installation|recovery.zip]] and flash it with TWRP. Make sure that in TWRP you unmounted the partition you want to flash on by default that would be "SYSTEM".


== See also ==
== See also ==
[https://wiki.lineageos.org/devices/zerofltexx Device info (LineageOS)]
* [https://wiki.lineageos.org/devices/zerofltexx Device info (LineageOS)]
 
* [https://github.com/enesuzun2002/android_kernel_samsung_exynos7420 Kernel used]
[https://github.com/enesuzun2002/android_kernel_samsung_exynos7420 Kernel used]
* [https://github.com/Exynos7420/android_kernel_samsung_exynos7420 Kernel used in second porting attempt by St.S]
<!--
Link to related gitlab issues or merge requests like the following (replace CHANGEME with the ID, e.g. 1234):
* {{MR|CHANGEME|pmaports}} Initial merge request
* {{issue|CHANGEME|pmaports}} Some related issue
You can also add normal web links:
* [https://redmine.replicant.us/projects/replicant/wiki/GalaxyS2I9100 Replicant wiki page]
-->
<!--
If you manage to get your device packages merged, uncomment links below and change DEVICE_CODENAME with the actual one.
* [https://gitlab.com/postmarketOS/pmaports/tree/master/device/device-DEVICE_CODENAME Device package]
* [https://gitlab.com/postmarketOS/pmaports/tree/master/device/linux-DEVICE_CODENAME Kernel package]
-->

Latest revision as of 11:42, 1 February 2025

Samsung Galaxy S6
Samsung Galaxy S6
Samsung Galaxy S6
Manufacturer Samsung
Name Galaxy S6
Codename samsung-zerofltexx
Released 2015
Type handset
Hardware
Chipset Samsung Exynos 7420 Octa
CPU Octa-core (4x 2.1 GHz Cortex-A57 & 4x 1.5 GHz Cortex-A53)
GPU Mali-T760 MP8
Display 1440x2560 AMOLED
Storage 32,64,128 GB
Memory 3 GB
Architecture aarch64
Software
Original software Android
Original version 5.0
Extended version 8.0
postmarketOS
Category testing
Pre-built images no
postmarketOS kernel 3.10.101
Features
Flashing
No data
USB Networking
Works
Internal storage
No data
SD card
No data
Battery
No data
Screen
Works
Touchscreen
Works
Multimedia
3D Acceleration
No data
Audio
No data
Camera
No data
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
No data
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

  • techfreak
  • St.S

Users owning this device


How to enter flash mode

Volume Down 🔈, Home + Power

Device information

Some device information that may or may not be useful for further development

zerofltespr:/ $ ls -l /dev/block/platform/15570000.ufs/by-name/                                                                       
total 0
lrwxrwxrwx 1 root root 15 2022-02-01 17:09 BOOT -> /dev/block/sda8
lrwxrwxrwx 1 root root 15 2022-02-01 17:09 BOTA0 -> /dev/block/sda1
lrwxrwxrwx 1 root root 15 2022-02-01 17:09 BOTA1 -> /dev/block/sda2
lrwxrwxrwx 1 root root 16 2022-02-01 17:09 CACHE -> /dev/block/sda19
lrwxrwxrwx 1 root root 16 2022-02-01 17:09 CARRIER -> /dev/block/sda20
lrwxrwxrwx 1 root root 16 2022-02-01 17:09 DNT -> /dev/block/sda13
lrwxrwxrwx 1 root root 15 2022-02-01 17:09 EFS -> /dev/block/sda3
lrwxrwxrwx 1 root root 16 2022-02-01 17:09 OTA -> /dev/block/sda10
lrwxrwxrwx 1 root root 15 2022-02-01 17:09 PARAM -> /dev/block/sda7
lrwxrwxrwx 1 root root 16 2022-02-01 17:09 PERSDATA -> /dev/block/sda16
lrwxrwxrwx 1 root root 16 2022-02-01 17:09 PERSISTENT -> /dev/block/sda14
lrwxrwxrwx 1 root root 16 2022-02-01 17:09 RADIO -> /dev/block/sda11
lrwxrwxrwx 1 root root 15 2022-02-01 17:09 RECOVERY -> /dev/block/sda9
lrwxrwxrwx 1 root root 16 2022-02-01 17:09 SBFS -> /dev/block/sda17
lrwxrwxrwx 1 root root 16 2022-02-01 17:09 STEADY -> /dev/block/sda15
lrwxrwxrwx 1 root root 16 2022-02-01 17:09 SYSTEM -> /dev/block/sda18
lrwxrwxrwx 1 root root 16 2022-02-01 17:09 TOMBSTONES -> /dev/block/sda12
lrwxrwxrwx 1 root root 16 2022-02-01 17:09 USERDATA -> /dev/block/sda21
lrwxrwxrwx 1 root root 15 2022-02-01 17:09 m9kefs1 -> /dev/block/sda4
lrwxrwxrwx 1 root root 15 2022-02-01 17:09 m9kefs2 -> /dev/block/sda5
lrwxrwxrwx 1 root root 15 2022-02-01 17:09 m9kefs3 -> /dev/block/sda6

zerofltespr:/ $ uname -a
Linux localhost 3.10.61-11881452 #1 SMP PREEMPT Wed Mar 21 23:42:01 KST 2018 aarch64

zerofltespr:/ $ df
Filesystem                     1K-blocks     Used Available Use% Mounted on
tmpfs                            1370152      820   1369332   1% /dev
tmpfs                            1370152        0   1370152   0% /mnt
/dev/block/dm-0                  3737264  3438436    298828  93% /system
/dev/block/sda3                    16048      440     15608   3% /efs
/dev/block/sda19                  297560     5884    291676   2% /cache
/dev/block/sda21                26477824 12053528  14419176  46% /data
/dev/block/sda16                    5032      244      4788   5% /persdata/absolute
/dev/block/sda17                   11008        8     11000   1% /sbfs
/dev/block/sda11                   88016    68432     19584  78% /firmware
tmpfs                             153600        0    153600   0% /cpdump
/dev/block/sda20                   41248       56     41192   1% /carrier
/data/knox/tmp_sdcard           26477824 12053528  14419176  46% /mnt/knox
/data/knox/secure_fs/enc_media  26457344 12058648  14398696  46% /mnt/shell/enc_media
/data/media                     26457344 12058648  14398696  46% /storage/emulated
/data/knox/secure_fs/enc_user   26477824 12053528  14419176  46% /data/enc_user
/mnt/shell/enc_media            26457344 12058648  14398696  46% /mnt/shell/enc_emulated

zerofltespr:/ $  cat /proc/partitions                                                                                                 
major minor  #blocks  name

 253        0    2097152 vnswap0
   8        0   31240192 sda
   8        1       4096 sda1
   8        2       4096 sda2
   8        3      20480 sda3
   8        4       4096 sda4
   8        5       4096 sda5
   8        6       4096 sda6
   8        7       8192 sda7
   8        8      28672 sda8
   8        9      34816 sda9
   8       10       8192 sda10
   8       11      77824 sda11
   8       12       1024 sda12
   8       13       1024 sda13
   8       14        768 sda14
   8       15        256 sda15
 259        0       9216 sda16
 259        1      15360 sda17
 259        2    3829760 sda18
 259        3     307200 sda19
 259        4      46080 sda20
 259        5   26820608 sda21
   8       16       4096 sdb
   8       32       4096 sdc
 254        0    3796952 dm-0

zerofltespr:/ $ cat  /proc/asound/*                                                                                                   
/system/bin/sh: cat: /proc/asound/Sound: Is a directory
/system/bin/sh: cat: /proc/asound/card0: Is a directory
 0 [Sound          ]: Pacific_WM1840_ - Pacific WM1840 Sound
                      Pacific WM1840 Sound
  2: [ 0- 9]: digital audio playback
  3: [ 0- 8]: digital audio playback
  4: [ 0- 7]: digital audio playback
  5: [ 0- 6]: digital audio playback
  6: [ 0- 5]: ?
  7: [ 0- 4]: ?
  8: [ 0- 3]: digital audio playback
  9: [ 0- 2]: digital audio playback
 10: [ 0- 2]: digital audio capture
 11: [ 0- 1]: digital audio playback
 12: [ 0- 1]: digital audio capture
 13: [ 0- 0]: digital audio playback
 14: [ 0- 0]: digital audio capture
 15: [ 0]   : control
 33:        : timer
00-00: i2s0-pri clearwater-aif1-0 :  : playback 1 : capture 1
00-01: pacific-ext voice call clearwater-aif2-1 :  : playback 1 : capture 1
00-02: pacific-ext bluetooth sco clearwater-aif3-2 :  : playback 1 : capture 1
00-03: i2s0-sec clearwater-aif1-3 :  : playback 1
00-06: eax0 clearwater-aif1-6 :  : playback 1
00-07: eax1 clearwater-aif1-7 :  : playback 1
00-08: eax2 clearwater-aif1-8 :  : playback 1
00-09: eax3 clearwater-aif1-9 :  : playback 1
G0: system timer : 10000.000us (10000000 ticks)
P0-0-0: PCM playback 0-0-0 : SLAVE
P0-0-1: PCM capture 0-0-1 : SLAVE
P0-1-0: PCM playback 0-1-0 : SLAVE
P0-1-1: PCM capture 0-1-1 : SLAVE
P0-2-0: PCM playback 0-2-0 : SLAVE
P0-2-1: PCM capture 0-2-1 : SLAVE
P0-3-0: PCM playback 0-3-0 : SLAVE
P0-6-0: PCM playback 0-6-0 : SLAVE
P0-7-0: PCM playback 0-7-0 : SLAVE
P0-8-0: PCM playback 0-8-0 : SLAVE
P0-9-0: PCM playback 0-9-0 : SLAVE
Advanced Linux Sound Architecture Driver Version k3.10.61-11881452.

Based on the previous command output and PostmarketOS kernel .config file, it seems that this device supports some version of SATA, PCI and also routes audio on bare ALSA.


Installation

TODO TODO: Explain TWRP recovery installaton process and recovery.zip creation

Create a recovery.zip and flash it with TWRP. Make sure that in TWRP you unmounted the partition you want to flash on by default that would be "SYSTEM".

See also