Re: XFree86-4.1.0-19mdk and PPC..

2001-10-18 Thread Gwenole Beauchesne

On Wed, 17 Oct 2001, Ben Reser wrote:

 I believe -fno-merge-constants is a x86 only thing.  It's a compiler
 optimization that was added and turned on by default.  That flag turns
 it off.  If you compiler doesn't support it then it doesn't support the
 optimization either so removing it will not harm anything.

Hmm, forgot to make a fix for XFree86. Constants merging is not an
x86-only thing. It's just that option got backported to gcc-2.96 and
3.0.x from gcc-3.1.

A patch is attached.


--- XFree86-4.spec~ Thu Oct  4 21:51:39 2001
+++ XFree86-4.spec  Thu Oct 18 09:08:25 2001
@@ -526,6 +526,9 @@
 # S3 driver
 cd xc/programs/Xserver/hw/xfree86/drivers; bzcat %{SOURCE203} | tar xf -; cd -
 
+# Check for constants merging capabilities to disable
+NO_MERGE_CONSTANTS=$(if %{__cc} -fno-merge-constants -S -o /dev/null -xc /dev/null 
+/dev/null 21; then echo -fno-merge-constants; fi)
+
 cat xc/config/cf/host.def END
 %if %{BuildDebugVersion}
 #define XFree86Devel   YES
@@ -536,7 +539,7 @@
 #define DefaultGcc2AxpOpt   $RPM_OPT_FLAGS
 
 #define NeedModuleRanlib   YES
-#define ModuleCFlags \$(CDEBUGFLAGS) \$(CCOPTIONS) -fno-merge-constants \
+#define ModuleCFlags \$(CDEBUGFLAGS) \$(CCOPTIONS) $NO_MERGE_CONSTANTS \
 \$(THREAD_CFLAGS) \$(ALLDEFINES)
 #define ModuleRanlibCmdRanlibCmd
 



Re: XFree86-4.1.0-19mdk and PPC..

2001-10-18 Thread Stew Benedict


On Wed, 17 Oct 2001, Ian White wrote:

 
 Anybody got XFree86-4.1.0-19 to compile under PPC? Looks like we need a
 newer gcc. I get this part way through (sorry about the wrapping):
 
 cc1: Invalid option `-fno-merge-constants'
 make[1]: *** [arith.o] Error 1
 make[1]: Leaving directory
 `/usr/src/RPM/BUILD/XFree86-4.1.0/xc/lib/font/Type1/module'
 

I've submitted patches to Frederic that don't use -fno-merge-constants
to build (you could manually take it out of the .spec file), as well as
pull in new ATI drivers from CVS and Joshi's nVidea patch.  We should see
a new version soon with these mods for PPC.  Just taking the option out
will build it, but the ATI driver produces backwards text.

If we go to the newer gcc, there's a whole new set of problems to deal
with.  We started out with 2.96 before 8.0 and had a lot of problems with
it.

Stew Benedict

-- 
MandrakeSoftOH/TN, USA  http://perso.mandrakesoft.com/~sbenedict/
PPC FAQ: http://www.linux-mandrake.com/en/demos/PPC/FAQ/





Re: DVD

2001-10-18 Thread Henrik Edlund

On Thu, 18 Oct 2001, cjw wrote:

c Somehow I believed you live in the USA,  I suppose you don't.

Heh, Henrik is not a common American name, but I guess with all
immigrants the last 300 years there you couldn't now. Btw, Henrik is
Henry in English.

c Normally just MMX optimization and DLL support, but I think it was
c something else with VideoLAN. MPlayer however compiles without any
c problems. I put a source RPM at
c   http://www.phys.uu.nl/~welvaart/MPlayer-20011016-1mdk.src.rpm

I also got mplayer to compile, but it could never play anything as it
relied on codecs from Win32 DLLs. VideoLAN is better in that sense I guess
trying to native implement codecs.

c It doesn't build the experimental GUI, only has a command line
c interface. I only recently found out you need to give it a configure
c option to enable the GUI. But of course you're free to change it (:

What codecs is included in that Mplayer? Will it play Avi's with DivX?

c I just start the server with -kb. There is also an option you can put in
c XF86Config. This defaults to an english keyboard layout however, so may
c not be useful for you. I had keyboard problems right when I upgraded to
c mandrake X rpms (4.0.3). The XKeyboard extension messed things up somehow.
c I tried to load a mac keymap and hide all keymaps from it but that didn't
c help at all.

Exactly, I had to do this, but then my e key just stopped working, that
is why I had to go back to 4.0.3 as living without e key is sort of
difficult (and annoying).

-- 
Henrik Edlund [EMAIL PROTECTED]
http://www.edlund.org/

You're young, you're drunk, you're in bed, you have knives; shit
happens. -- Angelina Jolie





Re: DVD

2001-10-18 Thread cjw

On Wed, 17 Oct 2001, Henrik Edlund wrote:

 On Wed, 17 Oct 2001, cjw wrote:

snip

Somehow I believed you live in the USA,  I suppose you don't.

 c My first quick try at compiling it failed.

 Yepp. Getting any of these players to compile under Mandrake PPC is a
 hell.

Normally just MMX optimization and DLL support, but I think it was
something else with VideoLAN. MPlayer however compiles without any
problems. I put a source RPM at
  http://www.phys.uu.nl/~welvaart/MPlayer-20011016-1mdk.src.rpm
It doesn't build the experimental GUI, only has a command line
interface. I only recently found out you need to give it a configure
option to enable the GUI. But of course you're free to change it (:

 I tried compiling 4.1.0 frm Mandrake SRPMs and upgrading but my keyboard
 freaked out after that upgrade so I had to go back to 4.0.3.
I just start the server with -kb. There is also an option you can put in
XF86Config. This defaults to an english keyboard layout however, so may
not be useful for you. I had keyboard problems right when I upgraded to
mandrake X rpms (4.0.3). The XKeyboard extension messed things up somehow.
I tried to load a mac keymap and hide all keymaps from it but that didn't
help at all.


Christiaan






Re: DVD

2001-10-18 Thread Henrik Edlund

On Thu, 18 Oct 2001, cjw wrote:

c I used mplayer and VideoLAN on a .VOB, both with XVideo. Looks and sounds
c ok, but with a low frame rate - they drop about 75% of the frames.
c Since your mac is faster you should get better results. MPlayer shows
c various statistics in the terminal. Apple says my mac is not fast enough
c to play DVDs with software decoder, so it's not really surprising it
c doesn't work perfectly.
c
c With SDL output the result is about the same it seems.

SDL probably uses xvideo.

c It can play at least MPEG, DVD and DivX Avis, I almost never use other
c AVI files. MPlayer is not really better than VideoLAN it seems, but it has
c more options, so should be a good tool to find out what's going on.
c
c It says it supports the following apart from MPEG1 and MPEG2:
c ffmjpeg5  working   FFmpeg MJPEG decoder  [mjpeg]
c ffi263 5  working   FFmpeg I263 decoder  [h263i]
c ffh263 5  working   FFmpeg H263+ decoder  [h263]
c ffdivx 5  working   FFmpeg DivX ;-) (MS MPEG-4 v3)  [msmpeg4]
c ffodivx5  working   FFmpeg OpenDivX  [mpeg4]
c ffmpeg12   5  working   FFmpeg-1  [mpegvideo]

Hmm, I am not sure about that, look at this:

Detected video codec: [divx] drv:2 (DivX ;-) (MS MPEG-4 v3))
Support for win32 codecs disabled, or unavailable on non-x86 platforms!
FATAL: Couldn't initialize video codec :(

I get this for all my .avi's.

c Plus indeed a lot of formats with DLLs :(. The SRPM includes FFmpeg and
c DVD support, but you need to build and install the two dvd input libs
c separately. I forgot to put them in the BuildRequires, though :(.
c   info at  http://www.mplayerhq.hu/DOCS/cd-dvd.html#4.2

Mplayer indeed complains about my computer to, even at nice -20 and the
framedrop is a lot worse than with VideoLAN. With VideoLAN I at least get
a good picture rate, it is just the sound that is bad.

c Did you try to fix it with xkeycaps? You could try my X server build, it
c includes both my patched ati drivers and the originals, or build it from
c cvs yourself. My comma key stopped working once, but I fixed it some way
c without installing a different X server IIRC. (after a couple of weeks,
c comma is not really essential :o)

Currently I have 120 hour workweeks so I don't have that much time playing
around testing, I just want something what works (dammit) ;-)

-- 
Henrik Edlund [EMAIL PROTECTED]
http://www.edlund.org/

You're young, you're drunk, you're in bed, you have knives; shit
happens. -- Angelina Jolie





Airport Card

2001-10-18 Thread Ryan Boder


Hi, is anybody using an apple airport card with Mandrake linux 8.0? I just
bought one. If so what do I do to use it? If not I would like to get it
working. Any suggestions or instructions?

All I have tries so far is installing the kernel-pcmcia-cs package from
the Mandake 8.0 cd and /etc/init.d/pcmcia start does not seem to do
anything with the airport card.


Ryan Boder
http://www.ece.cmu.edu/~rtb






Re: Airport Card

2001-10-18 Thread Henrik Edlund

On Thu, 18 Oct 2001, Stew Benedict wrote:

SB example:
SB
SB 0x01bf  0x010a  xirc2ps_csAccton|EN226  ethernet
SB
SB I'd like to work towards getting the card detected/setup during the
SB install in the next release.

How do I get/fetch the information you need?

-- 
Henrik Edlund [EMAIL PROTECTED]
http://www.edlund.org/

You're young, you're drunk, you're in bed, you have knives; shit
happens. -- Angelina Jolie





Re: Airport Card

2001-10-18 Thread Stew Benedict



On Fri, 19 Oct 2001, Henrik Edlund wrote:

 On Thu, 18 Oct 2001, Stew Benedict wrote:
 
 SB example:
 SB
 SB 0x01bf  0x010a  xirc2ps_csAccton|EN226  ethernet
 SB
 SB I'd like to work towards getting the card detected/setup during the
 SB install in the next release.
 
 How do I get/fetch the information you need?
 

This may not be where to look. I'm sort of guessing as I'm not blessed
with this hardware.  It's like PCMCIA I take it, but not quite. It may be
more appropriate to just probe the modules like we do for mesh, bmac, etc.
What I'm looking for is some kind of clue that the device is present, even
before I try to probe, which may save me from locking up a machine
unecessarily.  Does dmesg or /proc give any indication before the
module(s) are installed?

With normal PCMCIA, the info corresponds with what cardctl reads:

[root@powerbook pcmcia-cs-3.1.26]# cardctl ident
Socket 0:
  product info: Ethernet, Adapter, 2.0
  manfid: 0x0149, 0xc1ab
  function: 6 (network)


Any info you can provide would help.

Thx,
Stew Benedict

-- 
MandrakeSoftOH/TN, USA  http://perso.mandrakesoft.com/~sbenedict/
PPC FAQ: http://www.linux-mandrake.com/en/demos/PPC/FAQ/





Re: Airport Card

2001-10-18 Thread Ben Reser

On Thu, Oct 18, 2001 at 08:46:10PM -0400, Stew Benedict wrote:
 
 On Thu, 18 Oct 2001, Ben Reser wrote:
 
  a) 3.1.26 of the pcmcia kernel module which is what ships with Mandrake
  8.0 doesn't work on ppc.  Only 3.1.27 and higher do.
  
 
 ???
 
 [root@powerbook pcmcia-cs-3.1.26]# dmesg
 ---snip
 Linux PCMCIA Card Services 3.1.26
   kernel build: 2.4.4-6.2mdk #1 Thu Jun 28 02:41:08 CEST 2001
   options:  [pci] [cardbus]
 Intel PCIC probe: 
   TI 1211 rev 00 PCI-to-CardBus at slot 00:13, mem 0x8088
 host opts [0]: [serial pci  irq] [pci irq 22] [lat 32/176] [bus 1/4]
 PCI card interrupts, polling interval = 1000 ms
 cs: memory probe 0x8000-0x80ff: excluding 0x8080-0x808f
 eth1: NE2000 Compatible: io 0x300, irq 22, hw_addr 00:E0:98:03:DB:9D

At least this is what I'm told and I have problems with it hanging the
entire machine.  Particularly when removing cards.  Stopping pcmcia,
removing the card and starting it again prevents this.

-- 
Ben Reser [EMAIL PROTECTED]
http://ben.reser.org

To fight and conquer in all our battles is not supreme excellence. 
Supreme excellence consists in breaking the enemy's resistance without
fighting. -Chinese philosopher Sun Tzu