nanogui: Thread: Microwindows on SuperH


[<<] [<] Page 1 of 3 [>] [>>]
Subject: Microwindows on SuperH
From: Masanori TOKUNAGA ####@####.####
Date: 17 Oct 2000 11:57:58 -0000
Message-Id: <39EC3F99.F5D1D9AE@nsc.mci.mei.co.jp>

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 ####@####.####


Subject: Re: Microwindows on SuperH
From: "Greg Haerr" ####@####.####
Date: 17 Oct 2000 13:46:01 -0000
Message-Id: <053f01c03841$46af09c0$6817dbd0@censoft.com>

Try FBVGA=N in config file.

Greg


----- 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: ####@####.####
: For additional commands, e-mail: ####@####.####
: 
: 

Subject: Re: Microwindows on SuperH
From: Masanori TOKUNAGA ####@####.####
Date: 18 Oct 2000 02:18:59 -0000
Message-Id: <39ED0946.2B00CFDD@nsc.mci.mei.co.jp>

Hi..

Greg Haerr wrote:

> Try FBVGA=N in config file.
>
> Greg

I tried ..
I successed to compile.

% ls  bin
convbmp*     digits.cl    malpha*      mtest2*      nterm*       punc.cl
demo*        ftdemo*      mdemo*       muserfd*     ntest*       slider*
demo2*       landmine*    mine*        nano-X*      nxclock*     t1demo*
demo3*       letters.cl   move*        nanogui.ppm  nxkbd*       vnc*
demo5*       logfont*     mterm*       nanowm*      nxscribble*  world*
demo6*       makebmp*     mtest*       npanel*      nxterm*      world.map

And I excuted demos.But I cannot see any demo..

bash-2.04#./mdemo
                        <-- screen cleared and no output
bash-2.04#

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: ####@####.####
> : For additional commands, e-mail: ####@####.####
> :
> :

--
TOKUNAGA ####@####.####


Subject: Re: Microwindows on SuperH
From: "Greg Haerr" ####@####.####
Date: 18 Oct 2000 03:43:13 -0000
Message-Id: <032901c038b5$f20c43e0$15320cd0@gregh>

: 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: ####@####.####
: > : For additional commands, e-mail: ####@####.####
: > :
: > :
: 
: --
: TOKUNAGA ####@####.####
: 
: 
: 

Subject: Re: Microwindows on SuperH
From: Masanori TOKUNAGA ####@####.####
Date: 18 Oct 2000 04:11:48 -0000
Message-Id: <39ED23D1.4564BE6A@nsc.mci.mei.co.jp>

Hi,

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

I found a miss configration in my config file.

I used PS/2 and moue on SH4 Solution Engine.
So I could not open mouse.


GPMMOUSE                 = Y      <-- change to N
SERMOUSE                 = N
TPMOUSE                  = N
TPHELIO                  = N
ADSMOUSE                 = N
IPAQMOUSE                = N
NOMOUSE                  = N       <-- change to Y

I want to use PS/2 mouse . What do I have to
do ?


--
TOKUNAGA ####@####.####


Subject: Re: Microwindows on SuperH
From: Jaswinder Singh ####@####.####
Date: 18 Oct 2000 04:35:55 -0000
Message-Id: <20001018043800.18781.qmail@web4006.mail.yahoo.com>

Dear Greg and Masanori-san,

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

Respected Greg , i am also execting this .

Dear Greg , earlier you suggested Masanori-san that :-
   Try FBVGA=N in config file.

i think , in case HP690 the display is mainly done by
HD64461 Companion chip. so Masanori-san has to write
outw , outb related to HD64461 . may be i am wrong .

Dear Greg , what you think about this ?

> I will
> try to
> find the guy's name at Lineo that ported SH and get
> the information to you...
>

Wow , that is really nice .


BTW, Masanori-san now-a-days i am in Tokyo , if your 
office is near by Tokyo , then we will sit and discuss
about this .

Thanks .

Best Regards,

Jaswinder.

> 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:
> ####@####.####
> : > : For additional commands, e-mail:
> ####@####.####
> : > :
> : > :
> : 
> : --
> : TOKUNAGA ####@####.####
> : 
> : 
> : 
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> ####@####.####
> For additional commands, e-mail:
> ####@####.####
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Messenger - Talk while you surf!  It's FREE.
http://im.yahoo.com/
Subject: Re: Microwindows on SuperH
From: Masanori TOKUNAGA ####@####.####
Date: 18 Oct 2000 10:44:52 -0000
Message-Id: <39ED7FD1.6E0D14E0@nsc.mci.mei.co.jp>

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: ####@####.####
> : > : For additional commands, e-mail: ####@####.####
> : > :
> : > :
> :
> : --
> : TOKUNAGA ####@####.####
> :
> :
> :
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####

--
TOKUNAGA ####@####.####


Subject: Re: Microwindows on SuperH
From: "Greg Haerr" ####@####.####
Date: 18 Oct 2000 16:24:43 -0000
Message-Id: <006f01c03920$5297f140$15320cd0@gregh>

: 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 ?

What is the framebuffer bits per pixel?  Perhaps the bytes
need to be bit-reversed.  Lineo Japan has performed
an SH port, I will send for more information, I have
not received it yet.

Regards,

Greg




:
: 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: ####@####.####
: > : > : For additional commands, e-mail: ####@####.####
: > : > :
: > : > :
: > :
: > : --
: > : TOKUNAGA ####@####.####
: > :
: > :
: > :
: >
: > ---------------------------------------------------------------------
: > To unsubscribe, e-mail: ####@####.####
: > For additional commands, e-mail: ####@####.####
:
: --
: TOKUNAGA ####@####.####
:
:
:

Subject: RE: Microwindows on SuperH
From: "KIM,KYOUNG-IL (HP-Cupertino,ex1)" ####@####.####
Date: 18 Oct 2000 21:41:41 -0000
Message-Id: <4341EF5F8B4AD311AB4B00902740B9F2018689DE@xcup02.cup.hp.com>

Hi, 

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. 

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: ####@####.####
> : > : For additional commands, e-mail: ####@####.####
> : > :
> : > :
> :
> : --
> : TOKUNAGA ####@####.####
> :
> :
> :
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ####@####.####
> For additional commands, e-mail: ####@####.####

--
TOKUNAGA ####@####.####



---------------------------------------------------------------------
To unsubscribe, e-mail: ####@####.####
For additional commands, e-mail: ####@####.####

Subject: Re: Microwindows on SuperH
From: Masanori TOKUNAGA ####@####.####
Date: 19 Oct 2000 03:42:15 -0000
Message-Id: <39EE6E67.DD4C8493@nsc.mci.mei.co.jp>

Dear Greg.

Greg Haerr wrote:

> : I want to use PS/2 mouse . What do I have to
> : do ?
>
> Make sure your kernel is set up for it, and then
> set SERMOUSE=Y and read the instructions/mods
> in src/drivers/mou_ser.c.

Thank to your help,
 I can use PS/2 mouse.

--
TOKUNAGA ####@####.####


[<<] [<] Page 1 of 3 [>] [>>]


Powered by ezmlm-browse 0.20.