linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* powerpc 440 monitor program
@ 2007-10-19  3:32 Bai Shuwei
  2007-10-19  3:49 ` David Gibson
  2007-10-19 16:45 ` Olof Johansson
  0 siblings, 2 replies; 4+ messages in thread
From: Bai Shuwei @ 2007-10-19  3:32 UTC (permalink / raw)
  To: linuxppc-embedded, linuxppc-dev

[-- Attachment #1: Type: text/plain, Size: 1688 bytes --]

all,
    hi, when I boot my system, there are no output on the screen.
I choice the framebuffer and my monitor card is ATI PAGE 128 PCI, qt/e GUI.
When i compile the kernel, the boot logo and aty 128fb has be compiled into
kernel patched with videoboot, and x86emu. The video parameters set:
     video=aty128fb:640x480-16@7.
    The kenel can recognize the monitor card, and the frame buffer device
has run.
The output showed below:

    videoboot: Booting PCI video card bus 0, function 0, device 6
   aty128fb: Found Intel x86 BIOS ROM Image
   aty128fb: Rage128 BIOS located
   aty128fb: Rage128 RK PCI [chip rev 0x2] 32M 64-bit SDR SGRAM (2:1)
   fb0: ATY Rage128 frame buffer device on Rage128 RK PCI

My problem is there is no output on the monitor,and cannot see the penguin
boot logo.
I also run a program to test the framebuffer, which can read data from the
fb. After running the qt/e program, which can run scussessfully, there is no
output.!
   The test program reading data are showed below;


id = ATY Rage128
depth =  16
smemlen = 33554432
line_length = 0
FB_TYPE_ = 0
type_aux = 0
FB_VISUAL_ = 3
xpanstep = 8
ypanstep = 1
ywrapstep = 0
mmio_start = bbffc0000d
mmio_len = 8192
accel = 32
xres = 640
yres = 480
xres_virtul = 640
yres_virtul = 480
xoffset = 0
yoffset = 0
bits_per_pixel = 16

         My linux kernel is DENX 2.6.19.

        What can I do to make my system output into monitor.?

best regards!

buroc
-- 

Add: Tianshui South Road 222, Lanzhou, P.R.China
Tel: +86-931-8912025
Zip Code: 730000
URL: oss.lzu.edu.cn
Email: baishuwei@gmail.com, buroc@126.com

Tel: +86-931-8912025
Zip Code: 730000
URL: oss.lzu.edu.cn
Email: baishuwei@gmail.com, buroc@126.com

[-- Attachment #2: Type: text/html, Size: 2511 bytes --]

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

* Re: powerpc 440 monitor program
  2007-10-19  3:32 powerpc 440 monitor program Bai Shuwei
@ 2007-10-19  3:49 ` David Gibson
  2007-10-19 15:51   ` Leonid
  2007-10-19 16:45 ` Olof Johansson
  1 sibling, 1 reply; 4+ messages in thread
From: David Gibson @ 2007-10-19  3:49 UTC (permalink / raw)
  To: Bai Shuwei; +Cc: linuxppc-dev, linuxppc-embedded

On Fri, Oct 19, 2007 at 11:32:33AM +0800, Bai Shuwei wrote:
> all,
>     hi, when I boot my system, there are no output on the screen.
> I choice the framebuffer and my monitor card is ATI PAGE 128 PCI, qt/e GUI.
> When i compile the kernel, the boot logo and aty 128fb has be compiled into
> kernel patched with videoboot, and x86emu. The video parameters set:
>      video=aty128fb:640x480-16@7.
>     The kenel can recognize the monitor card, and the frame buffer device
> has run.
> The output showed below:
> 
>     videoboot: Booting PCI video card bus 0, function 0, device 6
>    aty128fb: Found Intel x86 BIOS ROM Image
>    aty128fb: Rage128 BIOS located
>    aty128fb: Rage128 RK PCI [chip rev 0x2] 32M 64-bit SDR SGRAM (2:1)
>    fb0: ATY Rage128 frame buffer device on Rage128 RK PCI
> 
> My problem is there is no output on the monitor,and cannot see the penguin
> boot logo.

Uh.. most 440 systems use a serial console.  It ought in theory to be
possible to use a framebuffer instead, but it wouldn't surprise me if
rather a lot of debugging was necessary.

-- 
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

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

* RE: powerpc 440 monitor program
  2007-10-19  3:49 ` David Gibson
@ 2007-10-19 15:51   ` Leonid
  0 siblings, 0 replies; 4+ messages in thread
From: Leonid @ 2007-10-19 15:51 UTC (permalink / raw)
  To: David Gibson, Bai Shuwei; +Cc: linuxppc-dev, linuxppc-embedded

In order to achieve your goal you must do at least following things:

1) enable FRAMEBUFFER_CONSOLE option in the kernel.
2) Upon reboot make getty for the monitor terminal device (could be
tty1, but you must check).

You may add line to your inittab file

tty1::respawn:/sbin/getty 38400 tty1

Speed parameter is irrelevant and may not be needed for your getty
version.

3) To see the penguin logo you must also enable one of BOOT_LOGO defines
in kernel.

Of course I assume that framebuffer is working in your system. You may
try to check it by typing "cat /dev/zero > /dev/fb0". Terminal must be
cleaned then.

You also can try "dirty" hack to ensure framebuffer functionality. Type:

sh > /dev/tty1 2>&1 < /dev/tty1

You must get prompt on monitor (your serial will hang) and if you have
working (USB?) keyboard, you will be able to use monitor.

Thanks,

Leonid.
-----Original Message-----
From: linuxppc-embedded-bounces+leonid=3Da-k-a.net@ozlabs.org
[mailto:linuxppc-embedded-bounces+leonid=3Da-k-a.net@ozlabs.org] On =
Behalf
Of David Gibson
Sent: Thursday, October 18, 2007 8:49 PM
To: Bai Shuwei
Cc: linuxppc-dev@ozlabs.org; linuxppc-embedded@ozlabs.org
Subject: Re: powerpc 440 monitor program

On Fri, Oct 19, 2007 at 11:32:33AM +0800, Bai Shuwei wrote:
> all,
>     hi, when I boot my system, there are no output on the screen.
> I choice the framebuffer and my monitor card is ATI PAGE 128 PCI, qt/e
GUI.
> When i compile the kernel, the boot logo and aty 128fb has be compiled
into
> kernel patched with videoboot, and x86emu. The video parameters set:
>      video=3Daty128fb:640x480-16@7.
>     The kenel can recognize the monitor card, and the frame buffer
device
> has run.
> The output showed below:
>=20
>     videoboot: Booting PCI video card bus 0, function 0, device 6
>    aty128fb: Found Intel x86 BIOS ROM Image
>    aty128fb: Rage128 BIOS located
>    aty128fb: Rage128 RK PCI [chip rev 0x2] 32M 64-bit SDR SGRAM (2:1)
>    fb0: ATY Rage128 frame buffer device on Rage128 RK PCI
>=20
> My problem is there is no output on the monitor,and cannot see the
penguin
> boot logo.

Uh.. most 440 systems use a serial console.  It ought in theory to be
possible to use a framebuffer instead, but it wouldn't surprise me if
rather a lot of debugging was necessary.

--=20
David Gibson			| I'll have my music baroque, and my
code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_
_other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson
_______________________________________________
Linuxppc-embedded mailing list
Linuxppc-embedded@ozlabs.org
https://ozlabs.org/mailman/listinfo/linuxppc-embedded

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

* Re: powerpc 440 monitor program
  2007-10-19  3:32 powerpc 440 monitor program Bai Shuwei
  2007-10-19  3:49 ` David Gibson
@ 2007-10-19 16:45 ` Olof Johansson
  1 sibling, 0 replies; 4+ messages in thread
From: Olof Johansson @ 2007-10-19 16:45 UTC (permalink / raw)
  To: Bai Shuwei; +Cc: linuxppc-dev, linuxppc-embedded

On Fri, Oct 19, 2007 at 11:32:33AM +0800, Bai Shuwei wrote:
> all,
>     hi, when I boot my system, there are no output on the screen.
> I choice the framebuffer and my monitor card is ATI PAGE 128 PCI, qt/e GUI.
> When i compile the kernel, the boot logo and aty 128fb has be compiled into
> kernel patched with videoboot, and x86emu. The video parameters set:
>      video=aty128fb:640x480-16@7.
>     The kenel can recognize the monitor card, and the frame buffer device
> has run.
> The output showed below:
> 
>     videoboot: Booting PCI video card bus 0, function 0, device 6
>    aty128fb: Found Intel x86 BIOS ROM Image
>    aty128fb: Rage128 BIOS located
>    aty128fb: Rage128 RK PCI [chip rev 0x2] 32M 64-bit SDR SGRAM (2:1)
>    fb0: ATY Rage128 frame buffer device on Rage128 RK PCI
> 
> My problem is there is no output on the monitor,and cannot see the penguin
> boot logo.
> I also run a program to test the framebuffer, which can read data from the
> fb. After running the qt/e program, which can run scussessfully, there is no
> output.!

Hi,

Lots of graphics cards need their on-board BIOS to be executed to setup
the card before it can be used by linux or anything else. Some firmwares
have x86 emulation built-in to do this (CFE has it, SLOF might, U-boot
has it for some platforms but I don't know about 4xx).


-Olof

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

end of thread, other threads:[~2007-10-19 16:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-19  3:32 powerpc 440 monitor program Bai Shuwei
2007-10-19  3:49 ` David Gibson
2007-10-19 15:51   ` Leonid
2007-10-19 16:45 ` Olof Johansson

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 NNTP newsgroup(s).