OK. Solved. It turns out that the early versions of Android for the 5X and 6P don't work no matter what order you flash. Flashing stock, followed by flashing AOSP doesn't necessarily work. My requirement was to stay as close to Lollipop (5.1.1_r4) as possible to ensure minimal platform changes. Clearly, this was not possible.
I finally moved to android-6.0.0_r26(MDB08M) as detailed in this <https://groups.google.com/d/msg/android-building/_XZxkcSrQVI/zs6uW_7wAwAJ> post. On this platform, I am able to flash stock, and then flash AOSP and just have it work. To flash AOSP, I used fastboot flashall -w. On Wednesday, 3 August 2016 13:31:01 UTC-4, Guru Prasad wrote: > > I've noticed that there are a few posts on how stock AOSP will not > necessarily boot on the Nexus 5X. I've followed earlier posts that > recommended grabbing this > <https://github.com/anestisb/android-prepare-vendor/> project and > following the instructions provided there. > > I've just about tried everything I could find and have had no luck. > I picked revision MDA89E (android-6.0.0_r12) which is the first revision > to support Nexus 5X. Then, I tried the following: > > *fastboot flashall -w* > > - Flash stock image provided by Google -> works fine > - adb reboot bootloader && fastboot flashall -w > - Does not boot > > *Individual fastboot flash* > > Curiously, on the Nexus 6P, I was able to get it to boot after flashing > just system and userdata. So I tried that on the 5X. > > - Flash stock image provided by Google -> works fine > - adb reboot bootloader && fastboot flash system && fastboot flash > userdata && fastboot reboot > - Does not boot > > *Add vendor directory created by android-prepare-vendor* > > - Copy over vendor/ as created by android-prepare-vendor > - make clean && make -j16 > - fastboot flashall -w > - Does not boot > > In all of the above, my lunch target was: *aosp_bullhead-userdebug* > > In all of the above, after the boot didn't work, I tried flashing just the > vendor image over. That didn't work either. > > > > Could someone please provide comprehensive instructions on how to get an > AOSP build running on the Nexus 5X? > > > > > > -- -- You received this message because you are subscribed to the "Android Building" mailing list. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-building?hl=en --- You received this message because you are subscribed to the Google Groups "Android Building" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
