* Redboot console on ep93xx
@ 2004-10-25 14:39 Manfred Gruber
2004-10-25 14:55 ` Gary Thomas
0 siblings, 1 reply; 3+ messages in thread
From: Manfred Gruber @ 2004-10-25 14:39 UTC (permalink / raw)
To: ecos-devel
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Redboot console on ep93xx
2004-10-25 14:39 Redboot console on ep93xx Manfred Gruber
@ 2004-10-25 14:55 ` Gary Thomas
2004-10-26 0:01 ` [ECOS] Bluetooth Stack
0 siblings, 1 reply; 3+ messages in thread
From: Gary Thomas @ 2004-10-25 14:55 UTC (permalink / raw)
To: Manfred Gruber; +Cc: eCos development, eCos Discussion
On Mon, 2004-10-25 at 08:37, Manfred Gruber wrote:
> 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
You should not have to make these changes at all. Simply set
CYGPKG_REDBOOT_ANY_CONSOLE to 0/false
so RedBoot will only use a single console device. Then set
CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL to 1
for your desired channel.
That's the whole idea behind the configuration system - source code
changes should not be required to make simple choices like this.
BTW - where did you get this port? It's not part of the public CVS.
Finally, this question really belongs on the eCos discussion list which
is for discussing questions and issues about using eCos. The eCos
development list is really for discussing changes to the eCos sources.
--
Gary Thomas <gary@mlbassoc.com>
MLB Associates
^ permalink raw reply [flat|nested] 3+ messages in thread
* [ECOS] Bluetooth Stack
2004-10-25 14:55 ` Gary Thomas
@ 2004-10-26 0:01 `
0 siblings, 0 replies; 3+ messages in thread
From: @ 2004-10-26 0:01 UTC (permalink / raw)
Cc: eCos development, eCos Discussion
Hello!
Anyone using a bluetooth stack on eCos?
I'm working on my Engineering final degree project and I need to use it to
implement wireless access to a generic embedded system.
Thank you very much.
Regards from Portugal.
Gonçalo Antunes.
gmma@gmma.net
----- Original Message -----
From: "Gary Thomas" <gary@mlbassoc.com>
To: "Manfred Gruber" <gruber.m@utanet.at>
Cc: "eCos development" <ecos-devel@ecos.sourceware.org>; "eCos Discussion"
<ecos-discuss@ecos.sourceware.org>
Sent: Monday, October 25, 2004 3:53 PM
Subject: [ECOS] Re: Redboot console on ep93xx
> On Mon, 2004-10-25 at 08:37, Manfred Gruber wrote:
>> 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
>
> You should not have to make these changes at all. Simply set
> CYGPKG_REDBOOT_ANY_CONSOLE to 0/false
> so RedBoot will only use a single console device. Then set
> CYGNUM_HAL_VIRTUAL_VECTOR_CONSOLE_CHANNEL to 1
> for your desired channel.
>
> That's the whole idea behind the configuration system - source code
> changes should not be required to make simple choices like this.
>
> BTW - where did you get this port? It's not part of the public CVS.
>
> Finally, this question really belongs on the eCos discussion list which
> is for discussing questions and issues about using eCos. The eCos
> development list is really for discussing changes to the eCos sources.
>
> --
> Gary Thomas <gary@mlbassoc.com>
> MLB Associates
>
>
> --
> Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
> and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-10-26 0:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-10-25 14:39 Redboot console on ep93xx Manfred Gruber
2004-10-25 14:55 ` Gary Thomas
2004-10-26 0:01 ` [ECOS] Bluetooth Stack
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).