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.

dm385 kernel 中console 配置问题



uboot 中serial配置:

           /*
           * select serial console configuration
           */
           #define CONFIG_SERIAL1 3
           #define CONFIG_CONS_INDEX 3
           #define CONFIG_SYS_CONSOLE_INFO_QUIET

uboot 可以正常启动,启动后设置bootagrs 如下:

           setenv bootargs 'console=ttyO2,115200n8 rootwait=1 rw ubi.mtd=4,2048 rootfstype=ubifs root=ubi0:rootfs init=/init mem=80M vram=4M                          notifyk.vpssm3_sva=0xBFD00000 ip=192.168.1.168 cmemk.phys_start=0x85000000 cmemk.phys_end=0x89000000 cmemk.allowOverlap=1 eth=00:0c:0c:a0:02:b2 earlyprintk'

           setenv bootcmd 'mmc rescan 0; fatload mmc 0 0x81000000 uImage; bootm 0x81000000'

           boot

boot后可以正常下载uImage,校验通过 ,但是串口输出停留在 start kernel ...  led灯也正常闪烁,  怀疑是kernel中console 配置错误,但是在board-dm385ipnc.h中未找到serial相关的 端口 频率 gpio使能等配置,请问具体配置一般在什么文件下面?

  • 如果怀疑串口配置问题

    可以在局域网内其他机器  telnet 上去

  • 请参考下面的wiki网站。
    http://processors.wiki.ti.com/index.php/TI81xx_PSP_Porting_Guide#Using_different_UART_than_the_default_EVM_configuration_as_console

  •  我根据文档中的提示配置的board-dm385.h中board-mux 如下:

    #ifdef CONFIG_OMAP_MUX
    static struct omap_board_mux board_mux[] __initdata = {

    //TI814X_MUX(VOUT1_B_CB_C7, OMAP_MUX_MODE5), /* Set up pin as TXD */  
    //TI814X_MUX(VOUT1_B_CB_C6, OMAP_MUX_MODE5), /* Set up pin as RXD */

    TI814X_MUX(VOUT1_B_CB_C1, OMAP_MUX_MODE5), /* Set up pin as TXD */
    TI814X_MUX(VOUT1_B_CB_C0, OMAP_MUX_MODE5), /* Set up pin as RXD */

    { .reg_offset = OMAP_MUX_TERMINATOR },
    };
    #else
    #define board_mux NULL
    #endif

    bootargs 设置为:

    setenv bootargs 'console=ttyO2,115200n8 rootwait=1 rw ubi.mtd=4,2048 rootfstype=ubifs root=ubi0:rootfs init=/init mem=80M vram=4M notifyk.vpssm3_sva=0xBFD00000 ip=192.168.1.168 cmemk.phys_start=0x85000000 cmemk.phys_end=0x89000000 cmemk.allowOverlap=1 eth=00:0c:0c:a0:02:b2 earlyprintk'

    仍然停留在start kernel ...   , 未打印Uncompressing Linux... done, booting the kernel.这一句 。

    请问是否我的配置中哪里有遗漏的,还是错误的,

    另外 

    MLB_SIG
    MLB_CLK
    DCAN0_TX
    DCAN0_RX
    MMC2_DAT7
    MMC2_DAT6

    这几个里面都有uart2 相关的 ,不知道是否是我配置错了。