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.

Disabling console on UART1, AM1808, SBC8018

Other Parts Discussed in Thread: DA8XX, AM1808

Hi everyone,

I am new in embbeded programming and I don't know a lot of things but I want to learn it. Therefore, I want to enable all 3 UART ports on my board (one UART port with 5 pins and two UART ports with 3 pins).

I followed this patch: http://arago-project.org/git/projects/?p=linux-omapl1.git;a=commitdiff_plain;h=08824c950521a1dd842349f8076340f97223495e

When I compiled kernel with this changes (and configured menuconfig), I can see console on two computers. I want to disable console on UART1 totaly. When I delete "ret = da8xx_pinmux_setup(da850_uart1_pins);" from my kernel and build, I can't read data from UART1. When I press some button on my keyboard (on the PC which is connected with board over UART1), SBC8018 board detect interrupt but I can't read buffer from "UART1_RXD" pin.

I am working on SBC8018 board with AM1808 chip.

I hope this is understandable explanation of my problem and any help is welcome.


Thanks,

Vladimir

  • Hi Vladimir,

    Please specify the Linux SDK version and Linux Kernel version.

    Regards,
    Balaji N

  • Balaji sorry for waiting answer...

    I'm using Linux 03.20.00.14 (Linux 2.6.33).

    Regards,

    Vladimir G.

                             

  • Balaji,

    I have solved the problem. Solution is in the "inittab" file in "/etc/" folder on file system on the board. My "inittab" looks like:

    # /etc/inittab: init(8) configuration.
    # $Id: inittab,v 1.91 2002/01/25 13:35:21 miquels Exp $

    # The default runlevel.
    id:5:initdefault:

    # Boot-time system configuration/initialization script.
    # This is run first except when booting in emergency (-b) mode.
    si::sysinit:/etc/init.d/rcS

    # What to do in single-user mode.
    ~~:S:wait:/sbin/sulogin

    # /etc/init.d executes the S and K scripts upon change
    # of runlevel.
    #
    # Runlevel 0 is halt.
    # Runlevel 1 is single-user.
    # Runlevels 2-5 are multi-user.
    # Runlevel 6 is reboot.

    l0:0:wait:/etc/init.d/rc 0
    l1:1:wait:/etc/init.d/rc 1
    l2:2:wait:/etc/init.d/rc 2
    l3:3:wait:/etc/init.d/rc 3
    l4:4:wait:/etc/init.d/rc 4
    l5:5:wait:/etc/init.d/rc 5
    l6:6:wait:/etc/init.d/rc 6
    # Normally not reached, but fallthrough in case of emergency.
    z6:6:respawn:/sbin/sulogin
    # /sbin/getty invocations for the runlevels.
    #
    # The "id" field MUST be the same as the last
    # characters of the device (after "tty").
    #
    # Format:
    # <id>:<runlevels>:<action>:<process>
    #

    # 1:2345:respawn:/sbin/getty 38400 tty1

    #S0:2345:respawn:/sbin/getty 115200 ttyS0
    #S1:2345:respawn:/sbin/getty 115200 ttyS1
    S2:2345:respawn:/sbin/getty 115200 ttyS2


    If you want to disable console on specific UART port you need to comment out that port in the "inittab" file. I'm wanted to disable console on UART0 and UART1 so I added "#" at the beginning of the line.

    You can change it if you copy this file with command in command line "cp /etc/inittab <location on your SD card>". Then you open this file, for instance with "Notepad++" and add "#" at the begining of the line.

    I hope it will help someone...

    Regards,

    Vladimir