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.

configure the MLO,u-boot.img for beaglebone to use uart2 for debug messages

Hi, 

           i need to configure u-boot-2013.01.rc2 for beaglebone to boot on uart2 ,i am not understanding the codeflow of beaglebone for initialize  
 the pinmux for uart2.
 first i need to understand the codeflow for beaglebone then only i can change the all required files of pinmux as per my requirment. 

Can you please tell me which are the files i need to change? 

I checked the file include/configs/am335x_evm.h and also in board/ti/am335x directory the mux.c is there,but i didn't  understand the codeflow properly? 

Please help me out? 


Regards 
Pavan   
  • You need to change the Serialconsole index & com port in include/configs/am335x_evm.h & the uart base in arch/arm/cpu/armv7/am33xx/board.c. Also make sure the UART 2 pinmux & clock is setup properly.

    Some of the stuff to check in

    CONFIG_SYS_NS16550_COM1

    CONFIG_SERIAL1

     CONFIG_CONS_INDEX

  • Thanks Gururaja,

    I want to use uart2 as my serial console,following are the changes i did in the  include/configs/am335x_evm.h 

    CONFIG_SYS_NS16550_COM3    0x48024000

    CONFIG_SERIAL1                  3

     CONFIG_CONS_INDEX       3

    i also changed the mux setting in board/ti/am335x/mux.c

    {OFFSET(spi0_sclk), MODE(1) | PULLUDEN | RXACTIVE}, /*SPI0_SCLK */ 
    {OFFSET(spi0_d0), MODE(1) | PULLUDEN }, /*SPI0_D0 */ 

    but its oard still not booting on uart2.....

    can u please tell me ...what i am missing ?

    Regards

    Pavan


  • finally my MLO and u-boot.img  are booting on uart2....but my kernel uImage is not booting on uart2....as per my understanding kernel is using uart0 as default console...so i decided to compile new kernel,i compiling the new kernel for my board...i changed the file arch/arm/configs/am335x_evm_deconfig 

    #
    # Boot options
    #
    CONFIG_USE_OF=y
    CONFIG_ZBOOT_ROM_TEXT=0x0
    CONFIG_ZBOOT_ROM_BSS=0x0
    # CONFIG_ARM_APPENDED_DTB is not set
    CONFIG_CMDLINE="root=/dev/mmcblk0p2 rootwait console=ttyO2,115200"
    CONFIG_CMDLINE_FROM_BOOTLOADER=y

    and created the uImage but still my kernel is using  uart0.

    help me out?

  • by saying "still my kernel is using  uart0", if you mean kernel shows console login on uart0 & not on uart2, it could be a different issue. Since Filesystem puts login prompt on all available consoles, it might be putting console on uart2.

    However, if uart 2 is not configured properly (pinmux, uart 2 clock) then you might not see the console.

    Just one info. Are you able to boot uboot on uart2.

  • I have two setup 

    1.u-boot configure for uart0

          u-boot and kernel image are booting on uart0.

    2.u-boot configure for uart2

        In the second setup u-boot is booting on uart0,but kernel image is booting on uart0,not on uart2.

    which are the files in kernel source code i need change for kernel to boot on uart2.