Subject: Re: FPU-less '030 support
To: Bruce ONeel <edoneel@sdf.lonestar.org>
From: Kazuyuki Inanaga <happyday@pp.iij4u.or.jp>
List: port-mac68k
Date: 02/21/2004 23:21:47
Hi,
At 5:19 PM +0100 04.2.19, Bruce ONeel wrote:
>
>Since I'm unfamiliar with this, maybe you could just send me
>a kernel config file and I'll build that?
According to "Apple Technical Specifications: Legacy Products",
http://www.info.apple.com/support/applespec.legacy/index.html
there are 34 kind of fpu-less '030 Macs.
I sent "List of FPU-less '030 Macintosh" and my config file to Bruce
including some options for NetDock and Cabletron AE41*.
I hope new kernel will support all of those 34 Macs and thier
networking devices.
To decrease kernel size is also important because some '030s have
small amount of RAM.
Please correct and modify that config file with your idea. I'm not sure
about some options, and I think that you and the members might have
better idea for the new config file.
>Let's call it something other than SMALLRAM. That might be easiest.
Yes, that's a good idea.
>I think I see where to build these. Could you send me a config
>file like INSTALL or INSTALLSBC which I can build as well?
The installation "Prebuilt NetBSD 1.6.1 for LC040 Macs" binary sets
http://edoneel.chaosnet.org/Downloads.html
is going on my LCIII+ now.
Macintosh LC III+
http://docs.info.apple.com/article.html?artnum=112229
030/33MHz, 36 MB RAM, 768K VRAM 512 x 384 16-bit
NetBSD 1.6.1 (GENERICSBC) was running nicely on it with FPU.
I pulled out the fpu chip and tried to run 1.6.1 "netbsd-INSTALLSBC.gz",
but it got;
>status: failed: command ended on signal
>command: /sbinnewfs /dev/rsd0a
>uid 0 comm newfs on /: file system full
>/: write failed, file system full
Do you have any instkernel for for LC040 Macs?
I can't access to:
pub/NetBSD/NetBSD-1.6.1/mac68k-softfloat on lilith.sixgirls.org
I have another "netbsd-INSTALLSBC.gz" which is 1.6G SEP 2002, made
by Takeshi Shibagaki for fpu-less Macs. It works excellently on LCIII+.
-------------------------------------------------
I've just finished to install all binaries including X set.
While the additional installation and some basic settings, I don't see
any error nor any strange thing.
Your "Prebuilt NetBSD 1.6.1 for LC040 Macs" runs greatly on LCIII+
without FPU.
I compared the time (performance) with IIci;
lc3+: {1} time /etc/rc.d/sshd start
Starting sshd.
1869.6u 1.7s 31:35.52 98.7% 0+0k 4+36io 46pf+0w
IIci: {1} time /etc/rc.d/sshd start
Starting sshd.
2531.3u 2.5s 42:52.26 98.5% 0+0k 3+35io 44pf+0w
FPU-less LCIII+ is much faster than IIci (25MHz, 20MB RAM, with FPU)
in this case. (It doesn't use FPE?)
Now I know "FPU-less" doesn't mean "slow" in some case.
>It works if ls -l doesn't core dump :-) top should also look
>right as well. Those are my two "smoke test" programs since
>ls -l uses floating point in printf for formatting and top
>uses the math library.
Thanks for your advice.
lc3+: {1} ls -l /usr
total 56
drwxr-xr-x 7 root wheel 512 Feb 21 18:34 X11R6
drwxr-xr-x 2 root wheel 6144 Feb 21 18:27 bin
drwxr-xr-x 3 root wheel 1024 Feb 21 18:18 games
drwxr-xr-x 41 root wheel 3072 Feb 21 18:11 include
drwxr-xr-x 3 root wheel 7168 Feb 21 18:13 lib
drwxr-xr-x 3 root wheel 512 Aug 7 2003 libdata
drwxr-xr-x 7 root wheel 1024 Feb 21 18:27 libexec
drwxr-xr-x 2 root wheel 512 Aug 8 2003 lkm
drwxr-xr-x 8 root wheel 512 Aug 7 2003 local
drwxr-xr-x 2 root wheel 512 Aug 7 2003 mdec
drwxr-xr-x 2 root wheel 4096 Feb 21 18:14 sbin
drwxr-xr-x 27 root wheel 512 Feb 21 18:25 share
lc3+: {2} top
load averages: 0.35, 0.15, 0.14 22:03:10
16 processes: 15 sleeping, 1 on processor
CPU states: 20.1% user, 0.0% nice, 11.9% system, 0.0% interrupt, 67.9% idle
Memory: 13M Act, 184K Wired, 2052K Exec, 9316K File, 14M Free
Swap: 70M Total, 70M Free
PID U-NAME PRI NICE SIZE RES STATE TIME WCPU CPU COMMAND
250 root 18 0 764K 1224K pause 0:01 23.95% 7.08% tcsh
245 mikie 18 0 776K 1272K pause 0:02 12.32% 6.79% tcsh
244 root 2 0 108K 1308K select 0:01 7.32% 4.35% telnetd
252 root 30 0 172K 852K CPU 0:00 17.51% 2.44% top
4 root -18 0 0K 25M reaper 0:16 0.88% 0.88% [reaper]
5 root 18 0 0K 25M syncer 0:20 0.78% 0.78%
[ioflush]
88 root 2 0 164K 648K select 0:00 0.73% 0.73% syslogd
169 root 2 0 348K 1352K select 0:51 0.00% 0.00% sshd
189 root 3 0 448K 324K ttyin 0:03 0.00% 0.00% csh
187 root 10 0 228K 636K nanoslee 0:00 0.00% 0.00% cron
1 root 10 0 344K 224K wait 0:00 0.00% 0.00% init
182 root 2 0 80K 700K select 0:00 0.00% 0.00% inetd
2 root -6 0 0K 25M sccomp 0:00 0.00% 0.00%
[scsibus0]
3 root -18 0 0K 25M pgdaemon 0:00 0.00% 0.00%
[pagedaemon]
6 root -18 0 0K 25M aiodoned 0:00 0.00% 0.00%
[aiodoned]
0 root -18 0 0K 25M schedule 0:00 0.00% 0.00% [swapper]
Wonderful ! I don't see any error. I think it is already good enough for
many FPU-less '030s, and it will be perfect with a few network device
support and decreasing kernel size.
At 11:15 AM -0500 04.2.19, Claudio Leite wrote:
> I can add that I've successfully used the lc040 kernel on my LCIII with
>great success - even X works great.
Hi,
Thanks for your post :)
Bruce's Color x is also great on my LCIII+. It runs at 512 by 384, 16 bpp.
>I built it from source using -m68030, not
>sure how much of a difference it makes. The only changes I made to the kernel
>were to make it boot by default from NFS - my disk is only 80mb. Performance
>is surprisingly good for only 12mb of RAM.
Very interesting. What config file do you use? Would you like to tell me (us)
your config file?
Regards,
Kazu Inanaga