[Desire Q&A, Help & Troubleshooting] tischn:
Hello!

i am developing a Port from a HTC MyTouch 4g custom ROM. I have copied some Files from MyTouch ROM to that ROM using araxis merge.

Then i have copied /system/framework to /data/framework_s and the following apps from /system/app to /sd-ext/app_s:

Carrera.apk
Downtown.apk
Graffiti.apk
HTCSetupWizard.apk
install_flash_player.apk
Quickoffice.apk
RedRocks.apk
Ruby.apk
Swype.apk
teeter.apk
TwonkyMobile_T-Mobile.apk
Vending.apk
VSuiteApp.apk
Wildflower.apk

Then i edited updater-script:

# Script Version: 0.9

show_progress(0.999999, 99);

ui_print(" ");
ui_print("-installing t ROM touch 0.0.2");
ui_print("-Recommended Partition Layout");
ui_print("-Fat32+Ext4");

ui_print(" ");
ui_print("-Installing DATA Partition...");
unmount("/data");
mount("MTD","userdata","/data");
delete_recursive("/data/dalvik-cache");
package_extract_dir("data", "/data");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/app");
set_perm_recursive(1000, 1000, 0771, 0644, "/data/local");
set_perm_recursive(0, 0, 0755, 0644, "/data/framework_s");

ui_print(" ");
ui_print("-Installing SDEXT Partition...");
unmount("/sd-ext");
run_program("/sbin/busybox", "mount", "-t", "auto", "/dev/block/mmcblk0p2", "/sd-ext");
delete_recursive("/sd-ext/app_s");
delete_recursive("/sd-ext/framework_s");
delete_recursive("/sd-ext/lib_s");
delete_recursive("/sd-ext/dalvik-cache");
package_extract_dir("sd-ext", "/sd-ext");
set_perm_recursive(0, 0, 0755, 0644, "/sd-ext/app_s");
set_perm_recursive(0, 0, 0755, 0644, "/sd-ext/lib_s");

ui_print(" ");
ui_print("-Installing SYSTEM Partition...");
unmount("/system");
format("MTD", "system");
mount("MTD", "system", "/system");
package_extract_dir("system", "/system");

ui_print(" ");
ui_print("-Setting Up SYSTEM Permissions...");

symlink("/sd-ext/lib_s","/system/lib");f
symlink("/sd-ext/app_s","/system/app");
symlink("/data/framework_s","/system/framework");
symlink("/data/hosts","/system/etc/hosts");
symlink("/proc/calibration","/system/etc/calibration");

set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluz");
set_perm(0, 3003, 0755, "/system/bin/ip");
set_perm(0, 3003, 0755, "/system/bin/ipd");
set_perm(0, 3003, 02755, "/system/bin/netcfg");
set_perm(0, 3003, 06755, "/system/bin/netd");
set_perm(0, 3004, 02755, "/system/bin/ping");
set_perm(0, 2000, 06755, "/system/bin/run-as");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
set_perm(0, 0, 0755, "/system/etc/bluetooth");
set_perm(1000, 1000, 0640, "/system/etc/bluetooth/auto_pairing.conf");
set_perm(3002, 3002, 0444, "/system/etc/bluetooth/blacklist.conf");
set_perm(1002, 1002, 0440, "/system/etc/dbus.conf");
set_perm(1014, 2000, 0550, "/system/etc/dhcpcd/dhcpcd-run-hooks");
set_perm(0, 2000, 0550, "/system/etc/init.goldfish.sh");
set_perm_recursive(0, 0, 0755, 0555, "/system/etc/ppp");
set_perm(0, 0, 04755, "/system/bin/sysro");
set_perm(0, 0, 04755, "/system/bin/sysrw");
symlink("/system/xbin/busybox","/system/xbin/bb/ifconfig");
symlink("/system/xbin/busybox","/system/xbin/bb/route");
set_perm(0, 0, 04755, "/system/xbin/openvpn");
set_perm(0, 0, 04755, "/system/etc/ppp/ip-up-vpn");
set_perm(0, 0, 04755, "/system/xbin/dropbear");
set_perm(0, 0, 04755, "/system/xbin/flash_image");
symlink("dropbear","/system/xbin/dropbearkey");
set_perm_recursive(0, 2000, 0755, 0755, "/system/etc/init.d");

ui_print(" ");
ui_print("-Installing Toolbox & Busybox...");

symlink("toolbox", "/system/bin/chownto", "/system/bin/getevent", "/system/bin/getprop", "/system/bin/ifconfig", "/system/bin/iftop", "/system/bin/ioctl", "/system/bin/log", "/system/bin/nandread", "/system/bin/newfs_msdos", "/system/bin/notify", "/system/bin/schedtop", "/system/bin/sendevent", "/system/bin/setprop", "/system/bin/smd", "/system/bin/start", "/system/bin/stop",	"/system/bin/vmstat", "/system/bin/watchprops", "/system/bin/wipe", "/system/bin/top");

set_perm(0, 1000, 0755, "/system/xbin/busybox");
run_program("/sbin/sh","-c",
concat("( cd /system/xbin ; ",
" ./busybox --install -s /system/xbin )"));

delete_recursive("/data/data/com.noshufou.android.su");
set_perm(0, 0, 06755, "/system/bin/su");
delete("/system/xbin/su");
symlink("/system/bin/su","/system/xbin/su");

package_extract_dir("sdcard", "/sdcard");

ui_print(" ");
ui_print("-Installing Boot Partition...");
unmount("/boot");
format("MTD", "boot");
package_extract_file("boot.img","/tmp/boot.img");
write_raw_image("/tmp/boot.img", "boot");
delete("/tmp/boot.img");

assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "boot"),
delete("/tmp/boot.img"));

ui_print(" ");
ui_print("-Installation Completed");
ui_print("-Reboot and Enjoy");

unmount("/system");
unmount("/data");
unmount("/cache");
unmount("/sd-ext");

show_progress(0.000000, 0);

Now if i install the ROM via CWR, i get the following error:

Installing: /sdcard/update.zip
finding update package...
Opening update package...
Installing update...
E: error in /sdcard/update.zip (status 6)
installation aborted.

here is my rom:

http://www.multiupload.com/LQ81YXSCN0

Can you tell me, what the error status 6 means and how i can fix it?