I had some issues getting Cyanogenmod running/booting on my Nexus 5X. After reading through a bunch of forum posts and some trial and error, I got it running.
Here are the steps:
- Download a factory image (version didn’t matter for me)
- Extract the tar and image-bullhead-XXXXXX.zip
- Rename bootloader-bullhead-XXXXXX.img to bootloader.img and radio-bullhead-XXXXXX.img to radio.img and move them in with the rest of the .img files
- Reboot Nexus 5X into the bootloader (power + vol down)
- Run the following commands in terminal in the directory where your extracted files are:
fastboot flash bootloader bootloader.img; fastboot reboot-bootloader; echo "Waiting 5 seconds for bootloader to reboot"; sleep 5; fastboot flash radio radio.img; fastboot reboot-bootloader; echo "Waiting 5 seconds for bootloader to reboot"; sleep 5; fastboot flash system system.img; fastboot flash vendor vendor.img; fastboot flash userdata userdata.img; # See comments fastboot flash boot boot.img; fastboot erase cache; fastboot flash cache cache.img;
- Install TWRP (fastboot flash recovery /path/to/twrp.img)
- At the bootloader, go into recovery mode
- Once in TWRP, click Advanced, then ADB Sideload, Swipe to start Sideload
- In terminal, run the command: adb sideload /path/to/cyanogenmod.zip
- If you want GApps, sideload that too.
- After successful install, reboot!
December 21, 2015 — 3:39 am
instead of “flash userdata” I did “format userdata”, otherwise I ended up with only 10GB Internal storage on 32GB version.
December 21, 2015 — 12:29 pm
Thanks, I’ll update that. I was having the 10GB limit issue too and didn’t know what that was all about.
March 16, 2016 — 8:58 pm
Thank you, thank you, thank you! I was unable to use cyanogenmod with my new nexus 5x until I found this guide. I really appreciate you posting this. I thought my inability to boot had something to do with updating to the userpreview N image.
May 4, 2016 — 6:52 pm
Thanks, Dan. And about the userdata, i did what you said and I ended up with only 10GB like the other guy, i did that he said and work.