nanogui: Re: Microwindows on PowerPC


Previous by date: 29 Nov 2000 23:18:55 -0000 Re: GrArc() function doc update [part trois], Robert Hartley
Next by date: 29 Nov 2000 23:18:55 -0000 Re: Microwindows on PowerPC, Kyle Harris
Previous in thread:
Next in thread: 29 Nov 2000 23:18:55 -0000 Re: Microwindows on PowerPC, Kyle Harris

Subject: Re: Microwindows on PowerPC
From: "Greg Haerr" ####@####.####
Date: 29 Nov 2000 23:18:55 -0000
Message-Id: <017a01c05a5b$dc8ff6c0$6817dbd0@censoft.com>

: Thank you very much for your help. I was able to compiled the code
: successfully after setting FBVGA=N.
:
: However, I still have another problem with the driver of my LCD frame
: buffer. I built the kernel with the (Embedded Planet HIOX) LCD frame
buffer
: support. The device file that represents the LCD frame buffer is not

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.

Regards,

Greg







: "/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
:


Previous by date: 29 Nov 2000 23:18:55 -0000 Re: GrArc() function doc update [part trois], Robert Hartley
Next by date: 29 Nov 2000 23:18:55 -0000 Re: Microwindows on PowerPC, Kyle Harris
Previous in thread:
Next in thread: 29 Nov 2000 23:18:55 -0000 Re: Microwindows on PowerPC, Kyle Harris


Powered by ezmlm-browse 0.20.