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

devel-digest          Thursday, June 17 1999          Volume 02 : Number 199

In this issue:

    Re: video capture
    Re: video capture
    Re: libfloat
    Re: Compaq Builds StrongARM-based, Linux run Handheld
    Re: libfloat
    Re: libfloat
    Re: JNI on a netwinder ?
    bootup problem when no net is available but it expected one
    Re: bootup problem when no net is available but it expected one
    Re: bootup problem when no net is available but it expected one
    test jdk117 built on disk 12
    Re: bootup problem when no net is available but it expected one

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

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

Date: Wed, 16 Jun 1999 00:42:57 -0400
From: "Steve Schwartz" <[email-masked]>
Subject: Re: video capture

ok, here's a new question for you.  I've been playing with the capture
program from your page.  works great, but that are these images?  XV reads
them fine and I have a little windows shareware program that reads them
fine. but photoshop hasn't a clue what they are and I don't know what to
tell it.

thanks again,

- -Steve Schwartz
[email-masked]

Ralph Siemsen <[email-masked]> wrote in message
news:[email-masked]...
> Steve Schwartz wrote:
> >
> > ok, i've got it displaying on the console with new_test
> > and I've got a strange double-frame display in X from xvideum.  why does
it
> > keep freezing and the continuing and then freezing and then continuing?
is
> > this the buffer, the processor, or me?
>
> The double display in xvideum is intentional.  One half is "live" data,
> ie. the video chip is pasting it directly into the video data stream
> (therefore the image is never in memory).  The other half is the cpu
> actually grabbing and copying the data.  If you move the mouse out of
> the window (ie. put the focus on another window) this process will stop
> and you'll get full-speed video displayed in half of the box.
>
>
> --
> Ralph Siemsen -- [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: Wed, 16 Jun 1999 06:48:18 -0400
From: Ralph Siemsen <[email-masked]>
Subject: Re: video capture

Steve Schwartz wrote:
> 
> ok, here's a new question for you.  I've been playing with the capture
> program from your page.  works great, but that are these images?  XV reads
> them fine and I have a little windows shareware program that reads them
> fine. but photoshop hasn't a clue what they are and I don't know what to
> tell it.

They are PPM (portable pixmap format).  You can convert them to a gif
using "ppmtogif" or to a jpg using "cjpeg" programs, both of which are
probably already on your system :) You can simply pipe the output from
my program into one of these filters.  (There are a bunch more ppm tools
available, try "man -k ppm").

Note, there was a bug that I don't think I fixed in one of my two
capture programs - there was a line of extra text at the beginning of
the file in one case, which had to be removed by hand.  I belive it was
being printed by the SVGA library, so it wasn't an easy fix.  A small
sed script could probably take care of this.

- -- 
Ralph Siemsen -- [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: Wed, 16 Jun 1999 12:14:16 -0400
From: Eric Thomas <[email-masked]>
Subject: Re: libfloat

> > AFAIK that version works.  There haven't been any changes to the SoftFloat code
> > in the NWFPE.  Most of the bugs in the NWFPE are in the OS-emulator interaction,
> > or in the emulator code itself.
> >
> > Perhaps if you post some more information I can be of more help.
> 
> Here is a small test program that demonstrates the difficulity I am
> seeing.
> 
> #include <stdlib.h>
> 
> int main(int argc, char *argv[])
> {
>    long long ll_foo, ll_bar;
>    double    d_foo;
> 
>    ll_foo = 56L;
>    d_foo = (double)ll_foo;
>    ll_bar = (long long)d_foo;
> 
>    printf("ll_foo = %ld\n",ll_foo);
>    printf("ll_bar = %ld\n",ll_bar);
> }
> 
> If I compile this using the NWFPE, it works correctly in that
> ll_foo and ll_bar are both 56.  If I compile it to use libfloat
> (-msoft-float -lfloat),
> ll_bar is is zero.  Either, or both, the double to long long and long
> long to double
> conversion do not work.
> 
> Eric

I think this is a bug with egcs 2.91.66.  It continues to generate
floating point opcodes even though I've specified -msoft-float.  The
executable has libfloat.so dependancy, but the dissassembly shows
several fltd, ldfd, ldfltd, etc. opcodes and no calls into the libfloat
library.

Does anyone know if this has been fixed in newer versions of egcs?

Thanks,
Eric

- ---
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, 16 Jun 1999 10:33:40 -0700
From: Tim Rowledge <[email-masked]>
Subject: Re: Compaq Builds StrongARM-based, Linux run Handheld

Matthew Keller <[email-masked]> wrote:
>Sorry for the non-development post, but I felt this was as good news to
>the Netwinder development community as the Linux community as a whole.

They actually did this a while ago, before the takeover in fact; the work is
done at DEC's Western Research Lab just up the road from me. Interval were kind
enough to lend me to them last summer to doa Squeak (http://www.squeak.org)
port and I had a grand time doing it. It runs very nicely, probably s\about
half as fast as a NW for most things. With the second rev design coming soon,
hopefully running 300Mz SA 1110's it shoud be even nicer.

- ---
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, 16 Jun 1999 13:56:14 -0400
From: Scott Bambrough <[email-masked]>
Subject: Re: libfloat

This is a multi-part message in MIME format.
- --------------B687818B34C560FE248A4A75
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Eric Thomas wrote:
> 
> > Here is a small test program that demonstrates the difficulity I am
> > seeing.
> >
> > #include <stdlib.h>
> >
> > int main(int argc, char *argv[])
> > {
> >    long long ll_foo, ll_bar;
> >    double    d_foo;
> >
> >    ll_foo = 56L;
> >    d_foo = (double)ll_foo;
> >    ll_bar = (long long)d_foo;
> >
> >    printf("ll_foo = %ld\n",ll_foo);
> >    printf("ll_bar = %ld\n",ll_bar);
> > }
> >
> > If I compile this using the NWFPE, it works correctly in that
> > ll_foo and ll_bar are both 56.  If I compile it to use libfloat
> > (-msoft-float -lfloat), ll_bar is is zero.  Either, or both, the 
> > double to long long and long long to double conversion do not work.

The conversions are actually done by routines in libgcc.a.  It sounds like these
may be buggy.

> I think this is a bug with egcs 2.91.66.  It continues to generate
> floating point opcodes even though I've specified -msoft-float.  The
> executable has libfloat.so dependancy, but the dissassembly shows
> several fltd, ldfd, ldfltd, etc. opcodes and no calls into the libfloat
> library.

I tried this on a couple of NetWinder's this morning.  I built with gcc-2.93.21
19990514 and with gcc-2.95 1990614.  Both were successful.  I tried both static
and dynamic cases.

> 
> Does anyone know if this has been fixed in newer versions of egcs?
> 

Yes.

Scott
- --------------B687818B34C560FE248A4A75
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Scott Bambrough
Content-Disposition: attachment; filename="vcard.vcf"

begin:          vcard
fn:             Scott Bambrough
n:              Bambrough;Scott
org:            Rebel.com
adr:            150 Isabella St.;;;Ottawa;Ontario;K1S 1V7;Canada
email;internet: [email-masked]
title:          Software Engineer
tel;work:       (613) 788-6000 x6116
tel;fax:        (613) 230-8300
x-mozilla-cpt:  ;0
x-mozilla-html: FALSE
version:        2.1
end:            vcard

- --------------B687818B34C560FE248A4A75--

- ---
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, 16 Jun 1999 14:22:14 -0400
From: Eric Thomas <[email-masked]>
Subject: Re: libfloat

> 
> I tried this on a couple of NetWinder's this morning.  I built with gcc-2.93.21
> 19990514 and with gcc-2.95 1990614.  Both were successful.  I tried both static
> and dynamic cases.
> 

Ok...It works as long as I specify -O2.  If I only use the default
optimization and specify -msoft-float, egcs continues to produce
floating point opcodes.  I tried it with gcc-2.91.66 and gcc-2.95
19990615.

Try it again if you get a chance without the -O2.  

Eric

- ---
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, 16 Jun 1999 14:46:10 -0500
From: root <[email-masked]>
Subject: Re: JNI on a netwinder ?

Joel Hardy wrote:

> Andrew E. Mileski <[email-masked]> wrote:
> >Amlan Saha wrote:
> >> Incidentally, the Netwinder runs the JRE/JDK by Corel (ported
> >> under license from SUN).  But I could not locate that particular
> >> header file anywhere in the package.
> >>
> >> Could I be missing out something ? Or any pointers for me ?
> >
> >Quite likely, as I personally have no knowledge of us officially shipping
> >JRE as a product, though you may have an evaluation unit (or I could
> >just be in the dark again).
>
> There was a JRE on corelcomputer.com a long time ago.  It was still a little
> buggy, but much better than Kaffe (at least at that time) and it did what I
> wanted it to do.  Is there any chance that Rebel.com will (re-)release it
> soon?
>
> --
> Joel Hardy
> [email-masked]
> [email-masked]

A release of jdk117v3 (from blackdown) is on the netwinder site hidden away
somewhere.

I think until they are convinced that no legal issues exist, it will stay
hidden away.  I don't have time for a while to do anything about it.  It was
posted last friday.

It should be on blackdown, but it should be tested before release on
blackdown.  SOmeone else is releasing a new toolset build.  I used DISK 12 to
build.  It would be nice to get it tested so it could go to blackdown instead
of sitting in limbo.

I won't give out the url, and my netwinder isn't currently on the net.  Any
ideas?

I shouldn't have spent the time before I left to get it out last friday; but
don't have the time to talk legal issues; or anything else at the moment.

scott

- ---
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, 16 Jun 1999 13:41:20 -0700
From: Tim Rowledge <[email-masked]>
Subject: bootup problem when no net is available but it expected one

My home-NW is setup to expect to talk to my ISDN box and to mount various
external filesystems. Now that I have moved it into the office for a few days,
I find I can't persuade it to boot - it gets stuck somewhere around 'nmbd'. On
the way it spends several minutes finding out it cannot find an address forthe
server that holds the putative external mounts.

I have tried:-
a) no ethernet cable attached (I was anticipating booting, resetting the network
details and reboot)
b) cable attached and hope the IP number confusion doesn't set servers on fire
:-) - no improvement, but no fire either.
c) boot into NeTTrom, 'setnetwork eth0' for dhcp - no improvement
d) same but try 'save-all' before rebooting

Is there any way to tell it to boot and ignore all network connection attempts?

tim

- ---
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, 16 Jun 1999 17:11:38 -0400
From: "Andrew E. Mileski" <[email-masked]>
Subject: Re: bootup problem when no net is available but it expected one

Tim Rowledge wrote:
> My home-NW is setup to expect to talk to my ISDN box and to mount various
> external filesystems. Now that I have moved it into the office for a few days,
> I find I can't persuade it to boot - it gets stuck somewhere around 'nmbd'. On
> the way it spends several minutes finding out it cannot find an address forthe
> server that holds the putative external mounts.

In firmware:
  setenv cmdappend=/bin/ash.static
  boot
If this works, and you don't have a zillion errors (old systems may
bitch about missing floating point emulator and refuse to work), you'll
see the # prompt.

Once booted:
  # mount -n -o remount,rw /
  # >/etc/mtab
  # mount -f /
  # mount -a
Then you have a full system you can edit and remove the remote references.
Warning: you have a single shell that deosn't respond to stuff like CTR-C,
so anything that may need to be interrupted (example: ping <host>) should
be forked with '&', which allows you to use kill to stop it.

To shutdown:
  # cd /
  # umount -ar
  # halt -dfn
Good luck.  No warranties or guarantees expressed or implied.

- --
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, 16 Jun 1999 17:13:16 -0400
From: "Andrew E. Mileski" <[email-masked]>
Subject: Re: bootup problem when no net is available but it expected one

"Andrew E. Mileski" wrote:
> Once booted:
>   # mount -n -o remount,rw /
>   # >/etc/mtab
>   # mount -f /
>   # mount -a

Err...the "mount -a" may be a problem if the error is in your /etc/fstab

- --
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, 16 Jun 1999 16:38:35 -0500
From: scott hutinger <[email-masked]>
Subject: test jdk117 built on disk 12

Please try
ftp://skyping.mprojects.wiu.edu/pub

it should have a jdk in just to see if it works on other peoples
systems.

I'll leave the netwinder up tonight, but need to bring it back down
during the day ( -6 hours GMT) at about 10:00 or 11:00 in the morning
till I leave (while I can get by without the other computer).

Please test it, and if it at least runs, let me know at
[email-masked]

I think it will probably only run on DISK 12 systems.

Please try it

rw-r--r--   1 root     root     12026224 Jun 11  1999
jdk117_v3a_12_arm.tg

It's pretty large.

I'll try to make some disk space and see if someone else want's to put
the newest build (build tools) on it.

If I can verify it even runs on disk 12 on other peoples systems, then I
can have it moved to Blackdown.

thanks

- ---
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, 16 Jun 1999 15:40:21 -0700
From: Tim Rowledge <[email-masked]>
Subject: Re: bootup problem when no net is available but it expected one

Sorry, but I just can't make this work at all - I don't get anything like a #
prompt, in fact the machine goes straight through the same list as before!

I also tried using boot cmd=init=/bin/ash.static, and even
NeTTrom->load-defaullts.

None seem to make any difference, much to my surprise and consternation. I am
going to take the machine home tonight and try it back on the ISDN box, but I'll
bet I won't be able to boot it there either now! :-(

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

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

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

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