How to make ROM's in the dsixda kitchen that **MIGHT** work on the Galaxy W.
There are a few tricks to this but if you follow this tutorial you should have no problem make an installable ROM for the Galaxy W:
Get the dsixda kitchen from HERE. And unzip it to a place of your choosing.
REMINDER: This will only work on Linux and/or Cygwin. Tutorials for that are on the kitchen page.
Navigate to /kitchen/tools/samsung_files/sgs2x_variants/. Then inside that folder create a file called "GT-I8150".
With this step the Kitchen should deal with the Stock ROM images correctly and also pack a decent update-binary with the zip
This is the trickiest part if you're new at this:
(1) Build your ROM
(2) Extract from the zip you just created the folder META-INF
(3) Navigate to /META-INF/com/google/android and open the updater-script with the most basic file editing software you have. That means NO wordpad, MS word or anything like it.
(4) This should be what appears on the top of your script:
so delete that and put this in its place:
run_program("/sbin/mount", "/dev/block/mmcblk0p24", "/system");
run_program("/sbin/mount", "/dev/block/mmcblk0p25", "/data");
Then go to the bottom of the script and find this:
format("ext4", "EMMC", "/dev/block/mmcblk0p15");
mount("ext4", "EMMC", "/dev/block/mmcblk0p15", "/system");
format("ext4", "EMMC", "/dev/block/mmcblk0p17");
mount("ext4", "EMMC", "/dev/block/mmcblk0p17", "/data");
So delete that and put this in it's place:
OPTIONAL BUT READ: (5) Almost done. If you are using a Stock ROM as a base for yours, you still need to delete two files. In your zip go inside the /system/ folder and delete the following files:
(6) You're done. You now have an installable and most likely bootable ROM.
Credits for most of this go to me and Arco. He did most of the tough work, but I was the one who ended up finding out what was failing, suprisingly.
Credits to KezraPlanes @ xda