Difference between revisions of "Motorola Razr (2011)"

From Maemo Leste Wiki
Jump to navigationJump to search
 
(2 intermediate revisions by one other user not shown)
Line 5: Line 5:
|dimensions=130x68.9x7.1mm
|dimensions=130x68.9x7.1mm
|release_date=11-11-11
|release_date=11-11-11
|soc=TI OMAP4430
|soc=TI OMAP4430 <br>Cortex-A9 <br>Armv7‑A
|dram=1024MB DDR2
|dram=1024MB DDR2
|power=
|power=
Line 17: Line 17:
|sensors=
|sensors=
|other=
|other=
|category=Supported
|category=unsupported
|sw_kernel=6.1
|sw_kernel=6.1
|sw_serial=Yes, [[#Serial Cable|special cable]]
|sw_serial=Yes, [[#Serial Cable|special cable]]

Latest revision as of 11:09, 20 October 2023

Motorola Razr (2011)
XT910Lockscreen.jpg
Manufacturer Motorola
Codename Spyder XT910, XT912
Dimensions 130x68.9x7.1mm
Release Date 11-11-11
Category unsupported
Specifications
SoC TI OMAP4430
Cortex-A9
Armv7‑A
DRAM 1024MB DDR2
Hardware Features
LCD 960x540 4.3"
Video PowerVR SGX540
Storage 16GB flash
Software Features
Kernel 6.1
Serial Yes, special cable
Charging Yes
USB Slave Yes
USB Host Yes
Touchscreen Yes
Keyboard Yes
Screen Yes
HDMI-out Yes
3D acceleration Yes [1] (closed)
Vibration motor Unkown
Audio Unkown
Phone calls Unkown
SMS Unkown
Wifi Yes
2G/3G data Unkown
Bluetooth Yes, see notes
FM transmitter No
Accelerometer No
Compass No
Gryo No
Proximity Sensor Yes
Ambient Light Sensor No
GPS Unkown
A-GPS No
Front Camera No
Back Camera(s) No
Idle Power Consumption Unkown

Installation

Hardware requirements:

  • A Razr or Droid Razr or Droid Razr MAXX with fully charged battery
  • MicroUSB cable
  • MicroSD card

Software requirements:

  • Host Linux or Windows system
  • Android Tools: fastboot
  • get allow-mbmloader-flashing-mbm.bin for your device (xt910 or xt912) from an android update zip
  • Flashing tools:
    • XZ Utils and coreutils for Linux
    • Etcher[2] for Windows

Download from https://github.com/tmlind/droid4-kexecboot.git

  1. utags-xt910-16-mmcblk1p8-boots-mmcblk1p13-kexecboot.bin
  2. droid4-kexecboot.img

Installation:

  1. Create a working directory with above mentioned files in it
  2. Power off the Razr and connect it to the host machine with MicroUSB cable
  3. Start the device in fastboot mode. For this press power button and bottom volume key simultaneously and release them after a second.

Setting up kexecboot

Now, assuming you are in the working directory, install kexecboot:

sudo fastboot flash mbm allow-mbmloader-flashing-mbm.bin
sudo fastboot reboot-bootloader
sudo fastboot flash bpsw droid4-kexecboot.img
sudo fastboot flash utags utags-xt910-16-mmcblk1p8-boots-mmcblk1p13-kexecboot.bin
sudo fastboot reboot

The device should reboot and show kexecboot menu for a few seconds before it boots to Android.

Install Maemo Leste to the sdcard

Now, flash the Maemo Leste image to your sdcard:

On Linux:

xzcat maemo-leste-1.0-armhf-razr-$DATE.img.xz | sudo dd status=progress bs=1M of=/dev/MICROSDCARD-DEVICE
sync

On Windows: Use Etcher

Wait for sync to complete and insert MicroSD card into the Razr. Reboot the device and select Maemo Leste from the kexecboot menu.

You should now see Maemo Leste booting up, and it will show you hildon-desktop after a minute.

Updating

Normally you can just apt update && apt dist-upgrade to update to the latest version. If for some reason this fails:

  • Poweroff device, grab the SD card
  • Backup any important files
  • Grab the latest image from https://phoenix.maemo.org/view/Images/
  • Write it as before : xzcat maemo-leste-1.0-armhf-droid4-20190227.img.xz | sudo dd status=progress bs=1M of=/dev/MICROSDCARD-DEVICE

Notes

The battery in Razr is not easily removable. If you got the device stuck, use this combo: power button + bottom volume key. You should hold them for about 7 seconds. Razr will then reboot.

Serial Cable

As explained at http://muru.com/linux/d4 , the Droid 4 exposes a serial console on the USB port. You can construct the required cable easily by following the instructions there. If you have old Nokia CA-42 or DKU-5 cables, then you can use them with the Razr, using instructions at https://jethomson.wordpress.com/2010/02/21/diy-usb-to-serial-cable-for-3usd/

Bluetooth

Needs firmware - install latest firmware-ti-connectivity - See also https://github.com/maemo-leste/bugtracker/issues/290. Due to interference with WiFi, load driver (hci_uart) manually, AFTER wifi module loaded

Using a bluetooth headset:

sudo apt install pulseaudio-module-bluetooth blueman bluez
sudo modprobe hci_uart
pactl load-module module-bluetooth-discover
blueman-manager

Pair & trust your device in blueman, connect audiosink. You can close blueman now.

Additional Tips

Using a battery without temperature sensor

Modprobe the pmic driver as follows:

cpcap-battery ignore_temperature_probe=1

More info: https://github.com/xsetiadi/droid4-kexecboot/blob/master/LOGO

logos can be flashed via fastboot flash logo.bin logo.bin

HDMI

Move output to external 1080p monitor. Disabling DSI-1 output gets xorg pointer displayed on HDMI, for use with a mouse or barrier.

xrandr --output HDMI-1 --mode 1920x1080 --output DSI-1 --off

Return to internal touchscreen display.

xrandr --output DSI-1 --auto --rotate right --output HDMI-1 --off

Using a configured Leste sdcard in a different Razr

A configured Razr Leste installation will have a unique wlan firmware calibration. The wifi calibration script requires a system set to stock settings to calibrate-from. It cannot just be re-run on an already calibrated system.

To recalibrate the wifi firmware on a different Razr, you must reset the FEM parameters to stock settings on the new device, then recalibrate. If you can get the device online (usb networking or moving close to the WLAN AP) this can be done with.

apt reinstall firmware-ti-connectivity 

If not, you can download the firmware-ti-connectivity_[version]_all.deb on another Leste device

apt download firmware-ti-connectivity

Then copy the .deb to your new device and install that (as root) with

dpkg -i firmware-ti-connectivity_[version]_all.deb 

Then (as root) re-calibrate the wifi chip by running

/usr/bin/maserati-calibrate

Then reboot.