Android Tablets Forum banner

Maybe the kernel don`t support this NAND Flash

21262 Views 27 Replies 9 Participants Last post by  longbow22
Hello,I`m new here and a new owner of an Eken M001. I bought it on ebay and received it today. A fast test seems good, it starts up and worked. Then we have to go and I turned it off with a long press on the powerbutton. He asked me to disable the phone module. I agreed and since them only get a black screen...
I`ve tried to flash a new room (stands here in the forum), but only get the fellowing errormessage:--> Erase File-System partition Fail! Exit!Maybe the kernel don`t support this NAND FlashThis error comes with original Eken M001 1.7.4 firmware...Now my quest is: Is it broken (then flashmemory)? Hope you can help me.With kind regardsISDNRaiser
See less See more
21 - 28 of 28 Posts
mammlouk;62225 said:
Very interesting. I wonder if maybe the overclock was causing the whole SoC to get too hot and affecting the NAND.
I think so. Everytime it booted up, it always crashed after 3mins and then impossible to turn back on again (black screen but blue led on).At that moment it wasnt possible to flash.The only solution i got is to have the device off for many hours and then try to flash a none overclocked ROM.
Got this this issue again after I forced a shutdown with holding down back button for five second. the device don't want to boot now and can't flash. I think I have hw issue.Mercury m002 is flashed on it.Lets hope this crappy device boot up tomorrow. Sent from my GT-I9000
I would see if you can get it replaced under warranty.
mammlouk;62413 said:
I would see if you can get it replaced under warranty.
Too expensive to ship back to China.Seems like everything is ok if i dont force close the tablet with power key pressed down for 5secs.
2
hi i have a feichu with this problem i was wondering if i posted the update.sh pad contents someone could reword the script for me? i didn't really understand about the code you were writing but i am keen to learn

Code:
height=22<br />
pointX=30<br />
pointY=100<br />
<br />
SDCARD=/mnt/mmcblk0p1<br />
<br />
if [ -x /mnt/mmcblk0/script/update.sh ] ; then<br />
    SDCARD=/mnt/mmcblk0<br />
fi<br />
<br />
if [ -f ${SDCARD}/script/android_fs.tar ] ; then<br />
    string="Update filesystem Start ......"<br />
    echo $string<br />
    gui-echo $pointX $pointY "$string"<br />
else<br />
    string="--> Not find script/android_fs.tar in SD Card"<br />
    echo $string<br />
    gui-echo $pointX $pointY "$string"<br />
    pointY=$(($pointY + $height + $height))<br />
    string="Fail to update filesystem. Exit!"<br />
    echo $string<br />
    gui-echo $pointX $pointY "$string"<br />
    exit 0<br />
fi<br />
<br />
# -----> Begin Operate File-System Partition <---- #<br />
<br />
pointY=$(($pointY + $height + $height))<br />
string="Erase File-System partition ......"<br />
echo $string<br />
gui-echo $pointX $pointY "$string"<br />
#pointY=$(($pointY + $height))<br />
<br />
flash_eraseall /dev/mtd9<br />
if [ $? -ne 0 ] ; then<br />
#   pointY=$(($pointY + $height))<br />
    pointY=$(($pointY + $height + $height))<br />
    string="--> Erase File-System partition Fail! Exit!"<br />
    echo $string<br />
    gui-echo $pointX $pointY "$string"<br />
    pointY=$(($pointY + $height))<br />
    string="Maybe the kernel don't support this NAND Flash"<br />
    echo $string<br />
    gui-echo $pointX $pointY "$string"<br />
    exit 0<br />
else<br />
   string="Erase File-System partition OK"<br />
   echo $string<br />
   gui-echo $pointX $pointY "$string"<br />
fi<br />
#pointY=$(($pointY + $height))<br />
<br />
mount -t yaffs2 /dev/mtdblock9 /mnt/mtd<br />
if [ $? -ne 0 ] ; then<br />
    #pointY=$(($pointY + $height))<br />
    pointY=$(($pointY + $height + $height))<br />
    string="--> Mount File-System partition Fail! Exit!"<br />
    echo $string<br />
    gui-echo $pointX $pointY "$string"<br />
    exit 0<br />
else<br />
    string="Mount File-System partition OK"<br />
    echo $string<br />
    gui-echo $pointX $pointY "$string"<br />
fi<br />
<br />
pointY=$(($pointY + $height))<br />
string="Now Copy System Files, Pleas wait ......"<br />
echo $string<br />
gui-echo $pointX $pointY "$string"<br />
#pointY=$(($pointY + $height))<br />
<br />
tar xvf ${SDCARD}/script/android_fs.tar -C /mnt/mtd<br />
chmod 777 -R /mnt/mtd<br />
string="Copy System Files to File-System partition OK"<br />
echo $string<br />
gui-echo $pointX $pointY "$string"<br />
pointY=$(($pointY + $height))<br />
<br />
if [ -d ${SDCARD}/script/driver ] ; then<br />
    echo "Now Copy Drivers to File-System partition ......"<br />
    if [ ! -d /mnt/mtd/.driver ] ; then<br />
        mkdir /mnt/mtd/.driver<br />
    fi<br />
    cp -a ${SDCARD}/script/driver/* /mnt/mtd/.driver<br />
<br />
    string="Copy Drivers to File-System partition OK"<br />
    echo $string<br />
    gui-echo $pointX $pointY "$string"<br />
#    pointY=$(($pointY + $height))<br />
fi<br />
<br />
if [ -f ${SDCARD}/script/busybox_1.16.tar ] && [ ! -x /mnt/mtd/system/bin/sh-org ] ; then<br />
    string="Now Copy busybox to File-System partition ......"<br />
    echo $string<br />
    gui-echo $pointX $pointY "$string"<br />
#    pointY=$(($pointY + $height))<br />
    tar xvf ${SDCARD}/script/busybox_1.16.tar -C /mnt/mtd<br />
    string="Copy busybox to File-System partition OK"<br />
    echo $string<br />
    gui-echo $pointX $pointY "$string"<br />
    pointY=$(($pointY + $height))    <br />
    <br />
    if [ -x /mnt/mtd/busybox/bin/ash ] ; then<br />
        mv /mnt/mtd/system/bin/sh /mnt/mtd/system/bin/sh-org<br />
        ln -s /busybox/bin/busybox /mnt/mtd/system/bin/sh<br />
        if [ ! -d /mnt/mtd/bin ] ; then<br />
            mkdir /mnt/mtd/bin<br />
        fi<br />
        ln -s /busybox/bin/busybox /mnt/mtd/bin/sh        <br />
    fi<br />
fi<br />
<br />
if [ -d ${SDCARD}/script/pre_root_disk ] || [ -f ${SDCARD}/script/data.tar ] || [ -f ${SDCARD}/script/cache.tar ] ; then<br />
    string="Now Copy Additional Files to File-System partition ......"<br />
    echo $string<br />
    gui-echo $pointX $pointY "$string"<br />
        <br />
    if [ -d ${SDCARD}/script/pre_root_disk ] ; then<br />
        cp -a ${SDCARD}/script/pre_root_disk/*  /mnt/mtd<br />
        if [ -d /mnt/mtd/restore ] ; then<br />
            if [ -d /mnt/mtd/.restore ] ; then<br />
                cp -a  /mnt/mtd/restore/*  /mnt/mtd/.restore/<br />
                rm -rf /mnt/mtd/restore<br />
            else<br />
                mv /mnt/mtd/restore /mnt/mtd/.restore<br />
            fi<br />
        fi<br />
    fi<br />
    <br />
    if [ -f ${SDCARD}/script/data.tar ] ; then<br />
        if [ ! -d /mnt/mtd/.restore ] ; then<br />
            mkdir /mnt/mtd/.restore<br />
        fi<br />
        cp -rf ${SDCARD}/script/data.tar /mnt/mtd/.restore<br />
<br />
#        if [ -d ${SDCARD}/script/pre_data_disk/app ] ; then<br />
#            cp -rf ${SDCARD}/script/pre_data_disk/app /mnt/mtd/.restore<br />
#        fi<br />
    fi<br />
    <br />
    if [ -f ${SDCARD}/script/cache.tar ] ; then<br />
        if [ ! -d /mnt/mtd/.restore ] ; then<br />
            mkdir /mnt/mtd/.restore<br />
        fi<br />
        cp ${SDCARD}/script/cache.tar /mnt/mtd/.restore<br />
    fi<br />
    <br />
    string="Copy Additional Files to File-System partition OK"<br />
    echo $string<br />
    gui-echo $pointX $pointY "$string"<br />
    pointY=$(($pointY + $height))<br />
fi<br />
<br />
# --- set the limitation -----<br />
    chmod 755 -R /mnt/mtd<br />
    chmod 750 /mnt/mtd/init.rc<br />
    chmod 750 /mnt/mtd/init.goldfish.rc<br />
    chmod 750 /mnt/mtd/init<br />
    chmod 644 /mnt/mtd/default.prop<br />
    chmod 700 /mnt/mtd/root<br />
    chmod 750 /mnt/mtd/sbin<br />
    chmod 751 /mnt/mtd/bin<br />
    chmod 751 /mnt/mtd/busybox<br />
    chmod 750 /mnt/mtd/lib<br />
# --- end set limitation -----<br />
<br />
if [ -f /mnt/mtd/system/bin/preboot ] ; then<br />
    chown [URL=root:0]root:0[/URL] /mnt/mtd/system/bin/preboot<br />
    chmod a-w /mnt/mtd/system/bin/preboot<br />
    chmod a+rxs /mnt/mtd/system/bin/preboot    <br />
fi<br />
sync<br />
umount /mnt/mtd<br />
<br />
if [ $? -ne 0 ] ; then<br />
    pointY=$(($pointY + $height))<br />
    string="Unmount File-System partition Fail! Exit!"<br />
    echo $string<br />
    gui-echo $pointX $pointY "$string"<br />
    exit 0<br />
fi<br />
<br />
# -----> End Operate File-System Partition <---- #<br />
<br />
<br />
# -----> Begin Operate Data Partition <---- #<br />
<br />
if [ -d ${SDCARD}/script/etc ] || [ -f ${SDCARD}/script/data.tar ] || [ -d ${SDCARD}/script/pre_data_disk ] ; then<br />
    string="Erase Data partition ......"<br />
    echo $string<br />
    gui-echo $pointX $pointY "$string"<br />
    #pointY=$(($pointY + $height))<br />
<br />
    flash_eraseall /dev/mtd10<br />
    if [ $? -ne 0 ] ; then<br />
        #pointY=$(($pointY + $height))<br />
        pointY=$(($pointY + $height + $height))<br />
        string="--> Erase Data partition Fail!. Exit!"<br />
        echo $string<br />
        gui-echo $pointX $pointY "$string"<br />
        pointY=$(($pointY + $height))<br />
        string="Maybe the kernel don't support this NAND Flash"<br />
        echo $string<br />
        gui-echo $pointX $pointY "$string"<br />
        exit 0<br />
    else<br />
       string="Erase Data partition OK"<br />
       echo $string<br />
       gui-echo $pointX $pointY "$string"<br />
    fi<br />
    #pointY=$(($pointY + $height))<br />
<br />
    mount -t yaffs2 /dev/mtdblock10 /mnt/mtd<br />
    if [ $? -ne 0 ] ; then<br />
        #pointY=$(($pointY + $height))<br />
        pointY=$(($pointY + $height + $height))<br />
        string="--> Mount Data partition Fail!. Exit!"<br />
        echo $string<br />
        gui-echo $pointX $pointY "$string"<br />
        exit 0<br />
    else<br />
        string="Mount Data partition OK"<br />
        echo $string<br />
        gui-echo $pointX $pointY "$string"<br />
    fi<br />
    pointY=$(($pointY + $height))<br />
<br />
    string="Now Copy Files to Data partition, Please wait ......"<br />
    echo $string<br />
    gui-echo $pointX $pointY "$string"<br />
    #pointY=$(($pointY + $height))<br />
    <br />
    if [ -f ${SDCARD}/script/data.tar ] ; then<br />
        tar xvf ${SDCARD}/script/data.tar -C /mnt/mtd<br />
    fi<br />
    <br />
    if [ -d ${SDCARD}/script/etc ] ; then<br />
        if [ -d /mnt/mtd/wmtpref ] ; then<br />
            cp -a ${SDCARD}/script/etc/* /mnt/mtd/wmtpref<br />
        else<br />
            mkdir /mnt/mtd/wmtpref<br />
            cp -a ${SDCARD}/script/etc/* /mnt/mtd/wmtpref<br />
        fi<br />
    fi<br />
<br />
    if [ -d ${SDCARD}/script/pre_data_disk ] ; then<br />
       cp -a ${SDCARD}/script/pre_data_disk/*  /mnt/mtd<br />
    fi<br />
<br />
    if [ -d ${SDCARD}/script/pre_root_disk/restore/etc ] ; then<br />
       cp -a ${SDCARD}/script/pre_root_disk/restore/etc  /mnt/mtd/wmtpref/<br />
    fi<br />
    <br />
    string="Copy Files to Data partition OK"<br />
    echo $string<br />
    gui-echo $pointX $pointY "$string"<br />
    pointY=$(($pointY + $height))<br />
<br />
    chmod 777 -R /mnt/mtd<br />
    sync<br />
    umount /mnt/mtd<br />
<br />
    if [ $? -ne 0 ] ; then<br />
        pointY=$(($pointY + $height))<br />
        string="Unmount Data partition Fail! Exit!"<br />
        echo $string<br />
        gui-echo $pointX $pointY "$string"<br />
        exit 0<br />
    fi<br />
fi<br />
# -----> End Operate Data Partition <---- #<br />
<br />
# -----> Begin Operate Cache Partition <---- #<br />
<br />
if [ -f ${SDCARD}/script/cache.tar ] || [ -d ${SDCARD}/script/pre_cache_disk ] ; then<br />
    string="Erase Cache partition ......"<br />
    echo $string<br />
    gui-echo $pointX $pointY "$string"<br />
    #pointY=$(($pointY + $height))<br />
<br />
    flash_eraseall /dev/mtd11<br />
    if [ $? -ne 0 ] ; then<br />
        #pointY=$(($pointY + $height))<br />
        pointY=$(($pointY + $height + $height))<br />
        string="--> Erase Cache partition Fail!. Exit!"<br />
        echo $string<br />
        gui-echo $pointX $pointY "$string"<br />
        pointY=$(($pointY + $height))<br />
        string="Maybe the kernel don't support this NAND Flash"<br />
        echo $string<br />
        gui-echo $pointX $pointY "$string"<br />
        exit 0<br />
    else<br />
       string="Erase Cache partition OK"<br />
       echo $string<br />
       gui-echo $pointX $pointY "$string"<br />
    fi<br />
    #pointY=$(($pointY + $height))<br />
    <br />
    mount -t yaffs2 /dev/mtdblock11 /mnt/mtd<br />
    if [ $? -ne 0 ] ; then<br />
        #pointY=$(($pointY + $height))<br />
        pointY=$(($pointY + $height + $height))<br />
        string="--> Mount Data partition Fail!. Exit!"<br />
        echo $string<br />
        gui-echo $pointX $pointY "$string"<br />
        exit 0<br />
    else<br />
        string="Mount Cache partition OK"<br />
        echo $string<br />
        gui-echo $pointX $pointY "$string"<br />
    fi<br />
    pointY=$(($pointY + $height))<br />
    <br />
    string="Now Copy Files to Cache partition, Please wait ......"<br />
    echo $string<br />
    gui-echo $pointX $pointY "$string"<br />
    #pointY=$(($pointY + $height))<br />
    <br />
    if [ -f ${SDCARD}/script/cache.tar ] ; then<br />
        tar xvf ${SDCARD}/script/chache.tar -C /mnt/mtd<br />
    fi<br />
    <br />
    if [ -d ${SDCARD}/script/pre_cache_disk ] ; then<br />
       cp -a ${SDCARD}/script/pre_cache_disk/*  /mnt/mtd<br />
    fi<br />
    <br />
    string="Copy Files to Cache partition OK"<br />
    echo $string<br />
    gui-echo $pointX $pointY "$string"<br />
    pointY=$(($pointY + $height))<br />
<br />
    chmod 777 -R /mnt/mtd<br />
    sync<br />
    umount /mnt/mtd<br />
<br />
    if [ $? -ne 0 ] ; then<br />
        pointY=$(($pointY + $height))<br />
        string="Unmount Cache partition Fail! Exit!"<br />
        echo $string<br />
        gui-echo $pointX $pointY "$string"<br />
        exit 0<br />
    fi <br />
fi<br />
<br />
# -----> End Operate Cache Partition <---- #<br />
<br />
string="Update filesystem successful!"<br />
echo $string<br />
gui-echo $pointX $pointY "$string"<br />
pointY=$(($pointY + $height + $height))<br />
<br />
# -----> Begin Operate User Space <---- #<br />
<br />
if [ -f ${SDCARD}/script/driver/g_file_storage.ko ] ; then<br />
    string="Erase User Space......"<br />
    echo $string<br />
    gui-echo $pointX $pointY "$string"<br />
    #pointY=$(($pointY + $height))<br />
<br />
    flash_eraseall /dev/mtd12<br />
<br />
    if [ $? -ne 0 ] ; then<br />
        #pointY=$(($pointY + $height))<br />
        pointY=$(($pointY + $height + $height))<br />
        string="--> Erase User Space Fail! Exit!"<br />
        echo $string<br />
        gui-echo $pointX $pointY "$string"<br />
        exit 0<br />
    else<br />
        string="Erase User Space OK"<br />
        echo $string<br />
        gui-echo $pointX $pointY "$string"<br />
    fi<br />
    #pointY=$(($pointY + $height))<br />
    mount -t yaffs2 /dev/mtdblock12 /mnt/mtd<br />
<br />
    if [ $? -ne 0 ] ; then<br />
        #pointY=$(($pointY + $height))<br />
        pointY=$(($pointY + $height + $height))<br />
        string="--> Mount User Space Fail! Exit!"<br />
        echo $string<br />
        gui-echo $pointX $pointY "$string"<br />
        exit 0<br />
    else<br />
        string="Mount User Space OK"<br />
        echo $string<br />
        gui-echo $pointX $pointY "$string"<br />
    fi<br />
<br />
    pointY=$(($pointY + $height))<br />
    string="Create Loop File ..."<br />
    echo $string<br />
    gui-echo $pointX $pointY "$string"<br />
    #pointY=$(($pointY + $height))<br />
<br />
    create_loopfile mtd12 /mnt/mtd/vfat.bin bs=524288<br />
<br />
    if [ $? -ne 0 ] ; then<br />
        #pointY=$(($pointY + $height))<br />
        pointY=$(($pointY + $height + $height))<br />
        string="--> Create Loop File Fail! Exit!"<br />
        echo $string<br />
        gui-echo $pointX $pointY "$string"<br />
        exit 0<br />
    else<br />
        if [ -f /mnt/mtd/vfat.bin ] ; then<br />
            string="Create Loop File Successful"<br />
            echo $string<br />
            gui-echo $pointX $pointY "$string"<br />
        else<br />
            #pointY=$(($pointY + $height))<br />
            pointY=$(($pointY + $height + $height))<br />
            string="--> Create Loop File Fail! Exit!"<br />
            echo $string<br />
            gui-echo $pointX $pointY "$string"<br />
            exit 0<br />
        fi<br />
    fi<br />
    pointY=$(($pointY + $height))<br />
<br />
    string="Format Loop File ..."<br />
    echo $string<br />
    gui-echo $pointX $pointY "$string"<br />
    #pointY=$(($pointY + $height))<br />
<br />
    mkdosfs /mnt/mtd/vfat.bin<br />
<br />
    if [ $? -ne 0 ] ; then<br />
        #pointY=$(($pointY + $height))<br />
        pointY=$(($pointY + $height + $height))<br />
        string="--> Format Loop File Fail! Exit!"<br />
        echo $string<br />
        gui-echo $pointX $pointY "$string"<br />
        exit 0<br />
    else<br />
        string="Format Loop File Successful"<br />
        echo $string<br />
        gui-echo $pointX $pointY "$string"<br />
    fi<br />
    <br />
    if [ -d ${SDCARD}/script/DemoFile ] || [ -d ${SDCARD}/script/pre_local_disk ] ; then<br />
 #       pointY=$(($pointY + $height))<br />
<br />
        losetup /dev/loop/0 /mnt/mtd/vfat.bin<br />
        if [ $? -ne 0 ] ; then<br />
            pointY=$(($pointY + $height))<br />
            string="--> losetup Fail! Exit!"<br />
            echo $string<br />
            gui-echo $pointX $pointY "$string"<br />
            exit 0<br />
        fi<br />
        mkdir /LocalDisk<br />
        mount -o iocharset=gb2312 -t vfat /dev/loop/0  /LocalDisk<br />
        if [ $? -ne 0 ] ; then<br />
            pointY=$(($pointY + $height))<br />
            string="--> mount /dev/loop/0 to /LocalDisk Fail! Exit!"<br />
            echo $string<br />
            gui-echo $pointX $pointY "$string"<br />
            exit 0<br />
        fi<br />
        <br />
        if [ -d ${SDCARD}/script/DemoFile ] ; then<br />
            string="Now Copy Demo Files to User Space, Please wait ......"<br />
            echo $string<br />
            gui-echo $pointX $pointY "$string"<br />
        <br />
            cp -a ${SDCARD}/script/DemoFile /LocalDisk<br />
<br />
            string="Copy Demo Files to User Space complete"<br />
            echo $string<br />
            gui-echo $pointX $pointY "$string"<br />
        fi<br />
        <br />
        if [ -d ${SDCARD}/script/pre_local_disk ] ; then<br />
            string="Now Copy Files to User Space, Please wait ......"<br />
            echo $string<br />
            gui-echo $pointX $pointY "$string"<br />
            <br />
            cp -a ${SDCARD}/script/pre_local_disk/*  /LocalDisk<br />
            <br />
            string="Copy Files to User Space complete"<br />
            echo $string<br />
            gui-echo $pointX $pointY "$string"<br />
        fi<br />
        <br />
        chmod 777 -R /LocalDisk<br />
        sync<br />
        umount /LocalDisk<br />
        if [ $? -ne 0 ] ; then<br />
            pointY=$(($pointY + $height))<br />
            string="--> umount LocalDisk Fail! Exit!"<br />
            echo $string<br />
            gui-echo $pointX $pointY "$string"<br />
            exit 0<br />
        fi   <br />
        losetup -d /dev/loop/0<br />
        if [ $? -ne 0 ] ; then<br />
            pointY=$(($pointY + $height))<br />
            string="--> losetup -d /dev/loop/0 Fail! Exit!"<br />
            echo $string<br />
            gui-echo $pointX $pointY "$string"<br />
            exit 0<br />
        fi<br />
    fi<br />
    <br />
    chmod 777 -R /mnt/mtd<br />
    sync<br />
    umount /mnt/mtd<br />
<br />
    if [ $? -ne 0 ] ; then<br />
        pointY=$(($pointY + $height + $height))<br />
        string="Unmount User Space Fail! Exit!"<br />
        echo $string<br />
        gui-echo $pointX $pointY "$string"<br />
        exit 0<br />
    fi<br />
<br />
    pointY=$(($pointY + $height + $height))<br />
else<br />
#### --- Not Exit ${SDCARD}/script/driver/g_file_storage.ko ----<br />
    if [ -d ${SDCARD}/script/DemoFile ] || [ -d ${SDCARD}/script/pre_local_disk ] ; then<br />
        string="Erase User Space......"<br />
        echo $string<br />
        gui-echo $pointX $pointY "$string"<br />
        #pointY=$(($pointY + $height))<br />
<br />
        flash_eraseall /dev/mtd12<br />
<br />
        if [ $? -ne 0 ] ; then<br />
            #pointY=$(($pointY + $height))<br />
            pointY=$(($pointY + $height + $height))<br />
            string="--> Erase User Space Fail! Exit!"<br />
            echo $string<br />
            gui-echo $pointX $pointY "$string"<br />
            exit 0<br />
        else<br />
            string="Erase User Space OK"<br />
            echo $string<br />
            gui-echo $pointX $pointY "$string"<br />
        fi<br />
        #pointY=$(($pointY + $height))<br />
        mount -t yaffs2 /dev/mtdblock12 /mnt/mtd<br />
<br />
        if [ $? -ne 0 ] ; then<br />
            #pointY=$(($pointY + $height))<br />
            pointY=$(($pointY + $height + $height))<br />
            string="--> Mount User Space Fail! Exit!"<br />
            echo $string<br />
            gui-echo $pointX $pointY "$string"<br />
            exit 0<br />
        else<br />
            string="Mount User Space OK"<br />
            echo $string<br />
            gui-echo $pointX $pointY "$string"<br />
        fi<br />
<br />
        pointY=$(($pointY + $height))<br />
        <br />
        if [ -d ${SDCARD}/script/DemoFile ] ; then<br />
            string="Now Copy Demo Files to User Space, Please wait ......"<br />
            echo $string<br />
            gui-echo $pointX $pointY "$string"<br />
        <br />
            cp -a ${SDCARD}/script/DemoFile /mnt/mtd<br />
        <br />
            string="Copy Demo Files to User Space complete"<br />
            echo $string<br />
            gui-echo $pointX $pointY "$string"<br />
        fi<br />
        <br />
        if [ -d ${SDCARD}/script/pre_local_disk ] ; then<br />
            string="Now Copy Files to User Space, Please wait ......"<br />
            echo $string<br />
            gui-echo $pointX $pointY "$string"<br />
            <br />
            cp -a ${SDCARD}/script/pre_local_disk/*  /mnt/mtd<br />
            <br />
            string="Copy Files to User Space complete"<br />
            echo $string<br />
            gui-echo $pointX $pointY "$string"<br />
        fi<br />
        <br />
        chmod 777 -R /mnt/mtd<br />
        sync<br />
        umount /mnt/mtd<br />
        <br />
        if [ $? -ne 0 ] ; then<br />
            pointY=$(($pointY + $height + $height))<br />
            string="Unmount User Space Fail! Exit!"<br />
            echo $string<br />
            gui-echo $pointX $pointY "$string"<br />
            exit 0<br />
        fi<br />
<br />
        pointY=$(($pointY + $height + $height))<br />
    fi<br />
fi<br />
<br />
<br />
# -----> End Operate User Space <---- #<br />
<br />
echo 0 > /proc/boot-splash<br />
cleanlcd<br />
remove_sd<br />
#string="All Update successful... waiting for remove SD Card"<br />
#echo $string<br />
#gui-echo $pointX $pointY "$string"<br />
#pointY=$(($pointY + $height))<br />
<br />
string="Please remove SD Card ......"<br />
while [ -x /bin/ls ]<br />
do<br />
    if [ -x ${SDCARD}/script/update.sh ] ; then<br />
        echo $string<br />
#        gui-echo $pointX $pointY "$string"<br />
        sleep 1       <br />
    else<br />
        break<br />
    fi<br />
done<br />
<br />
#pointY=$(($pointY + $height))<br />
<br />
cleanlcd<br />
hint_shutdown<br />
string="Power off..."<br />
echo $string<br />
#gui-echo $pointX $pointY "$string"<br />
poweroff
if someone knows what they are doing here your help would be much appreciated i have tried all sorts with this file
)thank you
)
See less See more
Hi All

I have a similar problem.

I am unable to find a ROM that works for my device, I think it is a flytouch clone but I have tried all roms I can find.
All either say "Maybe the kernel don`t support this NAND Flash" or "can not find udisk /dev/sda"

Using a ROM that states "Maybe the kernel don't support this NAND Flash"
I did the alteration that mammlouk suggested however it is unable to mount the device.

So, it looks like I am unable to access the NAND.

I have once desoldered the NAND and plugged it direct into a Xandros linux pc, and I am able to see all the partitions on the device. I have since re-attached it to the tab.

So, what to do next...
I could remove NAND again, then remove all partitions on NAND and then re-attach, then retry the flash. Does anyone think this could resolve the problem?

Other than this it sounds like it could be a replacement NAND required
Does anyone know what requirements there are for the USB NAND replacement?

Could this be a driver issue instead?

Is there a way of echo'ing the devices to the screen?
This would show me if either /dev/sda or /dev/mtdblock9 even exists.

Any help much appreciated.
Thanks
Freddy
See less See more
O.k. that's good, it means that your nand is mountable, but for some reason flash_eraseall isn't completing successfully. What you can do is keep the flash_erase code and the accompanying verification cases commented out, delete the code I had you add between lines 65 and 66, then add the following starting on line 67 (after "fi").
Code:
pointY=$(($pointY + $height))string=&quot;--> Erase File-System ......&quot;echo $stringgui-echo $pointX $pointY &quot;$string&quot;rm -rf /mnt/mtdif [ $? -ne 0 ] ; then	string=&quot;Erase File-System Fail! Exit!&quot;echo $stringgui-echo $pointX $pointY &quot;$string&quot;exit 0else	string=&quot;Erase File-System OK!echo $stringgui-echo $pointX $pointY &quot;$string&quot;fi
The bbcode is adding some extra line breaks, so makse sure you don't have any after the "then" or the "else". It also changed my greater than symbol in the first string line to ">", so make sure you fix that too. That should hopefully get the flash to complete for you.
hello
I have followed your instructions, and when i start my 7inch Android MID (thats all I know about it) I makes it to "Prepare update files... and hangs.
Any suggestions?

Thanks LB
21 - 28 of 28 Posts
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top