nanogui: Microwindows on SuperH


Previous by date: 13 Nov 2000 08:15:25 -0000 Re: it seems a bug, zjujoe
Next by date: 13 Nov 2000 08:15:25 -0000 Win SDK vs nano X, Sojan James
Previous in thread: 13 Nov 2000 08:15:25 -0000 Re: Microwindows on SuperH, Greg Haerr
Next in thread: 13 Nov 2000 08:15:25 -0000 Re: Microwindows on SuperH, KIM,KYOUNG-IL (HP-Cupertino,ex1)

Subject: Re: Microwindows on SuperH
From: Jaswinder Singh ####@####.####
Date: 13 Nov 2000 08:15:25 -0000
Message-Id: <20001113081757.8216.qmail@web4003.mail.yahoo.com>

Dear Greg , Masanori-san and others ,

Thank you very much for adding support for the SH3
 compilation in microwindows.

But please make some changes :-
In config file :-
replace 
SHTOOLSPREFIX            = sh-linux-gnu
with
SHTOOLSPREFIX            = sh-linux-gnu-

and 

In Arch.rules file :-
replace
CFLAGS += -m1 -m3 -Wall $(OPTFLAGS)
with
CFLAGS += -ml -m3 -Wall $(OPTFLAGS)

It is ml (l means little-endian)

To build microwindows for SH :-
i also made changes in 
1. config file 
replace
ARCH                     = LINUX-NATIVE
with
ARCH                     = LINUX-SH

and

replace 
FBVGA                    = Y
with 
FBVGA                    = N

2. drivers/vgaplan4.h 
replace
#include <sys/io.h>		/* for outb def's, requires -O */
#include <asm/io.h>		/* for outb def's, requires -O */

3. drivers/scr_fb.c 
replace
#include <sys/io.h>
requires -O */
#include <asm/io.h>

Then i am able to build binary files and libraries of
microwindows.

but when i run ./mterm or ./mdemo
i get :-
Error opening /dev/fb0 , no such file or directory 
Cannnot initialize screen

Then i made in dev directory:-
mknod fb0 c 29 0 
ln -s fb fb0

Then i run again ./mterm or ./mdemo
i got "screen cleared and no output" same as
Masanori-san get .

Please tell me what i have to do , to rectify this
problem.

Thanks,

Jaswinder.


--- Greg Haerr ####@####.#### wrote:
> : Frame buffer drivers in /src/drivers/fblin4.c are
> : for big endian. I modified fblin4.c for my SH
> little 
> : endian.  You have to check bit pixels in frame
> buffer.
> : See comments in source file(fblin4.c) I attached. 
> : This is 4bpp display. 
> 
> I  have added drivers/fblin4sh3.c to the
> Microwindows 0.89pre6
> tree, as well as adding support for the SH3
> compilation.  I
> wasn't able to test this, but it seems that there's
> already a 
> reversed-nibble order 4bpp driver,
> drivers/fblin4rev.c in
> the distribution.  Could you check to see whether
> both
> the fblin4sh3.c and fblin4rev.c are reqiured?
> 
> Regards,
> 
> Greg
> 
> 
> 
> 
> 
> 
> : 
> : BigEndian (original fblin4.c)
> :         32                 16 15                0
> :         -----------------------------------------
> :         | P7 | P6 | P5 | P4 | P3 | P2 | P1 | P0 |
> :         -----------------------------------------
> : 
> : LittleEndian (My SH3 target, attatched file,
> fblin4.c) 
> : 
> :         32                 16 15                0
> :         -----------------------------------------
> :         | P0 | P1 | P2 | P3 | P4 | P5 | P6 | P7 |
> :         -----------------------------------------
> : You'd better check how pixels are allocated in
> : your frame buffer memory.
> : 
> : Good Luck, 
> : Kyoung Kim
> : 
> : -----Original Message-----
> : From: Masanori TOKUNAGA
> : To: Greg Haerr; ####@####.####
> : Sent: 10/18/00 3:47 AM
> : Subject: Re: Microwindows on SuperH
> : 
> : Hi..
> : I succedded to excute 'mdemo' on SuperH .
> : But outputs is strange...
> : It seems that bitmaps is reversed.
> : I suspect there is a endian problerm...
> : Linux-sh is running little endian.
> : 
> : Is this a framebuffer driver bug or a microwindow
> bug ?
> : 
> : Greg Haerr wrote:
> : 
> : > : bash-2.04#./mdemo
> : > :                         <-- screen cleared and
> no output
> : > : bash-2.04#
> : > :
> : >
> : > Lineo has performed a SuperH port of
> Microwindows, but
> : > I have not received it.  I suspect there is a
> porting problem, or
> : > that your framebuffer is not setup properly.  I
> will try to
> : > find the guy's name at Lineo that ported SH and
> get
> : > the information to you...
> : >
> : > Regards,
> : >
> : > Greg
> : >
> : > : Uhmm..
> : > :
> : > :
> : > : > ----- Original Message -----
> : > : > From: Masanori TOKUNAGA
> ####@####.####
> : > : > To: ####@####.####
> : > : > Sent: Tuesday, October 17, 2000 6:01 AM
> : > : > Subject: Microwindows on SuperH
> : > : >
> : > : > : Hi,
> : > : > : I try to compile microwindow for
> framebuffer device on SuperH.
> : > : > : I have errors.
> : > : > : Please help me.
> : > : > :
> : > : > : Error:
> : > : > : Compiling srvnet.c ...
> : > : > :
> /tmp/a/microwin/src/lib/libmwdrivers.a(vgaplan4.o):
> In function
> : > : > : `ega_drawpixel':
> : > : > : vgaplan4.o(.text+0x100): undefined
> reference to `outw'
> : > : > :
> /tmp/a/microwin/src/lib/libmwdrivers.a(vgaplan4.o):
> In function
> : > : > : `ega_drawhorzline':
> : > : > : vgaplan4.o(.text+0x2f8): undefined
> reference to `outw'
> : > : > : vgaplan4.o(.text+0x304): undefined
> reference to `outb'
> : > : > : vgaplan4.o(.text+0x37c): undefined
> reference to `outb'
> : > : > :
> /tmp/a/microwin/src/lib/libmwdrivers.a(vgaplan4.o):
> In function
> : > : > : `ega_drawvertline':
> : > : > : vgaplan4.o(.text+0x4f0): undefined
> reference to `outw'
> : > : > :
> /tmp/a/microwin/src/lib/libmwdrivers.a(vgaplan4.o):
> In function
> : > : > : `ega_init':
> : > : > : vgaplan4.o(.text+0x55c): undefined
> reference to `ioperm'
> : > : > : ...
> : > : > :
> : > : > :
> : > : > :
> : > : > : --
> : > : > : $ diff Makefile.rules.org Makefile.rules
> : > : > : 129c129
> : > : > : < CC = $(TOOLSPREFIX)$(COMPILER)
> : > : > : ---
> : > : > : > CC = $(TOOLSPREFIX)$(COMPILER) -ml -m3
> : > : > :
> : > : > : $ diff Arch.rules.org Arch.rules
> : > : > : 32a33,41
> : > : > : > ifeq ($(ARCH), LINUX-SH)
> : > : > : > COMPILER = gcc
> : > : > : > CXX_COMPILER = g++
> : > : > : > TOOLSPREFIX = $(SHTOOLSPREFIX)
> : > : > : > DEFINES += -DLINUX=1 -DUNIX=1
> : > : > : > CFLAGS += -Wall $(OPTFLAGS)
> : > : > : > LDFLAGS +=
> : > : > : > endif
> : > : > : >
> : > : > :
> : > : > : % diff config.org config
> : > : > : 36a37
> : > : > : > SHTOOLSPREFIX          = sh-linux-gnu-
> : > : > : 241,242c242,243
> : > : > : < TTYKBD                   = Y
> : > : > : < NOKBD                    = N
> : > : > : ---
> : > : > : > TTYKBD                   = N
> : > : > : > NOKBD                    = Y
> : > : > :
> : > : > : $ diff drivers/scr_fb.c.org 
> drivers/scr_fb.c
> : > : > : 21c21
> : > : > : < #include <sys/io.h>
> : > : > : ---
> : > : > : > #include <asm/io.h>
> : > : > :
> : > : > : $ diff drivers/vgaplan4.h
> drivers/vgaplan4.h.org
> : > : > : 22,23c22,23
> : > : > : < /* #include <sys/io.h> */             /*
> for outb def's,
> : requires -O
> : > : > : */
> : > : > : < #include <asm/io.h>   /* for outb def's
> on 2.3.x*/
> : > : > : ---
> : > : > : > #include <sys/io.h>           /* for
> outb def's, requires -O
> : */
> : > : > : > /* #include <asm/io.h>        */ /* for
> outb def's on 2.3.x*/
> : > : > :
> : > : > :
> : > : > : --
> : > : > : TOKUNAGA
> ####@####.####
> : > : > :
> : > : > :
> : > : > :
> : > : > :
> :
>
---------------------------------------------------------------------
> : > : > : To unsubscribe, e-mail:
> ####@####.####
> 
=== message truncated ===


__________________________________________________
Do You Yahoo!?
Yahoo! Calendar - Get organized for the holidays!
http://calendar.yahoo.com/

Previous by date: 13 Nov 2000 08:15:25 -0000 Re: it seems a bug, zjujoe
Next by date: 13 Nov 2000 08:15:25 -0000 Win SDK vs nano X, Sojan James
Previous in thread: 13 Nov 2000 08:15:25 -0000 Re: Microwindows on SuperH, Greg Haerr
Next in thread: 13 Nov 2000 08:15:25 -0000 Re: Microwindows on SuperH, KIM,KYOUNG-IL (HP-Cupertino,ex1)


Powered by ezmlm-browse 0.20.