public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] U-BOOT and UART TX with interrupts (need help please)
@ 2007-09-26  8:50 veter
  2007-09-26  9:04 ` Wolfgang Denk
  0 siblings, 1 reply; 11+ messages in thread
From: veter @ 2007-09-26  8:50 UTC (permalink / raw)
  To: u-boot


Hello friends!
We have troubles, need you help, please
We usage Linux for develop and GCC.

Our program based on U-BOOT and we need transmit data at UART-TX with
interrupts.

But, as we understand, U-BOOT do not have "API" for correct realization
Interrupts, we fount in cpu/bf532/serial.c each initialization with as-be
usage Interrupts, but not used it, because only doing looping ISR register
on FLAG IRQ_UART_TX_BIT.
It is not correct usage Interrupts. We need full usage interrupts.
In /examples/ each examples with realization but for other CPU, not under
BlackFin.
May be you know or have examples?

May be correct write our programs as standalone and run her from workspace
U-BOOT?

Help please do victory at this our troubles...!

.

----------------------------------------------------------------------
Stanislav G. Prihodko ( ICQ #83332014 )
[www.projects.org.ua] + [www.klug.org.ua]
-- 
View this message in context: http://www.nabble.com/U-BOOT-and-UART-TX-with-interrupts-%28need-help-please%29-tf4520884.html#a12896654
Sent from the Uboot - Users mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [U-Boot-Users] U-BOOT and UART TX with interrupts (need help please)
  2007-09-26  8:50 [U-Boot-Users] U-BOOT and UART TX with interrupts (need help please) veter
@ 2007-09-26  9:04 ` Wolfgang Denk
  2007-09-26 10:02   ` veter
  0 siblings, 1 reply; 11+ messages in thread
From: Wolfgang Denk @ 2007-09-26  9:04 UTC (permalink / raw)
  To: u-boot

In message <12896654.post@talk.nabble.com> you wrote:
> 
> Our program based on U-BOOT and we need transmit data at UART-TX with
> interrupts.

What makes you think you need interrupts? U-Boot is  strictly  single
tasking,  so  it will not do anything else anyway while transmitting,
and even a very slow CPU should be capable  of  streaming  characters
out or an UART then.

> But, as we understand, U-BOOT do not have "API" for correct realization
> Interrupts, we fount in cpu/bf532/serial.c each initialization with as-be
> usage Interrupts, but not used it, because only doing looping ISR register
> on FLAG IRQ_UART_TX_BIT.

Indeed polling is all you need.

> It is not correct usage Interrupts. We need full usage interrupts.

What makes you think so? Interrupts will not give you any advantages.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
People with narrow minds usually have broad tongues.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [U-Boot-Users] U-BOOT and UART TX with interrupts (need help please)
  2007-09-26  9:04 ` Wolfgang Denk
@ 2007-09-26 10:02   ` veter
  2007-09-26 12:25     ` Jerry Van Baren
  2007-09-26 12:38     ` Stanislav G. Prihodko
  0 siblings, 2 replies; 11+ messages in thread
From: veter @ 2007-09-26 10:02 UTC (permalink / raw)
  To: u-boot



I greet you!
It is hope for your help!

The fact is that we have decided to base / Platform U-BOOT make its program
to develop so it is ready realizovanno many software tools.

Interruption we need to make our CPU BlackFin we can use with DMA capability
and maximize productivity gains.

Core, we want to use and abandonment of the CPU and DMA (BlackFin 532).
In fact, we will have passed a very big massyvy in UART and use DMA, we will
win big, because 90% of CPU performance will be employed mathematical
calculations.

For that reason has much to use the lack of interruption, please help!



wd wrote:
> 
> In message <12896654.post@talk.nabble.com> you wrote:
>> 
>> Our program based on U-BOOT and we need transmit data at UART-TX with
>> interrupts.
> 
> What makes you think you need interrupts? U-Boot is  strictly  single
> tasking,  so  it will not do anything else anyway while transmitting,
> and even a very slow CPU should be capable  of  streaming  characters
> out or an UART then.
> 
>> But, as we understand, U-BOOT do not have "API" for correct realization
>> Interrupts, we fount in cpu/bf532/serial.c each initialization with as-be
>> usage Interrupts, but not used it, because only doing looping ISR
>> register
>> on FLAG IRQ_UART_TX_BIT.
> 
> Indeed polling is all you need.
> 
>> It is not correct usage Interrupts. We need full usage interrupts.
> 
> What makes you think so? Interrupts will not give you any advantages.
> 
> Best regards,
> 
> Wolfgang Denk
> 
> 

-- 
View this message in context: http://www.nabble.com/U-BOOT-and-UART-TX-with-interrupts-%28need-help-please%29-tf4520884.html#a12897695
Sent from the Uboot - Users mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [U-Boot-Users] U-BOOT and UART TX with interrupts (need help please)
  2007-09-26 10:02   ` veter
@ 2007-09-26 12:25     ` Jerry Van Baren
  2007-09-26 12:49       ` Stanislav G. Prihodko
  2007-09-26 12:38     ` Stanislav G. Prihodko
  1 sibling, 1 reply; 11+ messages in thread
From: Jerry Van Baren @ 2007-09-26 12:25 UTC (permalink / raw)
  To: u-boot

veter wrote:
> wd wrote:
>> In message <12896654.post@talk.nabble.com> you wrote:
>>> Our program based on U-BOOT and we need transmit data at UART-TX with
>>> interrupts.
>> What makes you think you need interrupts? U-Boot is  strictly  single
>> tasking,  so  it will not do anything else anyway while transmitting,
>> and even a very slow CPU should be capable  of  streaming  characters
>> out or an UART then.
>>
>>> But, as we understand, U-BOOT do not have "API" for correct realization
>>> Interrupts, we fount in cpu/bf532/serial.c each initialization with as-be
>>> usage Interrupts, but not used it, because only doing looping ISR
>>> register
>>> on FLAG IRQ_UART_TX_BIT.
>> Indeed polling is all you need.
>>
>>> It is not correct usage Interrupts. We need full usage interrupts.
>> What makes you think so? Interrupts will not give you any advantages.
>>
>> Best regards,
>>
>> Wolfgang Denk
> 
> I greet you!
> It is hope for your help!
> 
> The fact is that we have decided to base / Platform U-BOOT make its program
> to develop so it is ready realizovanno many software tools.
> 
> Interruption we need to make our CPU BlackFin we can use with DMA capability
> and maximize productivity gains.
> 
> Core, we want to use and abandonment of the CPU and DMA (BlackFin 532).
> In fact, we will have passed a very big massyvy in UART and use DMA, we will
> win big, because 90% of CPU performance will be employed mathematical
> calculations.
> 
> For that reason has much to use the lack of interruption, please help!

Please don't top post.

U-Boot is a boot loader, used to
* Initialize the hardware
* Load an operating system
* Start the operating system running

You are looking for an operating system with interrupts and possibly 
multi-tasking.  U-Boot may be helpful in *loading and starting* your 
operating system, but it is *not* an operating system.  It does not 
normally use, and thus has no support for, interrupts.

Best regards,
gvb

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [U-Boot-Users] U-BOOT and UART TX with interrupts (need help please)
  2007-09-26 10:02   ` veter
  2007-09-26 12:25     ` Jerry Van Baren
@ 2007-09-26 12:38     ` Stanislav G. Prihodko
  2007-09-26 19:12       ` Mike Frysinger
  1 sibling, 1 reply; 11+ messages in thread
From: Stanislav G. Prihodko @ 2007-09-26 12:38 UTC (permalink / raw)
  To: u-boot


	
Here's see, I have reasons why this should be:
... via DMA and interrupt, we must be a mechanism to exchange DMA 
(namely model: 
MEMORY <> MEMORY, 
MEMORY->UART-TX, 
SPI <-> MEMORY)

And if to do so without interruption of use, the program simply will not
work because you need and will be very slow!
Therefore, a mechanism is needed to process the interruption.

Now we build our program directly into the source code of programs U-BOOT.
And we want to use interrupts.

Could really do better to write our attachment (application) and use it as a
"Standalone Applications?
and already in the program to break as we need?

.... please tell how to use the break to our processor (BlackFin 532)?
... how do we best get out of this situation?

Help Please!


-- 
View this message in context: http://www.nabble.com/U-BOOT-and-UART-TX-with-interrupts-%28need-help-please%29-tf4520884.html#a12900023
Sent from the Uboot - Users mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [U-Boot-Users] U-BOOT and UART TX with interrupts (need help please)
  2007-09-26 12:25     ` Jerry Van Baren
@ 2007-09-26 12:49       ` Stanislav G. Prihodko
  2007-09-26 13:03         ` Jerry Van Baren
  0 siblings, 1 reply; 11+ messages in thread
From: Stanislav G. Prihodko @ 2007-09-26 12:49 UTC (permalink / raw)
  To: u-boot


Yes, yes, I know what you are going to say. With the use of off fully, not
built originally in the program U-BOOT.
But the interruption did not have any relationship to the operating system.
The same level of hardware implementation exchange data with pereferiey. And
as logical, therefore have to complete events or otherwise.
If you send a lot of data or data to do so is through the interruption, is
not it?
I understand that this remarkable U-BOOT actually loader. And it is
remarkable opportunities. For example implement the programme as
"Standalone", and so can get through this opportunity to interrupt?
I just want to build their program on the basis of good, enabled solutions.


Jerry Van Baren wrote:
> 
> U-Boot is a boot loader, used to
> * Initialize the hardware
> * Load an operating system
> * Start the operating system running
> 
> You are looking for an operating system with interrupts and possibly 
> multi-tasking.  U-Boot may be helpful in *loading and starting* your 
> operating system, but it is *not* an operating system.  It does not 
> normally use, and thus has no support for, interrupts.
> 
> 


-- 
View this message in context: http://www.nabble.com/U-BOOT-and-UART-TX-with-interrupts-%28need-help-please%29-tf4520884.html#a12900271
Sent from the Uboot - Users mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [U-Boot-Users] U-BOOT and UART TX with interrupts (need help please)
  2007-09-26 12:49       ` Stanislav G. Prihodko
@ 2007-09-26 13:03         ` Jerry Van Baren
  2007-09-26 13:43           ` Stanislav G. Prihodko
  0 siblings, 1 reply; 11+ messages in thread
From: Jerry Van Baren @ 2007-09-26 13:03 UTC (permalink / raw)
  To: u-boot

Stanislav G. Prihodko wrote:
> Yes, yes, I know what you are going to say. With the use of off fully, not
> built originally in the program U-BOOT.
> But the interruption did not have any relationship to the operating system.
> The same level of hardware implementation exchange data with pereferiey. And
> as logical, therefore have to complete events or otherwise.
> If you send a lot of data or data to do so is through the interruption, is
> not it?
> I understand that this remarkable U-BOOT actually loader. And it is
> remarkable opportunities. For example implement the programme as
> "Standalone", and so can get through this opportunity to interrupt?
> I just want to build their program on the basis of good, enabled solutions.

Hi Stanislav,

If you want to use interrupts and u-boot, you will have to set things up 
on your own, it is outside the normal use of u-boot.

Standalone is probably a good choice if you wish to pursue this.  Be 
aware that you are using u-boot in a way that it was not designed to be 
used.  You will have to add functionality (interrupt handling, possibly 
more) to your code and/or u-boot.  The u-boot list will probably not be 
very helpful - when you do unusual things, other people will not have 
experience with the problems you have and thus will be unable to give 
much advice.

 From your other email:
> Now we build our program directly into the source code of programs U-BOOT.
> And we want to use interrupts.

Note that, if you *link* your program  u-boot (build directly into the 
u-boot source), you *must* use a GPL-compatible license for your program 
(i.e. your program must be Open Source - you must provide an offer of 
your modifications/source to your users).

If you run your program "standalone", the u-boot licensing gives 
permission to use a proprietary license for your code which is running 
standalone.

Best regards,
gvb

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [U-Boot-Users] U-BOOT and UART TX with interrupts (need help please)
  2007-09-26 13:03         ` Jerry Van Baren
@ 2007-09-26 13:43           ` Stanislav G. Prihodko
  2007-09-26 13:59             ` Wolfgang Denk
  0 siblings, 1 reply; 11+ messages in thread
From: Stanislav G. Prihodko @ 2007-09-26 13:43 UTC (permalink / raw)
  To: u-boot



Jerry Van Baren wrote:
> 
> ....
> Note that, if you *link* your program  u-boot (build directly into the 
> u-boot source), you *must* use a GPL-compatible license for your program 
> (i.e. your program must be Open Source - you must provide an offer of 
> your modifications/source to your users).
> 
> If you run your program "standalone", the u-boot licensing gives 
> permission to use a proprietary license for your code which is running 
> standalone.
> 

Thank You! Yes, I know, it`s are temporary use in source code, as light
variants get results, and because I want use "standalone" model. 
And also for fasted manipulating execute code for develop time.

But realization with interrupts really need for BlackFin, it is DSP, and may
be many peoples too want as I`m. 
Also and in MPC8xxx  you added it is , as I know|understand.


-- 
View this message in context: http://www.nabble.com/U-BOOT-and-UART-TX-with-interrupts-%28need-help-please%29-tf4520884.html#a12901127
Sent from the Uboot - Users mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [U-Boot-Users] U-BOOT and UART TX with interrupts (need help please)
  2007-09-26 13:43           ` Stanislav G. Prihodko
@ 2007-09-26 13:59             ` Wolfgang Denk
  2007-09-26 14:13               ` Stanislav G. Prihodko
  0 siblings, 1 reply; 11+ messages in thread
From: Wolfgang Denk @ 2007-09-26 13:59 UTC (permalink / raw)
  To: u-boot

In message <12901127.post@talk.nabble.com> you wrote:
> 
> But realization with interrupts really need for BlackFin, it is DSP, and may
> be many peoples too want as I`m. 

You should really listen to what has been said before. I here repeat
it one more time. Please read it out loud:

- U-Boot is a boot loader.

- U-Boot is NOT an operating system.

- U-Boot has never been designed to replace operating systems.


What you are attempting to  do  is  *not*  a  good  idea.  Please  do
yourself  a  favour and use a real operating system which has all the
features you are looking for. U-Boot is *not* the  right  environment
for what you are trying to do.

I don;t intend to send more messages to this thread. All necessary has
been said.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Hiring experienced unix people is  like  a  built-in  filter  against
idiots. Hiring experienced NT people provides no such guarantee.
            -- Miguel Cruz in WgL96.349$CC.122704 at typhoon2.ba-dsg.net

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [U-Boot-Users] U-BOOT and UART TX with interrupts (need help please)
  2007-09-26 13:59             ` Wolfgang Denk
@ 2007-09-26 14:13               ` Stanislav G. Prihodko
  0 siblings, 0 replies; 11+ messages in thread
From: Stanislav G. Prihodko @ 2007-09-26 14:13 UTC (permalink / raw)
  To: u-boot


Thank you - Wolfgang Denk! and Thank you - Jerry Van Baren!

Now, I understand everything! (	I wanted more than is actually )
You really very help me. 
Big Thank you! 
-- 
View this message in context: http://www.nabble.com/U-BOOT-and-UART-TX-with-interrupts-%28need-help-please%29-tf4520884.html#a12901814
Sent from the Uboot - Users mailing list archive at Nabble.com.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [U-Boot-Users] U-BOOT and UART TX with interrupts (need help please)
  2007-09-26 12:38     ` Stanislav G. Prihodko
@ 2007-09-26 19:12       ` Mike Frysinger
  0 siblings, 0 replies; 11+ messages in thread
From: Mike Frysinger @ 2007-09-26 19:12 UTC (permalink / raw)
  To: u-boot

On Wednesday 26 September 2007, Stanislav G. Prihodko wrote:
> .... please tell how to use the break to our processor (BlackFin 532)?

read the Blackfin HRM for the 532

the Blackfin serial driver in the Linux kernel already handles break
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20070926/4d5c4e72/attachment.pgp 

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2007-09-26 19:12 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-26  8:50 [U-Boot-Users] U-BOOT and UART TX with interrupts (need help please) veter
2007-09-26  9:04 ` Wolfgang Denk
2007-09-26 10:02   ` veter
2007-09-26 12:25     ` Jerry Van Baren
2007-09-26 12:49       ` Stanislav G. Prihodko
2007-09-26 13:03         ` Jerry Van Baren
2007-09-26 13:43           ` Stanislav G. Prihodko
2007-09-26 13:59             ` Wolfgang Denk
2007-09-26 14:13               ` Stanislav G. Prihodko
2007-09-26 12:38     ` Stanislav G. Prihodko
2007-09-26 19:12       ` Mike Frysinger

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox