Motorola Edge 30 (motorola-dubai)
|
fastfetch #shotonnura | |
| Manufacturer | Motorola |
|---|---|
| Name | Edge 30 |
| Codename | motorola-dubai |
| Model | XT2203-1 |
| Released | 2022 |
| Type | handset |
| Hardware | |
| Chipset | Qualcomm Snapdragon 778G+ (SM7325-AE) |
| Display | 1080x2400 AMOLED 144Hz 6.55" |
| Storage | 128/256 GB |
| Memory | 8 GB |
| Architecture | aarch64 |
| Software | |
Original software The software and version the device was shipped with. |
Android 12 |
Extended version The most recent supported version from the manufacturer. |
Android 14 |
| FOSS bootloader | partial |
| Nura | |
| Category | testing |
Pre-built images Whether pre-built images are available from the Nura Installation page. |
no |
Mainline Instead of a Linux kernel fork, it is possible to run (Close to) Mainline. |
yes |
Nura kernel The kernel version that runs on the device's port. |
7.2.9-3 |
Unixbench score Unixbench Whetstone/Dhrystone score. See Unixbench. |
9626.6 |
| Device package |
|
| Kernel package |
|
| Firmware package |
|
Flashing Whether it is possible to flash the device with pmbootstrap flasher. |
Partial
|
|---|---|
USB Networking After connecting the device with USB to your PC, you can connect to it via telnet (initramfs) or SSH (booted system). |
Works
|
Internal storage eMMC, SD cards, UFS... |
Works
|
Battery Whether charging and battery level reporting work. |
Works
|
Screen Whether the display works; ideally with sleep mode and brightness control. |
Works
|
Touchscreen |
Works
|
| Multimedia | |
3D Acceleration |
Works
|
Audio Audio playback, microphone, headset and buttons. |
Works
|
Camera |
Partial
|
Camera Flash |
Works
|
| Connectivity | |
Wi-Fi |
Works
|
Bluetooth |
Works
|
GPS |
Works
|
NFC Near Field Communication |
Broken
|
| Modem | |
Calls |
Works
|
SMS |
Works
|
Mobile data |
Works
|
| Miscellaneous | |
FDE Full disk encryption and unlocking with unl0kr. |
Works
|
USB OTG USB On-The-Go or USB-C Role switching. |
Works
|
| Sensors | |
Accelerometer Handles automatic screen rotation in many interfaces. |
Works
|
Magnetometer Sensor to measure the Earth's magnetism |
Works
|
Ambient Light Measures the light level; used for automatic screen dimming in many interfaces. |
Works
|
Proximity |
Works
|
Haptics |
Broken
|
Primary Bootloader Whether it is possible to replace stock bootloader with U-Boot. |
Works
|
|---|---|
Secondary Bootloader Whether it is possible to chainload U-Boot from stock bootloader. |
Works
|
Mainline Whether latest upstream versions of U-Boot are not broken and it is possible to use them. |
Broken
|
Internal Storage Whether it is possible to boot from internal storage (e.g. eMMC or UFS). |
Works
|
USB Host Whether it is possible to boot from a USB storage or connect a keyboard. |
Untested
|
USB Peripheral Whether it is possible to use device as a peripheral in U-Boot, e.g. for fastboot mode. |
Works
|
Display |
Works
|
Buttons Whether it is possible to navigate in boot menu or grub with volume and power buttons. |
Works
|
| This device is based on the Snapdragon 778G+. See the SoC page for common tips, guides and troubleshooting steps |
Description
Affordable price. Modern hardware. Great Unixbench score. Mainline. Ready for daily usage!
Installation
Preparation on host system
Install android-tools (for fastboot)
Install pmbootstrap or update it to the latest version
Unlock the bootloader
In the Developer Options of your Android installation, you need to enable "OEM unlocking". To unlock your bootloader, you need to have a Motorola account. The reason is, the motorola website needs to generate your OEM unlock key based on the fastboot device ID you need to enter. To do that, follow the instructions on the Motorola Support page.
Follow these steps:
- Execute:
$ fastboot oem get_unlock_data
- Merge this result into one large string removing "(bootloader)" and whitespace
- Paste this into the form field on the above website.
- Retrieve your OEM unlock key from the email the Motorola website has sent you. That is the input in the next step
- Execute:
$ fastboot oem unlock YOUR_OEM_UNLOCK_KEY
pmbootstrap init
Check panel version:
$ fastboot getvar primary-display 2>&1 | head -1 | cut -d ' ' -f 2 | cut -d '_' -f 1
the possible results are "csot" or "tianma"
$ pmbootstrap init
- choose Channel: "edge" to have working phone calls
- choose Vendor: "motorola"
- choose Device codename: "dubai"
- choose Kernel: "csot" or "tianma" based on the panel type that you have discovered
- choose Provider: "pipewire" to have working phone calls
- choose Service manager: "systemd"
Prepare the device via fastboot
- Turn off the device.
- Press and hold +.
- Release the buttons when the fastboot menu shows.
Disable AVB:
$ pmbootstrap flasher flash_vbmeta
Erase Android-specific DTB Overlays:
$ pmbootstrap flasher flash_dtbo
Installing U-Boot
Based on the panel type already checked on pmbootstrap init step download:
- csot: u-boot-motorola-dubai-csot.img
$ fastboot flash boot u-boot-motorola-dubai-csot.img
- tianma: uboot-dubai-tianma.boot.img
$ fastboot flash boot uboot-dubai-tianma.boot.img
$ fastboot reboot
Flash Rootfs via U-Boot
Press the button when the bootloader warning appears and release it when the U-Boot menu appears
Make sure the USB cable is connected and then on the U-Boot menu, selecting "Enable USB mass storage" with volume buttons and confirming with Power Button
After that a new Mass Storage device should appear in the host PC
Flash Rootfs:
$ pmbootstrap install --sdcard /dev/sdX
where /dev/sdX is the path that can be found with lsblk
Eject the storage from the system and U-Boot will quit UMS mode and return to the menu:
$ sudo eject /dev/sdX
On U-Boot menu confirming with Power Button on "Boot"
Known issues
Audio
Basic audio routing for calls works out of the box, however additional call functionality, e.g. microphone muting, switching to speakerphone, Bluetooth voice calls, is not currently working.
High idle power consumption
More than half of the idle power consumption is caused by the camera focus motors always on. The solution has been merged in the near-to-mainline kernel and will be available in the next release
Haptic
The haptic driver is ready and in the process of being integrated in the near-to-mainline kernel and in feedbackd
Front camera
The front (selfie) camera driver is ready and in the process of being integrated in the near-to-mainline kernel
Table of hardware
| Component | Model | Status | Notes |
|---|---|---|---|
| SoC | Qualcomm Snapdragon 778G+ (SM7325-AE) | Y | Well supported upstream |
| Main PMIC | Qualcomm PM7325 | Y | |
| Storage | Micron MT128GAXAT2U3165 | Y | UFS 3.1, works in Linux but not in U-Boot |
| Display | CSOT or Tianma with Novatek NT37701 controller | Y | DSC, command mode, 48/60/90/120/144Hz modes, built-in brightness. Driver is WIP. |
| Touch controller | Goodix GT9916 | Y | SPI interface |
| Wi-Fi/BT | Qualcomm WCN6750 | Y | |
| USB Type-C | Qualcomm PM7250B | Y | Dual role, USB2 only (via pmic-glink) |
| Haptics | Awinic AW86224 | N | Datasheet exists, basically same family as aw86927 (which has an upstream driver) minus some registers |
| Camera flash | Qualcomm PM7350C | Y | Two of them, even! Both white, no amber. |
| Battery | Qualcomm PM.. one of them | Y | ADSP battmgr, it just works, profile/calibration already loaded |
| Speaker amp | Awinic AW88261 | Y | Both top and bottom speakers use these amps. On the senary MI2S. |
| Headset/Mic amp | Qualcomm WCD9375 | P | Onboard mics work (top and bottom), USB-C analog pending (need driver changes) |
| USB-C analog audio | OnSemi FSA4480 | P | Need to route audio to it from the WCD |
| Camera PMIC | Will Semicon WL2864C | Y | Driver copied from downstream, will clean up and submit |
| Camera | OmniVision OV50A | N | Main. Needs a driver, some cursed reference available. Driver in progress but it is a C-PHY one, so upstreaming would depend on support for that landing first |
| Samsung S5KJN1 + AK7375 VCM | Y | Ultrawide. Driver available upstream already, yay! | |
| GalaxyCore GC02M1B | Y | "Depth", just monochrome but not IR/UV sensitive. WIP but already working driver written by Lona. | |
| OmniVision OV32B40 | N | Front. The driver is ready and is in the process of being integrated in the near-to-mainline kernel | |
| Accelerometer/Gyroscope (IMU) | InvenSense ICM-42602 | Y | Sensor hub support works |
| Magnetometer | MEMSIC MMC5603NJ | Y | |
| Light/Proximity Sensor (ALS/PS) | Sensortek STK33562 | Y | |
| Cap.Touch/SAR Sensor | Semtech SX9375IULTRT | N | |
| Fingerprint sensor | Egis Technology ET528 | N | |
| NFC | STMicroelectronics ST21NFCJ | N | Driver exists upstream but no one used it ever?? TODO |
Hardware Debugging/Recovery
EDL
You can follow this guide to unbrick the phone via EDL using the Motorola Unbrick Tool on Windows.
The phone can enter EDL mode automatically if it gets bricked. In this case you should see a USB device with PID 9008.
If the phone were not to enter EDL mode, your last option could be disassembling and using the EDL test point. Reach out for help in the #sc7280-mainline:postmarketos.org Matrix channel for advice.
From this XDA thread, we have a confirmed tested EDL point (below an RF shield):

Installation (alternative methods)
Installation methods without U-Boot
| The U-Boot UFS issue has been solved, it was just the power not being on after all (but with an extra bug in regulators). We also need the correct LUN to be selected then. Hopefully soon, all of this will be "flash U-Boot, then flash userdata via U-Boot". |
To prepare the current slot for running mainline, we need to erase Android-specific DTB Overlays and disable AVB.
For the latter, it should be enough to:
$ pmbootstrap flasher flash_vbmeta
Optionally (?) instead, you can make an image that avoids the rollback warning when flashing:
$ avbtool make_vbmeta_image --flags 2 --padding_size 8192 --rollback_index 32 --output blank.vbmeta.img
$ fastboot flash vbmeta blank.vbmeta.img
For the former, you can't just fastboot erase dtbo because of Motorola's creative decisions :) Instead, create a blank file and flash it:
$ dd if=/dev/zero of=blank.dtbo.img bs=25165824 count=1
$ fastboot flash dtbo blank.dtbo.img
With these preparations, we can now proceed with installing Nura.
Flash the kernel directly into the boot partition:
$ pmbootstrap flasher flash_kernel
To flash the rootfs, we have to get slightly creative, because you can't flash to the userdata partition. There are two ways you can flash the rootfs:
Fastbootd Method
If you have LineageOS recovery present in any of the slots, you can also boot that and flash the rootfs from the LineageOS Fastbootd screen. First, switch to the slot where LineageOS is installed.
$ fastboot --set-active=b #or a
Start LineageOS Recovery with:
$ fastboot reboot recovery
Click on Advanced and then Enter fastboot. With fastbootd logo visible run:
$ pmbootstrap flasher flash_rootfs
Once the rootfs is flashed, don't forget to switch back to the slot where Nura is installed.
$ fastboot --set-active=a # or b
Now reboot the phone and enjoy!
Netcat Method
Since we have the boot.img running, we can just use the debug shell to flash the rootfs. Connect the USB cable, hold when Linux is starting to boot (i.e. on the "press to pause" screen) or wait for the root mount to fail.
In one terminal, connect to the debug shell and set up netcat on the phone to receive the image:
$ telnet 172.16.42.1
$ nc -l -p 6969 </dev/null >/dev/disk/by-partlabel/userdata
In another terminal (i.e. from your local machine) send the image (in this example, using pv for a progress bar):
$ pv -p - <~/.local/var/pmbootstrap/chroot_native/home/pmos/rootfs/motorola-dubai.img | nc 172.16.42.1 6969
Contributors
Users owning this device
- Account1009 (Notes: Nura)
- Coolirisme (Notes: Tianma Panel)
- Fizzo (Notes: CSOT panel)
- Hitsuthar
- Hk (Notes: 1x, for HiL testing)
- Lona (Notes: One with CSOT panel)
- Mbohun (Notes: CSOT panel)
- ValPackett (Notes: (Tianma panel) Daily driver and dev platform at the same time)