Forum switched to read-only as of 2020/06/01
Latest product reviews |
---|
![]() |
![]() |
Smartphones ![]() |
TV Connect ![]() |
![]() |
ClockworkMod (CWM) Recovery easy install for RK3066 and RK3188 -- TWRP/CWM Flash-Tool and root for RK3288
 Please donate to support OMA and CrewRKTablets firmware work, thank you !


Moderator

Firmware Guru
2012/01/05



Moderator

Firmware Guru
2012/01/05



Moderator

Firmware Guru
2012/01/05



Moderator

Firmware Guru
2012/01/05

format("ext4", "EMMC", "/dev/block/mmcblk0p16", "0");
mount("ext4", "EMMC", "/dev/block/mmcblk0p16", "/system");
format("ext4", "EMMC", "/dev/block/mmcblk0p17", "0");
mount("ext4", "EMMC", "/dev/block/mmcblk0p17", "/cache");
format("ext4", "EMMC", "/dev/block/mmcblk0p18", "0");
mount("ext4", "EMMC", "/dev/block/mmcblk0p18", "/data");
Like this should look this line from the updaterscript
Try like this.

2012/11/13

still error 6
sorry for the long line of thread ahead but maybe if u see the entire script u can help me correct it better
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
#Format_system
show_progress(0.200000, 10);
unmount("/system");
unmount("/cache");
unmount("/data");
format("ext4", "EMMC", "/dev/block/mmcblk0p16", "0");
mount("ext4", "EMMC", "/dev/block/mmcblk0p16", "/system");
format("ext4", "EMMC", "/dev/block/mmcblk0p17", "0");
mount("ext4", "EMMC", "/dev/block/mmcblk0p17", "/cache");
format("ext4", "EMMC", "/dev/block/mmcblk0p18", "0");
mount("ext4", "EMMC", "/dev/block/mmcblk0p18", "/data");
#Install system
show_progress(0.200000, 20);
package_extract_dir("system", "/system");
# symlinks
show_progress(0.200000, 30);
symlink("/system/media/bootsamsungloop.qmg", "/system/media/bootsamsung.qmg");
symlink("toolbox", "/system/bin/cat", "/system/bin/chmod", "/system/bin/chown", "/system/bin/cmp", "/system/bin/date", "/system/bin/dd",
"/system/bin/df", "/system/bin/dmesg", "/system/bin/getevent", "/system/bin/getprop", "/system/bin/hd", "/system/bin/id",
"/system/bin/ifconfig", "/system/bin/iftop", "/system/bin/insmod", "/system/bin/ioctl", "/system/bin/ionice", "/system/bin/kill",
"/system/bin/ln", "/system/bin/log", "/system/bin/ls", "/system/bin/lsmod", "/system/bin/mkdir", "/system/bin/mount",
"/system/bin/mv", "/system/bin/nandread", "/system/bin/netstat", "/system/bin/newfs_msdos", "/system/bin/notify",
"/system/bin/printenv", "/system/bin/ps", "/system/bin/reboot", "/system/bin/renice", "/system/bin/rm", "/system/bin/rmdir",
"/system/bin/rmmod", "/system/bin/route", "/system/bin/schedtop", "/system/bin/sendevent", "/system/bin/setconsole",
"/system/bin/setprop", "/system/bin/sleep", "/system/bin/smd", "/system/bin/start", "/system/bin/stop", "/system/bin/sync",
"/system/bin/top", "/system/bin/umount", "/system/bin/vmstat", "/system/bin/watchprops", "/system/bin/wipe");
symlink("busybox", "/system/xbin/[" , "/system/xbin/[[" , "/system/xbin/dc" , "/system/xbin/dd" , "/system/xbin/cp" , "/system/xbin/df" ,
"/system/xbin/ed" , "/system/xbin/du" , "/system/xbin/id" , "/system/xbin/ip" , "/system/xbin/ln" , "/system/xbin/ls" , "/system/xbin/mv" ,
"/system/xbin/od" , "/system/xbin/ps" , "/system/xbin/rm" , "/system/xbin/sh" , "/system/xbin/tr" , "/system/xbin/vi" , "/system/xbin/wc" ,
"/system/xbin/arp" , "/system/xbin/ash" , "/system/xbin/awk" , "/system/xbin/cal" , "/system/xbin/cat" , "/system/xbin/cmp" , "/system/xbin/cut" ,
"/system/xbin/env" , "/system/xbin/pwd" , "/system/xbin/sed" , "/system/xbin/seq" , "/system/xbin/tac" , "/system/xbin/tar" , "/system/xbin/opinions-on-teclast-p90hde" ,
"/system/xbin/top" , "/system/xbin/tty" , "/system/xbin/yes" , "/system/xbin/catv" , "/system/xbin/date" , "/system/xbin/cpio" , "/system/xbin/diff" ,
"/system/xbin/echo" , "/system/xbin/dnsd" , "/system/xbin/find" , "/system/xbin/expr" , "/system/xbin/fold" , "/system/xbin/free" , "/system/xbin/head" ,
"/system/xbin/grep" , "/system/xbin/gzip" , "/system/xbin/kill" , "/system/xbin/less" , "/system/xbin/lzop" , "/system/xbin/new-m6-firmware-rockchip-sdk-2-0-based" , "/system/xbin/nice" ,
"/system/xbin/ntpd" , "/system/xbin/ping" , "/system/xbin/rdev" , "/system/xbin/tail" , "/system/xbin/sort" , "/system/xbin/opinions-on-teclast-p90hdst" , "/system/xbin/tftp" ,
"/system/xbin/stat" , "/system/xbin/time" , "/system/xbin/stty" , "/system/xbin/sync" , "/system/xbin/true" , "/system/xbin/uniq" , "/system/xbin/wget" ,
"/system/xbin/zcat" , "/system/xbin/uudecode" , "/system/xbin/dos2unix" , "/system/xbin/uuencode" , "/system/xbin/dirname" , "/system/xbin/killall" ,
"/system/xbin/unix2dos" , "/system/xbin/brctl" , "/system/xbin/chgrp" , "/system/xbin/chmod" , "/system/xbin/chown" , "/system/xbin/clear" ,
"/system/xbin/cksum" , "/system/xbin/bzcat" , "/system/xbin/bzip2" , "/system/xbin/dmesg" , "/system/xbin/egrep" , "/system/xbin/false" ,
"/system/xbin/fdisk" , "/system/xbin/fgrep" , "/system/xbin/fuser" , "/system/xbin/lsmod" , "/system/xbin/lspci" , "/system/xbin/lsusb" ,
"/system/xbin/mkdir" , "/system/xbin/mknod" , "/system/xbin/mount" , "/system/xbin/nohup" , "/system/xbin/patch" , "/system/xbin/pgrep" ,
"/system/xbin/pidof" , "/system/xbin/pkill" , "/system/xbin/reset" , "/system/xbin/rmdir" , "/system/xbin/rmmod" , "/system/xbin/route" ,
"/system/xbin/sleep" , "/system/xbin/split" , "/system/xbin/touch" , "/system/xbin/uname" , "/system/xbin/unzip" , "/system/xbin/watch" ,
"/system/xbin/which" , "/system/xbin/xargs" , "/system/xbin/freeramdisk" , "/system/xbin/sha1sum" , "/system/xbin/traceroute" ,
"/system/xbin/modprobe" , "/system/xbin/losetup" , "/system/xbin/killall5" , "/system/xbin/strings" , "/system/xbin/chroot" ,
"/system/xbin/mkfs.ext2" , "/system/xbin/depmod" , "/system/xbin/devmem" , "/system/xbin/swapoff" , "/system/xbin/lzopcat" ,
"/system/xbin/getopt" , "/system/xbin/mountpoint" , "/system/xbin/netstat" , "/system/xbin/gunzip" , "/system/xbin/insmod" ,
"/system/xbin/length" , "/system/xbin/md5sum" , "/system/xbin/sha256sum" , "/system/xbin/mke2fs" , "/system/xbin/mkfifo" ,
"/system/xbin/mktemp" , "/system/xbin/mkswap" , "/system/xbin/tune2fs" , "/system/xbin/ifconfig" , "/system/xbin/nslookup" ,
"/system/xbin/sha512sum" , "/system/xbin/printf" , "/system/xbin/renice" , "/system/xbin/hexdump" , "/system/xbin/setsid" ,
"/system/xbin/opinions-on-teclast-p90hdlnet" , "/system/xbin/swapon" , "/system/xbin/sysctl" , "/system/xbin/umount" , "/system/xbin/unlzop" ,
"/system/xbin/uptime" , "/system/xbin/usleep" , "/system/xbin/whoami" , "/system/xbin/printenv" , "/system/xbin/run-parts" ,
"/system/xbin/bbconfig" , "/system/xbin/readlink" , "/system/xbin/install" , "/system/xbin/basename" , "/system/xbin/realpath" ,
"/system/xbin/bunzip2");
symlink("/system/xbin/su", "/system/bin/su");
symlink("/system/bin/dumpstate", "/system/bin/dumpmesg");
symlink("/system/bin/debuggerd", "/system/bin/csview");
# Permissions
show_progress(0.200000, 50);
set_perm_recursive(0, 0, 0755, 0644, "/system");
set_perm_recursive(0, 2000, 0755, 0755, "/system/bin");
set_perm_recursive(0, 0, 0755, 0755, "/system/etc");
set_perm_recursive(1002, 1002, 0755, 0440, "/system/etc/bluetooth");
set_perm_recursive(0, 2000, 0755, 0755, "/system/xbin");
set_perm_recursive(0, 0, 0755, 0755, "/system/usr");
set_perm(0, 2000, 0755, "/system/etc/bluetooth");
set_perm(0, 3003, 02755, "/system/bin/netcfg");
set_perm(0, 3004, 02755, "/system/bin/ping");
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(0, 0, 06755, "/system/xbin/su");
set_perm_recursive(0, 0, 0755, 0644, "/system/lib/modules");
set_perm(0, 2000, 0755, "/system/bin/mm-audio-acdb-test");
set_perm(0, 2000, 0755, "/system/bin/mm-audio-alsa-test");
set_perm(0, 2000, 0755, "/system/bin/mm-venc-omx-test720p");
set_perm(0, 2000, 0755, "/system/bin/mm-video-encdrv-test");
set_perm (0, 0, 0755, "/data/tune2fs");
set_perm (0, 0, 0755, "/data/journaldisable");
set_perm(0, 0, 0644, "/system/etc/hosts");
set_perm_recursive(0, 0, 0755, 0644, "/system/lib/modules");
run_program("/sbin/busybox", "sh", "/data/journaldisable");
show_progress(0.200000, 60);
assert(package_extract_file("boot.img", "/tmp/boot.img"),
write_raw_image("/tmp/boot.img", "/dev/block/mmcblk0p8"),
delete("/tmp/boot.img"));
show_progress(0.200000, 70);
package_extract_file("fix_permissions", "/tmp/fix_permissions");
set_perm(0, 0, 0777, "/tmp/fix_permissions");
run_program("/tmp/fix_permissions");
delete("/tmp/tmp/fix_permissions");
#Finish_installation
unmount("/system");
show_progress(0.200000, 80);
unmount("/data");
show_progress(1.000000, 0);
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print(" ");
ui_print("===============================");
ui_print("Thanks for using TIM'S CUSTOM ROM");
ui_print(" - 11/21/12");
ui_print("===============================");


Moderator

Firmware Guru
2012/01/05

i found more mistakes in the updaterscript
assert(getprop("ro.product.device") == "trebon" || getprop("ro.build.product") == "trebon" || getprop("ro.product.board") == "GT-S7500" || getprop("ro.product.model") == "GT-S7500");
Why do you use values from a samsung device ?
assert(getprop("ro.product.device") == "rk30sdk" || getprop("ro.build.product") == "rk30sdk" || getprop("ro.product.board") == "rk30sdk" || getprop("ro.product.model") == "U9GT4");
Why the system on your zip is System, in starts with a capital ?
Most Users Ever Online: 803
Currently Online:
55 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Devices in use: Desktop (49), Phone (6)
Top Posters:
finless: 604
DarthJabba: 551
maikal: 394
mussonero1: 350
alex: 252
damo: 243
DanielVd: 237
Mark06: 222
Newest Members:
Greedrg
avaslidecast
chefnl
samahsher
sesemichel
ibiky
Forum Stats:
Groups: 10
Forums: 185
Topics: 6037
Posts: 60500
Member Stats:
Guest Posters: 43
Members: 262194
Moderators: 5
Admins: 1
Administrators: admin
Moderators: globula_neagra, exelletor, JochenKauz, Oma7144, cracktech
CrewRKTablets moderators: JochenKauz and Astralix