Installing Fedora F19 on Nexus 4
- Put device in developer mode (if not done already), see for example:
sudo fastboot oem unlockfrom fastboot menu
- Install adb plus fastboot and optionally abootimg
- for fedora host,
sudo yum install android-tools abootimg
- Reboot device, hold down volume-down key to get to fastboot screen
adb reboot bootloader
- At fastboot screen,
sudo fastboot boot boot/mako-boot.img
- This will not flash this kernel, so next time you reboot you are back to your original kernel.
- Enable USB tethering so that you can connect to the device over ssh.
- Settings -> More... -> Tethering & portable hotspot -> USB tethering
- Connect to device:
- On device, start chroot:
- NOTE: have a network connection, preferably WiFi.. on first boot, it will try to install X11, gnome-desktop, etc.
- Same filesystem/installer should really work for any snapdragon device with a320 or a220, but you would (probably) need a different kernel / boot.img
- You need to have about 3GiB of free space on /data for the installation to work.. Possibly the enter-chroot.sh script could be tweaked to install less than full @gnome-desktop for smaller installation size.
- You might need to disable data on your phone (if you have a SIM installed while you do this) for network to work under fedora (which is required during the first boot, to install the rest of @gnome-desktop, etc). It is probably a good idea anyways to disable data or remove SIM while you install, just to ensure that it doesn't try to download several hundred megabytes of packages over using your data plan.
- The MSM display driver is, umm, quirky.. to avoid problems with the display getting stuck off or backlight-disabled, make sure the screen is on when you run start-chroot.sh. Also ensuring the display is on when you start-chroot.sh will make sure wifi is up.
- To activate the hot-corner to get the overview mode (ie. what you get with the super (windows) key on a desktop), swipe up and to the left into the top left corner of the display.
Extra stuff I install
This gives you everything you need to rebuild freedreno (libdrm, ddx, mesa) from git: yum install @development-tools automake autoconf xorg-x11-server-devel libX11-devel libXext-devel libtool libXau-devel libXdamage-devel libXfixes-devel libXxf86vm-devel libxcb-devel pixman-devel xorg-x11-proto-devel xorg-x11-util-macros gcc-c++ vim strace git tig htop yum-builddep mesa-libGL
- figure out a way to fix ARGB vs ABGR issues that doesn't mess up colors in android
- mounts don't always get cleaned up properly when exiting
- debug issue w/ gnome-terminal (xterm can be installed as work-around for now)
- touchscreen/input crash in xserver (input event overflow?)
- kernel: git://github.com/freedreno/kernel-msm.git
- branch: mako-kernel
- use mako_rob_defconfig