[Ilugc] regarding pci vga card output with powerpc

  • From: urwithsudheer@xxxxxxxxx (sudheer)
  • Date: Fri Aug 11 18:06:13 2006

Hi ShaktiKannan,

Shakthi Kannan wrote:

Hi Sudheer,

--- sudheer <urwithsudheer@xxxxxxxxx> wrote:
  
I have
connected the vga card 
next to the  pci slot of my target processor on the
baseboard.
    

Which one? Does the baseboard also have a keyboard,
mouse input?

  
I have connected a monitor to the vga card.
When i boot linux from minicom, i could see all the
kernel log messages 
on both the minicom and vga card monitor. 
    

You will be passing something like "video=" option to
the kernel command line.

  
But on the
vga monitor, i 
could not see any messages after asking for login as
below:
    

Usually, the hardware is designed such that the
keyboard/mouse on the baseboard functions with the
on-board VGA. Not sure which one you are using or
which Linux kernel you are using.

  
Though i am entering my login and passwd at the
minicom, nothing comes 
on to the vga monitor. 
    

Because input/output goes to the serial port _and_ is
not redirected to the VGA.

  
But i am able to write to vga
monitor using the 
following commands from minicom:
# echo "Hello" > /dev/tty1
    

Sure, hardware is visible to all.

  
My requirement is to get on the vga monitor whatever
i am typing on the 
minicom after logging into the linux like .
    

My question is "Why?". 

The baseboard is supposed to be converted to an
end-product. Serial port is only for developers. An
end-user will use the on-board VGA, keyboard, mouse to
use the system, rather than the serial port. But, if
you want to do it, you also need to redirect the
serial buffer data to the framebuffer driver.

  
Can you please tell me how to copy to framebuffer, i mean where to add it .
I am using linux-2.6.11.
In the driver/video/aty/ ;  the atyfb_base.c gets invoked.

While booting, i could see the following lines:
.
.
.
PCI: Cannot allocate resource region 2 of device 0000:00:00.0
PCI: Failed to allocate mem resource #2:80000000@0 for 0000:00:00.0
SCSI subsystem initialized
JFFS2 version 2.2. (C) 2001-2003 Red Hat, Inc.
atyfb: using auxiliary register aperture
atyfb: 3D RAGE XL (Mach64 GR, PCI-33MHz) [0x4752 rev 0x27]
ADDED TO TEST: file is drivers/video/aty/atyfb_base.c, function is aty_init
 init_valid_pll_ct : pllsclk=165 MHz, mclk=82 MHz
init_valid_pll_ct : pllmclk=251 MHz, xclk=62 MHz
 init_dsp_gt : mclk_fb_mult=4
atyfb: 8M SDRAM (2:1) (32-bit), 14.31818 MHz XTAL, 230 MHz PLL, 83 Mhz 
MCLK, 63 MHz XCLK
atyfb: MACH64 chips are designed for max 1600x1200
select anoter resolution.
atyfb: MACH64 chips are designed for max 1600x1200
select anoter resolution.
atyfb: vclk out of range
atyfb: vclk out of range
Console: switching to colour frame buffer device 80x30
atyfb: fb0: ATY Mach64 frame buffer device on PCI
Generic RTC Driver v1.07
Serial: 8250/16550 driver $Revision: 1.90 $ 2 ports, IRQ sharing disabled
ttyS0 at MMIO 0xe0004500 (irq = 9) is a 16550A
ttyS1 at MMIO 0xe0004600 (irq = 10) is a 16550A
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
.
.

Thanks & Regards
Sudheer


Regards,

SK

--
Shakthi Kannan
http://www.shakthimaan.com

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com ;

  

Other related posts: