2013年9月24日 星期二

BaudRate setting for u-boot and kernel on i.mx6

gedit /root/project_board/free_imx/myandroid/bootable/bootloader/uboot-imx/include/configs/mx6_matrix_common.h
//#define CONFIG_BAUDRATE               115200 //by stone
#define CONFIG_BAUDRATE                  460800

gedit /root/project_board/free_imx/myandroid/bootable/bootloader/uboot-imx/include/config_fallbacks.h
//#define CONFIG_SYS_BAUDRATE_TABLE    { 9600, 19200, 38400, 57600, 115200 } //by stone
#define CONFIG_SYS_BAUDRATE_TABLE    { 9600, 19200, 38400, 57600, 115200, 230400, 460800 }

gedit /root/project_board/free_imx/myandroid/bootable/bootloader/uboot-imx/drivers/serial/serial.c
//function on_baudrate
/*if ((flags & H_INTERACTIVE) != 0)
    while (1)
    {
        if (getc() == '\r')
            break;
    }*/

/////////////////////////////////////////////////////////////////////////////////////////
//open A terminal
./agent-proxy 4440^4441 0 /dev/ttyUSB0,115200
//open B terminal
~#telnet localhost 4440

//in uboot console
=>setenv baudrate 460800

close A terminal
close B terminal

open A terminal
./agent-proxy 4440^4441 0 /dev/ttyUSB0,460800
open B terminal
~#telnet localhost 4440

=>setenv bootargs 'console=ttymxc0,460800 kgdboc=ttymxc0,460800 init=/init video=mxcfb0:dev=ldb,bpp=32 video=mxcfb1:dev=hdmi,1920x1080M@60,if=RGB24,bpp=32 video=mxcfb2:off video=mxcfb3:off vmalloc=400M androidboot.console=ttymxc0 consoleblank=0 androidboot.hardware=freescale cma=384M mem=1G androidboot.serialno=0c0c81d4df647284'
=>saveenv
=>boot

沒有留言:

張貼留言