linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* fb on mpc823
@ 2000-11-27 19:52 Kyle Harris
  2000-11-27 20:10 ` Dan Malek
  0 siblings, 1 reply; 4+ messages in thread
From: Kyle Harris @ 2000-11-27 19:52 UTC (permalink / raw)
  To: linuxppc-embedded


Hi,

I'm trying to get a framebuffer device running on an mpc823 board
(tqm823). I'm a little confused (not unusual :). Which device should
/dev/fb0 be? fbmem.c opens a device using major 29. But lcd823.c also
opens a device using major 62. Do I even need all of the standard fb
stuff? Or can I simply insmod lcd823.o (built to run as a module) and
get things to work?

Thanks for any help, Kyle.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: fb on mpc823
  2000-11-27 19:52 fb on mpc823 Kyle Harris
@ 2000-11-27 20:10 ` Dan Malek
  2000-11-28 19:15   ` Kyle Harris
  0 siblings, 1 reply; 4+ messages in thread
From: Dan Malek @ 2000-11-27 20:10 UTC (permalink / raw)
  To: Kyle Harris; +Cc: linuxppc-embedded


Kyle Harris wrote:

> ... I'm a little confused (not unusual :). Which device should
> /dev/fb0 be? fbmem.c opens a device using major 29. But lcd823.c....

The confusion is probably not your fault this time :-).  Don't use
the old lcd driver that has my name in it.  That was just something
I hacked together one day for testing.  I posted it so someone that
knew something about frame buffers would really write one.

Fortunately, someone did.  I believe it was Joe Green from MontaVista
that did a real framebuffer driver.  Go to the MontaVista web site
and find the CDK 1.2 with the 2.2.14 kernel.


	-- Dan

--

	I like MMUs because I don't have a real life.

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: fb on mpc823
  2000-11-27 20:10 ` Dan Malek
@ 2000-11-28 19:15   ` Kyle Harris
  2000-11-28 19:50     ` Wolfgang Denk
  0 siblings, 1 reply; 4+ messages in thread
From: Kyle Harris @ 2000-11-28 19:15 UTC (permalink / raw)
  Cc: linuxppc-embedded


Dan Malek wrote:
>
> Kyle Harris wrote:
>
> > ... I'm a little confused (not unusual :). Which device should
> > /dev/fb0 be? fbmem.c opens a device using major 29. But lcd823.c....
>
> The confusion is probably not your fault this time :-).  Don't use
> the old lcd driver that has my name in it.  That was just something
> I hacked together one day for testing.  I posted it so someone that
> knew something about frame buffers would really write one.
>
> Fortunately, someone did.  I believe it was Joe Green from MontaVista
> that did a real framebuffer driver.  Go to the MontaVista web site
> and find the CDK 1.2 with the 2.2.14 kernel.
>

Thanks, this makes more sense. But I'm still having problems. I'm
running 2.2.13 on a TQM823 board. I updated lcd823.c and rebuilt the
kernel with fb and vt support. Now I get a kernel panic (listed below).

It appears to be related to the virtual console. If I run without the fb
(but keep vt) it also crashes.

I guess it's time to figure out how to interpret and debug kernel
panics. Any suggestions on where to start?

Thanks, Kyle.

Panic follows:

Linux version 2.2.13 (kyle@brdc01.nexus-tech.net) (gcc version 2.95.2
19991024
(release)) #53 Tue Nov 28 11:14:07 EST 2000
Boot arguments: root=/dev/nfs rw nfsroot=10.77.77.50:/LinuxPPC
nfsaddrs=10.77.77.20:10.77.77.50
LCD frame buffer 75 pages
time_init: decrementer frequency = 187500000/60
Calibrating delay loop... 49.87 BogoMIPS
Memory: 14760k available (780k kernel code, 792k data, 52k init)
[c0000000,c1000000]
Dentry hash table entries: 2048 (order 2, 16k)
Buffer-cache hash table entries: 32768 (order: 5, 131072 bytes)
Page-cache hash table entries: 4096 (order: 2, 16384 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.2
Based upon Swansea University Computer Society NET3.039
NET4: Unix domain sockets 1.0 for Linux NET4.0.
NET4: Linux TCP/IP 1.0 for NET4.0
IP Protocols: ICMP, UDP, TCP
TCP: Hash tables configured (ehash 16384 bhash 16384)
Starting kswapd v 1.5
Console: switching to frame buffer device
fb0:  MPC823 LCD frame buffer device
NIP: 00000000 XER: C000FA7F LR: C00F6BEC REGS: c0199df0 TRAP: 0400 DAR:
c00a3824
MSR: 08209032 EE: 1 PR: 0 FP: 0 ME: 1 IR/DR: 11
TASK = c0198000[1] 'swapper' mm->pgd c00db000 Last syscall: 120
last math 00000000
GPR00: 00000000 C0199EA0 C0198000 00000000 C00D3B21 C00E9324 C010901C
00000000
GPR08: 00000000 C0100000 00000000 C0110000 35FF5F33 02000130 00FFE500
C0FE0000
GPR16: 40800804 007FFF4F 0000000C 00000000 007FFF00 007FFEA0 00FBFFA0
00000002
GPR24: 00000000 00FFC76C 00000002 00000004 00000005 C0108F5C 00000001
C0108D10
Call backtrace:
C0108F5C C00F5DB0 C00F5E1C C00F4F50 C00F07A8 C0002B8C C0006E68
Kernel panic: kernel access of bad area pc 0 lr c00f6bec address 0 tsk
swapper/1

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

* Re: fb on mpc823
  2000-11-28 19:15   ` Kyle Harris
@ 2000-11-28 19:50     ` Wolfgang Denk
  0 siblings, 0 replies; 4+ messages in thread
From: Wolfgang Denk @ 2000-11-28 19:50 UTC (permalink / raw)
  To: Kyle Harris; +Cc: linuxppc-embedded


In message <3A240461.10B69DF3@nexus-tech.net> you wrote:
>
> Thanks, this makes more sense. But I'm still having problems. I'm
> running 2.2.13 on a TQM823 board. I updated lcd823.c and rebuilt the
> kernel with fb and vt support. Now I get a kernel panic (listed below).
...
> I guess it's time to figure out how to interpret and debug kernel
> panics. Any suggestions on where to start?

Try switching to 2.2.14 first; the necessary changes for the  TQM8xxL
are available on our FTP server - see
ftp://ftp.denx.de/pub/LinuxPPC/usr/src/linux-2.2.14*

Wolfgang Denk

--
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd@denx.de
Where people stand is not as important as which way they face.
        - Terry Pratchett & Stephen Briggs, _The Discworld Companion_

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

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

end of thread, other threads:[~2000-11-28 19:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-27 19:52 fb on mpc823 Kyle Harris
2000-11-27 20:10 ` Dan Malek
2000-11-28 19:15   ` Kyle Harris
2000-11-28 19:50     ` Wolfgang Denk

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