Jump to content

Motorola Moto G 2013 (motorola-falcon): Difference between revisions

From postmarketOS Wiki
StandaSK (talk | contribs)
m Links: Rework Links section to be more clear, msm8226-mainline now has falcon DTS
StandaSK (talk | contribs)
Links: Add link to pmaports MR adding mainline support
Line 179: Line 179:
* {{Device package|motorola-falcon}}
* {{Device package|motorola-falcon}}
* {{Kernel package|motorola-falcon}}
* {{Kernel package|motorola-falcon}}
* {{MR|5087|pmaports}} Merge request adding initial near-mainline support

Revision as of 14:17, 1 May 2024

Motorola Moto G (1st gen)
Moto G 2013 running Weston
Moto G 2013 running Weston
Manufacturer Motorola
Name Moto G (1st gen)
Codename motorola-falcon
Released 2013
Type handset
Hardware
Chipset Qualcomm Snapdragon 400 (MSM8226)
CPU Quad-core 1.2 GHz Cortex-A7
GPU Adreno 305
Display 720x1280 IPS LCD
Storage 8 GB
Memory 1 GB
Architecture armv7
Software
Original software Android
Original version 4.3
Extended version 5.1 (Linux 3.4.42)
postmarketOS
Category testing
Pre-built images no
postmarketOS kernel 3.4.113
Unixbench Whet/Dhry score 877.9
Features
Flashing
Works
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
Works
Bluetooth
Broken
GPS
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

Users owning this device

  • AAT596 (Notes: LineageOS 17.1)
  • Alexdmrk (Notes: Tested SXMO-DE-DWM: runs normally. eMMC storage banks died after third flashinf pmOS)
  • Dzeimis (Notes: 2 devices. Unlocked on 2024-04-05. One with pmOS built from source, another with stock android 5.1)
  • Egbert (Notes: currently used as remote control)
  • Little-miss-synth (Notes: bootloader unlocked, running a stripped down instance of lineageOS and used as a digital audio player)
  • Living
  • Marshift
  • Maxnet (Notes: cannot unlock bootloader anymore in the official way)
  • Mjack3k (Notes: PMOS with SXMO UI.)
  • Roboe (Notes: (lended) hwrev: 0x83C0, cpu: MSM8226 CS, emmc: 16GB; unreliable eMMC; running debloated Lineage OS 14.1 as a portable radio FM)
  • StandaSK (Notes: Running mainline)
  • UltrasonicMadness (Notes: Screen doesn't work and the battery lid is missing)


Untested

  • Interfaces other than weston (plasma, xfce4 are not working yet)
  • Using full disk encryption

Installing

There appears to be no special process to flashing the device, as long as the bootloader is unlocked first.

Note Motorola stopped providing bootloader unlock codes for some of their devices. The unlock page may or may not work for you. If it doesn't - there is no official, easy or free way to unlock the bootloader completely.

Once you're in fastboot by holding down Volume Down+Power, flashing it is as follows:

$ pmbootstrap init
$ pmbootstrap install
$ pmbootstrap flasher flash_rootfs
$ pmbootstrap flasher boot

You can also use $ pmbootstrap flasher flash_kernel to flash the kernel, however this breaks the charging splash screen

Installation from recovery zip without pmbootstrap, copy to SD Card works, in this case using usb-otg; same caveat regarding charging.

Useful stuff

Similar to the Moto G 2014, the LED can be controlled:

$ echo 255 > /sys/devices/leds-qpnp-rgb-e1dba000/leds/white/brightness

RGB LED documentation

Hardware Status

$ sudo hwtest gives:

Category Model Path Status Value
framebuffer mdssfb_80000 /sys/class/graphics/fb0 Working U:720x1280p-54
input gpio-keys /dev/input/event5 Working
input qpnp_pon /dev/input/event4 Working
input light-prox /dev/input/event3 Working
input synaptics_dsx_i2c /dev/input/event2 Working
input accelerometer /dev/input/event1 Working
input compass /dev/input/event0 Working

Note: XT1031 shows as MSM8x26 in /proc/cpuinfo:

Hardware	    : Qualcomm MSM8626
Revision	    : 83c0
Device		    : falcon
Radio		    : 3
MSM Hardware	: MSM8626 CS

Battery

As mentioned in #Installation charging-sdl is not supported, but charging works during usb networking. Battery/charging properties are exposed at /sys/class/power_supply/battery/.

Charger versus power key boot shows these differences in /proc/cmdline:

androidboot.mode=mot-charger           | androidboot.mode=normal
androidboot.powerup_reason=0x00000100  | androidboot.powerup_reason=0x00000080
bootreason=charger                     | bootreason=power_key_press

USB-OTG

Based on dmesg content (only), usb-otg connect/disconnect is recognized.

TODO

UART

On phone schematics, there is a block called UART OVER HEADSET, that includes the chips u4950, u4951 and u4952, but they are very likely missing in production boards (DNI means Do Not Include?), as found on a picture of the board available on the web. Therefore the remaining option is try to get serial output from MSM_UART_TX/RX on JTAG:MINI, which was reported elsewhere on this wiki for Motorola devices.

lk2nd

lk2nd supports falcon starting with version 0.15.0 from September 2023. Follow the installation instructions in the git repo.

Links