[U-Boot-Users] U-BOOT and UART TX with interrupts (need help please)

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]

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!
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

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

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.

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

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.

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

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!

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!

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
participants (5)
-
Jerry Van Baren
-
Mike Frysinger
-
Stanislav G. Prihodko
-
veter
-
Wolfgang Denk