How to use ttyUL0 as input and use VGA as display?

7 messages, 5 authors, 2008-08-20 · open the first message on its own page

How to use ttyUL0 as input and use VGA as display?

From: yanlong wang <hidden>
Date: 2008-08-16 11:34:39

SGksCiAgICAgSSBwb3J0IHRoZSBsaW51eCBvbiBteSBtbDMwMCBib2FyZCAsIHRoZSBzeXN0ZW0g
aXMgd29yayB3ZWxsLiBCdXQKaGF2ZSBzb21lIHNtYWxsIHByb2JsZW0uCiAgICBJIHdhbnQgdXNl
ICBzZXJpYWwgcG9ydCBhcyBpbnB1dCBkZXZpY2UgIGFuZCB1c2UgVkdBIGFzIGRpc3BsYXkuCiAg
ICBIb3cgaSBzZXQgdGhlIGNvbnNvbGUgcGFyYW1ldGVyPwogICAgSWYgaSBzZXQgY29uc29sZSBs
aWtlIHRoaXMgIiBjb25zb2xlPXR0eVVMMCw5NjAwIGNvbnNvbGU9dHR5MApyb290PS9kZXYvcmFt
Ii4gVGhlIGJvb3QgbWVzc2FnZSBkaXNwbGF5IG9uIGJvdGggb2YgIHNlcmlhbCBwb3J0IGFuZApW
R0EuIEJ1dCB3aGVuIHRoZSBzeXN0ZW0gY29tZSB0byB0aGUgInNoIi5UaGVyZSBpcyBubyBvdXRw
dXQgb24gdHR5VUwwCiwuQWxsIG1lc3NhZ2UgZGlzcGxheSBvbiB0aGUgVkdBICwgdGhlbiCjyWNh
bm4ndCBpbnB1dCBjb21tYW5kIGJ5CnNlcmlhbCBwb3J0IC4KICAgIEhvdyB0byBzbG92ZSB0aGlz
IHByb2JlbG0/CiAgICByZWdhcmRzOikKeWFubG9uZwo=

Re: How to use ttyUL0 as input and use VGA as display?

From: Anatolij Gustschin <agust@denx.de>
Date: 2008-08-16 12:56:45

Hi,

yanlong wang wrote:
     I port the linux on my ml300 board , the system is work well. But
have some small problem.
    I want use  serial port as input device  and use VGA as display.
    How i set the console parameter?
    If i set console like this " console=ttyUL0,9600 console=tty0
root=/dev/ram". The boot message display on both of  serial port and
VGA. But when the system come to the "sh".There is no output on ttyUL0
,.All message display on the VGA , then Icann't input command by
serial port .
    How to slove this probelm?
Did you try to pass ttyUL0 after tty0?
Try "root=/dev/ram console=tty0 console=ttyUL0,9600".

Best regards,
Anatolij

Re: How to use ttyUL0 as input and use VGA as display?

From: wangyanlong <hidden>
Date: 2008-08-16 16:38:39

Hi,
   Thanks for all your replies :)
   if  i set console like this " console=tty0 console=ttyUL0,9600 
root=/dev/ram". The boot message display on both of  serial port and VGA.
But when the system come to the "sh", the VGA display no change at all ,and
all message comeout on serial port.The words i type only show on the serial
port , the VGA is no change:(
   regards:)
yanlong
-- 
View this message in context: http://www.nabble.com/How-to-use-ttyUL0-as-input-and-use-VGA-as-display--tp19010756p19012924.html
Sent from the linuxppc-embedded mailing list archive at Nabble.com.

U-boot and Xilinx emaclite, TX_PING_PONG -> stops working

From: Philipp Hachtmann <hidden>
Date: 2008-08-16 19:53:21

Hi all,

I use a Xilinx Virtex-4FX (with powerpc) Board (Ml403) with U-boot and
Linux.

I am currently wondering if someone has experience with the emaclite
driver. When I unset the "ping pong" (double buffering) parameters of
the core, I can use it unter Linux and U-boot. But the performance is
near to non-functional (wget tells me about 10kByte/sec).
Then I switched to double buffering. Now it runs very well - but only
under Linux.

I found a driver (xilinx_emaclite.c) in the U-boot git. That completely
refuses to work correctly (of course with parameters corrected). The
other driver I once found "somewhere" (in the Petalinux distribution).
It at least worked without the double buffering. Both drivers talk about
the ping pong options in their source, so I think they *should* know
about it.


Does anyone know that problem? Is there an improved driver around?

Best wishes,

Philipp





-- 
http://www.hachti.de

Re: U-boot and Xilinx emaclite, TX_PING_PONG -> stops working

From: jozsef imrek <hidden>
Date: 2008-08-16 22:02:01

dear philipp,


On Sat, 16 Aug 2008, Philipp Hachtmann wrote:
I am currently wondering if someone has experience with the emaclite
driver. When I unset the "ping pong" (double buffering) parameters of
...

I found a driver (xilinx_emaclite.c) in the U-boot git. That completely
refuses to work correctly (of course with parameters corrected). The
other driver I once found "somewhere" (in the Petalinux distribution).
i don't know what exact versions are you using. for me the following
combination works reasonably both with tx-ping-pong = rx-ping-pong = 0
and with tx-ping-pong = rx-ping-pong = 1, both under u-boot and
linux (i'm normally using ping-pong = 1, i've only made a quick test
with ping-pong = 0):

- edk 9.1, opb_ethernetlite v1.01.b, v4-fx12 (memec/avnet minimodule)
- u-boot: ftp://ftp.denx.de/pub/u-boot/u-boot-1.3.3.tar.bz2
- linux: xilinx's git://git.xilinx.com/linux-2.6-xlnx, 2.6.26-rc6


also, i think there is a bug in the linux driver: the XEmacLite_Config
structure used to set up the device is located on the stack. so
after the init returns, further references to this struct by the
os independent part of the driver are invalid. see the attached
patch. i don't know if it solves your prolem, though..

(the patch also replaces a few calls of dev_kfree_skb() from
interrupt context. thoose can generate lots of warnings on the
console, thus slowing down operation.)


-- 
mazsi

----------------------------------------------------------------
strawberry fields forever!                       mazsi@imrek.org
----------------------------------------------------------------

Re: How to use ttyUL0 as input and use VGA as display?

From: wangyanlong <hidden>
Date: 2008-08-18 06:18:40

Hi,
   Thanks for all your replies :)
   if  i set console like this " console=tty0 console=ttyUL0,9600 
root=/dev/ram". The boot message display on both of  serial port and VGA.
But when the system come to the "sh", the VGA display no change at all ,and
all message comeout on serial port.The words i type only show on the serial
port , the VGA is no change:(
   regards:)
yanlong
-- 
View this message in context: http://www.nabble.com/How-to-use-ttyUL0-as-input-and-use-VGA-as-display--tp19010756p19026472.html
Sent from the linuxppc-embedded mailing list archive at Nabble.com.

Re: U-boot and Xilinx emaclite, TX_PING_PONG -> stops working

From: Michal Simek <hidden>
Date: 2008-08-20 12:26:09

Hi Philipp,

I did U-BOOT driver for emaclite. You can set both ping pong mode - all
combination are supported. I tested this driver with Microblaze and works well.
I use this driver almost every day and I have no problem with it. If you have
problem with this driver please send your email to u-boot mailing list.

Regards,
Michal

Hi all,

I use a Xilinx Virtex-4FX (with powerpc) Board (Ml403) with U-boot and
Linux.

I am currently wondering if someone has experience with the emaclite
driver. When I unset the "ping pong" (double buffering) parameters of
the core, I can use it unter Linux and U-boot. But the performance is
near to non-functional (wget tells me about 10kByte/sec).
Then I switched to double buffering. Now it runs very well - but only
under Linux.

I found a driver (xilinx_emaclite.c) in the U-boot git. That completely
refuses to work correctly (of course with parameters corrected). The
other driver I once found "somewhere" (in the Petalinux distribution).
It at least worked without the double buffering. Both drivers talk about
the ping pong options in their source, so I think they *should* know
about it.


Does anyone know that problem? Is there an improved driver around?

Best wishes,

Philipp



Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help