Bella Riosa | 1 Apr 03:03 2009
Picon
Picon

(unknown)

Hi,

why not mimicing the behavior of the VMS-Compiler? Would it be much work?

$ cc/version
Compaq C V6.4-005 on OpenVMS VAX V7.3
$ cc double.c
          double d = 1e50;
        .............^
%CC-W-FLOATOVERFL, In the initializer for d, floating-point overflow occurs in
 evaluating the expression "1e50".
                At line number 4 in DUA0:[TEST]FLOAT.C;3.

$ link double.obj
$ run double
-32769

double.c:
#include <stdio.h>

main() {
  double d = 1e50;
  printf("%d\n",d);
}

--

-- 
Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss für nur 17,95 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a

pb0aia | 1 Apr 02:10 2009
Picon

Re: Broken links

> Hi Martin,
>
>>  - In the release notes:
>>      http://world.std.com/~bdc/projects/vaxen/VAX-netboot-HOWTO.html
>> does not work
>
> Thats because the owner of that website seems to have phased into
> another plane of existance.  He took his website with him.  Perhaps
> Kibiology has more power than I realized.
>
>
> Andy

Many copies of that howto still live on:
http://www.netbsd.org/docs/network/netboot/
http://freebsd.csie.nctu.edu.tw/distfiles/VAX-netboot-HOWTO
http://vaxarchive.org/swdist/bsd/bdc/VAX-netboot-HOWTO.html

Kees

Martin Husemann | 3 Apr 21:43 2009
Picon

Can't mount root

Hi folks,

thanks to all the helpfull people I now have working serial console working.
I have a few minor nits and a big problem, nits first:

>>> show config

KA49-A V1.4-0D0-V4.4   100 MHZ
00-00-F8-51-69-E1
128MB

DEVNBR    DEVNAM           INFO
------    --------    --------------------------
     1         NVR    OK
     2       LCSPX    OK
                      Highres 72Hz - 8 Plane 4Mpixel FB - V1.1 
     3          DZ    OK
     4       CACHE    OK
     5         MEM    OK
                      128MB   0A,0B,0C,0D=16MB, 1E,1F,1G,1H=16MB 
     6         FPU    OK
     7          IT    OK
     8         SYS    OK
     9          NI    OK
    10        SCSI    OK
                      0-L0-DCAS-34 6-INITR    
    11         AUD    OK
    13         TCA    OK
                       OPT PRS    V1.0 

(Continue reading)

Martin Husemann | 4 Apr 15:20 2009
Picon

Re: Can't mount root

On Fri, Apr 03, 2009 at 09:43:53PM +0200, Martin Husemann wrote:
<> But the real problem: it hangs completely after trying to mount root:
> 
> boot device: ze0                                                            
> root on md0a dumps on md0b
> root file system type: ffs
> 
> and that's it.

I verified a netbsd-5 install kernel boots just fine. So -current is broken.
Can anyone boot -current?

> If I send a break it drops to the bootmonitor. Same happens
> for the custom kernel with root on NFS (and DDB configured). I expected
> break to drop to DDB somehow, and of course mounting / to work ;-)

I managed to read ddb(4) and found esc-shift-d. It does not break into ddb
when the machine hangs, but (as I said before) sending a break works.

Martin

Michael L. Hitch | 4 Apr 19:38 2009

Re: Can't mount root

On Sat, 4 Apr 2009, Martin Husemann wrote:

> I verified a netbsd-5 install kernel boots just fine. So -current is broken.
> Can anyone boot -current?

raid1: RAID Level 0
raid1: Components: /dev/sd3d /dev/sd4d /dev/sd5d /dev/sd6d
raid1: Total Sectors: 33519872 (16367 MB)
boot device: sd1
root on sd1a dumps on sd1b
root file system type: ffs
Enter pathname of shell or RETURN for /bin/sh:
Terminal type? [unknown] vt220
Terminal type is vt220.
We recommend creating a non-root account and using su(1) for root access.
# uname -v
NetBSD 5.99.9 (GENERIC) #0: Sat Apr  4 09:08:29 UTC 2009 
builds <at> b4.netbsd.org:/home/builds/ab/HEAD/vax/200904030000Z-obj/home/builds/ab/HEAD/src/sys/arch/vax/compile/GENERIC

   I'm not sure if I still have a network boot active, but it shouldn't 
take too much to enable it (I had clobbered my boot disk at one point and 
couldn't get another disk to boot and had to setup network booting to fix 
the disk).

> I managed to read ddb(4) and found esc-shift-d. It does not break into ddb
> when the machine hangs, but (as I said before) sending a break works.

   Serial interrupts need to be working, so they are probably blocked at 
that point.  Halting with break should show you the PC and PSL, which can 
be used to determine where it's hanging.  You can then enter continue and 
(Continue reading)

Martin Husemann | 4 Apr 19:40 2009
Picon

Re: Can't mount root

On Sat, Apr 04, 2009 at 11:38:05AM -0600, Michael L. Hitch wrote:
> We recommend creating a non-root account and using su(1) for root access.
> # uname -v
> NetBSD 5.99.9 (GENERIC) #0: Sat Apr  4 09:08:29 UTC 2009 
> builds <at> b4.netbsd.org:/home/builds/ab/HEAD/vax/200904030000Z-obj/home/builds/ab/HEAD/src/sys/arch/vax/compile/GENERIC

I just retried with a 5.99.10 kernel and that works!
Sysinst is nearly finished now...

Martin

Michael L. Hitch | 4 Apr 19:51 2009

Re: Can't mount root

On Sat, 4 Apr 2009, Martin Husemann wrote:

> I just retried with a 5.99.10 kernel and that works!
> Sysinst is nearly finished now...

   Could you check if troff is good?  My netbsd-5 cross-built (on amd64) 
one has the bad relocation problem:

# readelf -r /usr/bin/troff|grep unrec
fd9838d0  00007f7f unrecognized: 7f      00075800   curdiv + fd983da0

--
Michael L. Hitch			mhitch <at> montana.edu
Computer Consultant
Information Technology Center
Montana State University	Bozeman, MT	USA

Martin Husemann | 4 Apr 20:45 2009
Picon

Re: Can't mount root

On Sat, Apr 04, 2009 at 11:51:44AM -0600, Michael L. Hitch wrote:
> # readelf -r /usr/bin/troff|grep unrec
> fd9838d0  00007f7f unrecognized: 7f      00075800   curdiv + fd983da0

Nope, no unrecognized relocation in mine.

Martin

Michael L. Hitch | 7 Apr 22:52 2009

Re: NetBSD 5 strangeness

On Wed, 1 Apr 2009, Izumi Tsutsui wrote:

> It looks pipe on vax is broken (at least on simh).
>
> The following simple command also fails:
> # gzip -c /netbsd | zcat > /dev/null
> zcat: unknown compression format
>
> "gunzip base.tgz && tar xpf base.tar" seems working, and
> INSTALL kernel and GENERIC with options PIPE_SOCKETPAIR also work fine.
>
> Compiling kern/sys_pipe.c with -O0 doesn't help.

   Setting BIG_PIPE_SIZE to 32KB or even 63KB in 
sys/arch/vax/include/param.h seems to get around the problem.  An 
additional bonus is that scp to copy files to the local host seems to also 
work now.

--
Michael L. Hitch			mhitch <at> montana.edu
Computer Consultant
Information Technology Center
Montana State University	Bozeman, MT	USA

A. Wik | 13 Apr 08:29 2009

4.3BSD a.out compatibility issues in NetBSD


I just discovered why my binaries produced by the 4.3BSD-Qj
cc (pcc) under NetBSD 1.5.2 [a] dump core due to illegal
instruction.

After extensive hacking of the a.out compat/exec/emul related
portions of the NetBSD 1.5.2 kernel, most 4.3BSD-Qj programs
run properly.

However, the output produced by 4.3 cc is invariably invalid,
although the a.out MAGIC is correct (little-endian ZMAGIC).
The reason is the erroneous insertion of extra padding by cc,
as illustrated by hexdumps in footnote [b].

The reason why the compiler inserts extra padding is that
the NetBSD kernel returns the wrong page-cluster size, namely
4096 rather than the correct 1024, as can be seen from the
output of ktrace + kdump at footnote [c].

Why does NetBSD 1.5.2 return information that is likely to
confuse legacy programs?  Is it perhaps confused by the fact
that I've chroot()ed to the directory "/q" where all my
4.3BSD-Qj binaries are located (in a typical directory
hierarchy).  From footnote [c], it is clear that sometimes
the correct path is returned, starting with "/q/", and sometimes
the prefix is missing.  (Note that /q is normally /emul or
something similar - I've redefined it.)

As far as I can see, NetBSD should be detecting the fact
that programs - chrooted or otherwise - are executing from
(Continue reading)


Gmane