Jump to content

Samsung Galaxy J4 (samsung-j4lte): Difference between revisions

From postmarketOS Wiki
No edit summary
Halamix2 (talk | contribs)
mNo edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 21: Line 21:
| whet_dhry = <!-- see Unixbench page on wiki -->
| whet_dhry = <!-- see Unixbench page on wiki -->
<!-- Features -->
<!-- Features -->
| packaged = no
<!-- 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 = Y
| status_usbnet = Y
Line 100: Line 99:
To enable Wi-Fi, these proprietary blobs are required to be loaded:
To enable Wi-Fi, these proprietary blobs are required to be loaded:


<source>
<pre>
vendor/etc/wifi/mx
vendor/etc/wifi/mx
vendor/etc/wifi/mx140.bin
vendor/etc/wifi/mx140.bin
vendor/etc/wifi/mx140_wlan.hcf
vendor/etc/wifi/mx140_wlan.hcf
</source>
</pre>


These files are pulled and packaged already in <code>firmware-samsung-j4lte</code> pmaports package.
These files are pulled and packaged already in <code>firmware-samsung-j4lte</code> pmaports package.
Line 113: Line 112:
The kernel panics with <code>null pointer dereference</code> if running [https://wiki.postmarketos.org/wiki/Category:Interface#Other_interfaces framebuffer-based or text interfaces] with <code>CONFIG_FRAMEBUFFER_CONSOLE</code>, or if you want to display kernel console to the screen. So, <code>none</code> or <code>console</code> environment doesn't show anything.
The kernel panics with <code>null pointer dereference</code> if running [https://wiki.postmarketos.org/wiki/Category:Interface#Other_interfaces framebuffer-based or text interfaces] with <code>CONFIG_FRAMEBUFFER_CONSOLE</code>, or if you want to display kernel console to the screen. So, <code>none</code> or <code>console</code> environment doesn't show anything.


{{note|Newer DECON drivers as seen in newer devices e.g. [[Samsung Galaxy A51 (samsung-a51)]] also have similar issue, and can be fixed by keeping <code>fb0</code> enabled. Could it be the same reason for our device?}}
{{note|Newer DECON drivers as seen in newer devices e.g. [[Samsung Galaxy A51 (samsung-a51)]] also have similar issue, and can be fixed by [https://github.com/map220v/kernel_samsung_a51-linux/commit/974f3e70d07021a9d7b42f08720b0b425003745f keeping <code>fb0</code> enabled]. Could it be the same reason for our device?}}


== See also ==
== See also ==
<!--
* {{MR|5936|pmaports}} Initial merge request
Link to related GitLab issues or merge requests like the following (replace CHANGEME with the ID, e.g. 1234):
* {{Device package|samsung-j4lte}}
* {{MR|CHANGEME|pmaports}} Initial merge request
* {{Kernel package|samsung-j4lte}}
* {{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.
* {{Device package|DEVICE_CODENAME}}
* {{Kernel package|DEVICE_CODENAME}}
-->

Latest revision as of 11:32, 1 February 2025

Samsung Galaxy J4
Samsung Galaxy J4, on postmarketOS boot splash screen
Samsung Galaxy J4, on postmarketOS boot splash screen
Manufacturer Samsung
Name Galaxy J4
Codename samsung-j4lte
Model SM-J400
Released 2018
Type handset
Hardware
Chipset Samsung Exynos 7570 Quad
CPU 4x 1.4 GHz ARM Cortex A53
GPU Mali T720
Display 720x1280 IPS
Storage 32 GB
Memory 2 GB
Architecture aarch64
Software
Original software Android
Original version 10
postmarketOS
Category testing
Pre-built images no
postmarketOS kernel 3.18.140
Features
Flashing
Partial
USB Networking
Works
Internal storage
Works
SD card
No data
Battery
Works
Screen
Works
Touchscreen
Works
Multimedia
3D Acceleration
No data
Audio
Broken
Camera
Broken
Camera Flash
No data
Connectivity
WiFi
Works
Bluetooth
No data
Ethernet
No data
GPS
No data
Modem
Calls
No data
SMS
No data
Mobile data
No data
Miscellaneous
FDE
No data
USB OTG
No data
Sensors
Accelerometer
No data
Magnetometer
No data
Proximity
No data
Hall Effect
No data
Haptics
No data
Barometer
No data
Power Sensor
No data


Contributors

  • manoedinata

Users owning this device


How to enter flash mode

Power + Volume Down + Home

In some cases, using power button to boot into Download Mode doesn't work. Instead, while pressing Volume Down + Home, connect the device to PC via USB. Don't release the buttons until you're in the Download Mode.

Installation

Use pmbootstrap to build your own installation image. The device configuration will also build firmware package, which contains required proprietary blobs for Wi-Fi.

Heimdall installation doesn't work. Use Installation_from_recovery_mode instead.

Known Working

  • Touchscreen
  • Screen & display
  • Framebuffer (additionally with msm-fb-refresher to refresh the screen)
  • Charging & battery status
  • Wi-Fi (partially, with firmware package)

Notes

Wi-Fi

To enable Wi-Fi, these proprietary blobs are required to be loaded:

vendor/etc/wifi/mx
vendor/etc/wifi/mx140.bin
vendor/etc/wifi/mx140_wlan.hcf

These files are pulled and packaged already in firmware-samsung-j4lte pmaports package.

Framebuffer

Some patches are required for framebuffer to fix some issues, e.g. swapped color.

The kernel panics with null pointer dereference if running framebuffer-based or text interfaces with CONFIG_FRAMEBUFFER_CONSOLE, or if you want to display kernel console to the screen. So, none or console environment doesn't show anything.

Note Newer DECON drivers as seen in newer devices e.g. Samsung Galaxy A51 (samsung-a51) also have similar issue, and can be fixed by keeping fb0 enabled. Could it be the same reason for our device?

See also