Jump to content

Samsung Galaxy J4 (samsung-j4lte)

From postmarketOS Wiki
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