Jump to content

Galaxy J2 Prime (SM-G532M): Difference between revisions

From postmarketOS Wiki
Schlemuel (talk | contribs)
No edit summary
Schlemuel (talk | contribs)
Talking about how to install the PostMarketOS in this cell phone
Line 2: Line 2:
| manufacturer = Samsung
| manufacturer = Samsung
| name = Galaxy J2 Prime
| name = Galaxy J2 Prime
| codename = SM-G532M <!-- I didn't find it, I used the model in the file -->
| codename = SM-G532M <!-- I didn't find it, I used the model in the file It's possible that it's Samsung-Grandpplte, considering that from my quick research the only difference between the two phones is the CPU power. -->
| model = SM-G532M
| model = SM-G532M
| image = [[File:LineageOS_J2_Prime_Galaxy_Vertical.png|thumb|Running unofficial LineageOS]]
| image = File:Phosh J2 Prime Galaxy Vertical.png
| imagecaption = Running LineageOS
| imagecaption = Photo of a Samsung Galaxy J2 Prime running PostMarketOS with the Phosh interface
| releaseyear = 2016
| releaseyear = 2016
| category = testing
| category = testing
| originalsoftware = Android
| originalsoftware = Android
| originalversion = 6.0.1
| originalversion = 6.0.1
| pmoskernel = Don't running for now <!-- 6.x.x Version of the kernel that postmarketOS is running -->
| pmoskernel = Running <!-- 6.x.x Version of the kernel that postmarketOS is running -->
| chipset =  MediaTek_MT6737T
| chipset =  MediaTek_MT6737T
| cpu = 4x 1.5 GHz ARM Cortex-A53
| cpu = 4x 1.5 GHz ARM Cortex-A53
Line 19: Line 19:
| architecture = aarch64
| architecture = aarch64
| type = handset
| type = handset
| whet_dhry = 0.0 <!-- see Unixbench page on wiki -->
<!-- Features -->
<!-- Features -->
<!-- the following status_* questions should be answered with Y for yes, P for partial, N for no, - for N/A or unavailable, or left blank for untested or unknown -->
<!-- the following status_* questions should be answered with Y for yes, P for partial, N for no, - for N/A or unavailable, or left blank for untested or unknown -->
| status_usbnet = <!-- USB networking does work? then put Y here and delete this comment -->
| status_usbnet = <!-- USB networking does work? then put Y here and delete this comment -->
| status_flashing = <!-- Flashing with "pmbootstrap flasher" works? Put Y here. It works the same for everything coming below. -->
| status_flashing = Y
| status_touch = <!-- Touch screen is working? You can also answer these questions with P for partially. -->
| status_touch = Y <!-- Depends of the interface -->
| status_screen = <!-- The display is working? -->
| status_screen = Y <!-- Depends of the interface -->
| status_3d = <!-- Hardware accelerated 3D graphics (e.g. with freedreno) -->
| status_3d = <!-- Hardware accelerated 3D graphics (e.g. with freedreno) -->
| status_fde = <!-- When installing with full disk encryption, can you type in the password with the on screen keyboard? -->
| status_fde = <!-- When installing with full disk encryption, can you type in the password with the on screen keyboard? -->
| status_emmc = <!-- Internal storage can be accessed? -->
| status_emmc = <!-- Internal storage can be accessed? -->
| status_wifi = <!-- Wireless network works? -->
| status_wifi = N <!-- Wireless network works? -->
| status_mainline = <!-- Instead of a Linux kernel fork, it is possible to run mainline. -->
| status_mainline = <!-- Instead of a Linux kernel fork, it is possible to run mainline. -->
| status_battery = <!-- Charging the battery and getting the battery percentage is possible -->
| status_battery = N <!-- Charging the battery and getting the battery percentage is possible -->
| status_audio = <!-- Using the device's speakers/headphone jack works -->
| status_audio = N <!-- Using the device's speakers/headphone jack works -->
| status_bluetooth = <!-- It's possible to pair and use other devices via the bluetooth protocol -->
| status_bluetooth = N <!-- It's possible to pair and use other devices via the bluetooth protocol -->
| status_camera = <!-- Taking photos and videos works. -->
| status_camera = N <!-- Taking photos and videos works. -->
| status_gps = <!-- The Global Positioning System sensor works.  -->
| status_gps = N <!-- The Global Positioning System sensor works.  -->
| status_mobiledata = <!-- Connecting to the Internet via cellular network. -->
| status_mobiledata = N <!-- Connecting to the Internet via cellular network. -->
| status_sms = <!-- Sending and receiving short messages works as intended. -->
| status_sms = <!-- Sending and receiving short messages works as intended. -->
| status_calls = <!-- Talking to other people over the cellular network. -->
| status_calls = <!-- Talking to other people over the cellular network. -->
Line 78: Line 77:
-->
-->


| booting = no <!-- The device is booting at all, can be yes/no *IMPORTANT* -->
| booting = yes
| status = <!-- Text displayed in the "not booting" table on the Devices page , e.g "kernel compiles, doesn't boot" -->
}}
}}


Line 90: Line 88:
<!-- use _ instead of spaces in device page name, e.g. {{Owns device|HTC_Desire_(htc-bravo)|custom notes}}-->
<!-- use _ instead of spaces in device page name, e.g. {{Owns device|HTC_Desire_(htc-bravo)|custom notes}}-->
<!-- you may need to purge page cache to see changes (more->purge cache)-->
<!-- 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 ==
With the cell phone turned off, hold Power+Home+Volume Down, then a menu will appear. Press Volume Up to proceed to flash mode.


== Installation ==
== Installation ==
=== Using pmbootstrap ===
=== Using pmbootstrap ===
Follow [[Installation/Using pmbootstrap]]. When asked for the device's vendor/codename, select sansumg as the vendor and sm-g532m as the codename. <!-- replace FIXMEs with the vendor and codename part of the codename -->
Follow [[Installation/Using pmbootstrap]] to install pmbootstrap.
 
Use <code>pmbootstrap init</code>.
When asked for the device's vendor/codename, select samsung as the vendor and grandpplte¹ as the codename.
For the interface, in my few test the '''gnome-mobile''' was the better (the posh get some display bugs), but in doubt chose xfce4 in the first time, only to see if your cell phone boot. After that is more easy to test other configurations.
 
After that, use <code>pmbootstrap install</code>.
When asked for a password, preferably to write one with only numbers.


To flash the image to the device:
To flash the image to the device:


* Enter flashing mode (see [[#How to enter flash mode]])
* Enter flashing mode (see [[#How to enter flash mode]])
* Run <code>pmbootstrap flasher flash_kernel</code> to flash the kernel
* Inside the flashing mode, connect the cell phone in the pc with a good cable
* Run <code>pmbootstrap flasher flash_rootfs
* Run <code>pmbootstrap flasher --method=heimdall-bootimg flash_kernel --no-install</code> to flash the kernel
* Run <code>pmbootstrap flasher --method=heimdall-bootimg flash_rootfs</code> to flash the system
<!-- add more instructions if necessary -->
<!-- add more instructions if necessary -->


<!-- add more sections below as necessary, e.g. WiFi, photos, ... -->
<!-- add more sections below as necessary, e.g. WiFi, photos, ... -->
Note: Work in progress, I will add more information later when I get (if I do) the kernel compiled
For change only the interface:
Isn't necessary to flash the kernel again, only the <code>flash_rootfs</code> is necessary after the first time.
 
Note¹: If you find grandpplte strange, it is simply because both phones are extremely similar, so the same system works on both. His page is [[Samsung Galaxy Grand Prime Plus (samsung-grandpplte)]].
 
Problems:
I was unable to conduct many tests, but the same errors likely occur on the grandpplte as well. You can check the table on the grandpplte page to get an idea of other details.
 
====ERROR: boot partition is too small for given file. Use --skip-size-check to flash anyways.====
If you get this error, try install with the xfce4, and use the <code>flash_rootfs</code> before the <code>flash_kernel</code>. After that you can install other interfaces.
 
====Other errors====
If you encounter any other errors, you can contact me in my [https://matrix.to/#/@schlemuel:matrix.org Matrix] account or browse the internet/make tests to discover. If you discover a solution, please edit this page and add it.

Revision as of 17:52, 4 March 2025

Samsung Galaxy J2 Prime
Photo of a Samsung Galaxy J2 Prime running PostMarketOS with the Phosh interface
Photo of a Samsung Galaxy J2 Prime running PostMarketOS with the Phosh interface
Manufacturer Samsung
Name Galaxy J2 Prime
Codename SM-G532M
Model SM-G532M
Released 2016
Type handset
Hardware
Chipset MediaTek_MT6737T
CPU 4x 1.5 GHz ARM Cortex-A53
GPU ARM Mali-T720 MP2, 600 MHz
Display 540 x 960 PLS
Storage 8/16 GB
Memory 1.5 GB
Architecture aarch64
Software
Original software Android
Original version 6.0.1
postmarketOS
Category testing
Pre-built images no
postmarketOS kernel Running
Features
Flashing
Works
USB Networking
No data
Internal storage
No data
SD card
No data
Battery
Broken
Screen
Works
Touchscreen
Works
Keyboard
No data
Touchpad
No data
Stylus
No data
Multimedia
3D Acceleration
No data
Built-in DVB
No data
Audio
Broken
Camera
Broken
Camera Flash
No data
IR TX
No data
IR RX
No data
Connectivity
WiFi
Broken
Bluetooth
Broken
Ethernet
No data
GPS
Broken
NFC
No data
Modem
Calls
No data
SMS
No data
Mobile data
Broken
Miscellaneous
FDE
No data
USB-A
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
Power Sensor
No data


Contributors

  • Schlemuel

Users owning this device


How to enter flash mode

With the cell phone turned off, hold Power+Home+Volume Down, then a menu will appear. Press Volume Up to proceed to flash mode.

Installation

Using pmbootstrap

Follow Installation/Using pmbootstrap to install pmbootstrap.

Use pmbootstrap init. When asked for the device's vendor/codename, select samsung as the vendor and grandpplte¹ as the codename. For the interface, in my few test the gnome-mobile was the better (the posh get some display bugs), but in doubt chose xfce4 in the first time, only to see if your cell phone boot. After that is more easy to test other configurations.

After that, use pmbootstrap install. When asked for a password, preferably to write one with only numbers.

To flash the image to the device:

  • Enter flashing mode (see #How to enter flash mode)
  • Inside the flashing mode, connect the cell phone in the pc with a good cable
  • Run pmbootstrap flasher --method=heimdall-bootimg flash_kernel --no-install to flash the kernel
  • Run pmbootstrap flasher --method=heimdall-bootimg flash_rootfs to flash the system

For change only the interface: Isn't necessary to flash the kernel again, only the flash_rootfs is necessary after the first time.

Note¹: If you find grandpplte strange, it is simply because both phones are extremely similar, so the same system works on both. His page is Samsung Galaxy Grand Prime Plus (samsung-grandpplte).

Problems: I was unable to conduct many tests, but the same errors likely occur on the grandpplte as well. You can check the table on the grandpplte page to get an idea of other details.

ERROR: boot partition is too small for given file. Use --skip-size-check to flash anyways.

If you get this error, try install with the xfce4, and use the flash_rootfs before the flash_kernel. After that you can install other interfaces.

Other errors

If you encounter any other errors, you can contact me in my Matrix account or browse the internet/make tests to discover. If you discover a solution, please edit this page and add it.