CM10 Coby 9742

Discussion in 'Coby Generation 3 Development' started by vampirefo., Sep 21, 2013.

  1. vampirefo.

    vampirefo. Senior Member Developer

    Joined:
    Nov 8, 2011
    Messages:
    3,828
    Likes Received:
    1,389
    Trophy Points:
    655
    Location:
    Huntington WV
    Tablet / Device:
    Leagoo Lead 1 ZTE OPEN C, Coby 7065, Coby 8042, Coby 9740
    This is a port of Shaun2029's CM10 found here [rom] CyanogenMod 10 Tweaks - SlateDroid.com

    This is based on Testing version, cm10_a10_20130328.zip.

    The files and modules come from my grandson's 9742. You need to have cwm recovery installed and have a system larger that 300MB.

    rotation doesn't work, games like temple run wont work as the sensor doesn't work.

    You need to make a backup and factory reset before installing this port.
    [​IMG]
    [​IMG]
    [​IMG]

    CM10_9742.zip

    Credits Shaun2029
     
    Last edited: Sep 21, 2013
    • Like Like x 6
  2. tpaine

    tpaine Senior Member

    Joined:
    Aug 18, 2012
    Messages:
    525
    Likes Received:
    130
    Trophy Points:
    132
    Location:
    Socal
    Tablet / Device:
    Coby 7042, Coby 8065, Lenovo A2109
    Wow, so this works with no internal tablet mods? Nice work, as usual, Vamp. Do you think this will work for any version 9742?
     
    Last edited: Sep 23, 2013
  3. Ricky405jr

    Ricky405jr Member

    Joined:
    Feb 23, 2013
    Messages:
    255
    Likes Received:
    23
    Trophy Points:
    87
    Location:
    Suriname
    Tablet / Device:
    Coby Kyros MID8042
    No it will NOT!. Depends isf your version is what vampirefo's grandson has. Or you'll have to swap drivers, libs etc.
     
    • Like Like x 4
  4. vampirefo.

    vampirefo. Senior Member Developer

    Joined:
    Nov 8, 2011
    Messages:
    3,828
    Likes Received:
    1,389
    Trophy Points:
    655
    Location:
    Huntington WV
    Tablet / Device:
    Leagoo Lead 1 ZTE OPEN C, Coby 7065, Coby 8042, Coby 9740
    It's for 9742 tablets that have a large system partitions. My grandson's system partition is over 500MB.

    Code:
    root@android:/ # busybox df -h
    Filesystem                Size      Used Available Use% Mounted on
    tmpfs                   407.1M     84.0K    407.1M   0% /dev
    tmpfs                   407.1M         0    407.1M   0% /mnt/asec
    tmpfs                   407.1M         0    407.1M   0% /mnt/obb
    /dev/block/nandd        503.9M    296.6M    207.4M  59% /system
    /dev/block/nande       1007.9M    319.9M    688.0M  32% /data
    /dev/block/nandh        503.9M      8.6M    495.3M   2% /cache
    /dev/block/vold/93:64
                              5.3G      4.4G    995.5M  82% /storage/sdcard0
    /dev/block/vold/93:64
                              5.3G      4.4G    995.5M  82% /mnt/secure/asec
     
    • Like Like x 2
  5. vampirefo.

    vampirefo. Senior Member Developer

    Joined:
    Nov 8, 2011
    Messages:
    3,828
    Likes Received:
    1,389
    Trophy Points:
    655
    Location:
    Huntington WV
    Tablet / Device:
    Leagoo Lead 1 ZTE OPEN C, Coby 7065, Coby 8042, Coby 9740
    This is correct, Coby has made so many different versions no way to make one rom that would work on all of them.
     
  6. tpaine

    tpaine Senior Member

    Joined:
    Aug 18, 2012
    Messages:
    525
    Likes Received:
    130
    Trophy Points:
    132
    Location:
    Socal
    Tablet / Device:
    Coby 7042, Coby 8065, Lenovo A2109
    Thanks guys, I missed that.
     
  7. Moaz93

    Moaz93 Member

    Joined:
    Sep 27, 2013
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    35
    Tablet / Device:
    Coby Kyros MID9742
    hi, thank you for your post
    i tried it out on my coby mid9742 with CWM recovery wiped data and factory reset then installing suddenly i have got a (status7) error
    the boot.img (inside the zip) "not valid" thats what live suit says!
    any fix?
     
    Last edited: Sep 27, 2013
  8. vampirefo.

    vampirefo. Senior Member Developer

    Joined:
    Nov 8, 2011
    Messages:
    3,828
    Likes Received:
    1,389
    Trophy Points:
    655
    Location:
    Huntington WV
    Tablet / Device:
    Leagoo Lead 1 ZTE OPEN C, Coby 7065, Coby 8042, Coby 9740
    What Do you mean live suit? no ideal what you are talking about.

    Sent from my Coby MID7065 Android Tablet
     
  9. Moaz93

    Moaz93 Member

    Joined:
    Sep 27, 2013
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    35
    Tablet / Device:
    Coby Kyros MID9742
    sorry for that, i mean

    for the kernel (boot.img) inside the zip:
    i tried to flash it via (livesuit) program -this program can flash .img files to coby devices, but the operation was canceled and an error message appeared telling me that the (boot.img) is broken or invalid
    if you used other way to flash the kernel pleas tell me about it, because CyanogenMod roms need its kernel to boot

    then i skip the kernel step... and tried to install the rom from CWM recovery with the stock kernel
    ...
    for the rom (CM10-7942):
    first i boot into CWM recovery then i do a factory reset and wiped dalvik cash then i select -install zip from SDcard- then i select the zip file then that what happened:

    opening update package...
    installing updat...
    (status 7)
    erorr in the package file \CM10-9742

    i search google for the status 7 error and i found that this error happend because the package is not for this device, but i did all that on my Coby Kyros MID9742
    can you tell me how to fix this, and please tell us more details about the way you install this rom

    thanks

    (sorry for my bad english)
     
  10. Traveller

    Traveller Super Moderator Staff Member

    Joined:
    Jun 16, 2012
    Messages:
    2,275
    Likes Received:
    877
    Trophy Points:
    460
    Tablet / Device:
    Coby Kyros MID9742, Dell Streak 5, Samsung Galaxy S4, Nexus 6
    Who told you to use LiveSuite to flash boot.img? These are flashable zips, flashed through Clockworkmod recovery. In your case it sounds like you only have the stock recovery, which would easily explain why you can't install the ROM.

    The rooting process and tools can be found at the link in my signature. Because you used LiveSuite however you use the tools at your own risk. I will not provide any support if you run into a problem.
     
    • Like Like x 2
  11. vampirefo.

    vampirefo. Senior Member Developer

    Joined:
    Nov 8, 2011
    Messages:
    3,828
    Likes Received:
    1,389
    Trophy Points:
    655
    Location:
    Huntington WV
    Tablet / Device:
    Leagoo Lead 1 ZTE OPEN C, Coby 7065, Coby 8042, Coby 9740
    This zip can only be installed by cwm recovery, don't use livesuit.
     
    • Like Like x 2
  12. Moaz93

    Moaz93 Member

    Joined:
    Sep 27, 2013
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    35
    Tablet / Device:
    Coby Kyros MID9742
    ok
    i have already rooted my tablet and install google apps and CWM recovery and make my own CWM recovery backup.
    for the zip file i replace the (META-INF) folder with other one and then the installation process continue normally in CWM recovery until i see a message "installation completed"
    then i reboot into system and i have got a bootloop still stock on coby logo.
    any way thanks i'll try other way or.. i don't know
    but what i understanding now is that no need to change the Kernel

    (sorry for my bad english)
     
  13. vampirefo.

    vampirefo. Senior Member Developer

    Joined:
    Nov 8, 2011
    Messages:
    3,828
    Likes Received:
    1,389
    Trophy Points:
    655
    Location:
    Huntington WV
    Tablet / Device:
    Leagoo Lead 1 ZTE OPEN C, Coby 7065, Coby 8042, Coby 9740
    The kernel has to be changed, I don't understand what is happening in your case go into advanced and report error then post CWM error report.
     
  14. vampirefo.

    vampirefo. Senior Member Developer

    Joined:
    Nov 8, 2011
    Messages:
    3,828
    Likes Received:
    1,389
    Trophy Points:
    655
    Location:
    Huntington WV
    Tablet / Device:
    Leagoo Lead 1 ZTE OPEN C, Coby 7065, Coby 8042, Coby 9740
    Also post output of

    busybox df -h

    I think your problem is you don't have a large enough system must be over 300MB.
     
    • Like Like x 2
  15. iancer

    iancer Junior Member

    Joined:
    Nov 29, 2014
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    20
    In a desperate search of a way to efficiently resize the system partition of a 9742-8 with a 250mb system partition. Is there any chance that a script such as this one with a little tweaking would be sufficient?

    I have a nandroid backup of my system made with CWM, I rooted with CobyADB.
    The code posted would resize the system partiton to 512mb.

    http://rootzwiki.com/topic/37875-ho...d-cache-partition-sizes-to-whatever-you-want/

    Code:
    #!/sbin/busybox sh
    
    edify_init() {
    # get file descriptor for output
    EDIFY_OUTFD=$(ps | grep -v "grep" | grep -o -E "update_binary(.*)" | cut -d " " -f 3);
    }
    
    # same as progress command in updater-script, for example:
    #
    # progress 0.25 10
    #
    # will update the next 25% of the progress bar over a period of 10 seconds
    
    edify_progress() {
    if [ $EDIFY_OUTFD != "" ]; then
        echo "progress ${1} ${2} " 1>&$EDIFY_OUTFD;
    fi;
    }
    
    # same as set_progress command in updater-script, for example:
    #
    # set_progress 0.25
    #
    # sets progress bar to 25%
    
    edify_set_progress() {
    if [ $EDIFY_OUTFD != "" ]; then
        echo "set_progress ${1} " 1>&$EDIFY_OUTFD;
    fi;
    }
    
    # same as ui_print command in updater_script, for example:
    #
    # ui_print "hello world!"
    #
    # will output "hello world!" to recovery, while
    #
    # ui_print
    #
    # outputs an empty line
    
    edify_ui_print() {
    if [ $EDIFY_OUTFD != "" ]; then
        echo "ui_print ${1} " 1>&$EDIFY_OUTFD;
        echo "ui_print " 1>&$EDIFY_OUTFD;
    else
        echo "${1}";
    fi;
    }
    
    do_fail() {
        edify_ui_print "${1}"
        edify_ui_print ">> FAILED <<"
        umount /sdcard 2>/dev/null
        umount /boot 2>/dev/null
        umount /data 2>/dev/null
        umount /webos 2>/dev/null
        exit
    }
    
    do_succeed() {
        edify_ui_print "System size successfully increased!"
         edify_ui_print "DO NOT DO ANYTHING ELSE!"
         edify_ui_print "REBOOT NOW!!!"
        umount /sdcard 2>/dev/null
        umount /boot 2>/dev/null
        umount /data 2>/dev/null
        umount /webos 2>/dev/null
        exit
    }
    
    ##########
    ##########
    CHANGE_SIZE=512
    EXTPART="cm-system"
    
    edify_init
    
    edify_ui_print
    edify_ui_print "=== Resizing ${EXTPART} to ${CHANGE_SIZE}MB using space from media ==="
    edify_ui_print
    
    
    edify_set_progress 0.0
    edify_progress 0.05 5
    
    if [ ! -d /boot ];
    then
        mkdir /boot
        if [ $? -ne 0 ];
        then
            do_fail "Error creating /boot"
        fi
    fi
    
    if [ ! -d /webos ];
    then
        mkdir /webos
        if [ $? -ne 0 ];
        then
            do_fail "Error creating /webos"
        fi
    fi
    
    if [ ! -d /sdcard ];
    then
        mkdir /sdcard
        if [ $? -ne 0 ];
        then
            do_fail "Error creating /sdcard"
        fi
    fi
    
    umount /boot 2>/dev/null
    umount /data 2>/dev/null
    umount /webos 2>/dev/null
    umount /sdcard 2>/dev/null
    
    sync
    
    e2fsck -fy /dev/block/mmcblk0p13
    rc=$?
    if [ $rc -ne 0 ];
    then
        e2fsck -fy /dev/block/mmcblk0p13
        rc=$?
        if [ $rc -ne 0 ];
        then
            do_fail "e2fsck /boot error: rc=$rc"
        fi
    fi
    
    mount -t ext3 /dev/block/mmcblk0p13 /boot
    rc=$?
    if [ $rc -ne 0 ];
    then
        do_fail "mount /boot failed: rc=$rc"
    fi
    
    LLDLP=/tmp/update/lib
    export LVM_SYSTEM_DIR=/boot/etc/lvm
    
    ln -s /dev/block/mmcblk0p14 /dev/mmcblk0p14
    
    if [ ! -e /boot/usr/sbin/lvm.static ];
    then
        do_fail "lvm.static not found"
    fi
    
    /boot/usr/sbin/lvm.static vgchange -ay >/dev/null 2>&1
    rc=$?
    if [ $rc -ne 0 ];
    then
        do_fail "lvm.static vgchange failed rc=$rc"
    fi
    
    
    e2fsck -fp /dev/store/root
    rc=$?
    if [ $rc -ne 0 ];
    then
        e2fsck -fp /dev/store/root
        rc=$?
        if [ $rc -ne 0 ];
        then
            do_fail "e2fsck /dev/store/root failed rc=$rc"
        fi
    fi
    
    mount -t ext3 -o ro /dev/store/root /webos
    rc=$?
    if [ $rc -ne 0 ];
    then
        do_fail "mount /webos failed rc=$rc"
    fi
    
    rm -f /lib 2>/dev/null
    ln -s /boot/lib /lib
    
    rc=$?
    if [ $rc -ne 0 ];
    then
        do_fail "unable to link /lib rc=$rc"
    fi
    
    
    if [ ! -e /webos/usr/sbin/fsck.vfat ];
    then
        do_fail "fsck.vfat does not exist"
    fi
    
    MEDIA_VOL_SIZE=`LD_LIBRARY_PATH=$LLDLP /boot/usr/sbin/lvm.static lvdisplay -c store/media 2>/dev/null | awk -F: '{print $7/2048}'`
    PART_VOL_SIZE=`LD_LIBRARY_PATH=$LLDLP /boot/usr/sbin/lvm.static lvdisplay -c store/${EXTPART} 2>/dev/null | awk -F: '{print $7/2048}'`
    
    NEW_MEDIA_VOL_SIZE=$(($MEDIA_VOL_SIZE - ($CHANGE_SIZE - $PART_VOL_SIZE) -4))
    NEW_PART_VOL_SIZE=$(($CHANGE_SIZE))
    
    if [ $PART_VOL_SIZE -ge $CHANGE_SIZE ];
    then
        do_fail "System has already been modified beyond recommended size"
    fi
    
    edify_ui_print "Scanning media (SD card)"
    edify_progress 0.15 30
    
    LD_LIBRARY_PATH=$LLDLP /webos/usr/sbin/fsck.vfat -a -v /dev/mapper/store-media
    rc=$?
    if [ $rc -ne 0 ];
    then
        LD_LIBRARY_PATH=$LLDLP /webos/usr/sbin/fsck.vfat -a -v /dev/mapper/store-media
        rc=$?
        if [ $rc -ne 0 ];
        then
            do_fail "fsck.vfat media failed rc=$rc"
        fi
    fi
    
    mount -o ro /dev/store/media /sdcard
    ### rc=$?
    ### if [ $rc -ne 0 ];
    ### then
    ###     do_fail "mount /tmp/sdcard failed rc=$rc"
    ### fi
    
    MEDIA_FS_SIZE=`df -m /sdcard | tail -1 | tr -s " " | cut -d " " -f3`
    MEDIA_FS_TOT_SIZE=`df -m /sdcard | tail -1 | tr -s " " | cut -d " " -f2`
    MEDIA_FS_FREE_SIZE=`df -m /sdcard | tail -1 | tr -s " " | cut -d " " -f4`
    umount /sdcard
    
    if [ -z $MEDIA_FS_SIZE -o $MEDIA_FS_SIZE -eq 0 ];
    then
        do_fail "failed to determine media filesystem size"
    fi
    
    
    edify_ui_print "Scanning ${EXTPART}"
    edify_progress 0.10 20
    
    e2fsck -pf /dev/store/${EXTPART}
    rc=$?
    if [ $rc -ne 0 ];
    then
        e2fsck -pf /dev/store/${EXTPART}
        rc=$?
        if [ $rc -ne 0 ];
        then
            do_fail "fsck ${EXTPART} failed rc=$rc"
        fi
    fi
    
    
    edify_ui_print "media:${MEDIA_VOL_SIZE}=>${NEW_MEDIA_VOL_SIZE} ${EXTPART}:${PART_VOL_SIZE}=>${NEW_PART_VOL_SIZE}"
    edify_ui_print "media_fs tot=${MEDIA_FS_TOT_SIZE} sz=${MEDIA_FS_SIZE} free=${MEDIA_FS_FREE_SIZE}"
    
    MEDIA_FS_SIZE_CHECK=`expr $MEDIA_FS_SIZE +//0 16`
    
    if [ $NEW_MEDIA_VOL_SIZE -le $MEDIA_FS_SIZE_CHECK ];
    then
        do_fail "cannot resize media"
    fi
    
    
    edify_ui_print "Decreasing  media (SD card) from ${MEDIA_VOL_SIZE}MB to ${NEW_MEDIA_VOL_SIZE}MB."
    edify_progress 0.60 180
    
    LD_LIBRARY_PATH=$LLDLP:/webos/usr/lib /webos/bin/resizefat /dev/store/media ${NEW_MEDIA_VOL_SIZE}M
    rc=$?
    if [ $? -ne 0 ];
    then
        do_fail "resizefat /dev/store/media failed rc=$rc"
    fi
    
    LD_LIBRARY_PATH=$LLDLP /boot/usr/sbin/lvm.static lvreduce -f -L ${NEW_MEDIA_VOL_SIZE}M /dev/store/media
    rc=$?
    if [ $rc -ne 0 ];
    then
        do_fail "lvreduce /dev/store/media failed rc=$rc"
    fi
    
    mount -o ro /dev/store/media /sdcard
    mount -o remount /sdcard
    
    MEDIA_FS_SIZE=`df -m /sdcard | tail -1 | tr -s " " | cut -d " " -f3`
    MEDIA_FS_TOT_SIZE=`df -m /sdcard | tail -1 | tr -s " " | cut -d " " -f2`
    MEDIA_FS_FREE_SIZE=`df -m /sdcard | tail -1 | tr -s " " | cut -d " " -f4`
    umount /sdcard
    
    if [ -z $MEDIA_FS_SIZE -o $MEDIA_FS_SIZE -eq 0 ];
    then
        do_fail "failed to determine media filesystem size"
    fi
    
    edify_ui_print "media_fs tot=${MEDIA_FS_TOT_SIZE} sz=${MEDIA_FS_SIZE} free=${MEDIA_FS_FREE_SIZE}"
    
    
    edify_ui_print "Increasing ${EXTPART} from ${PART_VOL_SIZE}MB to ${NEW_PART_VOL_SIZE}MB."
    edify_progress 0.10 10
    
    
    LD_LIBRARY_PATH=$LLDLP /boot/usr/sbin/lvm.static lvextend -f -L ${NEW_PART_VOL_SIZE}M /dev/store/${EXTPART}
    rc=$?
    if [ $rc -ne 0 ];
    then
        do_fail "lvextent ${EXTPART} failed rc=$rc"
    fi
    
    LD_LIBRARY_PATH=$LLDLP:/webos/lib:/webos/usr/lib /webos/sbin/resize2fs /dev/store/${EXTPART}
    rc=$?
    if [ $rc -ne 0 ];
    then
        do_fail "resize2fs ${EXTPART} failed rc=$rc"
    fi
    
    edify_set_progress 1.0
    
    do_succeed
    
    System resize script
    http://www70.zippyshare.com/v/87008675/file.html
     

    Attached Files:

Share This Page

Search tags for this page

t1 via taptalk

,

cm10 9740 fix

,

coby 9742 mod

,

coby kyros mid7065 edify

,

fix android nandk1 partition

,

mid9742 cm10

,

nandk1 android