Subject: Re: Resolution problem on Falcon
To: None <goettsch@informatik.tu-muenchen.de>
From: Leo Weppelman <leo@wau.mis.ah.nl>
List: port-atari
Date: 05/30/1996 11:16:18
> 
> p9548@iupmime.univ-lemans.fr wrote:
> >=20
> > I've got a problem with BOOTX and all kernels i've compiled
> > from 1.1B version:
> >         I boot on VGA monitor in monochrome 640x480, and the kernel
> > start the views in 640x400 monochrome, and strangely, it is the width o=
> f the
> > screen that is affected, all lines are cut at the end.
> 
> Just the same to me !
> I've just finished installing NetBSD and see the same effect. But it is n=
> ot
> reproducable, e.g. in about one of five cases thle lines are shown correc=
> t.
> in the other cases the lines are truncated after exact 69.8 columns :-).=20
> I mean after 70 columns but the 70th char is truncated at the right side =
> by
> few pixels, WHICH ARE SHOWN ON THE NEXT LINE AT THE LEFTMOST SIDE ! The
> rest of this last line is not seen but overwritten by the next line.
There have been same changes to the Falcon video code since 1.1. I hope
Thomas has a clue...He wrote it ;-)
> 
> My environment is a Falcon with 14MB ST-RAM, VGA-Monitor, 42 MB (old ;-) =
> IDE=20
> and a 580 MB CDC SCSI disk on which NetBSD lies (4 Part. / swap /usr, /ho=
> me)=20
> + one GEMDOS-Partition. Bootdisk (C:) is my IDE-disk and because of this=20
> I din=B4t install the new bootloader, I wish not that the bootdisk change=
>  to
> the SCSI disk (how can I then boot GEM from my IDE-bootdisk ?).
On my todo-list is a program to set the boot-preference from within NetBSD.
I hope I can finish it before 1.2, I'm not sure...
You can do it yourself with the following c-code:

   #include <unistd.h> /* Pull in correct lseek() prototype! */
   #include <stdio.h>
   #include <fcntl.h>

   main()
   {
        int fd;
        unsigned char byte[1];

        if ((fd = open("/dev/nvram", O_WRONLY)) < 0) {
            perror("Open nvram failed");
            exit(1);
        }
        lseek(fd, 1, 0); /* Byte 1 is the boot-preference */
        byte[0] = 0x80; /* 0x80=TOS,0x20=NetBSD,0x10=Linux */
        write(fd, byte, 1);
        close(fd);
   }

I didn't compile the above code, but I think you'll get the idea.

For GEM there are probably some cpx modules. There is also a bios call
to write the nvram.

So what you can do is:
   1: install the bootcode on your netbsd root-disk (sd0 in your case).
      This will set the bootpreference automatically to NetBSD!
   2: Use the above code to switch back to GEM.

Leo.