public inbox for ecos-devel@sourceware.org
 help / color / mirror / Atom feed
From: Manfred Gruber <gruber.m@utanet.at>
To: ecos-devel@sources.redhat.com
Subject: Redboot console on ep93xx
Date: Mon, 25 Oct 2004 14:39:00 -0000	[thread overview]
Message-ID: <200410251637.26649.gruber.m@utanet.at> (raw)

Hi !

I use a ep9315 board

I want to change in in the redboot bootloader the console. Now it is 
configured on the first serial port. How do i change this to the second 
serial port?

I found out that this is done in  
ecos-2.0/packages/hal/arm/arm9/ep93xx/v2_0/src/hal_diag.c:

I changed what i thought would be correct, but i does not work:

static void
cyg_hal_plf_serial_init(void)
{
    hal_virtual_comm_table_t* comm;
    int cur = 
CYGACC_CALL_IF_SET_CONSOLE_COMM(CYGNUM_CALL_IF_SET_COMM_ID_QUERY_CURRENT);

    // Init channels
    // TODO shouldn't this be default value, not 0?
-->    //cyg_hal_plf_serial_init_channel(&ep9312_ser_channels[0]);
-->         cyg_hal_plf_serial_init_channel(&ep9312_ser_channels[1]);
    
    // Setup procs in the vector table
    // Set channel 0
-->     //CYGACC_CALL_IF_SET_CONSOLE_COMM(0);
    // Set channel 1
-->     CYGACC_CALL_IF_SET_CONSOLE_COMM(1);
    comm = CYGACC_CALL_IF_CONSOLE_PROCS();
    //Contec hypercontrol micro9 change to 1
-->     //CYGACC_COMM_IF_CH_DATA_SET(*comm, &ep9312_ser_channels[0]);
-->     CYGACC_COMM_IF_CH_DATA_SET(*comm, &ep9312_ser_channels[1]);
    
    CYGACC_COMM_IF_WRITE_SET(*comm, cyg_hal_plf_serial_write);
    CYGACC_COMM_IF_READ_SET(*comm, cyg_hal_plf_serial_read);
    CYGACC_COMM_IF_PUTC_SET(*comm, cyg_hal_plf_serial_putc);
    CYGACC_COMM_IF_GETC_SET(*comm, cyg_hal_plf_serial_getc);
    CYGACC_COMM_IF_CONTROL_SET(*comm, cyg_hal_plf_serial_control);
    CYGACC_COMM_IF_DBG_ISR_SET(*comm, cyg_hal_plf_serial_isr);
    CYGACC_COMM_IF_GETC_TIMEOUT_SET(*comm, cyg_hal_plf_serial_getc_timeout);

    // Restore original console
    CYGACC_CALL_IF_SET_CONSOLE_COMM(cur);
}

Maybe someone has done this already, or there is a config option missing.
Thanks for help
regrds manfred

             reply	other threads:[~2004-10-25 14:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-25 14:39 Manfred Gruber [this message]
2004-10-25 14:55 ` Gary Thomas
2004-10-26  0:01   ` [ECOS] Bluetooth Stack 

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200410251637.26649.gruber.m@utanet.at \
    --to=gruber.m@utanet.at \
    --cc=ecos-devel@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).