Samsung Galaxy A5 (2017) (samsung-a5y17lte)
| This device has been archived. This means that it no longer appears in pmbootstrap and is likely broken. It can still be selected in pmbootstrap init by typing in the vendor and codename, but you will have to build the kernel package manually. |
|
Samsung Galaxy A5 | |
| Manufacturer | Samsung |
|---|---|
| Name | Galaxy A5 (2017) |
| Codename | samsung-a5y17lte |
| Released | 2017 |
| Type | handset |
| Hardware | |
| Chipset | Samsung Exynos 7880 |
| CPU | 8x 1.9 GHz Cortex-A53 |
| GPU | Mali-T830 MP3 |
| Display | 1080x1920 Super AMOLED |
| Storage | 32 GB |
| Memory | 3 GB |
| Architecture | aarch64 |
| Software | |
Original software The software and version the device was shipped with. |
Android (TouchWiz) 6.0.1 |
Extended version The most recent supported version from the manufacturer. |
Android (TouchWiz) 8.0 |
| Nura | |
| Category | archived |
Mainline Instead of a Linux kernel fork, it is possible to run (Close to) Mainline. |
no |
Nura kernel The kernel version that runs on the device's port. |
3.18.14 |
Unixbench score Unixbench Whetstone/Dhrystone score. See Unixbench. |
1691.5 |
| Device package |
|
| Kernel package |
|
Flashing Whether it is possible to flash the device with pmbootstrap flasher. |
Broken
|
|---|---|
USB Networking After connecting the device with USB to your PC, you can connect to it via telnet (initramfs) or SSH (booted system). |
Works
|
Screen Whether the display works; ideally with sleep mode and brightness control. |
Works
|
Touchscreen |
Works
|
| Multimedia | |
3D Acceleration |
Untested
|
Audio Audio playback, microphone, headset and buttons. |
Untested
|
Camera |
Untested
|
| Connectivity | |
Wi-Fi |
Works
|
Bluetooth |
Untested
|
GPS |
Untested
|
| Modem | |
Calls |
Untested
|
SMS |
Untested
|
Mobile data |
Untested
|
| Miscellaneous | |
FDE Full disk encryption and unlocking with unl0kr. |
Untested
|
USB OTG USB On-The-Go or USB-C Role switching. |
Works
|
| Sensors | |
Accelerometer Handles automatic screen rotation in many interfaces. |
Untested
|
Contributors
- dsankouski
Maintainer(s)
Users owning this device
- 37nx (Notes: one dead one broken screen)
- Ardaninho (Notes: LineageOS 18.1)
- BaseplateLT
- Bastindo (Notes: very good condition, running Lineage 20)
- Danfigasystems (Notes: 16GB model)
- Dsankouski
- Ellychnium
- Keith. (Notes: Stock)
- KernelKnut (Notes: unused, available for testing)
- KQuote03
- LegoLivesMatter (Notes: Dead screen, possibly the display cable just got disconnected?)
- Linuxfemboy (Notes: cracked back, scratched badly, battery died)
- Linuxfemboy (Notes: perfect condition lucky ewaste pull)
- Manty (Notes: Android development)
- Nireves
- Smallsolar
Special boot modes
- Download/Odin Mode: With the device powered off, hold , and while connecting the device to a computer with a USB cable. A warning screen will appear: click to enter Download Mode and run Heimdall commands.
Installation
It is recommended to sideload an Android recovery zip through TWRP for the easiest process, since Heimdall freaks out about the subpartitions in SYSTEM and won't move past ~7%.
| The Heimdall error should be due to sparse Android images. If so, change the deviceinfo file accordingly: recovery installation would no longer be needed and the device can be flashed directly through Heimdall. |
You can use pmbootstrap flasher flash_kernel and then use netcat or similar to flash SYSTEM, but this is a longer and more redundant method.
$ pmbootstrap install --android-recovery-zip
$ pmbootstrap flasher --method=adb sideload
Notes
USB
The device is equipped with a USB-C receptacle. No UART JIG mode cable schematic available as of 4 January 2020. However, it is possible to chainload U-Boot to get UART on USB. See the U-Boot port readme for instructions.
Available MUIC info:
- The receptacle is managed by the s2mu004 kernel module, which is able to manage non-Type-C receptacles (see
CONFIG_MUIC_S2MU004_NON_USB_C_TYPEoption) - Receptacle has a non-standard pinout: the B12 (considering, A row facing top, B row facing bottom side of the phone) pin is not connected to the ground.
- The device can detect water in the USB receptacle, by measuring the resistance between the B12 pin and ground.
- The device can detect plug attach, with ALL pins unconnected, including GND and VBUS pins. How?
- Attaching a 619K resistor to B12 pin results in
ADC_JIG_UART_ONvalue in ADC register, during water detection sequence. - Entering UART mode by attaching resistors should be possible in non-Type-C mode. (file: s2mu004-muic.c, lines 2835,2797)
- Device has no USB-C debug accessory mode (tried both with rd/rd and rp/rp resistors)
- UART mode detection is most likely implemented in MUIC firmware, if it exists, or chip logic.
Open questions:
- How does the device detect plug attach, when ALL plug pins are unconnected.
- How does the device detect UART debug cable attach?
MUIC driver sysfs attributes are in the /sys/devices/virtual/sec/switch directory.
WLAN
The Wi-Fi module gets initialized after 180 seconds. This is due to missing firmware files, and a 60-second timeout.
To connect, use wpa_supplicant:
Create wpa supplicant config
/etc/wpa_supplicant/wpa_supplicant.conf ctrl_interface=/run/wpa_supplicant update_config=1
Add WLAN access point authentication
wpa_passphrase <access point> <password> >> /etc/wpa_supplicant/wpa_supplicant.conf
Launch wpa supplicant
sudo wpa_supplicant -B -i wlan0 -c /etc/wpa_supplicant/wpa_supplicant.conf sudo dhclient wlan0
UART cable
| WARNING: The author is not responsible for any damage to your devices. Signal level is 1.8V. You may fry your board, using standard 3.3V - 5V UART! |
It is possible to connect to the UART port(/dev/ttySAC2) on the mainboard. It is located on pins 1(RX), 2(TX) of the test port, and used by bootloader to log loading process.
Bill of materials
- Adhesive tape
- Precise soldering equipment
- USB - UART converter (you also need a level shifter, if converter does not support 1.8V signals. I used schematic on two transistors)
- Breadboard
- Wires
- Thermal glue
- Assembly photos
-
Wires, soldered to UART port
-
a5y17lte, connected to USB - UART converter via level shifter
Enabling console output
Downstream kernel
- Build kernel with options:
- CONFIG_CMDLINE="earlycon=exynos,0x13820000,115200n8 console=ttySAC2,115200"
- CONFIG_CMDLINE_EXTEND=y
- Optional (enable login console on ttySAC2)[1]:
UART USB-debug cable schematic
Currently there's no automatic way to switch MUIC on debug uart. It may be done with u-boot custom port.
Phone--------------------------------------PC USB Type-C---------------------------------UART adapter A6 (D+, Rx)--------------------------------Tx A7 (D-, Tx)--------------------------------Rx A1 and/or (B1) ----------------------------GND A4 and/or (A9, B4, B9)---------------------5V charging
Main board
-
Test port pin numbering
Pin 1 is RX, pin 2 is TX.
Mainlining
Exynos calibration table driver (ect_parser.c)
Exynos calibration table driver - simple driver, that reads and parses predefined cpu address range. It has voltage, cpu, gpu frequency tables, and more.
Legacy driver uses __raw_read macro to access data. Calibration table resides in volatile cpu address region (probably loaded there by bootloader into RAM?). One can write to ect cpu address region
U-Boot
Has support in main tree. Refer to the U-Boot documentation.
Hardware
| Component | Model | Notes |
|---|---|---|
| Flash | Samsung BJTD4R | 32GB |
| Charging | Samsung s2mu004 | |
| Touchscreen | Zinitix BT532 | |
| Touchkeys | Abov FT1804 | |
| Gyroscope/Accelerometer | STMicroelectronics K6DS3TR | |
| Light/Proximity sensor | ams TMD3725 | |
| Magnetometer | AKM (Asahi Kasei Microdevices) AK09916C | |
| Barometer | STMicroelectronics LPS25H | |
| FM Radio | Silicon Labs si47xx | |
| Wi-Fi/Bluetooth | Qualcomm Atheros ar6k | Exact model unknown, could be one from this table |
| Fingerprint | EgisTec ET5XX | Connected via SPI |
| Rear camera | Samsung S5K3P8 | Phone reports "s5k3p8sx" as front camera |
| Lens actuator | (Samsung?) AK7372 |
See also
- U-Boot port on GitHub