This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

求教!am335x Matrix GUI 启动问题!!!



请教大家,am335x 在做系统移植时候,uboot,kernel,ubi.img 等可正常烧入nand 。

从打印信息看,系统也可以起来,能跑到:

但开发板屏幕,在启动过程中有画面的,但到最后却一直黑屏。

最后显示的错误提示信息:Starting Matrix GUI application/etc/init.d/matrix-gui-2.0: line 60: can't create /var/run/matrix-gui-2.0.pid: nonexistent directory
.
麻烦大家,帮忙看看!非常感谢!

  • 你好,

    你在做文件系统的时候,有对之前的文件系统做裁剪么还是做了什么其他改动?

  • 先谢谢你的关注!

    在做文件系统时候,基本上没做改动,都是按照Ti 的文档来操作的。

    唯一改动,就是把 启动脚本matrix-gui-2.0中,触摸屏校准那部分给去掉了。

    去掉的部分:

    # Do not try to calibrate the touchscreen if it doesn't exist.

    if [ -e /dev/input/touchscreen0 ]
    then
    export QWS_MOUSE_PROTO=Tslib:/dev/input/touchscreen0
    # Check if the SD card is mounted and the first partition is
    # vfat. If so let's write the pointercal file there so that if
    # someone messes up calibration they can just delete the file from
    # any system and reboot the board.
    mount | grep /media/mmcblk0p1 | grep vfat > /dev/null 2>&1
    if [ "$?" = "0" ]
    then
    tsfile=/media/mmcblk0p1/pointercal
    export TSLIB_CALIBFILE=$tsfile
    fi

    if [ ! -f $tsfile ] ; then
    echo -n "Calibrating touchscreen (first time only)"
    ts_calibrate
    echo "."
    # If we create a pointercal file and it was not in /etc/pointercal
    # let's copy it there as well if it does not already exist.
    if [ ! -f /etc/pointercal -a -f $tsfile ]
    then
    cp $tsfile /etc/pointercal
    fi
    fi
    fi

  • 你把你去掉的部分,加回去,还可以正常启动吗?

  • 好像还是不行。

    按你提示的,我把上边去掉部分,重新加入那个matrix 的启动脚本中。断电后启动,在最后,确实有了让我校准的过程。

    但在校准后,又出现了那行错误提示:

     2012-04-11 08:30:34: (log.c.166) server started 
    Calibrating touchscreen (first time only)xres = 800, yres = 480
    Took 82 samples...
    Top left : X =  680 Y =  313
    Took 60 samples...
    Top right : X =  663 Y = 3742
    Took 60 samples...
    Bot right : X = 3544 Y = 3731
    Took 57 samples...
    Bot left : X = 3550 Y =  298
    Took 54 samples...
    Center : X = 2088 Y = 1993
    -13.086182 0.000910 0.204014
    -39.050385 0.132147 0.000437
    Calibration constants: -857616 59 13370 -2559206 8660 28 65536 
    .
    /
    Starting Matrix GUI application/etc/rc5.d/S97matrix-gui-2.0: line 86: can't create /var/run/matrix-gui-2.0.pid: nonexistent directory
    .
    ***************************************************************
    再次断电重启,没有了校准过程,但“Starting Matrix GUI application/etc/rc5.d/S97matrix-gui-2.0: line 86: can't create /var/run/matrix-gui-2.0.pid: nonexistent directory”的提示还在,屏幕最后还是一直黑屏。
    谢谢关注!
    .
  • 实在不好意思,有一点忘记说明了。

    我们做了好几块开发板的,现在都是在调试nand 启动的。其中只有两片一直出现这种最后黑屏情况。

    这两片跟其他的唯一不同之处是,这两片板子的nand 中出现了两个坏块。而且这些坏块又无法用“nand scrub.chip”擦除的。

    但这两片板子能像其他正常板子那样,正常烧录uboot ,kernel,ubi 的。而且像上边描述的,系统能够起来,只是在最后显示.....

    请知悉!谢谢了!

  • 可不可以通过调试串口进去看看系统现在运行在什么问题

    是崩溃了,还是在正常运行?

    坏块会带来许多意想不到的问题,这点需要引起注意

  • 实际上U-boot中的nand 命令已经包含了坏块处理功能,除非是你的NAND坏块多到已经不能继续使用了,但是这种情况一般是NAND擦除了成千上万次以后才会出现的。

  • 嗯,从串口打印信息来看,系统已经完全跑起来,按提示输入密码,能进入系统并操作里边的文件等。仅是屏幕黑屏。

  • 你好!

    理论上讲,nand 存在坏块,像你说的只要不是大量的坏块,应该是不会影响正常使用的。但这两块问题板子,跟其他唯一的区别就是nand 有两个擦不掉的坏块。其他还能有什么能引起这个错误提示。

  • 应该是Android系统从文件系统中读取某个关键性的系统文件失败,导致黑屏。

    如果其他的板子都能正常启动,那么和软件没有关系。U-boot中的命令如果已经不能正常的处理NAND 坏块,那么我怀疑NAND是不是有什么物理上的损坏了,比如焊接的时候搞坏了

  • chocolate han 说:

    你好!

    理论上讲,nand 存在坏块,像你说的只要不是大量的坏块,应该是不会影响正常使用的。但这两块问题板子,跟其他唯一的区别就是nand 有两个擦不掉的坏块。其他还能有什么能引起这个错误提示。

    nand出现坏块是正常的现象,ubi等会标识出坏块的地方,最好能给出出错的具体log信息进行调试。

  • 我需要楼主一样的问题。有时启动黑,有时又能成功显示。  问教一下楼主您这个问题解决了没有