linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Can't get CoralP drivers to work
@ 2006-05-24 16:54 jourdan
  2006-05-24 18:31 ` Dan Malek
  2006-05-24 19:57 ` Wolfgang Denk
  0 siblings, 2 replies; 11+ messages in thread
From: jourdan @ 2006-05-24 16:54 UTC (permalink / raw)
  To: linuxppc-embedded

Hello

I have a MPC8260 processor card with a Coral-P evaluation board (rev 4.0).
My system do not have keyboard nor mouse (i use the serial console).

I use linux kernel 2.4.25 & 2.6.9.

For kernel 2.4.25 :

I'm trying to get the framebuffer driver to work. During the boot the
driver loads fine but the monitor remains blank (no video signal). If i
try to `cat /dev/urandom > /dev/fb/0` nothing happens.

I compiled an Xserver (Release 6.9), and the x11 drivers for the coralp.
When I start X, it says that it can not open tty0 (indeed it doesn't
exists).

For kernel 2.6.9 :

When I start X, it complains about virtual terminals but doesn't stop. It
loads the x11_mb86290 driver then stop because it can't find a valid
framebuffer driver. Is it mandatory to have the mb86290fb driver worknig
in order to get the x11_mb86290 driver ?

I guess it just a configuration problem but I can figure it out. I added
the support for virtual terminals in my kernel (X seems to need it) but I
don't have ttyN entries in /dev. If I add them manually, they can not be
opened.

Thanks for your help.

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

* Re: Can't get CoralP drivers to work
  2006-05-24 16:54 Can't get CoralP drivers to work jourdan
@ 2006-05-24 18:31 ` Dan Malek
  2006-05-29  7:07   ` jourdan
  2006-05-24 19:57 ` Wolfgang Denk
  1 sibling, 1 reply; 11+ messages in thread
From: Dan Malek @ 2006-05-24 18:31 UTC (permalink / raw)
  To: jourdan; +Cc: linuxppc-embedded


On May 24, 2006, at 12:54 PM, jourdan@enib.fr wrote:

> I have a MPC8260 processor card with a Coral-P evaluation board  
> (rev 4.0).

Are you sure?

The 8260 does not have a PCI bus and the Coral-P
is a PCI card :-)


Good Luck.

	-- Dan

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

* Re: Can't get CoralP drivers to work
  2006-05-24 16:54 Can't get CoralP drivers to work jourdan
  2006-05-24 18:31 ` Dan Malek
@ 2006-05-24 19:57 ` Wolfgang Denk
  2006-05-29  7:34   ` jourdan
  1 sibling, 1 reply; 11+ messages in thread
From: Wolfgang Denk @ 2006-05-24 19:57 UTC (permalink / raw)
  To: jourdan; +Cc: linuxppc-embedded

In message <3799.194.3.133.184.1148489640.squirrel@webmail.enib.fr> you wrote:
> 
> I have a MPC8260 processor card with a Coral-P evaluation board (rev 4.0).
> My system do not have keyboard nor mouse (i use the serial console).
> 
> I use linux kernel 2.4.25 & 2.6.9.

We have instructions on our web site; did you read these?

> I'm trying to get the framebuffer driver to work. During the boot the
> driver loads fine but the monitor remains blank (no video signal). If i
> try to `cat /dev/urandom > /dev/fb/0` nothing happens.

Are you using devfs? Don't! Use /dev/fb0

> I compiled an Xserver (Release 6.9), and the x11 drivers for the coralp.
> When I start X, it says that it can not open tty0 (indeed it doesn't
> exists).

Well, you got an error message (tty0 cannot be opened), you  verified
that it is valid (tty0 does not exist), so fix the problem...

> For kernel 2.6.9 :

Can't comment on Coreal-P on 2.6.x

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
War is never imperative.
	-- McCoy, "Balance of Terror", stardate 1709.2

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

* Re: Can't get CoralP drivers to work
  2006-05-24 18:31 ` Dan Malek
@ 2006-05-29  7:07   ` jourdan
  0 siblings, 0 replies; 11+ messages in thread
From: jourdan @ 2006-05-29  7:07 UTC (permalink / raw)
  To: Dan Malek; +Cc: jourdan, linuxppc-embedded

>
> On May 24, 2006, at 12:54 PM, jourdan@enib.fr wrote:
>
>> I have a MPC8260 processor card with a Coral-P evaluation board
>> (rev 4.0).
>
> Are you sure?
>
> The 8260 does not have a PCI bus and the Coral-P
> is a PCI card :-)
>

Yes indeed my mistake it's a 8270 !

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

* Re: Can't get CoralP drivers to work
  2006-05-24 19:57 ` Wolfgang Denk
@ 2006-05-29  7:34   ` jourdan
  2006-05-29  9:12     ` Wolfgang Denk
  0 siblings, 1 reply; 11+ messages in thread
From: jourdan @ 2006-05-29  7:34 UTC (permalink / raw)
  To: Wolfgang Denk; +Cc: jourdan, linuxppc-embedded

> In message <3799.194.3.133.184.1148489640.squirrel@webmail.enib.fr> you
> wrote:
>>
>> I have a MPC8260 processor card with a Coral-P evaluation board (rev
>> 4.0).
>> My system do not have keyboard nor mouse (i use the serial console).
>>
>> I use linux kernel 2.4.25 & 2.6.9.
>
> We have instructions on our web site; did you read these?

Yes I did. I use the same jumper configuration (for board rev 4.0) as the
pictures on your web site.

>> I'm trying to get the framebuffer driver to work. During the boot the
>> driver loads fine but the monitor remains blank (no video signal). If i
>> try to `cat /dev/urandom > /dev/fb/0` nothing happens.
>
> Are you using devfs? Don't! Use /dev/fb0

Without devfs, I have /dev/fb0.

During boot sequence, the driver loads fine (built-in, not module) :
...
MB86290: fb_init called.
MB86290: initialize called.
MB86290: GDC base phys address: 0x8c000000
MB86290: GDC base virt address: 0xc5000000
Console: switching to frame buffer device
MB86290: dmamem: GFP success.
MB86290: fb_init finished
...

In /proc I have :
#  more /proc/fb
0 MB86290

This seems ok to me but I don't have any video signal. My screen remains
blank.

>> I compiled an Xserver (Release 6.9), and the x11 drivers for the coralp.
>> When I start X, it says that it can not open tty0 (indeed it doesn't
>> exists).
>
> Well, you got an error message (tty0 cannot be opened), you  verified
> that it is valid (tty0 does not exist), so fix the problem...
>

Without devfs, I have ttys :
# ls -al tty*
crw-rw-rw-    1 root     root       5,   0 May 29  2006 tty
crw--w--w-    1 root     5          4,   0 May 29  2006 tty0
crw-rw----    1 root     5          4,   1 May 29  2006 tty1
crw-rw----    1 root     5          4,   2 May 29  2006 tty2
crw-rw----    1 root     14         4,  64 May 29  2006 ttyS0
crw-rw----    1 root     14         4,  65 May 29  2006 ttyS1
crw-rw----    1 root     14         4,  66 May 29  2006 ttyS2
crw-rw----    1 root     14         4,  67 May 29  2006 ttyS3
crw-rw-rw-    1 root     5          3,   0 May 29  2006 ttyp0
crw-rw-rw-    1 root     5          3,   1 May 29  2006 ttyp1
crw-rw-rw-    1 root     5          3,   2 May 29  2006 ttyp2
crw-rw-rw-    1 root     5          3,   3 May 29  2006 ttyp3
crw-rw-rw-    1 root     5          3,   4 May 29  2006 ttyp4
crw-rw-rw-    1 root     5          3,   5 May 29  2006 ttyp5
crw-rw-rw-    1 root     5          3,   6 May 29  2006 ttyp6
crw-rw-rw-    1 root     5          3,   7 May 29  2006 ttyp7
crw-rw-rw-    1 root     5          3,   8 May 29  2006 ttyp8
crw-rw-rw-    1 root     5          3,   9 May 29  2006 ttyp9

Major and minor codes are ok but when I start X :
...
Fatal server error:
xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory)
...

I have to start X from a serial console. There are no keyboard or mouse
connectors on my board. This is maybe the source of my problems ?

Thanks for your help.

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

* Re: Can't get CoralP drivers to work
  2006-05-29  7:34   ` jourdan
@ 2006-05-29  9:12     ` Wolfgang Denk
  2006-05-29 10:19       ` jourdan
  0 siblings, 1 reply; 11+ messages in thread
From: Wolfgang Denk @ 2006-05-29  9:12 UTC (permalink / raw)
  To: jourdan; +Cc: linuxppc-embedded

In message <1402.194.3.133.184.1148888040.squirrel@webmail.enib.fr> you wrote:
>
> This seems ok to me but I don't have any video signal. My screen remains
> blank.

What's your boot arguments? Where is  your  console  device,  on  the
serial port or on the frame buffer?

> xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory)
> ...

Did you enable all of the following options in your kernel config?

	CONFIG_FB=y
	CONFIG_DUMMY_CONSOLE=y
	CONFIG_FB_MB86290=y
	CONFIG_FBCON_ADVANCED=y
	CONFIG_FBCON_CFB16=y
	CONFIG_FBCON_FONTS=y
	CONFIG_FONT_8x8=y
	CONFIG_FONT_8x16=y
	CONFIG_VT=y
	CONFIG_VT_CONSOLE=y

My guess is that CONFIG_VT and/or CONFIG_VT_CONSOLE might be missing.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
"There is no distinctly American criminal class except Congress."
- Mark Twain

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

* Re: Can't get CoralP drivers to work
  2006-05-29  9:12     ` Wolfgang Denk
@ 2006-05-29 10:19       ` jourdan
  2006-05-30  9:39         ` jourdan
  0 siblings, 1 reply; 11+ messages in thread
From: jourdan @ 2006-05-29 10:19 UTC (permalink / raw)
  To: Wolfgang Denk; +Cc: linuxppc-embedded

> In message <1402.194.3.133.184.1148888040.squirrel@webmail.enib.fr> you
> wrote:
>>
>> This seems ok to me but I don't have any video signal. My screen remains
>> blank.
>
> What's your boot arguments? Where is  your  console  device,  on  the
> serial port or on the frame buffer?

My boot arguments :
# more /proc/cmdline
console=tty0 console=ttyS1,9600 devfs=mount ip=bootp root=/dev/nfs rw

My console is on the serial port (ttyS1 on SMC2).

>> xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory)
>> ...
>
> Did you enable all of the following options in your kernel config?
>
> 	CONFIG_FB=y
> 	CONFIG_DUMMY_CONSOLE=y
> 	CONFIG_FB_MB86290=y
> 	CONFIG_FBCON_ADVANCED=y
> 	CONFIG_FBCON_CFB16=y
> 	CONFIG_FBCON_FONTS=y
> 	CONFIG_FONT_8x8=y
> 	CONFIG_FONT_8x16=y
> 	CONFIG_VT=y
> 	CONFIG_VT_CONSOLE=y
>
> My guess is that CONFIG_VT and/or CONFIG_VT_CONSOLE might be missing.

All those options are enabled.

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

* Re: Can't get CoralP drivers to work
  2006-05-29 10:19       ` jourdan
@ 2006-05-30  9:39         ` jourdan
       [not found]           ` <004b01c683db$96711e30$6401a8c0@CHUCK2>
  2006-05-30 20:32           ` Wolfgang Denk
  0 siblings, 2 replies; 11+ messages in thread
From: jourdan @ 2006-05-30  9:39 UTC (permalink / raw)
  To: Wolfgang Denk; +Cc: linuxppc-embedded

>> In message <1402.194.3.133.184.1148888040.squirrel@webmail.enib.fr> you
>> wrote:
>>>
>>> This seems ok to me but I don't have any video signal. My screen
>>> remains
>>> blank.
>>
>> What's your boot arguments? Where is  your  console  device,  on  the
>> serial port or on the frame buffer?
>
> My boot arguments :
> # more /proc/cmdline
> console=tty0 console=ttyS1,9600 devfs=mount ip=bootp root=/dev/nfs rw
>
> My console is on the serial port (ttyS1 on SMC2).
>
>>> xf86OpenConsole: Cannot open /dev/tty0 (No such file or directory)
>>> ...
>>
>> Did you enable all of the following options in your kernel config?
>>
>> 	CONFIG_FB=y
>> 	CONFIG_DUMMY_CONSOLE=y
>> 	CONFIG_FB_MB86290=y
>> 	CONFIG_FBCON_ADVANCED=y
>> 	CONFIG_FBCON_CFB16=y
>> 	CONFIG_FBCON_FONTS=y
>> 	CONFIG_FONT_8x8=y
>> 	CONFIG_FONT_8x16=y
>> 	CONFIG_VT=y
>> 	CONFIG_VT_CONSOLE=y
>>
>> My guess is that CONFIG_VT and/or CONFIG_VT_CONSOLE might be missing.
>
> All those options are enabled.
>

As I said earlier, when the driver loads, my monitor don't receive any
video signal. I can force it by calling at the end of the initialization
of the driver :
  reg = MB86290FB_READ_DISP_REGISTER(GDC_DISP_REG_EXT_MODE);
  MB86290FB_WRITE_DISP_REGISTER(GDC_DISP_REG_EXT_MODE, reg | 0x80010000);
This command enables the display, and "garbage" appears on the monitor.

Then if i do :
# cat /dev/urandom > /dev/fb0
I should see dummy pixels on the screen but in fact nothing happens. This
is still the same garbage on the screen.

I use a custom processor card based on a MPC8270. I can't figure out if
the problem comes from the configuration of my kernel (all the needed
options are enabled) or if it is in the code of the initialisation of my
platform.

This is the first time I try to use framebuffer graphics, so I'm new with
it. Can the framebuffer work from a serial console on a platform without
keyboard ?

Thanks for your help.

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

* Re: Can't get CoralP drivers to work
       [not found]             ` <2095.194.3.133.184.1148990341.squirrel@webmail.enib.fr>
@ 2006-05-30 12:00               ` jourdan
  0 siblings, 0 replies; 11+ messages in thread
From: jourdan @ 2006-05-30 12:00 UTC (permalink / raw)
  To: linuxppc-embedded

> Does the 8270 swap bytes on the PCI bus?  The CoralP drivers are written
> for
> the 5200, which assumes any PCI card to be little-endian, and thus swaps
> bytes.  That is, if you write a 32-bit word, say 0x01020304, the 5200
> PCI
> will actually write 0x04030201.  So if 8270 does *not* swap bytes like
> that
> it would be a problem.
>

I checked this and the byte swapping is OK.

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

* Re: Can't get CoralP drivers to work
  2006-05-30  9:39         ` jourdan
       [not found]           ` <004b01c683db$96711e30$6401a8c0@CHUCK2>
@ 2006-05-30 20:32           ` Wolfgang Denk
  2006-06-01 15:32             ` Can't get CoralP drivers to work (fixed) jourdan
  1 sibling, 1 reply; 11+ messages in thread
From: Wolfgang Denk @ 2006-05-30 20:32 UTC (permalink / raw)
  To: jourdan; +Cc: linuxppc-embedded

In message <1664.194.3.133.184.1148981963.squirrel@webmail.enib.fr> you wrote:
>
> This is the first time I try to use framebuffer graphics, so I'm new with
> it. Can the framebuffer work from a serial console on a platform without
> keyboard ?

Yes, it can. We used it on a couple of MPC5200 systems; usually these
were used without keyboard.

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
On a clear disk you can seek forever.

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

* Re: Can't get CoralP drivers to work (fixed)
  2006-05-30 20:32           ` Wolfgang Denk
@ 2006-06-01 15:32             ` jourdan
  0 siblings, 0 replies; 11+ messages in thread
From: jourdan @ 2006-06-01 15:32 UTC (permalink / raw)
  To: Wolfgang Denk; +Cc: linuxppc-embedded

Hello guys

I had time to dig into the kernel code and I discovered the origin of my
problem. As I said in a previous post, we use a custom processor card
based on a mpc8270. In the initialisation of our board was missing the
following line :

conswitchp = &dummy_con;

That's all !

Now it works fine.

I still have a little problem : video output signals seems to be very low.
I have to set the maximum contrast and luminosity to see something. I
tried on different monitors, the problem is the same.

The board is configured to use the rgb analog signals from the coral, not
from the dac.

Are there any jumpers or register to tweak the video signal levels ? I
can't find it in the hardware manual...

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

end of thread, other threads:[~2006-06-01 15:39 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-24 16:54 Can't get CoralP drivers to work jourdan
2006-05-24 18:31 ` Dan Malek
2006-05-29  7:07   ` jourdan
2006-05-24 19:57 ` Wolfgang Denk
2006-05-29  7:34   ` jourdan
2006-05-29  9:12     ` Wolfgang Denk
2006-05-29 10:19       ` jourdan
2006-05-30  9:39         ` jourdan
     [not found]           ` <004b01c683db$96711e30$6401a8c0@CHUCK2>
     [not found]             ` <2095.194.3.133.184.1148990341.squirrel@webmail.enib.fr>
2006-05-30 12:00               ` jourdan
2006-05-30 20:32           ` Wolfgang Denk
2006-06-01 15:32             ` Can't get CoralP drivers to work (fixed) jourdan

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).