[Android Software Development] hachamacha:
moto_xt1060 is working now - cherry picks.

Edit:: [xt1060/VZN-MotoX] is working at this point:

I've still got work to do, but decided I couldn't yet see the problem, perhaps needed a more apples to apples comparison of a working current version vs. a non-working one, so I did "breakfast xt1060", which uses it's ./device tree for VZN specifics and msm8960dt for common code. Then I did a build and the xt1060 build works OK. I have the logs from the last non-working msm8960dt build and the working xt1060 build. Right off I see that /data mounts with a different line but I think there might be more to it than that.

Starting with mount-related log lines from non-working 6.40.7 msm8960dt:

__bionic_open_tzdata: couldn't find any tzdata when looking for localtime!
__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
Starting recovery on (UTC) Thu May 8 19:02:47 2014

can't open /dev/tty0: No such file or directory
framebuffer: fd 3 (720 x 1280)
PhilZ Touch 6.40.7
Clockworkmod v6.0.4.8
I:Device target: Moto X (cm_moto_msm8960dt)
I:Touch GUI revision: 1.21
No /etc/extra.fstab
recovery filesystem table
=========================
[COLOR="Sienna"] 0 /data f2fs /dev/block/platform/msm_sdcc.1/by-name/userdata -16384[/COLOR]
1 /cache ext4 /dev/block/platform/msm_sdcc.1/by-name/cache 0
2 /system ext4 /dev/block/platform/msm_sdcc.1/by-name/system 0
3 /fsg ext4 /dev/block/platform/msm_sdcc.1/by-name/fsg 0
4 /firmware ext4 /dev/block/platform/msm_sdcc.1/by-name/modem 0
5 /persist ext4 /dev/block/platform/msm_sdcc.1/by-name/persist 0
6 /boot emmc /dev/block/platform/msm_sdcc.1/by-name/boot 0
7 /recovery emmc /dev/block/platform/msm_sdcc.1/by-name/recovery 0
8 /modem ext4 /dev/block/platform/msm_sdcc.1/by-name/modem 0
9 /storage/usbdisk auto /devices/platform/msm_hsusb_host 0
10 /tmp ramdisk ramdisk 0

And mount-related log lines from working 6.40.7 xt1060 on same device:

__bionic_open_tzdata: couldn't find any tzdata when looking for localtime!
__bionic_open_tzdata: couldn't find any tzdata when looking for GMT!
__bionic_open_tzdata: couldn't find any tzdata when looking for posixrules!
Starting recovery on (UTC) Fri May 9 14:36:30 2014

can't open /dev/tty0: No such file or directory
framebuffer: fd 3 (720 x 1280)
PhilZ Touch 6.40.7
Clockworkmod v6.0.4.8
I:Device target: Moto X (cm_xt1060)
I:Touch GUI revision: 1.21
No /etc/extra.fstab
recovery filesystem table
=========================
[COLOR="Sienna"]0 /data f2fs /dev/block/platform/msm_sdcc.1/by-name/userdata 0[/COLOR]
1 /cache ext4 /dev/block/platform/msm_sdcc.1/by-name/cache 0
2 /system ext4 /dev/block/platform/msm_sdcc.1/by-name/system 0
3 /fsg ext4 /dev/block/platform/msm_sdcc.1/by-name/fsg 0
4 /firmware ext4 /dev/block/platform/msm_sdcc.1/by-name/modem 0
5 /persist ext4 /dev/block/platform/msm_sdcc.1/by-name/persist 0
6 /boot emmc /dev/block/platform/msm_sdcc.1/by-name/boot 0
7 /recovery emmc /dev/block/platform/msm_sdcc.1/by-name/recovery 0
8 /modem ext4 /dev/block/platform/msm_sdcc.1/by-name/modem 0
9 /storage/usbdisk auto /devices/platform/msm_hsusb_host 0
10 /tmp ramdisk ramdisk 0

I'll start by looking at how the mount is performed in each case.

Edit: Mount statement /data difference:

msm8960dt:

moto_xt1060:

Edit: Cherry-picks from Gerrit:

Forgot to mention that I'd been experimenting with some Gerrit fsf2 cherry-picks under review. I suppose I should take them out and try it again, but these are the two I used:

http://review.cyanogenmod.org/#/c/61238/

http://review.cyanogenmod.org/#/c/61273/