nanogui: Re: Microwindows on PowerPC


Previous by date: 30 Nov 2000 00:44:48 -0000 Re: Microwindows on PowerPC, Greg Haerr
Next by date: 30 Nov 2000 00:44:48 -0000 the project plan and objective, Tony Hoo
Previous in thread: 30 Nov 2000 00:44:48 -0000 Re: Microwindows on PowerPC, Greg Haerr
Next in thread:

Subject: Re: Microwindows on PowerPC
From: Kyle Harris ####@####.####
Date: 30 Nov 2000 00:44:48 -0000
Message-Id: <3A25A27D.69494D91@nexus-tech.net>


> 
> The Embedded Planet box kernel supported two versions of a
> framebuffer.  The older MontaVista kernel supported /dev/lcd,
> and the newer 1.2 CDK I believe supports /dev/fb0.  Check out
> the different versions of the MontaVista (www.mvista.com) CDK
> for which one you have (or pull down their kernel) and you'll
> be on your way.
> 
> If you are using /dev/lcd, you need to pull down an older version of
> Microwindows (try somewhere in between 0.87 and 0.88) and
> you will find a src/drivers/scr_fb.c which has the special
> #define EMBEDDEDPLANET /dev/lcd driver, which is
> now removed because of the newer fb kernel support.
>

Greg is right. I just came across this. Kernel 2.2.13 had a "hacked"
lcd823 fb driver that uses device number 62. Kernel 2.2.14 has a "real"
fb driver that uses the standard fb device number 29 and supports more
of the standard fb functions. You can get it at montavista's web site or
I can send you the latest lcd823.c, which you can simply sub in your
2.2.13 tree and remake.

Kyle.

> : "/dev/fb0" but "/dev/lcd". When I "cat /proc/devices", the response was:
> :
> : Character devices:
> :   1 mem
> :   2 pty
> :   3 ttyp
> :   4 ttyS
> :   5 cua
> : 10 misc
> : 62 lcd823
> : 128 ptm
> : 136 pts
> :
> : Block devices:
> :   1 ramdisk
> :   7 loop
> :
> : So there's no "fb" in the devices list. Instead I have "lcd823".
> : As a result, when I ran the "mvdemo" or "mdemo" program, it complained
> about
> : "Error opening /dev/fb0".
> :
> : Do you have any suggestion about how to get around the problem.
> :
> : Thanks,
> : Mae
> :
> : --
> :
> :
> : >From: "Greg Haerr" ####@####.####
> : >To: "root" ####@####.####
> : >Subject: Re: Microwindows on PowerPC
> : >Date: Tue, 28 Nov 2000 14:14:47 -0700
> : >
> : >set FBVGA=N in the config file and recompile.
> : >PPC doesn't support the kernel ioperm system call
> : >which the VGA screen driver requires.
> : >
> : >Regards,
> : >
> : >Greg
> : >
> : >
> : >: I tried to cross-compile the "mvdemo" source code for an embedded
> : >: PowerPC machine but got some problems that I could not resolve. BTW, I
> : >: got the source code from Montavista CDROM (Journeyman).
> : >:
> : >: Here're what I did:
> : >: 1. I modified the "Makefile" in "Linux/demos/Microwindows/mvdemo.src"
> as
> : >: following:
> : >: ==============================================================
> : >: OBJS = mvdemo.o mvterm.o hhpeng.o hh100pct.o hhbanner.o
> : >: APP = mvdemo
> : >: all: $(APP)
> : >:
> : >: clean:
> : >:         rm -f $(APP)
> : >:         rm -f *.o
> : >:
> : >: ######################### Makefile.rules section
> : >: #############################
> : >:
> : >:
> CCMWINLIBS= -lmwin -lmwinlib -lmwengine -lmwdrivers -lmwfonts -lmwimages
> : >: /opt/hardhat/devkit/ppc/8xx/powerpc-linux/lib/libm.a
> : >:
> : >: ######################## Tools targets section
> : >: ###############################
> : >:
> : >: $(APP): $(OBJS)
> : >:         $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o $@ $(CCMWINLIBS)
> : >: ===============================================================
> : >:
> : >: 2. I added the following to the PATH environment:
> : >: export PATH=$PATH:/opt/hardhat/devkit/ppc/8xx/bin
> : >:
> : >: 3. I ran the make command, as follows:
> : >: make CC=powerpc-linux-gcc
> : >:
> : >: Here's the respond from the make command:
> : >:
> : >: powerpc-linux-gcc    -c mvdemo.c -o mvdemo.o
> : >: powerpc-linux-gcc    -c mvterm.c -o mvterm.o
> : >: powerpc-linux-gcc    -c hhpeng.c -o hhpeng.o
> : >: powerpc-linux-gcc    -c hh100pct.c -o hh100pct.o
> : >: powerpc-linux-gcc    -c hhbanner.c -o hhbanner.o
> : >: powerpc-linux-gcc   mvdemo.o mvterm.o hhpeng.o hh100pct.o hhbanner.o -o
> : >: mvdemo -lmwin -lmwinlib -lmwengine -lmwdrivers -lmwfonts -lmwimages
> : >: /opt/hardhat/devkit/ppc/8xx/powerpc-linux/lib/libm.a
> : >:
> /opt/hardhat/devkit/ppc/8xx/powerpc-linux/lib/libmwdrivers.a(vgaplan4.o):
> : >: In function `ega_init':
> : >: vgaplan4.o(.text+0x5a8): undefined reference to `ioperm'
> : >: vgaplan4.o(.text+0x5a8): relocation truncated to fit: R_PPC_REL24
> ioperm
> : >:
> : >:
> /opt/hardhat/devkit/ppc/8xx/powerpc-linux/lib/libmwdrivers.a(vgaplan4.o):
> : >: In function `fbvga_setiopermissions':
> : >: vgaplan4.o(.text+0x744): undefined reference to `ioperm'
> : >: vgaplan4.o(.text+0x744): relocation truncated to fit: R_PPC_REL24
> ioperm
> : >:
> : >: collect2: ld returned 1 exit status
> : >: make: *** [mvdemo] Error 1
> : >:
> : >: Would you please help.
> : >:
> : >: Thanks,
> : >: Mae
> : >:
> : >:
> : >
> :
> :
> ____________________________________________________________________________
> _________
> : Get more from the Web.  FREE MSN Explorer download :
> http://explorer.msn.com
> :
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####

Previous by date: 30 Nov 2000 00:44:48 -0000 Re: Microwindows on PowerPC, Greg Haerr
Next by date: 30 Nov 2000 00:44:48 -0000 the project plan and objective, Tony Hoo
Previous in thread: 30 Nov 2000 00:44:48 -0000 Re: Microwindows on PowerPC, Greg Haerr
Next in thread:


Powered by ezmlm-browse 0.20.