[LG Optimus 2x] pengus77:
So... here comes the step-by-step sum up guide to boot cm10 on the new bootloader !

1) Edit BoardConfig.mk in device/lge_p990/lge_p990 and replace

BOARD_SYSTEMIMAGE_PARTITION_SIZE := 665681920
BOARD_USERDATAIMAGE_PARTITION_SIZE := 1170259968

with

BOARD_SYSTEMIMAGE_PARTITION_SIZE := 536870912
BOARD_USERDATAIMAGE_PARTITION_SIZE := 1610612736

then add this line

TARGET_USERIMAGES_SPARSE_EXT_DISABLED := true

and replace this other one

BOARD_VOLD_MAX_PARTITIONS := 10

with

BOARD_VOLD_MAX_PARTITIONS := 20

2) Edit, in the same folder, the file init.p990.rc and fix it so that it looks like this

# mount partitions
mount_all /fstab.p990

on post-fs
## LGE
mkdir /data/nv
chown system system /data/nv
chmod 0711 /data/nv

mkdir /data/ve
chown system system /data/ve
mount ext3 /dev/block/mmcblk0p10 /data/ve
chmod 0711 /data/ve
## LGE

3) Edit in the same folder the file fstab.p990 and make it look like this

/dev/block/mmcblk0p12 /system ext4 ro wait
/dev/block/mmcblk0p2 /cache ext4 noatime,nosuid,nodev,data=writeback,nodelalloc,errors=panic wait
/dev/block/mmcblk0p7 /lgdrm ext3 noatime,nosuid,nodev,errors=panic wait
/dev/block/mmcblk0p9 /data ext4 noatime,nosuid,nodev,data=writeback,nodelalloc,errors=panic wait

4) Edit, always there, the file vold.fstab

dev_mount	sdcard	/storage/sdcard1	auto	/devices/platform/sdhci-tegra.2/mmc_host/mmc1
dev_mount	emmc	/storage/sdcard0	11	/devices/platform/sdhci-tegra.3/mmc_host/mmc0

5) Edit (yeah same folder, same folder) the file recovery.fstab (needed if you build the recovery too)

# mount point fstype device [device2] fstype2
/recovery emmc /dev/block/mmcblk0p8
/boot emmc /dev/block/mmcblk0p6
/cache ext4 /dev/block/mmcblk0p2
/data ext4 /dev/block/mmcblk0p9
/external_sd vfat /dev/block/mmcblk1p1
/sdcard vfat /dev/block/mmcblk0p11
/system ext4 /dev/block/mmcblk0p12

6) Go to kernel/lge/star/arch/arm/configs/cyanogenmod_p990_defconfig and replace this line

CONFIG_CM_BOOTLOADER_COMPAT=y

with this

CONFIG_CM_BOOTLOADER_COMPAT=n

7) Edit kernel/lge/star/arch/arm/mach-tegra/lge/star/include/lge/board-star-nv.h and replace

#define LGE_NVDATA_PARTITION "/dev/block/mmcblk0p3"

with

#define LGE_NVDATA_PARTITION "/dev/block/mmcblk0p5"

8) In device/lge/star-common/init.cm-star.rc modify this (at about line 120)

chmod 777 /dev/block/mmcblk0p3
chmod 644 /dev/block/mmcblk0p5

into this

chmod 777 /dev/block/mmcblk0p5
chmod 644 /dev/block/mmcblk0p6

8) Replace vendor/lge/p990/proprietary/lib/liblgeril.so with the one attached or edit it with a hex editor and change mmcblk0p3 with mmcblk0p5

10) Fix reboot-to-recovery by editing the file device/lge/star-common/prebuilt/setup-recovery and change it to this

#!/system/bin/sh

echo "boot-recovery" | dd of=/dev/block/mmcblk0p5 seek=6144 bs=1

11) Remove the assert() entries in the generated updater-script so that it will flash on any cwm. To do so, comment out the two references to AppendAssertions(script, input_zip) in build/tools/releasetools/ota_from_target_files and you're done. New zips will have a universal script :)

12) Time for a brunch ! Compile cm10 as usual :)

13) If you nvflashed a base, fix the sdcard by enabling debug mode after the first boot, enter via adb and manually format it with "newfs_msdos /dev/block/mmcblk0p11". Then go in settings -> storage and mount it from there.

Hope this is everything... if i forgot something shout :D

Update: The attached ics-partitions.cfg file for nvflash has the ext3 fs fix for the MSC partition... better safe than sorry :D