Ok, I am trying to learn here.
1. Why do you use mount("ext4", "EMMC", "/dev/block/mmcblk0p24", "/system");, and then unmount("/system"); without the dev blocks?
2. In above code, why you you write both 'ext4' and 'emmc' while mounting if system if it is only ext4?
3. For example, the original script is "mount("MTD", "userdata", "/data");" To modify this correctly i should make it "mount("ext4", "userdata", "/dev/block/mmcblk0p26", "/data")? Not sure why 'userdata' is there since you are already calling out the block location as well as the name.
4. Why is the second block location listed here? #/sdcard vfat /dev/block/mmcblk0p28 /dev/block/mmcblk0
5. If I were to royally mess something up in the script (i/e format data or system and then unable to replace them, or the boot.img get corrupted), could I still get into download mode or recovery to odin or nandroid back to stock? (TL;DR whats the worst that can happen?)
Well as I mentioned earlier I'm a Microsoft/Cisco admin that tinkers in Android for fun over the past few years, so I'm definitely not the best person to be answering these questions, but I'll do my best. I've learned how to do quite a bit in android without taking the time/effort to learn why I do it the way I do. Most of your questions are "why" questions...
1. I used this syntax because that's the way I learned with both my captivate and SGS2. I'm far from fluent in edify, but in reading the script; ext4 refers to the filesystem, EMMC refers to the physical internal SD card (I think it's Embedded MultiMedia Card..maybe) and the dev/block refers to the partition. Not sure why you don't have to enumerate as much when unmounting, but you'll notice it's the same way when unpacking data from "system" to "/system". I'm guessing it's an assumption made by the scripting language once you've already mounted.
2. One refers to the filesystem and the other refers to the physical medium? Just the way I've seen it done. Don't really know.
3. You don't need to mount data. Most all update scripts I've seen simply wipe data. I'm not sure why you'd want to mount data unless you want to throw some apk's into data/app as opposed to system/app. Even if you do, you wouldn't use "userdata". The mount for our system would be ;mount("ext4", "EMMC", "/dev/block/mmcblk0p26", "/data")
4. Not sure. You wouldn't want to use that in the update script anyways.
5. Well since I haven't seen your rom or script it's tough to say what the worst could be. Your script should essentially wipe the current system and data, install the new system, set symlinks and permissions, install the kernel, and then unmount everything. You should have no reason to touch the recovery partition. If that's the case, then I would think the worst that could happen would be a boot loop into recovery. From there you could still restore from backup or odin from download mode. Similar to what you described when you tried to force your previous script.
orlandoxpolice, I'm worried that we're hijacking this thread too much. Maybe we should proceed via PM or IRC. I'm confident that we could get this thing going. I don't have a ton a spare time between work and family, but we're close to finally having a rom for this tablet. As I mentioned I've already done some work regarding deodexing/zipaligning and build.prop tweaks. I've also stripped all the bloat apks and such. No reason to double the work. Give me a shout.