Subject: devel-digest V2 #225
From: [email-masked] (devel-digest)
To: [email-masked]

devel-digest         Thursday, August 12 1999         Volume 02 : Number 225

In this issue:

    Re: mpg123
    Re: mpg123
    Re: mpg123
    Booting kernel using TFTP and NetRom 2.0.8e
    Re: Booting kernel using TFTP and NetRom 2.0.8e
    Re: Booting kernel using TFTP and NetRom 2.0.8e
    Re: mpg123
    Re: mpg123
    Re: mpg123
    Re: mpg123
    Build 15
    Re: mpg123
    Re: mpg123
    Re: Build 15
    Strong ARM rev. T
    Re: Build 15
    Re: Strong ARM rev. T
    boot problems

See the end of this digest for information about devel-digest.

----------------------------------------------------------------------

Date: 3 Aug 1999 17:06:53 GMT
From: [email-masked] ()
Subject: Re: mpg123

On Sun, 01 Aug 1999 18:58:26 -0700, Eric A. Perlman <[email-masked]> wrote:
>>
>>
>> I have xaudio running on my glibc2.1 based netwinder.  All you have to do is
>> download the arm-sdk and compile the sample cmdline player.  It works
>> reasonably well, although strange things happen when I use it and try to do
>> something else.  eg.  Machine locks hard when I try to ssh to my laptop
>> attached via crossover cable to eth1, and switching desktops in E with xaudio
>> playing in a eterm window also causes it to lock hard.  Oh well, if you
>> want a version of xaudio that works on my glibc 2.1 based system, let me know.
>
>So wait a second, I am not the only one who has these random crashes while I play
>mp3s?  I asked about it 3-4 months ago and all the responses were "maybe your
>machine over heats", etc.  Nothing useful.
>
>I crash whenever I play an mp3 and do anything else.  mp3 + x == crash withen 5
>minutes, mp3 + compile == instant crash...
>
>Yes, I'm using xaudio.
>

Update:  I can infact compile and play mp3's in X.  The problem occurs when I
access eth1 (tulip card) while playing mp3's.  The problem in X occurs when
I switch desktops in E while playing mp3's.  Otherwise, mp3's work great.  I
am running pre-titanVI in anyone is interested using the sample cmdline 
player that comes with the xaudio arm sdk that I compiled myself.  

- ---
This message processed by the Netwinder.Org news2mail gateway.

- --
This list is run automagically by Majordomo 1.94.4
Please send email questions to [email-masked]
To UNSUBSCRIBE: email [email-masked] with
"unsubscribe devel" as the body of your message.

------------------------------

Date: 3 Aug 1999 17:09:39 GMT
From: [email-masked] ()
Subject: Re: mpg123

On Tue, 03 Aug 1999 13:10:30 -0400, Douglas Paul <[email-masked]>
wrote:
>"Eric A. Perlman" wrote:
>
>> So wait a second, I am not the only one who has these random crashes while I play
>> mp3s?  I asked about it 3-4 months ago and all the responses were "maybe your
>> machine over heats", etc.  Nothing useful.
>>
>> I crash whenever I play an mp3 and do anything else.  mp3 + x == crash withen 5
>> minutes, mp3 + compile == instant crash...
>>
>> Yes, I'm using xaudio.
>>
>> -eric
>
>I have some problems crashing when playing MP3s, but it happens playing any type of
>sound in general. It seems almost like its a conflict between the Tulip and sound.
>Whenever I tried playing sounds, I would get this message at the console:
>
>eth1: The transmitter stopped pos2 !  CSR5 is f0668020, CSR6 b20e2002.
>
>and the machine would freeze solid. I took a look in the tulip driver, and found a
>while(1); statement right after it printed that message. I took it out, and it
>doesn't seem to crash anymore, it just prints the message every once in a while, but
>doesn't seem to affect anything. Sometimes the tulip will still die, but if I remove
>the module and re-insert it, it comes back to life. I still am getting /infrequent
>freezes, but I think that's heat related (ie, it doesn't do it anymore if I put a
>bigger fan on it).
>
>Another reason it seems like there's a conflict is that when I play MP3s over NFS, I
>hear some distortions that aren't there when I play them from the hard drive...
>
>Btw, I'm using kernel 2.2.9... I'll try a newer one when I get a chance (ie, after my
>exams...)
>
>

I am also using 2.2.9 and was getting the same message you are.  I will try 
removing the while statement you mentioned to see if it helps.

- ---
This message processed by the Netwinder.Org news2mail gateway.

- --
This list is run automagically by Majordomo 1.94.4
Please send email questions to [email-masked]
To UNSUBSCRIBE: email [email-masked] with
"unsubscribe devel" as the body of your message.

------------------------------

Date: 3 Aug 1999 17:42:07 GMT
From: [email-masked] ()
Subject: Re: mpg123

>>
>>I have some problems crashing when playing MP3s, but it happens playing any type of
>>sound in general. It seems almost like its a conflict between the Tulip and sound.
>>Whenever I tried playing sounds, I would get this message at the console:
>>
>>eth1: The transmitter stopped pos2 !  CSR5 is f0668020, CSR6 b20e2002.
>>
>>and the machine would freeze solid. I took a look in the tulip driver, and found a
>>while(1); statement right after it printed that message. I took it out, and it
>>doesn't seem to crash anymore, it just prints the message every once in a while, but
>>doesn't seem to affect anything. Sometimes the tulip will still die, but if I remove
>>the module and re-insert it, it comes back to life. I still am getting /infrequent
>>freezes, but I think that's heat related (ie, it doesn't do it anymore if I put a
>>bigger fan on it).
>>
>>Another reason it seems like there's a conflict is that when I play MP3s over NFS, I
>>hear some distortions that aren't there when I play them from the hard drive...
>>
>>Btw, I'm using kernel 2.2.9... I'll try a newer one when I get a chance (ie, after my
>>exams...)
>>
>>
>
>I am also using 2.2.9 and was getting the same message you are.  I will try 
>removing the while statement you mentioned to see if it helps.
>
>

That appears to have fixed my mp3 playing problems.  I can now play mp3's
while using eth1 or switching desktops in X.  Thanks for the help.  Quality
does suffer under heavy eth1 traffic, such as scp'ing a file, but nothing I
can't live with.

- ---
This message processed by the Netwinder.Org news2mail gateway.

- --
This list is run automagically by Majordomo 1.94.4
Please send email questions to [email-masked]
To UNSUBSCRIBE: email [email-masked] with
"unsubscribe devel" as the body of your message.

------------------------------

Date: Tue, 3 Aug 1999 14:16:46 -0700
From: "Matthew Curfman" <[email-masked]>
Subject: Booting kernel using TFTP and NetRom 2.0.8e

I am playing with NetRom 2.0.8e and the 2.2.9 kernel.  Everything works fine
booting the kernel off of the partition, but when I try to boot the same
kernel from a tftp server, I see a) the tftp client download the server
successfully, and then b) a clear black screen.  What I would expect is to
see the kernel boot at this point, but it just hangs at the black screen.
The kernel on the tftp server was diffed and confirmed to be the same as the
kernel on the partition that boots succesfully, and I have tried different
tftp servers on different machines running on different networks.

Is this a known issue with the NetRom 2.0.8e, or am I doing something stupid
:)

Thanks for any help in advance,
- -Matt

- ---
This message processed by the Netwinder.Org news2mail gateway.

- --
This list is run automagically by Majordomo 1.94.4
Please send email questions to [email-masked]
To UNSUBSCRIBE: email [email-masked] with
"unsubscribe devel" as the body of your message.

------------------------------

Date: Tue, 03 Aug 1999 19:15:48 -0400
From: "Andrew E. Mileski" <[email-masked]>
Subject: Re: Booting kernel using TFTP and NetRom 2.0.8e

TFTP is known to be broken in 2.0.8e (somehow it got it got built with
a bad arpa/tftp.h that didn't force a packed structure).

I've been using 2.1.7 with good success.  If you feel lucky, it's in Woodys
home dir.

Matthew Curfman wrote:
> I am playing with NetRom 2.0.8e and the 2.2.9 kernel.  Everything works fine
> booting the kernel off of the partition, but when I try to boot the same
> kernel from a tftp server, I see a) the tftp client download the server
> successfully, and then b) a clear black screen.  What I would expect is to
> see the kernel boot at this point, but it just hangs at the black screen.
> The kernel on the tftp server was diffed and confirmed to be the same as the
> kernel on the partition that boots succesfully, and I have tried different
> tftp servers on different machines running on different networks.
> 
> Is this a known issue with the NetRom 2.0.8e, or am I doing something stupid
> :)
> 
> Thanks for any help in advance,
> -Matt

- --
Andrew E. Mileski - Software Engineer
Rebel.com  http://www.rebel.com/

- ---
This message processed by the Netwinder.Org news2mail gateway.

- --
This list is run automagically by Majordomo 1.94.4
Please send email questions to [email-masked]
To UNSUBSCRIBE: email [email-masked] with
"unsubscribe devel" as the body of your message.

------------------------------

Date: Tue, 03 Aug 1999 19:17:25 -0400
From: "Andrew E. Mileski" <[email-masked]>
Subject: Re: Booting kernel using TFTP and NetRom 2.0.8e

TFTP is known to be broken in 2.0.8e (somehow it got built with a bad
arpa/tftp.h that didn't force a packed structure).

I've been using 2.1.7 with good success.  If you feel lucky, it's in Woodys
home dir.

Matthew Curfman wrote:
> 
> I am playing with NetRom 2.0.8e and the 2.2.9 kernel.  Everything works fine
> booting the kernel off of the partition, but when I try to boot the same
> kernel from a tftp server, I see a) the tftp client download the server
> successfully, and then b) a clear black screen.  What I would expect is to
> see the kernel boot at this point, but it just hangs at the black screen.
> The kernel on the tftp server was diffed and confirmed to be the same as the
> kernel on the partition that boots succesfully, and I have tried different
> tftp servers on different machines running on different networks.
> 
> Is this a known issue with the NetRom 2.0.8e, or am I doing something stupid
> :)
> 
> Thanks for any help in advance,
> -Matt

- --
Andrew E. Mileski - Software Engineer
Rebel.com  http://www.rebel.com/

- ---
This message processed by the Netwinder.Org news2mail gateway.

- --
This list is run automagically by Majordomo 1.94.4
Please send email questions to [email-masked]
To UNSUBSCRIBE: email [email-masked] with
"unsubscribe devel" as the body of your message.

------------------------------

Date: Wed, 04 Aug 1999 10:22:34 +0200
From: Jan Rinze <[email-masked]>
Subject: Re: mpg123

Mark Knox wrote:

>
> If you're not the timid kind, you might be able to download dm-3.0-15
> from /users/a/andrewm.. but I'll warn you right now that it's NOT
> production quality yet, and it's totally unsupported.
>

I can only find dm-3.0-14 there, I already have that one.
Could you be more specific as to where I can get dm-3.0-15 ??

thanks,

Jan Rinze.

(who still not has a working 2.2 kernel and loves to have RedHat 6.0 on his
Netwinder.)

- ---
This message processed by the Netwinder.Org news2mail gateway.

- --
This list is run automagically by Majordomo 1.94.4
Please send email questions to [email-masked]
To UNSUBSCRIBE: email [email-masked] with
"unsubscribe devel" as the body of your message.

------------------------------

Date: Wed, 04 Aug 1999 13:55:55 +0000
From: Mark Knox <[email-masked]>
Subject: Re: mpg123

> >>
> >
> >I am also using 2.2.9 and was getting the same message you are.  I will try
> >removing the while statement you mentioned to see if it helps.
> >
> >
> 
> That appears to have fixed my mp3 playing problems.  I can now play mp3's
> while using eth1 or switching desktops in X.  Thanks for the help.  Quality
> does suffer under heavy eth1 traffic, such as scp'ing a file, but nothing I
> can't live with.

I've also noticed (at least on my machines) that switching the hard disk
over to PIO mode 4 instead of DMA transfers improves my sound playback
quite a bit. Just run
hdparm -p 4 /dev/hda
if you want to try it out.. at your own risk, of course ;)

In DMA mode the sound would pause when the drive got busy, but this
doesn't happen in PIO mode.

- -- 
     \|/
    (o o)         Mark Knox
  ^  \ /  ^         Software Engineer
// \\ v // \\         Rebel.com Inc.   http://www.rebel.com
    ( . )
 ----m-m----------------------------------------------------------

- ---
This message processed by the Netwinder.Org news2mail gateway.

- --
This list is run automagically by Majordomo 1.94.4
Please send email questions to [email-masked]
To UNSUBSCRIBE: email [email-masked] with
"unsubscribe devel" as the body of your message.

------------------------------

Date: Wed, 04 Aug 1999 12:12:43 -0400
From: "Andrew E. Mileski" <[email-masked]>
Subject: Re: mpg123

Jan Rinze wrote:
> Mark Knox wrote:
> > If you're not the timid kind, you might be able to download dm-3.0-15
> > from /users/a/andrewm.. but I'll warn you right now that it's NOT
> > production quality yet, and it's totally unsupported.
> >
> 
> I can only find dm-3.0-14 there, I already have that one.
> Could you be more specific as to where I can get dm-3.0-15 ??

THat must have been what Mark meant.

- --
Andrew E. Mileski - Software Engineer
Rebel.com  http://www.rebel.com/

- ---
This message processed by the Netwinder.Org news2mail gateway.

- --
This list is run automagically by Majordomo 1.94.4
Please send email questions to [email-masked]
To UNSUBSCRIBE: email [email-masked] with
"unsubscribe devel" as the body of your message.

------------------------------

Date: Thu, 05 Aug 1999 13:53:10 +0200
From: Jan Rinze <[email-masked]>
Subject: Re: mpg123

"Andrew E. Mileski" wrote:

> Jan Rinze wrote:
> > Mark Knox wrote:
> > > If you're not the timid kind, you might be able to download dm-3.0-15
> > > from /users/a/andrewm.. but I'll warn you right now that it's NOT
> > > production quality yet, and it's totally unsupported.
> > >
> >
> > I can only find dm-3.0-14 there, I already have that one.
> > Could you be more specific as to where I can get dm-3.0-15 ??
>
> THat must have been what Mark meant.
>
> --
> Andrew E. Mileski - Software Engineer
> Rebel.com  http://www.rebel.com/

Darn, that just what I was afraid of ...

Let's hope we don't need to wait too long for 15 to arrive.

Keep up the good work !

Jan Rinze.

- ---
This message processed by the Netwinder.Org news2mail gateway.

- --
This list is run automagically by Majordomo 1.94.4
Please send email questions to [email-masked]
To UNSUBSCRIBE: email [email-masked] with
"unsubscribe devel" as the body of your message.

------------------------------

Date: Thu, 05 Aug 1999 11:56:19 -0400
From: "Andrew E. Mileski" <[email-masked]>
Subject: Build 15

> > > I can only find dm-3.0-14 there, I already have that one.
> > > Could you be more specific as to where I can get dm-3.0-15 ??
> >
> > THat must have been what Mark meant.
> 
> Darn, that just what I was afraid of ...
> 
> Let's hope we don't need to wait too long for 15 to arrive.

With luck, build 15 will be ready in 2 weeks.  I had to change to a
glibc compiled against 2.2 kernel headers for devpts support to get
X working with 2.2 kernels, so I'm currently rebuilding everything.

Scott is working on a new set of tools though, so that may need another
rebuild too (which takes at least a week).

- --
Andrew E. Mileski - Software Engineer
Rebel.com  http://www.rebel.com/

- ---
This message processed by the Netwinder.Org news2mail gateway.

- --
This list is run automagically by Majordomo 1.94.4
Please send email questions to [email-masked]
To UNSUBSCRIBE: email [email-masked] with
"unsubscribe devel" as the body of your message.

------------------------------

Date: Thu, 05 Aug 1999 20:15:55 -0400
From: Mark Lord <[email-masked]>
Subject: Re: mpg123

Mark Knox wrote:
...
> I've also noticed (at least on my machines) that switching the hard disk
> over to PIO mode 4 instead of DMA transfers improves my sound playback
> quite a bit. Just run
> hdparm -p 4 /dev/hda
> if you want to try it out.. at your own risk, of course ;)
> 
> In DMA mode the sound would pause when the drive got busy, but this
> doesn't happen in PIO mode.

Mmmm.. I wonder if the bus latency timer value can be
reprogrammed to a smaller value for the IDE interface?

That way, DMA oughta be just as good again.
- -- 
Mark Lord
Real-Time Remedies Inc.
[email-masked]

- ---
This message processed by the Netwinder.Org news2mail gateway.

- --
This list is run automagically by Majordomo 1.94.4
Please send email questions to [email-masked]
To UNSUBSCRIBE: email [email-masked] with
"unsubscribe devel" as the body of your message.

------------------------------

Date: Thu, 05 Aug 1999 20:20:37 -0400
From: Mark Lord <[email-masked]>
Subject: Re: mpg123

Mark Knox wrote:
...
> I've also noticed (at least on my machines) that switching the hard disk
> over to PIO mode 4 instead of DMA transfers improves my sound playback
> quite a bit. Just run
> hdparm -p 4 /dev/hda

For completeness, use:  hdparm -u1 -c1 -d0 -p4 -m8 /dev/hda

- -- 
Mark Lord
Real-Time Remedies Inc.
[email-masked]

- ---
This message processed by the Netwinder.Org news2mail gateway.

- --
This list is run automagically by Majordomo 1.94.4
Please send email questions to [email-masked]
To UNSUBSCRIBE: email [email-masked] with
"unsubscribe devel" as the body of your message.

------------------------------

Date: Fri, 06 Aug 1999 11:53:17 +0200
From: Jan Rinze <[email-masked]>
Subject: Re: Build 15

"Andrew E. Mileski" wrote:

> > > > I can only find dm-3.0-14 there, I already have that one.
> > > > Could you be more specific as to where I can get dm-3.0-15 ??
> > >
> > > THat must have been what Mark meant.
> >
> > Darn, that just what I was afraid of ...
> >
> > Let's hope we don't need to wait too long for 15 to arrive.
>
> With luck, build 15 will be ready in 2 weeks.  I had to change to a
> glibc compiled against 2.2 kernel headers for devpts support to get
> X working with 2.2 kernels, so I'm currently rebuilding everything.
>
> Scott is working on a new set of tools though, so that may need another
> rebuild too (which takes at least a week).
>
> --
> Andrew E. Mileski - Software Engineer
> Rebel.com  http://www.rebel.com/

Sounds great Andrew !

Does this mean that the problems with X have been fixed ?
As I understood it was a compiler bug. I have noticed lots of
differences between the ARM GCC and the Intel GCC compilations
of sources that I have written myself. Some are due to my own
interpretation
of how C should work but others are more obscure.
The alignment problems are still there I guess but I keep trying to avoid
them. The huge problem I face now is that the accelerated svgalib does
work on the Netwinder but on my PC it won't eat my Matrox G200 ...

This just shows that hardware changes can affect a lot of practical
solutions
that in the end become no solutions anymore. I tried to keep all software
platform
independant but even a mouse setting seems to be non-portable.

Just for the record, is there any other way of doing hw independant fast
graphics
without using X ?
( maybe with using X but only for setting up the graphics console and
defining
the entire screen as one window without a frame .. ? )

Will the DM-15 have all the goodies of the office server?

enough questions for now.

kind regards,

Jan Rinze.

- ---
This message processed by the Netwinder.Org news2mail gateway.

- --
This list is run automagically by Majordomo 1.94.4
Please send email questions to [email-masked]
To UNSUBSCRIBE: email [email-masked] with
"unsubscribe devel" as the body of your message.

------------------------------

Date: Fri, 06 Aug 1999 11:58:30 +0200
From: Jan Rinze <[email-masked]>
Subject: Strong ARM rev. T

It came to my attention that Intel has a new revision T
of the StrongARM. It should allow for lazy task swapping
and faster pipeline processing.

Has anyone got data on the benefits of this revision and
does anyone know if we will be seeing rev.T Netwinders?

Jan Rinze.

- ---
This message processed by the Netwinder.Org news2mail gateway.

- --
This list is run automagically by Majordomo 1.94.4
Please send email questions to [email-masked]
To UNSUBSCRIBE: email [email-masked] with
"unsubscribe devel" as the body of your message.

------------------------------

Date: Fri, 06 Aug 1999 12:04:30 -0400
From: "Andrew E. Mileski" <[email-masked]>
Subject: Re: Build 15

Jan Rinze wrote:
> "Andrew E. Mileski" wrote:
> > With luck, build 15 will be ready in 2 weeks.
>
> Sounds great Andrew !
> 
> Does this mean that the problems with X have been fixed ?
> As I understood it was a compiler bug.

Err...not fixed, but working now.

The problem is clearly a compiler bug (Scott seems to agree).
A statement like "x->y = a;" is failing.  Framing the line with nop's
causes the correct code to be produced, but then the immediately following
"q->w = b;" fails...and so on.  Scott has submitted the details to the
experts.

I discovered that -finline-functions causes the bug triggering function
to be inlined, and the correct code gets produced in this situation.
This was all that was needed to get X working with a 2.0.35 kernel.

With a 2.2 kernel, X apps like xterm that use virtual consoles would fail.
I discovered that glibc doesn't support them when compiled with 2.0.35
kernel headers.  After rebuilding glibc (which would fail with compiler
errors unless built with no optimization) with 2.2 kernel headers, X mostly
works again.

- --
Andrew E. Mileski - Software Engineer
Rebel.com  http://www.rebel.com/

- ---
This message processed by the Netwinder.Org news2mail gateway.

- --
This list is run automagically by Majordomo 1.94.4
Please send email questions to [email-masked]
To UNSUBSCRIBE: email [email-masked] with
"unsubscribe devel" as the body of your message.

------------------------------

Date: Fri, 6 Aug 1999 18:46:24 +0100
From: Philip Blundell <[email-masked]>
Subject: Re: Strong ARM rev. T

In article <[email-masked]> you write:
>It came to my attention that Intel has a new revision T
>of the StrongARM. It should allow for lazy task swapping
>and faster pipeline processing.
>
>Has anyone got data on the benefits of this revision and

From what I remember, rev T is a bug-fix revision only and I don't
think there are any interesting changes for Linux/NetWinder use.  The
details are on Intel's web site.

p.
- --
This list is run automagically by Majordomo 1.94.4
Please send email questions to [email-masked]
To UNSUBSCRIBE: email [email-masked] with
"unsubscribe devel" as the body of your message.

------------------------------

Date: Thu, 12 Aug 1999 09:51:50 -0500
From: "Darryl DeGraff" <[email-masked]>
Subject: boot problems

Hope someone can help with this...

On of our users got this message the other day (NeTTrom 2.0.8c):
     Minikernal booting.... Detecting hardware devices...

     Flash memory 1 Mb.
     hda: TOSHIBA MK3003MAN, 2937MB w/128kB cache, CHS=5968/16/63
     scsi: 0 hosts.
     scsi: detected total.
     ehto0: NE2000+ found at 0x300, using IRQ 8, (32 bit).
     Tulip Eth100 card SROM needs to be programmed...

     Autoboot - Press any key to abort autoboot [5 4 3 2 1 ]
     mk_reboot_kernel(): Unable to reset hardware. Please press and hold
RESET button.

Two concerns:
- - I see the
     Tulip Eth100 card SROM needs to be programmed...
message at every boot, not just this time.  What is the cause?  We are not
using the 10/100 connnector so I am not worried about it, but am curious.
- - I have never seen the boot failure:
     mk_reboot_kernel(): Unable to reset hardware. Please press and hold
RESET button.
What hardware might be at issue here?  Further, pressing and holding the
reset button did not help.  In order to get a successful boot the power had
to be removed (sounds like a chip got stuck).

darryl (li-cor)

- --
This list is run automagically by Majordomo 1.94.4
Please send email questions to [email-masked]
To UNSUBSCRIBE: email [email-masked] with
"unsubscribe devel" as the body of your message.

------------------------------

End of devel-digest V2 #225
***************************

--
This list is run automagically by Majordomo 1.94.4
Please send email questions to [email-masked]
To UNSUBSCRIBE: email [email-masked] with
"unsubscribe devel-digest" as the body of your message.